Files
cloonar-assistant/modules/cloonar-assistant/default.nix

42 lines
902 B
Nix

{ config, options, lib, pkgs, ... }:
with lib;
let
cfg = config.cloonar-assistant;
in {
options.cloonar-assistant = {
setup = mkOption {
type = lib.types.bool;
default = false;
description = "Enable access from Wan to Setup";
};
networkPrefix = mkOption {
type = types.str;
default = "10.10";
example = "10.10";
description = "First two octets of the network";
};
domain = mkOption {
type = types.str;
example = "example.smart.cloonar.com";
description = "domain of the network";
};
multiroom-audio = {
enable = mkOption {
type = types.bool;
default = false;
description = "Enable multiroom audio";
};
};
};
imports = [
# Include the results of the hardware scan.
./sops.nix
./networking
./updns
./home-assistant
# ./multiroom-audio
];
}