Skip to content

Commit

Permalink
Only add Nextcloud bookmark when it is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
rake5k committed Dec 11, 2024
1 parent ce31c4d commit f3b55b0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
27 changes: 12 additions & 15 deletions home/roles/desktop/gtk/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,18 @@ in
gtk-xft-hinting=1
gtk-xft-hintstyle=hintfull
gtk-xft-rgba=rgb'';
gtk3 = {
extraConfig = {
gtk-application-prefer-dark-theme = 1;
gtk-toolbar-style = "GTK_TOOLBAR_BOTH";
gtk-toolbar-icon-size = "GTK_ICON_SIZE_LARGE_TOOLBAR";
gtk-button-images = "1";
gtk-menu-images = "1";
gtk-enable-event-sounds = "0";
gtk-enable-input-feedback-sounds = "0";
gtk-xft-antialias = "1";
gtk-xft-hinting = "1";
gtk-xft-hintstyle = "hintfull";
gtk-xft-rgba = "rgb";
};
bookmarks = [ "file://${config.home.homeDirectory}/Nextcloud" ];
gtk3.extraConfig = {
gtk-application-prefer-dark-theme = 1;
gtk-toolbar-style = "GTK_TOOLBAR_BOTH";
gtk-toolbar-icon-size = "GTK_ICON_SIZE_LARGE_TOOLBAR";
gtk-button-images = "1";
gtk-menu-images = "1";
gtk-enable-event-sounds = "0";
gtk-enable-input-feedback-sounds = "0";
gtk-xft-antialias = "1";
gtk-xft-hinting = "1";
gtk-xft-hintstyle = "hintfull";
gtk-xft-rgba = "rgb";
};
};
};
Expand Down
4 changes: 4 additions & 0 deletions home/roles/web/nextcloud-client/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ in
};

config = mkIf cfg.enable {
gtk.gtk3.bookmarks = [
"file://${config.home.homeDirectory}/Nextcloud"
];

home.packages = [ pkg ];

services.nextcloud-client = {
Expand Down

0 comments on commit f3b55b0

Please sign in to comment.