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;
|
enable = true;
|
||||||
defaultBranch = "master";
|
defaultBranch = "master";
|
||||||
};
|
};
|
||||||
starship.enable = true;
|
|
||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
btop.enable = true;
|
btop.enable = true;
|
||||||
neovim = {
|
neovim = {
|
||||||
|
|
|
@ -6,5 +6,6 @@ _: {
|
||||||
./kernel.nix
|
./kernel.nix
|
||||||
./malloc-perturb.nix
|
./malloc-perturb.nix
|
||||||
./noisetorch.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;
|
enable = true;
|
||||||
flake = "${home}/niksos";
|
flake = "${home}/niksos";
|
||||||
};
|
};
|
||||||
starship.enable = true;
|
|
||||||
zsh = {
|
zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraAliases = {
|
extraAliases = {
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
flake = "${home}/niksos";
|
flake = "${home}/niksos";
|
||||||
};
|
};
|
||||||
starship.enable = true;
|
|
||||||
zsh = {
|
zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraAliases = {
|
extraAliases = {
|
||||||
|
|
|
@ -65,7 +65,6 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
flake = "${home}/niksos";
|
flake = "${home}/niksos";
|
||||||
};
|
};
|
||||||
starship.enable = true;
|
|
||||||
zsh = {
|
zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraAliases = {
|
extraAliases = {
|
||||||
|
|
|
@ -66,7 +66,6 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
flake = "${home}/niksos";
|
flake = "${home}/niksos";
|
||||||
};
|
};
|
||||||
starship.enable = true;
|
|
||||||
zsh = {
|
zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraAliases = {
|
extraAliases = {
|
||||||
|
|
|
@ -2,7 +2,6 @@ _: {
|
||||||
imports = [
|
imports = [
|
||||||
./git.nix
|
./git.nix
|
||||||
./nh.nix
|
./nh.nix
|
||||||
./starship.nix
|
|
||||||
./zoxide.nix
|
./zoxide.nix
|
||||||
./zsh.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