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 = [ imports = [
./git ./git
./atuin.nix
./bat.nix ./bat.nix
./btop.nix ./btop.nix
./starship.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.defaults.email = "landervandenbulcke@gmail.com";
security.acme.acceptTerms = true; security.acme.acceptTerms = true;

View file

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