nixos-configuration/hosts/vm/configuration.nix
2025-10-09 14:03:56 +02:00

34 lines
699 B
Nix

{ pkgs, ... }:
let
sshKeys = {
jalr = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH3l+Yixrsjhze20CSjvUK4Qj/BNqbTNitgk20vuzPej cardno:25_750_479" ];
};
in
{
environment.systemPackages = with pkgs; [
htop
];
boot.loader.grub.enable = false;
services.getty.autologinUser = "root";
fileSystems."/" = {
fsType = "tmpfs";
options = [ "mode=0755" ];
};
services.openssh.enable = true;
users.users = {
jalr = {
isNormalUser = true;
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = sshKeys.jalr;
};
root.openssh.authorizedKeys.keys = sshKeys.jalr;
};
security.sudo.wheelNeedsPassword = false;
system.stateVersion = "25.05";
}