From bdbefcb23c3c571765fd3604b366d320ed665014 Mon Sep 17 00:00:00 2001 From: kat witch Date: Wed, 6 Jan 2021 05:20:12 +0000 Subject: [PATCH] Those virtualisation things should've been in that file. Oops. --- configuration/hosts/samhain/configuration.nix | 10 ++++++++++ configuration/profiles/development/default.nix | 8 -------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/configuration/hosts/samhain/configuration.nix b/configuration/hosts/samhain/configuration.nix index ae09ad3a..39e911c3 100644 --- a/configuration/hosts/samhain/configuration.nix +++ b/configuration/hosts/samhain/configuration.nix @@ -19,6 +19,16 @@ boot.loader.efi.canTouchEfiVariables = true; boot.supportedFilesystems = [ "zfs" "xfs" ]; + virtualisation.libvirtd = { + enable = true; + qemuOvmf = true; + qemuRunAsRoot = false; + onBoot = "ignore"; + onShutdown = "shutdown"; + }; + + users.users.kat.extraGroups = [ "libvirtd" ]; + # video=efifb:off allows the 580 to be passed through regardless of being the boot display and allows the 560 to act as a console device # pci=noats means that it doesn't kernel panic on my specific configuration boot.kernelParams = [ diff --git a/configuration/profiles/development/default.nix b/configuration/profiles/development/default.nix index 107a26da..078c62b8 100644 --- a/configuration/profiles/development/default.nix +++ b/configuration/profiles/development/default.nix @@ -1,14 +1,6 @@ { config, lib, pkgs, ... }: { - virtualisation.libvirtd = { - enable = true; - qemuOvmf = true; - qemuRunAsRoot = false; - onBoot = "ignore"; - onShutdown = "shutdown"; - }; - users.users.kat.extraGroups = [ "libvirtd" ]; environment.systemPackages = let python-env = python-packages: