From ddeb4d69bf467044bcc847de411ac46bc8b83209 Mon Sep 17 00:00:00 2001 From: sharings Date: Sat, 26 Jul 2025 13:26:27 +0000 Subject: [PATCH] add systems.nix --- flake.nix | 10 +++++++++- systems.nix | 7 +++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 systems.nix diff --git a/flake.nix b/flake.nix index 8d06cb0..4cd6985 100644 --- a/flake.nix +++ b/flake.nix @@ -12,8 +12,12 @@ url = "github:nix-community/nixvim/main"; inputs.nixpkgs.follows = "nixpkgs"; inputs.flake-parts.follows = "flake-parts"; + inputs.systems.follows = "my_systems"; + }; + flake-utils = { + url = "github:numtide/flake-utils"; + inputs.systems.follows = "my_systems"; }; - flake-utils.url = "github:numtide/flake-utils"; flake-parts.url = "github:hercules-ci/flake-parts"; # nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05"; # nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; @@ -35,6 +39,10 @@ url = "github:numtide/devshell"; inputs.nixpkgs.follows = "nixpkgs"; }; + my_systems = { + url = "path:./systems.nix"; + flake = false; + }; }; outputs = diff --git a/systems.nix b/systems.nix new file mode 100644 index 0000000..e09f52c --- /dev/null +++ b/systems.nix @@ -0,0 +1,7 @@ +[ + "aarch64-darwin" + "aarch64-linux" + "x86_64-darwin" + "x86_64-linux" + "i686-linux" +]