Add separate steam user
This commit is contained in:
parent
70d37cc0e1
commit
bb9bb49940
@ -2,6 +2,7 @@
|
||||
imports = [
|
||||
./configuration.nix
|
||||
./hardware-configuration.nix
|
||||
./steamuser.nix
|
||||
../../system
|
||||
../../home
|
||||
];
|
||||
|
18
hosts/gunter/steamuser.nix
Normal file
18
hosts/gunter/steamuser.nix
Normal file
@ -0,0 +1,18 @@
|
||||
{ pkgs, ... }: {
|
||||
environment.shells = with pkgs; [ zsh ];
|
||||
|
||||
services.xserver.desktopManager.xfce.enable = true;
|
||||
|
||||
users.users.steam = {
|
||||
isNormalUser = true;
|
||||
initialPassword = "steam";
|
||||
home = "/home/steam";
|
||||
description = "Steam user";
|
||||
shell = pkgs.zsh;
|
||||
# Install some user packages
|
||||
packages = with pkgs; [
|
||||
steam
|
||||
steamcmd
|
||||
];
|
||||
};
|
||||
}
|
@ -16,4 +16,17 @@
|
||||
packages = with pkgs; [
|
||||
];
|
||||
};
|
||||
users.users.steam = {
|
||||
isNormalUser = true;
|
||||
initialPassword = "steam";
|
||||
home = "/home/steam";
|
||||
description = "Steam user";
|
||||
shell = pkgs.zsh;
|
||||
extraGroups = [ "networkmanager" ];
|
||||
# Install some user packages
|
||||
packages = with pkgs; [
|
||||
steam
|
||||
steamcmd
|
||||
];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user