This commit is contained in:
parent
4c07dcacc1
commit
c520512399
1 changed files with 22 additions and 2 deletions
|
@ -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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue