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:
@@ -21,7 +21,6 @@
|
|||||||
gcc
|
gcc
|
||||||
python
|
python
|
||||||
alejandra
|
alejandra
|
||||||
starship
|
|
||||||
devenv
|
devenv
|
||||||
nodejs
|
nodejs
|
||||||
mermaid-cli
|
mermaid-cli
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user