112 lines
2.4 KiB
Nix
112 lines
2.4 KiB
Nix
{ forEachUser, ... }:
|
|
let biskcomp-nginx-hostnames = "192.168.1.44 railbird.ai 1896Folsom.duckdns.org biskcomp.local 0.0.0.0 67.162.131.71";
|
|
in
|
|
{
|
|
imports = [
|
|
../configuration.nix
|
|
../raspberry-pi.nix
|
|
];
|
|
|
|
modules.raspberry-pi.enable = true;
|
|
|
|
modules.base.enable = true;
|
|
modules.desktop.enable = true;
|
|
modules.xmonad.enable = false;
|
|
modules.extra.enable = false;
|
|
modules.code.enable = true;
|
|
modules.games.enable = false;
|
|
modules.syncthing.enable = true;
|
|
modules.fonts.enable = true;
|
|
modules.nixified-ai.enable = false;
|
|
modules.cache-server = {
|
|
enable = false;
|
|
host-string = biskcomp-nginx-hostnames;
|
|
port = 80;
|
|
path = "/nix-cache";
|
|
};
|
|
modules.gitea.enable = true;
|
|
modules.gitea-runner.enable = true;
|
|
|
|
services.vaultwarden = {
|
|
enable = true;
|
|
config = {
|
|
ROCKET_ADDRESS = "::1";
|
|
ROCKET_PORT = 8222;
|
|
};
|
|
};
|
|
|
|
security.acme = {
|
|
acceptTerms = true;
|
|
defaults.email = "IvanMalison@gmail.com";
|
|
};
|
|
|
|
services.nginx = {
|
|
enable = true;
|
|
recommendedProxySettings = true;
|
|
recommendedGzipSettings = true;
|
|
recommendedTlsSettings = true;
|
|
virtualHosts = {
|
|
"1896Folsom.duckdns.org" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations."/" = {
|
|
proxyPass = "http://[::1]:8222";
|
|
};
|
|
};
|
|
"vault.railbird.ai" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations."/" = {
|
|
proxyPass = "http://[::1]:8222";
|
|
};
|
|
};
|
|
"dev.railbird.ai" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
listen = [{
|
|
addr = "0.0.0.0";
|
|
port = 3000;
|
|
ssl = true;
|
|
}];
|
|
locations."/" = {
|
|
proxyPass = "http://localhost:3001";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
services.plex = {
|
|
enable = true;
|
|
};
|
|
|
|
fileSystems."/" = {
|
|
device = "/dev/disk/by-label/NIXOS_SD";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
services.home-assistant = {
|
|
enable = true;
|
|
extraComponents = [
|
|
# Components required to complete the onboarding
|
|
"met"
|
|
"radio_browser"
|
|
];
|
|
config = {
|
|
# Includes dependencies for a basic setup
|
|
# https://www.home-assistant.io/integrations/default_config/
|
|
default_config = {};
|
|
};
|
|
};
|
|
|
|
swapDevices = [
|
|
{ device = "/swapfile"; size = 8192; } # size is in MiB
|
|
];
|
|
|
|
networking.hostName = "biskcomp";
|
|
system.stateVersion = "23.11";
|
|
|
|
home-manager.users = forEachUser {
|
|
home.stateVersion = "23.11";
|
|
};
|
|
}
|