fix: impermanence auto enabled

This commit is contained in:
Moritz Böhme 2025-02-19 10:39:55 +01:00
parent 6ae872a683
commit 588798471e

View file

@ -7,6 +7,8 @@ in
{
options.my.profiles.impermanence.enable = mkEnableOption "impermanence";
imports = [{ environment.persistence."/persist".enable = cfg.enable; }];
config = mkIf cfg.enable {
age.secrets = {
root-password.file = ../../secrets/root-password.age;
@ -18,7 +20,6 @@ in
};
users.mutableUsers = false;
environment.persistence."/persist" = {
enable = cfg.enable;
hideMounts = true;
directories = [
"/etc/NetworkManager/system-connections"