Add separate steam user

This commit is contained in:
Torjus Håkestad 2024-03-03 13:06:22 +01:00
parent 70d37cc0e1
commit bb9bb49940
3 changed files with 32 additions and 0 deletions

View File

@ -2,6 +2,7 @@
imports = [
./configuration.nix
./hardware-configuration.nix
./steamuser.nix
../../system
../../home
];

View 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
];
};
}

View File

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