nixfiles/hosts/tablet/tablet.nix

105 lines
2.7 KiB
Nix
Raw Normal View History

2023-01-18 10:55:08 +00:00
{tree, pkgs, ...}: {
2022-11-10 11:25:33 +00:00
imports = with tree; [
users.root
users.chaos
profiles.sshd
profiles.kernels.latest
presets.nixos.desktop
presets.nixos.laptop
presets.nixos.encrypted-usb
2022-11-10 11:25:33 +00:00
hosts.tablet.profiles.wireguard
hosts.tablet.profiles.harry-vpn
hosts.tablet.profiles.misskey-dev
2022-11-11 20:53:17 +00:00
./secrets.nix
./profiles/wireguard.nix
./profiles/harry-vpn.nix
./profiles/misskey-dev.nix
2022-11-10 11:25:33 +00:00
];
2023-01-18 10:55:08 +00:00
services.teamviewer.enable = true;
environment.systemPackages = with pkgs; [ teamviewer ];
2022-11-10 11:25:33 +00:00
home-manager.users.root = {
imports = with tree; [home.base];
2022-11-10 11:25:33 +00:00
home.stateVersion = "22.05";
};
home-manager.users.chaos = {
imports = with tree; [
home.base
home.dev.all
home.home-folders
home.backup-apps
2022-11-10 11:25:33 +00:00
home.programming.editors.vscode
2022-11-11 16:32:26 +00:00
home.programming.languages.rust
2022-11-10 11:25:33 +00:00
home.programming.languages.nix
];
home.stateVersion = "22.05";
};
networking.firewall.enable = true;
networking.firewall.allowPing = true;
nix.buildMachines = [
{
hostName = "buildbox.servers.genderfucked.monster";
system = "x86_64-linux";
# if the builder supports building for multiple architectures,
# replace the previous line by, e.g.,
# systems = ["x86_64-linux" "aarch64-linux"];
sshUser = "root";
sshKey = "/usb/ssh-keys/chaos.priv";
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUpXZGI5SVl3dFBSRm9rK2JTWUpmSnlRTlJSSithVEtIT3VOTkNLY2FMUHggcm9vdEBuaXhvcwo=";
maxJobs = 16;
speedFactor = 4;
supportedFeatures = ["nixos-test" "benchmark" "big-parallel" "kvm"];
mandatoryFeatures = [];
}
];
nix.distributedBuilds = true; # true;
nix.extraOptions = "builders-use-substitutes = true";
2022-11-10 11:25:33 +00:00
#services.telegraf = {
# enable = true;
# extraConfig = {
# inputs.mem = { };
# inputs.systemd_units = { pattern = ""; };
# outputs.websocket = {
# url = "ws://127.0.0.1:9002/test";
# use_text_frames = true;
# data_format = "json";
# };
# outputs.file = {
# files = [ "/tmp/telegraf-output" ];
# data_format = "json";
# flush_interval = "1s";
# flush_jitter = "1s";
# metric_batch_size = 10;
# };
# };
#};
#services.datadog-agent = {
# enable = true;
# apiKeyFile = "/tmp/key";
# site = "datadoghq.eu";
# checks = {
# systemd = {
# init_config = null;
# instances = [{ unit_names = [ "postgresql.service" "none.service" ]; }];
# };
# };
#};
#systemd.services.datadog-agent.environment = {
# ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH = "go1.19";
#};
2022-11-10 11:25:33 +00:00
networking.hostName = "tablet";
time.timeZone = "Europe/London";
system.stateVersion = "22.05";
2022-11-10 11:25:33 +00:00
}