move starship to hosts/common

This commit is contained in:
jacekpoz 2024-10-02 17:28:46 +02:00
parent f3f50ac9e0
commit 1f9231aab3
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
9 changed files with 37 additions and 51 deletions

View file

@ -60,7 +60,6 @@ in {
enable = true;
defaultBranch = "master";
};
starship.enable = true;
zsh.enable = true;
btop.enable = true;
neovim = {

View file

@ -6,5 +6,6 @@ _: {
./kernel.nix
./malloc-perturb.nix
./noisetorch.nix
./starship.nix
];
}

View file

@ -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 = " ";
};
};
};
}

View file

@ -109,7 +109,6 @@ in {
enable = true;
flake = "${home}/niksos";
};
starship.enable = true;
zsh = {
enable = true;
extraAliases = {

View file

@ -24,7 +24,6 @@
enable = true;
flake = "${home}/niksos";
};
starship.enable = true;
zsh = {
enable = true;
extraAliases = {

View file

@ -65,7 +65,6 @@ in {
enable = true;
flake = "${home}/niksos";
};
starship.enable = true;
zsh = {
enable = true;
extraAliases = {

View file

@ -66,7 +66,6 @@ in {
enable = true;
flake = "${home}/niksos";
};
starship.enable = true;
zsh = {
enable = true;
extraAliases = {

View file

@ -2,7 +2,6 @@ _: {
imports = [
./git.nix
./nh.nix
./starship.nix
./zoxide.nix
./zsh.nix
];

View file

@ -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 = " ";
};
};
};
};
}