Skip to content

Commit

Permalink
systemd: systemd.tmpfiles.settings test
Browse files Browse the repository at this point in the history
Signed-off-by: phanirithvij <[email protected]>
  • Loading branch information
phanirithvij committed Nov 1, 2024
1 parent 91323fb commit 79cd7d9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/example.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,10 @@
)
);
systemd.tmpfiles.rules = [ "D /var/tmp/system-manager 0755 root root -" ];
systemd.tmpfiles.settings.sample = {
"/var/tmp/sample".d = {
mode = "0755";
};
};
};
}
4 changes: 4 additions & 0 deletions test/nix/modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ forEachUbuntuImage "example" {
vm.fail("grep -F 'launch_the_rockets = false' /etc/foo.conf")
vm.succeed("test -d /var/tmp/system-manager")
vm.succeed("test -d /var/tmp/sample")
vm.succeed("test -f /etc/tmpfiles.d/sample.conf")
vm.succeed("test -f /etc/tmpfiles.d/00-system-manager.conf")
${system-manager.lib.activateProfileSnippet {
node = "vm";
Expand Down

0 comments on commit 79cd7d9

Please sign in to comment.