nixos/hosts/nova.nix

66 lines
1.5 KiB
Nix
Raw Permalink Normal View History

2024-09-28 23:43:27 +00:00
{ 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";
2024-09-29 01:45:04 +00:00
time.timeZone = "Europe/London";
2024-09-28 23:43:27 +00:00
i18n.defaultLocale = "en_US.UTF-8";
services.openssh.enable = true;
2024-09-30 04:12:30 +00:00
services.xserver.videoDrivers = [ "nvidia" ];
hardware.graphics.enable = true;
hardware.nvidia = {
modesetting.enable = true;
nvidiaPersistenced = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
open = false;
};
2024-09-28 23:43:27 +00:00
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;
}];
2024-09-29 02:33:35 +00:00
environment.etc."info" = {
mode = "0644";
text = builtins.readFile ./info/nova;
};
2024-09-28 23:43:27 +00:00
system.stateVersion = "24.05";
}