feat(home): move cli config to homes and use home-manager modules
This commit is contained in:
parent
1a3ff4b92a
commit
00e3ea65c8
17 changed files with 198 additions and 271 deletions
|
@ -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";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue