From cef0f11783f1a9e78820868ca343f3daedc1c0dc Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Sat, 26 Aug 2023 10:12:30 +0200 Subject: [PATCH] pinwheel: Extract `vim` module --- hosts/pinwheel/configuration.nix | 1 + hosts/pinwheel/home.nix | 1 - hosts/pinwheel/modules/vim/default.nix | 12 ++++++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 hosts/pinwheel/modules/vim/default.nix diff --git a/hosts/pinwheel/configuration.nix b/hosts/pinwheel/configuration.nix index b5bc620..735a677 100644 --- a/hosts/pinwheel/configuration.nix +++ b/hosts/pinwheel/configuration.nix @@ -13,6 +13,7 @@ ./modules/age ./modules/ssh ./modules/git + ./modules/vim ./modules/syncthing ./modules/firefox ./modules/calibre diff --git a/hosts/pinwheel/home.nix b/hosts/pinwheel/home.nix index 8317a13..ec03cd8 100644 --- a/hosts/pinwheel/home.nix +++ b/hosts/pinwheel/home.nix @@ -6,7 +6,6 @@ home.homeDirectory = "/home/alex"; home.packages = with pkgs; [ - vim emacs gnumake tig diff --git a/hosts/pinwheel/modules/vim/default.nix b/hosts/pinwheel/modules/vim/default.nix new file mode 100644 index 0000000..fcbe902 --- /dev/null +++ b/hosts/pinwheel/modules/vim/default.nix @@ -0,0 +1,12 @@ +{ home-manager, pkgs, ...}: +{ + home-manager.users.alex = { + programs.vim = { + enable = true; + + extraConfig = '' + set noswapfile + ''; + }; + }; +}