nixos-config/machines/chungus/configuration.nix

98 lines
2.3 KiB
Nix
Raw Normal View History

2023-04-29 23:29:05 +02:00
{ config, pkgs, lib, ... }: {
imports = [
2024-03-03 10:52:46 +01:00
# todo : remove
../../system/all
2023-07-01 00:20:03 +02:00
../../components
2024-03-03 10:52:46 +01:00
../../modules
2023-07-01 00:20:03 +02:00
2024-03-02 21:19:12 +01:00
./hardware-configuration
2023-04-29 23:29:05 +02:00
./packages.nix
2023-10-20 08:46:57 +02:00
./network-tinc-retiolum.nix # make sure no service is open for this vpn!
2024-05-19 00:20:54 +02:00
./network-tinc.nix
./network-wireguard.nix
2023-05-05 22:33:05 +02:00
./hass-mqtt.nix
2024-05-19 00:20:54 +02:00
./hass-zigbee2mqtt.nix
./hass.nix
2023-04-29 23:29:05 +02:00
2024-06-03 20:01:14 +02:00
# todo: add autotag again
#./taskwarrior-autotag.nix
2023-05-04 20:59:26 +02:00
2023-05-28 22:52:03 +02:00
./media-audiobookshelf.nix
2023-08-03 11:50:39 +02:00
./media-castget.nix
2023-10-20 08:01:09 +02:00
./media-curl.nix
2024-05-19 00:20:54 +02:00
./media-jellyfin.nix
2024-08-06 16:30:47 +02:00
./media-navidrome.nix
2024-05-19 00:20:54 +02:00
./media-share.nix
2024-04-17 10:00:17 +02:00
./media-syncthing.nix
2024-05-19 00:20:54 +02:00
./media-youtube.nix
2023-05-04 20:59:26 +02:00
2024-05-19 00:20:54 +02:00
./telemetry/grafana.nix
2024-05-14 20:02:37 +02:00
./telemetry/telegraf-smart.nix
./telemetry/telegraf.nix
./telemetry/prometheus.nix
2024-05-29 23:36:43 +02:00
./telemetry/loki.nix # todo enable this one again
2023-04-29 23:29:05 +02:00
2024-05-11 00:20:55 +02:00
./sync-rbackup.nix
./sync-syncoid.nix
2023-05-01 21:36:46 +02:00
2024-05-19 00:20:54 +02:00
./service-atuin.nix
./service-paperless.nix
./services-forgejo.nix
2023-10-05 16:30:34 +02:00
./services-s3.nix
2024-05-05 14:12:24 +02:00
./services-vault.nix
2024-03-04 19:05:30 +01:00
2024-06-26 00:39:52 +02:00
./zerotier-controller.nix
2023-04-29 23:29:05 +02:00
];
2023-07-01 00:20:03 +02:00
components.gui.enable = false;
2023-08-25 11:33:25 +02:00
components.mainUser.enable = true;
2023-11-08 09:26:34 +01:00
components.media.tts-server.enable = false;
2023-06-01 11:38:39 +02:00
components.network.enable = true;
components.network.wifi.enable = false;
2023-08-25 11:33:25 +02:00
components.terminal.enable = true;
2023-04-29 23:29:05 +02:00
components.nixos.boot.enable = true;
2024-08-07 15:51:41 +02:00
components.nixos.boot.ssh.kernelModules = [ "e1000e" ];
components.monitor.enable = true;
components.monitor.opentelemetry.receiver.endpoint = "0.0.0.0:4317";
networking.firewall.interfaces.wg0.allowedTCPPorts = [ 4317 ];
networking.firewall.interfaces.wg0.allowedUDPPorts = [ 4317 ];
2023-06-01 14:02:57 +02:00
services.printing.enable = false;
2023-04-29 23:29:05 +02:00
2023-05-05 09:49:58 +02:00
virtualisation.podman.extraPackages = [ pkgs.zfs ]; # make sure /var/lib/containers/storage is a zfs dataset
2023-04-29 23:29:05 +02:00
networking.hostName = "chungus";
2024-06-26 03:00:17 +02:00
hardware.graphics.enable = true;
hardware.graphics.enable32Bit = true;
hardware.graphics.extraPackages = with pkgs; [
intel-media-driver # LIBVA_DRIVER_NAME=iHD
vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
vaapiVdpau
libvdpau-va-gl
];
2023-11-20 09:49:34 +01:00
2023-04-29 23:29:05 +02:00
# nix-shell -p speedtest_cli --run speedtest
#configuration.fireqos = {
# enable = false;
# interface = "enp0s25";
# input = 200000;
# output = 2000;
# balance = false;
#};
2023-12-23 00:11:26 +01:00
system.stateVersion = "23.11";
2023-04-29 23:29:05 +02:00
}