mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-10 04:49:19 -08:00
hosts/samhain: Fixed glauca DNS updater
This commit is contained in:
parent
758ee6e38c
commit
82bcab08cd
2 changed files with 42 additions and 3 deletions
|
|
@ -15,6 +15,48 @@
|
||||||
|
|
||||||
deploy.target = "personal";
|
deploy.target = "personal";
|
||||||
|
|
||||||
|
deploy.tf.variables.dyn_username = {
|
||||||
|
type = "string";
|
||||||
|
value.shellCommand = "bitw get infra/hexdns-dynamic -f username";
|
||||||
|
};
|
||||||
|
|
||||||
|
deploy.tf.variables.dyn_password = {
|
||||||
|
type = "string";
|
||||||
|
value.shellCommand = "bitw get infra/hexdns-dynamic -f password";
|
||||||
|
};
|
||||||
|
|
||||||
|
deploy.tf.variables.dyn_hostname = {
|
||||||
|
type = "string";
|
||||||
|
value.shellCommand = "bitw get infra/hexdns-dynamic -f hostname";
|
||||||
|
};
|
||||||
|
|
||||||
|
secrets.files.kat-glauca-dns = {
|
||||||
|
text = ''
|
||||||
|
user="${tf.variables.dyn_username.ref}"
|
||||||
|
pass="${tf.variables.dyn_password.ref}"
|
||||||
|
hostname="${tf.variables.dyn_hostname.ref}"
|
||||||
|
'';
|
||||||
|
owner = "kat";
|
||||||
|
group = "users";
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.services.kat-glauca-dns = {
|
||||||
|
serviceConfig = {
|
||||||
|
ExecStart = "${pkgs.kat-glauca-dns}/bin/kat-glauca-dns";
|
||||||
|
};
|
||||||
|
environment = { passFile = config.secrets.files.kat-glauca-dns.path; };
|
||||||
|
wantedBy = [ "default.target" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.timers.kat-glauca-dns = {
|
||||||
|
timerConfig = {
|
||||||
|
Unit = "kat-glauca-dns.service";
|
||||||
|
OnBootSec = "5m";
|
||||||
|
OnUnitActiveSec = "30m";
|
||||||
|
};
|
||||||
|
wantedBy = [ "default.target" ];
|
||||||
|
};
|
||||||
|
|
||||||
# graphics tablet
|
# graphics tablet
|
||||||
services.xserver.wacom.enable = true;
|
services.xserver.wacom.enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,6 @@ let
|
||||||
|
|
||||||
discord = unstable.discord.override { nss = self.nss_latest; };
|
discord = unstable.discord.override { nss = self.nss_latest; };
|
||||||
|
|
||||||
lib = super.lib.extend
|
|
||||||
(self: super: { deployEmbedFuckery = txt: "__FUCKERY__" + txt; });
|
|
||||||
|
|
||||||
ncmpcpp = unstable.ncmpcpp.override {
|
ncmpcpp = unstable.ncmpcpp.override {
|
||||||
visualizerSupport = true;
|
visualizerSupport = true;
|
||||||
clockSupport = true;
|
clockSupport = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue