pass: Make secret service conditional on GUI

This commit is contained in:
Simon Bruder 2024-06-02 13:40:44 +02:00
parent 3884dd4a5e
commit c2018b9675
Signed by: simon
GPG key ID: 347FF8699CDA0776

View file

@ -2,7 +2,7 @@
# #
# SPDX-License-Identifier: AGPL-3.0-or-later # SPDX-License-Identifier: AGPL-3.0-or-later
{ config, pkgs, ... }: { config, lib, nixosConfig, pkgs, ... }:
{ {
programs.password-store = { programs.password-store = {
enable = true; enable = true;
@ -20,7 +20,7 @@
browsers = [ "librewolf" ]; browsers = [ "librewolf" ];
}; };
services.pass-secret-service = { services.pass-secret-service = lib.mkIf nixosConfig.sbruder.gui.enable {
enable = true; enable = true;
storePath = "${config.xdg.dataHome}/secret-service-password-store"; storePath = "${config.xdg.dataHome}/secret-service-password-store";
}; };