about summary refs log tree commit diff
path: root/machines/x220-gnome
diff options
context:
space:
mode:
authorPatryk Niedzwiedzinski <patryk@niedzwiedzinski.cyou>2024-09-29 15:47:50 +0200
committerPatryk Niedzwiedzinski <patryk@niedzwiedzinski.cyou>2024-09-29 15:47:50 +0200
commit005cf54dc240ba2e20c15ee165c2dce85072e510 (patch)
tree9797d43b4ddd95f24fdd94ecab334ecff2a399a7 /machines/x220-gnome
parentc1b12e82dfa6ce970fe8538f8c45b31101ef11c7 (diff)
downloaddots-005cf54dc240ba2e20c15ee165c2dce85072e510.tar.gz
dots-005cf54dc240ba2e20c15ee165c2dce85072e510.zip
8 current 2024-09-29 15:47:48 24.05.20240914.8f7492c 6.6.51 *
Diffstat (limited to 'machines/x220-gnome')
-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 = {