commit ef76d6135db54e521da0c072524ba211bbfc2834
parent cfa78c025ffce19cabcea88521510f04b185c086
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Sat, 28 Jun 2025 11:27:14 +0200
parent cfa78c025ffce19cabcea88521510f04b185c086
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Sat, 28 Jun 2025 11:27:14 +0200
config/nixos/modules/networking: add `NetworkManager`
1 file changed, 28 insertions(+), 0 deletions(-)
diff --git a/config/nixos/modules/networking/NetworkManager.nix b/config/nixos/modules/networking/NetworkManager.nix @@ -0,0 +1,28 @@ +{ + povSelf, + config, + lib, + ... +}: +let + inherit (lib) types; + cfg = lib.getAttrFromPath povSelf config; + +in +{ + + options.enable = { + type = types.bool; + default = false; + }; + + config = lib.mkIf cfg.enable { + modules.filesystem.impermanence.system.dirs = [ + "/var/lib/NetworkManager" + "/etc/NetworkManager/system-connections" + ]; + + networking.networkmanager.enable = true; + }; + +}