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]
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
audio/aac=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/png=org.gnome.eog.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/discord-455712169795780630=discord-455712169795780630.desktop
x-scheme-handler/http=firefox.desktop

View file

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

View file

@ -51,5 +51,7 @@ nmap <leader>rn <Plug>(coc-rename)
xmap <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=? Fold :call CocAction('fold', <f-args>)

View file

@ -3,8 +3,16 @@
{
services.printing = {
enable = true;
drivers = [
(pkgs.pkgsi686Linux.callPackage ../externals/packages/hll2300d { })
drivers = with pkgs; [
(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
];
# 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";
}