fix laptop setup

- adds auto-mounting of external drives with udiskie
- disables suspend, replaces it with hibernation
- disables alt+arrow keys switching between tty sessions
- other misc changes to rice + configs
This commit is contained in:
greyweather committed 2026-07-11 11:57:35 +01:00
1 parent 988e5664ef
commit acc0712fcb
6 files changed
+107 -37

No files matched your search

+31 -3
View File
@@ -22,12 +22,40 @@ in {
stylix.image = ../../assets/wallpapers/kitagawa.jpg;
stylix.polarity = "dark";
systemd.sleep.settings.Sleep = {
AllowSuspend = "no";
AllowHibernation = "yes";
};
services.logind.settings.Login.HandleLidSwitch = "ignore";
systemd.services.disable-lid-wakeup = {
wantedBy = [ "multi-user.target" ];
description = "Prevent the lid switch from waking laptop from hibernation";
serviceConfig = {
Type = "simple";
User = "root";
ExecStart = "${pkgs.busybox}/bin/sh -c \"echo LID > /proc/acpi/wakeup\"";
};
};
systemd.services.disable-tty-switch = {
wantedBy = [ "multi-user.target" ];
description = "Prevent alt+arrow keys from switching tty";
serviceConfig = {
Type = "simple";
User = "root";
ExecStart = "${pkgs.busybox}/bin/sh -c \"${pkgs.kbd}/bin/dumpkeys -k|grep -v Incr_Console|grep -v Decr_Console|${pkgs.kbd}/bin/loadkeys\"";
};
};
services.udisks2.enable = true;
services.fprintd.enable = true;
security.pam.services.grey.fprintAuth = true;
security.pam.services.login.fprintAuth = true;
security.pam.services.sudo.fprintAuth = true;
security.pam.services.swaylock.fprintAuth = true;
security.pam.services.lightdm.fprintAuth = true;
programs.nautilus-open-any-terminal = {
enable = true;