From d8215217dfea45d3e915e8a634901f1ddf301ca6 Mon Sep 17 00:00:00 2001 From: r0chd Date: Thu, 1 Oct 2026 01:11:38 +0200 Subject: [PATCH] cosmic-session: make package more configurable --- pkgs/by-name/co/cosmic-session/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/co/cosmic-session/package.nix b/pkgs/by-name/co/cosmic-session/package.nix index c3c104649dc1..abd6fecd8999 100644 --- a/pkgs/by-name/co/cosmic-session/package.nix +++ b/pkgs/by-name/co/cosmic-session/package.nix @@ -8,6 +8,9 @@ stdenv, nixosTests, nix-update-script, + withLogind ? true, + withSystemd ? true, + withAutostart ? false, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -41,6 +44,11 @@ rustPlatform.buildRustPackage (finalAttrs: { buildInputs = [ bash ]; + buildNoDefaultFeatures = true; + buildFeatures = + lib.optional withLogind "logind" + ++ lib.optional withSystemd "systemd" + ++ lib.optional withAutostart "autostart"; dontUseJustBuild = true; justFlags = [