From 7b0cc2134a9e37ad2a4723a2b451fc41148fba36 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Sat, 6 Nov 2021 20:57:23 -0400 Subject: [PATCH] edit supported systems for 21.05 --- flake.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index defcbdf..ab30646 100644 --- a/flake.nix +++ b/flake.nix @@ -4,7 +4,15 @@ outputs = { self, nixpkgs, impermanence, ... }: let + mypkgs = import ./pkgs; + + # polyfill. 21.05 doesn't have `systems.supported` + supportedSystems = + if builtins.elem "supported" (builtins.attrNames nixpkgs.lib.systems) + then (with nixpkgs.lib.systems.supported; tier1 ++ tier2) + else [ "x86_64-linux" ]; + in { nixosModules = @@ -32,7 +40,7 @@ morphHosts = import lib/morph.nix; forAllSystems = f: builtins.listToAttrs (map (name: { inherit name; value = f name; }) - (with nixpkgs.lib.systems.supported; tier1 ++ tier2)); + (supportedSystems)); }; packages = self.lib.forAllSystems