From 4642299aae64c189bc3096e24ebeaa1e532af9a5 Mon Sep 17 00:00:00 2001 From: zuma Date: Fri, 7 Feb 2025 00:17:32 +0100 Subject: [PATCH] Added GTK theme + fixing starship --- commons/home-manager/starship.nix | 46 +++++++++++++++---------------- hosts/t0urn3s0l/configuration.nix | 5 +++- hosts/t0urn3s0l/home.nix | 35 +++++++++++++++++++++++ 3 files changed, 61 insertions(+), 25 deletions(-) diff --git a/commons/home-manager/starship.nix b/commons/home-manager/starship.nix index 7ad33d8..2afc54b 100644 --- a/commons/home-manager/starship.nix +++ b/commons/home-manager/starship.nix @@ -3,32 +3,30 @@ enable = true; settings = { - format = "$username@$hostname:$directory($cmd_duration)$character"; + add_newline = false; + command_timeout = 1300; + scan_timeout = 50; + format = "$username@$hostname:$directory$character"; + + hostname = { + disabled = false; + format = "[$ssh_symbol](blue dimmed bold)[$hostname]($style)"; + ssh_only = false; + style = "green dimmed bold"; + }; - directory = { - style = "blue"; - }; + username = { + format = "[$user]($style)"; + show_always = true; + style_root = "red bold bg:0x9A348E"; + style_user = "yellow bold bg:0x9A348E"; + disabled = false; + }; - character = { - success_symbol = "[❯](purple)"; - error_symbol = "[❯](red)"; - vimcmd_symbol = "[❮](green)"; - }; - - cmd_duration = { - format = "[$duration]($style) "; - style = "yellow"; - }; - - username = { - format = "[$user](bold white)"; - }; - - hostname = { - ssh_only = false; - format = "[$hostname](bold red)"; - disabled = false; - }; + character = { + success_symbol = "[](bold green)"; + error_symbol = "[](bold red)"; + }; }; }; } diff --git a/hosts/t0urn3s0l/configuration.nix b/hosts/t0urn3s0l/configuration.nix index 6b2105b..0c9aaf7 100644 --- a/hosts/t0urn3s0l/configuration.nix +++ b/hosts/t0urn3s0l/configuration.nix @@ -147,10 +147,13 @@ firefox # Web browser cinny-desktop # Matrix Client eog # Image viewer + dracula-theme # Dark theme + dracula-icon-theme # Dark Icon theme + mpv # Video player # Shell apps zsh - starship # Might delete later + starship neovim # <3 git # <3 bis btop # HTOP on steroids diff --git a/hosts/t0urn3s0l/home.nix b/hosts/t0urn3s0l/home.nix index 17176a9..cc57e64 100644 --- a/hosts/t0urn3s0l/home.nix +++ b/hosts/t0urn3s0l/home.nix @@ -76,6 +76,41 @@ # EDITOR = "emacs"; }; + qt = { + enable = true; + platformTheme = "gtk"; + style= { + name = "Dracula"; + package = pkgs.dracula-theme; + }; + }; + + gtk = { + enable = true; + theme = { + package = pkgs.dracula-theme; + name = "Dracula"; + }; + + iconTheme = { + package = pkgs.dracula-icon-theme; + name = "Dracula"; + }; + }; + + programs.zsh = { + enable = true; + enableCompletion = true; + shellAliases = { + update = "sudo nixos-rebuild switch --flake /home/zuma/nix_files#t0urn3s0l"; + }; + oh-my-zsh = { + enable = true; + plugins = [ "git" ]; + theme = "robbyrussell"; + }; + }; + # Let Home Manager install and manage itself. programs.home-manager.enable = true; }