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

52 lines
1.1 KiB
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
2023-05-16 22:40:08 -07:00
with lib;
2022-07-10 20:46:03 -07:00
let state-dir = "/state";
in {
config = {
2022-07-10 20:46:03 -07:00
fudo = {
slynk.enable = true;
wallfly.location = "family_room";
};
2021-08-04 12:37:55 -07:00
networking = {
interfaces.intif0.useDHCP = true;
2022-07-10 20:46:03 -07:00
firewall.enable = false;
};
2022-07-10 20:46:03 -07:00
i18n.inputMethod = {
enabled = "fcitx5";
2022-07-10 20:46:03 -07:00
fcitx5.addons = with pkgs; [ fcitx5-chinese-addons fcitx5-rime ];
};
2022-07-10 20:46:03 -07:00
systemd.tmpfiles.rules = [
2023-05-16 22:40:08 -07:00
"d ${state-dir}/lib/cups 755 root root - -"
2022-07-10 20:46:03 -07:00
"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"
];
2023-05-16 22:40:08 -07:00
fileSystems = {
"/var/lib/cups" = {
device = "${state-dir}/lib/cups";
options = [ "bind" ];
};
};
2022-07-10 20:46:03 -07:00
hardware = {
bluetooth = {
enable = true;
package = pkgs.bluezFull;
};
xpadneo.enable = true;
};
2023-05-16 22:40:08 -07:00
services.xserver = {
layout = "us";
xkbVariant = mkForce "";
xkbOptions = mkForce "";
};
};
}