mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-07-01 13:25:22 +02:00
make all users systemusers
This commit is contained in:
parent
6527e67860
commit
654c41d75e
3 changed files with 9 additions and 5 deletions
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue