diff options
author | Franck Cuny <franck@fcuny.net> | 2022-02-27 08:32:28 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-02-27 13:05:30 -0800 |
commit | 4a34a905501f013a7a1aefea8ed93db6e094697f (patch) | |
tree | 994278b4cba02f0853b87a72b2eb26c9ffbd3423 | |
parent | sway: import systemd environments on startup (diff) | |
download | world-4a34a905501f013a7a1aefea8ed93db6e094697f.tar.gz |
hardware: start capturing hardware related stuff
Create a new module for hardware related things, in order to configure correctly the various machines.
Diffstat (limited to '')
-rw-r--r-- | hosts/common/hardware/intel.nix | 4 | ||||
-rw-r--r-- | hosts/common/hardware/xps9300.nix | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/hosts/common/hardware/intel.nix b/hosts/common/hardware/intel.nix new file mode 100644 index 0000000..ac279fb --- /dev/null +++ b/hosts/common/hardware/intel.nix @@ -0,0 +1,4 @@ +{ + hardware.cpu.intel.updateMicrocode = true; + boot.kernelModules = [ "kvm-intel" ]; +} diff --git a/hosts/common/hardware/xps9300.nix b/hosts/common/hardware/xps9300.nix new file mode 100644 index 0000000..f944f55 --- /dev/null +++ b/hosts/common/hardware/xps9300.nix @@ -0,0 +1,6 @@ +{ + imports = [ + ./intel.nix + ]; + boot.kernelParams = [ "mem_sleep_default=deep" ]; +} |