Extracting users
This commit is contained in:
parent
ca198533f9
commit
565b94126f
13
modules/system/users.nix
Normal file
13
modules/system/users.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -7,20 +7,6 @@ in {
|
||||||
#../modules/. # This imports /modules/default.nix
|
#../modules/. # This imports /modules/default.nix
|
||||||
#../modules/system/xdg.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.
|
# These are the most basic tools I need.
|
||||||
environment.systemPackages = with pkgs; [ nixfmt git gnumake vim zsh ];
|
environment.systemPackages = with pkgs; [ nixfmt git gnumake vim zsh ];
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user