diff options
| author | Mike Vink <mike1994vink@gmail.com> | 2023-10-18 23:11:16 +0200 |
|---|---|---|
| committer | Mike Vink <mike1994vink@gmail.com> | 2023-10-18 23:11:16 +0200 |
| commit | 40b0c12e3e7a106c90fa454f03b25efddcef2e67 (patch) | |
| tree | b4610adc55e842721f1f1f1d7e229fe94305c346 /profiles | |
| parent | fa37518d7b6fb2d197d7933233cde37ffeec7cdf (diff) | |
fixup
Diffstat (limited to 'profiles')
| -rw-r--r-- | profiles/core/configuration.nix | 18 |
1 files 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 = { |
