summaryrefslogtreecommitdiffstats
path: root/lass/2configs/skype.nix
blob: 7e4618a7bc2a9274ad0e0e6906bd9129041a85b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
  '';
}