Compare commits

...

2 commits

4 changed files with 32 additions and 1 deletions

View file

@ -232,6 +232,7 @@
crony.secrets.enable = true;
crony.boot.enable = true;
crony.ollama.enable = true;
crony.kanata.enable = true;
# Mount additional drive for games
fileSystems."/mnt/games" = {

View file

@ -289,7 +289,11 @@ in {
helpview-nvim.package = helpview-nvim;
};
extraPackages = with pkgs.vimPlugins; [nvim-treesitter-parsers.qmljs];
treesitter.grammars = with pkgs.vimPlugins.nvim-treesitter.builtGrammars; [
qmljs
kdl
regex
];
};
};
};

View file

@ -26,6 +26,7 @@
./secrets.nix
./oom.nix
./boot.nix
./kanata.nix
];
crony.bluetooth.enable = lib.mkDefault true;
@ -54,4 +55,5 @@
crony.secrets.enable = lib.mkDefault false;
crony.oom.enable = lib.mkDefault true;
crony.boot.enable = lib.mkDefault false;
crony.kanata.enable = lib.mkDefault false;
}

View file

@ -0,0 +1,24 @@
{
config,
lib,
...
}: {
options = {
crony.kanata.enable = lib.mkEnableOption "Enable and setup kanata";
};
config = lib.mkIf config.crony.kanata.enable {
hardware.uinput.enable = true;
services.kanata = {
enable = true;
keyboards."based".config = ''
(defsrc
caps)
(deflayermap (default-layer)
;; tap caps lock as caps lock, hold caps lock as left control
caps (tap-hold 100 100 esc lctl))
'';
};
};
}