Solaar-Flake

July 2, 2026 ยท View on GitHub

Nix Flakes Ready

Solaar-Flake

This Repo is a Flake of Solaar for NixOS.

See also the FlakeHub release.

Version Mapping

Flake versionSolaar version
0.1.81.1.20
0.1.8-rc.21.1.20rc3
0.1.8-rc.11.1.20rc2
0.1.71.1.19
0.1.7-rc.11.1.19rc1
0.1.61.1.18
0.1.51.1.17
0.1.5-rc.11.1.17rc3
0.1.41.1.16
0.1.31.1.15
0.1.3-rc.11.1.15rc2
0.1.21.1.14
0.1.2-rc.11.1.14rc4
0.1.11.1.13

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
  };
}