feat(x1): add rialo use home-manager

This commit is contained in:
Harald Hoyer 2026-05-27 14:10:46 +02:00
parent 331d325ca1
commit 31b044d243
2 changed files with 25 additions and 9 deletions

View file

@ -0,0 +1,16 @@
{ pkgs, ... }:
{
imports = [ (../. + "/harald@amd/default.nix") ];
home.stateVersion = "25.11";
programs.bash.initExtra = ''
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=""
SHELL=/run/current-system/sw/bin/fish exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
else
[[ $SHELL == *fish ]] && SHELL=/run/current-system/sw/bin/bash
fi
'';
}