Conversation
1ce0d88 to
1516870
Compare
gador
left a comment
There was a problem hiding this comment.
Thanks for the writeup of the module!
I added some comments and would suggest you add options for the state dir and log dir. Possibly you should consider adding an option to use Desktop Mode (which would enable the user to use initial passwords and emails), although I'd personally prefer to only support Server Edition.
|
@gador Desktop mode sounds like something that should go under Edit: or maybe should even go into home-manager, as it would likely be something specific to each user. |
d343355 to
b7cb0a6
Compare
35a2604 to
4c25b44
Compare
|
Does it make sense to split out the python config generator into it's own type in pkgs/build-support/formats.nix? |
4c25b44 to
b16e8b5
Compare
Do you mean pkgs/pkgs-lib/formats.nix? I think it makes sense to let pgadmin create its own config database. Can we make sure the user runs it (interactively) the first time? |
|
@gador Running interactivly imo is not an option. Similar to archisteamfarm, they also don't allow interactive stuff afaik. As for concerns with putting stuff into the store: Instead a password file could be specified which would get read by the service on first startup, similar to e.g. discourse services.discourse.admin.passwordFile Also the config that I'm talking about is /etc/pgadmin/config_system.py, which contains stuff like the port and oauth2 config, among others, not the config database, which is something different. |
|
bikeshed: pgadmin4 or pgadmin as module name? |
|
I like the idea about the passwordFile. Its a way better option.
Ok, that makes more sense. I don't mind the conversion logic within the module. Putting it in It still does not solve the problem about the initial password, which gets asked on first run interactively. |
I'd suggest pgadmin3 doesn't need a module, and we already aliased pgadmin --> pgadmin4 EDIT: |
|
@gador The interactive part is already solved by the preStart script |
|
Ok. Then we just have to add the logic of a passwordFile to it? I just noticed the use of pgadmin4-setup..Where does that binary come from? When I build pgadmin4, I just have |
|
@gador I made a patch This exposes setup.py as proper binary |
5ce52cb to
ec802fe
Compare
27aa7b0 to
e343b98
Compare
f1602a5 to
1b71a40
Compare
1b71a40 to
03fbc3e
Compare
Motivation for this change
This adds a module for pgadmin4
NOTE: depends on #154764
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes