/ modules / common / remote / default.nix
default.nix
 1  { inputs, self, config, pkgs, lib, ... }: let
 2  
 3    cfg = config.remoteConfig;
 4  
 5  in {
 6    options.remoteConfig = {
 7      account = {
 8        userName = lib.mkOption {
 9          type = lib.types.nonEmptyStr;
10          default = "root";
11        };
12        isSu = lib.mkOption {
13          type = lib.types.bool;
14          default = true;
15        };
16      };
17      ssh = {
18        port = lib.mkOption {
19          type = lib.types.int;
20          default = 22;
21        };
22        address = lib.mkOption {
23          type = lib.types.nonEmptyStr;
24          default = "127.0.0.1";
25        };
26        extraOptions = lib.mkOption {
27          type = lib.types.listOf lib.types.string;
28          default = [ ];
29        };
30      };
31      hardware = {
32        isFastCompiler = lib.mkOption {
33          type = lib.types.bool;
34          default = false;
35        };
36      };
37    };
38    config = {
39  
40    };
41  }