Changed starship call: deleted the program call in hosts/puter/packages.nix and called it for user in modules/common/shell.nix

This commit is contained in:
2025-06-29 15:19:36 +03:00
parent 08b2a3cd50
commit fd1153568f
2 changed files with 3 additions and 9 deletions

View File

@@ -21,7 +21,6 @@
gcc gcc
python python
alejandra alejandra
starship
devenv devenv
nodejs nodejs
mermaid-cli mermaid-cli

View File

@@ -1,13 +1,8 @@
{ { config, pkgs, lib, ... }: {
config,
pkgs,
lib,
...
}: {
environment.variables.EDITOR = "nvim"; environment.variables.EDITOR = "nvim";
users.users.user.shell = pkgs.bash; users.users.user.shell = pkgs.bash;
environment.shells = with pkgs; [bash]; environment.shells = with pkgs; [ bash ];
programs.bash = { programs.bash = {
interactiveShellInit = '' interactiveShellInit = ''
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]] if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
@@ -18,7 +13,7 @@
''; '';
}; };
programs.fish.enable = true; programs.fish.enable = true;
programs.starship = { users.users.user.programs.starship = {
enable = true; enable = true;
settings = { settings = {
add_newline = true; add_newline = true;