From 301132e17e29fee6d8a7d6d459871389736b165d Mon Sep 17 00:00:00 2001 From: ooks-io Date: Tue, 29 Oct 2024 16:45:59 +1100 Subject: [PATCH] admin: initialPassword -> initialHashedPassword --- hosts/ooknode/default.nix | 9 +++++++++ modules/nixos/base/admin.nix | 9 ++------- 2 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 hosts/ooknode/default.nix diff --git a/hosts/ooknode/default.nix b/hosts/ooknode/default.nix new file mode 100644 index 0000000..45572ef --- /dev/null +++ b/hosts/ooknode/default.nix @@ -0,0 +1,9 @@ +{ + ooknet.host = { + admin = { + name = "ooks"; + shell = "fish"; + homeManager = true; + }; + }; +} diff --git a/modules/nixos/base/admin.nix b/modules/nixos/base/admin.nix index 530d81b..319472d 100644 --- a/modules/nixos/base/admin.nix +++ b/modules/nixos/base/admin.nix @@ -2,15 +2,10 @@ lib, config, pkgs, - inputs, - inputs', - self', - self, keys, ... }: let - inherit (lib) mkIf; - inherit (config.ooknet.host) role admin; + inherit (config.ooknet.host) admin; ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups; in { @@ -18,7 +13,7 @@ in { users.users.${admin.name} = { isNormalUser = true; shell = pkgs.${admin.shell}; - initialPassword = "password"; + initialHashedPassword = "$y$j9T$l4Wje1zgcrPIM5G4BRAT6.$AKHmE2MvJLLiipYnwGsljxbD0QmqYtHGlKht0kLLI87"; openssh.authorizedKeys.keys = [keys.users."${admin.name}"]; createHome = true; home = "/home/${admin.name}";