make all users systemusers

This commit is contained in:
jopejoe1 2025-06-12 11:47:12 +02:00
parent 6527e67860
commit 654c41d75e
3 changed files with 9 additions and 5 deletions

View file

@ -15,9 +15,9 @@ in
config = lib.mkIf cfg.enable {
users.users.builder = {
isNormalUser = true;
isSystemUser = true;
description = "Build User";
hashedPassword = "$2b$05$Uk84TY/RHlH8DIigUlFYjeorjTlCMEY9wN2pAcw5BLaPoc7dKiSsC";
initialHashedPassword = "$2b$05$Uk84TY/RHlH8DIigUlFYjeorjTlCMEY9wN2pAcw5BLaPoc7dKiSsC";
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGvmivSRjYMSo6+mxChJ7n6k4no4Vkxb6r0In9ZjcqFY root@omoikane"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILVR16DtqrdgMq+3Gj1N6XNAjJhHyuG5a4wn7xQ8c49i root@omoikane"

View file

@ -16,10 +16,10 @@ in
config = lib.mkIf cfg.enable {
programs.dconf.enable = true;
users.users.jopejoe1 = {
isNormalUser = true;
isSystemUser = true;
shell = pkgs.nushell;
description = "jopejoe1";
hashedPassword = "$2b$05$Uk84TY/RHlH8DIigUlFYjeorjTlCMEY9wN2pAcw5BLaPoc7dKiSsC";
initialHashedPassword = "$2b$05$Uk84TY/RHlH8DIigUlFYjeorjTlCMEY9wN2pAcw5BLaPoc7dKiSsC";
extraGroups = [
"wheel"
"networkmanager"
@ -30,6 +30,10 @@ in
"dialout"
];
uid = 1000;
group = "users";
createHome = true;
homeMode = "700";
home = "${config.users.defaultUserHome}/${config.users.users.jopejoe1.name}";
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB8oyMpS2hK3gQXyHIIVS6oilgMpemLmfhKKJ6RBMwUh johannes@joens.email"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP3pKtvhOOjG1pGJq7cVHS5uWy5IP8y1Ra/ENpmJcqOe root@zap"

View file

@ -10,7 +10,7 @@ in
config = lib.mkIf cfg.enable {
users.users.root = {
hashedPassword = "$2b$05$Uk84TY/RHlH8DIigUlFYjeorjTlCMEY9wN2pAcw5BLaPoc7dKiSsC";
initialHashedPassword = "$2b$05$Uk84TY/RHlH8DIigUlFYjeorjTlCMEY9wN2pAcw5BLaPoc7dKiSsC";
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB8oyMpS2hK3gQXyHIIVS6oilgMpemLmfhKKJ6RBMwUh johannes@joens.email"
];