summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-05-26 19:37:49 -0400
committerFreya Murphy <freya@freyacat.org>2026-05-26 19:51:09 -0400
commit37b014982cad97b0813d04e310cc8df5ec1ad5b6 (patch)
tree186f5614a4132686820e56870dd06f4d2cb24c85 /system
parentadd plymouth as a splash screen (diff)
downloaddotfiles-nix-37b014982cad97b0813d04e310cc8df5ec1ad5b6.tar.gz
dotfiles-nix-37b014982cad97b0813d04e310cc8df5ec1ad5b6.tar.bz2
dotfiles-nix-37b014982cad97b0813d04e310cc8df5ec1ad5b6.zip
more refactoring
Diffstat (limited to 'system')
-rw-r--r--system/amdgpu.nix5
-rw-r--r--system/bootloader/default.nix2
-rw-r--r--system/bootloader/grub.nix18
-rw-r--r--system/gaming/default.nix10
4 files changed, 23 insertions, 12 deletions
diff --git a/system/amdgpu.nix b/system/amdgpu.nix
index df9a52c..5bb0f02 100644
--- a/system/amdgpu.nix
+++ b/system/amdgpu.nix
@@ -15,8 +15,9 @@ in {
};
# AMD Anti-Lag
- environment.systemPackages = [pkgs.low-latency-layer];
- environment.etc."vulkan/implicit_layer.d/low_latency_layer.json".source = "${pkgs.low-latency-layer}/share/vulkan/implicit_layer.d/low_latency_layer.json";
+ hardware.graphics.extraPackages = with pkgs; [
+ low-latency-layer
+ ];
# Configuration
environment.variables = {
diff --git a/system/bootloader/default.nix b/system/bootloader/default.nix
index a498906..29fa61d 100644
--- a/system/bootloader/default.nix
+++ b/system/bootloader/default.nix
@@ -1,7 +1,7 @@
_: {
imports = [
./grub.nix
- ./limine.nix
+ ./limine.nix
./plymouth.nix
];
}
diff --git a/system/bootloader/grub.nix b/system/bootloader/grub.nix
index 7f1b31a..167e779 100644
--- a/system/bootloader/grub.nix
+++ b/system/bootloader/grub.nix
@@ -7,14 +7,14 @@
cfg = config.bootloader.grub;
in {
config = mkIf cfg.enable {
- boot.loader = {
- efi.canTouchEfiVariables = true;
- grub = {
- enable = true;
- efiSupport = true;
- device = "nodev";
- splashImage = config.theme.wallpaper;
- };
- };
+ boot.loader = {
+ efi.canTouchEfiVariables = true;
+ grub = {
+ enable = true;
+ efiSupport = true;
+ device = "nodev";
+ splashImage = config.theme.wallpaper;
+ };
+ };
};
}
diff --git a/system/gaming/default.nix b/system/gaming/default.nix
index c68065a..606f565 100644
--- a/system/gaming/default.nix
+++ b/system/gaming/default.nix
@@ -12,6 +12,16 @@ in {
];
config = mkIf cfg.enable {
+ boot.kernelParams = [
+ # lower latency
+ "tsc=reliable"
+ "clocksource=tsc"
+ "preempt=full"
+ # no watchdog
+ "nmi_watchdog=0"
+ "nowatchdog"
+ ];
+
programs.wine = {
enable = true;
package = pkgs.wineWow64Packages.staging;