diff options
| author | seth <[email protected]> | 2024-02-07 18:03:24 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2024-02-07 18:27:45 -0500 |
| commit | cffffeb678e9a1078eeba0f19c9607cda9f31bed (patch) | |
| tree | 8b8f68aa357becad06845f15b7e528474041371c /modules/shared/base/default.nix | |
| parent | 48712d44fde91d2685089cca7f9d88295fd59817 (diff) | |
modules/nixos+darwin: move to traits + archetypes model
Diffstat (limited to 'modules/shared/base/default.nix')
| -rw-r--r-- | modules/shared/base/default.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/shared/base/default.nix b/modules/shared/base/default.nix new file mode 100644 index 0000000..9154ae7 --- /dev/null +++ b/modules/shared/base/default.nix @@ -0,0 +1,23 @@ +{ + config, + lib, + inputs, + ... +}: let + cfg = config.base; + inherit (inputs) self; +in { + options.base = { + enable = lib.mkEnableOption "basic configurations"; + }; + + imports = [ + ./documentation.nix + ./nix.nix + ./programs.nix + ]; + + config = lib.mkIf cfg.enable { + system.configurationRevision = self.rev or self.dirtyRev or "dirty-unknown"; + }; +} |
