mio-ops/profiles/server_common.nix

25 lines
435 B
Nix
Raw Permalink Normal View History

2019-12-10 14:42:06 +00:00
# Configuration common to all my servers
{
2022-03-07 14:26:15 +00:00
config,
pkgs,
lib,
...
2023-08-03 11:32:15 +00:00
}: {
2021-11-16 04:57:23 +00:00
imports = [
../profiles/openssh.nix
2024-08-23 13:48:24 +00:00
../profiles/users-core.nix
2021-11-16 04:57:23 +00:00
];
2019-12-10 14:42:06 +00:00
programs.mosh = {
enable = true;
withUtempter = true;
};
2022-06-22 22:50:22 +00:00
services.postgresql = {
2024-02-06 15:15:14 +00:00
package = pkgs.postgresql_16;
2022-06-22 22:50:22 +00:00
};
security.polkit.enable = false; # avoid CVE-2021-4034 (PwnKit)
services.udisks2.enable = false; # disable udisks2 which enables polkit
2019-12-10 14:42:06 +00:00
}