mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
40 lines
1.0 KiB
Nix
40 lines
1.0 KiB
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";
|
|
};
|
|
git = {
|
|
key = mkOption {
|
|
type = types.str;
|
|
example = "0xBEEE1234";
|
|
default = "C804A9C1B7AF8256";
|
|
description = "Signkey for git commits";
|
|
};
|
|
gpgsm = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
description = "Whether to use gpgsm for commit signatures";
|
|
};
|
|
signDefault = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
description = "Whether to force signing commits or not";
|
|
};
|
|
};
|
|
};
|
|
}
|