diff --git a/nix/configuration/configuration.nix b/nix/configuration/configuration.nix index 58154291..2bfd356e 100644 --- a/nix/configuration/configuration.nix +++ b/nix/configuration/configuration.nix @@ -60,6 +60,7 @@ ./roles/optimized_build ./roles/pcsx2 ./roles/podman + ./roles/postgresql_client ./roles/python ./roles/qemu ./roles/recovery diff --git a/nix/configuration/hosts/odo/default.nix b/nix/configuration/hosts/odo/default.nix index 8d9e8119..130425f1 100644 --- a/nix/configuration/hosts/odo/default.nix +++ b/nix/configuration/hosts/odo/default.nix @@ -118,6 +118,7 @@ me.openpgp_card_tools.enable = true; me.pcsx2.enable = true; me.podman.enable = true; + me.postgresql_client.enable = true; me.python.enable = true; me.qemu.enable = true; me.recovery.enable = true; diff --git a/nix/configuration/hosts/odowork/default.nix b/nix/configuration/hosts/odowork/default.nix index 70fc3b79..4e004686 100644 --- a/nix/configuration/hosts/odowork/default.nix +++ b/nix/configuration/hosts/odowork/default.nix @@ -118,6 +118,7 @@ me.nvme.enable = true; me.openpgp_card_tools.enable = true; me.podman.enable = true; + me.postgresql_client.enable = true; me.python.enable = true; me.rust.enable = true; me.sequoia.enable = true; diff --git a/nix/configuration/hosts/quark/default.nix b/nix/configuration/hosts/quark/default.nix index f327cc0c..c77ad723 100644 --- a/nix/configuration/hosts/quark/default.nix +++ b/nix/configuration/hosts/quark/default.nix @@ -113,6 +113,7 @@ me.openpgp_card_tools.enable = true; me.pcsx2.enable = true; me.podman.enable = true; + me.postgresql_client.enable = true; me.python.enable = true; me.qemu.enable = true; me.recovery.enable = true; diff --git a/nix/configuration/roles/postgresql_client/default.nix b/nix/configuration/roles/postgresql_client/default.nix new file mode 100644 index 00000000..de05c0e0 --- /dev/null +++ b/nix/configuration/roles/postgresql_client/default.nix @@ -0,0 +1,25 @@ +{ + config, + lib, + pkgs, + ... +}: + +{ + imports = [ ]; + + options.me = { + postgresql_client.enable = lib.mkOption { + type = lib.types.bool; + default = false; + example = true; + description = "Whether we want to install postgresql_client."; + }; + }; + + config = lib.mkIf config.me.postgresql_client.enable { + environment.systemPackages = with pkgs; [ + pgformatter + ]; + }; +}