summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorMathias Magnusson <mathias@magnusson.space>2026-01-06 14:44:17 +0100
committerMathias Magnusson <mathias@magnusson.space>2026-01-06 15:11:34 +0100
commit529714f1a8a2c7241436ed6de71a7b0b88117137 (patch)
tree274d445829ef63ded590dd47212bb8d34016e462 /flake.nix
parent4fb956b33d8a2255b3acc8a00fa89a1747804bd6 (diff)
downloadoden-529714f1a8a2c7241436ed6de71a7b0b88117137.tar.gz
add minecraft
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