1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2024-12-14 11:57:52 +00:00

nixos-tests: enable system switch again

This commit is contained in:
Jörg Thalheim 2024-10-06 17:29:14 +02:00 committed by mergify[bot]
parent 135e6a2ba1
commit 2750ed784e

View file

@ -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")