mirror of
https://github.com/nix-community/srvos.git
synced 2024-09-11 14:17:02 +03:00
Keep the number of exposed inputs from the top-level flake small by splitting the development environment into its own flake. The .envrc uses `--override-input srvos path:$PATH` so that the srvos path always get re-calculated on reload, but not recorded. Since the hash of srvos is stored inside of srvos, it would infinitely update otherwise.
6 lines
125 B
Nix
6 lines
125 B
Nix
{ system ? builtins.currentSystem }:
|
|
let
|
|
d = import ./. { inherit system; src = ./dev; };
|
|
in
|
|
d.devShells.${system}.default
|