9
submitted 9 months ago by callyral@pawb.social to c/nixos@lemmy.ml

Recently, I switched to NixOS and realised that there is no G'MIC plugin package for Krita.

There's this issue that was last active in October 2023.

I was wondering if anyone has managed to install this without using another package manager (such as Flatpak) or installing an AppImage manually, for system reproducibility, and I also don't wanna have two package managers in one system.

Ideally, there'd be a wrapper, so you could do something like:

{ pkgs, ... }: {
  programs.krita = {
    enable = true;
    gmic.enable = true;
    gmic.package = pkgs.krita.gmic-qt;
  };
}

Thoughts?

Related: is there some kind of guide on these program.<name> wrappers? What are they and where are they defined?

all 4 comments
sorted by: hot top controversial new old
[-] lelgenio@lemmy.ml 3 points 9 months ago
[-] m_randall@sh.itjust.works 2 points 9 months ago

I’m far from an expert on NixOS but using another package manager with nixos seems like it would defeat the entire purpose of the distro. It really seems like you must be ok with creating your own packages.

Here is how you create a package: https://nixos.wiki/wiki/Nixpkgs/Create_and_debug_packages

However - it’s hard to tell but flakes seem to be the emerging standard. Here is the documentation on flakes: https://nixos.wiki/wiki/Flakes

To answer your other question services are part of packages. For example here is NFS: https://github.com/NixOS/nixpkgs/blob/nixos-23.11/nixos/modules/services/network-filesystems/nfsd.nix

More examples can be found here:

https://search.nixos.org/options?channel=23.11&amp;show=services.nfs.server.enable&amp;from=0&amp;size=50&amp;sort=relevance&amp;type=packages&amp;query=NFS

this post was submitted on 27 Jan 2024
9 points (100.0% liked)

nixos

1262 readers
1 users here now

All about NixOS - https://nixos.org/

founded 4 years ago