From 40b0c12e3e7a106c90fa454f03b25efddcef2e67 Mon Sep 17 00:00:00 2001 From: Mike Vink Date: Wed, 18 Oct 2023 23:11:16 +0200 Subject: fixup --- profiles/core/configuration.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/profiles/core/configuration.nix b/profiles/core/configuration.nix index 6829d01..2849800 100644 --- a/profiles/core/configuration.nix +++ b/profiles/core/configuration.nix @@ -7,12 +7,18 @@ imports = [ (mkAliasOptionModule [ "ivi" ] [ "users" "users" ivi.username ]) ]; time.timeZone = "Europe/Amsterdam"; - users.users.${ivi.username} = { - uid = 1000; - isNormalUser = true; - description = ivi.realName; - extraGroups = ["wheel" "networkmanager" "docker" "transmission"]; - openssh.authorizedKeys.keys = ivi.sshKeys; + users.users = { + ${ivi.username} = { + uid = 1000; + isNormalUser = true; + description = ivi.realName; + extraGroups = ["wheel" "networkmanager" "docker" "transmission"]; + openssh.authorizedKeys.keys = ivi.sshKeys; + }; + root = { + passwordFile = secrets.password.path; + openssh.authorizedKeys.keys = config.ivi.openssh.authorizedKeys.keys; + }; }; security = { sudo = { -- cgit v1.2.3