Setup users.
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
./system/bluetooth.nix
|
./system/bluetooth.nix
|
||||||
./system/locale.nix
|
./system/locale.nix
|
||||||
./system/time.nix
|
./system/time.nix
|
||||||
|
./system/users.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
|
|||||||
11
nodes/hosts/common/system/users.nix
Normal file
11
nodes/hosts/common/system/users.nix
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{ config, ... }: {
|
||||||
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
|
users.users.jay = {
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "jay";
|
||||||
|
#hashedPasswordFile = config.sops.secrets.password_hash.path;
|
||||||
|
hashedPassword = "$6$RTOXVXRP1iLIXnQb$rVtTeqlJ7g3AcZgftmVdKFnT2ggCsnVayPlT4beLST9Oz2LHGT2fdcOC/yaQkISK3wzFLqh47fSHgQvRUWpl41";
|
||||||
|
extraGroups = [ "networkmanager" "wheel" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
@@ -41,15 +41,6 @@
|
|||||||
# Enable touchpad support (enabled default in most desktopManager).
|
# Enable touchpad support (enabled default in most desktopManager).
|
||||||
services.libinput.enable = true;
|
services.libinput.enable = true;
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
||||||
users.users.jay = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = [ "networkmanager" "wheel" ]; # Enable ‘sudo’ for the user.
|
|
||||||
packages = with pkgs; [
|
|
||||||
tree
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# List packages installed in system profile.
|
# List packages installed in system profile.
|
||||||
# You can use https://search.nixos.org/ to find more packages (and options).
|
# You can use https://search.nixos.org/ to find more packages (and options).
|
||||||
# environment.systemPackages = with pkgs; [
|
# environment.systemPackages = with pkgs; [
|
||||||
|
|||||||
Reference in New Issue
Block a user