{ users, ... }:
let
  sshConfig = {
    openssh.authorizedKeys.keys = users."joaquin".sshPublicKeys;
  };
in
{
  disabledModules = [ ../razer-blade-14/hardware-configuration.nix ];
  imports = [
    ../razer-blade-14
    ./hardware-configuration.nix
  ];

  profiles.sshServer.enable = true;
  networking.firewall.allowPing = true;

  # nix.gc.options = "-d";

  boot.tmp = {
    cleanOnBoot = true;
    useTmpfs = true;
  };

  # services.logind.lidSwitch = "ignore";

  # services.tailscale.extraUpFlags = lib.mkForce [
  #   "--ssh"
  #   "--advertise-tags=tag:server"
  # ];

  # systemd.sleep.extraConfig = ''
  #   AllowSuspend=no
  #   AllowHibernation=no
  #   AllowSuspendThenHibernate=no
  #   AllowHybridSleep=no
  # '';

  # services.nginx = {
  #   enable = true;
  #   recommendedProxySettings = true;
  #   recommendedTlsSettings = true;
  #   recommendedOptimisation = true;
  # };

  # services.deluge = {
  #   enable = true;
  #   # openFirewall = true;
  #   web = {
  #     enable = true;
  #     openFirewall = true;
  #     # port = 8112;
  #   };
  # };

  users.users."root" = sshConfig;
  users.users."media" = {
    isSystemUser = true;
    group = "media";
  };
  users.groups.media = { };
  users.users."joaquin" = sshConfig // {
    uid = 1000;
    isNormalUser = true;
    extraGroups = [ "wheel" ];
  };

  system.stateVersion = "24.11";
}
