From 6f5829e6abb8c3730c368d912652658fd72a953a Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Thu, 8 Aug 2024 04:34:03 +0200 Subject: [PATCH] hosts/vm: update configuration and create base vm --- hosts/{vm.nix => vm-base.nix} | 28 +++++++++++++++------------- hosts/vm-gnome.nix | 9 +++++++++ 2 files changed, 24 insertions(+), 13 deletions(-) rename hosts/{vm.nix => vm-base.nix} (51%) create mode 100644 hosts/vm-gnome.nix diff --git a/hosts/vm.nix b/hosts/vm-base.nix similarity index 51% rename from hosts/vm.nix rename to hosts/vm-base.nix index 0b99d01..1f3b796 100644 --- a/hosts/vm.nix +++ b/hosts/vm-base.nix @@ -1,19 +1,21 @@ -{ ... }: +{ lib, modulesPath, ... }: { imports = [ - ../nix-os/core.nix - ../nix-os/docker.nix - ../nix-os/desktopManagers/gnome.nix - ../nix-os/displayManagers/gdm.nix - #../nix-os/desktop/kde-plasma.nix - ../nix-os/shell.nix - ../nix-os/virtualization.nix - ../nix-os/polkit/disable-shutdown.nix - ../nix-os/locale.nix - ../nix-os/adb.nix + "${modulesPath}/virtualisation/qemu-vm.nix" ../nix-os/account.nix - ../nix-os/xdg-default-apps.nix + ../nix-os/core.nix + ../nix-os/locale.nix + ../nix-os/polkit/disable-shutdown.nix + ../nix-os/shell.nix ../nix-os/udev.nix + ../nix-os/xdg-default-apps.nix ]; -} \ No newline at end of file + + config = { + services.syncthing.enable = lib.mkForce false; + virtualisation = { + memorySize = 4096; + }; + }; +} diff --git a/hosts/vm-gnome.nix b/hosts/vm-gnome.nix new file mode 100644 index 0000000..2b54493 --- /dev/null +++ b/hosts/vm-gnome.nix @@ -0,0 +1,9 @@ +{ lib, ... }: + +{ + imports = [ + ./vm-base.nix + ../nix-os/desktopManagers/gnome.nix + ../nix-os/displayManagers/gdm.nix + ]; +}