diff --git a/hosts/chmura/configuration.nix b/hosts/chmura/configuration.nix index 0146b7e..67030e2 100644 --- a/hosts/chmura/configuration.nix +++ b/hosts/chmura/configuration.nix @@ -60,7 +60,6 @@ in { enable = true; defaultBranch = "master"; }; - starship.enable = true; zsh.enable = true; btop.enable = true; neovim = { diff --git a/hosts/common/desktop/default.nix b/hosts/common/desktop/default.nix index cc5be1d..ec54c9a 100644 --- a/hosts/common/desktop/default.nix +++ b/hosts/common/desktop/default.nix @@ -6,5 +6,6 @@ _: { ./kernel.nix ./malloc-perturb.nix ./noisetorch.nix + ./starship.nix ]; } diff --git a/hosts/common/desktop/starship.nix b/hosts/common/desktop/starship.nix new file mode 100644 index 0000000..e4e01e9 --- /dev/null +++ b/hosts/common/desktop/starship.nix @@ -0,0 +1,36 @@ +{ + config, + ... +}: let + inherit (config.poz.other.system) username; +in { + home-manager.users.${username} = { + programs.starship = { + enable = true; + enableZshIntegration = config.poz.programs.zsh.enable; + settings = { + add_newline = false; + command_timeout = 1000; + line_break = { + disabled = true; + }; + directory = { + truncation_length = 3; + truncate_to_repo = false; + truncation_symbol = "…/"; + }; + c.symbol = " "; + directory.read_only = " 󰌾"; + git_branch.symbol = " "; + haskell.symbol = " "; + hostname.ssh_symbol = " "; + java.symbol = " "; + kotlin.symbol = " "; + meson.symbol = "󰔷 "; + nix_shell.symbol = " "; + package.symbol = "󰏗 "; + rust.symbol = " "; + }; + }; + }; +} diff --git a/hosts/del/configuration.nix b/hosts/del/configuration.nix index eeb2838..1da8b45 100644 --- a/hosts/del/configuration.nix +++ b/hosts/del/configuration.nix @@ -109,7 +109,6 @@ in { enable = true; flake = "${home}/niksos"; }; - starship.enable = true; zsh = { enable = true; extraAliases = { diff --git a/hosts/hape/configuration.nix b/hosts/hape/configuration.nix index 20b1fae..7d27765 100644 --- a/hosts/hape/configuration.nix +++ b/hosts/hape/configuration.nix @@ -24,7 +24,6 @@ enable = true; flake = "${home}/niksos"; }; - starship.enable = true; zsh = { enable = true; extraAliases = { diff --git a/hosts/niks/configuration.nix b/hosts/niks/configuration.nix index b3617dc..a605025 100644 --- a/hosts/niks/configuration.nix +++ b/hosts/niks/configuration.nix @@ -65,7 +65,6 @@ in { enable = true; flake = "${home}/niksos"; }; - starship.enable = true; zsh = { enable = true; extraAliases = { diff --git a/hosts/work/configuration.nix b/hosts/work/configuration.nix index d60bbd1..64525d6 100644 --- a/hosts/work/configuration.nix +++ b/hosts/work/configuration.nix @@ -66,7 +66,6 @@ in { enable = true; flake = "${home}/niksos"; }; - starship.enable = true; zsh = { enable = true; extraAliases = { diff --git a/modules/cli/default.nix b/modules/cli/default.nix index b681026..886b392 100644 --- a/modules/cli/default.nix +++ b/modules/cli/default.nix @@ -2,7 +2,6 @@ _: { imports = [ ./git.nix ./nh.nix - ./starship.nix ./zoxide.nix ./zsh.nix ]; diff --git a/modules/cli/starship.nix b/modules/cli/starship.nix deleted file mode 100644 index 9ec8ec9..0000000 --- a/modules/cli/starship.nix +++ /dev/null @@ -1,45 +0,0 @@ -{ - config, - lib, - ... -}: let - cfg = config.poz.programs.starship; - inherit (config.poz.other.system) username; - - inherit (lib.modules) mkIf; - inherit (lib.options) mkEnableOption; -in { - options.poz.programs.starship.enable = mkEnableOption "starship"; - - config = mkIf cfg.enable { - home-manager.users.${username} = { - programs.starship = { - enable = true; - enableZshIntegration = config.poz.programs.zsh.enable; - settings = { - add_newline = false; - command_timeout = 1000; - line_break = { - disabled = true; - }; - directory = { - truncation_length = 3; - truncate_to_repo = false; - truncation_symbol = "…/"; - }; - c.symbol = " "; - directory.read_only = " 󰌾"; - git_branch.symbol = " "; - haskell.symbol = " "; - hostname.ssh_symbol = " "; - java.symbol = " "; - kotlin.symbol = " "; - meson.symbol = "󰔷 "; - nix_shell.symbol = " "; - package.symbol = "󰏗 "; - rust.symbol = " "; - }; - }; - }; - }; -}