From 132c6ee5c387ac4552e77bb3c0d5febe5173582d Mon Sep 17 00:00:00 2001 From: James Walker Date: Sat, 1 Aug 2026 13:48:00 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9E=96=20remove=20systems=20dependency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flake.lock | 30 +++++++----------------------- flake.nix | 10 +++++++--- 2 files changed, 14 insertions(+), 26 deletions(-) diff --git a/flake.lock b/flake.lock index 73ac4ea..4b43c5b 100644 --- a/flake.lock +++ b/flake.lock @@ -60,11 +60,11 @@ ] }, "locked": { - "lastModified": 1785496534, - "narHash": "sha256-EASdusMYLuPhOCrE3LmsAGOvGhX3vnKBLxFvj9lI8tU=", + "lastModified": 1785531816, + "narHash": "sha256-vkMnV0JIyw+g/NmcfoajlGaAO+9a0ezia+FZohQJrik=", "owner": "nix-community", "repo": "home-manager", - "rev": "e8827fbbb12015a8dd9f66285aec79d655bcb9f6", + "rev": "bf9ce9fec78f95f374e8dd3b503863a3ec128ebe", "type": "github" }, "original": { @@ -131,11 +131,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1785301185, - "narHash": "sha256-eoS3KQTO0aPWXZvIaRbRAzSSHW3l5wdMFXtT1ISfoKA=", + "lastModified": 1785483748, + "narHash": "sha256-M4HXpLsR7iFTNQfD/q+zK8/QeRYztYVDVIdIgCVGGZ0=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "9bc02893134c733dd85de46ee4fb2fac696b5529", + "rev": "59ea0b1c043c463e39fcb3cfb9a5c8bcf0777c72", "type": "github" }, "original": { @@ -175,8 +175,7 @@ "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs", "pre-commit-hooks": "pre-commit-hooks", - "sops-nix": "sops-nix", - "systems": "systems" + "sops-nix": "sops-nix" } }, "sops-nix": { @@ -198,21 +197,6 @@ "repo": "sops-nix", "type": "github" } - }, - "systems": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } } }, "root": "root", diff --git a/flake.nix b/flake.nix index b405ef2..63a09e6 100644 --- a/flake.nix +++ b/flake.nix @@ -3,7 +3,6 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; - systems.url = "github:nix-systems/default"; nixos-hardware = { url = "github:NixOS/nixos-hardware"; @@ -46,12 +45,17 @@ self, nixpkgs, pre-commit-hooks, - systems, ... }@inputs: let + systems = [ + "aarch64-darwin" + "aarch64-linux" + "x86_64-linux" + ]; + forAllSystems = - fn: nixpkgs.lib.genAttrs (import systems) (system: fn system nixpkgs.legacyPackages.${system}); + fn: nixpkgs.lib.genAttrs systems (system: fn system nixpkgs.legacyPackages.${system}); in { checks = forAllSystems (