summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-09-07 16:18:29 -0400
committerseth <[email protected]>2023-09-07 17:15:26 -0400
commitf741b550612103dafc1b2ff405de6a816ac5d760 (patch)
tree12842ff11c7b9afc91923463f1d1cdde553117f1 /flake.nix
parentd5b333e95878fb895bc6bba402b9a3d920f737a3 (diff)
flake: switch to nixpkgs rust infra
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix43
1 files changed, 11 insertions, 32 deletions
diff --git a/flake.nix b/flake.nix
index 8c7dfcb..e4ab295 100644
--- a/flake.nix
+++ b/flake.nix
@@ -18,42 +18,11 @@
inputs.nixpkgs-lib.follows = "nixpkgs";
};
- # used for cargo audit
- advisory-db = {
- url = "github:rustsec/advisory-db";
- flake = false;
- };
-
- # our build framework
- crane = {
- url = "github:ipetkov/crane";
- inputs.nixpkgs.follows = "nixpkgs";
- inputs.flake-compat.follows = "compat";
- inputs.flake-utils.follows = "utils";
- };
-
- # toolchain management
- fenix = {
- url = "github:nix-community/fenix";
- inputs.nixpkgs.follows = "nixpkgs";
- };
-
pre-commit = {
url = "github:cachix/pre-commit-hooks.nix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs-stable.follows = "nixpkgs";
- inputs.flake-compat.follows = "compat";
- inputs.flake-utils.follows = "utils";
- };
-
- # this is just to avoid having multiple versions in flake.lock
- compat = {
- url = "github:edolstra/flake-compat";
- flake = false;
};
-
- # ditto
- utils.url = "github:numtide/flake-utils";
};
outputs = {
@@ -64,7 +33,17 @@
parts.lib.mkFlake {inherit inputs;} {
imports = [
pre-commit.flakeModule
- ./parts
+
+ ./parts/deployment.nix
+ ./parts/dev.nix
+ ./parts/packages.nix
+ ];
+
+ systems = [
+ "x86_64-linux"
+ "x86_64-darwin"
+ "aarch64-linux"
+ "aarch64-darwin"
];
};
}