fix: impermanence auto enabled
This commit is contained in:
parent
6ae872a683
commit
588798471e
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,8 @@ in
|
||||||
{
|
{
|
||||||
options.my.profiles.impermanence.enable = mkEnableOption "impermanence";
|
options.my.profiles.impermanence.enable = mkEnableOption "impermanence";
|
||||||
|
|
||||||
|
imports = [{ environment.persistence."/persist".enable = cfg.enable; }];
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
age.secrets = {
|
age.secrets = {
|
||||||
root-password.file = ../../secrets/root-password.age;
|
root-password.file = ../../secrets/root-password.age;
|
||||||
|
@ -18,7 +20,6 @@ in
|
||||||
};
|
};
|
||||||
users.mutableUsers = false;
|
users.mutableUsers = false;
|
||||||
environment.persistence."/persist" = {
|
environment.persistence."/persist" = {
|
||||||
enable = cfg.enable;
|
|
||||||
hideMounts = true;
|
hideMounts = true;
|
||||||
directories = [
|
directories = [
|
||||||
"/etc/NetworkManager/system-connections"
|
"/etc/NetworkManager/system-connections"
|
||||||
|
|
Loading…
Reference in a new issue