about summary refs log tree commit diff
path: root/machines/x220-gnome/gnome.nix
diff options
context:
space:
mode:
Diffstat (limited to 'machines/x220-gnome/gnome.nix')
-rw-r--r--machines/x220-gnome/gnome.nix59
1 files changed, 45 insertions, 14 deletions
diff --git a/machines/x220-gnome/gnome.nix b/machines/x220-gnome/gnome.nix
index 37de755..e042b70 100644
--- a/machines/x220-gnome/gnome.nix
+++ b/machines/x220-gnome/gnome.nix
@@ -15,21 +15,52 @@
 			pkgs.gnome-tour
 	];
 
-	services.xserver.desktopManager.gnome.extraGSettingsOverrides = ''
-		[org.gnome.shell]
-		favorite-apps = [ "brave-browser.desktop", "org.gnome.Geary.desktop", "org.gnome.Nautilus.desktop" ]
-
-		[org.gnome.desktop.wm.keybindings]
-		close = ["<Super>q"]
-
-		[org.gnome.settings-daemon.plugins.media-keys]
-		custom-keybindings = ["org/gnome/settings-daemon/plugins/media-keys/custom0/"]
+	programs.dconf = {
+		enable = true;
+		profiles.user.databases = [
+			{
+				lockAll = true;
+				settings = {
+					"org/gnome/shell" = {
+						favorite-apps = [ "brave-browser.desktop" "org.gnome.Geary.desktop" "org.gnome.Nautilus.desktop" ];
+					};
+
+					"org/gnome/desktop/wm/keybindings" = {
+						close = ["<Super>q"];
+					};
+					
+            				"org/gnome/settings-daemon/plugins/media-keys" = {
+              					custom-keybindings = [
+                					"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/"
+             					 ];
+					};
+
+            				"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0" = {
+              					binding = "<Super><Enter>";
+              					command = "kgx";
+              					name = "GNOME Console";
+            				};
+
+				};
+			}
+		];
+	};
 
-		[org.gnome.settings-daemon.plugins.media-keys.custom0]
-		binding = ["<Super><Enter>"]
-		command = ["kgx"]
-		name = ["GNOME Console"]
-	'';
+	##services.xserver.desktopManager.gnome.extraGSettingsOverrides = ''
+		##[org.gnome.shell]
+		##favorite-apps = [ "brave-browser.desktop", "org.gnome.Geary.desktop", "org.gnome.Nautilus.desktop" ]
+##
+		##[org.gnome.desktop.wm.keybindings]
+		##close = ["<Super>q"]
+##
+		##[org.gnome.settings-daemon.plugins.media-keys]
+		##custom-keybindings = ["org/gnome/settings-daemon/plugins/media-keys/custom0/"]
+##
+		##[org.gnome.settings-daemon.plugins.media-keys.custom0]
+		##binding = ["<Super><Enter>"]
+		##command = ["kgx"]
+		##name = ["GNOME Console"]
+	##'';
 
 # Configure keymap in X11
 	services.xserver = {