mirror of
https://github.com/nix-community/home-manager
synced 2024-11-14 15:19:45 +01:00
31 lines
666 B
Nix
31 lines
666 B
Nix
|
{ config, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
services.conky = {
|
||
|
enable = true;
|
||
|
extraConfig = ''
|
||
|
conky.text = [[
|
||
|
S Y S T E M I N F O
|
||
|
$hr
|
||
|
Host:$alignr $nodename
|
||
|
Uptime:$alignr $uptime
|
||
|
RAM:$alignr $mem/$memmax
|
||
|
]]
|
||
|
'';
|
||
|
};
|
||
|
|
||
|
test.stubs.conky = { };
|
||
|
|
||
|
nmt.script = ''
|
||
|
serviceFile="$TESTED/home-files/.config/systemd/user/conky.service"
|
||
|
|
||
|
assertFileExists $serviceFile
|
||
|
assertFileRegex "$serviceFile" \
|
||
|
'ExecStart=@conky@/bin/conky --config .*conky.conf'
|
||
|
|
||
|
configFile="$(grep -o '/nix.*conky.conf' "$serviceFile")"
|
||
|
assertFileContent "$configFile" \
|
||
|
${./basic-configuration.conf}
|
||
|
'';
|
||
|
}
|