From c2c3ea5a641746c2c5d9aee6ab7a6907220633f5 Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Tue, 20 Jan 2026 14:19:52 +0100 Subject: [PATCH] suspend on power btn and fix la --- home-manager/zsh/default.nix | 2 +- systems/pc/configuration.nix | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/home-manager/zsh/default.nix b/home-manager/zsh/default.nix index 3e4d22d..554333b 100644 --- a/home-manager/zsh/default.nix +++ b/home-manager/zsh/default.nix @@ -38,7 +38,7 @@ edit = "cd ~/projects/github/nix-config && nvim ."; ll = "ls -l"; ls = "${pkgs.eza}/bin/eza --icons auto"; - la = "${pkgs.eza}/bin/eza -la --auto --group-directories-first"; + la = "${pkgs.eza}/bin/eza -la --icons auto --group-directories-first"; ssh = "TERM=xterm-256color ssh"; update = "sudo nixos-rebuild switch"; updateFancy = "nh os switch"; diff --git a/systems/pc/configuration.nix b/systems/pc/configuration.nix index 143d50a..3bc2521 100644 --- a/systems/pc/configuration.nix +++ b/systems/pc/configuration.nix @@ -118,6 +118,9 @@ }; }; + services.logind.settings.Login = { + HandlePowerKey = "suspend"; + }; nix.gc.automatic = lib.mkForce false; services.searx = { enable = false; @@ -173,7 +176,7 @@ documentation.man.generateCaches = true; #networking.firewall.allowedTCPPorts = [ 6567 ]; # mindustry - networking.firewall.allowedUDPPorts = [ 1234 ]; #6567 ]; # mindustry + networking.firewall.allowedUDPPorts = [ 1234 ]; # 6567 ]; # mindustry mainUser.layout = "de"; mainUser.variant = "us"; age.identityPaths = [ /home/kopatz/.ssh/id_rsa ];