nixos: hardware: networking persist connections
This commit is contained in:
parent
8607b3c577
commit
2f3b9950e1
|
@ -22,6 +22,16 @@ in
|
||||||
config = lib.mkMerge [
|
config = lib.mkMerge [
|
||||||
(lib.mkIf cfg.wireless.enable {
|
(lib.mkIf cfg.wireless.enable {
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
|
# Persist NetworkManager files
|
||||||
|
my.system.persist.files = [
|
||||||
|
"/var/lib/NetworkManager/secret_key"
|
||||||
|
"/var/lib/NetworkManager/seen-bssids"
|
||||||
|
"/var/lib/NetworkManager/timestamps"
|
||||||
|
];
|
||||||
|
my.system.persist.directories = [
|
||||||
|
"/etc/NetworkManager/system-connections"
|
||||||
|
];
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue