summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-11-15 03:37:38 -0500
committerseth <[email protected]>2023-11-16 00:15:23 +0000
commitea3b523a37d22e67eaf5019bb8a661a60e82cc31 (patch)
treea8a43a617f5a815ad56f81a89578fe5fc05bfcc1 /flake.nix
parent928d1ab5caa5ad1f6e22a869686c77626e53e7e0 (diff)
flake: use naersk to build cross arch docker images
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix18
1 files changed, 12 insertions, 6 deletions
diff --git a/flake.nix b/flake.nix
index e4ab295..1738cc2 100644
--- a/flake.nix
+++ b/flake.nix
@@ -18,6 +18,16 @@
inputs.nixpkgs-lib.follows = "nixpkgs";
};
+ fenix = {
+ url = "github:nix-community/fenix";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
+
+ naersk = {
+ url = "github:nix-community/naersk";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
+
pre-commit = {
url = "github:cachix/pre-commit-hooks.nix";
inputs.nixpkgs.follows = "nixpkgs";
@@ -25,14 +35,10 @@
};
};
- outputs = {
- parts,
- pre-commit,
- ...
- } @ inputs:
+ outputs = {parts, ...} @ inputs:
parts.lib.mkFlake {inherit inputs;} {
imports = [
- pre-commit.flakeModule
+ inputs.pre-commit.flakeModule
./parts/deployment.nix
./parts/dev.nix