diff options
author | lassulus <lass@aidsballs.de> | 2015-10-08 12:05:32 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2015-10-08 12:05:32 +0200 |
commit | 892c99706a1c997ae064e443c2162a5659b8a05e (patch) | |
tree | c0815057a1d5a474e67d340616a05154bd4d8811 | |
parent | 1e9770b09377dfebd6b389cfb6b0f7dca2e80fb3 (diff) |
lass 2: add skype.nix
-rw-r--r-- | lass/1systems/mors.nix | 1 | ||||
-rw-r--r-- | lass/2configs/skype.nix | 30 |
2 files changed, 31 insertions, 0 deletions
diff --git a/lass/1systems/mors.nix b/lass/1systems/mors.nix index 5cc03501f..c0c33828b 100644 --- a/lass/1systems/mors.nix +++ b/lass/1systems/mors.nix @@ -24,6 +24,7 @@ ../2configs/bitlbee.nix ../2configs/firefoxPatched.nix ../2configs/realwallpaper.nix + ../2configs/skype.nix ]; krebs.build = { 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 + ''; +} |