Skip to content

Commit

Permalink
nixos-tests: enable system switch again
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 authored and mergify[bot] committed Oct 6, 2024
1 parent 135e6a2 commit 2750ed7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/sops-install-secrets/nixos-test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -285,6 +286,7 @@ in {
reloadUnits = [ "reload-trigger.service" ];
};
};
system.switch.enable = true;

# must run before sops sets up keys
boot.initrd.postDeviceCommands = ''
Expand Down Expand Up @@ -318,6 +320,7 @@ in {
ExecReload = "/bin/sh -c 'echo ok > /reloaded'";
};
};

};
testScript = ''
machine.wait_for_unit("multi-user.target")
Expand Down

0 comments on commit 2750ed7

Please sign in to comment.