summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix26
1 files changed, 10 insertions, 16 deletions
diff --git a/flake.nix b/flake.nix
index 166805d..34e7d33 100644
--- a/flake.nix
+++ b/flake.nix
@@ -23,28 +23,22 @@
...
}:
let
+ pkgsFor = system: import nixpkgs {
+ inherit system;
+ config.allowUnfree = true;
+ overlays = [
+ agenix.overlays.default
+ ];
+ };
forAllSystems =
f:
nixpkgs.lib.genAttrs
- [
- "x86_64-linux"
- "aarch64-linux"
- ]
- (
- system:
- f (
- import nixpkgs {
- inherit system;
- config.allowUnfree = true;
- overlays = [
- agenix.overlays.default
- ];
- }
- )
- );
+ [ "x86_64-linux" "aarch64-linux" ]
+ (system: f (pkgsFor system));
in
{
nixosConfigurations.oden = nixpkgs.lib.nixosSystem {
+ pkgs = pkgsFor "x86_64-linux";
modules = [
./configuration.nix
disko.nixosModules.disko