Postgres, service init
This commit is contained in:
parent
b5eea3d798
commit
8cd1945b3b
2 changed files with 20 additions and 0 deletions
|
|
@ -56,6 +56,8 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
postgres.enable = true;
|
||||
|
||||
shell.enabledShells = [ "fish" ];
|
||||
shell.defaultShell = "fish";
|
||||
|
||||
|
|
|
|||
18
nixosModules/services/postgresql/service.nix
Normal file
18
nixosModules/services/postgresql/service.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
options.postgres = {
|
||||
enable = lib.mkEnableOption "";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.postgres.enable {
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
package = pkgs.postgresql_17;
|
||||
authentication = ''
|
||||
#type database DBuser auth-method
|
||||
local all all trust
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue