nixos-conf/devenv.nix
2026-02-26 16:34:55 +02:00

30 lines
454 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/
}