This commit is contained in:
parent
9ccc3dadf3
commit
5f01f22088
3 changed files with 10 additions and 4 deletions
|
|
@ -87,7 +87,7 @@
|
|||
|
||||
# Shell aliases (work in both bash and fish)
|
||||
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";
|
||||
ll = "ls -alh";
|
||||
clear = "command clear";
|
||||
|
|
|
|||
|
|
@ -21,9 +21,9 @@
|
|||
boot.loader.systemd-boot.configurationLimit = 5;
|
||||
boot.initrd.systemd.enable = true;
|
||||
|
||||
services.logind = {
|
||||
lidSwitch = "suspend";
|
||||
lidSwitchExternalPower = "suspend";
|
||||
services.logind.settings.Login = {
|
||||
HandleLidSwitch = "suspend";
|
||||
HandleLidSwitchExternalPower = "suspend";
|
||||
};
|
||||
|
||||
home-manager.users.fred = { ... }: {
|
||||
|
|
|
|||
|
|
@ -179,6 +179,12 @@ in
|
|||
follow_mouse = 1;
|
||||
accel_profile = "flat";
|
||||
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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue