From 97d95d678db9e6348a3510934efb5f862a8ab1a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Fri, 31 May 2024 20:06:47 -0300 Subject: [PATCH 1/4] gnome: add workaround for autologin bug --- system/gnome.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/system/gnome.nix b/system/gnome.nix index 72b98c5..175909e 100644 --- a/system/gnome.nix +++ b/system/gnome.nix @@ -9,6 +9,10 @@ services.xserver.displayManager.gdm.enable = true; services.xserver.desktopManager.gnome.enable = true; + # Workaround for https://github.com/NixOS/nixpkgs/issues/103746 + systemd.services."getty@tty1".enable = false; + systemd.services."autovt@tty1".enable = false; + services.displayManager.autoLogin = { enable = true; user = "lelgenio"; From 16eeb3e1e5fedbd40890ae92a0ef3ca528d69ec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Fri, 31 May 2024 21:45:12 -0300 Subject: [PATCH 2/4] nix: don't optimise on every build this makes builds slower --- system/nix.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/system/nix.nix b/system/nix.nix index 18ac258..ac8a8be 100644 --- a/system/nix.nix +++ b/system/nix.nix @@ -22,7 +22,6 @@ in }; optimise.automatic = true; settings = { - auto-optimise-store = true; trusted-users = [ "root" "@wheel" From 46a75ce485012aa1d4ab0cfd0a8516ad0410ae58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Fri, 31 May 2024 21:46:49 -0300 Subject: [PATCH 3/4] fixup! treewide: format using nixfmt-rfc-style --- hosts/phantom/email.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/phantom/email.nix b/hosts/phantom/email.nix index 6d85d95..c218977 100644 --- a/hosts/phantom/email.nix +++ b/hosts/phantom/email.nix @@ -26,7 +26,11 @@ loginAccounts = { "lelgenio@lelgenio.com" = { hashedPassword = "$2y$05$z5s7QCXcs5uTFsfyYpwNJeWzb3RmzgWxNgcPCr0zjSytkLFF/qZmS"; - aliases = [ "postmaster@lelgenio.com" "lelgenio@lelgenio.xyz" "lelgenio@lelgenio.xyz" ]; + aliases = [ + "postmaster@lelgenio.com" + "lelgenio@lelgenio.xyz" + "lelgenio@lelgenio.xyz" + ]; }; "noreply@git.lelgenio.com" = { hashedPassword = "$2b$05$TmR1R7ZwXfec7yrOfeBL7u3ZtyXf0up5dEO6uMWSvb/O7LPEm.j0."; From 1e204760c4d73b6d153942eba5553e08d705bfdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Fri, 31 May 2024 22:09:29 -0300 Subject: [PATCH 4/4] monolith: forced disks to use mq-deadline scheduler --- hosts/monolith.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hosts/monolith.nix b/hosts/monolith.nix index 213765b..b217f73 100644 --- a/hosts/monolith.nix +++ b/hosts/monolith.nix @@ -166,10 +166,13 @@ in hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; networking.hostName = "monolith"; # Define your hostname. - # Fix broken suspend with Logitech USB dongle - # `lsusb | grep Logitech` will return "vendor:product" services.udev.extraRules = '' + # Fix broken suspend with Logitech USB dongle + # `lsusb | grep Logitech` will return "vendor:product" ACTION=="add" SUBSYSTEM=="usb" ATTR{idVendor}=="046d" ATTR{idProduct}=="c547" ATTR{power/wakeup}="disabled" + # 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" ''; # swap