Skip to content

Commit

Permalink
2024/07/20-02:44:41
Browse files Browse the repository at this point in the history
  • Loading branch information
1nv0k32 committed Jul 20, 2024
1 parent 0d2928c commit 57a0662
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 22 deletions.
1 change: 1 addition & 0 deletions modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
++ lib.optional (builtins.pathExists ./dev.nix) (import ./dev.nix)
++ [
./sysconf.nix
./nvim.nix
./cert-der.nix
./alpaca.nix
];
Expand Down
35 changes: 35 additions & 0 deletions modules/nvim.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{ lib, ... }:
with lib;
{
programs = {
nixvim = {
enable = mkDefault true;
viAlias = mkDefault true;
vimAlias = mkDefault true;
colorschemes.vscode.enable = true;
plugins.lightline.enable = true;
extraConfigVim = mkDefault ''
syntax enable
filetype indent on
set guicursor=
set mouse=a
set encoding=utf-8
set belloff=all
set tabstop=2
set softtabstop=2
set shiftwidth=2
set expandtab
set smarttab
set nonumber
set wildmenu
set foldenable
set clipboard=unnamedplus
set nowrap
set modeline
set modelines=1
'';
};
};
}

# vim:expandtab ts=2 sw=2
22 changes: 0 additions & 22 deletions src/configs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -85,28 +85,6 @@ with lib;
alias diff='diff --color=auto'
'';

VIMRC_CONFIG = ''
colorscheme slate
syntax enable
filetype indent on
set guicursor=
set mouse=a
set encoding=utf-8
set belloff=all
set tabstop=2
set softtabstop=2
set shiftwidth=2
set expandtab
set smarttab
set nonumber
set wildmenu
set foldenable
set clipboard=unnamedplus
set nowrap
set modeline
set modelines=1
'';

SSH_CLIENT_CONFIG = mkDefault ''
Host *
IdentitiesOnly yes
Expand Down

0 comments on commit 57a0662

Please sign in to comment.