stockholm/lass/2configs/skype.nix

28 lines
542 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;
2016-10-20 18:54:38 +00:00
inherit (import <stockholm/lib>) genid;
2015-10-08 10:05:32 +00:00
in {
users.extraUsers = {
skype = {
name = "skype";
2016-02-17 14:00:18 +00:00
uid = 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
'';
}