2023-11-07 15:55:17 +01:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
systemd.user.settings.Manager = {
|
|
|
|
LogLevel = "debug";
|
|
|
|
DefaultCPUAccounting = true;
|
|
|
|
DefaultEnvironment = {
|
|
|
|
TEST = "abc";
|
|
|
|
PATH = "/bin:/sbin:/some where";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
userConf=home-files/.config/systemd/user.conf
|
|
|
|
assertFileExists $userConf
|
|
|
|
assertFileContent $userConf ${
|
|
|
|
pkgs.writeText "expected" ''
|
|
|
|
[Manager]
|
|
|
|
DefaultCPUAccounting=true
|
2024-09-08 09:55:05 +02:00
|
|
|
DefaultEnvironment=PATH='/bin:/sbin:/some where' TEST=abc
|
2023-11-07 15:55:17 +01:00
|
|
|
LogLevel=debug
|
|
|
|
''
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
}
|