From def01c71415a3f4212171de96665df6f069657ae Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 29 Oct 2017 01:55:31 +0200 Subject: =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom/tinc/yggdrasil.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'custom') 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 { security.sudo = { enable = true; extraConfig = '' - tinc.yggdrasil ${config.networking.hostName} = (root) ${borealis-up}, ${borealis-down} + tinc.yggdrasil ${config.networking.hostName} = (root) NOPASSWD: SETENV: ${borealis-up}, ${borealis-down} ''; }; @@ -81,12 +81,12 @@ in { "hosts/borealis-up" = '' #!${pkgs.stdenv.shell} - exec ${pkgs.sudo}/bin/sudo ${borealis-up} + exec sudo -En ${borealis-up} ''; "hosts/borealis-down" = '' #!${pkgs.stdenv.shell} - exec ${pkgs.sudo}/bin/sudo ${borealis-down} + exec sudo -En ${borealis-down} ''; }; }; -- cgit v1.2.3