2019-05-09 18:28:40 +02:00
|
|
|
{ lib, ... }:
|
2019-03-17 11:43:14 +01:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
options.machine = {
|
|
|
|
allowUnfree = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
description = ''
|
|
|
|
Wether to allow the installation of unfree packages.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
pkgs = mkOption {
|
|
|
|
type = types.listOf types.string;
|
|
|
|
description = ''
|
|
|
|
The list of metapackages to be installed.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
services = mkOption {
|
2019-03-20 02:57:59 +01:00
|
|
|
type = types.listOf types.string;
|
2019-03-17 11:43:14 +01:00
|
|
|
description = ''
|
|
|
|
List of services to be enabled.
|
|
|
|
'';
|
|
|
|
};
|
2019-03-20 02:57:59 +01:00
|
|
|
conffiles = mkOption {
|
|
|
|
type = types.listOf types.string;
|
|
|
|
description = ''
|
|
|
|
List of configuration files to be enabled.
|
|
|
|
'';
|
|
|
|
};
|
2019-03-17 11:43:14 +01:00
|
|
|
hostName = mkOption {
|
|
|
|
type = types.str;
|
|
|
|
description = ''
|
|
|
|
The Machines HostName
|
|
|
|
'';
|
|
|
|
};
|
2019-03-23 02:50:48 +01:00
|
|
|
domain = mkOption {
|
|
|
|
type = types.str;
|
|
|
|
default = "localhost";
|
|
|
|
description = ''
|
|
|
|
The Machines domain name.
|
|
|
|
'';
|
|
|
|
};
|
2019-03-17 11:43:14 +01:00
|
|
|
firewall = {
|
|
|
|
allowPing = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
description = ''
|
|
|
|
See networking.firewall.allowPing.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
allowedUDPPorts = mkOption {
|
|
|
|
type = types.listOf types.int;
|
|
|
|
description = ''
|
|
|
|
See networking.firewall.allowerdUDPPorts.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
allowedTCPPorts = mkOption {
|
|
|
|
type = types.listOf types.int;
|
|
|
|
description = ''
|
|
|
|
See networking.firewall.allowedTCPPorts.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
allowedUDPPortRanges = mkOption {
|
|
|
|
type = types.listOf (types.attrsOf types.int);
|
|
|
|
description = ''
|
|
|
|
See networking.firewall.allowerdUDPPortRanges.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
allowedTCPPortRanges = mkOption {
|
|
|
|
type = types.listOf (types.attrsOf types.int);
|
|
|
|
description = ''
|
|
|
|
See networking.firewall.allowedTCPPortRanges.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
2019-05-04 13:47:21 +02:00
|
|
|
desktop.wms = mkOption {
|
|
|
|
type = types.listOf types.string;
|
|
|
|
default = [];
|
|
|
|
description = ''
|
|
|
|
The list of wms to be enabled.
|
|
|
|
'';
|
|
|
|
};
|
2019-03-17 11:43:14 +01:00
|
|
|
};
|
|
|
|
}
|