c6444ecc3c
GitOrigin-RevId: 51e44a13acea71b36245e8bd8c7db53e0a3e61ee
25 lines
545 B
Nix
25 lines
545 B
Nix
{ 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
|
|
DefaultEnvironment=PATH='/bin:/sbin:/some where' TEST='abc'
|
|
LogLevel=debug
|
|
''
|
|
}
|
|
'';
|
|
}
|