{ 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; }; }