move starship to hosts/common
This commit is contained in:
parent
f3f50ac9e0
commit
1f9231aab3
9 changed files with 37 additions and 51 deletions
|
@ -60,7 +60,6 @@ in {
|
|||
enable = true;
|
||||
defaultBranch = "master";
|
||||
};
|
||||
starship.enable = true;
|
||||
zsh.enable = true;
|
||||
btop.enable = true;
|
||||
neovim = {
|
||||
|
|
|
@ -6,5 +6,6 @@ _: {
|
|||
./kernel.nix
|
||||
./malloc-perturb.nix
|
||||
./noisetorch.nix
|
||||
./starship.nix
|
||||
];
|
||||
}
|
||||
|
|
36
hosts/common/desktop/starship.nix
Normal file
36
hosts/common/desktop/starship.nix
Normal 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 = " ";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -109,7 +109,6 @@ in {
|
|||
enable = true;
|
||||
flake = "${home}/niksos";
|
||||
};
|
||||
starship.enable = true;
|
||||
zsh = {
|
||||
enable = true;
|
||||
extraAliases = {
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
enable = true;
|
||||
flake = "${home}/niksos";
|
||||
};
|
||||
starship.enable = true;
|
||||
zsh = {
|
||||
enable = true;
|
||||
extraAliases = {
|
||||
|
|
|
@ -65,7 +65,6 @@ in {
|
|||
enable = true;
|
||||
flake = "${home}/niksos";
|
||||
};
|
||||
starship.enable = true;
|
||||
zsh = {
|
||||
enable = true;
|
||||
extraAliases = {
|
||||
|
|
|
@ -66,7 +66,6 @@ in {
|
|||
enable = true;
|
||||
flake = "${home}/niksos";
|
||||
};
|
||||
starship.enable = true;
|
||||
zsh = {
|
||||
enable = true;
|
||||
extraAliases = {
|
||||
|
|
|
@ -2,7 +2,6 @@ _: {
|
|||
imports = [
|
||||
./git.nix
|
||||
./nh.nix
|
||||
./starship.nix
|
||||
./zoxide.nix
|
||||
./zsh.nix
|
||||
];
|
||||
|
|
|
@ -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 = " ";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue