Commit graph

72 commits

Author SHA1 Message Date
Andrey Golovizin
544ff50db2 Update dependencies 2023-07-25 22:21:42 +02:00
Andrey Golovizin
d909462cc4 Simplify resolving of location addresses 2023-04-16 00:11:02 +02:00
Andrey Golovizin
0d30090e5b Apply cargo fmt 2023-04-15 13:56:24 +02:00
Andrey Golovizin
10cdbce746 Move filesystem-related stuff into the config module 2023-04-15 13:56:12 +02:00
Andrey Golovizin
a792007abd Rename dirs to config 2023-04-15 13:40:04 +02:00
Andrey Golovizin
6c6d5a51a8 Save tokens for each machine 2023-04-15 13:34:25 +02:00
Andrey Golovizin
4e62839513 Move --machine to main options 2023-04-15 12:53:55 +02:00
Andrey Golovizin
707d55557e Resolve endpoint addresses 2023-04-15 12:45:30 +02:00
Andrey Golovizin
79e88ae9ee Fix clippy warning 2023-04-12 20:31:08 +02:00
Andrey Golovizin
85cce35d59 Do not store public keys 2023-04-12 20:30:55 +02:00
Andrey Golovizin
af9ebfb9e5 Add a newline when saving keys to files 2023-04-11 20:33:03 +02:00
Andrey Golovizin
d9080af78a Add Key type 2023-04-11 10:16:51 +02:00
Andrey Golovizin
c282177afb Generate keys without the wg binary 2023-04-10 22:21:24 +02:00
Andrey Golovizin
ebccc59bf0 Add back the check command 2023-04-09 23:41:35 +02:00
Andrey Golovizin
f663a4f8b4 Split into modules 2023-04-09 22:12:15 +02:00
Andrey Golovizin
72ed117cb0 Reuse private keys 2023-04-09 21:43:47 +02:00
Andrey Golovizin
8602543e06 flake.lock: Update
Flake lock file updates:

• Updated input 'fenix':
    'github:nix-community/fenix/47ac04d42227141940ed77b4f4f1c336f99f1d99' (2023-03-17)
  → 'github:nix-community/fenix/85be6a7f62d206184ccc0f7a51f8dc2ba64fbfd3' (2023-04-09)
• Updated input 'fenix/rust-analyzer-src':
    'github:rust-lang/rust-analyzer/924d277f32b53219fcaa03226c17b485a081ed16' (2023-03-15)
  → 'github:rust-lang/rust-analyzer/01120f1213ad928de7300a8acf9f41bed72d0422' (2023-04-07)
• Updated input 'flake-utils':
    'github:numtide/flake-utils/93a2b84fc4b70d9e089d029deacc3583435c2ed6' (2023-03-15)
  → 'github:numtide/flake-utils/033b9f258ca96a10e543d4442071f614dc3f8412' (2023-04-09)
• Added input 'flake-utils/systems':
    'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e' (2023-04-09)
• Updated input 'naersk':
    'github:nmattia/naersk/d998160d6a076cfe8f9741e56aeec7e267e3e114' (2022-12-15)
  → 'github:nmattia/naersk/88cd22380154a2c36799fe8098888f0f59861a15' (2023-03-23)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/ac718d02867a84b42522a0ece52d841188208f2c' (2023-03-15)
  → 'github:NixOS/nixpkgs/d9f759f2ea8d265d974a6e1259bd510ac5844c5d' (2023-04-08)
2023-04-09 20:30:59 +02:00
Andrey Golovizin
8b79f11b39 Migrate to API v2 2023-04-09 14:20:50 +02:00
Andrey Golovizin
61bb0dd397 Update dependencies 2023-03-17 21:28:07 +01:00
Andrey Golovizin
7146f2ed18 flake.lock: Update
Flake lock file updates:

