nixos/hosts/stella.nix
2024-09-28 22:33:35 -04:00

67 lines
1.5 KiB
Nix

{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
./stella-web.nix
];
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"];
nameservers = [ "9.9.9.10" "149.112.112.10" "2620:fe::10" "2620:fe::fe:10"];
dhcpcd.enable = false;
interfaces = {
enp1s0.ipv4.addresses = [{
address = "198.8.59.4";
prefixLength = 27;
}];
enp1s0.ipv6.addresses = [{
address = "2a0f:85c1:31:e11a::";
prefixLength = 48;
}];
};
defaultGateway = {
address = "198.8.59.1";
interface = "enp1s0";
};
defaultGateway6 = {
address = "2a0f:85c1:31::";
interface = "enp1s0";
};
};
time.timeZone = "America/New_York";
i18n.defaultLocale = "en_US.UTF-8";
swapDevices = [ {
device = "/swapfile";
size = 4*1024;
randomEncryption.enable = true;
}];
environment.etc."info" = {
mode = "0644";
text = builtins.readFile ./info/stella;
};
system.stateVersion = "23.05";
}