refactor: Tidy flake.nix and break it apart
This commit is contained in:
20
modules/nixos/defaults/nixpkgs.nix
Normal file
20
modules/nixos/defaults/nixpkgs.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user