• Updated input 'fenix':
    'github:nix-community/fenix/3c8bbc1d99e241efa29df54658615d7f8344c01f' (2022-09-23)
  → 'github:nix-community/fenix/47ac04d42227141940ed77b4f4f1c336f99f1d99' (2023-03-17)
• Updated input 'fenix/rust-analyzer-src':
    'github:rust-lang/rust-analyzer/5b49745d009634170493a214364261e36228274b' (2022-09-20)
  → 'github:rust-lang/rust-analyzer/924d277f32b53219fcaa03226c17b485a081ed16' (2023-03-15)
• Updated input 'flake-utils':
    'github:numtide/flake-utils/c0e246b9b83f637f4681389ecabcb2681b4f3af0' (2022-08-07)
  → 'github:numtide/flake-utils/93a2b84fc4b70d9e089d029deacc3583435c2ed6' (2023-03-15)
• Updated input 'naersk':
    'github:nmattia/naersk/6944160c19cb591eb85bbf9b2f2768a935623ed3' (2022-09-03)
  → 'github:nmattia/naersk/d998160d6a076cfe8f9741e56aeec7e267e3e114' (2022-12-15)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/ae1dc133ea5f1538d035af41e5ddbc2ebcb67b90' (2022-09-22)
  → 'github:NixOS/nixpkgs/ac718d02867a84b42522a0ece52d841188208f2c' (2023-03-15)
2023-03-17 20:51:12 +01:00
Andrey Golovizin
0ecb11ea7b Update clap to 4.0.0 2022-09-28 20:00:27 +02:00
Andrey Golovizin
97215faa9c flake.nix: Add RUST_SRC_PATH for rust-analyzer 2022-09-25 14:30:04 +02:00
Andrey Golovizin
9efcaae9a0 Update dependencies 2022-09-24 13:54:36 +02:00
Andrey Golovizin
e97f4a0ce2 flake.nix: use rust-analyzer from fenix 2022-09-24 13:24:00 +02:00
Andrey Golovizin
0ea0000ad0 flake.lock: Update
Flake lock file updates:

• Updated input 'fenix':
    'github:nix-community/fenix/e172d625f705ca4013f93d3fe061d3ecf1fc3a34' (2022-07-01)
  → 'github:nix-community/fenix/3c8bbc1d99e241efa29df54658615d7f8344c01f' (2022-09-23)
• Updated input 'fenix/rust-analyzer-src':
    'github:rust-lang/rust-analyzer/ce36446943a33b01de50ca27d8d17e176af13cd5' (2022-06-30)
  → 'github:rust-lang/rust-analyzer/5b49745d009634170493a214364261e36228274b' (2022-09-20)
• Updated input 'flake-utils':
    'github:numtide/flake-utils/bee6a7250dd1b01844a2de7e02e4df7d8a0a206c' (2022-06-24)
  → 'github:numtide/flake-utils/c0e246b9b83f637f4681389ecabcb2681b4f3af0' (2022-08-07)
• Updated input 'naersk':
    'github:nmattia/naersk/cddffb5aa211f50c4b8750adbec0bbbdfb26bb9f' (2022-06-12)
  → 'github:nmattia/naersk/6944160c19cb591eb85bbf9b2f2768a935623ed3' (2022-09-03)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/cf3ab54b4afe2b7477faa1dd0b65bf74c055d70c' (2022-06-29)
  → 'github:NixOS/nixpkgs/ae1dc133ea5f1538d035af41e5ddbc2ebcb67b90' (2022-09-22)
2022-09-23 22:44:50 +02:00
Andrey Golovizin
66e2306421 flake.lock: Update
Flake lock file updates:

• Updated input 'fenix':
    'github:nix-community/fenix/9a49d754de250ad696e49c9ae4ce4561ffe3fc38' (2022-05-25)
  → 'github:nix-community/fenix/e172d625f705ca4013f93d3fe061d3ecf1fc3a34' (2022-07-01)
