l 2: add sshuttle config

This commit is contained in:
lassulus 2017-01-10 17:27:07 +01:00
parent 5631dc07e7
commit 92e989f69b
2 changed files with 14 additions and 0 deletions

View File

@ -13,6 +13,14 @@ in {
systemWide = true; 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" ]; users.extraUsers.mainUser.extraGroups = [ "audio" "video" ];

View File

@ -56,6 +56,12 @@ with import <stockholm/lib>;
SSL_CERT_FILE = ca-bundle; SSL_CERT_FILE = ca-bundle;
}; };
}) })
{
#for sshuttle
environment.systemPackages = [
pkgs.pythonPackages.python
];
}
]; ];
networking.hostName = config.krebs.build.host.name; networking.hostName = config.krebs.build.host.name;