From 850c83ea3707022d73c81fba65890e2737248aa6 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Sun, 10 Nov 2024 13:33:38 +0300 Subject: [PATCH] Pocket: Split host config. --- host/x86_64-linux/desktop/default.nix | 1 - host/x86_64-linux/pocket/Boot.nix | 6 ++++++ host/x86_64-linux/pocket/Logind.nix | 6 ++++++ host/x86_64-linux/pocket/Tlp.nix | 3 +++ host/x86_64-linux/pocket/default.nix | 12 ------------ host/x86_64-linux/work/default.nix | 1 - 6 files changed, 15 insertions(+), 14 deletions(-) create mode 100644 host/x86_64-linux/pocket/Boot.nix create mode 100644 host/x86_64-linux/pocket/Logind.nix create mode 100644 host/x86_64-linux/pocket/Tlp.nix diff --git a/host/x86_64-linux/desktop/default.nix b/host/x86_64-linux/desktop/default.nix index 278603c4..76834a1a 100644 --- a/host/x86_64-linux/desktop/default.nix +++ b/host/x86_64-linux/desktop/default.nix @@ -6,7 +6,6 @@ }; module = { - autoupdate.enable = true; builder.client.enable = true; distrobox.enable = true; keyd.enable = true; diff --git a/host/x86_64-linux/pocket/Boot.nix b/host/x86_64-linux/pocket/Boot.nix new file mode 100644 index 00000000..71b1c469 --- /dev/null +++ b/host/x86_64-linux/pocket/Boot.nix @@ -0,0 +1,6 @@ +{ ... }: { + boot.kernelParams = [ + "fbcon=rotate:1" + "video=DSI-1:rotate=90" + ]; +} diff --git a/host/x86_64-linux/pocket/Logind.nix b/host/x86_64-linux/pocket/Logind.nix new file mode 100644 index 00000000..6d5aa2d0 --- /dev/null +++ b/host/x86_64-linux/pocket/Logind.nix @@ -0,0 +1,6 @@ +{ ... }: { + services.logind = { + powerKey = "ignore"; + lidSwitch = "ignore"; + }; +} diff --git a/host/x86_64-linux/pocket/Tlp.nix b/host/x86_64-linux/pocket/Tlp.nix new file mode 100644 index 00000000..1474255f --- /dev/null +++ b/host/x86_64-linux/pocket/Tlp.nix @@ -0,0 +1,3 @@ +{ ... }: { + services.tlp.enable = true; +} diff --git a/host/x86_64-linux/pocket/default.nix b/host/x86_64-linux/pocket/default.nix index 55d5a5a9..21173e82 100644 --- a/host/x86_64-linux/pocket/default.nix +++ b/host/x86_64-linux/pocket/default.nix @@ -1,16 +1,4 @@ { lib, ... }: { - boot.kernelParams = [ - "fbcon=rotate:1" - "video=DSI-1:rotate=90" - ]; - - services.logind = { - powerKey = "ignore"; - lidSwitch = "ignore"; - }; - - services.tlp.enable = true; - home.nixos.enable = true; user = { root.enable = true; diff --git a/host/x86_64-linux/work/default.nix b/host/x86_64-linux/work/default.nix index 8182fce3..26635c34 100644 --- a/host/x86_64-linux/work/default.nix +++ b/host/x86_64-linux/work/default.nix @@ -10,7 +10,6 @@ }; module = { - autoupdate.enable = true; builder.client.enable = true; sway.enable = true; kernel.enable = true;