• Updated input 'fenix/rust-analyzer-src':
    'github:rust-lang/rust-analyzer/d7c147406eff20783abba6ff1fe250ecc44cf800' (2022-05-24)
  → 'github:rust-lang/rust-analyzer/ce36446943a33b01de50ca27d8d17e176af13cd5' (2022-06-30)
• Updated input 'flake-utils':
    'github:numtide/flake-utils/04c1b180862888302ddfb2e3ad9eaa63afc60cf8' (2022-05-17)
  → 'github:numtide/flake-utils/bee6a7250dd1b01844a2de7e02e4df7d8a0a206c' (2022-06-24)
• Updated input 'naersk':
    'github:nmattia/naersk/69daaceebe12c070cd5ae69ba38f277bbf033695' (2022-05-24)
  → 'github:nmattia/naersk/cddffb5aa211f50c4b8750adbec0bbbdfb26bb9f' (2022-06-12)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/83658b28fe638a170a19b8933aa008b30640fbd1' (2022-05-26)
  → 'github:NixOS/nixpkgs/cf3ab54b4afe2b7477faa1dd0b65bf74c055d70c' (2022-06-29)
2022-07-01 22:06:03 +02:00
Andrey Golovizin
5c6570b295 Update dependencies 2022-05-29 16:27:40 +02:00
Andrey Golovizin
a181ab5f02 flake.lock: Update
Flake lock file updates:

• Updated input 'fenix':
    'github:nix-community/fenix/762cc26ae995ee9c46e4aa36951dd29971cd9770' (2022-04-29)
  → 'github:nix-community/fenix/9a49d754de250ad696e49c9ae4ce4561ffe3fc38' (2022-05-25)
• Updated input 'fenix/rust-analyzer-src':
    'github:rust-analyzer/rust-analyzer/7abf8cc21cd23ec6f080958be57ede911df16ec9' (2022-04-28)
  → 'github:rust-lang/rust-analyzer/d7c147406eff20783abba6ff1fe250ecc44cf800' (2022-05-24)
• Updated input 'flake-utils':
    'github:numtide/flake-utils/a4b154ebbdc88c8498a5c7b01589addc9e9cb678' (2022-04-11)
  → 'github:numtide/flake-utils/04c1b180862888302ddfb2e3ad9eaa63afc60cf8' (2022-05-17)
• Updated input 'naersk':
    'github:nmattia/naersk/e8f9f8d037774becd82fce2781e1abdb7836d7df' (2022-04-18)
  → 'github:nmattia/naersk/69daaceebe12c070cd5ae69ba38f277bbf033695' (2022-05-24)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/e10da1c7f542515b609f8dfbcf788f3d85b14936' (2022-04-26)
  → 'github:NixOS/nixpkgs/83658b28fe638a170a19b8933aa008b30640fbd1' (2022-05-26)
2022-05-29 16:27:02 +02:00
Andrey Golovizin
598e3b5f09 Rename flake output attributes 2022-05-02 00:16:23 +02:00
Andrey Golovizin
8cb142e25c Update dependencies 2022-04-29 23:34:09 +02:00
Andrey Golovizin
5340b8471d flake.lock: Update
Flake lock file updates:

• Updated input 'fenix':
    'github:nix-community/fenix/6fbfc2821a058eb820bb3742a762bbba5a99f0df' (2022-02-11)
  → 'github:nix-community/fenix/762cc26ae995ee9c46e4aa36951dd29971cd9770' (2022-04-29)
• Updated input 'fenix/rust-analyzer-src':
    'github:rust-analyzer/rust-analyzer/08348d79fa3ccb2aeeea87e758dcd5f1614c7ad8' (2022-02-09)
  → 'github:rust-analyzer/rust-analyzer/7abf8cc21cd23ec6f080958be57ede911df16ec9' (2022-04-28)
• Updated input 'flake-utils':
    'github:numtide/flake-utils/3cecb5b042f7f209c56ffd8371b2711a290ec797' (2022-02-07)
  → 'github:numtide/flake-utils/a4b154ebbdc88c8498a5c7b01589addc9e9cb678' (2022-04-11)
