dotfiles.nix/nixos/viridian/configuration.nix

70 lines
1.4 KiB
Nix

{...}: {
imports = [
# Global configuration for all our systems
../common/global
# Our user configuration and optional user units
../common/users/sajenim
# Services
./services/borgbackup
./services/crowdsec
./services/forgejo
./services/immich
./services/lighttpd
./services/minecraft
./services/mpd
./services/paperless-ngx
./services/postgresql
./services/traefik
./services/wiki-js
# Multimedia
./multimedia/jellyfin
./multimedia/lidarr
./multimedia/prowlarr
./multimedia/qbittorrent
./multimedia/radarr
./multimedia/sonarr
# Setup our hardware
./hardware-configuration.nix
];
# Networking configuration
networking = {
hostName = "viridian";
networkmanager.enable = true;
firewall = {
enable = true;
allowPing = true;
allowedTCPPorts = [
80
443
6600
];
};
};
# Configure programs
programs = {
zsh.enable = true;
};
# Manage linux containers
virtualisation = {
docker = {
enable = true;
liveRestore = false;
};
# Implementation to use for containers
oci-containers.backend = "docker";
};
# Required for smooth remote deployments
security.sudo.wheelNeedsPassword = false;
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "24.05";
}