summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-08-13 09:24:17 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-08-13 09:24:17 +0200
commit39406b3b6e5b052e5edad27ae0eabd6b6ce218ec (patch)
treeecf71df89e8c7a2ce2b0096c00180646aec41536
parent28ef72b0fd637366ee6768c030bc03f46cb8cab0 (diff)
downloadnixos-39406b3b6e5b052e5edad27ae0eabd6b6ce218ec.tar
nixos-39406b3b6e5b052e5edad27ae0eabd6b6ce218ec.tar.gz
nixos-39406b3b6e5b052e5edad27ae0eabd6b6ce218ec.tar.bz2
nixos-39406b3b6e5b052e5edad27ae0eabd6b6ce218ec.tar.xz
nixos-39406b3b6e5b052e5edad27ae0eabd6b6ce218ec.zip
tinc package in system environment
-rw-r--r--custom/tinc/def.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/custom/tinc/def.nix b/custom/tinc/def.nix
index 2610a13f..099b4f70 100644
--- a/custom/tinc/def.nix
+++ b/custom/tinc/def.nix
@@ -135,6 +135,8 @@ in
135 } 135 }
136 )); 136 ));
137 137
138 environment.systemPackages = [ data.package ];
139
138 networking.interfaces = flip mapAttrs' cfg.networks (network: data: nameValuePair 140 networking.interfaces = flip mapAttrs' cfg.networks (network: data: nameValuePair
139 (network) 141 (network)
140 ({ 142 ({
@@ -159,7 +161,7 @@ in
159 })); 161 }));
160 162
161 systemd.services = flip mapAttrs' cfg.networks (network: data: nameValuePair 163 systemd.services = flip mapAttrs' cfg.networks (network: data: nameValuePair
162 ("tinc.${network}") 164 ("tinc@${network}")
163 ({ 165 ({
164 description = "Tinc Daemon - ${network}"; 166 description = "Tinc Daemon - ${network}";
165 wantedBy = [ "network.target" ]; 167 wantedBy = [ "network.target" ];