From 4253e78b0784fd5d424a06d785ef6bdec0dd4e14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 2 Dec 2024 19:47:05 +0200 Subject: [PATCH] vm: only x86_64-linux --- flake.nix | 18 +++++------------- hosts/vm/configuration.nix | 6 ++++-- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/flake.nix b/flake.nix index c36686a..e8e8868 100644 --- a/flake.nix +++ b/flake.nix @@ -123,28 +123,20 @@ }) ]; - mkVM = - system: - nixpkgs.lib.nixosSystem { - inherit system; + in + { + nixosConfigurations = { + vm = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; modules = [ { nixpkgs.overlays = overlays; } ./hosts/vm/configuration.nix - - ./modules - ./modules/profiles/desktop - home-manager.nixosModules.home-manager ]; specialArgs = { inherit myData; } // inputs; }; - in - { - nixosConfigurations = { - vm-x86_64 = mkVM "x86_64-linux"; - vm-aarch64 = mkVM "aarch64-linux"; mtworx = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; diff --git a/hosts/vm/configuration.nix b/hosts/vm/configuration.nix index 9bef17e..2c3e02b 100644 --- a/hosts/vm/configuration.nix +++ b/hosts/vm/configuration.nix @@ -7,10 +7,13 @@ imports = [ "${modulesPath}/profiles/all-hardware.nix" "${modulesPath}/installer/cd-dvd/iso-image.nix" + ../../modules + ../../modules/profiles/btrfs + ../../modules/profiles/desktop ]; mj = { - stateVersion = "24.05"; + stateVersion = "24.11"; timeZone = "UTC"; username = "nixos"; @@ -24,7 +27,6 @@ boot = { loader.systemd-boot.enable = true; supportedFilesystems = [ - "zfs" "btrfs" ]; };