Good morning,
does someone have an guide for how I can create an package for NixOS? I'm currently scripting my configuration for the plasma-manager and have seen, that my themes are not packaged.

I'm a beginner at NixOS btw. ;)

#NixOS #nixpkgs #nixosflakes

@liamthexpl0rer the official wiki, the nixpkgs repo for examples and a lot of trying is what I used

@IncredibleLaser The official wiki is hard to understand sometimes. I hope, that someone wrote an easy guide to understand how this process works.

Git Repos will also help for understanding, but I have seen, that KDE themes are packaged in different ways.

@liamthexpl0rer I looked at a random theme and it doesn't look to difficult tbh

https://github.com/NixOS/nixpkgs/blob/nixos-25.11/pkgs/by-name/pl/plasma-overdose-kde-theme/package.nix it looks pretty straightforward, I don't know what your theme does but it seems you just need to ensure the theme files are in their respective directory under $out/share

nixpkgs/pkgs/by-name/pl/plasma-overdose-kde-theme/package.nix at nixos-25.11 · NixOS/nixpkgs

Nix Packages collection & NixOS. Contribute to NixOS/nixpkgs development by creating an account on GitHub.

GitHub