From 01b78dd455c717c3154761b1ef2fbd5f53d51cd6 Mon Sep 17 00:00:00 2001 From: Lzebulon Date: Mon, 26 Jan 2026 22:18:04 +0100 Subject: [PATCH] Et avec le bon hardware config ? --- .../cephiroth/hardware-configuration.nix | 69 ++++++++----------- 1 file changed, 30 insertions(+), 39 deletions(-) diff --git a/hosts/physiques/cephiroth/hardware-configuration.nix b/hosts/physiques/cephiroth/hardware-configuration.nix index c04f8b9..84c49b8 100644 --- a/hosts/physiques/cephiroth/hardware-configuration.nix +++ b/hosts/physiques/cephiroth/hardware-configuration.nix @@ -1,51 +1,34 @@ # 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, - ... -}: +{ config, lib, pkgs, modulesPath, ... }: { - imports = [ - (modulesPath + "/installer/scan/not-detected.nix") - ]; + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; - boot.initrd.availableKernelModules = [ - "ehci_pci" - "ata_piix" - "uhci_hcd" - "hpsa" - "usbhid" - "usb_storage" - "sd_mod" - "sr_mod" - ]; + boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "uhci_hcd" "hpsa" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; - fileSystems."/backups" = { - device = "backups"; - fsType = "zfs"; - }; + fileSystems."/" = + { device = "head/root"; + fsType = "zfs"; + }; - fileSystems."/" = { - device = "head"; - fsType = "zfs"; - }; + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/C900-92D1"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/8E4A-8E9F"; - fsType = "vfat"; - options = [ - "fmask=0022" - "dmask=0022" - ]; - }; + fileSystems."/boot-fallback" = + { device = "/dev/disk/by-uuid/C931-84A4"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; swapDevices = [ ]; @@ -53,13 +36,21 @@ # (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.useDHCP = lib.mkDefault true; + # networking.interfaces.bond0.useDHCP = lib.mkDefault true; + # networking.interfaces.bond0.10.useDHCP = lib.mkDefault true; + # networking.interfaces.bond0.3.useDHCP = lib.mkDefault true; + # networking.interfaces.bonding_masters.useDHCP = lib.mkDefault true; # networking.interfaces.eno1.useDHCP = lib.mkDefault true; # networking.interfaces.eno2.useDHCP = lib.mkDefault true; # networking.interfaces.eno3.useDHCP = lib.mkDefault true; # networking.interfaces.eno4.useDHCP = lib.mkDefault true; - # networking.interfaces.enp4s0f0.useDHCP = lib.mkDefault true; - # networking.interfaces.enp4s0f1.useDHCP = lib.mkDefault true; + # networking.interfaces.eno49.useDHCP = lib.mkDefault true; + # networking.interfaces.eno50.useDHCP = lib.mkDefault true; + # networking.interfaces.eno51.useDHCP = lib.mkDefault true; + # networking.interfaces.eno52.useDHCP = lib.mkDefault true; + # networking.interfaces.enp11s0f0.useDHCP = lib.mkDefault true; + # networking.interfaces.enp11s0f1.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;