My plan for #CD refactoring for #ZeroHR:

https://github.com/numtide/system-manager/tree/main — allows to configure non-NixOS systemd declaratively using Nix programming language.
https://github.com/serokell/deploy-rs — allows to do non-privileged deploys using #nix flakes. Works on non-NixOS linuxes via home-manager.
https://github.com/getsops/sops — for secret management capability, integratable with deploy-rs[1].

[1]: https://samleathers.com/posts/2022-02-11-my-new-network-and-sops.html

#numtide #serokell #systemManager #deployRs #sops

GitHub - numtide/system-manager: Manage system config using nix on any distro

Manage system config using nix on any distro. Contribute to numtide/system-manager development by creating an account on GitHub.

GitHub

@nobodyinperson maybe use a tool like #Colmena or #DeployRS to do the heavy-lifting on another node, so all the store objects will be pushed remotely to the Pi's store and all that's left to do for it is to run the activation script?

#NixOS #RaspberryPi

@virtulis "too lazy to set up on all the servers"

#nixos #deployRs

•hides•

Any #nix / #nixos users using #deployrs able to help with with something? I just got it set up for the first time and it works well. I can verify changes get applied to the system, but I was expected the configuration files/flake.nix to get deployed to the system under `/etc/nixos`, but none of that is updated. Should it be? Am I just missing something? I'd really like to be able to see the deployed config easily from the server I'm logged in on.
I've been reinstalling #NixOS on a small #aarch64 SBC last night to fix the bootloader problems I was observing.
Since it's a cross build from my main machine and I don't have #deployrs or similar set up yet I just `nix copy`d it over and then ran the `switch-to-configuration` script on the target.
Well, that does not add any entries to the #bootLoader, I have to create a profile from it first. The #wiki #cheatsheet actually points it out quite well https://nixos.wiki/wiki/Cheatsheet#Manually_switching_a_NixOS_system_to_a_certain_version_of_system_closure
Cheatsheet - NixOS Wiki