profiles: add gtk

This commit is contained in:
Bruno BELANYI 2021-05-09 11:48:27 +02:00
parent 4960179f9d
commit 7f945f86a6
2 changed files with 20 additions and 0 deletions

View file

@ -3,6 +3,7 @@
{ {
imports = [ imports = [
./bluetooth.nix ./bluetooth.nix
./gtk.nix
./wm.nix ./wm.nix
]; ];
} }

19
profiles/gtk.nix Normal file
View file

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