more adjustments

This commit is contained in:
Noah Masur
2025-02-15 20:26:14 -05:00
parent 2425c76a84
commit 617fc6cce2
36 changed files with 288 additions and 291 deletions

View File

@ -6,6 +6,7 @@
}:
let
inherit (config.nmasur.settings) username;
cfg = config.nmasur.profiles.base;
in
@ -19,7 +20,7 @@ in
users.mutableUsers = lib.mkDefault false;
# Define a user account. Don't forget to set a password with passwd.
users.users.${config.user} = {
users.users.${username} = {
# Create a home directory for human user
isNormalUser = lib.mkDefault true;

View File

@ -6,6 +6,7 @@
}:
let
inherit (config.nmasur.settings) username;
cfg = config.nmasur.profiles.gui;
in
@ -53,7 +54,7 @@ in
hardware.i2c.enable = lib.mkDefault true;
# Grant main user access to external monitors
users.users.${config.user}.extraGroups = lib.mkDefault [ "i2c" ];
users.users.${username}.extraGroups = lib.mkDefault [ "i2c" ];
services.xserver.displayManager = {

View File

@ -5,6 +5,7 @@
}:
let
inherit (config.nmasur.settings) username;
cfg = config.nmasur.profiles.shared-media;
in
@ -18,7 +19,7 @@ in
users.groups.shared = { };
# Give the human user access to the shared group
users.users.${config.user}.extraGroups = [ config.users.groups.shared.name ];
users.users.${username}.extraGroups = [ config.users.groups.shared.name ];
};
}