54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
|
{ config, lib, pkgs, modulesPath, ... }:
|
||
|
|
||
|
{
|
||
|
imports =
|
||
|
[ (modulesPath + "/profiles/qemu-guest.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" ];
|
||
|
dhcpcd.enable = false;
|
||
|
interfaces = {
|
||
|
enp1s0.ipv4.addresses = [{
|
||
|
address = "198.8.59.4";
|
||
|
prefixLength = 27;
|
||
|
}];
|
||
|
};
|
||
|
defaultGateway = {
|
||
|
address = "198.8.59.1";
|
||
|
interface = "enp1s0";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
time.timeZone = "America/New_York";
|
||
|
i18n.defaultLocale = "en_US.UTF-8";
|
||
|
|
||
|
swapDevices = [ {
|
||
|
device = "/swapfile";
|
||
|
size = 4*1024;
|
||
|
randomEncryption.enable = true;
|
||
|
}];
|
||
|
|
||
|
system.stateVersion = "23.05";
|
||
|
}
|