nixos/hosts/stella.nix

63 lines
1.4 KiB
Nix
Raw Normal View History

2024-09-26 09:44:39 +00:00
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
2024-09-27 14:25:51 +00:00
./stella-web.nix
2024-09-26 09:44:39 +00:00
];
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/e31f5386-8b86-4aa0-9666-606680bcd10f";
fsType = "ext4";
};
networking.useDHCP = lib.mkDefault false;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
boot.loader.grub = {
enable = true;
device = "/dev/vda";
};
networking = {
hostName = "stella";
search = ["wolfgirl.systems"];
2024-09-27 15:28:47 +00:00
nameservers = [ "9.9.9.10" "149.112.112.10" "2620:fe::10" "2620:fe::fe:10"];
2024-09-26 09:44:39 +00:00
dhcpcd.enable = false;
interfaces = {
enp1s0.ipv4.addresses = [{
address = "198.8.59.4";
prefixLength = 27;
}];
2024-09-27 15:28:47 +00:00
enp1s0.ipv6.addresses = [{
address = "2a0f:85c1:31:e11a::";
prefixLength = 48;
}];
2024-09-26 09:44:39 +00:00
};
defaultGateway = {
address = "198.8.59.1";
interface = "enp1s0";
};
2024-09-27 15:28:47 +00:00
defaultGateway6 = {
address = "2a0f:85c1:31::";
interface = "enp1s0";
};
2024-09-26 09:44:39 +00:00
};
time.timeZone = "America/New_York";
i18n.defaultLocale = "en_US.UTF-8";
swapDevices = [ {
device = "/swapfile";
size = 4*1024;
randomEncryption.enable = true;
}];
system.stateVersion = "23.05";
}