dotfiles/nixos/boxes/brix/default.nix

32 lines
698 B
Nix
Raw Normal View History

2021-05-31 09:15:44 +01:00
{ config, pkgs, inputs, lib, ... }:
{
imports = [
./brix-boot.nix
./real-hardware.nix
2021-06-12 14:19:19 +01:00
../../server-security.nix
2021-06-12 15:07:38 +01:00
../../tailscale.nix
./tailscale-brix.nix
2021-07-23 09:00:54 +01:00
../cli.nix
2021-05-31 09:15:44 +01:00
./restic-server.nix
./i2p.nix
./print-server.nix
];
networking = {
hostName = "brix";
useDHCP = false;
interfaces.enp3s0.useDHCP = true;
};
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
security.allowUserNamespaces = true;
2021-07-23 09:00:54 +01:00
services.syncthing = {
enable = true;
dataDir = "/data/syncthing";
openDefaultPorts = true;
package = inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".syncthing;
};
2021-05-31 09:15:44 +01:00
time.timeZone = "Europe/London";
}