Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

iancleary/desktop-config

Repository files navigation

My NixOS configuration for my desktop and laptop computers, with Nix Flakes

Made with Neovim NixOS

Installation

# Clone this repository
git clone [email protected]:iancleary/nixos-config.git
cd nixos-config

# Open tempoary shell with nix and home-manager (shell.nix)
# if no flake.lock exists, run `nix flake update`
nix-shell

# Install the configuration (adjust #framework to your #yourhostname )
## Boot is used here so you don't mess up your current session
## This is useful when switching desktop environments or display managers
sudo nixos-rebuild boot --flake .#framework


# Exit temporary shell
exit

Make sure to update the flake.nix and nixos/ folders for your hostname

Update

# Go to the repo directory
nix flake update
sudo nixos-rebuild switch --flake .

Desktop

Super + r to launch runner

Hyprland Desktop with runner

Neofetch in alacritty (Super + q)

Neofetch in kitty terminal emulator

Useful Commands

Check battery health

nix-shell -p acpi                                                                                                                                                                                                                                  ─╯
acpi -i                                                                                                                                                                                                                                            ─╯

which outputs something like

Battery 0: Discharging, 84%, 04:47:22 remaining
Battery 0: design capacity 3572 mAh, last full capacity 3152 mAh = 88%

which is for a few year old Framework 13's 55 Wh battery.

Resources