1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39:46 +01:00
home-manager/tests/modules/systemd/user-config.nix
2024-09-08 23:32:19 +02:00

25 lines
543 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
''
}
'';
}