From b90f263cf1edb3527cc95ea948d5807a49909910 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Sat, 9 Sep 2023 17:32:00 +0200 Subject: [PATCH] update laptop screen post --- .../2023-06-19-ansible-edit-grub.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/jekyll/_posts/ansible-edit-kernel-params/2023-06-19-ansible-edit-grub.md b/jekyll/_posts/ansible-edit-kernel-params/2023-06-19-ansible-edit-grub.md index 1ae0e2b..3320889 100644 --- a/jekyll/_posts/ansible-edit-kernel-params/2023-06-19-ansible-edit-grub.md +++ b/jekyll/_posts/ansible-edit-kernel-params/2023-06-19-ansible-edit-grub.md @@ -66,6 +66,18 @@ Lastly, I created the `notify` hook to update the Grub configuration: cmd: update-grub ``` +# Update: Just use Nix + +Lately, I have been learning a bit of NixOS with the intention of replacing my current setup. +Compared to Ansible, applying this fix is a breeze on NixOS: +```nix +{ + boot.kernelParams = [ "i915.enable_psr=0" ]; +} +``` + +That's it, yep. + # Conclusion It turned out to be quite easy to change Linux kernel parameters using Ansible.