Extracting users

This commit is contained in:
James Patrick 2022-08-13 23:28:57 -04:00
parent ca198533f9
commit 565b94126f
2 changed files with 13 additions and 14 deletions

13
modules/system/users.nix Normal file
View File

@ -0,0 +1,13 @@
# Define a user account. Don't forget to set a password with passwd.
{ config, lib, pkgs, ... }: {
users.users = {
root.initialPassword = "noreallychangemenow";
james = {
description = "James Patrick";
extraGroups = [ "wheel" "systemd-journal" ];
initialPassword = "nixos";
isNormalUser = true;
shell = pkgs.zsh;
};
};
}

View File

@ -7,20 +7,6 @@ in {
#../modules/. # This imports /modules/default.nix
#../modules/system/xdg.nix
];
# Allow Cleanup, nix, & flakes
# Define a user account. Don't forget to set a password with passwd.
users.users = {
root.initialPassword = "nixos";
james = {
description = "James Patrick";
extraGroups = [ "wheel" "systemd-journal" ];
initialPassword = "nixos";
isNormalUser = true;
shell = pkgs.zsh;
};
};
# These are the most basic tools I need.
environment.systemPackages = with pkgs; [ nixfmt git gnumake vim zsh ];