nixos-conf/devenv.nix
2026-03-05 19:27:26 +02:00

30 lines
455 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 = ''
sudo nixos-rebuild switch --flake '.#' $@
'';
};
# https://devenv.sh/basics/
enterShell = ''
update
'';
# See full reference at https://devenv.sh/reference/options/
}