iso: set admin keys for nixos user, too
This commit is contained in:
parent
e2d88bdc80
commit
5a6de46dff
|
@ -104,6 +104,13 @@ in
|
||||||
openssh.authorizedKeys.keys = adminKeys;
|
openssh.authorizedKeys.keys = adminKeys;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# TODO: change when on 23.05
|
||||||
|
# https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/profiles/installation-device.nix#L23
|
||||||
|
# nixos = lib.mkIf (config.system.nixos.variant_id == "installer") { openssh.authorizedKeys.keys = adminKeys; };
|
||||||
|
# using proxy option to detect iso
|
||||||
|
# https://github.com/NixOS/nixpkgs/blob/nixos-22.11/nixos/modules/profiles/installation-device.nix#L48
|
||||||
|
nixos = lib.mkIf (config.services.getty.autologinUser == "nixos") { openssh.authorizedKeys.keys = adminKeys; };
|
||||||
|
|
||||||
root.openssh.authorizedKeys.keys = adminKeys;
|
root.openssh.authorizedKeys.keys = adminKeys;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user