From 9b912d435520c1f0cc952c46a2c75100457cc245 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 24 Sep 2023 14:24:05 -0400 Subject: templates/final: use slightly better practices --- templates/full/flake.nix | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'templates/full/flake.nix') diff --git a/templates/full/flake.nix b/templates/full/flake.nix index 3976e91..a98971a 100644 --- a/templates/full/flake.nix +++ b/templates/full/flake.nix @@ -16,9 +16,11 @@ pre-commit = { url = "github:cachix/pre-commit-hooks.nix"; - inputs.nixpkgs.follows = "nixpkgs"; - inputs.nixpkgs-stable.follows = "nixpkgs"; - inputs.flake-compat.follows = "compat"; + inputs = { + nixpkgs.follows = "nixpkgs"; + nixpkgs-stable.follows = "nixpkgs"; + flake-compat.follows = "compat"; + }; }; }; @@ -30,7 +32,16 @@ parts.lib.mkFlake {inherit inputs;} { imports = [ pre-commit.flakeModule - ./nix + + ./nix/dev.nix + ./nix/packages.nix + ]; + + systems = [ + "x86_64-linux" + "aarch64-linux" + "x86_64-darwin" + "aarch64-darwin" ]; }; } -- cgit v1.2.3