Files
sydnix/modules/nixos/defaults/nixpkgs.nix
2025-01-19 18:41:38 -07:00

21 lines
369 B
Nix
Executable File

{ 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;
};
}