summaryrefslogtreecommitdiffstats
path: root/modules/lass
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-04-12 19:43:25 +0200
committertv <tv@shackspace.de>2015-05-19 23:17:19 +0200
commit99a103aeeae97cb436b7764c89567425a96830aa (patch)
tree331739195eb7669a5f439b1719e407a7311a3eaf /modules/lass
parent2db1d700fb6169cbd63c7a98cd93bb6cb65211f0 (diff)
browsers-lass: use mainUser as control-user
Diffstat (limited to 'modules/lass')
-rw-r--r--modules/lass/browsers-lass.nix15
1 files changed, 9 insertions, 6 deletions
diff --git a/modules/lass/browsers-lass.nix b/modules/lass/browsers-lass.nix
index 8c27de7b4..6301f2897 100644
--- a/modules/lass/browsers-lass.nix
+++ b/modules/lass/browsers-lass.nix
@@ -1,6 +1,9 @@
{ config, pkgs, ... }:
-{
+let
+ mainUser = config.users.extraUsers.mainUser;
+
+in {
nixpkgs.config.packageOverrides = pkgs : {
chromium = pkgs.chromium.override {
@@ -56,10 +59,10 @@
};
security.sudo.extraConfig = ''
- lass ALL=(firefox) NOPASSWD: ALL
- lass ALL=(chromium) NOPASSWD: ALL
- lass ALL=(facebook) NOPASSWD: ALL
- lass ALL=(google) NOPASSWD: ALL
- lass ALL=(flash) NOPASSWD: ALL
+ ${mainUser.name} ALL=(firefox) NOPASSWD: ALL
+ ${mainUser.name} ALL=(chromium) NOPASSWD: ALL
+ ${mainUser.name} ALL=(facebook) NOPASSWD: ALL
+ ${mainUser.name} ALL=(google) NOPASSWD: ALL
+ ${mainUser.name} ALL=(flash) NOPASSWD: ALL
'';
}