30 lines
457 B
Nix
30 lines
457 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
inputs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
# https://devenv.sh/scripts/
|
|
scripts = {
|
|
update.exec = ''
|
|
git submodule update --init --recursive
|
|
nix flake update
|
|
'';
|
|
check.exec = ''
|
|
nix flake check
|
|
'';
|
|
build.exec = ''
|
|
nixos-rebuild switch --sudo --flake '.#' $@
|
|
'';
|
|
};
|
|
|
|
# https://devenv.sh/basics/
|
|
enterShell = ''
|
|
update
|
|
'';
|
|
|
|
# See full reference at https://devenv.sh/reference/options/
|
|
}
|