summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/vecna/configuration.nix22
-rw-r--r--hosts/vecna/home.nix2
2 files changed, 23 insertions, 1 deletions
diff --git a/hosts/vecna/configuration.nix b/hosts/vecna/configuration.nix
index fb6b0ed..a4870bf 100644
--- a/hosts/vecna/configuration.nix
+++ b/hosts/vecna/configuration.nix
@@ -48,6 +48,12 @@
services.xserver.videoDrivers = [ "amdgpu" ];
hardware.cpu.amd.updateMicrocode = true;
+ zramSwap = {
+ enable = true;
+ priority = 100;
+ algorithm = "lz4";
+ memoryPercent = 32;
+ };
# networking
system.name = "vecna";
@@ -115,6 +121,22 @@
security.polkit.enable = true;
services.playerctld.enable = true;
+ boot.kernel.sysctl = {
+ "vm.max_map_count" = 2147483642;
+ };
+
+ boot.kernelParams = [
+ "amdgpu.noretry=0"
+ "amdgpu.mcbp=0"
+ "amdgpu.sg_display=0"
+ "amdgpu.gpu_recovery=1"
+ "iommu=soft"
+ "amdgpu.dcdebugmask=0x10"
+ "amdgpu.ppfeaturemask=0xfffd7fff"
+ ];
+
+ hardware.enableRedistributableFirmware = true;
+
services.openssh = {
enable = true;
settings.PermitRootLogin = "no";
diff --git a/hosts/vecna/home.nix b/hosts/vecna/home.nix
index 0033eee..01556df 100644
--- a/hosts/vecna/home.nix
+++ b/hosts/vecna/home.nix
@@ -59,7 +59,7 @@
wayland.windowManager.hyprland.settings = {
monitor = [
"DP-3, 2560x1440@170.07100, 0x0, 1"
- "HDMI-A-1, 1920x1080@74.97, 2560x150, 1"
+ "HDMI-A-1, 1920x1080@74.97, -1920x150, 1"
];
workspace = [