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:
parent
135e6a2ba1
commit
2750ed784e
1 changed files with 3 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue