mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
edit supported systems for 21.05
This commit is contained in:
parent
8fcba46c06
commit
7b0cc2134a
1 changed files with 9 additions and 1 deletions
10
flake.nix
10
flake.nix
|
@ -4,7 +4,15 @@
|
||||||
|
|
||||||
outputs = { self, nixpkgs, impermanence, ... }:
|
outputs = { self, nixpkgs, impermanence, ... }:
|
||||||
let
|
let
|
||||||
|
|
||||||
mypkgs = import ./pkgs;
|
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
|
in
|
||||||
{
|
{
|
||||||
nixosModules =
|
nixosModules =
|
||||||
|
@ -32,7 +40,7 @@
|
||||||
morphHosts = import lib/morph.nix;
|
morphHosts = import lib/morph.nix;
|
||||||
forAllSystems = f: builtins.listToAttrs (map
|
forAllSystems = f: builtins.listToAttrs (map
|
||||||
(name: { inherit name; value = f name; })
|
(name: { inherit name; value = f name; })
|
||||||
(with nixpkgs.lib.systems.supported; tier1 ++ tier2));
|
(supportedSystems));
|
||||||
};
|
};
|
||||||
|
|
||||||
packages = self.lib.forAllSystems
|
packages = self.lib.forAllSystems
|
||||||
|
|
Loading…
Reference in a new issue