feat(x1): add rialo use home-manager
This commit is contained in:
parent
331d325ca1
commit
31b044d243
2 changed files with 25 additions and 9 deletions
16
homes/x86_64-linux/rialo@x1/default.nix
Normal file
16
homes/x86_64-linux/rialo@x1/default.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue