diff options
author | Profpatsch <mail@profpatsch.de> | 2022-06-26 19:05:48 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2022-06-26 19:05:48 +0200 |
commit | 598149799fb572d4a57b743cea9962a9d3d67680 (patch) | |
tree | f243ab6c7dac6708d96958b6ab85192ed7572ec8 /machines | |
parent | 28f725ae0a3cab8e6cffeb0ea9fcec2737a1772d (diff) |
machines/Profpatsch: Move thinkpad config into separate module
I want to have a thinkpad-based server, which will need the thinkpad-specific stuff but none of the workstation stuff.
Diffstat (limited to 'machines')
-rw-r--r-- | machines/profpatsch/base-workstation.nix | 5 | ||||
-rw-r--r-- | machines/profpatsch/shiki.nix | 1 | ||||
-rw-r--r-- | machines/profpatsch/thinkpad.nix | 11 |
3 files changed, 13 insertions, 4 deletions
diff --git a/machines/profpatsch/base-workstation.nix b/machines/profpatsch/base-workstation.nix index d8deeb62..300e7650 100644 --- a/machines/profpatsch/base-workstation.nix +++ b/machines/profpatsch/base-workstation.nix @@ -1,4 +1,4 @@ -# A base configuration for Thinkpads. +# A base configuration for my workstations. { pkgs, lib, ... }: let myPkgs = import ./pkgs.nix { inherit pkgs lib myLib; }; @@ -31,9 +31,6 @@ in { keyMap = "neo"; }; - # Enables drivers, acpi, power management - vuizvui.hardware.thinkpad.enable = true; - # the kernel OOM is not good enough without swap, # and I don’t like swap. This kills the most hoggy # processes when the system goes under a free space limit diff --git a/machines/profpatsch/shiki.nix b/machines/profpatsch/shiki.nix index 4b9f824b..6a7b8d24 100644 --- a/machines/profpatsch/shiki.nix +++ b/machines/profpatsch/shiki.nix @@ -27,6 +27,7 @@ in { imports = [ ./base-workstation.nix + ./thinkpad.nix # ./possehl-specific-do-not-check-in.nix ]; diff --git a/machines/profpatsch/thinkpad.nix b/machines/profpatsch/thinkpad.nix new file mode 100644 index 00000000..f8baf806 --- /dev/null +++ b/machines/profpatsch/thinkpad.nix @@ -0,0 +1,11 @@ +# hardware-specific configuration for Profpatsch’s thinkpads. +{ lib, config, pkgs, ... }: + +{ + imports = []; + + config = { + # Enables drivers, acpi, power management + vuizvui.hardware.thinkpad.enable = true; + }; +} |