aboutsummaryrefslogtreecommitdiff
path: root/profiles/defaults.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2026-01-24 11:03:00 -0800
committerFranck Cuny <franck@fcuny.net>2026-01-24 11:03:00 -0800
commit3b26e1404698491591023063afc7d94b28978dbb (patch)
treeed4c4f0e313ceb3f2590ebd82d26fe74902e8ce6 /profiles/defaults.nix
parentadding a new VM for testing (diff)
downloadinfra-3b26e1404698491591023063afc7d94b28978dbb.tar.gz
ensure ssh keys for root are in the iso
Diffstat (limited to '')
-rw-r--r--profiles/defaults.nix12
1 files changed, 2 insertions, 10 deletions
diff --git a/profiles/defaults.nix b/profiles/defaults.nix
index 834c28d..ab11f81 100644
--- a/profiles/defaults.nix
+++ b/profiles/defaults.nix
@@ -2,7 +2,6 @@
config,
pkgs,
lib,
- adminUser,
...
}:
let
@@ -19,6 +18,7 @@ in
{
imports = [
./cgroups.nix
+ ./users/root.nix
];
boot = {
@@ -122,15 +122,7 @@ in
## disable that slow "building man-cache" step
documentation.man.generateCaches = lib.mkForce false;
- users = {
- mutableUsers = false;
- users.root.openssh.authorizedKeys.keys = with adminUser.userinfo.sshPublicKeys; [
- onepassword
- yubikey-personal-nano
- yubikey-personal-keychain
- yubikey-personal-backup
- ];
- };
+ users.mutableUsers = false;
security.sudo.wheelNeedsPassword = false;