nixos-configs/nixosModules/server/default.nix
matt1432 24aa4b9842
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: make modules independant and exposed in the flake for outside use
2024-08-02 22:32:29 -04:00

30 lines
503 B
Nix

{lib, ...}: let
inherit (lib) mkOption types;
in {
imports = [
./sshd.nix
./tailscale.nix
];
options.roles.server = {
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;
}