nixos-config/config/host-config/spark.nix

38 lines
758 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
2023-05-16 22:40:08 -07:00
with lib;
let state-dir = "/state";
in {
2022-07-10 20:46:03 -07:00
fudo = {
slynk.enable = true;
wallfly.location = "office";
};
2021-11-19 10:26:10 -08:00
networking = {
2022-07-10 20:46:03 -07:00
interfaces = { intif0.useDHCP = true; };
2022-03-16 09:49:35 -07:00
firewall.enable = false;
2021-09-18 22:56:56 -07:00
};
2021-11-19 10:26:10 -08:00
i18n.inputMethod = {
enabled = "fcitx5";
2022-07-10 20:46:03 -07:00
fcitx5.addons = with pkgs; [ fcitx5-chinese-addons fcitx5-rime ];
2021-11-19 10:26:10 -08:00
};
2022-03-16 09:49:35 -07:00
2023-05-16 22:40:08 -07:00
systemd.tmpfiles.rules = [ "d ${state-dir}/lib/cups 755 root root - -" ];
fileSystems = {
"/var/lib/cups" = {
device = "${state-dir}/lib/cups";
options = [ "bind" ];
};
};
2022-03-16 09:49:35 -07:00
# 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;
# };
}