Add dev shell with nix-update

This commit is contained in:
NullBite 2024-03-18 03:43:30 -04:00
parent 21312168b3
commit 552f0439dc
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
3 changed files with 12 additions and 0 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use flake

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
# Ignore build outputs from performing a nix-build or `nix build` command
result
result-*
.direnv

View File

@ -200,6 +200,16 @@
# for repl debugging via :lf .
inherit inputs vars;
devShells = eachSystem (system: let
pkgs = import nixpkgs { inherit system; };
in {
default = pkgs.mkShell {
buildInputs = with pkgs; [
nix-update
];
};
});
# nix flake modules are meant to be portable so we cannot rely on
# (extraS|s)pecialArgs to pass variables
nixosModules = (import ./modules/nixos) moduleInputs;