This commit is contained in:
minish 2024-12-31 22:48:36 -05:00
parent cdef89b1e6
commit 983fdf31ea
Signed by: min
SSH Key Fingerprint: SHA256:NFjjdbkd6u7aoMlcrDCVvz6o2UBtlAuPm8IQ2vhZ3Fg
1 changed files with 12 additions and 11 deletions

View File

@ -1,6 +1,7 @@
{ {
inputs, inputs,
config, pkgs, config,
pkgs,
... ...
}: { }: {
imports = [ imports = [
@ -33,20 +34,20 @@
services.libinput.enable = true; services.libinput.enable = true;
# Define a user account. # Define a user account.
users = { users.users = {
defaultUserShell = pkgs.zsh; root.hashedPasswordFile = config.sops.secrets."root-pw".path;
users = { min = {
root.hashedPasswordFile = config.sops.secrets."root-pw".path; isNormalUser = true;
extraGroups = ["wheel"]; # Enable sudo for the user.
min = { hashedPasswordFile = config.sops.secrets."user-pw".path;
isNormalUser = true;
extraGroups = ["wheel"]; # Enable sudo for the user.
hashedPasswordFile = config.sops.secrets."user-pw".path;
};
}; };
}; };
# Use zsh
programs.zsh.enable = true;
users.defaultUserShell = pkgs.zsh;
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
# started in user sessions. # started in user sessions.
programs.gnupg.agent = { programs.gnupg.agent = {