1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00
nixos/options.nix
Stefan Ellmauthaler bc342f05e5 CONF added variables for different features to be defined hostbased
Signed-off-by: Stefan Ellmauthaler <stefan.ellmauthaler@tu-dresden.de>
2021-11-16 14:42:33 +01:00

22 lines
518 B
Nix

{ config, pkgs, lib, ...}:
{
options.variables = with lib; {
hostName = mkOption {
type = types.str;
example = "nucturne";
description = "Hostname of the system";
default = "hostnamenotset";
};
graphical = mkOption {
type = types.bool;
default = false;
description = "Whether to enable the graphical environment";
};
server = mkOption {
type = types.bool;
default = false;
description = "Whether this system is a server";
};
};
}