diff options
author | lassulus <lass@lassul.us> | 2017-01-10 17:27:07 +0100 |
---|---|---|
committer | lassulus <lass@lassul.us> | 2017-01-10 17:27:07 +0100 |
commit | 92e989f69ba14400dc059edd5819a751b19e99da (patch) | |
tree | 54cd4743d8cf5e65c739a178801db492ac72bd11 /lass | |
parent | 5631dc07e776c7fb9efe822e70aafe1aab716a59 (diff) |
l 2: add sshuttle config
Diffstat (limited to 'lass')
-rw-r--r-- | lass/2configs/baseX.nix | 8 | ||||
-rw-r--r-- | lass/2configs/default.nix | 6 |
2 files changed, 14 insertions, 0 deletions
diff --git a/lass/2configs/baseX.nix b/lass/2configs/baseX.nix index 1e796015a..a67c25145 100644 --- a/lass/2configs/baseX.nix +++ b/lass/2configs/baseX.nix @@ -13,6 +13,14 @@ in { systemWide = true; }; } + { + krebs.per-user.lass.packages = [ + pkgs.sshuttle + ]; + security.sudo.extraConfig = '' + lass ALL= (root) NOPASSWD:SETENV: ${pkgs.sshuttle}/bin/.sshuttle-wrapped + ''; + } ]; users.extraUsers.mainUser.extraGroups = [ "audio" "video" ]; diff --git a/lass/2configs/default.nix b/lass/2configs/default.nix index 6fea97728..1cb68a985 100644 --- a/lass/2configs/default.nix +++ b/lass/2configs/default.nix @@ -56,6 +56,12 @@ with import <stockholm/lib>; SSL_CERT_FILE = ca-bundle; }; }) + { + #for sshuttle + environment.systemPackages = [ + pkgs.pythonPackages.python + ]; + } ]; networking.hostName = config.krebs.build.host.name; |