comin icon indicating copy to clipboard operation
comin copied to clipboard

How can someone use this on NixOS without Flakes

Open hoh opened this issue 2 years ago • 3 comments

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 ?

hoh avatar Apr 17 '24 13:04 hoh

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

  • https://github.com/nlewo/comin/blob/4eb600b96ddecca708cea9514ac56d3e6ee208a7/internal/nix/nix.go#L48-L61

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

jpds avatar Apr 17 '24 15:04 jpds

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.)

nlewo avatar Apr 17 '24 17:04 nlewo

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?

alanpearce avatar May 24 '24 22:05 alanpearce

Thanks for these answers, closing the issue.

hoh avatar Oct 11 '24 16:10 hoh