From b95de4e104f8d7e34284123a6abe8c0bcad32f33 Mon Sep 17 00:00:00 2001 From: weriomat Date: Tue, 13 May 2025 16:49:29 +0200 Subject: [PATCH 1/2] fix the deprecated overlay flake output --- flake.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index bdf81934..78e111a9 100644 --- a/flake.nix +++ b/flake.nix @@ -16,8 +16,8 @@ }; outputs = { self, nixpkgs, utils, ... }@inputs: - rec { - overlay = final: prev: let + { + overlays.default = final: prev: let darwinOptions = final.lib.optionalAttrs final.stdenv.isDarwin { buildInputs = with final.darwin.apple_sdk.frameworks; [ SystemConfiguration @@ -150,7 +150,6 @@ }; }; }; - overlays.default = overlay; } // utils.lib.eachSystem (utils.lib.defaultSystems ++ ["aarch64-darwin"]) (system: let From 91c89c1437b7de08cb6813c243ae4d29ca80900c Mon Sep 17 00:00:00 2001 From: weriomat Date: Tue, 13 May 2025 16:51:38 +0200 Subject: [PATCH 2/2] fix tests need the switch-to-configuration binary for successfull deploys [This](https://github.com/NixOS/nixpkgs/commit/4cfbbb3c1ded303eccb09d53319dfb1cd862bfdc) commit has disabled the option by default, but we need the `switch-to-configuration` binary in order to successfully deploy to the server --- nix/tests/common.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nix/tests/common.nix b/nix/tests/common.nix index 9e5f363b..6f4fa8c8 100644 --- a/nix/tests/common.nix +++ b/nix/tests/common.nix @@ -15,6 +15,9 @@ }; }; + # The "nixos-test-profile" profile disables the `switch-to-configuration` script by default + system.switch.enable = true; + virtualisation.graphics = false; virtualisation.memorySize = 1536; boot.loader.grub.enable = false;