Atuin up and running?
All checks were successful
/ check (push) Successful in 3m39s

This commit is contained in:
Daniel Flanagan 2024-09-11 16:04:32 -05:00
parent 4c07dcacc1
commit c520512399

View file

@ -906,6 +906,14 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00
}; };
} }
{ {
users.users.atuin = {
isSystemUser = true;
createHome = false;
group = "atuin";
};
users.extraGroups = {
"atuin" = {};
};
services.postgresql = { services.postgresql = {
ensureDatabases = ["atuin"]; ensureDatabases = ["atuin"];
ensureUsers = [ ensureUsers = [
@ -923,6 +931,11 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00
# uri = "postgresql://atuin@localhost:5432/atuin"; # uri = "postgresql://atuin@localhost:5432/atuin";
}; };
openRegistration = false; openRegistration = false;
# TODO: would be neat to have a way to "force" a registration on the server
};
systemd.services.atuin.serviceConfig = {
Group = "atuin";
User = "atuin";
}; };
services.caddy.virtualHosts."atuin.h.lyte.dev" = { services.caddy.virtualHosts."atuin.h.lyte.dev" = {
extraConfig = ''reverse_proxy :${toString config.services.atuin.port}''; extraConfig = ''reverse_proxy :${toString config.services.atuin.port}'';
@ -1462,24 +1475,31 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00
{ {
targets = let inherit (config.services.prometheus.exporters.node) port listenAddress; in ["${listenAddress}:${toString port}"]; targets = let inherit (config.services.prometheus.exporters.node) port listenAddress; in ["${listenAddress}:${toString port}"];
} }
{
targets = let inherit (config.services.prometheus.exporters.zfs) port listenAddress; in ["${listenAddress}:${toString port}"];
}
{
targets = let inherit (config.services.prometheus.exporters.postgres) port listenAddress; in ["${listenAddress}:${toString port}"];
}
]; ];
} }
]; ];
exporters = { exporters = {
postgres = { postgres = {
enable = true; enable = true;
# runAsLocalSuperUser = true; listenAddress = "127.0.0.1";
runAsLocalSuperUser = true;
}; };
node = { node = {
enable = true; enable = true;
listenAddress = "127.0.0.1"; listenAddress = "127.0.0.1";
port = 9100;
enabledCollectors = [ enabledCollectors = [
"systemd" "systemd"
]; ];
}; };
zfs = { zfs = {
enable = true; enable = true;
listenAddress = "127.0.0.1";
}; };
}; };
}; };