Solaar-Flake
July 2, 2026 ยท View on GitHub
Solaar-Flake
This Repo is a Flake of Solaar for NixOS.
See also the FlakeHub release.
Version Mapping
How to use?
Import
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
solaar = {
url = "https://flakehub.com/f/Svenum/Solaar-Flake/*.tar.gz"; # For latest stable version
#url = "https://flakehub.com/f/Svenum/Solaar-Flake/0.1.8.tar.gz"; # uncomment line for solaar version 1.1.20
#url = "github:Svenum/Solaar-Flake/main"; # Uncomment line for latest unstable version
};
};
outputs = {nixpkgs, solaar}: {
nixosConfigurations.foo = nixpkgs.lib.nixosSystem {
modules = [
solaar.nixosModules.default
./configuration.nix
];
};
}
}
Then enable it by putting:
...
services.solaar.enable = true;
...
in configuration.nix
Configuration
The configuration is done in the configuration.nix file. The following options are available:
{
services.solaar = {
enable = true; # Enable the service
#package = pkgs.solaar; # Only set this option if you want to override the package from this flake!
window = "hide"; # Show the window on startup (show, *hide*, only [window only])
batteryIcons = "regular"; # Which battery icons to use (*regular*, symbolic, solaar)
extraArgs = ""; # Extra arguments to pass to solaar on startup
};
}