feat(home): move cli config to homes and use home-manager modules

This commit is contained in:
Mohammad Rafiq 2025-06-14 19:15:48 +08:00
parent 1a3ff4b92a
commit 00e3ea65c8
No known key found for this signature in database
17 changed files with 198 additions and 271 deletions

View file

@ -1,4 +1,9 @@
{ config, lib, ... }:
{
config,
lib,
pkgs,
...
}:
let
inherit (lib) mkOption;
inherit (lib.types) listOf str;
@ -12,15 +17,31 @@ in
};
config = {
# Helper options
home.persistence."/persist/home/${config.snowfallorg.user.name}" = {
directories = config.persistDirs;
allowOther = true;
};
# Global options
persistDirs = [
".ssh"
".config/sops/age"
".local/share/zoxide"
];
home.packages = with pkgs; [ ripgrep ];
programs = {
zoxide.enable = true;
nix-index.enable = true;
nix-index-database.comma.enable = true;
ssh = {
enable = true;
extraConfig = ''
Host *
SetEnv TERM=xterm-256color
'';
};
};
home.stateVersion = "24.11";
};