shell: refactor, reduce size

- drop treefmt, accessible via `nix fmt`

- drop mkdocs, accessible via `inv mkdocs`

this halves the size of the devshell
This commit is contained in:
zowoq 2023-05-04 07:51:58 +10:00
parent fa5480719b
commit 486311ad29
2 changed files with 14 additions and 12 deletions

View file

@ -1,21 +1,15 @@
{ {
perSystem = { config, pkgs, ... }: { perSystem = { pkgs, ... }: {
devShells = { devShells = {
default = with pkgs; mkShellNoCC { default = with pkgs; mkShellNoCC {
buildInputs = [ packages = [
jq jq
python3.pkgs.deploykit
python3.pkgs.invoke
python3.pkgs.requests
rsync
sops sops
ssh-to-age ssh-to-age
(python3.withPackages (
p: [
p.deploykit
p.invoke
p.requests
]
))
rsync
config.packages.pages.buildInputs
config.treefmt.build.wrapper
]; ];
}; };
}; };

View file

@ -169,6 +169,14 @@ git commit --amend -m "${commit}" -m "Terraform updates:" -m "${diff}"
) )
@task
def mkdocs(c):
"""
Serve docs (mkdoc serve)
"""
c.run("nix develop .#pages -c mkdocs serve")
def get_hosts(hosts: str) -> List[DeployHost]: def get_hosts(hosts: str) -> List[DeployHost]:
if hosts == "": if hosts == "":
return [DeployHost(f"build{n + 1:02d}.nix-community.org") for n in range(4)] return [DeployHost(f"build{n + 1:02d}.nix-community.org") for n in range(4)]