From 36a2b1aeace22517b396d9ff502fa532d173cac0 Mon Sep 17 00:00:00 2001 From: Ethel Morgan Date: Wed, 1 Jul 2020 15:48:24 +0100 Subject: move overlays module to a general nix one --- nixos/modules/overlays.nix | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 nixos/modules/overlays.nix (limited to 'nixos/modules/overlays.nix') diff --git a/nixos/modules/overlays.nix b/nixos/modules/overlays.nix deleted file mode 100644 index 7820e96..0000000 --- a/nixos/modules/overlays.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ 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