Add swap devices and update Prefect variables

- Add swap devices configuration to citadel and semita hosts
- Update Prefect variable for OSM directory in baseddata-worker
- Set swap device size to 32*1024 for both citadel and semita hosts
This commit is contained in:
Sam 2024-11-03 21:03:12 +00:00
parent 45ee82da0e
commit 2c44487796
3 changed files with 11 additions and 1 deletions

View File

@ -71,6 +71,11 @@ in {
}; };
}; };
swapDevices = [ {
device = "/.swapvol/swapfile";
size = 32*1024;
} ];
services = { services = {
libinput.touchpad.accelSpeed = "0.5"; libinput.touchpad.accelSpeed = "0.5";
xserver = { xserver = {

View File

@ -233,7 +233,7 @@ in {
.venv/bin/prefect variable set "bitcoind_ip" ${bitcoindIp} --overwrite .venv/bin/prefect variable set "bitcoind_ip" ${bitcoindIp} --overwrite
.venv/bin/prefect variable set "bitcoind_port" ${bitcoindPort} --overwrite .venv/bin/prefect variable set "bitcoind_port" ${bitcoindPort} --overwrite
.venv/bin/prefect variable set "osm_history_dir" "/media/baseddata-data/osm-history" --overwrite .venv/bin/prefect variable set "osm_dir" "/media/baseddata-data/osm" --overwrite
.venv/bin/prefect variable set "mongo_db_name" "baseddata" --overwrite .venv/bin/prefect variable set "mongo_db_name" "baseddata" --overwrite
.venv/bin/prefect variable set "postgres_dbname" "baseddata" --overwrite .venv/bin/prefect variable set "postgres_dbname" "baseddata" --overwrite
.venv/bin/prefect variable set "postgres_schema" "models_final" --overwrite .venv/bin/prefect variable set "postgres_schema" "models_final" --overwrite

View File

@ -99,6 +99,11 @@ in {
vaapiIntel = pkgs.vaapiIntel.override {enableHybridCodec = true;}; vaapiIntel = pkgs.vaapiIntel.override {enableHybridCodec = true;};
}; };
swapDevices = [ {
device = "/.swapvol/swapfile";
size = 32*1024;
} ];
hardware.opengl = { hardware.opengl = {
enable = true; enable = true;
extraPackages = with pkgs; [ extraPackages = with pkgs; [