modules/users: change sils sshkey
HEAD mainMy nitrokey ceased its cooperation with my setup :(
1 files changed, 47 insertions, 43 deletions
diff --git a/modules/by-name/us/users/module.nix b/modules/by-name/us/users/module.nix
index a197b13..4be3f41 100644
--- a/modules/by-name/us/users/module.nix
+++ b/modules/by-name/us/users/module.nix
@@ -3,45 +3,51 @@
lib,
pkgs,
...
-}: let
+}:
+let
cfg = config.vhack.users;
- mkUser = {
- name,
- password,
- uid,
- sshKey,
- }: {
- inherit name;
- value = {
- inherit name uid;
- isNormalUser = true;
- home = "/home/${name}";
- hashedPassword = password;
- extraGroups = [
- "wheel"
- ];
- openssh.authorizedKeys.keys = [
- sshKey
- ];
- };
- };
-
- extraUsers = lib.listToAttrs (builtins.map mkUser [
+ mkUser =
{
- name = "soispha";
- password = "$y$jFT$3.8XmUyukZvpExMUxDZkI.$IVrJgm8ysNDF/0vDD2kF6w73ozXgr1LMVRNN4Bq7pv1";
- sshKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIME4ZVa+IoZf6T3U08JG93i6QIAJ4amm7mkBzO14JSkz cardno:000F_18F83532";
- uid = 1000;
- }
+ name,
+ password,
+ uid,
+ sshKey,
+ }:
{
- name = "sils";
- password = "$y$jFT$KpFnahVCE9JbE.5P3us8o.$ZzSxCusWqe3sL7b6DLgOXNNUf114tiiptM6T8lDxtKC";
- sshKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAe4o1PM6VasT3KZNl5NYvgkkBrPOg36dqsywd10FztS openpgp:0x21D20D6A";
- uid = 1001;
- }
- ]);
-in {
+ inherit name;
+ value = {
+ inherit name uid;
+ isNormalUser = true;
+ home = "/home/${name}";
+ hashedPassword = password;
+ extraGroups = [
+ "wheel"
+ ];
+ openssh.authorizedKeys.keys = [
+ sshKey
+ ];
+ };
+ };
+
+ extraUsers = lib.listToAttrs (
+ builtins.map mkUser [
+ {
+ name = "soispha";
+ password = "$y$jFT$3.8XmUyukZvpExMUxDZkI.$IVrJgm8ysNDF/0vDD2kF6w73ozXgr1LMVRNN4Bq7pv1";
+ sshKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIME4ZVa+IoZf6T3U08JG93i6QIAJ4amm7mkBzO14JSkz cardno:000F_18F83532";
+ uid = 1000;
+ }
+ {
+ name = "sils";
+ password = "$y$jFT$KpFnahVCE9JbE.5P3us8o.$ZzSxCusWqe3sL7b6DLgOXNNUf114tiiptM6T8lDxtKC";
+ sshKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILn7Oumr5IYtTTIKRFvDnofGXXiDLBQE9jVF+7UE+4G5 vhack.eu";
+ uid = 1001;
+ }
+ ]
+ );
+in
+{
options.vhack.users = {
enable = lib.mkEnableOption "user setup";
};
@@ -51,14 +57,12 @@ in {
mutableUsers = false;
defaultUserShell = pkgs.bashInteractive;
- users =
- {
- root = {
- hashedPassword = lib.mkForce null; # to lock root
- openssh.authorizedKeys.keys = lib.mkForce [];
- };
- }
- // extraUsers;
+ users = {
+ root = {
+ hashedPassword = lib.mkForce null; # to lock root
+ openssh.authorizedKeys.keys = lib.mkForce [ ];
+ };
+ } // extraUsers;
# TODO(@bpeetz): Is this still relevant?
# If it is, it should be moved to a separate module. <2024-12-24>
|