dotfiles.nix/nixos/viridian/configuration.nix

76 lines
1.5 KiB
Nix
Raw Normal View History

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-06-03 21:07:39 +08:00
../common/users/spectre
2024-09-20 20:24:55 +08:00
# Containers
./containers/jellyfin
./containers/jellyseerr
./containers/lidarr
./containers/mealie
./containers/microbin
./containers/prowlarr
./containers/qbittorrent
./containers/radarr
./containers/recyclarr
./containers/sonarr
# Services
./services/borgbackup
./services/crowdsec
./services/forgejo
./services/grafana
./services/lighttpd
./services/minecraft
./services/mpd
./services/mysql
./services/paperless-ngx
./services/prometheus
./services/samba
./services/traefik
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
system.stateVersion = "24.05";
2023-10-30 19:03:16 +08:00
}