nixos-config/programs/shell/fish/default.nix
Charlotte 🦝 Delenk a7ebb16cb7
All checks were successful
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #23665 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #23663 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
Hydra nixosConfigurations.container-default-riscv64-linux Hydra build #23664 of nixos-config:pr618:nixosConfigurations.container-default-riscv64-linux
Hydra checks.x86_64-linux.containers-default Hydra build #23662 of nixos-config:pr618:checks.x86_64-linux.containers-default
add wip pc installer/livecd
2024-11-05 09:11:22 +01:00

20 lines
594 B
Nix

{pkgs, ...}: {
programs.fish.enable = true;
home-manager.users.root.imports = [
./home-manager.nix
];
home-manager.users.darkkirb.imports = [
./home-manager.nix
];
programs.bash.interactiveShellInit = ''
for user in root darkkirb; do
if [[ $USER == $user ]]; then
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
then
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
fi
fi
done
'';
}