Use fetchurl for background

This commit is contained in:
thiloho
2023-06-12 19:49:59 +02:00
parent 882b7e8392
commit 7203426bf7
2 changed files with 10 additions and 8 deletions

View File

@@ -8,14 +8,19 @@
networking.hostName = "pc";
home-manager.users.thiloho = { ... }: {
wayland.windowManager.sway.config.output = {
home-manager.users.thiloho = { pkgs, lib, ... }: {
wayland.windowManager.sway.config.output = let
wallpaper = pkgs.fetchurl {
url = "https://imgur.com/aAWzGqj.jpg";
hash = "sha256-iTQS939Zrvjv4rBJ6Y41kdsBBN9lT5yAoJnNg/WiMoA=";
};
in {
DP-1 = {
bg = "/home/thiloho/background.jpg fill";
bg = "${wallpaper} fill";
res = "1920x1080@144.000Hz";
};
DP-2 = {
bg = "/home/thiloho/background.jpg fill";
bg = "${wallpaper} fill";
res = "1920x1080@144.000Hz";
};
};

View File

@@ -4,8 +4,6 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
time.timeZone = "Europe/Amsterdam";
@@ -181,7 +179,7 @@
alacritty = {
enable = true;
settings = {
window.opacity = 0.9;
window.opacity = 0.75;
font = {
normal = {
family = "JetBrainsMono";
@@ -232,7 +230,6 @@
sessionVariables.NIXOS_OZONE_WL = "1";
stateVersion = "22.11";
packages = with pkgs; [
zoom-us
libreoffice
airshipper
prismlauncher