From 7e1fddf23989faaf2edd31a6146f0a8251ceab7f Mon Sep 17 00:00:00 2001 From: Tomas Rivera <137088692+Totorile1@users.noreply.github.com> Date: Wed, 11 Mar 2026 11:26:44 +0100 Subject: [PATCH] updated README's installation instructions --- README.md | 6 +++--- other/quickshell/bar/Power.qml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6a3d815..fef7b0f 100644 --- a/README.md +++ b/README.md @@ -3,16 +3,16 @@ ### Installation guide ⚠️ **Note:** -Before using on another system, review: +Before using on another system, change: - hostName -- hardware options - +- if your computer is not a laptop change in ~/nixos/other/quickshell/bar/Power.qml the isLaptop variable to false. (This is a hardcoded value, because I can't get UPowerDevice.isLaptopBattery to work) You need to have `git` installed before installing the config. ```shell cd git clone https://github.com/Totorile1/nixos.git cd ./nixos +sudo cp /etc/nixos/hardware-configuration.nix ./hosts/laptop/hardware-configuration sudo nixos-rebuild switch --flake ~/nixos/#laptop ``` diff --git a/other/quickshell/bar/Power.qml b/other/quickshell/bar/Power.qml index 6c917d9..5805b08 100644 --- a/other/quickshell/bar/Power.qml +++ b/other/quickshell/bar/Power.qml @@ -13,7 +13,7 @@ Item { readonly property bool isPluggedIn: isCharging || chargeState == UPowerDeviceState.PendingCharge readonly property real percentage: UPower.displayDevice.percentage readonly property bool isLow: percentage <= 0.20 - readonly property bool isLaptop: true // hardcoded because this doesnt work UPowerDevice.isLaptopBattery + readonly property bool isLaptop: UPowerDevice.isLaptop // hardcoded because this doesnt work UPowerDevice.isLaptopBattery width: 32 height: 32