This commit is contained in:
Kopatz
2026-01-03 13:20:11 +01:00
parent 2cc8b5ac12
commit 07d86dbf02
9 changed files with 22 additions and 23 deletions

View File

@@ -26,25 +26,5 @@
description = "Public key of the user";
};
};
custom.user = {
name = lib.mkOption {
default = "mainuser";
description = ''
username
'';
};
layout = lib.mkOption {
default = "de";
description = "keyboard layout";
};
variant = lib.mkOption {
default = "";
description = "keyboard variant";
};
sshKey = lib.mkOption {
default = throw "No ssh key specified";
description = "Public key of the user";
};
};
};
}

View File

@@ -0,0 +1,19 @@
{
inputs,
pkgs,
lib,
config,
...
}:
{
imports = [ ../default.nix ];
programs.zsh.enable = true;
users.users.testuser = {
isNormalUser = true;
initialPassword = "1";
description = "Test user";
shell = pkgs.zsh;
openssh.authorizedKeys.keys = [ config.mainUser.sshKey ];
};
}