stockholm/lass/2configs/skype.nix

27 lines
505 B
Nix
Raw Normal View History

2015-10-08 10:05:32 +00:00
{ config, pkgs, ... }:
let
mainUser = config.users.extraUsers.mainUser;
in {
users.extraUsers = {
skype = {
name = "skype";
uid = 2259819492; #genid skype
description = "user for running skype";
home = "/home/skype";
useDefaultShell = true;
extraGroups = [ "audio" "video" ];
createHome = true;
};
};
2015-11-12 23:48:09 +00:00
krebs.per-user.skype.packages = [
2015-10-08 10:05:32 +00:00
pkgs.skype
];
security.sudo.extraConfig = ''
${mainUser.name} ALL=(skype) NOPASSWD: ALL
'';
}