This commit is contained in:
ediblerope 2026-05-15 12:17:12 +01:00
parent 9ccc3dadf3
commit 5f01f22088
3 changed files with 10 additions and 4 deletions

View file

@ -87,7 +87,7 @@
# Shell aliases (work in both bash and fish) # Shell aliases (work in both bash and fish)
environment.shellAliases = { environment.shellAliases = {
update = "bash -c 'set -o pipefail && OLD_SYSTEM=$(readlink /run/current-system) && sudo nixos-rebuild switch $@ --impure --flake git+https://forg.gregersen.it/rope/nixos -L --log-format internal-json 2>&1 | nom --json && nvd diff $OLD_SYSTEM /run/current-system && (command -v record-update &>/dev/null && record-update $OLD_SYSTEM /run/current-system || true)' --"; update = "bash -c 'set -o pipefail && OLD_SYSTEM=$(readlink /run/current-system) && sudo nixos-rebuild switch $@ --impure --refresh --flake git+https://forg.gregersen.it/rope/nixos -L --log-format internal-json 2>&1 | nom --json && nvd diff $OLD_SYSTEM /run/current-system && (command -v record-update &>/dev/null && record-update $OLD_SYSTEM /run/current-system || true)' --";
clean = "sudo nix-collect-garbage -d"; clean = "sudo nix-collect-garbage -d";
ll = "ls -alh"; ll = "ls -alh";
clear = "command clear"; clear = "command clear";

View file

@ -21,9 +21,9 @@
boot.loader.systemd-boot.configurationLimit = 5; boot.loader.systemd-boot.configurationLimit = 5;
boot.initrd.systemd.enable = true; boot.initrd.systemd.enable = true;
services.logind = { services.logind.settings.Login = {
lidSwitch = "suspend"; HandleLidSwitch = "suspend";
lidSwitchExternalPower = "suspend"; HandleLidSwitchExternalPower = "suspend";
}; };
home-manager.users.fred = { ... }: { home-manager.users.fred = { ... }: {

View file

@ -179,6 +179,12 @@ in
follow_mouse = 1; follow_mouse = 1;
accel_profile = "flat"; accel_profile = "flat";
sensitivity = 0; sensitivity = 0;
} // lib.optionalAttrs isMacbook {
touchpad = {
tap-to-click = true;
tap_button_map = "lrm"; # 1-finger=left, 2-finger=right, 3-finger=middle
natural_scroll = true;
};
}; };
cursor = { cursor = {