• Updated input 'naersk':
    'github:nmattia/naersk/2fc8ce9d3c025d59fee349c1f80be9785049d653' (2021-12-19)
  → 'github:nmattia/naersk/e8f9f8d037774becd82fce2781e1abdb7836d7df' (2022-04-18)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/48d63e924a2666baf37f4f14a18f19347fbd54a2' (2022-02-10)
  → 'github:NixOS/nixpkgs/e10da1c7f542515b609f8dfbcf788f3d85b14936' (2022-04-26)
2022-04-29 23:33:03 +02:00
Andrey Golovizin
cf7c07dfa6 Fix clippy warnings 2022-02-16 22:47:21 +01:00
Andrey Golovizin
bebcb4318f Update dependencies 2022-02-16 22:45:56 +01:00
Andrey Golovizin
0a7293160a Update nixpkgs 2022-02-14 22:07:56 +01:00
Andrey Golovizin
eb6b52530c Update dependencies 2022-02-14 20:46:07 +01:00
Andrey Golovizin
d7b6ecbaf2 Migrate to 2021 2022-02-14 20:38:02 +01:00
Andrey Golovizin
54887e571b flake.lock: Update
Flake lock file changes:

• Updated input 'fenix':
    'github:nix-community/fenix/bac0e0578a1968fd7640c2f884e9c14c22856fd1' (2021-11-07)
  → 'github:nix-community/fenix/064c4e0940d11152a7247ebb0ccac98b243efa45' (2021-12-05)
• Updated input 'fenix/rust-analyzer-src':
    'github:rust-analyzer/rust-analyzer/2c29bd738be862efe9e6c07a0b6ef95cbe37de15' (2021-11-06)
  → 'github:rust-analyzer/rust-analyzer/6434ada19e7cf2e96015fb2668d64a0fdfc08b23' (2021-12-04)
• Updated input 'flake-utils':
    'github:numtide/flake-utils/c91f3de5adaf1de973b797ef7485e441a65b8935' (2021-10-21)
  → 'github:numtide/flake-utils/74f7e4319258e287b0f9cb95426c9853b282730b' (2021-11-28)
• Updated input 'naersk':
    'github:nmattia/naersk/074d81b1a45145f076b2adf93184073fc9615397' (2021-11-05)
  → 'github:nmattia/naersk/c3e56b8a4ffb6d906cdfcfee034581f9a8ece571' (2021-11-29)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/b67e752c29f18a0ca5534a07661366d6a2c2e649' (2021-11-02)
  → 'github:NixOS/nixpkgs/c71f061c68ba8ce53471b767d5049cbd0f3d8490' (2021-12-03)
2021-12-05 21:41:11 +01:00
Andrey Golovizin
068d9bdfeb Use fenix 2021-11-07 12:45:14 +01:00
Andrey Golovizin
12082258f5 flake.lock: Update
Flake lock file changes:

• Updated input 'naersk':
    'github:nmattia/naersk/5bed2dbf074d95627a9c35bf262eb577ade97bb9' (2021-11-01)
  → 'github:nmattia/naersk/074d81b1a45145f076b2adf93184073fc9615397' (2021-11-05)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/b165ce0c4efbb74246714b5c66b6bcdce8cde175' (2021-11-01)
  → 'github:NixOS/nixpkgs/b67e752c29f18a0ca5534a07661366d6a2c2e649' (2021-11-02)
2021-11-05 19:32:21 +01:00
Andrey Golovizin
54e01f6073 flake.lock: Update
Flake lock file changes:

• Updated input 'flake-utils':
    'github:numtide/flake-utils/f7e004a55b120c02ecb6219596820fcd32ca8772' (2021-06-16)
  → 'github:numtide/flake-utils/c91f3de5adaf1de973b797ef7485e441a65b8935' (2021-10-21)
