Skip to content

Commit 8617106

Browse files
zowoqphaer
authored andcommitted
set systemd.enableStrictShellChecks for test configs
this ensures that these checks pass for the configs in this repo without imposing the check on downstream users
1 parent 6bd9331 commit 8617106

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

dev/test-configurations.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ let
1919
boot.loader.grub.devices = lib.mkForce [ "/dev/sda" ];
2020
fileSystems."/".device = lib.mkDefault "/dev/sda";
2121

22+
systemd.enableStrictShellChecks = true;
23+
2224
# Don't reinstantiate nixpkgs for every nixos eval.
2325
# Also important to have nixpkgs config which allows for some required insecure packages
2426
nixpkgs = {
@@ -58,6 +60,10 @@ in
5860
modules = [
5961
dummy
6062
self.nixosModules.hardware-digitalocean-droplet
63+
{
64+
systemd.services.digitalocean-entropy-seed.enableStrictShellChecks = false;
65+
systemd.services.digitalocean-metadata.enableStrictShellChecks = false;
66+
}
6167
];
6268
};
6369
example-hardware-hetzner-cloud = nixosSystem {
@@ -163,6 +169,7 @@ in
163169
self.nixosModules.roles-github-actions-runner
164170
dummy
165171
{
172+
systemd.services.cachix-watch-store-agent.enableStrictShellChecks = false;
166173
roles.github-actions-runner.cachix.cacheName = "cache-name";
167174
roles.github-actions-runner.cachix.tokenFile = "/run/cachix-token-file";
168175
roles.github-actions-runner.tokenFile = "/run/gha-token-file";
@@ -175,6 +182,7 @@ in
175182
self.nixosModules.roles-github-actions-runner
176183
dummy
177184
{
185+
systemd.services.cachix-watch-store-agent.enableStrictShellChecks = false;
178186
roles.github-actions-runner.cachix.cacheName = "cache-name";
179187
roles.github-actions-runner.cachix.tokenFile = "/run/cachix-token-file";
180188
roles.github-actions-runner.githubApp = {
@@ -191,6 +199,7 @@ in
191199
self.nixosModules.roles-github-actions-runner
192200
dummy
193201
{
202+
systemd.services.cachix-watch-store-agent.enableStrictShellChecks = false;
194203
roles.github-actions-runner = {
195204
githubApp = {
196205
id = "1234";

0 commit comments

Comments
 (0)