21 lines
369 B
Nix
21 lines
369 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let cfg = config.sydnix.defaults.nixpkgs;
|
|
in {
|
|
options = {
|
|
sydnix.defaults.nixpkgs = {
|
|
enable = mkOption {
|
|
description = "Madeleine's default Nixpkgs settings";
|
|
default = true;
|
|
type = types.bool;
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
nixpkgs.config.allowUnfree = true;
|
|
};
|
|
}
|