Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{nixos/modules,pkgs}/ddns: remove ddns #93

Merged
merged 1 commit into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .github/workflows/cachix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,6 @@ jobs:
- name: Build NixOS configuration
run: nix build .#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel

build-packages:
strategy:
matrix:
package: [ ddns ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v12
with:
name: inclyc
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
# Cherry-picked from https://github.com/TGuimbert/dotfiles/blob/3b9d27ec6e22ab7c70819799876e4eb089678424/.github/workflows/cachix.yaml#L8
- name: Build Packages
run: nix build .#${{ matrix.package }}

build-home-configurations:
strategy:
matrix:
Expand Down
20 changes: 0 additions & 20 deletions nixos/configurations/adrastea/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -184,26 +184,6 @@
};
};

sops.secrets."ddns/cloudflare" = { };
services.ddns."cloudflare" = {
ipv4 = "adrastea.lyc.dev";
index4 = "shell:curl -4L lug.hit.edu.cn/myip";
dns = "cloudflare";
extraPath = [ pkgs.curl ];
environmentFile = [ config.sops.secrets."ddns/cloudflare".path ];
onCalendar = "minutely";
};

sops.secrets."ddns/dnspod" = { };
services.ddns."inclyc-cn" = {
ipv4 = "ppp.ws.inclyc.cn";
index4 = "shell:curl -4L lug.hit.edu.cn/myip";
dns = "dnspod";
extraPath = [ pkgs.curl ];
environmentFile = [ config.sops.secrets."ddns/dnspod".path ];
onCalendar = "minutely";
};

systemd.extraConfig = ''
DefaultTimeoutStopSec=10s
'';
Expand Down
91 changes: 0 additions & 91 deletions nixos/modules/ddns.nix

This file was deleted.

1 change: 0 additions & 1 deletion nixos/modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
inputs.home-manager.nixosModules.home-manager
./clash
./nix.nix
./ddns.nix
./nix-ld.nix
./gui.nix
./user.nix
Expand Down
17 changes: 0 additions & 17 deletions pkgs/ddns/default.nix

This file was deleted.

4 changes: 1 addition & 3 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
{ pkgs ? (import ../nixpkgs.nix) { } }: {
ddns = pkgs.python3.pkgs.callPackage ./ddns { };
}
{ pkgs ? (import ../nixpkgs.nix) { } }: { }
7 changes: 2 additions & 5 deletions secrets/general.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ email:
zoho:
password: ENC[AES256_GCM,data:AXI9RkSetE7EwoKBSsYyZg==,iv:bUxhvsGkztiNJmDA9XUgklFt4NUDbWjJwqIyJgJxgWU=,tag:DWmoR8UbqGscKpRCyIBmhA==,type:str]
swyjs-credential: ENC[AES256_GCM,data:QPCz7LrmLasix3uHuftClwVow1aCvg0cHCllnzlVjOmb6PWOgX/+azNaWOos6/P4R9yA62T7T6o4bLF7QHqE1xvPqc7omF63sA0hk7plFfb9rPYmTUWe,iv:MzYgRxfgcr8zKJ9v6myQhUsyI/ZpA7/qbFhqwZabGn8=,tag:+69k5Y4gISPgUY5Byfr0vQ==,type:str]
ddns:
cloudflare: ENC[AES256_GCM,data:l+3DZCGnUVnV0cfCBCHKYM300kGhY0UzOYVOyx1+R9Vo5Rv8kXEqMVVB3F3xvdpBU6x1pw==,iv:Vy9rVyuRSrKtAWva3Nqa/giflgx92BvmGX9omsbPpmk=,tag:kbb9ciKzM5Q1V/bDaxW1DA==,type:str]
dnspod: ENC[AES256_GCM,data:NY7CKa/CnYWGGrzQ1rNdFMAo12RBV/QeuqLdsLCS24NHqQUG/3Q11RPoVFXB/xaYCxvkTvFXN4OgBl0=,iv:pb2jT86D6Bm3OT3gC9C0qLh36osQf7hhtBq8UPbxb8Q=,tag:qv5e1t/DL+LbmUE89cAbkg==,type:str]
clash-provider:
dler: ENC[AES256_GCM,data:5WapDgbdTNoqpcBS3uH0K/NBx+ZT0nffz8/1/7BypPCFL6da18BY9z2EFMvMukm+e4OjjnBFU0nmNwuOLbwE9kjapDPjqaKEyLtY4DjhUAk=,iv:VuGCzTFGbim9iZmgx4KCGO41T536SABdMrRDtkXYNOs=,tag:y+Wc7tSC39GkzqOa7LcGyg==,type:str]
mielink: ENC[AES256_GCM,data:H/Ov6NzbWAGH1tRWLzbuvhf4/JNKvCw2Vvm0kblOim5CzeXHyOohHShtTsx7XDbwwz3W4wp7EBv3nnRbV0xeHq8=,iv:t8QzBVDxjy1GEAgiCkGMD2dcEI3RC0hI53yJ1gp2ew4=,tag:rksQaZOp7XhOWNnKhqzmeA==,type:str]
Expand Down Expand Up @@ -56,8 +53,8 @@ sops:
TkVrd2RsNys4SGFZRVozYzdrT2VXVWMK7Ctrg2D1BAMVQqTaxOIw3ylgbI6lYswL
MD2TkOYFNTRNOyoz4fmoidjDry/yqwdJ03FPPK4z98uVVvVITey83Q==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2023-12-25T09:35:27Z"
mac: ENC[AES256_GCM,data:TZgQ3aUS8OmQ5s5YJFgJHAToDq+2a23s/XNcnMYNAWoXudIEGRUuT09pgcC88QtLG5jxpZ5PdplSHgXM8+/yEzHSfLx2JpFoDKg4mYe2niihiqJ3ro7QKTGpdLUor3CjVciBeCCcONI7WkHPOW+EipBpHEWzldo8Uo1hiGmxpTM=,iv:XMW3sRxmDf5aSc4cslWqpTM5ePgaXTfocHLw65q3Bxs=,tag:4cV4+DQnlbBPHduW1H+0qA==,type:str]
lastmodified: "2023-12-27T12:49:20Z"
mac: ENC[AES256_GCM,data:rU8CKwh9Vg1XsVawa8ZBO0Xuymryk8q7D5Lqp9BWmK7+qJBP8a6W2tUbbOvsc3/pgw5ExWPhfDBQ5j5O5vtwNVzYK4qhF2Jd7IU39aSQL6N4J2dMGiruA+FoHEXl8EKWRevYlkXFMeonDMy23TiBq63KgdKhl1k+NOn9ttf0bOE=,iv:uNnptOSNlgCeR540pqu9M/YtI/h7Intp6CEeORzGnBI=,tag:duOiXWFx0zyCZ/pHyyGcpA==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.8.1