From 79cbae2cfe4858973ffd8fc019feeb0ed739de45 Mon Sep 17 00:00:00 2001 From: Alexandre Date: Sat, 7 Feb 2026 20:22:02 +0100 Subject: [PATCH] Added a hw config to light --- hosts/light/hardware-configuration.nix | 41 ++++++++++++++++++++++++++ modules/default.nix | 2 +- modules/nixos/xfce.nix | 2 +- 3 files changed, 43 insertions(+), 2 deletions(-) create mode 100755 hosts/light/hardware-configuration.nix diff --git a/hosts/light/hardware-configuration.nix b/hosts/light/hardware-configuration.nix new file mode 100755 index 0000000..42bc294 --- /dev/null +++ b/hosts/light/hardware-configuration.nix @@ -0,0 +1,41 @@ +# 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" "usb_storage" "usbhid" "sd_mod" "alcor" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/caa81e10-576e-4868-bf1f-1395a5d23ab0"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/CD34-DB0C"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/d7c24a97-9d09-4553-8587-df333b3de55a"; } + ]; + + # 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.eno1.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; +} diff --git a/modules/default.nix b/modules/default.nix index 3f96b94..d65d5bd 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -1,7 +1,7 @@ { common = { home = ../hosts/common/home.nix; - module = ../../hosts/common/modules.nix; + module = ../hosts/common/modules.nix; ai = ./common/ai.nix; direnv = ./common/direnv.nix; environment = ./common/environment.nix; diff --git a/modules/nixos/xfce.nix b/modules/nixos/xfce.nix index b5174eb..09196a3 100644 --- a/modules/nixos/xfce.nix +++ b/modules/nixos/xfce.nix @@ -7,7 +7,7 @@ xterm = { enable = true; }; - xfce { + xfce = { enable = true; }; };