mirror of
https://github.com/youwen5/liminalOS.git
synced 2025-06-20 05:59:51 -07:00
feat: use forked nh with support for doas instead of fish wrapper
This commit is contained in:
parent
4930320599
commit
c6235fe00c
4 changed files with 31 additions and 17 deletions
|
@ -22,23 +22,6 @@
|
|||
# nix flake update --commit-lock-file
|
||||
# doas nixos-rebuild --flake ~/.config/liminalOS\#${osConfig.networking.hostName} switch &| nom
|
||||
# '';
|
||||
nh = {
|
||||
# wrapper for nh as it doesn't work with `doas`
|
||||
body = ''
|
||||
if count $argv > /dev/null
|
||||
set subcommand (string join " " $argv)
|
||||
if contains -- $subcommand "os switch" "os test" "os boot"
|
||||
doas ${pkgs.nh}/bin/nh $argv -R
|
||||
else if contains -- $subcommand "clean all"
|
||||
doas ${pkgs.nh}/bin/nh $argv
|
||||
else
|
||||
${pkgs.nh}/bin/nh $argv
|
||||
end
|
||||
else
|
||||
${pkgs.nh}/bin/nh
|
||||
end
|
||||
'';
|
||||
};
|
||||
spt = "${pkgs.spotify-player}/bin/spotify_player";
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue