From 4227b9c162a333e3aa68ee00ac860b2523dd5af6 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Fri, 8 Nov 2024 10:48:51 +0300 Subject: [PATCH] Pocket: Fixes. --- home/config/waybar/config/default.nix | 2 +- host/x86_64-linux/pocket/default.nix | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/home/config/waybar/config/default.nix b/home/config/waybar/config/default.nix index c5e6f88..db6c528 100644 --- a/home/config/waybar/config/default.nix +++ b/home/config/waybar/config/default.nix @@ -75,7 +75,7 @@ in { states = { good = 60; warning = 40; - critical = 2; + critical = 20; }; format-icons = [ "󰂎" diff --git a/host/x86_64-linux/pocket/default.nix b/host/x86_64-linux/pocket/default.nix index 3199420..cb17875 100644 --- a/host/x86_64-linux/pocket/default.nix +++ b/host/x86_64-linux/pocket/default.nix @@ -1,4 +1,4 @@ -{ ... }: { +{ lib, ... }: { home.nixos.enable = true; user = { root.enable = true; @@ -6,7 +6,6 @@ }; module = { - autoupdate.enable = true; builder.client.enable = true; keyd.enable = true; print.enable = true; @@ -14,6 +13,7 @@ enable = true; extraConfig = '' output DSI-1 transform 90 + input * map_to_output DSI-1 ''; }; kernel = { @@ -38,4 +38,14 @@ gaming.enable = true; }; }; + + boot.kernelParams = [ + "fbcon=rotate:1" + "video=DSI-1:rotate=90" + ]; + + services.logind = { + powerKey = "ignore"; + lidSwitch = "ignore"; + }; }