mirror of
https://github.com/Moe1369/nix-fleet.git
synced 2026-04-24 15:59:06 +02:00
virt
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
security-sys-secureboot
|
security-sys-secureboot
|
||||||
security-sys-sopsnix
|
security-sys-sopsnix
|
||||||
users-sys-mo
|
users-sys-mo
|
||||||
|
hypervisor-sys-virtualization
|
||||||
];
|
];
|
||||||
home-manager.users.mo.imports = with config.flake.homeModules; [
|
home-manager.users.mo.imports = with config.flake.homeModules; [
|
||||||
apps-usr-onepassword-all
|
apps-usr-onepassword-all
|
||||||
|
|||||||
11
modules/hypervisor/sys/virtualization.nix
Normal file
11
modules/hypervisor/sys/virtualization.nix
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{ ... }: {
|
||||||
|
flake.nixosModules.hypervisor-sys-virtualization = { config, pkgs, ... }: {
|
||||||
|
virtualisation.libvirtd.enable = true;
|
||||||
|
programs.virt-manager.enable = true;
|
||||||
|
networking.firewall.trustedInterfaces = [ "virbr0" ];
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
dnsmasq
|
||||||
|
];
|
||||||
|
users.users.mo.extraGroups = [ "libvirtd" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user