diff options
author | nin <nineinchnade@gmail.com> | 2017-09-06 00:57:28 +0200 |
---|---|---|
committer | nin <nineinchnade@gmail.com> | 2017-09-06 00:57:28 +0200 |
commit | 036bd54f3142ba05409b742a809c3082176e4596 (patch) | |
tree | 2775e9f13784b2fefea2146494534835712c9ed3 /nin | |
parent | 59940cb436215341e33f591d7994e975ed4bf61d (diff) |
nin: add skype
Diffstat (limited to 'nin')
-rw-r--r-- | nin/1systems/hiawatha/config.nix | 1 | ||||
-rw-r--r-- | nin/2configs/skype.nix | 27 |
2 files changed, 28 insertions, 0 deletions
diff --git a/nin/1systems/hiawatha/config.nix b/nin/1systems/hiawatha/config.nix index 0e48b41c2..31b6abe43 100644 --- a/nin/1systems/hiawatha/config.nix +++ b/nin/1systems/hiawatha/config.nix @@ -15,6 +15,7 @@ with lib; <stockholm/nin/2configs/git.nix> <stockholm/nin/2configs/retiolum.nix> <stockholm/nin/2configs/termite.nix> + <stockholm/nin/2configs/skype.nix> ]; krebs.build.host = config.krebs.hosts.hiawatha; diff --git a/nin/2configs/skype.nix b/nin/2configs/skype.nix new file mode 100644 index 000000000..621dfae82 --- /dev/null +++ b/nin/2configs/skype.nix @@ -0,0 +1,27 @@ +{ config, lib, pkgs, ... }: + +let + mainUser = config.users.extraUsers.nin; + inherit (import <stockholm/lib>) genid; + +in { + users.extraUsers = { + skype = { + name = "skype"; + uid = genid "skype"; + description = "user for running skype"; + home = "/home/skype"; + useDefaultShell = true; + extraGroups = [ "audio" "video" ]; + createHome = true; + }; + }; + + krebs.per-user.skype.packages = [ + pkgs.skype + ]; + + security.sudo.extraConfig = '' + ${mainUser.name} ALL=(skype) NOPASSWD: ALL + ''; +} |