about summary refs log tree commit diff
path: root/modules/services
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
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/default.nix1
-rw-r--r--modules/services/gnome/default.nix27
2 files changed, 28 insertions, 0 deletions
diff --git a/modules/services/default.nix b/modules/services/default.nix
index 085e881..38b6a6b 100644
--- a/modules/services/default.nix
+++ b/modules/services/default.nix
@@ -4,6 +4,7 @@
   imports = [
     ./fwupd
     ./gitea
+    ./gnome
     ./grafana
     ./metrics-exporter
     ./navidrome
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;
+      };
+    };
+  };
+}