Add nvidia and ssh to initrd for penguin

This commit is contained in:
2025-09-11 20:19:23 +08:00
parent 3db0b9726c
commit 73811c06af

View File

@@ -2,6 +2,7 @@
pkgs,
inputs,
lib,
config,
...
}:
let
@@ -28,6 +29,19 @@ in
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
initrd.network = {
enable = true;
ssh = {
enable = true;
hostKeys = [ "/etc/secrets/initrd/ssh_host_ed25519_key" ];
authorizedKeys = lib.concatLists (
lib.mapAttrsToList (
name: user: if lib.elem "wheel" user.extraGroups then user.openssh.authorizedKeys.keys else [ ]
) config.users.users
);
};
};
};
time.timeZone = "Asia/Singapore";
@@ -74,6 +88,10 @@ in
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
hardware.graphics.enable = true;
hardware.nvidia.open = true;
system.stateVersion = "25.11";
};
}