Add database for darkkirb

This commit is contained in:
Charlotte 🦝 Delenk 2022-05-02 12:56:16 +01:00
parent 5f77e145ca
commit fc7dc68041
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
2 changed files with 6 additions and 0 deletions

View file

@ -11,6 +11,7 @@
nixos-hardware.nixosModules.common-cpu-amd nixos-hardware.nixosModules.common-cpu-amd
nixos-hardware.nixosModules.common-gpu-amd nixos-hardware.nixosModules.common-gpu-amd
nixos-hardware.nixosModules.common-pc-ssd nixos-hardware.nixosModules.common-pc-ssd
./services/postgres.nix
]; ];
hardware.cpu.amd.updateMicrocode = true; hardware.cpu.amd.updateMicrocode = true;
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sr_mod" "k10temp" ]; boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sr_mod" "k10temp" ];

View file

@ -20,4 +20,9 @@
sops.secrets."password/darkkirb" = { sops.secrets."password/darkkirb" = {
neededForUsers = true; neededForUsers = true;
}; };
services.postgresql.ensureDatabases = [ "darkkirb" ];
services.postgresql.ensureUsers = [{
name = "darkkirb";
ensurePermissions = { "DATABASE darkkirb" = "ALL PRIVILEGES"; };
}];
} }