diff --git a/common.nix b/common.nix index 742074c..41701f9 100644 --- a/common.nix +++ b/common.nix @@ -37,6 +37,7 @@ # Home Manager # home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; + home-manager.extraSpecialArgs = { inherit inputs; }; home-manager.users.fred = import ./home-manager/fred.nix; ############################################################################# diff --git a/home-manager/gnome-hm.nix b/home-manager/gnome-hm.nix index 6bb9ecc..56d8ca5 100644 --- a/home-manager/gnome-hm.nix +++ b/home-manager/gnome-hm.nix @@ -1,14 +1,9 @@ -{ config, pkgs, lib, osConfig, ... }: +{ config, pkgs, lib, osConfig, inputs, ... }: { config = lib.mkIf (lib.elem osConfig.networking.hostName [ "FredOS-Gaming" "FredOS-Macbook" ]) { - # Download wallpaper from GitHub repo and symlink it + home.file.".local/share/backgrounds/wallpaper.png".source = - let - wallpaperRepo = builtins.fetchGit { - url = "https://github.com/ediblerope/nixos-config"; - ref = "main"; - }; - in "${wallpaperRepo}/walls/wallpaper.png"; + "${inputs.self}/walls/wallpaper.png"; # GNOME dconf settings dconf.settings = {