From 433a9ffcbddda74b0449eba251246a60221ae7cd Mon Sep 17 00:00:00 2001 From: Ethel Morgan Date: Fri, 29 May 2020 21:45:44 +0100 Subject: better mirror upstream nixpkgs layout --- nixos/modules/overlays.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 nixos/modules/overlays.nix (limited to 'nixos/modules/overlays.nix') diff --git a/nixos/modules/overlays.nix b/nixos/modules/overlays.nix new file mode 100644 index 0000000..7820e96 --- /dev/null +++ b/nixos/modules/overlays.nix @@ -0,0 +1,22 @@ +{ config, lib, pkgs, ... }: +with lib; + +let + cfg = config.eth.overlays; + + mozilla = import (builtins.fetchTarball + "https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz"); + + eth = import ../../pkgs; + +in { + options.eth.overlays = { + eth = mkEnableOption "Eth (yours truly)"; + mozilla = mkEnableOption "Mozilla (Rust, Firefox, etc)"; + }; + + config.nixpkgs.overlays = builtins.concatLists [ + ( if cfg.eth then [ eth ] else [] ) + ( if cfg.mozilla then [ mozilla ] else [] ) + ]; +} -- cgit v1.2.3