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