summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-09-13 15:56:58 +0200
committerAlan Pearce2017-09-13 15:56:58 +0200
commit7db05c60364d3d6be69b243e0c43272b36e6ffa0 (patch)
tree13a67d26aed50672df9e236ac833b5b3464bdfb9
parent52b72d494d3090418202043f05ca87e9e82b75dd (diff)
downloadnixos-configuration-7db05c60364d3d6be69b243e0c43272b36e6ffa0.tar.lz
nixos-configuration-7db05c60364d3d6be69b243e0c43272b36e6ffa0.tar.zst
nixos-configuration-7db05c60364d3d6be69b243e0c43272b36e6ffa0.zip
Add gnome module
-rw-r--r--modules/gnome.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/gnome.nix b/modules/gnome.nix
new file mode 100644
index 0000000..bd78545
--- /dev/null
+++ b/modules/gnome.nix
@@ -0,0 +1,24 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+{ services = {
+    gnome3 = {
+      gnome-documents.enable = false;
+      gnome-user-share.enable = false;
+      gnome-online-accounts.enable = false;
+      seahorse.enable = false;
+      tracker.enable = false;
+    };
+    telepathy.enable = false;
+
+    xserver = {
+      desktopManager.gnome3 = {
+        enable = true;
+        extraGSettingsOverrides = ''
+          [org.gnome.desktop.input-sources]
+          sources=[('xkb','${config.services.xserver.layout + (optionalString (config.services.xserver.xkbVariant != "") ("+" + config.services.xserver.xkbVariant))}')]
+        '';
+      };
+    };
+  };
+}