diff options
author | Rory& <root@rory.gay> | 2024-07-17 06:50:44 +0200 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-07-17 06:50:44 +0200 |
commit | 6ad91ccabc83c2618160f2734e4ca5e90983baf4 (patch) | |
tree | 93cce578fe6579de81d8bfc2c3595ecedb4189c2 | |
parent | Node exproter changes (diff) | |
download | Rory-Open-Architecture-6ad91ccabc83c2618160f2734e4ca5e90983baf4.tar.xz |
Changes
-rw-r--r-- | host/Rory-desktop/configuration.nix | 9 | ||||
-rw-r--r-- | host/Rory-desktop/hacks/drm-amd-3437.patch | 13 | ||||
-rw-r--r-- | host/Rory-desktop/optional/gui/wayland.nix | 1 | ||||
-rwxr-xr-x | host/Rory-nginx/services/postgres.nix | 18 | ||||
-rwxr-xr-x | modules/users/Rory.client.nix | 7 |
5 files changed, 39 insertions, 9 deletions
diff --git a/host/Rory-desktop/configuration.nix b/host/Rory-desktop/configuration.nix index 73b361f..c7e0b1e 100644 --- a/host/Rory-desktop/configuration.nix +++ b/host/Rory-desktop/configuration.nix @@ -39,8 +39,17 @@ args@{ efiInstallAsRemovable = true; }; }; + kernelPatches = [ + { + # FIXME: https://gitlab.freedesktop.org/drm/amd/-/issues/3437 + name = "drm-amd-3437-hack"; + patch = /hacks/drm-amd-3437.patch; + } + ]; + #readOnlyNixStore = false; }; + programs.noisetorch.enable = true; environment.sessionVariables = { ZSH_DISABLE_COMPFIX = "true"; diff --git a/host/Rory-desktop/hacks/drm-amd-3437.patch b/host/Rory-desktop/hacks/drm-amd-3437.patch new file mode 100644 index 0000000..1867762 --- /dev/null +++ b/host/Rory-desktop/hacks/drm-amd-3437.patch @@ -0,0 +1,13 @@ +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +index c556c8b653fa..272ad5e4a328 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +@@ -180,7 +180,7 @@ void amdgpu_bo_placement_from_domain(struct amdgpu_bo *abo, u32 domain) + * When GTT is just an alternative to VRAM make sure that we + * only use it as fallback and still try to fill up VRAM first. + */ +- if (domain & abo->preferred_domains & AMDGPU_GEM_DOMAIN_VRAM) ++ if (domain & abo->preferred_domains & AMDGPU_GEM_DOMAIN_VRAM && !(adev->flags & AMD_IS_APU)) + places[c].flags |= TTM_PL_FLAG_FALLBACK; + c++; + } \ No newline at end of file diff --git a/host/Rory-desktop/optional/gui/wayland.nix b/host/Rory-desktop/optional/gui/wayland.nix index fd0cd90..689dee7 100644 --- a/host/Rory-desktop/optional/gui/wayland.nix +++ b/host/Rory-desktop/optional/gui/wayland.nix @@ -44,4 +44,5 @@ ]; }; + xdg.portal.wlr.enable = true; } diff --git a/host/Rory-nginx/services/postgres.nix b/host/Rory-nginx/services/postgres.nix index a05aa1e..b63e437 100755 --- a/host/Rory-nginx/services/postgres.nix +++ b/host/Rory-nginx/services/postgres.nix @@ -32,13 +32,13 @@ max_connections = 2500; superuser_reserved_connections = 3; - shared_buffers = "32565MB"; - work_mem = "512MB"; - maintenance_work_mem = "1024MB"; + shared_buffers = "32GB"; + work_mem = "1GB"; + maintenance_work_mem = "8GB"; huge_pages = "try"; - effective_cache_size = "60GB"; # was 22 - effective_io_concurrency = "8"; - random_page_cost = 4; + effective_cache_size = "64GB"; # was 22 + effective_io_concurrency = 100; + random_page_cost = 1.1; # can use this to view stats: SELECT query, total_time, calls, rows FROM pg_stat_statements ORDER BY total_time DESC LIMIT 10; shared_preload_libraries = "pg_stat_statements"; @@ -49,12 +49,12 @@ wal_level = "replica"; max_wal_senders = 0; - synchronous_commit = "off"; # was on + synchronous_commit = "off"; # was ond3 checkpoint_timeout = "15min"; checkpoint_completion_target = "0.9"; - max_wal_size = "1GB"; - min_wal_size = "512MB"; + max_wal_size = "2GB"; + min_wal_size = "1GB"; wal_compression = "on"; wal_buffers = "-1"; diff --git a/modules/users/Rory.client.nix b/modules/users/Rory.client.nix index ec1692c..29c7188 100755 --- a/modules/users/Rory.client.nix +++ b/modules/users/Rory.client.nix @@ -14,6 +14,13 @@ enableAskPassword = true; }; }; + + users.users.Rory.packages = with pkgs; [ + helvum + vesktop + pavucontrol + ]; + home-manager.users.Rory = { services.gnome-keyring.enable = lib.mkForce false; dconf.settings = { |