A collection of custom Nix packages and configurations.
rofi-themes
: A collection of themes for rofi from adi1090x/rofi
Add this repository as an input to your flake:
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
qnix-pkgs.url = "github:yourusername/qnix-pkgs";
};
outputs = { self, nixpkgs, qnix-pkgs, ... }:
{
# Example for NixOS configuration
nixosConfigurations.yourhostname = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
# Apply the overlay
{ nixpkgs.overlays = [ qnix-pkgs.overlays.default ]; }
# Your configuration
./configuration.nix
];
};
};
Once you've added the overlay, you can use the packages like any other package:
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
rofi-wayland
qnix-pkgs.rofi-themes
];
}
To use the themes with rofi, you can configure rofi to look for themes in the package:
{ config, pkgs, ... }:
{
programs.rofi = {
enable = true;
package = pkgs.rofi-wayland;
extraConfig = {
theme = "${pkgs.qnix-pkgs.rofi-themes}/share/rofi/themes/colorful/style_7.rasi";
};
};
}
To add a new package:
- Create a new directory under
pkgs/
for your package - Add a
default.nix
file with the package definition - Add the package to the overlay in
overlays/default.nix
under theqnix-pkgs
namespace