diff options
author | Jasper Ras <jras@hostnet.nl> | 2025-02-12 08:19:04 +0100 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2025-02-12 08:19:04 +0100 |
commit | 07f84bb581e369ff79100f0417e9d277f3c1fb61 (patch) | |
tree | 64ec899f185a3d794791df191f53939dbc67be41 /modules/tarrel/hardware-configuration.nix | |
parent | 8fe481c0858702231335ad6c5eb850b293781b61 (diff) |
alot of stuff
Diffstat (limited to 'modules/tarrel/hardware-configuration.nix')
-rw-r--r-- | modules/tarrel/hardware-configuration.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/modules/tarrel/hardware-configuration.nix b/modules/tarrel/hardware-configuration.nix new file mode 100644 index 0000000..4604fcd --- /dev/null +++ b/modules/tarrel/hardware-configuration.nix @@ -0,0 +1,40 @@ +# 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") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "uas" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/b73c41ec-fe01-4fa5-b50a-fd871e8c2710"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/BBB8-1AF8"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + 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; + # networking.interfaces.wlp0s20f0u9.useDHCP = lib.mkDefault true; + # networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} |