mio-ops/profiles/server_common.nix

25 lines
435 B
Nix
Raw Normal View History

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