Shell and terminal tweaks

This commit is contained in:
Erwin Boskma 2023-04-25 09:48:32 +02:00
parent 60f2b7666c
commit 012a2b9764
Signed by: erwin
SSH key fingerprint: SHA256:CyeNoWXd3kjX2Nwu6pDxxdS7OqmPVOy0NavA/KU/ntU
5 changed files with 20 additions and 9 deletions

View file

@ -86,10 +86,9 @@ let dark_theme = {
}
# External completer example
# let carapace_completer = {|spans|
# carapace $spans.0 nushell $spans | from json
# }
let carapace_completer = {|spans|
carapace $spans.0 nushell $spans | from json
}
# The default config record. This is where much of your global configuration is setup.
let-env config = {
@ -182,8 +181,8 @@ let-env config = {
algorithm: "fuzzy" # prefix or fuzzy
external: {
enable: true # set to false to prevent nushell looking into $env.PATH to find more suggestions, `false` recommended for WSL users as this look up my be very slow
max_results: 100 # setting it lower can improve completion performance at the cost of omitting some options
completer: null # $carapace_completer # check 'carapace_completer' above as an example
# max_results: 100 # setting it lower can improve completion performance at the cost of omitting some options
completer: $carapace_completer # check 'carapace_completer' above as an example
}
}
filesize: {

View file

@ -26,6 +26,8 @@ in
extraConfig = ''
alias vim = nvim
alias tree = ${pkgs.exa}/bin/exa -Fb --git --tree
let-env LS_COLORS = (${pkgs.vivid}/bin/vivid generate dracula | str trim)
'';
};

View file

@ -14,6 +14,10 @@ in
type = types.package;
default = pkgs.rofi;
};
terminal = mkOption {
description = "Path to the terminal program rofi will use to execute console applications";
type = types.path;
};
};
config = mkIf cfg.enable {
@ -21,7 +25,7 @@ in
enable = true;
package = pkgs.rofi-wayland;
theme = ./launch.rasi;
terminal = "${pkgs.alacritty}/bin/alacritty";
terminal = cfg.terminal;
extraConfig = {
modi = "drun";
font = "Overpass Nerd Font 10";

View file

@ -26,7 +26,8 @@ in
eboskma = {
programs = {
alacritty.enable = true;
alacritty.enable = false;
atuin.enable = true;
bat.enable = true;
cargo = {
enable = true;
@ -105,6 +106,7 @@ in
rofi = {
enable = true;
package = pkgs.rofi-wayland;
terminal = config.home-manager.users.erwin.wayland.windowManager.sway.config.terminal;
};
vscode.enable = true;
solvespace.enable = true;

View file

@ -23,6 +23,7 @@ in
var.workSystem = true;
programs = {
alacritty.enable = true;
atuin.enable = true;
bat.enable = true;
cargo = {
enable = true;
@ -74,7 +75,10 @@ in
}
];
};
rofi.enable = true;
rofi = {
enable = true;
terminal = config.home-manager.users.erwin.xsession.windowManager.i3.config.terminal;
};
ssh.enable = true;
starship.enable = true;
zellij = {