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

46 lines
883 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 = {
2023-10-14 16:15:26 -07:00
#enabled = "fcitx5";
#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-10-14 16:15:26 -07:00
systemd.tmpfiles.rules = [
"d ${state-dir}/lib/cups 755 root root - -"
"d ${state-dir}/services/yggdrasil 700 root root - -"
];
2023-05-16 22:40:08 -07:00
fileSystems = {
"/var/lib/cups" = {
device = "${state-dir}/lib/cups";
options = [ "bind" ];
};
2023-10-14 16:15:26 -07:00
# "/var/lib/private/yggdrasil" = {
# device = "${state-dir}/services/yggdrasil";
# options = [ "bind" ];
# };
2023-05-16 22:40:08 -07:00
};
2023-10-14 16:15:26 -07:00
services = {
yggdrasil = {
enable = true;
persistentKeys = true;
group = "wheel";
};
};
}