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,
|
|
|
|
...
|
2022-06-22 22:50:22 +00:00
|
|
|
}: let
|
|
|
|
sources = import ../nix/sources.nix;
|
|
|
|
nixpkgs2111 = (import sources.nixos2111 {}).pkgs;
|
|
|
|
in {
|
2021-11-16 04:57:23 +00:00
|
|
|
imports = [
|
|
|
|
../profiles/openssh.nix
|
|
|
|
../secrets/user-craige.nix
|
|
|
|
../secrets/user-root.nix
|
|
|
|
];
|
2019-12-10 14:42:06 +00:00
|
|
|
|
|
|
|
programs.mosh = {
|
|
|
|
enable = true;
|
|
|
|
withUtempter = true;
|
|
|
|
};
|
|
|
|
|
2022-06-22 22:50:22 +00:00
|
|
|
services.postgresql = {
|
2022-06-23 06:02:15 +00:00
|
|
|
package = pkgs.postgresql_11;
|
2022-06-22 22:50:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
services.postgresqlBackup = {
|
|
|
|
enable = true;
|
|
|
|
compression = "zstd";
|
|
|
|
};
|
|
|
|
|
2022-05-31 03:19:49 +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
|
|
|
}
|