move libvirt stuff to options/

This commit is contained in:
jacekpoz 2024-02-29 01:41:04 +01:00
parent bb6fc2f47c
commit 52a896d4f0
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C
4 changed files with 25 additions and 19 deletions

View file

@ -40,7 +40,7 @@
security.polkit.enable = true;
users.users.${config.myOptions.other.system.username} = {
extraGroups = [ "libvirtd" "video" ];
extraGroups = [ "video" ];
};
environment.sessionVariables = {

View file

@ -42,30 +42,12 @@
};
};
virtualisation = {
libvirtd = {
enable = true;
onBoot = "ignore";
qemu = {
ovmf.enable = true;
runAsRoot = false;
swtpm.enable = true;
};
};
};
networking.firewall.trustedInterfaces = [ "virbr0" ];
programs.dconf.enable = true;
security.sudo.package = pkgs.sudo.override { withInsults = true; };
security.polkit.enable = true;
users.users.${config.myOptions.other.system.username} = {
extraGroups = [ "libvirtd" ];
};
environment.sessionVariables = {
CHROME_EXECUTABLE = "${pkgs.ungoogled-chromium}/bin/chromium";
};

View file

@ -4,6 +4,7 @@ _: {
../../options/common/cpu/amd.nix
../../options/common/docs.nix
../../options/common/gpu/amd.nix
../../options/common/libvirt.nix
../../options/common/networking.nix
../../options/common/nix.nix
../../options/common/oomd.nix

View file

@ -0,0 +1,23 @@
{
config,
...
}: {
virtualisation = {
libvirtd = {
enable = true;
onBoot = "ignore";
qemu = {
ovmf.enable = true;
runAsRoot = false;
swtpm.enable = true;
};
};
};
networking.firewall.trustedInterfaces = [ "virbr0" ];
users.users.${config.myOptions.other.system.username} = {
extraGroups = [ "libvirtd" ];
};
}