diff --git a/flake.nix b/flake.nix index 535be15..d62f9b6 100644 --- a/flake.nix +++ b/flake.nix @@ -67,6 +67,7 @@ specialArgs = { inherit inputs; host = "vanta"; + wallpaper = "twilight-village.png"; }; modules = [ ./modules/system diff --git a/modules/home/hypr/hyprlock.nix b/modules/home/hypr/hyprlock.nix index 2fd20e2..a98d980 100644 --- a/modules/home/hypr/hyprlock.nix +++ b/modules/home/hypr/hyprlock.nix @@ -1,5 +1,6 @@ { config, + wallpaper, ... }: let @@ -19,7 +20,7 @@ in }; background = [ { - path = "${config.xdg.userDirs.extraConfig.XDG_WALLPAPERS_DIR}/sunset_bay.jpg"; + path = "${config.xdg.userDirs.extraConfig.XDG_WALLPAPERS_DIR}/${wallpaper}"; blur_passes = 3; } ]; diff --git a/modules/home/wallpaper.nix b/modules/home/wallpaper.nix index aea3d37..4504f99 100644 --- a/modules/home/wallpaper.nix +++ b/modules/home/wallpaper.nix @@ -1,5 +1,6 @@ { config, + wallpaper, ... }: let @@ -18,7 +19,7 @@ in mode = "center"; }; any = { - path = "${wallpapers}/sunset_bay.jpg"; + path = "${wallpapers}/${wallpaper}"; }; }; }; diff --git a/modules/home/wlogout.nix b/modules/home/wlogout.nix index 32c1305..7b78dfe 100644 --- a/modules/home/wlogout.nix +++ b/modules/home/wlogout.nix @@ -1,6 +1,7 @@ { config, pkgs, + wallpaper, ... }: { @@ -56,7 +57,7 @@ } window { - background: url("${config.xdg.userDirs.extraConfig.XDG_WALLPAPERS_DIR}/sunset_bay.jpg"); + background: url("${config.xdg.userDirs.extraConfig.XDG_WALLPAPERS_DIR}/${wallpaper}"); background-size: cover; } diff --git a/modules/system/user.nix b/modules/system/user.nix index daa26d8..c9cc5f3 100644 --- a/modules/system/user.nix +++ b/modules/system/user.nix @@ -2,6 +2,7 @@ inputs, pkgs, host, + wallpaper, config, ... }: @@ -11,7 +12,7 @@ home-manager = { useUserPackages = true; useGlobalPkgs = true; - extraSpecialArgs = { inherit inputs host; }; + extraSpecialArgs = { inherit inputs host wallpaper; }; users.eclypse = { imports = [ ../home ]; diff --git a/wallpapers/twilight-village.png b/wallpapers/twilight-village.png new file mode 100644 index 0000000..d894501 Binary files /dev/null and b/wallpapers/twilight-village.png differ