summaryrefslogtreecommitdiff
path: root/dev/devShells.nix
blob: ca60d166043be966f5ba6548401d8fdf881c236d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
  perSystem =
    {
      lib,
      pkgs,
      inputs',
      self',
      ...
    }:
    {
      devShells = {
        default = pkgs.mkShellNoCC {
          packages =
            [
              # we want to make sure we have the same
              # nix behavior across machines
              pkgs.lix

              # format + lint
              pkgs.actionlint
              self'.formatter
              pkgs.deadnix
              pkgs.nil
              pkgs.statix

              # utils
              pkgs.fzf # for just
              pkgs.just

              # terranix
              self'.packages.opentofu
            ]
            # see above comment about {l,n}ix
            ++ lib.optional pkgs.stdenv.isDarwin inputs'.nix-darwin.packages.darwin-rebuild
            ++ lib.optionals pkgs.stdenv.isLinux [
              (pkgs.nixos-rebuild.override { nix = pkgs.lix; }) # ditto
              inputs'.agenix.packages.agenix
            ];
        };
      };
    };
}