dotfiles/nixos/boxes/bolty/default.nix
2022-03-02 11:59:09 +00:00

33 lines
784 B
Nix

{ config, pkgs, inputs, lib, ... }:
{
imports = [
./bolty-boot.nix
./real-hardware.nix
./tailscale-bolty.nix
../../server-security.nix
../../tailscale.nix
../cli.nix
./print-server.nix
./restic-server.nix
./matrix-server.nix
./nextcloud.nix
];
services.syncthing = {
enable = true;
dataDir = "/data/syncthing";
openDefaultPorts = true;
package = inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".syncthing;
};
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
networking = {
hostName = "bolty";
useDHCP = false;
interfaces.enp4s0.useDHCP = true;
};
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
security.allowUserNamespaces = true;
time.timeZone = "Europe/London";
}