diff --git a/hosts/common/home.nix b/hosts/common/home.nix index a742022..c856b1b 100644 --- a/hosts/common/home.nix +++ b/hosts/common/home.nix @@ -27,13 +27,6 @@ MANPAGER = "nvim +Man!"; }; - dconf.settings = { - "org/virt-manager/virt-manager/connections" = { - autoconnect = [ "qemu:///system" ]; - uris = [ "qemu:///system" ]; - }; - }; - programs.zsh = { enable = true; enableCompletion = true; diff --git a/modules/home-manager/default.nix b/modules/home-manager/default.nix index 23c3f38..0218164 100644 --- a/modules/home-manager/default.nix +++ b/modules/home-manager/default.nix @@ -5,6 +5,7 @@ ./lf ./notif ./terminal + ./virt ./wm/hyprland.nix ]; } diff --git a/modules/home-manager/virt/default.nix b/modules/home-manager/virt/default.nix new file mode 100644 index 0000000..86bc5b4 --- /dev/null +++ b/modules/home-manager/virt/default.nix @@ -0,0 +1,6 @@ +{ ... }: +{ + imports = [ + ./qemu.nix + ]; +} diff --git a/modules/home-manager/virt/qemu.nix b/modules/home-manager/virt/qemu.nix new file mode 100644 index 0000000..18bb2d7 --- /dev/null +++ b/modules/home-manager/virt/qemu.nix @@ -0,0 +1,14 @@ +{ lib, smayzy, ... }: +let + inherit (lib) mkIf; +in +{ + config = mkIf smayzy.virt.enable { + dconf.settings = { + "org/virt-manager/virt-manager/connections" = { + autoconnect = [ "qemu:///system" ]; + uris = [ "qemu:///system" ]; + }; + }; + }; +}