mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 19:15:37 +00:00
enable rebuild app command
This commit is contained in:
parent
2620b43925
commit
1d8638777c
@ -32,7 +32,12 @@
|
|||||||
type = "app";
|
type = "app";
|
||||||
program = builtins.toString (pkgs.writeShellScript "rebuild" ''
|
program = builtins.toString (pkgs.writeShellScript "rebuild" ''
|
||||||
echo ${pkgs.system}
|
echo ${pkgs.system}
|
||||||
echo ${if pkgs.stdenv.isDarwin then "darwin" else "linux"}
|
SYSTEM=${if pkgs.stdenv.isDarwin then "darwin" else "linux"}
|
||||||
|
if [ "$SYSTEM" == "darwin" ]; then
|
||||||
|
darwin-rebuild switch --flake github:nmasur/dotfiles#macbook
|
||||||
|
else
|
||||||
|
nixos-rebuild switch --flake github:nmasur/dotfiles
|
||||||
|
fi
|
||||||
'');
|
'');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user