nix flake show
to see all outputssudo nixos-rebuild switch --flake .#pc --impure
- Install nix
- enable flakes:
mkdir -p ~/.config/nix && echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
- git clone this repo
- activate home-manager via a temporary install.
nix shell home-manager
- run
home-manager switch --flake .#<hm-config> --impure -b backup
. for example, "headless-work" for<hm-config>
- make sure you use the fish in
~/.nix-profile/bin
, it has a custom init built in.
for hm, run init-niri
to initalize the wm.
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.