dotfiles/nixos/machines/biskcomp.nix

125 lines
2.7 KiB
Nix
Raw Normal View History

{ 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
2021-07-11 11:23:59 -06:00
../raspberry-pi.nix
];
2023-12-13 11:41:50 -07:00
users.users.nginx = {
group = "nginx";
isSystemUser = true;
extraGroups = ["syncthing"];
};
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;
2023-08-27 19:03:24 -06:00
modules.cache-server = {
enable = false;
host-string = biskcomp-nginx-hostnames;
2023-08-27 19:03:24 -06:00
port = 80;
path = "/nix-cache";
};
modules.gitea.enable = true;
modules.gitea-runner.enable = false;
2023-08-27 19:03:24 -06:00
2023-08-27 19:40:50 -06:00
services.vaultwarden = {
enable = true;
config = {
ROCKET_ADDRESS = "::1";
2023-08-27 19:40:50 -06:00
ROCKET_PORT = 8222;
};
};
security.acme = {
acceptTerms = true;
defaults.email = "IvanMalison@gmail.com";
};
# services.nextcloud = {
# enable = true;
# hostName = "nextcloud.railbird.ai";
# config = {
# dbtype = "pgsql";
# database.createLocally = true;
# };
# };
2023-11-21 20:09:47 -07:00
2023-11-17 13:25:22 -07:00
services.nginx = {
enable = true;
recommendedProxySettings = true;
recommendedGzipSettings = true;
recommendedTlsSettings = true;
virtualHosts = {
"vaultwarden.railbird.ai" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://[::1]:8222";
};
};
"cache.railbird.ai" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://192.168.1.20:3090";
};
};
2023-12-07 01:39:50 -07:00
"syncthing.railbird.ai" = {
enableACME = true;
forceSSL = true;
root = "/var/lib/syncthing/sync";
2023-12-07 01:39:50 -07:00
locations."/" = {
extraConfig = ''
autoindex on;
'';
2023-12-07 01:39:50 -07:00
};
};
2023-11-17 13:25:22 -07:00
};
};
2023-08-03 21:28:38 -06:00
services.plex = {
enable = true;
};
2023-06-17 12:16:47 -06:00
2023-08-01 17:47:16 -06:00
fileSystems."/" = {
device = "/dev/disk/by-label/NIXOS_SD";
2023-08-01 17:47:16 -06:00
fsType = "ext4";
};
2023-06-17 12:16:47 -06:00
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 = {};
};
};
2023-08-05 17:13:32 -06:00
swapDevices = [
{ device = "/swapfile"; size = 8192; } # size is in MiB
];
networking.hostName = "biskcomp";
system.stateVersion = "23.11";
home-manager.users = forEachUser {
home.stateVersion = "23.11";
};
}