summaryrefslogtreecommitdiff
path: root/shell.nix
blob: 5d8e2c5ae281898fb590bdb917a97badf47ba4c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
inputs@{ system, self, deploy-rs, nvfetcher, nixpkgs, ... }:
let
  pkgs = self.legacyPackages.${system};
  utils = import ./utils { inherit (nixpkgs) lib; };
  inherit (utils) nixImport;

  tools = nixImport rec { dir = ./tools; _import = _path: name: import "${toString dir}/${name}" inputs; };
in pkgs.mkShell {
  name = "nixos";
  nativeBuildInputs = builtins.attrValues tools ++ (with pkgs; [
    sops
    wireguard-tools
    gup
    nftables
    deploy-rs.packages.${system}.deploy-rs
    knot-dns
    yq
    nvfetcher.defaultPackage.${system}
  ]);
}