mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 02:28:37 +02:00
updated README's installation instructions
This commit is contained in:
@@ -3,16 +3,16 @@
|
|||||||
### Installation guide
|
### Installation guide
|
||||||
|
|
||||||
⚠️ **Note:**
|
⚠️ **Note:**
|
||||||
Before using on another system, review:
|
Before using on another system, change:
|
||||||
- hostName
|
- 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.
|
You need to have `git` installed before installing the config.
|
||||||
```shell
|
```shell
|
||||||
cd
|
cd
|
||||||
git clone https://github.com/Totorile1/nixos.git
|
git clone https://github.com/Totorile1/nixos.git
|
||||||
cd ./nixos
|
cd ./nixos
|
||||||
|
sudo cp /etc/nixos/hardware-configuration.nix ./hosts/laptop/hardware-configuration
|
||||||
sudo nixos-rebuild switch --flake ~/nixos/#laptop
|
sudo nixos-rebuild switch --flake ~/nixos/#laptop
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ Item {
|
|||||||
readonly property bool isPluggedIn: isCharging || chargeState == UPowerDeviceState.PendingCharge
|
readonly property bool isPluggedIn: isCharging || chargeState == UPowerDeviceState.PendingCharge
|
||||||
readonly property real percentage: UPower.displayDevice.percentage
|
readonly property real percentage: UPower.displayDevice.percentage
|
||||||
readonly property bool isLow: percentage <= 0.20
|
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
|
width: 32
|
||||||
height: 32
|
height: 32
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user