ctucx.git: nixfiles

ctucx' nixfiles

commit 67a82122aab7f3f09d70285bbc4da15db0549e3c
parent 771a70acb3de46ba32a207e9826d553d88f86062
Author: Katja (ctucx) <git@ctu.cx>
Date: Wed, 19 Mar 2025 11:27:37 +0100

configurations/nixos/wm/gnome: disable `at-spi2-core`, refactor dconf-settings
1 file changed, 15 insertions(+), 18 deletions(-)
M
configurations/nixos/wm/gnome.nix
|
33
+++++++++++++++------------------
diff --git a/configurations/nixos/wm/gnome.nix b/configurations/nixos/wm/gnome.nix
@@ -85,12 +85,12 @@
   };
 
   services = {
-    nscd.enable     = true;
     printing.enable = true;
 
+    gnome.at-spi2-core.enable = false;
     #required for gnome-calendar
-    gnome.evolution-data-server.enable  = true;
-    gnome.gnome-online-accounts.enable  = true;
+    gnome.evolution-data-server.enable = true;
+    gnome.gnome-online-accounts.enable = true;
   };
 
   home-manager.users.katja = {

@@ -162,6 +162,7 @@
         num-workspaces  = lib.lists.last workspaces;
         workspace-names = [ "Main" "Mail" "Term" ];
       };
+
       "org/gnome/desktop/wm/keybindings" = builtins.listToAttrs( builtins.concatMap( v: [
         { name = "switch-to-workspace-${toString v}"; value = [ "<Super>${toString v}" ]; }
         { name = "move-to-workspace-${toString v}";   value = [ "<Super><Shift>${toString v}" ]; }

@@ -170,6 +171,7 @@
         switch-input-source-backward = [ "<Shift><Control><Super>space" ];
       };
 
+      "org/gnome/shell/keybindings" = builtins.listToAttrs( map( v: { name = "switch-to-application-${toString v}"; value = []; }) workspaces);
       "org/gnome/shell" = {
         disable-extension-version-validation = true;
         disable-user-extensions              = false;

@@ -191,20 +193,16 @@
           "org.gnome.Settings.desktop"
         ];
       };
-      "org/gnome/shell/keybindings" = builtins.listToAttrs( map( v: { name = "switch-to-application-${toString v}"; value = []; }) workspaces);
-      "org/gnome/settings-daemon/plugins/color".night-light-enabled = true;
 
-      "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"       = [ "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/" ];
       "org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0" = {
         name    = "Start Terminal";
         command = "ghostty";
         binding = "<Super>Return";
       };
-      "org/gnome/settings-daemon/plugins/power" = {
-        sleep-inactive-ac-type = "nothing";
-      };
+
+      "org/gnome/settings-daemon/plugins/color".night-light-enabled    = true;
+      "org/gnome/settings-daemon/plugins/power".sleep-inactive-ac-type = "nothing";
 
       "org/gnome/desktop/a11y".always-show-universal-access-status = false;
       "org/gnome/desktop/privacy".remember-recent-files            = false;

@@ -214,13 +212,12 @@
         enable-hot-corners      = false;
         show-battery-percentage = true;
       };
-      "org/gnome/desktop/input-sources" = {
-        sources = [
-          (mkTuple ["xkb" "us+mac"])
-          (mkTuple ["xkb" "de"])
-          (mkTuple ["xkb" "ru+mac"])
-        ];
-      };
+
+      "org/gnome/desktop/input-sources".sources = [
+        (mkTuple ["xkb" "us+mac"])
+        (mkTuple ["xkb" "de"])
+        (mkTuple ["xkb" "ru+mac"])
+      ];
       "org/gnome/desktop/background" = {
         picture-uri      = "file://${pkgs.nixos-artwork.wallpapers.simple-blue.gnomeFilePath}";
         picture-uri-dark = "file://${pkgs.nixos-artwork.wallpapers.simple-dark-gray.gnomeFilePath}";