aboutsummaryrefslogtreecommitdiff
path: root/snowfall/modules
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2025-02-07 05:46:50 -0800
committerCaroline Larimore <caroline@larimo.re>2025-04-14 18:58:47 -0700
commit91012170228909732af9d1b3b6ad15e2f9f7953e (patch)
tree716300a49796e9726c63e311c5dff34b5f44b93d /snowfall/modules
parenteb16a7d8d9a90e88a1ec8d5c65d91db021b4e1e1 (diff)
migration: vim config
Diffstat (limited to 'snowfall/modules')
-rw-r--r--snowfall/modules/home/suites/common/default.nix1
-rw-r--r--snowfall/modules/home/tools/vim/default.nix44
2 files changed, 45 insertions, 0 deletions
diff --git a/snowfall/modules/home/suites/common/default.nix b/snowfall/modules/home/suites/common/default.nix
index c4620ee..c40f903 100644
--- a/snowfall/modules/home/suites/common/default.nix
+++ b/snowfall/modules/home/suites/common/default.nix
@@ -10,6 +10,7 @@ in {
config = mkIf cfg.enable {
cxl = {
tools = {
+ vim.enable = true;
git.enable = true;
};
};
diff --git a/snowfall/modules/home/tools/vim/default.nix b/snowfall/modules/home/tools/vim/default.nix
new file mode 100644
index 0000000..e4625a3
--- /dev/null
+++ b/snowfall/modules/home/tools/vim/default.nix
@@ -0,0 +1,44 @@
+{ options, config, lib, namespace, ... }:
+
+with lib; with lib.${namespace}; let
+ cfg = config.${namespace}.tools.vim;
+ theme = config.${namespace}.desktop.theme;
+in {
+ options.${namespace}.tools.vim = with types; {
+ enable = mkEnableOption "vim";
+ };
+
+ config = mkIf cfg.enable {
+ home.file.".vim/vimrc".text = ''
+ set number
+ set relativenumber
+ set showcmd
+
+ set termguicolors
+ set background=dark
+ colorscheme ${theme.name}
+
+ syntax on
+
+ highlight Normal guibg=#000000
+
+ " Awesome magical color override from
+ " https://gist.github.com/romainl/379904f91fa40533175dfaec4c833f2f
+ augroup MyColors
+ autocmd!
+ autocmd ColorScheme * highlight Normal guibg=#000000
+ augroup END
+ '';
+
+ home.file.".vim/pack/default/start/gruvbox".source = builtins.fetchGit {
+ url = "https://github.com/morhetz/gruvbox.git";
+ rev = "f1ecde848f0cdba877acb0c740320568252cc482";
+ };
+
+ home.file.".vim/pack/all/start/vim-nix".source = builtins.fetchGit {
+ url = "https://github.com/LnL7/vim-nix.git";
+ rev = "e25cd0f2e5922f1f4d3cd969f92e35a9a327ffb0";
+ };
+ };
+}
+