summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
Diffstat (limited to 'custom')
-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 };