diff --git a/default.nix b/default.nix index dc4138b..dd3235e 100644 --- a/default.nix +++ b/default.nix @@ -12,7 +12,7 @@ ./hardening.nix ./hardware.nix ./laptop.nix - # ./overlays.nix + ./overlays.nix ./non-persistence.nix ]; } diff --git a/overlays.nix b/overlays.nix new file mode 100644 index 0000000..235edcf --- /dev/null +++ b/overlays.nix @@ -0,0 +1,30 @@ +{config, pkgs, options, lib, ...}: +with lib; +let + cfg = config.aviallon.overlays; +in +{ + options.aviallon.overlays = { + enable = mkOption { + default = true; + type = types.bool; + }; + }; + config = mkIf cfg.enable { + nix.nixPath = + # Prepend default nixPath values. + options.nix.nixPath.default ++ + # Append our nixpkgs-overlays. + [ "nixpkgs-overlays=/etc/nixos/overlays-compat/" ] + ; + + + nixpkgs.overlays = [ + # (self: super: { + # nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") { + # inherit pkgs; + # }; + # }) + ]; + }; +}