diff options
| author | Petri Hienonen <petri.hienonen@gmail.com> | 2024-05-23 09:44:38 +0300 |
|---|---|---|
| committer | Petri Hienonen <petri.hienonen@gmail.com> | 2024-05-23 09:44:38 +0300 |
| commit | 75c2af4aedd2ac5c2cfc74b346625fa4b265541d (patch) | |
| tree | f0a58a6c699dc305ae8f506a806761ad7e57029c /hosts/saarni/hardware-configuration.nix | |
| download | nixos-75c2af4aedd2ac5c2cfc74b346625fa4b265541d.tar.zst | |
Nixos
Diffstat (limited to 'hosts/saarni/hardware-configuration.nix')
| -rw-r--r-- | hosts/saarni/hardware-configuration.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/hosts/saarni/hardware-configuration.nix b/hosts/saarni/hardware-configuration.nix new file mode 100644 index 0000000..6aef572 --- /dev/null +++ b/hosts/saarni/hardware-configuration.nix @@ -0,0 +1,37 @@ +# 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" "thunderbolt" "nvme" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/3968a07a-5e37-4bdb-9e3a-6c74950fd03d"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/9B7E-3D1B"; + 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.wlan0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} |
