Files
sydnix/modules/nixos/nixpkgs.nix

15 lines
279 B
Nix

{ config, lib, pkgs, ... }:
let cfg = config.sydnix.nixpkgs;
in {
options.sydnix.nixpkgs = {
enable = lib.mkEnableOption "some default Nixpkgs settings" // {
default = true;
};
};
config = lib.mkIf cfg.enable {
nixpkgs.config.allowUnfree = true;
};
}