config updates

This commit is contained in:
Vivian 2025-06-05 09:11:36 +02:00
parent 4d68f77111
commit 773df94aa6
3 changed files with 57 additions and 36 deletions

View file

@ -1,6 +1,27 @@
{ helpers, ... }:
{
keymaps = with helpers; [
# Disable arrow keys
{
mode = "n";
key = "<Up>";
action = "<Nop>";
}
{
mode = "n";
key = "<Down>";
action = "<Nop>";
}
{
mode = "n";
key = "<Left>";
action = "<Nop>";
}
{
mode = "n";
key = "<Right>";
action = "<Nop>";
}
# General
{
mode = "n";

62
flake.lock generated
View file

@ -12,11 +12,11 @@
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1747587191,
"narHash": "sha256-JswxXCzaDmX/mY5uYJQjntvORumrHQctJ+a1N1wj5EI=",
"lastModified": 1748532342,
"narHash": "sha256-CvaKOUq8G10sghKpZhEB2UYjJoWhEkrDFggDgi7piUI=",
"owner": "zhaofengli",
"repo": "attic",
"rev": "8eb49a2f178d093b2d54cdcc1eb60a70c1ab1054",
"rev": "ce9373715fe3fac7a174a65a7e6d6baeba8cb4f9",
"type": "github"
},
"original": {
@ -608,11 +608,11 @@
]
},
"locked": {
"lastModified": 1748391243,
"narHash": "sha256-7sCuihzsTRZemtbTXaFUoGJUfuQErhKEcL9v7HKIo1k=",
"lastModified": 1748955489,
"narHash": "sha256-OmZXyW2g5qIuo5Te74McwR0TwauCO2sF3/SjGDVuxyg=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "f5b12be834874f7661db4ced969a621ab2d57971",
"rev": "bb846c031be68a96466b683be32704ef6e07b159",
"type": "github"
},
"original": {
@ -793,11 +793,11 @@
"nixpkgs-25_05": "nixpkgs-25_05"
},
"locked": {
"lastModified": 1747965231,
"narHash": "sha256-BW3ktviEhfCN/z3+kEyzpDKAI8qFTwO7+S0NVA0C90o=",
"lastModified": 1748876244,
"narHash": "sha256-o5CPg3d2sxUUThQO+PimOjUGNn5aZNtEa7m9eB4S4Is=",
"ref": "refs/heads/master",
"rev": "53007af63fade28853408370c4c600a63dd97f41",
"revCount": 694,
"rev": "d6d6308ba28df3e9f7ce7bd45aa2e1f8a0999c72",
"revCount": 711,
"type": "git",
"url": "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git"
},
@ -813,11 +813,11 @@
"spectrum": "spectrum"
},
"locked": {
"lastModified": 1748260747,
"narHash": "sha256-V3ONd70wm55JxcUa1rE0JU3zD+Cz7KK/iSVhRD7lq68=",
"lastModified": 1748464257,
"narHash": "sha256-PdnQSE2vPfql9WEjunj2qQnDpuuvk7HH+4djgXJSwFs=",
"owner": "astro",
"repo": "microvm.nix",
"rev": "b6c5dfc2a1c7614c94fd2c5d2e8578fd52396f3b",
"rev": "e238645b6f0447a2eb1d538d300d5049d4006f9f",
"type": "github"
},
"original": {
@ -906,11 +906,11 @@
},
"nixos-hardware": {
"locked": {
"lastModified": 1747900541,
"narHash": "sha256-dn64Pg9xLETjblwZs9Euu/SsjW80pd6lr5qSiyLY1pg=",
"lastModified": 1748942041,
"narHash": "sha256-HEu2gTct7nY0tAPRgBtqYepallryBKR1U8B4v2zEEqA=",
"owner": "nixos",
"repo": "nixos-hardware",
"rev": "11f2d9ea49c3e964315215d6baa73a8d42672f06",
"rev": "fc7c4714125cfaa19b048e8aaf86b9c53e04d853",
"type": "github"
},
"original": {
@ -1064,11 +1064,11 @@
},
"nixpkgs_7": {
"locked": {
"lastModified": 1748190013,
"narHash": "sha256-R5HJFflOfsP5FBtk+zE8FpL8uqE7n62jqOsADvVshhE=",
"lastModified": 1748693115,
"narHash": "sha256-StSrWhklmDuXT93yc3GrTlb0cKSS0agTAxMGjLKAsY8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "62b852f6c6742134ade1abdd2a21685fd617a291",
"rev": "910796cabe436259a29a72e8d3f5e180fc6dfacc",
"type": "github"
},
"original": {
@ -1079,11 +1079,11 @@
},
"nixpkgs_8": {
"locked": {
"lastModified": 1748217807,
"narHash": "sha256-P3u2PXxMlo49PutQLnk2PhI/imC69hFl1yY4aT5Nax8=",
"lastModified": 1748406211,
"narHash": "sha256-B3BsCRbc+x/d0WiG1f+qfSLUy+oiIfih54kalWBi+/M=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "3108eaa516ae22c2360928589731a4f1581526ef",
"rev": "3d1f29646e4b57ed468d60f9d286cde23a8d1707",
"type": "github"
},
"original": {
@ -1095,11 +1095,11 @@
},
"nixpkgs_9": {
"locked": {
"lastModified": 1748190013,
"narHash": "sha256-R5HJFflOfsP5FBtk+zE8FpL8uqE7n62jqOsADvVshhE=",
"lastModified": 1748693115,
"narHash": "sha256-StSrWhklmDuXT93yc3GrTlb0cKSS0agTAxMGjLKAsY8=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "62b852f6c6742134ade1abdd2a21685fd617a291",
"rev": "910796cabe436259a29a72e8d3f5e180fc6dfacc",
"type": "github"
},
"original": {
@ -1117,11 +1117,11 @@
"systems": "systems_8"
},
"locked": {
"lastModified": 1748348238,
"narHash": "sha256-etRxo4m9zbKuZbb1Tjt20mab7hc9bQGIlm+U5X4sctc=",
"lastModified": 1748942960,
"narHash": "sha256-gJf3WxvDbvCpzIBVju/5GY/olW7zs/B1zDmB52AWMUM=",
"owner": "pta2002",
"repo": "nixvim",
"rev": "65b1bffd3d36e9392083c6efcf2e087921afa86e",
"rev": "9328f4437d5f788d1c066b274a0aea492dc5fde2",
"type": "github"
},
"original": {
@ -1137,11 +1137,11 @@
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1748433522,
"narHash": "sha256-V+YTmpCokIb0iAl6+5c02KCsABgeEAPhvfARIdatwHI=",
"lastModified": 1748954271,
"narHash": "sha256-tpA8Nlj5cMqMIVAQDE/9CmA45thnFOSZseTBVtBwWlU=",
"owner": "nix-community",
"repo": "NUR",
"rev": "aef75de07385a1f988c333615c9f72a83591860c",
"rev": "0f3c9ccce1d63b0fd1d60ce41d9714932760f3a8",
"type": "github"
},
"original": {

View file

@ -70,26 +70,26 @@ in
listener = [
{
timeout = 150; # 2.5 mins
timeout = 300; # 5 mins
on-timeout = "${pkgs.brightnessctl}/bin/brightnessctl -s set 10";
on-resume = "${pkgs.brightnessctl}/bin/brightnessctl -r";
}
{
timeout = 150; # 2.5 mins
timeout = 300; # 5 mins
on-timeout = "${pkgs.brightnessctl}/bin/brightnessctl -sd tpacpi:kbd_backlight set 0";
on-resume = "${pkgs.brightnessctl}/bin/brightnessctl -rd tpacpi::kbd_backlight";
}
{
timeout = 300; # 5 mins
timeout = 600; # 10 mins
on-timeout = "loginctl lock-session";
}
{
timeout = 600; # 10 mins, screen off
timeout = 1200; # 20 mins, screen off
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
{
timeout = 1800; # 30 mins
timeout = 2400; # 40 mins
on-timeout = "systemctl suspend";
}
];