refactor
This commit is contained in:
22
modules/darwin-home.nix
Normal file
22
modules/darwin-home.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
setWallpaperScript = import ./darwin-wallpaper.nix {inherit pkgs;};
|
||||
in {
|
||||
imports = [
|
||||
./darwin-ghostty.nix
|
||||
];
|
||||
|
||||
home = {
|
||||
packages = pkgs.callPackage ./darwin-packages.nix {};
|
||||
activation = {
|
||||
"setWallpaper" =
|
||||
lib.hm.dag.entryAfter ["revealHomeLibraryDirectory"] ''
|
||||
echo "[+] Setting wallpaper"
|
||||
${setWallpaperScript}/bin/set-wallpaper-script
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user