refactor
This commit is contained in:
24
profiles/home.nix
Normal file
24
profiles/home.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
constants,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
setWallpaperScript = import ./wallpaper.nix {inherit pkgs;};
|
||||
in {
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
home = {
|
||||
packages = pkgs.callPackage ./packages.nix {inherit inputs;};
|
||||
stateVersion = constants.stateVersions.homeManager;
|
||||
activation =
|
||||
lib.mkIf pkgs.stdenv.isDarwin {
|
||||
"setWallpaper" =
|
||||
lib.hm.dag.entryAfter ["revealHomeLibraryDirectory"] ''
|
||||
echo "[+] Setting wallpaper"
|
||||
${setWallpaperScript}/bin/set-wallpaper-script
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user