mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 03:18:45 +08:00
system.impermanence: only persistent networkmanager connections if enabled
This commit is contained in:
parent
dce1220b24
commit
2042904cca
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user