configs/helix: init and install on gui machines

This commit is contained in:
Aaron Bieber 2023-05-02 12:27:54 -06:00
parent 8d0c221031
commit 70906dd80a
No known key found for this signature in database
3 changed files with 16 additions and 0 deletions

11
configs/helix.nix Normal file
View File

@ -0,0 +1,11 @@
{ pkgs, writeTextFile, ... }:
let
helixConfig = writeTextFile {
name = "helix/config.toml";
text = builtins.readFile ./helix.toml;
};
helixBin = "${pkgs.helix}/bin/hx";
in pkgs.writeScriptBin "hx" ''
${helixBin} -c ${helixConfig} $@
''

4
configs/helix.toml Normal file
View File

@ -0,0 +1,4 @@
theme = "acme"
[editor]
mouse = false

View File

@ -99,6 +99,7 @@ in with lib; {
(callPackage ../pkgs/tailscale-systray.nix { })
(callPackage ../pkgs/govulncheck.nix { })
(callPackage ../configs/helix.nix { })
];
})