File tree Expand file tree Collapse file tree 3 files changed +10
-21
lines changed
flake-modules/flake-guard Expand file tree Collapse file tree 3 files changed +10
-21
lines changed Original file line number Diff line number Diff line change 49
49
let cfg = config . flake-guard . networks ;
50
50
in
51
51
{
52
- # imports = [
53
- # (mkRenamedOptionModule
54
- # [ "networking" "wireguard" "networks" ]
55
- # [ "flake-guard" "networks" ])
56
- # ];
52
+ imports = [
53
+ ( mkRenamedOptionModule
54
+ [ "networking" "wireguard" "networks" ]
55
+ [ "flake-guard" "networks" ] )
56
+ ] ;
57
57
58
58
options . flake-guard = {
59
59
enable = mkEnableOption "enable flake-guard nixos module" ;
108
108
109
109
self = mkOption {
110
110
type = types . attrsOf types . unspecified ;
111
-
112
- # types.submodule {
113
- # options = node-options.options // {
114
- # found = mkEnableOption "self was found.";
115
-
116
- # peers = mkOption {
117
- # type = types.attrsOf types.unspecified;
118
- # default = {};
119
- # };
120
- # };
121
- # };
122
111
default = { } ;
123
112
} ;
124
113
} ;
Original file line number Diff line number Diff line change 85
85
( ( peer // {
86
86
inherit groups ;
87
87
keyLookup = peer-name ;
88
- hostWriter = mkGuardOpt "hostsWriter" ;
88
+ hostsWriter = mkGuardOpt "hostsWriter" ;
89
89
interfaceWriter = mkGuardOpt "interfaceWriter" ;
90
90
secretslookup = mkGuardOpt "secretsLookup" ;
91
91
listenPort = mkGuardOpt "listenPort" ;
117
117
# a = 1;
118
118
interfaceName = net-name ;
119
119
# peers.by-group = by-group;
120
- # peers.by-name = by-name;
120
+ peers . by-name = by-name ;
121
121
} ) )
122
122
# ) config.wireguard.networks;
123
123
) config . wireguard . networks ) ;
You can’t perform that action at this time.
0 commit comments