From 954b3904976fcc22d57c01901fa6462c22556ebd Mon Sep 17 00:00:00 2001 From: Tyler Beckman Date: Fri, 22 Nov 2024 01:41:55 -0700 Subject: [PATCH] Add garuda linux beautyline --- home-manager/home.nix | 1 + home-manager/modules/desktop.nix | 14 ++++++++++++++ home-manager/modules/packages.nix | 1 + home-manager/modules/plasma.nix | 4 ++-- packages/beautyline/default.nix | 22 ++++++++++++++++++++++ result | 1 + 6 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 home-manager/modules/desktop.nix create mode 100644 packages/beautyline/default.nix create mode 120000 result diff --git a/home-manager/home.nix b/home-manager/home.nix index a79656d..7244921 100755 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -12,5 +12,6 @@ ./modules/gpg.nix ./modules/shell ./modules/vscode.nix + ./modules/desktop.nix ]; } \ No newline at end of file diff --git a/home-manager/modules/desktop.nix b/home-manager/modules/desktop.nix new file mode 100644 index 0000000..08338e4 --- /dev/null +++ b/home-manager/modules/desktop.nix @@ -0,0 +1,14 @@ +{ ... }: +{ + xdg.desktopEntries = { + # Override vesktop for matching icon in beautyline (make it generic discord icon) + vesktop = { + categories = [ "Network" "InstantMessaging" "Chat" ]; + exec = "vesktop %U"; + genericName = "Internet Messenger"; + icon = "discord"; # CHANGED + name = "Vesktop"; + type = "Application"; + }; + }; +} \ No newline at end of file diff --git a/home-manager/modules/packages.nix b/home-manager/modules/packages.nix index e6d5e7c..0119811 100755 --- a/home-manager/modules/packages.nix +++ b/home-manager/modules/packages.nix @@ -18,6 +18,7 @@ # KDE Themes vimix-cursors + (pkgs.callPackage ../../packages/beautyline {}) # Programming nixd # NixD LSP for .nix files diff --git a/home-manager/modules/plasma.nix b/home-manager/modules/plasma.nix index 9c9d0d1..ff0ea67 100755 --- a/home-manager/modules/plasma.nix +++ b/home-manager/modules/plasma.nix @@ -11,8 +11,8 @@ theme = "Vimix-cursors"; size = 24; }; - # Set icon theme TODO Package modern beautyline - iconTheme = "breeze-dark"; + # Set icon theme + iconTheme = "beautyline-garuda"; # Set wallpaper to Shell wallpaper = "${pkgs.kdePackages.plasma-workspace-wallpapers}/share/wallpapers/Shell/contents/images/5120x2880.jpg"; }; diff --git a/packages/beautyline/default.nix b/packages/beautyline/default.nix new file mode 100644 index 0000000..67f5c7d --- /dev/null +++ b/packages/beautyline/default.nix @@ -0,0 +1,22 @@ +# TODO Make this not horrifyingly simple +{ stdenv, fetchgit, ... }: +stdenv.mkDerivation rec { + pname = "beautyline-garuda"; + version = "04052024"; # AoE Time + + src = fetchgit { + url = "https://gitlab.com/garuda-linux/themes-and-settings/artwork/beautyline"; + rev = "e13e5fa8f5aaad8a35fcaeb8a69512d32270a9d0"; + sha256 = "vl6ab7JSk66BeveyuNs7g7Pf252F4tMs/xXJcrd7AHU="; + }; + + installPhase = '' + runHook preInstall + + mkdir -p $out/share/icons/${pname} + cp -r * $out/share/icons/${pname}/ + + runHook postInstall + ''; +} + \ No newline at end of file diff --git a/result b/result new file mode 120000 index 0000000..9061ba5 --- /dev/null +++ b/result @@ -0,0 +1 @@ +/nix/store/8r0ifgzrfwls4lv0kimklysq8scjsnmw-beautyline-garuda-04052024 \ No newline at end of file