This commit is contained in:
xyno (Philipp Hochkamp) 2023-06-30 01:16:49 +02:00
parent 94d60b5a4e
commit 061293e537
35 changed files with 319 additions and 276 deletions

View file

@ -12,9 +12,13 @@ in
type = lib.types.listOf lib.types.str;
default = [ ];
};
options.ragon.persist.baseDir = lib.mkOption {
type = lib.types.str;
default = "/persistent";
};
config = lib.mkIf cfg.enable {
environment.persistence."/persistent" = {
environment.persistence.${cfg.baseDir} = {
directories = [
"/etc/nixos"
"/etc/NetworkManager/system-connections"