2023-05-13 00:08:12 +02:00
|
|
|
{ lib, ... }:
|
2021-11-23 07:06:43 +01:00
|
|
|
|
|
|
|
{
|
2023-05-13 00:08:12 +02:00
|
|
|
home.username = lib.mkForce "root";
|
2021-11-23 07:06:43 +01:00
|
|
|
|
2023-05-13 00:08:12 +02:00
|
|
|
systemd.user.services."test-service@" = {
|
|
|
|
Unit = { Description = "A basic test service"; };
|
2021-11-23 07:06:43 +01:00
|
|
|
|
2023-05-13 00:08:12 +02:00
|
|
|
Service = {
|
|
|
|
Environment = [ "VAR1=1" "VAR2=2" ];
|
|
|
|
ExecStart = ''/some/exec/start/command --with-arguments "%i"'';
|
2021-11-23 07:06:43 +01:00
|
|
|
};
|
|
|
|
};
|
2023-05-13 00:08:12 +02:00
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
serviceFile=home-files/.config/systemd/user/test-service@.service
|
|
|
|
assertPathNotExists $serviceFile
|
|
|
|
'';
|
2021-11-23 07:06:43 +01:00
|
|
|
}
|