about summary refs log tree commit diff
path: root/modules/homelab/domain.nix
blob: 2f0acfa5454db8f00a46af5da510d5d2b8beca39 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ lib, config, self, ... }:
let
  inherit (builtins) readFile fromTOML;
in
{
  options = with lib; {
    homelab.domain = mkOption {
      type = types.str;
      default = null;
      description = "Domain";
    };
  };

  config = {
    homelab.domain = (fromTOML (readFile "${self}/configs/homelab.toml")).domain;
  };
}