From 4e48d44f9c5bb266df91874365b5880915a2dfc7 Mon Sep 17 00:00:00 2001 From: System administrator Date: Thu, 4 Jul 2024 17:39:05 +0000 Subject: [PATCH] init sakopc --- hosts/sakopc/hardware-configuration.nix | 47 +++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 hosts/sakopc/hardware-configuration.nix diff --git a/hosts/sakopc/hardware-configuration.nix b/hosts/sakopc/hardware-configuration.nix new file mode 100644 index 00000000..f14b9577 --- /dev/null +++ b/hosts/sakopc/hardware-configuration.nix @@ -0,0 +1,47 @@ +# 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 = [ "vmd" "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/d2b85526-e2e8-4b25-a707-4d0d8ee094fa"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/C473-533C"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + fileSystems."/boot/efi" = + { device = "/dev/disk/by-uuid/6050-5019"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/229bd5a6-142e-43bc-b716-e2d903072c2c"; } + ]; + + # 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..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.eno2.useDHCP = lib.mkDefault true; + # networking.interfaces.wlo1.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}