summaryrefslogtreecommitdiff
path: root/modules/darwin/base/default.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-07-23 20:24:12 -0400
committerseth <[email protected]>2023-07-23 20:58:15 -0400
commitd7263b66eb7c8c3b34584608812cc42b07b11156 (patch)
treea8cbf5a90731247acae19d5001839abca75ec4cf /modules/darwin/base/default.nix
parent011ee9d585abef4826681208d9e33bb1e1c88930 (diff)
modules/darwin: init
Diffstat (limited to 'modules/darwin/base/default.nix')
-rw-r--r--modules/darwin/base/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/darwin/base/default.nix b/modules/darwin/base/default.nix
new file mode 100644
index 0000000..d3ee780
--- /dev/null
+++ b/modules/darwin/base/default.nix
@@ -0,0 +1,26 @@
+{
+ config,
+ lib,
+ ...
+}: let
+ cfg = config.getchoo.base;
+ inherit (lib) mkDefault mkEnableOption mkIf;
+in {
+ options.getchoo.base.enable = mkEnableOption "base nixos module";
+
+ imports = [
+ ./documentation.nix
+ ./locale.nix
+ ./nix.nix
+ ./packages.nix
+ ];
+
+ config = mkIf cfg.enable {
+ getchoo.base = {
+ defaultPackages.enable = mkDefault true;
+ defaultLocale.enable = mkDefault true;
+ documentation.enable = mkDefault true;
+ nix-settings.enable = mkDefault true;
+ };
+ };
+}