From 0eb8ac7a7358b6314c8cdf2746e740a5272a7e6a Mon Sep 17 00:00:00 2001
From: zowoq <59103226+zowoq@users.noreply.github.com>
Date: Thu, 30 May 2024 10:10:06 +1000
Subject: [PATCH] flake: add nix-systems

adding this so we can use it for follows and limit clutter in the lockfile
---
 flake.lock | 5 ++++-
 flake.nix  | 4 +++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/flake.lock b/flake.lock
index d77b046..42263e1 100644
--- a/flake.lock
+++ b/flake.lock
@@ -11,7 +11,9 @@
         "nixpkgs": [
           "nixpkgs"
         ],
-        "systems": "systems"
+        "systems": [
+          "systems"
+        ]
       },
       "locked": {
         "lastModified": 1716561646,
@@ -254,6 +256,7 @@
         "nur-update": "nur-update",
         "sops-nix": "sops-nix",
         "srvos": "srvos",
+        "systems": "systems",
         "treefmt-nix": "treefmt-nix"
       }
     },
diff --git a/flake.nix b/flake.nix
index f684094..fcc9865 100644
--- a/flake.nix
+++ b/flake.nix
@@ -12,6 +12,7 @@
     agenix.inputs.darwin.follows = "nix-darwin";
     agenix.inputs.home-manager.follows = "empty";
     agenix.inputs.nixpkgs.follows = "nixpkgs";
+    agenix.inputs.systems.follows = "systems";
     agenix.url = "github:ryantm/agenix";
     buildbot-nix.inputs.flake-parts.follows = "flake-parts";
     buildbot-nix.inputs.nixpkgs.follows = "nixpkgs";
@@ -39,6 +40,7 @@
     sops-nix.url = "github:Mic92/sops-nix";
     srvos.inputs.nixpkgs.follows = "nixpkgs";
     srvos.url = "github:nix-community/srvos";
+    systems.url = "github:nix-systems/default";
     treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
     treefmt-nix.url = "github:numtide/treefmt-nix";
   };
@@ -47,7 +49,7 @@
     flake-parts.lib.mkFlake
       { inherit inputs; }
       {
-        systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
+        systems = import inputs.systems;
 
         imports = [
           inputs.treefmt-nix.flakeModule