dotfiles/nixos/boxes/bolty/default.nix
Cyryl Płotnicki 3d6dd759c4 nixfmt
2022-03-10 12:25:23 +00:00

33 lines
790 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";
}