diff --git a/flake.lock b/flake.lock index 7200b9f5..00a0a9c5 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1725534445, - "narHash": "sha256-Yd0FK9SkWy+ZPuNqUgmVPXokxDgMJoGuNpMEtkfcf84=", + "lastModified": 1728093190, + "narHash": "sha256-CAZF2NRuHmqTtRTNAruWpHA43Gg2UvuCNEIzabP0l6M=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "9bb1e7571aadf31ddb4af77fc64b2d59580f9a39", + "rev": "e2f08f4d8b3ecb5cf5c9fd9cb2d53bb3c71807da", "type": "github" }, "original": { @@ -18,11 +18,11 @@ }, "nixpkgs-stable": { "locked": { - "lastModified": 1725762081, - "narHash": "sha256-vNv+aJUW5/YurRy1ocfvs4q/48yVESwlC/yHzjkZSP8=", + "lastModified": 1728156290, + "narHash": "sha256-uogSvuAp+1BYtdu6UWuObjHqSbBohpyARXDWqgI12Ss=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "dc454045f5b5d814e5862a6d057e7bb5c29edc05", + "rev": "17ae88b569bb15590549ff478bab6494dde4a907", "type": "github" }, "original": { diff --git a/pkgs/sops-install-secrets/nixos-test.nix b/pkgs/sops-install-secrets/nixos-test.nix index 0d9b0bd3..488b8a35 100644 --- a/pkgs/sops-install-secrets/nixos-test.nix +++ b/pkgs/sops-install-secrets/nixos-test.nix @@ -13,6 +13,7 @@ let secrets.test_key.neededForUsers = true; secrets."nested/test/file".owner = "example-user"; }; + system.switch.enable = true; users.users.example-user = lib.mkMerge [ (lib.mkIf (! config.systemd.sysusers.enable) { @@ -285,6 +286,7 @@ in { reloadUnits = [ "reload-trigger.service" ]; }; }; + system.switch.enable = true; # must run before sops sets up keys boot.initrd.postDeviceCommands = '' @@ -318,6 +320,7 @@ in { ExecReload = "/bin/sh -c 'echo ok > /reloaded'"; }; }; + }; testScript = '' machine.wait_for_unit("multi-user.target")