diff options
author | Sam Griffin <sam.griffin@gmail.com> | 2014-08-31 13:00:54 -0400 |
---|---|---|
committer | Sam Griffin <sam.griffin@gmail.com> | 2014-08-31 13:01:20 -0400 |
commit | ec8e4d23f11132e2433fcb4d976f646b3164bf61 (patch) | |
tree | 8c5e191816107d9f38b40b17d9e13a35cb732a0a /nixos/modules/config/vpnc.nix | |
parent | 0667d67c9540604738c8d5c5a5c872e70bcf2b3b (diff) |
cleanup per Lethalman's suggestions
Diffstat (limited to 'nixos/modules/config/vpnc.nix')
-rw-r--r-- | nixos/modules/config/vpnc.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/config/vpnc.nix b/nixos/modules/config/vpnc.nix index 956a4c7d3fdb..e79e4d1c20f8 100644 --- a/nixos/modules/config/vpnc.nix +++ b/nixos/modules/config/vpnc.nix @@ -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; } |