39 lines
664 B
Nix
39 lines
664 B
Nix
{ config, lib, ... }:
|
|
let
|
|
inherit (lib) mkOption;
|
|
inherit (lib.types) listOf str;
|
|
in
|
|
{
|
|
options = {
|
|
persistDirs = mkOption {
|
|
type = listOf str;
|
|
default = [ ];
|
|
};
|
|
};
|
|
|
|
config = {
|
|
# Helper options
|
|
home.persistence."/persist/home/${config.snowfallorg.user.name}" = {
|
|
directories = config.persistDirs;
|
|
allowOther = true;
|
|
};
|
|
|
|
# Global options
|
|
persistDirs = [
|
|
".ssh"
|
|
".config/sops/age"
|
|
];
|
|
|
|
programs = {
|
|
ssh = {
|
|
enable = true;
|
|
extraConfig = ''
|
|
Host *
|
|
SetEnv TERM=xterm-256color
|
|
'';
|
|
};
|
|
};
|
|
|
|
home.stateVersion = "24.11";
|
|
};
|
|
}
|