summaryrefslogtreecommitdiff
path: root/custom/tinc
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-10-29 01:55:31 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2017-10-29 01:55:31 +0200
commitdef01c71415a3f4212171de96665df6f069657ae (patch)
tree73fdda209f7278130c36c8c7dc7ad25f35c64beb /custom/tinc
parent3feb1de94aae4d978207ad8a73f0c78efd817bb9 (diff)
downloadnixos-def01c71415a3f4212171de96665df6f069657ae.tar
nixos-def01c71415a3f4212171de96665df6f069657ae.tar.gz
nixos-def01c71415a3f4212171de96665df6f069657ae.tar.bz2
nixos-def01c71415a3f4212171de96665df6f069657ae.tar.xz
nixos-def01c71415a3f4212171de96665df6f069657ae.zip
Diffstat (limited to 'custom/tinc')
-rw-r--r--custom/tinc/yggdrasil.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/custom/tinc/yggdrasil.nix b/custom/tinc/yggdrasil.nix
index d4bf26f1..cf4c43e2 100644
--- a/custom/tinc/yggdrasil.nix
+++ b/custom/tinc/yggdrasil.nix
@@ -65,7 +65,7 @@ in {
65 security.sudo = { 65 security.sudo = {
66 enable = true; 66 enable = true;
67 extraConfig = '' 67 extraConfig = ''
68 tinc.yggdrasil ${config.networking.hostName} = (root) ${borealis-up}, ${borealis-down} 68 tinc.yggdrasil ${config.networking.hostName} = (root) NOPASSWD: SETENV: ${borealis-up}, ${borealis-down}
69 ''; 69 '';
70 }; 70 };
71 71
@@ -81,12 +81,12 @@ in {
81 "hosts/borealis-up" = '' 81 "hosts/borealis-up" = ''
82 #!${pkgs.stdenv.shell} 82 #!${pkgs.stdenv.shell}
83 83
84 exec ${pkgs.sudo}/bin/sudo ${borealis-up} 84 exec sudo -En ${borealis-up}
85 ''; 85 '';
86 "hosts/borealis-down" = '' 86 "hosts/borealis-down" = ''
87 #!${pkgs.stdenv.shell} 87 #!${pkgs.stdenv.shell}
88 88
89 exec ${pkgs.sudo}/bin/sudo ${borealis-down} 89 exec sudo -En ${borealis-down}
90 ''; 90 '';
91 }; 91 };
92 }; 92 };