feat(impermanence): msyds

This commit is contained in:
2025-09-08 10:32:22 -06:00
parent 9fcb115fa8
commit e2c5967d8f
2 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
{ config, lib, pkgs, ... }:
let cfg = config.sydnix.users.msyds.impermanence;
in {
options.sydnix.users.msyds.impermanence = {
enable = lib.mkEnableOption "top-level home files";
};
config = lib.mkIf cfg.enable {
sydnix.impermanence = {
enable = true;
directories = [
".wine"
"Music"
"Pictures"
"Documents"
"Videos"
"Games"
"src" # My projects.
"scratch" # My playgrounds.
"etc" # Miscellaneous belongings.
"git" # Other peoples' projects.
# Should "org" be declared in emacs.nix? I don't think so. I
# conjecture that my org files are extremely valuable with or without
# Emacs.
"org"
# REVIEW: I think it may be preferable to persist a few individual files
# under ~/.ssh, rather than the whole directory.
".ssh"
];
};
};
}

View File

@@ -39,6 +39,7 @@
};
users.msyds = {
emacs.enable = true;
impermanence.enable = true;
};
};