system.impermanence: only persistent networkmanager connections if enabled

This commit is contained in:
陈浩南 2024-03-21 15:37:21 +08:00
parent dce1220b24
commit 2042904cca

View File

@ -20,7 +20,6 @@ inputs:
hideMounts = true;
directories =
[
{ directory = "/etc/NetworkManager/system-connections"; mode = "0700"; }
"/home"
"/root"
"/var/db"
@ -30,7 +29,9 @@ inputs:
"/var/backup"
{ directory = "/var/lib/docker/volumes"; mode = "0710"; }
"/srv"
];
]
++ (inputs.lib.optional inputs.config.nixos.system.networking.networkManager.enable
{ directory = "/etc/NetworkManager/system-connections"; mode = "0700"; });
files =
[
"/etc/machine-id"