Add database for darkkirb
This commit is contained in:
parent
5f77e145ca
commit
fc7dc68041
2 changed files with 6 additions and 0 deletions
|
@ -11,6 +11,7 @@
|
|||
nixos-hardware.nixosModules.common-cpu-amd
|
||||
nixos-hardware.nixosModules.common-gpu-amd
|
||||
nixos-hardware.nixosModules.common-pc-ssd
|
||||
./services/postgres.nix
|
||||
];
|
||||
hardware.cpu.amd.updateMicrocode = true;
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sr_mod" "k10temp" ];
|
||||
|
|
|
@ -20,4 +20,9 @@
|
|||
sops.secrets."password/darkkirb" = {
|
||||
neededForUsers = true;
|
||||
};
|
||||
services.postgresql.ensureDatabases = [ "darkkirb" ];
|
||||
services.postgresql.ensureUsers = [{
|
||||
name = "darkkirb";
|
||||
ensurePermissions = { "DATABASE darkkirb" = "ALL PRIVILEGES"; };
|
||||
}];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue