nichts/parts/shell.nix

37 lines
751 B
Nix
Raw Normal View History

2024-07-21 21:58:18 +02:00
{
2024-07-21 22:49:20 +02:00
perSystem = {
config,
pkgs,
...
}: {
2024-07-21 21:58:18 +02:00
devShells.default = pkgs.mkShellNoCC {
name = "nichts";
2024-07-22 00:05:07 +02:00
2024-07-22 01:20:41 +02:00
# shellHook = ''
# # ${config.pre-commit.installationScript}
# '';
2024-07-22 00:05:07 +02:00
2024-07-21 21:58:18 +02:00
DIRENV_LOG_FORMAT = "";
2024-07-21 22:49:20 +02:00
2024-07-22 00:05:07 +02:00
inputsFrom = [config.treefmt.build.devShell];
packages = [
2024-07-21 22:49:20 +02:00
config.treefmt.build.wrapper # treewide formatter
2024-07-22 00:05:07 +02:00
pkgs.git # take a guess
2024-07-21 21:58:18 +02:00
(pkgs.writeShellApplication {
name = "update";
text = ''
nix flake update && git commit flake.lock -m "flake: bump inputs"
'';
})
(pkgs.writeShellApplication {
name = "rebuild";
text = ''
nh os switch
'';
})
];
};
};
}