{ config, lib, pkgs, ... }:

with lib;
let state-dir = "/state";
in {
  fudo = {
    slynk.enable = true;
    wallfly.location = "office";
  };

  networking = {
    interfaces = { intif0.useDHCP = true; };
    firewall.enable = false;
  };

  i18n.inputMethod = {
    enabled = "fcitx5";
    fcitx5.addons = with pkgs; [ fcitx5-chinese-addons fcitx5-rime ];
  };

  systemd.tmpfiles.rules = [ "d ${state-dir}/lib/cups  755 root root - -" ];

  fileSystems = {
    "/var/lib/cups" = {
      device = "${state-dir}/lib/cups";
      options = [ "bind" ];
    };
  };

  # fudo.adguard-dns-proxy = {
  #   enable = true;
  #   http.listen-ip = "10.0.0.108";
  #   dns.listen-port = 1053;
  #   local-domain-name = "sea.fudo.org";
  #   verbose = true;
  # };
}