Compare commits

..

5 commits

Author SHA1 Message Date
7b9fcfdb1b
chore: don't leave atuin registration open
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
2025-10-04 09:19:50 +02:00
422dec98c7
feat: configure atuin sync server
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
2025-10-04 09:16:12 +02:00
cca554ebfb
feat: enable atuin sync server
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
2025-10-04 09:08:22 +02:00
119663c180
feat: add atuin db
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
2025-10-04 08:59:33 +02:00
85f673d099
feat: enable atuin
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
2025-10-04 08:56:31 +02:00
4 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,14 @@
{ ... }:
{
programs.atuin = {
enable = true;
enableZshIntegration = true;
settings = {
auto_sync = true;
sync_address = "http://atuin.escapeangle.com";
sync_frequency = "30m";
update_check = false;
};
};
}

View file

@ -4,6 +4,7 @@
imports = [
./git
./atuin.nix
./bat.nix
./btop.nix
./starship.nix

View file

@ -139,6 +139,23 @@ in
};
};
services.atuin = {
enable = true;
openRegistration = false;
database = {
uri = "postgresql://atuin@db-01.tailnet.escapeangle.com:5432/atuin";
createLocally = false;
};
};
services.nginx.virtualHosts."atuin.escapeangle.com" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:${toString config.services.atuin.port}";
};
};
security.acme.defaults.email = "landervandenbulcke@gmail.com";
security.acme.acceptTerms = true;

View file

@ -9,12 +9,17 @@
host all all 100.64.0.0/24 trust # trust tailnet
'';
ensureDatabases = [
"atuin"
"authelia"
"forgejo"
"lldap"
"mealie"
];
ensureUsers = [
{
name = "atuin";
ensureDBOwnership = true;
}
{
name = "authelia";
ensureDBOwnership = true;
@ -38,6 +43,7 @@
enable = true;
startAt = "*-*-* 02:00:00";
databases = [
"atuin"
"authelia"
"forgejo"
"lldap"