Add physical
system profile
This commit is contained in:
parent
88b7a63bb0
commit
4ffe117269
2 changed files with 14 additions and 3 deletions
|
@ -3,8 +3,9 @@
|
||||||
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x1-extreme-gen4
|
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x1-extreme-gen4
|
||||||
../../common
|
../../common
|
||||||
../../profiles/graphical
|
../../profiles/graphical
|
||||||
./hardware-configuration.nix
|
../../profiles/physical.nix
|
||||||
./disko.nix
|
./disko.nix
|
||||||
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.extraModprobeConfig = ''
|
boot.extraModprobeConfig = ''
|
||||||
|
@ -27,7 +28,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
hardware.cpu.intel.updateMicrocode = true;
|
|
||||||
hardware.gpgSmartcards.enable = true;
|
hardware.gpgSmartcards.enable = true;
|
||||||
hardware.nitrokey.enable = true;
|
hardware.nitrokey.enable = true;
|
||||||
|
|
||||||
|
@ -44,7 +44,6 @@
|
||||||
extraBackends = [ pkgs.utsushi ];
|
extraBackends = [ pkgs.utsushi ];
|
||||||
};
|
};
|
||||||
|
|
||||||
kyouma.machine-type.physical = true;
|
|
||||||
kyouma.machine-type.portable = true;
|
kyouma.machine-type.portable = true;
|
||||||
|
|
||||||
networking.hostName = "ryuuko";
|
networking.hostName = "ryuuko";
|
||||||
|
|
12
config/profiles/physical.nix
Normal file
12
config/profiles/physical.nix
Normal file
|
@ -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;
|
||||||
|
}
|
Loading…
Reference in a new issue