vm
This commit is contained in:
parent
8cc5923e4e
commit
3316abb573
2 changed files with 26 additions and 0 deletions
|
|
@ -95,6 +95,7 @@
|
||||||
system.ananicy.enable = true;
|
system.ananicy.enable = true;
|
||||||
system.zswap.enable = true;
|
system.zswap.enable = true;
|
||||||
system.kdeconnect.enable = true;
|
system.kdeconnect.enable = true;
|
||||||
|
system.virt-manager.enable = true;
|
||||||
# editors
|
# editors
|
||||||
editors.micro.enable = true;
|
editors.micro.enable = true;
|
||||||
editors.vscode.enable = true;
|
editors.vscode.enable = true;
|
||||||
|
|
|
||||||
25
modules/software/system/virt-manager.nix
Normal file
25
modules/software/system/virt-manager.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.modules.software.system.virt-manager;
|
||||||
|
in {
|
||||||
|
options.modules.software.system.virt-manager = {
|
||||||
|
enable = mkEnableOption "Enable virt-manager, a GUI VM manager and runner";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.virt-manager.enable = true;
|
||||||
|
|
||||||
|
users.groups.libvirtd.members = [ config.user.name ];
|
||||||
|
|
||||||
|
virtualisation.libvirtd.enable = true;
|
||||||
|
virtualisation.libvirtd.qemu.vhostUserPackages = with pkgs; [ virtiofsd ];
|
||||||
|
virtualisation.spiceUSBRedirection.enable = true;
|
||||||
|
|
||||||
|
hm.dconf.settings."org/virt-manager/virt-manager/connections" = {
|
||||||
|
autoconnect = ["qemu:///system"];
|
||||||
|
uris = ["qemu:///system"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue