46 lines
883 B
Nix
46 lines
883 B
Nix
{ 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 - -"
|
|
"d ${state-dir}/services/yggdrasil 700 root root - -"
|
|
];
|
|
|
|
fileSystems = {
|
|
"/var/lib/cups" = {
|
|
device = "${state-dir}/lib/cups";
|
|
options = [ "bind" ];
|
|
};
|
|
|
|
# "/var/lib/private/yggdrasil" = {
|
|
# device = "${state-dir}/services/yggdrasil";
|
|
# options = [ "bind" ];
|
|
# };
|
|
};
|
|
|
|
services = {
|
|
yggdrasil = {
|
|
enable = true;
|
|
persistentKeys = true;
|
|
group = "wheel";
|
|
};
|
|
};
|
|
}
|