diff options
author | tv <tv@shackspace.de> | 2015-10-09 14:48:58 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-10-09 14:48:58 +0200 |
commit | 96f4248b65ff1539eded24572ae1805b27c53d50 (patch) | |
tree | 31ff450cc4a5166306c62f99fdd2d1caf3219ecb /lass/2configs/skype.nix | |
parent | 694c79a5bc05014604fa2467f965b370102ff78f (diff) | |
parent | 4072a32f89b9cc1c1e7c3583ac5b9ce5dcb004af (diff) |
Merge remote-tracking branch 'cloudkrebs/master'
Diffstat (limited to 'lass/2configs/skype.nix')
-rw-r--r-- | lass/2configs/skype.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lass/2configs/skype.nix b/lass/2configs/skype.nix new file mode 100644 index 000000000..7e4618a7b --- /dev/null +++ b/lass/2configs/skype.nix @@ -0,0 +1,30 @@ +{ config, pkgs, ... }: + +let + mainUser = config.users.extraUsers.mainUser; + +in { + imports = [ + ../3modules/per-user.nix + ]; + + users.extraUsers = { + skype = { + name = "skype"; + uid = 2259819492; #genid skype + description = "user for running skype"; + home = "/home/skype"; + useDefaultShell = true; + extraGroups = [ "audio" "video" ]; + createHome = true; + }; + }; + + lass.per-user.skype.packages = [ + pkgs.skype + ]; + + security.sudo.extraConfig = '' + ${mainUser.name} ALL=(skype) NOPASSWD: ALL + ''; +} |