nixos-selfhost/hardware-configuration.nix

42 lines
1.5 KiB
Nix
Raw Normal View History

2024-02-25 19:54:33 +01:00
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
2024-03-03 09:19:19 +01:00
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ata_piix" "pata_jmicron" "usbhid" "floppy" "sd_mod" ];
boot.initrd.kernelModules = [ ];
2024-02-25 19:54:33 +01:00
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/a0be6182-8c58-4cac-b2c4-58148b1847e8";
fsType = "ext4";
};
2024-03-06 20:10:06 +01:00
fileSystems."/mnt/movie_drive" =
2024-03-03 09:19:19 +01:00
{ device = "/dev/disk/by-uuid/f3463885-fde8-4488-9442-37ced2b2c8f3";
fsType = "ext4";
};
2024-04-29 14:58:47 +02:00
fileSystems."/pool" = {
device = "/dev/pool1/vol1";
fsType = "ext4";
};
2024-02-25 19:54:33 +01:00
swapDevices = [ ];
# 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.enp4s0.useDHCP = lib.mkDefault true;
2024-03-03 09:16:42 +01:00
# networking.interfaces.tailscale0.useDHCP = lib.mkDefault true;
2024-02-25 19:54:33 +01:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}