linutil icon indicating copy to clipboard operation
linutil copied to clipboard

❄️ nix & nixos support

Open adamperkowski opened this issue 1 year ago • 11 comments

hey everyone. we'd love to see support for nixos and nix added to linutil.

please refer to the initial TODO list for our initial plan.

adamperkowski avatar Oct 04 '24 17:10 adamperkowski

Do we want nix support?

why not?

ghost avatar Oct 05 '24 01:10 ghost

I'm hitting kind of a road block here. We need to modify the nix configuration file but there is no parser available. Help is more than welcome.

adamperkowski avatar Oct 26 '24 02:10 adamperkowski

I wonder who deleted my comment 🤥

jeevithakannan2 avatar Oct 26 '24 02:10 jeevithakannan2

That would probably be me (it was me). You added the script label, deleted it because i removed the label.

adamperkowski avatar Oct 26 '24 02:10 adamperkowski

Oh okay. Idk why it shows as user ghost deleted the comment.

Screenshot_20241026-083655_GitHub~2.png

jeevithakannan2 avatar Oct 26 '24 03:10 jeevithakannan2

Weird. Screenshot_20241026-051339_Trebuchet.png

adamperkowski avatar Oct 26 '24 03:10 adamperkowski

Must be a bug in github

jeevithakannan2 avatar Oct 26 '24 04:10 jeevithakannan2

/close not planned

as stated in this image by Chris it will take too much time to accommodate nix support at this time; this issue can be re-opened in the future once we have settled on this matter.

ref: https://github.com/ChrisTitusTech/linutil/pull/765#issuecomment-2452562769 ref: image

ghost avatar Nov 06 '24 21:11 ghost

on a second thought, this would be possible and not that hard actually. has to be done properly though. the way i see it:

  • [X] create a flake environment for linutil (#1154)
  • [ ] add general support with nix that would include writing common helpers for nix in nix
  • [ ] partially implement simple (installation) scripts in nix within the environment
  • [ ] implement unit testing for the integrated "scripts"

my approach heavily relies on the flake system, which would allow us to easily interact with nixos. i look forward to discussing other solutions in this thread.

anyone with nix experience is welcome to work on this. again, this has to be done properly, if you don't know nix, please don't open a PR. thank you.

adamperkowski avatar Feb 06 '25 22:02 adamperkowski

would this include packaging it for nixpkgs?

JackDyre avatar Feb 17 '25 22:02 JackDyre

would this include packaging it for nixpkgs?

i don't think packaging linutil for nix would make a lot of sense, especially right now. the support would have to be implemented first, then we could start thinking about flakes or nixpkgs.

adamperkowski avatar Feb 17 '25 23:02 adamperkowski