mirror of
https://github.com/Platonic-Systems/process-compose-flake.git
synced 2024-09-11 14:07:00 +03:00
test: systemd: do not run as root user
This commit is contained in:
parent
895426fad2
commit
c6b1ea6426
@ -71,6 +71,9 @@ in
|
||||
testScript = testLibrary + "\n" + config.testScript;
|
||||
name = "process-compose-${name}-test";
|
||||
nodes.machine = {
|
||||
users.users.tester = {
|
||||
isNormalUser = true;
|
||||
};
|
||||
systemd.services."process-compose-${name}" = {
|
||||
enable = true;
|
||||
wantedBy = [ "default.target" ];
|
||||
@ -79,6 +82,7 @@ in
|
||||
ExecStart = ''
|
||||
${lib.getExe config.outputs.package} -t=false
|
||||
'';
|
||||
User = "tester";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user