2026-07-16 16:15:10 +02:00
2026-07-16 16:15:10 +02:00
2026-07-16 16:15:10 +02:00
2026-07-16 16:15:10 +02:00
2026-07-16 16:15:10 +02:00
2026-07-16 16:15:10 +02:00
2026-07-16 16:15:10 +02:00
2026-07-16 16:15:10 +02:00
2026-07-16 16:15:10 +02:00

NixOS configuration with Niri

This repository contains the declarative configuration files for my Thinkpad T480, it uses NixOS and Niri as the window compositor, it should work on most hardware just fine, assuming you are using an Intel IGPU, adjust accordingly to the NixOS wiki if needed.

It works on my hardware, and of course it is not guaranteed to fully work on yours, although it should.


Installation

After booting into the ISO and following the wiki to partition and mount the drives, clone the repo and put it in the right directory.

sudo nixos-generate-config -root /mnt
sudo nix-shell -p git
cd /mnt/etc/nixos/
sudo rm configuration.nix
git clone https://git.cln.cat/cln6/nixos-thinkpad
sudo mv nixos-thinkpad/* ./ && sudo rm -rf nixos-thinkpad

After that you can leave the Nix shell and enter into the proper directory, and install the system:

exit
cd /mnt
sudo nixos-install --flake /mnt/etc/nixos#cln (replace cln with your new hostname if you have decided to change it, instructions on how to do that are in the Notes section of this repo)

That's it, after it's done installing you should be able to reboot into the system, the default username is "cln" and password is "123", please change it after installation with the passwd cln command.

Keybinds


Applications

Keybind App
Super + D App launcher
Super + Enter kitty
Super + Q kitty
Super + Shift + D Mullvad browser
Super + Shift + F Librewolf
Super + E File manager
Super + B Overskride ( Bluetooth )
Super + P Pwvucontrol ( Audio )

Window Management

Keybind Action
Super + Shift + Q Kill active window
Super + V Toggle floating mode
Super + Q Toggle overview
Super + F Maximize

Keybind Action
Super + 1-10 Switch workspace to your chosen number
Super + Shift + 1-10 Move the active window to your chosen workspace
Super + Arrowkey Switch to column on right/left side
Super + Shift + Arrowkey Move the active window to a column on right/left side

Other

Keybind Action
Super + Arrow key Switch your current focused window
Super + Shift + E Exit Niri

Notes

  • In order to use a different username, replace every "cln" word with your desired username in these files: configuration.nix, home.nix as well as "users.cln" line in flake.nix.
  • In order to change your hostname, edit the hostname line in configuration.nix, as well as all other lines with the word "cln" except for the "users.cln" line.

Summary

So yeah this is my NixOS repo ig, I wasnt planning on using NixOS after the previous commit, but oh well I decided to not give up on the idea, I am gonna try to maintain this repo as much as I can, it isn't even finished yet.

S
Description
NixOs configuration files for my Thinkpad T480
Readme 16 MiB
Languages
CSS 98%
Nix 1.1%
Lua 0.9%