refactor more
This commit is contained in:
@@ -1,37 +1,23 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
constants,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./atuin.nix
|
||||
./bash.nix
|
||||
./bat.nix
|
||||
./direnv.nix
|
||||
./eza.nix
|
||||
./fish.nix
|
||||
./fzf.nix
|
||||
./git.nix
|
||||
./jjui.nix
|
||||
./jujutsu.nix
|
||||
./lazygit.nix
|
||||
./mise.nix
|
||||
./neovim
|
||||
./opencode.nix
|
||||
./ripgrep.nix
|
||||
./ssh.nix
|
||||
./starship.nix
|
||||
./zellij.nix
|
||||
./zk.nix
|
||||
./zoxide.nix
|
||||
./zsh.nix
|
||||
];
|
||||
|
||||
}: 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