My NixOS Configuration
Find a file
2026-10-08 19:18:32 +03:00
home feat(home): add some configs 2026-10-08 19:18:32 +03:00
hosts feat: format 2026-10-05 20:42:31 +03:00
flake.lock feat: update nixvim follows 2026-09-28 20:13:25 +03:00
flake.nix feat: move hosts/common.nix to hosts/common/configuration.nix 2026-10-01 22:30:05 +03:00
README.md docs: update screenshots 2026-09-26 12:19:15 +03:00

flake

My own NixOS configuration.

Image Image

Note

I don't use all configurations here in config folder. I only use some of them. Other configurations will exist as archive. But, you may have problems when you try to use it. To check am I actively using it, you can see bottom of home.nix file. If that line is commented, then I'm not using it.

Installation

Note

You should not use hardware-configuration.nix blindly.

git clone https://github.com/kzzzld/flake ~/flake
cd ~/flake

# for nixmac-btw
# NOTE: You should use --impure if you are in Asahi. Because Asahi needs to read firmware.cpio and it's in /boot.
# NOTE: You may ask, why we don't move that file to flake. If you move that and accidentally push it, you can get DMCA.
# NOTE: And, without --impure Nix flake can't read file outside from flake.
cp /etc/nixos/hardware-configuration.nix ./hosts/nixmac-btw/hardware-configuration.nix
sudo nixos-rebuild switch --flake .#nixmac-btw --impure

# for nixpc-btw
cp /etc/nixos/hardware-configuration.nix ./hosts/nixpc-btw/hardware-configuration.nix
sudo nixos-rebuild switch --flake .#nixpc-btw

# then commit hardware-configuration.nix file
git add .
git commit -m "feat: update hardware-configuration.nix file for newly installed system"

# then you can push it when you want
git push

Contributing

It's my own personal repo but I'm welcome for pull requests, issues etc. If you want to merge code, please ensure it's formatted. To format file, you can use alejandra.

nix shell nixpkgs#alejandra -c alejandra .

Why Alejandra? Because I like how it formats the code.