Update vim config, fix printing, add more associations

This commit is contained in:
Artemis Tosini 2021-04-08 03:49:01 +00:00
parent e8cb263117
commit cd12d6a385
Signed by: artemist
GPG key ID: EE5227935FE3FF18
5 changed files with 49 additions and 24 deletions

View file

@ -1,10 +1,20 @@
[Default Applications] [Default Applications]
application/pdf=org.gnome.Evince.desktop application/pdf=org.gnome.Evince.desktop
application/vnd.oasis.opendocument.presentation=impress.desktop
application/vnd.oasis.opendocument.spreadsheet=calc.desktop
application/vnd.oasis.opendocument.text=writer.desktop
application/xml=code.desktop application/xml=code.desktop
audio/aac=mpv.desktop
audio/flac=mpv.desktop audio/flac=mpv.desktop
image/png=org.gnome.eog.desktop audio/mpeg=mpv.desktop
audio/ogg=mpv.desktop
image/jpeg=org.gnome.eog.desktop image/jpeg=org.gnome.eog.desktop
image/png=org.gnome.eog.desktop
text/html=firefox.desktop text/html=firefox.desktop
video/mp4=mpv.desktop
video/mpeg=mpv.desktop
video/ogg=mpv.desktop
video/webm=mpv.desktop
x-scheme-handler/about=firefox.desktop x-scheme-handler/about=firefox.desktop
x-scheme-handler/discord-455712169795780630=discord-455712169795780630.desktop x-scheme-handler/discord-455712169795780630=discord-455712169795780630.desktop
x-scheme-handler/http=firefox.desktop x-scheme-handler/http=firefox.desktop

View file

@ -5,28 +5,26 @@
enable = true; enable = true;
vimAlias = true; vimAlias = true;
withNodeJs = true; withNodeJs = true;
configure = { extraConfig = builtins.readFile ./init.vim;
customRC = builtins.readFile ./init.vim; plugins = with pkgs.vimPlugins; [
packages.default.start = with pkgs.vimPlugins; [ coc-nvim
coc-nvim editorconfig-vim
editorconfig-vim fzf-vim
fzf-vim vim-airline
vim-airline vim-clang-format
vim-clang-format vim-fish
vim-fish vim-fetch
vim-fetch vim-nftables
vim-nftables vim-nix
vim-nix vim-sensible
vim-sensible vim-toml
vim-toml meson
meson gruvbox
gruvbox
coc-go coc-go
coc-json coc-json
coc-rust-analyzer coc-rust-analyzer
]; ];
};
}; };
home.sessionVariables.EDITOR = "nvim"; home.sessionVariables.EDITOR = "nvim";

View file

@ -51,5 +51,7 @@ nmap <leader>rn <Plug>(coc-rename)
xmap <leader>f <Plug>(coc-format-selected) xmap <leader>f <Plug>(coc-format-selected)
nmap <leader>f <Plug>(coc-format-selected) nmap <leader>f <Plug>(coc-format-selected)
nmap <leader>a <Plug>(coc-action)
command! -nargs=0 Format :call CocAction('format') command! -nargs=0 Format :call CocAction('format')
command! -nargs=? Fold :call CocAction('fold', <f-args>) command! -nargs=? Fold :call CocAction('fold', <f-args>)

View file

@ -3,8 +3,16 @@
{ {
services.printing = { services.printing = {
enable = true; enable = true;
drivers = [ drivers = with pkgs; [
(pkgs.pkgsi686Linux.callPackage ../externals/packages/hll2300d { }) (pkgs.brlaser.overrideAttrs (old: {
patches = [
(pkgs.fetchpatch {
name = "l2300d-fix.patch";
url = "https://patch-diff.githubusercontent.com/raw/pdewacht/brlaser/pull/68.patch";
sha256 = "07iqv048q0iplghn0aamjslyixw1p5jbk004i20xnl1vs95nyqzy";
})
];
}))
]; ];
}; };
} }

View file

@ -62,5 +62,12 @@
weechat weechat
]; ];
# Printing
services.printing = {
listenAddresses = [ "localhost:631" "10.69.0.2:631" "starlight.manehattan.artem.ist:631" ];
allowFrom = [ "localhost" "10.69.0.*" ];
};
system.stateVersion = "19.09"; system.stateVersion = "19.09";
} }