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 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."; 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"; 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"