diff --git a/.gitignore b/.gitignore index 7beeee0..012d925 100644 --- a/.gitignore +++ b/.gitignore @@ -12,5 +12,4 @@ !/home-manager/ !/shells/ !/images/ -!/profiles/ -!/wallpapers/ \ No newline at end of file +!/profiles/ \ No newline at end of file diff --git a/modules/home/noctalia.nix b/modules/home/noctalia.nix index 56c8820..15dfc1b 100644 --- a/modules/home/noctalia.nix +++ b/modules/home/noctalia.nix @@ -100,7 +100,7 @@ }; wallpaper = { enabled = true; - directory = "../../wallpapers"; + directory = "~/wallpapers"; randomIntervalSec = 60; transitionDuration = 1500; transitionType = "random"; diff --git a/modules/home/wallpaper.nix b/modules/home/wallpaper.nix new file mode 100644 index 0000000..40facb6 --- /dev/null +++ b/modules/home/wallpaper.nix @@ -0,0 +1,14 @@ +{ pkgs, lib, ... }: +let + walls = pkgs.fetchFromGitHub { + owner = "orangci"; + repo = "walls-catppuccin-mocha"; + rev = "40912e6418737e93b59a38bcf189270cbf26656d"; + hash = "sha256-XXXXXXXXXXXX"; # nix-shell -p nix-prefetch-github --run 'nix-prefetch-github orangci walls-catppuccin-mocha --rev 40912e6418737e93b59a38bcf189270cbf26656d' + }; +in { + home.file."wallpapers" = { + source = walls; + recursive = true; + }; +} diff --git a/profiles/gui.nix b/profiles/gui.nix index 96666bd..f3ef404 100644 --- a/profiles/gui.nix +++ b/profiles/gui.nix @@ -16,5 +16,6 @@ ./../modules/home/noctalia.nix ./../modules/home/avatar.nix ./../modules/home/ghostty + ./../modules/home/wallpaper.nix ]; } \ No newline at end of file