2024-08-11 16:15:30 +08:00
|
|
|
{...}: {
|
2023-10-30 19:03:16 +08:00
|
|
|
imports = [
|
2024-08-11 16:15:30 +08:00
|
|
|
# Global configuration for all our systems
|
2024-01-21 21:03:57 +08:00
|
|
|
../common/global
|
2024-09-20 20:24:55 +08:00
|
|
|
|
2024-08-11 16:15:30 +08:00
|
|
|
# Our user configuration and optional user units
|
2024-01-21 21:03:57 +08:00
|
|
|
../common/users/sajenim
|
2024-09-20 20:24:55 +08:00
|
|
|
|
|
|
|
# Services
|
|
|
|
./services/borgbackup
|
|
|
|
./services/crowdsec
|
|
|
|
./services/forgejo
|
2024-09-30 09:22:07 +08:00
|
|
|
./services/immich
|
2024-09-20 20:24:55 +08:00
|
|
|
./services/lighttpd
|
|
|
|
./services/minecraft
|
|
|
|
./services/mpd
|
|
|
|
./services/paperless-ngx
|
|
|
|
./services/traefik
|
|
|
|
|
2024-10-15 06:27:48 +08:00
|
|
|
# Multimedia
|
|
|
|
./multimedia/jellyfin
|
|
|
|
./multimedia/lidarr
|
|
|
|
./multimedia/prowlarr
|
|
|
|
./multimedia/qbittorrent
|
|
|
|
./multimedia/radarr
|
|
|
|
./multimedia/sonarr
|
|
|
|
|
2024-08-11 16:15:30 +08:00
|
|
|
# Setup our hardware
|
2023-10-30 19:03:16 +08:00
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
|
2024-08-11 16:15:30 +08:00
|
|
|
# Networking configuration
|
2023-10-31 05:46:44 +08:00
|
|
|
networking = {
|
|
|
|
hostName = "viridian";
|
|
|
|
networkmanager.enable = true;
|
|
|
|
firewall = {
|
|
|
|
enable = true;
|
2024-07-16 21:27:20 +08:00
|
|
|
allowPing = true;
|
2023-10-31 05:46:44 +08:00
|
|
|
allowedTCPPorts = [
|
2024-09-20 20:24:55 +08:00
|
|
|
80
|
|
|
|
443
|
|
|
|
6600
|
2023-10-31 05:46:44 +08:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2023-10-30 19:03:16 +08:00
|
|
|
|
2024-09-20 20:24:55 +08:00
|
|
|
# Configure programs
|
|
|
|
programs = {
|
|
|
|
zsh.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Manage linux containers
|
|
|
|
virtualisation = {
|
|
|
|
docker = {
|
|
|
|
enable = true;
|
|
|
|
liveRestore = false;
|
|
|
|
};
|
|
|
|
# Implementation to use for containers
|
|
|
|
oci-containers.backend = "docker";
|
2023-10-30 19:03:16 +08:00
|
|
|
};
|
|
|
|
|
2024-01-23 09:49:45 +08:00
|
|
|
# Required for smooth remote deployments
|
|
|
|
security.sudo.wheelNeedsPassword = false;
|
|
|
|
|
2023-10-30 19:03:16 +08:00
|
|
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
2024-07-06 19:52:41 +08:00
|
|
|
system.stateVersion = "24.05";
|
2023-10-30 19:03:16 +08:00
|
|
|
}
|