egregore/configuration.nix
2026-02-24 16:35:58 -08:00

73 lines
1.3 KiB
Nix

{
modulesPath,
lib,
pkgs,
...
}:
{
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
./disks.nix
];
boot = {
initrd.availableKernelModules = [
"ata_piix"
"uhci_hcd"
"virtio_pci"
"virtio_scsi"
"sd_mod"
];
kernelModules = [ "kvm-amd" ];
loader.grub = {
efiSupport = true;
efiInstallAsRemovable = true;
};
};
networking = {
hostName = "egregore";
useDHCP = lib.mkDefault true;
};
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "prohibit-password";
PasswordAuthentication = false;
};
};
environment.systemPackages = [
pkgs.git
pkgs.htop
pkgs.curl
];
users.users = {
root = {
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBCCOUFUeQW63bf0KFxQGs9KZRf8nV26ZCyNW8luvdEx root@marauder"
];
};
nettika = {
isNormalUser = true;
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHopty1QG8P+OfGxQ9CV0BI1IRB/q6yITzMZaZ6Zspid nettika@marauder"
];
};
};
security.sudo.wheelNeedsPassword = false;
nix.settings.trusted-users = [
"root"
"nettika"
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
system.stateVersion = "25.11";
}