make the releases attrsets instead of lists

This commit is contained in:
Yorick van Pelt 2017-02-01 19:29:08 +01:00
parent 67dad13a0b
commit f20a255bce
2 changed files with 14 additions and 4 deletions

View file

@ -1,7 +1,12 @@
let pkgs = import <nixpkgs> {config = import ./nix/.nixpkgs/config.nix;};
all_userspace = pkgs.lib.mapAttrs (name: paths: pkgs.buildEnv {inherit name paths;}) pkgs.hosts;
in
with pkgs;
{
dotfiles = with (import ./default.nix pkgs); [woodhouse pennyworth frumar];
userspace = with (pkgs.lib.mapAttrs (name: paths: pkgs.buildEnv {inherit name paths;}) pkgs.hosts); [woodhouse pennyworth frumar];
dotfiles = {
inherit (import ./default.nix pkgs) woodhouse pennyworth frumar;
};
userspace = {
inherit (all_userspace) woodhouse pennyworth frumar;
};
}

View file

@ -1,7 +1,12 @@
let pkgs = import <nixpkgs> {config = import ./nix/.nixpkgs/config.nix;};
all_userspace = pkgs.lib.mapAttrs (name: paths: pkgs.buildEnv {inherit name paths;}) pkgs.hosts;
in
with pkgs;
{
dotfiles = with (import ./default.nix pkgs); [ascanius jarvis];
userspace = with (pkgs.lib.mapAttrs (name: paths: pkgs.buildEnv {inherit name paths;}) pkgs.hosts); [ascanius jarvis];
dotfiles = {
inherit (import ./default.nix pkgs) ascanius jarvis;
};
userspace = {
inherit (all_userspace) ascanius jarvis;
};
}