Skip to content
torgeirPublic

About

Nix setup for a linux workstation and a NAS.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

515 Commits

Folders and files

Repository files navigation

nix

My first stab at nixos, your mileage may vary.

nix flake check --show-trace

# build the main system: torgnix
clear; pushd ~/nixos-config; sudo nixos-rebuild --flake .#torgnix switch && notify-send nixos reloaded; popd'

# build and push another system
nixos-rebuild switch --flake .#tank --target-host tank --sudo --ask-sudo-password
# build and test until reboot on another system
nixos-rebuild test --flake .#tank --target-host tank --sudo --ask-sudo-password
# build and switch to on reboot of another system
nixos-rebuild boot --flake .#tank --target-host tank --sudo --ask-sudo-password \
  && reboot

# gc old unreferenced store paths
sudo nix-collect-garbage --delete-older-than 7d

notes

All nix files referenced must be added to git.

Nix for darwin? https://xyno.space/post/nix-darwin-introduction

inspiration

good resources

other useful links

About

Nix setup for a linux workstation and a NAS.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages