nix: Various fixes

This commit is contained in:
Geoffrey Frogeye 2023-11-12 21:53:52 +01:00
parent b9974a790a
commit 3995e664d0
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
3 changed files with 12 additions and 5 deletions

View file

@ -241,7 +241,8 @@ in
enable = true;
enableZshIntegration = true;
defaultOptions = [ "--height 40%" "--layout=default" ];
fileWidgetOptions = [ "--preview '[[ -d {} ]] && ls -l --color=always {} || [[ \$(file --mime {}) =~ binary ]] && file --brief {} || (highlight -O ansi -l {} || coderay {} || rougify {} || cat {}) 2> /dev/null | head -500'" ];
fileWidgetOptions = [ "--preview '[[ -d {} ]] && ${pkgs.coreutils}/bin/ls -l --color=always {} || [[ \$(${pkgs.file}/bin/file --mime {}) =~ binary ]] && ${pkgs.file}/bin/file --brief {} || (${pkgs.highlight}/bin/highlight -O ansi -l {} || coderay {} || rougify {} || ${pkgs.coreutils}/bin/cat {}) 2> /dev/null | head -500'" ];
# file and friends are not in PATH by default... so here we want aboslute paths, which means those won't get reloaded. Meh.
};
# TODO highlight or bat
nix-index = {

View file

@ -103,7 +103,7 @@
# TODO Is a shell script even required?
}";
"${mod}+Shift+Return" = "exec ${config.programs.urxvt.package}/bin/urxvt";
"${mod}+p" = "exec ${pkgs.xfce.thunar}/bin/tunar";
"${mod}+p" = "exec ${pkgs.xfce.thunar}/bin/thunar";
"${mod}+m" = "exec ${config.programs.qutebrowser.package}/bin/qutebrowser --override-restore --backend=webengine";
# TODO --backend not useful anymore
# Volume control

View file

@ -17,9 +17,15 @@ in
};
# FIXME This doesn't work
fonts.monospace = {
package = pkgs.nerdfonts;
name = "DejaVuSansM Nerd Font";
fonts = {
sizes = {
applications = 10;
terminal = 10;
};
monospace = {
package = pkgs.nerdfonts;
name = "DejaVuSansM Nerd Font";
};
};
targets.vim.enable = false; # FIXME Not compatible with nixvim for now (there's a MR)