Example of a Fabric widget packaged with Nix.
The bar example (bar.py
, bar.css
) is taken from the Fabric repository. bar.py
was slightly modified to supply an entry point for pyproject.toml
.
Note
Ensure the correct Github Repository/Branch is correct.
mkdir my-bar-project
cd my-bar-project
nix flake init -t github:wholikeel/fabric-nix-example#bar
nix run
Add your project as a nix flake
wayland.windowManager.hyprland = {
...
exec-once = [
"${inputs.my-bar-project.packages.${system}.default}/bin/bar"
];
...
};