2023-08-20 04:34:42 -06:00
|
|
|
{ forEachUser, ... }: {
|
2021-07-10 13:39:40 -06:00
|
|
|
imports = [
|
2023-08-20 04:25:58 -06:00
|
|
|
../configuration.nix
|
2021-07-11 11:23:59 -06:00
|
|
|
../raspberry-pi.nix
|
2021-07-10 13:39:40 -06:00
|
|
|
];
|
|
|
|
|
2023-08-20 04:25:58 -06:00
|
|
|
modules.raspberry-pi.enable = true;
|
|
|
|
|
|
|
|
modules.base.enable = true;
|
|
|
|
modules.desktop.enable = true;
|
|
|
|
modules.xmonad.enable = true;
|
|
|
|
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 = true;
|
|
|
|
host-string = "192.168.1.44 railbird.ai 1896Folsom.duckdns.org 0.0.0.0 67.162.131.71";
|
|
|
|
port = 80;
|
|
|
|
path = "/nix-cache";
|
|
|
|
};
|
|
|
|
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
virtualHosts = let conf = {
|
|
|
|
root = ../railbird.ai;
|
|
|
|
locations."/" = {
|
|
|
|
index = "index.html";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
"192.168.1.44 railbird.ai 1896Folsom.duckdns.org 0.0.0.0 67.162.131.71" = conf;
|
|
|
|
};
|
|
|
|
};
|
2023-08-20 04:25:58 -06:00
|
|
|
|
2023-08-03 21:28:38 -06:00
|
|
|
services.plex = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2023-06-17 12:16:47 -06:00
|
|
|
|
2023-08-04 02:14:31 -06:00
|
|
|
services.gitea = {
|
|
|
|
enable = true;
|
|
|
|
lfs.enable = true;
|
2023-08-04 22:00:44 -06:00
|
|
|
settings.server = {
|
2023-08-04 21:59:15 -06:00
|
|
|
DOMAIN = "1896Folsom.duckdns.org";
|
|
|
|
SSH_PORT = 1123;
|
|
|
|
};
|
2023-08-04 02:14:31 -06:00
|
|
|
};
|
|
|
|
|
2023-08-01 17:47:16 -06:00
|
|
|
fileSystems."/" = {
|
2023-08-01 19:20:33 -06:00
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2021-07-10 13:39:40 -06:00
|
|
|
networking.hostName = "biskcomp";
|
2023-08-01 19:20:33 -06:00
|
|
|
system.stateVersion = "23.11";
|
2023-08-20 04:34:42 -06:00
|
|
|
|
|
|
|
home-manager.users = forEachUser {
|
|
|
|
home.stateVersion = "23.11";
|
|
|
|
};
|
2021-07-10 13:39:40 -06:00
|
|
|
}
|