refactor: Tidy flake.nix and break it apart

This commit is contained in:
Madeleine Sydney
2024-12-30 19:24:07 -07:00
parent 2e3b262d05
commit c6170d5284
6 changed files with 164 additions and 97 deletions

View File

@@ -0,0 +1,20 @@
{ 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;
};
}