diff options
| author | Christian <[email protected]> | 2026-01-18 21:59:30 -0600 |
|---|---|---|
| committer | Christian <[email protected]> | 2026-01-18 22:05:15 -0600 |
| commit | 152de38181eca203c939ba2a5d50e0d76d522dc8 (patch) | |
| tree | 778df5e34d6ab1db1c2eea08e893f7a2045ce4fa /modules/home | |
| parent | 875c8e5d08e463322e44bf66e8a5d4caa562bd4f (diff) | |
Restructure
Diffstat (limited to 'modules/home')
| -rw-r--r-- | modules/home/default.nix | 16 | ||||
| -rw-r--r-- | modules/home/nvim/default.nix (renamed from modules/home/nvim.nix) | 2 | ||||
| -rw-r--r-- | modules/home/nvim/global_config.lua | 12 |
3 files changed, 30 insertions, 0 deletions
diff --git a/modules/home/default.nix b/modules/home/default.nix new file mode 100644 index 0000000..461f273 --- /dev/null +++ b/modules/home/default.nix @@ -0,0 +1,16 @@ +{ config, pkgs, inputs, ... }: +{ + imports = [ ./nvim ]; + + home.stateVersion = "25.11"; + + home.packages = with pkgs; [ ]; + + programs.git = { + enable = true; + settings.user.name = "Christian"; + settings.user.email = "[email protected]"; + }; + + programs.home-manager.enable = true; +} diff --git a/modules/home/nvim.nix b/modules/home/nvim/default.nix index f715f75..6cae9d6 100644 --- a/modules/home/nvim.nix +++ b/modules/home/nvim/default.nix @@ -8,5 +8,7 @@ plugins = with pkgs.vimPlugins; [ nvim-treesitter.withAllGrammars ]; + + extraLuaConfig = builtins.readFile ./global_config.lua; }; } diff --git a/modules/home/nvim/global_config.lua b/modules/home/nvim/global_config.lua new file mode 100644 index 0000000..2ae6dce --- /dev/null +++ b/modules/home/nvim/global_config.lua @@ -0,0 +1,12 @@ +vim.opt.expandtab = true +vim.opt.shiftwidth = 2 +vim.opt.tabstop = 2 + +vim.api.nvim_create_autocmd("FileType", { + pattern = "nix", + callback = function() + vim.opt_local.shiftwidth = 2 + vim.opt_local.tabstop = 2 + vim.opt_local.expandtab = true + end, +}) |
