1 files changed, 18 insertions(+), 2 deletions(-)
configuration.nix+18-2| ... | @@ -8,6 +8,24 @@ | ... | @@ -8,6 +8,24 @@ |
| 8 | }: { | 8 | }: { |
| 9 | nixpkgs.config.allowUnfree = true; | 9 | nixpkgs.config.allowUnfree = true; |
| 10 | 10 | ||
| 11 | systemd.timers.duckdns = { | ||
| 12 | wantedBy = ["timers.target"]; | ||
| 13 | timerConfig = { | ||
| 14 | OnBootSec = "5m"; | ||
| 15 | OnUnitActiveSec = "5m"; | ||
| 16 | Unit = "duckdns.service"; | ||
| 17 | }; | ||
| 18 | }; | ||
| 19 | |||
| 20 | systemd.services.duckdns = { | ||
| 21 | enable = true; | ||
| 22 | script = ''echo url="https://www.duckdns.org/update?domains=pathfinder2e&token=9c1ffa47-7496-4975-ba2b-a6928b28c500&ip=" | curl -k -o ~/duckdns/duck.log -K -''; | ||
| 23 | serviceConfig = { | ||
| 24 | Type = "oneshot"; | ||
| 25 | User = "root"; | ||
| 26 | }; | ||
| 27 | }; | ||
| 28 | |||
| 11 | services.flatpak.enable = true; | 29 | services.flatpak.enable = true; |
| 12 | 30 | ||
| 13 | nix.settings.experimental-features = ["nix-command" "flakes"]; | 31 | nix.settings.experimental-features = ["nix-command" "flakes"]; |
| ... | @@ -17,8 +35,6 @@ | ... | @@ -17,8 +35,6 @@ |
| 17 | 35 | ||
| 18 | services.tailscale.enable = true; | 36 | services.tailscale.enable = true; |
| 19 | 37 | ||
| 20 | discord.enable = true; | ||
| 21 | |||
| 22 | services.keyd = { | 38 | services.keyd = { |
| 23 | enable = true; | 39 | enable = true; |
| 24 | keyboards = { | 40 | keyboards = { |