zaphyra's git: nixfiles

zaphyra's nixfiles

commit 626c2087a9bec0b38ecd66d6689fda9f4b2ca21b
parent 16d91d5d51c8d9d3fdd227a75189bd11abd90a94
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Wed, 27 May 2026 23:09:34 +0200

nixos/zpha/programs/nautilus: hide 'recent-files', 'network', 'starred', add bookmarks
2 files changed, 40 insertions(+), 12 deletions(-)
M
nixosModules/zpha/programs/nautilus.nix
|
11
+++++++++++
M
nixosModules/zpha/programs/niri/gtk.nix
|
41
+++++++++++++++++++++++++++++------------
diff --git a/nixosModules/zpha/programs/nautilus.nix b/nixosModules/zpha/programs/nautilus.nix
@@ -62,6 +62,17 @@
         "application/vnd.rar;application/zstd"
         "application/x-zstd-compressed-tar"
       ] (_name: [ "org.gnome.Nautilus.desktop" ]);
+
+      file.xdg_config."gtk-4.0/gtk.css".text = ''
+        /* remove 'starred' & 'network' in nautilus side-panel */
+        .nautilus-window .navigation-sidebar > :nth-child(3),
+        .nautilus-window .navigation-sidebar > :nth-child(2) {
+          min-height: 0;
+          font-size: 0;
+          -gtk-icon-size: 0;
+          margin-top: -2px;
+        }
+      '';
     };
 
   };
diff --git a/nixosModules/zpha/programs/niri/gtk.nix b/nixosModules/zpha/programs/niri/gtk.nix
@@ -30,24 +30,41 @@
           wm.preferences = {
             button-layout = "";
           };
+          privacy.remember-recent-files = false;
         };
         org.gtk.Settings.Debug = {
           enable-inspector-keybinding = true;
         };
       };
 
-      file.xdg_config."gtk-3.0/settings.ini".text = lib.generators.toINI { } {
-        Settings =
-          let
-            gnomeSettings = config.users.users.zaphyra.maid.gsettings.settings.org.gnome.desktop.interface;
-          in
-          {
-            gtk-application-prefer-dark-theme = gnomeSettings.color-scheme == "prefer-dark";
-            gtk-theme-name = gnomeSettings.gtk-theme;
-            gtk-icon-theme-name = gnomeSettings.icon-theme;
-            gtk-cursor-theme-name = gnomeSettings.cursor-theme;
-            gtk-font-name = gnomeSettings.font-name;
-          };
+      file.xdg_config = {
+        "gtk-3.0/settings.ini".text = lib.generators.toINI { } {
+          Settings =
+            let
+              gnomeSettings = config.users.users.zaphyra.maid.gsettings.settings.org.gnome.desktop.interface;
+            in
+            {
+              gtk-application-prefer-dark-theme = gnomeSettings.color-scheme == "prefer-dark";
+              gtk-theme-name = gnomeSettings.gtk-theme;
+              gtk-icon-theme-name = gnomeSettings.icon-theme;
+              gtk-cursor-theme-name = gnomeSettings.cursor-theme;
+              gtk-font-name = gnomeSettings.font-name;
+            };
+        };
+        "gtk-3.0/bookmarks".text =
+          lib.concatMapStringsSep "\n"
+            (
+              elem:
+              if (lib.isList elem) then "file://${lib.elemAt 0 elem} ${lib.elemAt 1 elem}" else "file://${elem}"
+            )
+            [
+              "/persist/home/zaphyra/Downloads"
+              "/persist/home/zaphyra/Documents"
+              "/persist/home/zaphyra/Pictures"
+              "/persist/home/zaphyra/Music"
+              "/persist/home/zaphyra/Videos"
+              "/persist/home/zaphyra/Bahn-Richtlinien"
+            ];
       };
     };