From ef9aa584d76118d79361d30409bdd3de871b1a29 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Thu, 12 Oct 2023 22:38:03 +0200 Subject: [PATCH] add GNOME boxes --- hosts/yodaNas/configuration.nix | 1 + hosts/yodaTab/configuration.nix | 1 + hosts/yodaTux/configuration.nix | 1 + hosts/yodaYoga/configuration.nix | 1 + modules/boxes.nix | 14 ++++++++++++++ 5 files changed, 18 insertions(+) create mode 100644 modules/boxes.nix diff --git a/hosts/yodaNas/configuration.nix b/hosts/yodaNas/configuration.nix index eb54174..ff6dbea 100644 --- a/hosts/yodaNas/configuration.nix +++ b/hosts/yodaNas/configuration.nix @@ -19,6 +19,7 @@ #../../modules/gnome-fractional-scaling.nix #../../modules/programs.nix + #../../modules/boxes.nix #../../modules/autostart.nix #../../modules/wallpaper.nix #../../modules/fwupd-gnome.nix diff --git a/hosts/yodaTab/configuration.nix b/hosts/yodaTab/configuration.nix index 1511093..d129784 100644 --- a/hosts/yodaTab/configuration.nix +++ b/hosts/yodaTab/configuration.nix @@ -18,6 +18,7 @@ #../../modules/gnome-fractional-scaling.nix ../../modules/programs.nix + #../../modules/boxes.nix ../../modules/autostart.nix ../../modules/wallpaper.nix ../../modules/fwupd-gnome.nix diff --git a/hosts/yodaTux/configuration.nix b/hosts/yodaTux/configuration.nix index e2272b4..fe5934a 100644 --- a/hosts/yodaTux/configuration.nix +++ b/hosts/yodaTux/configuration.nix @@ -18,6 +18,7 @@ ../../modules/gnome-fractional-scaling.nix ../../modules/programs.nix + ../../modules/boxes.nix ../../modules/autostart.nix ../../modules/wallpaper.nix ../../modules/fwupd-gnome.nix diff --git a/hosts/yodaYoga/configuration.nix b/hosts/yodaYoga/configuration.nix index df54eed..2bb6ad3 100644 --- a/hosts/yodaYoga/configuration.nix +++ b/hosts/yodaYoga/configuration.nix @@ -19,6 +19,7 @@ #../../modules/gnome-fractional-scaling.nix #../../modules/programs.nix + #../../modules/boxes.nix #../../modules/autostart.nix #../../modules/wallpaper.nix #../../modules/fwupd-gnome.nix diff --git a/modules/boxes.nix b/modules/boxes.nix new file mode 100644 index 0000000..ef0852a --- /dev/null +++ b/modules/boxes.nix @@ -0,0 +1,14 @@ +{ config, pkgs, ... }: +{ + # https://nixos.wiki/wiki/Libvirt + + # libvirt is a dependency of GNOME Boxes + virtualisation.libvirtd.enable = true; + users.users.yoda = { + extraGroups = [ "libvirtd" ]; + + packages = with pkgs; [ + gnome.gnome-boxes # Virtual machines + ]; + }; +}