nixos-config/config/host-config/zbox.nix

52 lines
1.1 KiB
Nix

{ config, lib, pkgs, ... }:
with lib;
let state-dir = "/state";
in {
config = {
fudo = {
slynk.enable = true;
wallfly.location = "family_room";
};
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}/lib/flatpak 0755 root root - -"
"d ${state-dir}/etc 0755 root root - -"
"L /var/lib/flatpak - - - - ${state-dir}/lib/flatpak"
"L /etc/adjtime - - - - ${state-dir}/etc/adjtime"
];
fileSystems = {
"/var/lib/cups" = {
device = "${state-dir}/lib/cups";
options = [ "bind" ];
};
};
hardware = {
bluetooth = {
enable = true;
package = pkgs.bluezFull;
};
xpadneo.enable = true;
};
services.xserver = {
layout = "us";
xkbVariant = mkForce "";
xkbOptions = mkForce "";
};
};
}