nixos-config/hosts/challenger/configuration.nix

63 lines
1.3 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
# ./exports.nix
2024-07-01 23:28:24 +02:00
./filesystems.nix
./services/calibre.nix
2024-09-10 18:38:23 +02:00
./services/ersatztv.nix
./services/jellyfin.nix
./services/komga.nix
2024-09-03 19:26:59 +02:00
./services/navidrome.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
unstable.ncdu
2024-07-01 23:28:24 +02:00
];
virtualisation.docker.enable = true;
virtualisation.oci-containers.backend = "docker";
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"nvidia-x11"
"nvidia-settings"
];
2024-08-25 17:56:53 +02:00
# hardware.nvidia = {
# modesetting.enable = true;
# };
2024-08-25 17:56:53 +02:00
hardware.opengl.enable = true;
# services.xserver.videoDrivers = ["nvidia"];
2024-07-01 23:28:24 +02:00
system.stateVersion = "24.05";
}