stockholm/modules/lass/games.nix

26 lines
484 B
Nix
Raw Normal View History

2015-04-09 23:37:29 +00:00
{ config, pkgs, ... }:
2015-04-12 18:04:25 +00:00
let
mainUser = config.users.extraUsers.mainUser;
in {
2015-04-09 23:37:29 +00:00
environment.systemPackages = with pkgs; [
dwarf_fortress
];
users.extraUsers = {
games = {
name = "games";
description = "user playing games";
home = "/home/games";
extraGroups = [ "audio" "video" "input" ];
2015-04-09 23:37:29 +00:00
createHome = true;
useDefaultShell = true;
};
};
security.sudo.extraConfig = ''
2015-04-12 18:04:25 +00:00
${mainUser.name} ALL=(games) NOPASSWD: ALL
2015-04-09 23:37:29 +00:00
'';
}