diff --git a/nixos/laptop-hardware-configuration.nix b/nixos/laptop-hardware-configuration.nix new file mode 100644 index 0000000..1e5aca7 --- /dev/null +++ b/nixos/laptop-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" "nvme" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/646dc4c1-53aa-4fce-9328-f7c42a5b5ea8"; + fsType = "ext4"; + }; + + boot.initrd.luks.devices."luks-c16da30d-5953-4ce9-995a-f4acd77dcaf7".device = "/dev/disk/by-uuid/c16da30d-5953-4ce9-995a-f4acd77dcaf7"; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/E494-B917"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + 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..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} diff --git a/nixos/laptop.nix b/nixos/laptop.nix index aedeb62..39681b6 100644 --- a/nixos/laptop.nix +++ b/nixos/laptop.nix @@ -1,5 +1,6 @@ { ... }: { imports = [ + ./laptop-hardware-configuration.nix ./configuration.nix ]; @@ -8,6 +9,7 @@ }; boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; - syste.stateVersion = "25.11"; + system.stateVersion = "25.11"; }