stockholm/lass/2configs/skype.nix

27 lines
504 B
Nix
Raw Normal View History

2015-12-26 04:55:13 +00:00
{ config, lib, pkgs, ... }:
2015-10-08 10:05:32 +00:00
let
mainUser = config.users.extraUsers.mainUser;
in {
users.extraUsers = {
skype = {
name = "skype";
2015-12-26 04:55:13 +00:00
uid = lib.genid "skype";
2015-10-08 10:05:32 +00:00
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
'';
}