feat: make it so only hosts with gui enabled have dbus/gnome-keyring/gvfs :)

This commit is contained in:
Ahwx 2025-04-24 11:17:44 +02:00
parent 09e6a3a302
commit 3b00c85ad1
7 changed files with 58 additions and 22 deletions

14
roles/gui.nix Normal file
View file

@ -0,0 +1,14 @@
{ lib, ... }:
with lib;
let
cfg = config.liv.gui;
in
{
config = mkIf cfg.enable {
services = {
gvfs.enable = true;
gnome.gnome-keyring.enable = true;
dbus.enable = true;
};
};
}