diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-24 16:09:20 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-24 16:09:20 +0100 |
commit | b5fc07416652a445f15946ce7e5fc48766cf6722 (patch) | |
tree | de37587f0673e4aea12bc0532ee1b3879ab1e31c /modules/by-name/po/postgresql/module.nix | |
parent | fix(modules/back): Set now needed source code URL environment variable (diff) | |
download | nixos-server-b5fc07416652a445f15946ce7e5fc48766cf6722.tar.gz nixos-server-b5fc07416652a445f15946ce7e5fc48766cf6722.zip |
refactor(modules/impermanence): Migrate to by-name while distributing mods
Diffstat (limited to 'modules/by-name/po/postgresql/module.nix')
-rw-r--r-- | modules/by-name/po/postgresql/module.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/by-name/po/postgresql/module.nix b/modules/by-name/po/postgresql/module.nix new file mode 100644 index 0000000..319c3ac --- /dev/null +++ b/modules/by-name/po/postgresql/module.nix @@ -0,0 +1,19 @@ +{ + config, + lib, + ... +}: let + cfg = config.vhack.postgresql; +in { + options.vhack.postgresql = { + enable = lib.mkEnableOption "postgresql"; + }; + + config = lib.mkIf cfg.enable { + vhack.persist.directories = [ + "/var/lib/postgresql" + ]; + + services.postgresql.enable = true; + }; +} |