52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
{
|
|
imports =
|
|
[ (modulesPath + "/profiles/qemu-guest.nix")
|
|
];
|
|
|
|
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_blk" ];
|
|
boot.initrd.kernelModules = [ ];
|
|
boot.kernelModules = [ "kvm-amd" ];
|
|
boot.extraModulePackages = [ ];
|
|
|
|
fileSystems."/" =
|
|
{ device = "/dev/disk/by-uuid/391c15a3-9c2d-44e7-ba64-7cfcdc5c7a4e";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
boot.loader.grub.enable = true;
|
|
boot.loader.grub.device = "/dev/vda";
|
|
|
|
time.timeZone = "Europe/Amsterdam";
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
services.openssh.enable = true;
|
|
networking.firewall.enable = false;
|
|
|
|
networking = {
|
|
hostName = "nova";
|
|
search = ["wolfgirl.systems"];
|
|
nameservers = [ "9.9.9.10" "149.112.112.10" "2620:fe::10" "2620:fe::fe:10"];
|
|
dhcpcd.enable = true;
|
|
interfaces = {
|
|
ens3.ipv6.addresses = [{
|
|
address = "2a0f:85c2:7::3b";
|
|
prefixLength = 126;
|
|
}];
|
|
};
|
|
defaultGateway6 = {
|
|
address = "2a0f:85c2:7::1";
|
|
interface = "ens3";
|
|
};
|
|
};
|
|
|
|
swapDevices = [ {
|
|
device = "/swapfile";
|
|
size = 4*1024;
|
|
randomEncryption.enable = true;
|
|
}];
|
|
|
|
system.stateVersion = "24.05";
|
|
}
|