mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
cleanup per Lethalman's suggestions
This commit is contained in:
parent
0667d67c95
commit
ec8e4d23f1
|
@ -6,8 +6,8 @@ let
|
||||||
cfg = config.networking.vpnc;
|
cfg = config.networking.vpnc;
|
||||||
mkServiceDef = name: value:
|
mkServiceDef = name: value:
|
||||||
{
|
{
|
||||||
source = builtins.toFile "${name}.conf" value;
|
name = "vpnc/${name}.conf";
|
||||||
target = "vpnc/${name}.conf";
|
value = { text = value; };
|
||||||
};
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
|
@ -35,7 +35,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config.environment.etc = mapAttrsToList mkServiceDef cfg.services;
|
config.environment.etc = mapAttrs' mkServiceDef cfg.services;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue