My unified nix flake for all configuration management.
Find a file
2023-09-04 11:40:30 -05:00
machines Initial commit 2023-09-04 11:40:30 -05:00
modules Initial commit 2023-09-04 11:40:30 -05:00
pkgs Initial commit 2023-09-04 11:40:30 -05:00
profiles Initial commit 2023-09-04 11:40:30 -05:00
secrets Initial commit 2023-09-04 11:40:30 -05:00
sway Initial commit 2023-09-04 11:40:30 -05:00
.sops.yaml Initial commit 2023-09-04 11:40:30 -05:00
daniel.nix Initial commit 2023-09-04 11:40:30 -05:00
flake.lock Initial commit 2023-09-04 11:40:30 -05:00
flake.nix Initial commit 2023-09-04 11:40:30 -05:00
readme.md Initial commit 2023-09-04 11:40:30 -05:00

zomg nixos

$ ssh -t beefcake 'cdd && pwd && g pl && cd os/linux/nix && sudo nixos-rebuild switch --flake .# && echo DONE'

Or for pushing:

# do once to setup
$ ssh -t beefcake 'cdd && git config receive.denyCurrentBranch updateInstead'

# probably regenerate and commit flake.lock from this directory
nix flake lock

# push and rebuild+switch
$ git push beefcake:~/.config/lytedev-dotfiles
$ ssh -t beefcake 'cd ~/.config/lytedev-dotfiles/os/linux/nix && sudo nixos-rebuild switch --flake .# && echo DONE'

Ops stuff

Other To Dos

  • TODO: check stuff during receive with a hook?