nix-conf/system/modules/services.nix
danny 6a71b601f5 update: system update & refactor
# Breaking Changes
- sops location movod to "system/dev/<dev-name>/sops/sops-conf.nix"
- flake devices declaration changes
- whole flake update
2025-10-14 16:49:03 +08:00

44 lines
689 B
Nix

{
lib,
pkgs,
config,
...
}:
let
inherit (config.systemConf) username;
in
{
networking = {
firewall = {
allowedTCPPorts = [
22 # SSH
];
};
};
services = {
dbus = {
enable = true;
packages = [ pkgs.gcr ];
};
openssh = {
enable = true;
ports = [ 22 ];
settings = {
PasswordAuthentication = lib.mkDefault false;
AllowUsers = lib.mkDefault [ username ];
UseDns = lib.mkDefault false;
PermitRootLogin = lib.mkDefault "no";
};
};
xserver = {
enable = false;
xkb = {
layout = "us";
options = "caps:swapescape";
};
};
};
}