mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 16:58:34 -05:00
46 lines
1.3 KiB
Nix
46 lines
1.3 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-intel"];
|
|
boot.extraModulePackages = [];
|
|
|
|
fileSystems."/" = {
|
|
device = "/dev/disk/by-uuid/db174184-450c-4a20-8f49-7cdfa7286597";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
# fileSystems."/efi" = {
|
|
# device = "systemd-1";
|
|
# fsType = "autofs";
|
|
# };
|
|
|
|
fileSystems."/efi" = {
|
|
device = "/dev/disk/by-uuid/CAD5-786D";
|
|
fsType = "vfat";
|
|
options = ["fmask=0077" "dmask=0077"];
|
|
};
|
|
|
|
swapDevices = [
|
|
{device = "/dev/disk/by-uuid/c32340af-8706-4373-8e2b-349e9d5c3475";}
|
|
];
|
|
|
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
# still possible to use this option, but it's recommended to use it in conjunction
|
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
networking.useDHCP = lib.mkDefault true;
|
|
# networking.interfaces.ens3.useDHCP = lib.mkDefault true;
|
|
# networking.interfaces.tailscale0.useDHCP = lib.mkDefault true;
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
}
|