summaryrefslogtreecommitdiff
path: root/modules/shared/base/default.nix
blob: 9154ae7dbcafdea4ca992b88759dd67b4ea57642 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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";
  };
}