Fixed the keyd thing to work with the later nix revisions and deleted vim.nix because it didn't work either way

This commit is contained in:
metallaxis committed 2026-11-04 13:12:49 +02:00
1 parent b352baa645
commit 0f4feabf1d
3 files changed
+13 -32

No files matched your search

+4 -1
View File
@@ -3,7 +3,6 @@
{ {
imports = [ imports = [
./modules/keyd.nix ./modules/keyd.nix
./modules/vim.nix
./modules/display.nix ./modules/display.nix
./modules/sound.nix ./modules/sound.nix
./modules/hyprland.nix ./modules/hyprland.nix
@@ -43,6 +42,10 @@
]; ];
}; };
# Set the vim as the default editor
environment.variables.EDITOR = "vim";
environment.variables.VISUAL = "vim";
# Set sops-age key file path # Set sops-age key file path
sops.age.keyFile = "/var/lib/sops-nix/key.txt"; sops.age.keyFile = "/var/lib/sops-nix/key.txt";
+9 -4
View File
@@ -3,10 +3,15 @@
{ {
services.keyd = { services.keyd = {
enable = true; enable = true;
settings = { keyboards = {
main = { default = {
# Replace Copilot Key ids = [ "*" ];
"leftshift+leftmeta+f23" = "rightcontrol"; settings = {
main = {
# Fix Right Control Key
"leftshift+leftmeta+f23" = "rightcontrol";
};
};
}; };
}; };
}; };
-27
View File
@@ -1,27 +0,0 @@
{ config, pkgs, ... }:
{
programs.vim = {
defaultEditor = true;
customRC = ''
" Enable line numbers
set number
set relativenumber
" Indentation rules
set tabstop=4
set shiftwidth=4
set expandtab
" Better searching
set hlsearch
set incsearch
set ignorecase
set smartcase
" Enable syntax highlighting and mouse support
syntax on
set mouse=a
'';
};
}