sane.impermanence.dirs.home.<store> is now auto-generated and options can vary across deployments

This commit is contained in:
colin 2023-01-04 01:45:05 +00:00
parent 787857d27f
commit 9d7d1acc80

View File

@ -66,26 +66,11 @@ let
];
dirsSubModule = types.submodule {
options = {
plaintext = mkOption {
default = [];
type = types.listOf contextualizedDirOrShorthand;
description = "directories to persist in cleartext";
};
private = mkOption {
default = [];
type = types.listOf contextualizedDirOrShorthand;
description = "directories to store encrypted to the user's login password and auto-decrypt on login";
};
cryptClearOnBoot = mkOption {
default = [];
type = types.listOf contextualizedDirOrShorthand;
description = ''
directories to store encrypted to an auto-generated in-memory key and
wiped on boot. the main use is for sensitive cache dirs too large to fit in memory.
'';
};
};
options = mapAttrs (store: store-cfg: mkOption {
default = [];
type = types.listOf contextualizedDirOrShorthand;
description = "directories to persist in ${store}";
}) cfg.stores;
};
dirsModule = types.submodule ({ config, ... }: {