home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

channels.nix (786B)


      1 let
      2   mapAttrs = f: set: builtins.listToAttrs (
      3     map
      4       (attr: { name = attr; value = f set.${attr}; })
      5       (builtins.attrNames set)
      6   );
      7   channels = {
      8     aardvark = "13.10";
      9     baboon = "14.04";
     10     caterpillar = "14.12";
     11     dingo = "15.09";
     12     emu = "16.03";
     13     flounder = "16.09";
     14     gorilla = "17.03";
     15     v17_03 = "17.03";
     16     hummingbird = "17.09";
     17     v17_09 = "17.09";
     18     impala = "18.03";
     19     v18_03 = "18.03";
     20     jellyfish = "18.09";
     21     v18_09 = "18.09";
     22     koi = "19.03";
     23     v19_03 = "19.03";
     24     loris = "19.09";
     25     v19_09 = "19.09";
     26     markhor = "20_03";
     27     v20_03 = "20.03";
     28     unstable = "unstable";
     29   };
     30 in
     31 mapAttrs
     32   (v:
     33     import
     34       (builtins.fetchTarball
     35         "https://nixos.org/channels/nixos-${v}/nixexprs.tar.xz") { }
     36   )
     37   channels