diff options
| author | seth <[email protected]> | 2023-08-24 07:49:07 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-08-24 07:49:07 -0400 |
| commit | fab63c5065d06e577dab7faec41a8365b80c48e4 (patch) | |
| tree | 6ebe19664758903f0c6d2df619496c405de612cd /templates/full/flake.nix | |
| parent | d266cbb1844959961e7aa12a9b979d8676d14e98 (diff) | |
templates/full: improve layout
Diffstat (limited to 'templates/full/flake.nix')
| -rw-r--r-- | templates/full/flake.nix | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/templates/full/flake.nix b/templates/full/flake.nix index c745441..3976e91 100644 --- a/templates/full/flake.nix +++ b/templates/full/flake.nix @@ -3,24 +3,34 @@ inputs = { nixpkgs.url = "nixpkgs/nixos-unstable"; - flake-compat = { + + compat = { url = "github:edolstra/flake-compat"; flake = false; }; - flake-parts = { + + parts = { url = "github:hercules-ci/flake-parts"; inputs.nixpkgs-lib.follows = "nixpkgs"; }; - pre-commit-hooks = { + + pre-commit = { url = "github:cachix/pre-commit-hooks.nix"; inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs-stable.follows = "nixpkgs"; - inputs.flake-compat.follows = "flake-compat"; + inputs.flake-compat.follows = "compat"; }; }; - outputs = inputs: - inputs.flake-parts.lib.mkFlake - {inherit inputs;} - {imports = [./nix];}; + outputs = { + parts, + pre-commit, + ... + } @ inputs: + parts.lib.mkFlake {inherit inputs;} { + imports = [ + pre-commit.flakeModule + ./nix + ]; + }; } |
