From 889a52f14742860d15c8045d0f06fe8a774a0d48 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Sat, 18 Jan 2025 20:50:25 +0300 Subject: [PATCH] ThinkBook: Init basic host. --- host/x86_64-linux/thinkbook/Logind.nix | 5 +++++ host/x86_64-linux/thinkbook/default.nix | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 host/x86_64-linux/thinkbook/Logind.nix create mode 100644 host/x86_64-linux/thinkbook/default.nix diff --git a/host/x86_64-linux/thinkbook/Logind.nix b/host/x86_64-linux/thinkbook/Logind.nix new file mode 100644 index 0000000..cd139de --- /dev/null +++ b/host/x86_64-linux/thinkbook/Logind.nix @@ -0,0 +1,5 @@ +{ ... }: +{ + # Don't suspend on lid closed. + services.logind.lidSwitch = "ignore"; +} diff --git a/host/x86_64-linux/thinkbook/default.nix b/host/x86_64-linux/thinkbook/default.nix new file mode 100644 index 0000000..0be9064 --- /dev/null +++ b/host/x86_64-linux/thinkbook/default.nix @@ -0,0 +1,22 @@ +{ ... }: +{ + home.nixos.enable = true; + user = { + root = true; + voronind = true; + }; + + module = { + display.primary = "eDP-1"; + print.enable = true; + builder.client.enable = true; + intel.cpu.enable = true; + purpose = { + desktop = true; + }; + hwmon = { + file = "temp1_input"; + path = "/sys/devices/platform/coretemp.0/hwmon"; + }; + }; +}