Define it as variable instead of function. Pass variable and do individual checks instead of function call.
29 lines
408 B
Nix
29 lines
408 B
Nix
{
|
|
config
|
|
,hostName
|
|
,pkgs
|
|
}:
|
|
|
|
{
|
|
|
|
dunst = import ./services/dunst.nix {
|
|
inherit config;
|
|
};
|
|
|
|
gpg-agent = import ./services/gpg-agent.nix {
|
|
inherit pkgs;
|
|
};
|
|
|
|
vdirsyncer = {
|
|
enable = true;
|
|
frequency = "Mon..Thu *-*-* 15,12,8:00";
|
|
};
|
|
|
|
languagetool.enable = true;
|
|
mailhog.enable = true;
|
|
|
|
} // (if hostName == "hikari" then {
|
|
network-manager-applet.enable = true;
|
|
} else {
|
|
})
|