refactor more

This commit is contained in:
2025-12-11 20:07:46 +00:00
parent b85728470c
commit 07c39081bb
15 changed files with 190 additions and 195 deletions

View File

@@ -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
'';
};
};
}