mio-ops/profiles/server_common.nix

29 lines
562 B
Nix
Raw 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,
...
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
};
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
}