diff options
Diffstat (limited to 'modules/by-name/im/impermanence/module.nix')
| -rw-r--r-- | modules/by-name/im/impermanence/module.nix | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/modules/by-name/im/impermanence/module.nix b/modules/by-name/im/impermanence/module.nix index e31cfaaf..78ad570f 100644 --- a/modules/by-name/im/impermanence/module.nix +++ b/modules/by-name/im/impermanence/module.nix @@ -31,6 +31,21 @@ in { })); description = "The directories to persist"; }; + + userDirectories = lib.mkOption { + type = lib.types.listOf (lib.types.either lib.types.str (lib.types.submodule { + options = { + directory = lib.mkOption { + type = lib.types.str; + }; + mode = lib.mkOption { + type = lib.types.str; + }; + }; + })); + default = []; + description = "The directories to persist"; + }; }; imports = [ @@ -53,14 +68,13 @@ in { ".local/state/wireplumber" ".config/Signal" - ".config/iamb/profiles" ".cache" "media" "repos" - "school" - ]; + "documents" + ] ++ cfg.userDirectories; }; files = [ |
