feat(impermanence): msyds
This commit is contained in:
33
modules/home/users/msyds/impermanence.nix
Normal file
33
modules/home/users/msyds/impermanence.nix
Normal 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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -39,6 +39,7 @@
|
|||||||
};
|
};
|
||||||
users.msyds = {
|
users.msyds = {
|
||||||
emacs.enable = true;
|
emacs.enable = true;
|
||||||
|
impermanence.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user