all repos — nixfiles @ 7db05c60364d3d6be69b243e0c43272b36e6ffa0

System and user configuration, managed by nix and home-manager

Add gnome module
Alan Pearce alan@alanpearce.eu
Wed, 13 Sep 2017 15:56:58 +0200
commit

7db05c60364d3d6be69b243e0c43272b36e6ffa0

parent

52b72d494d3090418202043f05ca87e9e82b75dd

1 files changed, 24 insertions(+), 0 deletions(-)

jump to
A 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))}')]
+        '';
+      };
+    };
+  };
+}