summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Keller <tjkeller.xyz>2025-02-06 21:34:07 -0600
committerTim Keller <tjkeller.xyz>2025-02-06 21:34:07 -0600
commit56aa812441c150da6f27d7c848d3e3eb2ded4435 (patch)
tree6067aef1fa736cee5e88fb1db2bb36841ea567a9
parent1ef7aa8333c0851d0ca5ae556b5f1d12fad87b08 (diff)
downloadnixos-56aa812441c150da6f27d7c848d3e3eb2ded4435.tar.xz
nixos-56aa812441c150da6f27d7c848d3e3eb2ded4435.zip
update bookmarks
-rw-r--r--flake.nix2
-rw-r--r--modules/home/default.nix1
-rw-r--r--modules/home/gtk-bookmarks.nix17
-rw-r--r--modules/home/theme.nix8
-rw-r--r--modules/hosts/hp-envy-office/home.nix7
5 files changed, 26 insertions, 9 deletions
diff --git a/flake.nix b/flake.nix
index 1b507cf..547d9db 100644
--- a/flake.nix
+++ b/flake.nix
@@ -28,6 +28,8 @@ rec {
username = "timmy";
home.root = "/home/timmy";
home.downloads = "/home/timmy/dls";
+ home.documents = "/home/timmy/docs";
+ home.pictures = "/home/timmy/pics";
email = "tjkeller.xyz";
fullname = "Tim Keller";
};
diff --git a/modules/home/default.nix b/modules/home/default.nix
index 9daf51a..b44f360 100644
--- a/modules/home/default.nix
+++ b/modules/home/default.nix
@@ -10,6 +10,7 @@
#./chrome.nix
./firefox.nix
./git.nix
+ ./gtk-bookmarks.nix
./htop.nix
./initial-home-setup.nix
./pcmanfm.nix # TODO mk name changeable & doesn't seem to work right now
diff --git a/modules/home/gtk-bookmarks.nix b/modules/home/gtk-bookmarks.nix
new file mode 100644
index 0000000..067543d
--- /dev/null
+++ b/modules/home/gtk-bookmarks.nix
@@ -0,0 +1,17 @@
+{ config, lib, userDetails, ... }: {
+ options = {
+ additional-gtk-bookmarks = lib.mkOption {
+ type = with lib.types; listOf str;
+ default = [];
+ description = "gtk bookmarks for file managers, etc.";
+ };
+ };
+
+ config = {
+ gtk.gtk3.bookmarks = with userDetails; [
+ "file://${home.downloads} Downloads"
+ "file://${home.documents} Documents"
+ "file://${home.pictures} Pictures"
+ ] ++ config.additional-gtk-bookmarks;
+ };
+}
diff --git a/modules/home/theme.nix b/modules/home/theme.nix
index 1575540..a1c4f9b 100644
--- a/modules/home/theme.nix
+++ b/modules/home/theme.nix
@@ -60,14 +60,6 @@ in {
cursorTheme = {
name = "Adwaita";
};
- gtk3.bookmarks = [
- "file:///home/timmy/dls Downloads"
- "file:///home/timmy/docs Documents"
- "file:///home/timmy/pics/screenshots Screenshots"
- "file:///home/timmy/docs/src/sites sites"
- "file:///home/timmy/docs/src/scripts scripts"
- "file:///home/timmy/docs/src/programs programs"
- ];
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
};
qt = {
diff --git a/modules/hosts/hp-envy-office/home.nix b/modules/hosts/hp-envy-office/home.nix
index ee56dc6..ed02130 100644
--- a/modules/hosts/hp-envy-office/home.nix
+++ b/modules/hosts/hp-envy-office/home.nix
@@ -1,7 +1,12 @@
-{ ... }: {
+{ userDetails, ... }: {
imports = [ ../../home ];
theme.mint.theme.color = "Dark-Green";
theme.mint.icons.color = "Green";
wallpapers.enable = true;
+
+ additional-gtk-bookmarks = with userDetails; [
+ "file://${home.documents}/src/sites/admin Admin"
+ "file:///media/chexx/chexx cHEXx"
+ ];
}