refactor: Remove 'defaults' abstraction

This commit is contained in:
2025-09-14 01:12:04 -06:00
parent 4d18ed530e
commit f12308326e
5 changed files with 38 additions and 65 deletions

14
modules/nixos/nixpkgs.nix Normal file
View 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;
};
}