From ba4c57b914d94361a6f19bcb549421e209caf63a Mon Sep 17 00:00:00 2001 From: lelgenio Date: Wed, 12 Jun 2024 17:44:27 -0300 Subject: [PATCH] update --- flake.lock | 18 +++++++++--------- hosts/double-rainbow.nix | 6 ++++++ 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index f7f8c3c..d51c314 100644 --- a/flake.lock +++ b/flake.lock @@ -403,11 +403,11 @@ ] }, "locked": { - "lastModified": 1717297675, - "narHash": "sha256-43UmlS1Ifx17y93/Vc258U7bOlAAIZbu8dsGDHOIIr0=", + "lastModified": 1718011381, + "narHash": "sha256-sFXI+ZANp/OC+MwfJoZgPSf4xMdtzQMe1pS3FGti4C8=", "owner": "Mic92", "repo": "nix-index-database", - "rev": "972a52bee3991ae1f1899e6452e0d7c01ee566d9", + "rev": "88ad3d7501e22b2401dd72734b032b7baa794434", "type": "github" }, "original": { @@ -499,11 +499,11 @@ "utils": "utils_2" }, "locked": { - "lastModified": 1717515260, - "narHash": "sha256-UJhSsczeTpRpoXICuRk++NORXE2qNTEwOn0rL3uTJ3E=", + "lastModified": 1718084203, + "narHash": "sha256-Cx1xoVfSMv1XDLgKg08CUd1EoTYWB45VmB9XIQzhmzI=", "owner": "simple-nixos-mailserver", "repo": "nixos-mailserver", - "rev": "b51ae1a235353ffdfa9f5874e6aea32e367a5739", + "rev": "29916981e7b3b5782dc5085ad18490113f8ff63b", "type": "gitlab" }, "original": { @@ -515,11 +515,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1717281328, - "narHash": "sha256-evZPzpf59oNcDUXxh2GHcxHkTEG4fjae2ytWP85jXRo=", + "lastModified": 1718086528, + "narHash": "sha256-hoB7B7oPgypePz16cKWawPfhVvMSXj4G/qLsfFuhFjw=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "b3b2b28c1daa04fe2ae47c21bb76fd226eac4ca1", + "rev": "47b604b07d1e8146d5398b42d3306fdebd343986", "type": "github" }, "original": { diff --git a/hosts/double-rainbow.nix b/hosts/double-rainbow.nix index be5dd48..e33b612 100644 --- a/hosts/double-rainbow.nix +++ b/hosts/double-rainbow.nix @@ -46,6 +46,12 @@ in swapDevices = [ ]; + services.udev.extraRules = '' + # Force all disks to use mq-deadline scheduler + # For some reason "noop" is used by default which is kinda bad when io is saturated + ACTION=="add|change", KERNEL=="sd[a-z]*[0-9]*|mmcblk[0-9]*p[0-9]*|nvme[0-9]*n[0-9]*p[0-9]*", ATTR{../queue/scheduler}="mq-deadline" + ''; + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's # still possible to use this option, but it's recommended to use it in conjunction