-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(system/services): add atuin module (#147)
* refactor: demise docker-compose module * feat(home/pkgs): add atuin * feat(profile/felix): enable atuin service * chore(flake): update inputs.secrets * feat(system/services): add atuin module
- Loading branch information
Showing
7 changed files
with
55 additions
and
58 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule secrets
updated
from a09e84 to 56960d
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
version: '3.5' | ||
services: | ||
atuin: | ||
restart: always | ||
image: ghcr.io/atuinsh/atuin:latest | ||
command: server start | ||
volumes: | ||
- "./config:/config" | ||
links: | ||
- postgresql:db | ||
ports: | ||
- 8888:8888 | ||
environment: | ||
ATUIN_HOST: "0.0.0.0" | ||
ATUIN_OPEN_REGISTRATION: "true" | ||
ATUIN_DB_URI: postgres://$ATUIN_DB_USERNAME:$ATUIN_DB_PASSWORD@db/atuin | ||
RUST_LOG: info,atuin_server=debug | ||
postgresql: | ||
image: postgres:14 | ||
restart: unless-stopped | ||
volumes: # Don't remove permanent storage for index database files! | ||
- "./database:/var/lib/postgresql/data/" | ||
environment: | ||
POSTGRES_USER: ${ATUIN_DB_USERNAME} | ||
POSTGRES_PASSWORD: ${ATUIN_DB_PASSWORD} | ||
POSTGRES_DB: ${ATUIN_DB_NAME} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ pkgs, ... }: | ||
|
||
# References: | ||
# https://docs.atuin.sh/self-hosting/server-setup/ | ||
{ | ||
# install package | ||
environment.systemPackages = with pkgs; [ atuin ]; | ||
|
||
# persist configuration | ||
environment.etc = { | ||
"atuin/docker-compose.yml" = { | ||
mode = "0400"; | ||
source = ./conf/docker-compose.yml; | ||
}; | ||
}; | ||
|
||
# open ports in firewall | ||
networking.firewall = { | ||
enable = true; | ||
allowedTCPPorts = [ 8888 ]; | ||
}; | ||
} |