From e211ac7d73d647b16e6b4b8014fd84a17595f1d5 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sun, 9 May 2021 11:48:27 +0200 Subject: [PATCH] profiles: add gtk --- profiles/default.nix | 1 + profiles/gtk.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 profiles/gtk.nix diff --git a/profiles/default.nix b/profiles/default.nix index c012eee..fb3d4f4 100644 --- a/profiles/default.nix +++ b/profiles/default.nix @@ -3,6 +3,7 @@ { imports = [ ./bluetooth.nix + ./gtk.nix ./wm.nix ]; } diff --git a/profiles/gtk.nix b/profiles/gtk.nix new file mode 100644 index 0000000..9eebe23 --- /dev/null +++ b/profiles/gtk.nix @@ -0,0 +1,19 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.my.profiles.gtk; +in +{ + options.my.profiles.gtk = with lib; { + enable = mkEnableOption "bluetooth profile"; + }; + + config = lib.mkIf cfg.enable { + # Allow setting GTK configuration using home-manager + services.dbus.packages = with pkgs; [ + gnome3.dconf + ]; + + # GTK theme configuration + my.home.gtk.enable = true; + }; +}