forked from poz/niksos
move libvirt stuff to options/
This commit is contained in:
parent
bb6fc2f47c
commit
52a896d4f0
4 changed files with 25 additions and 19 deletions
|
@ -40,7 +40,7 @@
|
|||
security.polkit.enable = true;
|
||||
|
||||
users.users.${config.myOptions.other.system.username} = {
|
||||
extraGroups = [ "libvirtd" "video" ];
|
||||
extraGroups = [ "video" ];
|
||||
};
|
||||
|
||||
environment.sessionVariables = {
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
|
23
options/common/libvirt.nix
Normal file
23
options/common/libvirt.nix
Normal 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" ];
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in a new issue