summaryrefslogtreecommitdiff
path: root/shell.nix
blob: 6ada761eb9b8eb8aedde7b0b4d38e087945df5ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ pkgs ? import <nixpkgs> {}, deploy-rs, nvfetcher }:
let
  tai64dec = pkgs.writeShellScriptBin "tai64dec" ''
    echo $((16#$(${pkgs.daemontools}/bin/tai64n <<<"" | ${pkgs.coreutils}/bin/tail -c +2 | ${pkgs.coreutils}/bin/head -c 16)))
  '';
in pkgs.mkShell {
  name = "nixos";
  nativeBuildInputs = with pkgs; [
    sops
    wireguard-tools
    gup
    nftables
    deploy-rs
    tai64dec
    knot-dns
    yq
    nvfetcher
  ];
}