nixos/modules/nixpkgs.nix

18 lines
291 B
Nix
Raw Normal View History

2024-08-10 18:02:58 +00:00
{ lib, config, self, ... }:
let
cfg = config.snowhawk.nixpkgs;
in
{
options.snowhawk.nixpkgs = {
enable = lib.mkEnableOption "nixpkgs settings";
};
config = lib.mkIf cfg.enable {
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = [ self.overlays.default ];
};
}