refactor: Remove 'defaults' abstraction
This commit is contained in:
14
modules/nixos/nixpkgs.nix
Normal file
14
modules/nixos/nixpkgs.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user