Skip to content

torgeir/nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

491 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors