summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 61063fc..7dbe523 100644
--- a/flake.nix
+++ b/flake.nix
@@ -19,6 +19,27 @@
agenix,
...
}:
+ let
+ forAllSystems =
+ f:
+ nixpkgs.lib.genAttrs
+ [
+ "x86_64-linux"
+ "aarch64-linux"
+ ]
+ (
+ system:
+ f (
+ import nixpkgs {
+ inherit system;
+ config.allowUnfree = true;
+ overlays = [
+ agenix.overlays.default
+ ];
+ }
+ )
+ );
+ in
{
nixosConfigurations.oden = nixpkgs.lib.nixosSystem {
modules = [
@@ -31,5 +52,10 @@
inherit inputs;
};
};
+ devShells = forAllSystems (pkgs: {
+ default = pkgs.mkShellNoCC {
+ packages = [ pkgs.agenix ];
+ };
+ });
};
}