From 598149799fb572d4a57b743cea9962a9d3d67680 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sun, 26 Jun 2022 19:05:48 +0200 Subject: 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. --- machines/profpatsch/base-workstation.nix | 5 +---- machines/profpatsch/shiki.nix | 1 + machines/profpatsch/thinkpad.nix | 11 +++++++++++ 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 machines/profpatsch/thinkpad.nix (limited to 'machines/profpatsch') 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; + }; +} -- cgit 1.4.1