The nature of the KaOS distro makes it so, that we have a beautifully crafted, and inherently limited distribution.
Particulary the amount of available packages is a reason to use other distros, anyway how much we love it.
I found an alternative to porting packages from Arch and Flatpaks, that fits well into the existing ecosystem, and I like to share it with you here.
I am talking about the Nix package manager, that provides 80.000 packages,
compared to the 2200 in KaOS 🎉
The installation process is straightforward:
sh <(curl -L https://nixos.org/nix/install) --daemon
Follow the instructions and install the manager, you will be guided.
Then, add the following lines at the end of your ~/.bashrc to create some
convenient commands for the package management:
function add {
nix-env -iA nixpkgs.$1
}
function remove {
nix-env --uninstall $1
}
function search {
nix-search $1
}
function update {
nix-env -u
}
Save the changes.
The binary to utilize the search is not yet installed, so lets reload bash and add it:
bash
add nix-search-cli
You also have a web GUI here: https://search.nixos.org/packages
And there are several desktop clients, all the maintained ones who are actually serviceable, are in GTK, though, that one being the best: https://github.com/snowfallorg/nix-software-center
(Use the 'nix-env' installation method.)
One of the downsides is, that Steam is not available this way, as it requires specific hacks who are not available outside of NixOS itself.
P.S: There is also another method, to manage Nix packages, that is a bit more advanced, and offers several advantages.
Let me know if you are interested in this, so I might write a guide for it.
In case you like to look into it yourself: https://github.com/nix-community/home-manager
Much fun 🌻