From d6aa921437cff37fb9f33240f78a7d2d61ecd99d Mon Sep 17 00:00:00 2001 From: depsterr Date: Tue, 3 Dec 2024 23:55:42 +0100 Subject: [PATCH] refresh rate updates --- flake.nix | 3 +++ home-manager/picom.nix | 6 +++--- nixos/computational/configuration.nix | 9 ++++++++- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 4d619c5..5a94af8 100644 --- a/flake.nix +++ b/flake.nix @@ -90,6 +90,7 @@ user = "rachel"; steam = true; mcsr = false; + rate = 60; i3-plasma = true; }; }; @@ -100,6 +101,7 @@ user = "rachel"; steam = true; mcsr = false; + rate = 60; i3-plasma = true; }; }; @@ -110,6 +112,7 @@ user = "rachel"; steam = true; mcsr = true; + rate = 180; i3-plasma = false; }; }; diff --git a/home-manager/picom.nix b/home-manager/picom.nix index 494ed65..b283783 100644 --- a/home-manager/picom.nix +++ b/home-manager/picom.nix @@ -1,9 +1,9 @@ -{ ... }: +{ config, ... }: { services.picom = { enable = true; backend = "glx"; - settings.refresh-rate = "60"; - vSync = true; + settings.refresh-rate = config.rate; + vSync = false; }; } diff --git a/nixos/computational/configuration.nix b/nixos/computational/configuration.nix index 4945376..4f37156 100644 --- a/nixos/computational/configuration.nix +++ b/nixos/computational/configuration.nix @@ -72,13 +72,20 @@ # [Fix KWIN locking to 60Hz] environment.sessionVariables = { KWIN_X11_NO_SYNC_TO_VBLANK = 1; - KWIN_X11_REFRESH_RATE = 144000; + KWIN_X11_REFRESH_RATE = 180000; KWIN_X11_FORCE_SOFTWARE_VSYNC = 1; }; # [NETWORKING] networking.hostName = "computational"; networking.networkmanager.enable = true; + services.openssh = { + enable = true; + settings = { + PermitRootLogin = "no"; + PasswordAuthentication = false; + }; + }; system.stateVersion = "24.05"; }