nichts/flake/shell.nix
2024-07-21 22:49:20 +02:00

35 lines
788 B
Nix

{
perSystem = {
config,
pkgs,
...
}: {
devShells.default = pkgs.mkShellNoCC {
name = "nichts";
DIRENV_LOG_FORMAT = "";
#inputsFrom = [config.treefmt.build.devShell];
packages = with pkgs; [
config.treefmt.build.wrapper # treewide formatter
nil # nix language server
alejandra
git # take a guess
statix # no idea
deadnix # clean up unused nix code
(pkgs.writeShellApplication {
name = "update";
text = ''
nix flake update && git commit flake.lock -m "flake: bump inputs"
'';
})
(pkgs.writeShellApplication {
name = "rebuild";
text = ''
nh os switch
'';
})
];
};
};
}