applied nixfmt (new version)
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
{ config, pkgs, lib, ... }: {
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [ ./base.nix ];
|
||||
config = {
|
||||
sops.secrets = {
|
||||
@@ -25,17 +31,18 @@
|
||||
name = "update-dns";
|
||||
timer = "*:0/30";
|
||||
description = "Updates the IP of all my domains";
|
||||
package = let
|
||||
update-dns = pkgs.writeScriptBin "update-dns"
|
||||
(builtins.readFile ../../scripts/update-dns.sh);
|
||||
in pkgs.writeScriptBin "update-dns" ''
|
||||
#!/usr/bin/env nix-shell
|
||||
#! nix-shell -i bash -p bash curl
|
||||
set -a
|
||||
source ${config.sops.secrets.dns.path}
|
||||
set -a
|
||||
${update-dns}/bin/update-dns
|
||||
'';
|
||||
package =
|
||||
let
|
||||
update-dns = pkgs.writeScriptBin "update-dns" (builtins.readFile ../../scripts/update-dns.sh);
|
||||
in
|
||||
pkgs.writeScriptBin "update-dns" ''
|
||||
#!/usr/bin/env nix-shell
|
||||
#! nix-shell -i bash -p bash curl
|
||||
set -a
|
||||
source ${config.sops.secrets.dns.path}
|
||||
set -a
|
||||
${update-dns}/bin/update-dns
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user