Skip to content

Commit

Permalink
Add nix-tree for browsing the the flake result
Browse files Browse the repository at this point in the history
  • Loading branch information
rake5k committed Jun 25, 2024
1 parent f6b1270 commit 880c81d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,15 @@
(mkDevShell "default" {
name = "nixcfg";
checksShellHook = system: self.checks."${system}".pre-commit-check.shellHook;
packages = pkgs: with pkgs; [ nixpkgs-fmt shellcheck statix ];
packages = pkgs: with pkgs; [ nix-tree nixpkgs-fmt shellcheck statix ];
})
];

# Necessary for nix-tree
# Run it using `nix-tree . --impure --derivation`
packages = {
x86_64-linux.default = self.nixosConfigurations.nixos.config.system.build.toplevel;
aarch64-darwin.default = self.darwinConfigurations.macos.system;
};
};
}

0 comments on commit 880c81d

Please sign in to comment.