+
Skip to content

antholeole/nixconfig

Repository files navigation

Quick start (nixos)

  • nix flake show to see all outputs
  • sudo nixos-rebuild switch --flake .#pc --impure

HomeManager only:

  1. Install nix
  2. enable flakes: mkdir -p ~/.config/nix && echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
  3. git clone this repo
  4. activate home-manager via a temporary install. nix shell home-manager
  5. run home-manager switch --flake .#<hm-config> --impure -b backup. for example, "headless-work" for <hm-config>
  6. make sure you use the fish in ~/.nix-profile/bin, it has a custom init built in.

Post install

for hm, run init-niri to initalize the wm.

Notes

this needs a refactor. I wouldn't copy the structure. If i have to update, say, niri in nixos and hm, I have to do it across multiple files. Flake parts has https://flake.parts/options/flake-parts-flakemodules for that.

About

My nix config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载