From 4ffe117269ff3aa1871127a7437db1e6759e87a2 Mon Sep 17 00:00:00 2001 From: emily Date: Wed, 12 Jun 2024 16:20:58 +0200 Subject: [PATCH] Add `physical` system profile --- config/hosts/ryuuko/configuration.nix | 5 ++--- config/profiles/physical.nix | 12 ++++++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 config/profiles/physical.nix diff --git a/config/hosts/ryuuko/configuration.nix b/config/hosts/ryuuko/configuration.nix index 2ee1d17..7354d71 100644 --- a/config/hosts/ryuuko/configuration.nix +++ b/config/hosts/ryuuko/configuration.nix @@ -3,8 +3,9 @@ inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x1-extreme-gen4 ../../common ../../profiles/graphical - ./hardware-configuration.nix + ../../profiles/physical.nix ./disko.nix + ./hardware-configuration.nix ]; boot.extraModprobeConfig = '' @@ -27,7 +28,6 @@ }; hardware.bluetooth.enable = true; - hardware.cpu.intel.updateMicrocode = true; hardware.gpgSmartcards.enable = true; hardware.nitrokey.enable = true; @@ -44,7 +44,6 @@ extraBackends = [ pkgs.utsushi ]; }; - kyouma.machine-type.physical = true; kyouma.machine-type.portable = true; networking.hostName = "ryuuko"; diff --git a/config/profiles/physical.nix b/config/profiles/physical.nix new file mode 100644 index 0000000..792b192 --- /dev/null +++ b/config/profiles/physical.nix @@ -0,0 +1,12 @@ +{ pkgs, ... }:{ + environment.systemPackages = with pkgs; [ + pciutils + usbutils + ]; + hardware.cpu.intel.updateMicrocode = true; + hardware.enableAllFirmware = true; + + kyouma.machine-type.physical = true; + + services.fwupd.enable = true; +}