From 6f7f3f24614600ea5d0915b0499310a9af027fd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 3 Nov 2025 16:04:20 +0100 Subject: [PATCH] Restrict flake to Linux systems and enable allowUnfree for nixosConfigurations This project is Linux-specific (microVMs, libkrun, systemd, etc.), so the flake now only exports packages and checks for x86_64-linux and aarch64-linux systems. This prevents Darwin build failures. Additionally, nixosConfigurations now set allowUnfree = true to allow packages like zerotierone that have unfree licenses. --- flake.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 0bf8f5e..c151f0c 100644 --- a/flake.nix +++ b/flake.nix @@ -257,6 +257,7 @@ modules = [ self.nixosModules.default self.nixosModules.testvm + { nixpkgs.config.allowUnfree = true; } ]; }; @@ -265,9 +266,10 @@ modules = [ self.nixosModules.default self.nixosModules.testvm + { nixpkgs.config.allowUnfree = true; } ]; }; - } // flake-utils.lib.eachDefaultSystem (system: + } // flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" ] (system: let pkgs = import nixpkgs { inherit system;