From 1557ea283371a5a3af9ce0d72e55949c46fe987b Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Tue, 2 Jul 2024 20:22:36 -0500 Subject: [PATCH] Add termius icon correctly for gnome and update dash icon defaults. --- nixos/home/modules/programs/de/gnome/default.nix | 2 +- nixos/overlays/default.nix | 2 ++ nixos/overlays/termius/default.nix | 8 ++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 nixos/overlays/termius/default.nix diff --git a/nixos/home/modules/programs/de/gnome/default.nix b/nixos/home/modules/programs/de/gnome/default.nix index 8650b60..8469862 100644 --- a/nixos/home/modules/programs/de/gnome/default.nix +++ b/nixos/home/modules/programs/de/gnome/default.nix @@ -22,7 +22,7 @@ with lib.hm.gvariant; { "org/gnome/shell" = { disabled-extensions = [ "apps-menu@gnome-shell-extensions.gcampax.github.com" "light-style@gnome-shell-extensions.gcampax.github.com" "places-menu@gnome-shell-extensions.gcampax.github.com" "drive-menu@gnome-shell-extensions.gcampax.github.com" "window-list@gnome-shell-extensions.gcampax.github.com" "workspace-indicator@gnome-shell-extensions.gcampax.github.com" ]; enabled-extensions = [ "appindicatorsupport@rgcjonas.gmail.com" "caffeine@patapon.info" "dash-to-dock@micxgx.gmail.com" "gsconnect@andyholmes.github.io" "Vitals@CoreCoding.com" "sp-tray@sp-tray.esenliyim.github.com" ]; - favorite-apps = [ "org.gnome.Nautilus.desktop" "vivaldi-stable.desktop" "org.wezfurlong.wezterm.desktop" "org.gnome.Console.desktop" "code.desktop" "discord.desktop" ]; + favorite-apps = [ "org.gnome.Nautilus.desktop" "vivaldi-stable.desktop" "termius-app.desktop" "dev.warp.Warp.desktop" "org.wezfurlong.wezterm.desktop" "obsidian.desktop" "org.gnome.Console.desktop" "code.desktop" "discord.desktop" ]; }; "org/gnome/nautilus/preferences" = { default-folder-viewer = "list-view"; diff --git a/nixos/overlays/default.nix b/nixos/overlays/default.nix index e071db0..a0a1e0d 100644 --- a/nixos/overlays/default.nix +++ b/nixos/overlays/default.nix @@ -3,10 +3,12 @@ let warpTerminal = import ./warp-terminal { inherit (inputs.nixpkgs) lib; }; + termiusApp = import ./termius { }; in { nur = inputs.nur.overlay; warp-terminal = warpTerminal; + termius = termiusApp; # The unstable nixpkgs set (declared in the flake inputs) will # be accessible through 'pkgs.unstable' diff --git a/nixos/overlays/termius/default.nix b/nixos/overlays/termius/default.nix new file mode 100644 index 0000000..4aa8740 --- /dev/null +++ b/nixos/overlays/termius/default.nix @@ -0,0 +1,8 @@ +{ ... }: +(final: prev: { + termius = prev.termius.overrideAttrs (oldAttrs: { + postInstall = '' + install -Dm644 meta/gui/icon.png $out/share/icons/hicolor/128x128/apps/termius-app.png + ''; + }); +})