mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-06-25 22:41:54 +02:00
Adding New Test User To See If Multi User Working
This commit is contained in:
parent
ef434d4408
commit
9a5d6b69ca
11
system.nix
11
system.nix
@ -12,6 +12,7 @@ in {
|
|||||||
[
|
[
|
||||||
./hosts/${host}/hardware.nix
|
./hosts/${host}/hardware.nix
|
||||||
./config/system
|
./config/system
|
||||||
|
./users/users.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
@ -40,16 +41,6 @@ in {
|
|||||||
# Define a user account.
|
# Define a user account.
|
||||||
users = {
|
users = {
|
||||||
mutableUsers = true;
|
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 = {
|
environment.variables = {
|
||||||
|
28
users/users.nix
Normal file
28
users/users.nix
Normal 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; [];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user