home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit c41167f181d0d4c5d9f8a8d902d62d15b2a09480
parent 97068814249f6577c72ca952496d37ea85935d9c
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Sat,  5 Dec 2020 14:34:27 +0100

flake: experiment with pkgsBySystem…

… and different "channels".

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mflake.nix | 24++++++++++++++++--------
1 file changed, 16 insertions(+), 8 deletions(-)

diff --git a/flake.nix b/flake.nix @@ -1,5 +1,11 @@ # flake.nix --- the heart of my home # +# Author: Vincent Demeester <vincent@sbr.pm> +# URL: https://git.srb.ht/~vdemeester/home +# License: GPLv3 +# +# Welcome to ground zero. Where the whole flake gets set up and all its modules +# are loaded. { description = '' home is the personal mono-repo of Vincent Demeester; containing the declarative configuration of @@ -71,14 +77,14 @@ with inputs.nixpkgs.lib; let forEachSystem = genAttrs [ "x86_64-linux" "aarch64-linux" ]; - pkgsBySystem = forEachSystem - (system: - import inputs.nixpkgs { - inherit system; - config = import ./nix/config.nix; - overlays = self.internal.overlays."${system}"; - } - ); + mkPkgs = pkgs: system: import pkgs { + inherit system; + config = import ./nix/config.nix; + overlays = self.internal.overlays."${system}"; + }; + unstablePkgsBySystem = forEachSystem (mkPkgs inputs.nixos-unstable); + stablePkgsBySystem = forEachSystem (mkPkgs inputs.nixos); + pkgsBySystem = forEachSystem (mkPkgs inputs.nixpkgs); in { # `internal` isn't a known output attribute for flakes. It is used here to contain @@ -135,6 +141,8 @@ pkgs = pkgsBySystem."${system}"; in { + apeStable = stablePkgsBySystem."${system}".callPackage ./pkgs/ape { }; + apeUnstable = unstablePkgsBySystem."${system}".callPackage ./pkgs/ape { }; ape = pkgs.callPackage ./pkgs/ape { }; nr = pkgs.callPackage ./pkgs/nr { }; ram = pkgs.callPackage ./pkgs/ram { };