Adding New Test User To See If Multi User Working

This commit is contained in:
Tyler Kelley 2024-04-03 23:16:57 -05:00
parent ef434d4408
commit 9a5d6b69ca
2 changed files with 29 additions and 10 deletions

View File

@ -12,6 +12,7 @@ in {
[
./hosts/${host}/hardware.nix
./config/system
./users/users.nix
];
# Enable networking
@ -40,16 +41,6 @@ in {
# Define a user account.
users = {
mutableUsers = true;
users."${username}" = {
homeMode = "755";
hashedPassword = "$6$YdPBODxytqUWXCYL$AHW1U9C6Qqkf6PZJI54jxFcPVm2sm/XWq3Z1qa94PFYz0FF.za9gl5WZL/z/g4nFLQ94SSEzMg5GMzMjJ6Vd7.";
isNormalUser = true;
description = "${gitUsername}";
extraGroups = [ "networkmanager" "wheel" "libvirtd" ];
shell = pkgs.${theShell};
ignoreShellProgramCheck = true;
packages = with pkgs; [];
};
};
environment.variables = {

28
users/users.nix Normal file
View File

@ -0,0 +1,28 @@
{ pkgs, config, username, host, ... }:
let
inherit (import ./hosts/${host}/options.nix) gitUsername theShell;
in {
users.users = {
"${username}" = {
homeMode = "755";
hashedPassword = "$6$YdPBODxytqUWXCYL$AHW1U9C6Qqkf6PZJI54jxFcPVm2sm/XWq3Z1qa94PFYz0FF.za9gl5WZL/z/g4nFLQ94SSEzMg5GMzMjJ6Vd7.";
isNormalUser = true;
description = "${gitUsername}";
extraGroups = [ "networkmanager" "wheel" "libvirtd" ];
shell = pkgs.${theShell};
ignoreShellProgramCheck = true;
packages = with pkgs; [];
};
"newuser" = {
homeMode = "755";
hashedPassword = "$6$YdPBODxytqUWXCYL$AHW1U9C6Qqkf6PZJI54jxFcPVm2sm/XWq3Z1qa94PFYz0FF.za9gl5WZL/z/g4nFLQ94SSEzMg5GMzMjJ6Vd7.";
isNormalUser = true;
description = "New user account";
extraGroups = [ "networkmanager" "wheel" "libvirtd" ];
shell = pkgs.${theShell};
ignoreShellProgramCheck = true;
packages = with pkgs; [];
};
};
}