lass 2: add skype.nix

This commit is contained in:
lassulus 2015-10-08 12:05:32 +02:00
parent 1e9770b093
commit 892c99706a
2 changed files with 31 additions and 0 deletions

View file

@ -24,6 +24,7 @@
../2configs/bitlbee.nix
../2configs/firefoxPatched.nix
../2configs/realwallpaper.nix
../2configs/skype.nix
];
krebs.build = {

30
lass/2configs/skype.nix Normal file
View file

@ -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
'';
}