about summary refs log tree commit diff
path: root/modules/services/gnome
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-08 08:30:59 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-08 08:30:59 -0700
commit4a53f6321bf137c4cbd8f234dd2027ad9407499b (patch)
tree7ed97487e97bc4da276756bf9d4558a055ef93e8 /modules/services/gnome
parenthome: add more configurations for home-manager (diff)
downloadworld-4a53f6321bf137c4cbd8f234dd2027ad9407499b.tar.gz
modules: add a few more
Diffstat (limited to '')
-rw-r--r--modules/services/gnome/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/modules/services/gnome/default.nix b/modules/services/gnome/default.nix
new file mode 100644
index 0000000..448934f
--- /dev/null
+++ b/modules/services/gnome/default.nix
@@ -0,0 +1,27 @@
+{ config, pkgs, lib, ... }:
+let cfg = config.my.services.gnome;
+in {
+  options.my.services.gnome = with lib; { enable = mkEnableOption "gnome"; };
+
+  config = lib.mkIf cfg.enable {
+    services = {
+      dbus = {
+        enable = true;
+        packages = with pkgs; [ gcr gnome3.dconf gnome3.gnome-keyring ];
+      };
+
+      udev.packages = with pkgs; [ gnome3.gnome-settings-daemon ];
+
+      gvfs = {
+        enable = true;
+        package = pkgs.gnome.gvfs;
+      };
+
+      gnome = {
+        gnome-keyring.enable = true;
+        # !https://github.com/NixOS/nixpkgs/issues/16327
+        at-spi2-core.enable = true;
+      };
+    };
+  };
+}