mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 21:21:06 +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;
|
||||
mkServiceDef = name: value:
|
||||
{
|
||||
source = builtins.toFile "${name}.conf" value;
|
||||
target = "vpnc/${name}.conf";
|
||||
name = "vpnc/${name}.conf";
|
||||
value = { text = value; };
|
||||
};
|
||||
|
||||
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