From 666182e6993de7fd53592b89b614af03577382b9 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Sun, 17 Dec 2023 09:58:06 -0600 Subject: [PATCH] Update helix config --- flake.lock | 6 +++--- modules/home-manager/helix.nix | 27 ++++++++++++++++++++++----- nixos/foxtrot/default.nix | 2 ++ 3 files changed, 27 insertions(+), 8 deletions(-) diff --git a/flake.lock b/flake.lock index 9f5a733..997d3dd 100644 --- a/flake.lock +++ b/flake.lock @@ -120,11 +120,11 @@ }, "hardware": { "locked": { - "lastModified": 1700559156, - "narHash": "sha256-gL4epO/qf+wo30JjC3g+b5Bs8UrpxzkhNBBsUYxpw2g=", + "lastModified": 1702453208, + "narHash": "sha256-0wRi9SposfE2wHqjuKt8WO2izKB/ASDOV91URunIqgo=", "owner": "nixos", "repo": "nixos-hardware", - "rev": "c3abafb01cd7045dba522af29b625bd1e170c2fb", + "rev": "7763c6fd1f299cb9361ff2abf755ed9619ef01d6", "type": "github" }, "original": { diff --git a/modules/home-manager/helix.nix b/modules/home-manager/helix.nix index b8a7712..faa9cf8 100644 --- a/modules/home-manager/helix.nix +++ b/modules/home-manager/helix.nix @@ -149,10 +149,27 @@ display-messages = true; # display-inlay-hints = true; }; - # statusline = { - # left = ["mode" "spinner" "selections" "primary-selection-length" "position" "position-percentage" "diagnostics" "workspace-diagnostics"]; + statusline = { + separator = " "; + mode = { + "normal" = "N"; + "insert" = "I"; + "select" = "S"; + }; + left = [ + "file-name" + "mode" + # "selections" + # "primary-selection-length" + # "position" + # "position-percentage" + "spinner" + "diagnostics" + "workspace-diagnostics" + ]; + }; # center = ["file-name"]; - # right = ["version-control" "total-line-numbers" "file-encoding"]; + # right = ["version-control" "total-line-numbers" "file-encoding"]; # }; }; keys = { @@ -276,11 +293,11 @@ "ui.statusline" = { fg = fgdim; - bg = bg2; + bg = bg; }; "ui.statusline.inactive" = { fg = fg3; - bg = bg; + bg = bg2; }; "ui.statusline.normal" = { fg = bg; diff --git a/nixos/foxtrot/default.nix b/nixos/foxtrot/default.nix index bca96fd..5e76692 100644 --- a/nixos/foxtrot/default.nix +++ b/nixos/foxtrot/default.nix @@ -59,6 +59,8 @@ hardware.wirelessRegulatoryDatabase = true; + hardware.framework.amd-7040.preventWakeOnAC = true; + boot = { kernelPackages = pkgs.linuxPackages_latest; # seeing if using the stable kernel makes wow work