1

System: Disable mutable users + set explicit uid/gid

This commit is contained in:
2025-07-16 16:24:23 +02:00
parent 72bfa078e7
commit f97fd2d6f7

View File

@ -216,10 +216,13 @@ with mylib.networking; {
console.keyMap = "us-acentos";
# Define a user account. Password is set from sops-nix secrets automatically.
users.mutableUsers = false; # Users are always overridden by stuff defined here
users.users.${username} = {
isNormalUser = true;
hashedPasswordFile = config.sops.secrets.user-password.path;
description = "Christoph";
group = "users";
uid = 1000;
extraGroups = [
"networkmanager"
"wheel"
@ -241,6 +244,8 @@ with mylib.networking; {
# packages = with pkgs; [];
};
users.groups."users".gid = 100;
# We want these packages to be available even when no user profile is active
# Empty since we basically only need git + editor which is enabled below
environment.systemPackages = with pkgs; [