nixos-config/hosts/challenger/configuration.nix

56 lines
1.2 KiB
Nix
Raw Normal View History

{ config, pkgs, lib, ... }:
2024-07-01 23:28:24 +02:00
{
imports =
[
2024-07-04 00:04:40 +02:00
./hardware-configuration.nix
2024-07-01 23:28:24 +02:00
../../base.nix
../../common/metrics-exporters.nix
2024-07-04 00:04:40 +02:00
./backup.nix
2024-07-01 23:28:24 +02:00
./exports.nix
./filesystems.nix
./services/calibre.nix
./services/jellyfin.nix
./services/komga.nix
./services/nextcloud.nix
./services/nginx.nix
./services/postgres.nix
./services/timemachine.nix
2024-07-01 23:28:24 +02:00
];
networking = {
hostName = "challenger";
2024-07-02 00:22:02 +02:00
bridges.br0.interfaces = [ "enp5s0" ];
2024-07-01 23:28:24 +02:00
interfaces.br0.useDHCP = false;
interfaces.br0.ipv4.addresses = [
{ address = "192.168.10.161"; prefixLength = 24; }
];
hostId = "828ab735";
defaultGateway = "192.168.10.1";
};
sops.defaultSopsFile = ../../secrets/challenger/challenger.yaml;
environment.variables = { EDITOR = "vim"; };
environment.systemPackages = with pkgs; [
zfs
];
virtualisation.docker.enable = true;
virtualisation.oci-containers.backend = "docker";
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"nvidia-x11"
"nvidia-settings"
];
hardware.nvidia.modesetting.enable = true;
hardware.opengl.enable = true;
services.xserver.videoDrivers = ["nvidia"];
2024-07-01 23:28:24 +02:00
system.stateVersion = "24.05";
}