nixos-example/configuration.nix
2025-10-08 19:04:29 -04:00

26 lines
542 B
Nix

{ pkgs, ... }:
{
imports = [];
networking.hostName = "example";
system.stateVersion = "24.11";
security.sudo.wheelNeedsPassword = false;
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
};
users.users.example = {
isNormalUser = true;
description = "example";
extraGroups = [ "networkmanager" "wheel" ];
initialPassword = "hunter2";
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICyTxPV3S7ms0AJ0tduI3aJP3o2TJCnkirWKaj5i1+DW"
];
};
}