• Updated input 'naersk':
    'github:nmattia/naersk/e09c320446c5c2516d430803f7b19f5833781337' (2021-06-17)
  → 'github:nmattia/naersk/5bed2dbf074d95627a9c35bf262eb577ade97bb9' (2021-11-01)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/c6c4a3d45ab200f17805d2d86a1ff1cc7ca2b186' (2021-07-16)
  → 'github:NixOS/nixpkgs/b165ce0c4efbb74246714b5c66b6bcdce8cde175' (2021-11-01)
2021-11-02 16:05:21 +01:00
Andrey Golovizin
75c6f8afe2 Make naersk's nixpkgs follows ours 2021-11-02 16:05:05 +01:00
Andrey Golovizin
80cfed1d68 flake.lock: Update
Flake input changes:

* Updated 'naersk/nixpkgs': 'path:/nix/store/hv23pdsi6n7z96pkljv25lfrfh1mnzz7-source?lastModified=1626046891&narHash=sha256-Zt8saH+hAehXskW0iFAzk+iMillYoFBxvLReYNqGT9E=&rev=d8f8f31af9d77a48220e4e8a301d1e79774cb7d2' -> 'path:/nix/store/v9hyb5cjk6y3w97rp320h3xp246p26nr-source?lastModified=1626464457&narHash=sha256-u2PCh%2f+8vQSLwf0mPpKHKQ8hAPB3l4uNZR3r0TdK2Lg=&rev=c6c4a3d45ab200f17805d2d86a1ff1cc7ca2b186'
* Updated 'nixpkgs': 'github:NixOS/nixpkgs/d8f8f31af9d77a48220e4e8a301d1e79774cb7d2' -> 'github:NixOS/nixpkgs/c6c4a3d45ab200f17805d2d86a1ff1cc7ca2b186'
2021-07-17 13:52:39 +02:00
Andrey Golovizin
63a5fa31e5 Fix IPv6 wildcard address in AllowedIPs 2021-07-14 18:46:25 +02:00
Andrey Golovizin
e00de8acce Fix IPv6 wildcard address in AllowedIPs 2021-07-14 17:44:22 +02:00
Andrey Golovizin
8d71621102 Fix --no-ipv6 for AllowedIPs 2021-07-14 17:36:43 +02:00
Andrey Golovizin
63a01e2a01 Fix formatting 2021-07-14 17:31:10 +02:00
Andrey Golovizin
440e6966fb flake.lock: Update
Flake input changes:

* Updated 'naersk/nixpkgs': 'path:/nix/store/1iblaav6dxrc5b39b3gbdnbl47sfjxrq-source?lastModified=1624447853&narHash=sha256-Zn+vTEa3NE9q6z6ytpcNXrr8jV7HvrKRxMYoD2E6DpE=&rev=1905f5f2e55e0db0bb6244cfe62cb6c0dbda391d' -> 'path:/nix/store/hv23pdsi6n7z96pkljv25lfrfh1mnzz7-source?lastModified=1626046891&narHash=sha256-Zt8saH+hAehXskW0iFAzk+iMillYoFBxvLReYNqGT9E=&rev=d8f8f31af9d77a48220e4e8a301d1e79774cb7d2'
* Updated 'nixpkgs': 'github:NixOS/nixpkgs/e1f8852faac7638e88d5e8a5b9ee2a7568685e3f' -> 'github:NixOS/nixpkgs/d8f8f31af9d77a48220e4e8a301d1e79774cb7d2'
2021-07-14 17:25:30 +02:00
Andrey Golovizin
57623876de Add support for multiple endpoint IPs 2021-07-14 17:25:04 +02:00
Andrey Golovizin
2b06fff6ea Fix AllowedIPs for IPv6 2021-07-14 17:18:55 +02:00
Andrey Golovizin
a9c27ce19c Update dependencies 2021-07-14 15:21:10 +02:00