nlewo / comin

GitOps For NixOS Machines
MIT License
241 stars 11 forks source link

How can someone use this on NixOS without Flakes #30

Open hoh opened 3 months ago

hoh commented 3 months ago

The README.md quotes "In your configuration.nix file", but does not mention how to make comin available in the configuration.nix file.

As a NixOS user, how can I use comin with and without flakes ?

jpds commented 3 months ago

You need flakes, given the entire evaluation section of the code relies on these:

Separate to comin - I do not believe there's a way to build a NixOS system configuration (from a Git repository) without flakes either.

nlewo commented 3 months ago

The README.md quotes "In your configuration.nix file", but does not mention how to make comin available in the configuration.nix file.

Since comin in not yet in nixpkgs and doesn't provide a default.nix file, you need flakes to use it in your configuration.

Also, as said by @jpds, comin is only able to deploy NixOS machines from flakes and I don't plan to support something else atm.

(BTW, maybe this should be more explicit in the readme.)

alanpearce commented 1 month ago

As a NixOS user, how can I use comin with and without flakes ?

Without flakes, most of the functionality is covered by the built-in: services.self-deploy.

Perhaps this could be part of the readme update?