parent
1ce40f2c1a
commit
6ca0d7248b
329 changed files with 178 additions and 139 deletions
modules/server
30
modules/server/default.nix
Normal file
30
modules/server/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue