devenv
This commit is contained in:
parent
58f967af43
commit
3c85c13513
6 changed files with 189 additions and 2 deletions
26
devenv.nix
Normal file
26
devenv.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
# https://devenv.sh/scripts/
|
||||
scripts = {
|
||||
update.exec = ''
|
||||
nix flake update
|
||||
'';
|
||||
build.exec = ''
|
||||
nixos-rebuild switch --sudo --flake '.#'
|
||||
'';
|
||||
};
|
||||
|
||||
# https://devenv.sh/basics/
|
||||
enterShell = ''
|
||||
update
|
||||
'';
|
||||
|
||||
# See full reference at https://devenv.sh/reference/options/
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue