mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 12:03:25 +00:00
26 lines
545 B
Nix
26 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
|
||
|
''
|
||
|
}
|
||
|
'';
|
||
|
}
|