Replies: 3 comments
-
|
you setup postgres with home-manager why you create service a at |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
(if it's just for quick testing, you can look at https://eradman.com/ephemeralpg/ as well) |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
sorry is not just for testing, i use it as datastore for all the applications |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
hi,
I am trying to move all my dev tools in to home-manager .
Am using ubuntu
os -
Ubuntu 24.04.1 LTShome-manager -
home.stateVersion = "24.11"trying to install tools via packages (no flakes).
home.nix.txt
I have installed
pkgs.postgres_17and understand clearly it only installs package in nix store not start server.followed postgres docs and ran
initdb - D $HOME/pg_datawhich is successful.when trying to run
pg_ctl -D $HOME/pg_data -l logfile starti get errormissing lock file. To make postgres as system wide service usingsystemd i did create
/etc/systemd/system/postgres.servicebased on example from postgres docs.Updated the executable to point
/nix/store/hash_key-postgresand data dir to$HOME/pg_datanow ended with permission error for postgres executable in nix store.Is there any other easier way to start postgres after installation using home-manager?
similar to firefox
Beta Was this translation helpful? Give feedback.
All reactions