♻️ [shared] Moved users config to base. Use password from Sops

This commit is contained in:
2025-05-22 19:40:49 +02:00
parent 21d07edcf1
commit e4fe0e1127
5 changed files with 19 additions and 26 deletions

View File

@ -1,6 +1,5 @@
{
lib,
config,
systemConfig,
...
}:
@ -14,13 +13,4 @@
];
system.stateVersion = systemConfig.version;
users = {
mutableUsers = false;
users.${systemConfig.username} = {
isNormalUser = true;
hashedPasswordFile = config.sops.secrets.password-hash.path;
extraGroups = [ "wheel" ];
};
};
}

View File

@ -6,5 +6,6 @@
./nixos.nix
./security
./shell.nix
./users.nix
];
}

View File

@ -0,0 +1,18 @@
{ config, systemConfig, ... }:
let
username = systemConfig.username;
in
{
users = {
mutableUsers = false;
users.${username} = {
isNormalUser = true;
hashedPasswordFile = config.sops.secrets.password-hash.path;
description = username;
extraGroups = [
"networkmanager"
"wheel"
];
};
};
}

View File

@ -19,7 +19,6 @@
./sddm.nix
./security
./social.nix
./users.nix
./qt.nix
./xdg.nix
./xserver.nix

View File

@ -1,15 +0,0 @@
{ config, systemConfig, ... }:
let
username = systemConfig.username;
in
{
users.users.${username} = {
isNormalUser = true;
hashedPasswordFile = config.sops.secrets.password-hash.path;
description = username;
extraGroups = [
"networkmanager"
"wheel"
];
};
}