diff --git a/configuration.nix b/configuration.nix index 02dae54..b267ae4 100644 --- a/configuration.nix +++ b/configuration.nix @@ -3,7 +3,6 @@ { imports = [ ./modules/keyd.nix - ./modules/vim.nix ./modules/display.nix ./modules/sound.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 sops.age.keyFile = "/var/lib/sops-nix/key.txt"; diff --git a/modules/keyd.nix b/modules/keyd.nix index 8d245f4..eca282d 100644 --- a/modules/keyd.nix +++ b/modules/keyd.nix @@ -3,10 +3,15 @@ { services.keyd = { enable = true; - settings = { - main = { - # Replace Copilot Key - "leftshift+leftmeta+f23" = "rightcontrol"; + keyboards = { + default = { + ids = [ "*" ]; + settings = { + main = { + # Fix Right Control Key + "leftshift+leftmeta+f23" = "rightcontrol"; + }; + }; }; }; }; diff --git a/modules/vim.nix b/modules/vim.nix deleted file mode 100644 index dc93691..0000000 --- a/modules/vim.nix +++ /dev/null @@ -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 - ''; - }; -} \ No newline at end of file