Add dev shell with nixfmt

This commit is contained in:
Alexander Heldt
2024-09-02 21:07:34 +02:00
parent dd9be869d2
commit bda8def5fe
3 changed files with 12 additions and 0 deletions

1
.envrc Normal file
View File

@@ -0,0 +1 @@
use flake

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
.direnv/
*.qcow2
result

View File

@@ -75,5 +75,15 @@
modules = [ ./hosts/test-vm/configuration.nix ];
};
};
devShells = let
system = "x86_64-linux";
pkgs = inputs.nixpkgs.legacyPackages.${system};
in
{
${system}.default = pkgs.mkShell {
packages = [ pkgs.nixfmt-rfc-style ];
};
};
};
}