This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

flake: use upstream networking

+2 -83
+2 -83
flake.nix
··· 72 72 clan = clan-core.lib.buildClan { 73 73 self = self; 74 74 specialArgs.self = self; 75 - exportsModule = 76 - { lib, ... }: 77 - { 78 - options.networking = { 79 - priority = lib.mkOption { 80 - type = lib.types.int; 81 - default = 1000; 82 - description = '' 83 - priority with which this network should be tried. 84 - higher priority means it gets used earlier in the chain 85 - ''; 86 - }; 87 - technology = lib.mkOption { 88 - # addding more technologies requires code in the clan-cli to handle that technology 89 - # at least for userspace networking 90 - # maybe we can do a fallback mode for vpns where we don't need userspace networking? 91 - type = lib.types.enum [ 92 - "direct" 93 - "tor" 94 - ]; 95 - description = '' 96 - the technology this network uses to connect to the target 97 - This is used for userspace networking with socks proxies. 98 - ''; 99 - }; 100 - # should we call this machines? hosts? 101 - peers = lib.mkOption { 102 - # <name> 103 - type = lib.types.attrsOf ( 104 - lib.types.submodule ( 105 - { name, ... }: 106 - { 107 - options = { 108 - name = lib.mkOption { 109 - type = lib.types.str; 110 - default = name; 111 - }; 112 - SSHOptions = lib.mkOption { 113 - type = lib.types.listOf lib.types.str; 114 - default = [ ]; 115 - }; 116 - host = lib.mkOption { 117 - description = ''''; 118 - type = lib.types.attrTag { 119 - plain = lib.mkOption { 120 - type = lib.types.str; 121 - description = '' 122 - a plain value, which can be read directly from the config 123 - ''; 124 - }; 125 - var = lib.mkOption { 126 - type = lib.types.submodule { 127 - options = { 128 - machine = lib.mkOption { 129 - type = lib.types.str; 130 - example = "jon"; 131 - }; 132 - generator = lib.mkOption { 133 - type = lib.types.str; 134 - example = "tor-ssh"; 135 - }; 136 - file = lib.mkOption { 137 - type = lib.types.str; 138 - example = "hostname"; 139 - }; 140 - }; 141 - }; 142 - }; 143 - }; 144 - }; 145 - }; 146 - } 147 - ) 148 - ); 149 - }; 150 - }; 151 - }; 152 75 modules = import ./clan_modules { inherit nixpkgs; }; 153 76 inventory = { 154 77 meta.name = "superconfig"; ··· 178 101 }; 179 102 instances = { 180 103 tor = { 181 - module.name = "tor"; 182 - module.input = "self"; 183 104 roles.default.tags.all = { }; 184 105 }; 185 106 internet = { 186 - module.name = "internet"; 187 - module.input = "self"; 188 107 roles.default.machines = { 189 - prism.settings.host = "prism.lassul.us"; 190 - neoprism.settings.host = "neoprism.lassul.us"; 108 + prism.settings.host = "ssh://prism.lassul.us:45621"; 109 + neoprism.settings.host = "ssh://neoprism.lassul.us:45621"; 191 110 }; 192 111 }; 193 112 state-version = {