[user module] forgot to set ssh-keys for admin user, use /etc/ssh/hostname as server ssh key
Some checks failed
Check flake syntax / flake-check (push) Failing after 2m24s

This commit is contained in:
ahtlon
2025-03-04 20:26:05 +01:00
parent b94849b2f8
commit 65e7152ef0

View File

@@ -2,6 +2,7 @@
let let
cfg = config.malobeo.users; cfg = config.malobeo.users;
sshKeys = import ( inputs.self + /machines/ssh_keys.nix); sshKeys = import ( inputs.self + /machines/ssh_keys.nix);
inherit (config.networking) hostName;
in in
{ {
options.malobeo.users = { options.malobeo.users = {
@@ -32,6 +33,7 @@ in
isNormalUser = true; isNormalUser = true;
description = "admin user, passwordless sudo access, only ssh"; description = "admin user, passwordless sudo access, only ssh";
hashedPassword = null; hashedPassword = null;
openssh.authorizedKeys.keys = sshKeys.admins;
extraGroups = [ "networkmanager" ]; extraGroups = [ "networkmanager" ];
}; };
environment.systemPackages = with pkgs; []; environment.systemPackages = with pkgs; [];
@@ -50,6 +52,7 @@ in
}) })
{ {
users.mutableUsers = false; users.mutableUsers = false;
services.openssh.hostKeys = [{ path = "/etc/ssh/${hostName}"; type = "ssh-ed25519"; }];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
nix-output-monitor nix-output-monitor
vim vim