refactor: Remove 'defaults' abstraction
This commit is contained in:
1 parent
4d18ed530e
commit
f12308326e
5 files changed
+38
-65
No files matched your search
@@ -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