diff options
| author | seth <[email protected]> | 2023-05-03 21:11:47 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-05-03 21:11:47 -0400 |
| commit | cf5647129499df68ac092b55b71a3cddc3422d01 (patch) | |
| tree | f7685c8540cbab2bc51f87a2e9cda214d7d2dfae /flake/dev.nix | |
| parent | cdfc4ba1b2ef2b187e076a6f627e4631b6bd7fb3 (diff) | |
refactor flake + make virtualisation compatible with 22.11
Diffstat (limited to 'flake/dev.nix')
| -rw-r--r-- | flake/dev.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/flake/dev.nix b/flake/dev.nix new file mode 100644 index 0000000..700c795 --- /dev/null +++ b/flake/dev.nix @@ -0,0 +1,47 @@ +{ + self, + inputs, + ... +}: let + inherit (inputs) pre-commit-hooks ragenix; +in { + perSystem = { + pkgs, + system, + ... + }: { + checks = { + pre-commit-check = pre-commit-hooks.lib.${system}.run { + src = ./.; + hooks = { + actionlint.enable = true; + alejandra.enable = true; + deadnix.enable = true; + statix.enable = true; + stylua.enable = true; + }; + }; + }; + + devShells = let + inherit (pkgs) mkShell; + in { + default = mkShell { + inherit (self.checks.${system}.pre-commit-check) shellHook; + packages = with pkgs; [ + actionlint + ragenix.packages.${system}.ragenix + alejandra + deadnix + fzf + git-crypt + just + statix + stylua + ]; + }; + }; + + formatter = pkgs.alejandra; + }; +} |
