This commit is contained in:
2026-01-25 13:27:03 -06:00
parent 6e70652719
commit e0ae6fd31e
3 changed files with 14 additions and 2 deletions

View File

@@ -25,6 +25,11 @@
type = with types; bool; type = with types; bool;
default = false; default = false;
}; };
virtual-machines = mkOption {
type = with types; bool;
default = false;
};
}; };
@@ -60,6 +65,13 @@
size = 16; size = 16;
}; };
dconf.settings = lib.mkIf config.homeconfig.virtual-machines {
"org/virt-manager/virt-manager/connections" = {
autoconnect = ["qemu:///system"];
uris = ["qemu:///system"];
};
};
gtk = lib.mkIf (config.homeconfig.graphical && config.homeconfig.hyprland.enable) { gtk = lib.mkIf (config.homeconfig.graphical && config.homeconfig.hyprland.enable) {
enable = true; enable = true;
theme.name = "Tokyonight-Dark"; theme.name = "Tokyonight-Dark";

View File

@@ -11,7 +11,7 @@
name = lib.mkDefault "nathan"; name = lib.mkDefault "nathan";
isNormalUser = lib.mkDefault true; isNormalUser = lib.mkDefault true;
#hashedPasswordFile = lib.mkIf (cfg.hashedPasswordFile != null) cfg.hashedPasswordFile; #hashedPasswordFile = lib.mkIf (cfg.hashedPasswordFile != null) cfg.hashedPasswordFile;
extraGroups = [ "networkmanager" "docker" ]; extraGroups = [ "networkmanager" "docker" "libvirtd" ];
openssh.authorizedKeys.keys = with config.sysconfig.users.nathan; lib.mkIf config.sysconfig.services.openssh.enable ( openssh.authorizedKeys.keys = with config.sysconfig.users.nathan; lib.mkIf config.sysconfig.services.openssh.enable (
ssh.keys ++ (map (z: config.sysconfig.sshHostKeys.${z}) ssh.hosts) ssh.keys ++ (map (z: config.sysconfig.sshHostKeys.${z}) ssh.hosts)
); );