nixos-configs/modules/server/default.nix
matt1432 49dc072b81
All checks were successful
Discord / discord commits (push) Has been skipped
refactor(modules): make sure nothing is added without setting enable
2025-01-04 19:02:30 -05:00

35 lines
575 B
Nix

{lib, ...}: let
inherit (lib) mkOption types;
in {
imports = [
./sshd
./tailscale
];
options.roles.server = {
enable = mkOption {
type = types.bool;
default = false;
};
user = mkOption {
type = types.str;
description = ''
The name of the machine's main user.
'';
};
sshd.enable = mkOption {
type = types.bool;
default = false;
};
tailscale.enable = mkOption {
type = types.bool;
default = false;
};
};
# For accurate stack trace
_file = ./default.nix;
}