refactoring shell stuff
This commit is contained in:
parent
b2ce760a59
commit
8f62ae3202
8 changed files with 86 additions and 83 deletions
42
flake.lock
generated
42
flake.lock
generated
|
@ -137,11 +137,11 @@
|
||||||
"nixpkgs-stable": "nixpkgs-stable"
|
"nixpkgs-stable": "nixpkgs-stable"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1751337127,
|
"lastModified": 1751361224,
|
||||||
"narHash": "sha256-mP8SC6SWFZiji6DH65PObaKUphLLCN8FoiXmVztdR5o=",
|
"narHash": "sha256-x7+c5lFhoZapaQGvkyExaF8mt5u29+4l0DJwQWUspH4=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "emacs-overlay",
|
"repo": "emacs-overlay",
|
||||||
"rev": "3e2b295e2dcad08449f48669a2d1ef2596b2e5d3",
|
"rev": "6ab8bb6826895f1ac82366eddeed184a69729e5a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -541,11 +541,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1751336185,
|
"lastModified": 1751384836,
|
||||||
"narHash": "sha256-ptnVr2x+sl7cZcTuGx/0BOE2qCAIYHTcgfA+/h60ml0=",
|
"narHash": "sha256-7xRbl/VLXxE5DzJmk1wdKWJmPx8rAfNC/a6mXtqp5cc=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "96354906f58464605ff81d2f6c2ea23211cbf051",
|
"rev": "479f8889675770881033878a1c114fbfc6de7a4d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -662,11 +662,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1751031069,
|
"lastModified": 1751375534,
|
||||||
"narHash": "sha256-5TnciluG7MGHoH5abAuC8UwRVrdEu7gKcpkz/bKb9N4=",
|
"narHash": "sha256-9z1W64dDVtVxqgPzUbjIQqRfygg1hdivUOZ6d/H+yFg=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nh",
|
"repo": "nh",
|
||||||
"rev": "992aa30f55d35395b129376f16809319a9b23b16",
|
"rev": "d0abb8eebe32f79ce4659e68dd777cf497a5d3d2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -832,11 +832,11 @@
|
||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1750837715,
|
"lastModified": 1751379130,
|
||||||
"narHash": "sha256-2m1ceZjbmgrJCZ2PuQZaK4in3gcg3o6rZ7WK6dr5vAA=",
|
"narHash": "sha256-TObxiGbuX/4FbOnzDRvznfMUjIgS+d71+BetT35EOB8=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "98236410ea0fe204d0447149537a924fb71a6d4f",
|
"rev": "8b1f894089789eb39eacf0d6891d1e17cc3a84ab",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -1453,11 +1453,11 @@
|
||||||
"nixpkgs": "nixpkgs_7"
|
"nixpkgs": "nixpkgs_7"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1751044827,
|
"lastModified": 1751383914,
|
||||||
"narHash": "sha256-hoaujl57LLq8YxIDUKF4HNKp9I6rkqhy8DfC8OOE2js=",
|
"narHash": "sha256-v+lQnPqTUVuo/aL8pZ5kJWo9VwWUjlGTenq4FXRzYYY=",
|
||||||
"owner": "Alexays",
|
"owner": "Alexays",
|
||||||
"repo": "Waybar",
|
"repo": "Waybar",
|
||||||
"rev": "8516d457ad63880e359cb650581deb52d9fc3559",
|
"rev": "88766de1ee496c57af3823557c43d435ced3daa1",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -1500,11 +1500,11 @@
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "nix",
|
"dir": "nix",
|
||||||
"lastModified": 1750745566,
|
"lastModified": 1751352443,
|
||||||
"narHash": "sha256-uu3LULgJSgVBWYgdf3Za9T/kTNCu394togdfRIEqWdg=",
|
"narHash": "sha256-psuDPdulVRIl2DvVCvNfl4ZkKhUlZ/9/RvHc7vWr0js=",
|
||||||
"owner": "wez",
|
"owner": "wez",
|
||||||
"repo": "wezterm",
|
"repo": "wezterm",
|
||||||
"rev": "2deb317ec069b8f94ec1282253faaa71a8d997fc",
|
"rev": "54675c9c35788466f7828f5d722832bd1f310a62",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -1599,11 +1599,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1751321974,
|
"lastModified": 1751383329,
|
||||||
"narHash": "sha256-0NtaKDtjY8Gmj++e8ZzpFkKFp6+7AcBW+Qefj4LihAk=",
|
"narHash": "sha256-52dUY8jEkuXEIZINYb+AVsrmw6FxMhBAG3K9J/2qiSo=",
|
||||||
"owner": "0xc000022070",
|
"owner": "0xc000022070",
|
||||||
"repo": "zen-browser-flake",
|
"repo": "zen-browser-flake",
|
||||||
"rev": "03b5b1e1540b03e77e22a66379c3cddc3a7197f5",
|
"rev": "f29a4fece3b76c3e4579d67e2cf0cb8037f6a351",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -69,6 +69,15 @@ in
|
||||||
GTRASH_PUT_RM_MODE = "true";
|
GTRASH_PUT_RM_MODE = "true";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
file = {
|
||||||
|
".signature".source = ./dotfiles/dot_signature;
|
||||||
|
".local/bin" = {
|
||||||
|
source = ./dotfiles/dot_local/bin;
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
|
".ssh/config".source = ./dotfiles/dot_ssh/config;
|
||||||
|
};
|
||||||
|
|
||||||
stateVersion = "25.05";
|
stateVersion = "25.05";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -138,27 +147,13 @@ in
|
||||||
GSK_RENDERER = "ngl";
|
GSK_RENDERER = "ngl";
|
||||||
QT_QPA_PLATFORM = "xcb";
|
QT_QPA_PLATFORM = "xcb";
|
||||||
MOZ_ENABLE_WAYLAND = 1;
|
MOZ_ENABLE_WAYLAND = 1;
|
||||||
# XCURSOR_SIZE = 32;
|
|
||||||
# XCURSOR_THEME = "Bibata-Modern-Classic";
|
|
||||||
DISPLAY = ":0";
|
DISPLAY = ":0";
|
||||||
WAYLAND_DISPLAY="wayland-1";
|
WAYLAND_DISPLAY="wayland-1";
|
||||||
ELECTRON_OZONE_PLATFORM_HINT = "auto";
|
ELECTRON_OZONE_PLATFORM_HINT = "auto";
|
||||||
};
|
};
|
||||||
};
|
tmpfiles.rules = [
|
||||||
|
"L /home/emenel/mounts - - - - /mnt"
|
||||||
systemd.user.tmpfiles.rules = [
|
"L /home/emenel/Documents - - - - /home/emenel/documents"
|
||||||
"L /home/emenel/mounts - - - - /mnt"
|
];
|
||||||
"L /home/emenel/Documents - - - - /home/emenel/documents"
|
|
||||||
];
|
|
||||||
|
|
||||||
home = {
|
|
||||||
file = {
|
|
||||||
".signature".source = ./dotfiles/dot_signature;
|
|
||||||
".local/bin" = {
|
|
||||||
source = ./dotfiles/dot_local/bin;
|
|
||||||
recursive = true;
|
|
||||||
};
|
|
||||||
".ssh/config".source = ./dotfiles/dot_ssh/config;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -517,7 +517,6 @@ in
|
||||||
action = spawn "/home/emenel/.local/bin/niri-screenshot-window";
|
action = spawn "/home/emenel/.local/bin/niri-screenshot-window";
|
||||||
hotkey-overlay.title = "Screenshot Window";
|
hotkey-overlay.title = "Screenshot Window";
|
||||||
};
|
};
|
||||||
|
|
||||||
"Mod+4" = {
|
"Mod+4" = {
|
||||||
action = screenshot;
|
action = screenshot;
|
||||||
hotkey-overlay.title = "Screenshot";
|
hotkey-overlay.title = "Screenshot";
|
||||||
|
@ -530,10 +529,11 @@ in
|
||||||
# moving the mouse or pressing any other key.
|
# moving the mouse or pressing any other key.
|
||||||
"Mod+Shift+P" = {
|
"Mod+Shift+P" = {
|
||||||
action = power-off-monitors;
|
action = power-off-monitors;
|
||||||
|
hotkey-overlay.title = "Power Off Monitors";
|
||||||
};
|
};
|
||||||
"Mod+Shift+Alt+P" = {
|
"Mod+Shift+Alt+P" = {
|
||||||
hotkey-overlay.title = "Turn Laptop Display On";
|
hotkey-overlay.title = "Turn Laptop Display On";
|
||||||
action = spawn "niri msg output eDP-1 on";
|
action = spawn "niri" "msg" "output" "eDP-1" "on";
|
||||||
allow-when-locked = true;
|
allow-when-locked = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
unzip
|
unzip
|
||||||
zip
|
zip
|
||||||
tldr
|
tldr
|
||||||
pkgs-stable.rich-cli
|
rich-cli
|
||||||
gnupg
|
gnupg
|
||||||
imagemagick
|
imagemagick
|
||||||
|
|
||||||
|
@ -84,20 +84,29 @@
|
||||||
trash-cli
|
trash-cli
|
||||||
poppler_utils
|
poppler_utils
|
||||||
|
|
||||||
fishPlugins.foreign-env
|
|
||||||
fishPlugins.fzf-fish
|
|
||||||
fishPlugins.bass
|
|
||||||
fishPlugins.autopair
|
|
||||||
fishPlugins.forgit
|
|
||||||
fishPlugins.colored-man-pages
|
|
||||||
|
|
||||||
television
|
television
|
||||||
bash-env-json
|
bash-env-json
|
||||||
bash-env-nushell
|
bash-env-nushell
|
||||||
nufmt
|
nufmt
|
||||||
vivid
|
vivid
|
||||||
|
|
||||||
|
caddy
|
||||||
];
|
];
|
||||||
|
|
||||||
|
home.shellAliases = {
|
||||||
|
"em" = "emacsclient -n -r";
|
||||||
|
"fg" = "job unfreeze";
|
||||||
|
"emm" = "emacsclient -nw";
|
||||||
|
"gtr" = "gtrash restore";
|
||||||
|
"rmr" = "gtrash restore";
|
||||||
|
"rm" = "gtrash put";
|
||||||
|
"lg" = "lazygit";
|
||||||
|
"cat" = "bat --plain";
|
||||||
|
"sbcl" = "rlwrap sbcl";
|
||||||
|
"yabup" = "yabridgectl sync --prune";
|
||||||
|
"serve" = "caddy file-server -l :1234 -r";
|
||||||
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
carapace = {
|
carapace = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -117,6 +126,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
pay-respects = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
zoxide = {
|
zoxide = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
@ -177,16 +189,6 @@
|
||||||
xdg.configFile."rbw".source = ./shell-conf/rbw;
|
xdg.configFile."rbw".source = ./shell-conf/rbw;
|
||||||
xdg.configFile."isd_tui/config.yaml".source = ./shell-conf/isd_tui/config.yaml;
|
xdg.configFile."isd_tui/config.yaml".source = ./shell-conf/isd_tui/config.yaml;
|
||||||
|
|
||||||
home.file.".config/fish/functions" = {
|
|
||||||
source = ./shell-conf/fish/functions;
|
|
||||||
recursive = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
home.file.".config/fish/completions" = {
|
|
||||||
source = ./shell-conf/fish/completions;
|
|
||||||
recursive = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
home.file.".local/share/flf".source = ./shell-conf/flf;
|
home.file.".local/share/flf".source = ./shell-conf/flf;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,18 +1,16 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
fishPlugins.foreign-env
|
||||||
|
fishPlugins.fzf-fish
|
||||||
|
fishPlugins.bass
|
||||||
|
fishPlugins.autopair
|
||||||
|
fishPlugins.colored-man-pages
|
||||||
|
];
|
||||||
|
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
shellAliases = {
|
|
||||||
"em" = "emacsclient -n -r";
|
|
||||||
"emm" = "emacsclient -nw";
|
|
||||||
"mkdir" = "mkdir -pv";
|
|
||||||
"gtr" = "gtrash restore";
|
|
||||||
"rmr" = "gtrash restore";
|
|
||||||
"rm" = "gtrash put";
|
|
||||||
"lg" = "lazygit";
|
|
||||||
"cat" = "bat --plain";
|
|
||||||
};
|
|
||||||
|
|
||||||
# change fzf variable search to C-M-v
|
# change fzf variable search to C-M-v
|
||||||
interactiveShellInit = ''
|
interactiveShellInit = ''
|
||||||
|
@ -31,4 +29,14 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.file.".config/fish/functions" = {
|
||||||
|
source = ./functions;
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
home.file.".config/fish/completions" = {
|
||||||
|
source = ./completions;
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
$env.config.completions.external.completer = $fish_completer
|
$env.config.completions.external.completer = $fish_completer
|
||||||
$env.LS_COLORS = (vivid generate one-dark)
|
$env.LS_COLORS = (vivid generate one-dark)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def --env doomup [...args] {
|
def --env doomup [...args] {
|
||||||
doom sync ...$args
|
doom sync ...$args
|
||||||
doom gc
|
doom gc
|
||||||
|
@ -13,3 +11,11 @@ def --env doomup [...args] {
|
||||||
def --env lla [...args] {
|
def --env lla [...args] {
|
||||||
ls -alm ...$args | select name size type mode
|
ls -alm ...$args | select name size type mode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# def --env pullall [] {
|
||||||
|
|
||||||
|
# }
|
||||||
|
|
||||||
|
def pdf-compress [...args] {
|
||||||
|
gs -sDEVICE=pdfwrite -dPDFSETTINGS=/printer -dNOPAUSE -dBATCH -sOutputFile=output.pdf $args
|
||||||
|
}
|
||||||
|
|
|
@ -4,22 +4,14 @@
|
||||||
programs.nushell = {
|
programs.nushell = {
|
||||||
enable = true;
|
enable = true;
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
"em" = "emacsclient -n -r";
|
|
||||||
"ls" = "ls -m";
|
"ls" = "ls -m";
|
||||||
|
"ll" = "ls -m";
|
||||||
"la" = "ls -am";
|
"la" = "ls -am";
|
||||||
"lz" = "eza -l";
|
"lz" = "eza -l";
|
||||||
"lza" = "eza -al";
|
"lza" = "eza -al";
|
||||||
"emm" = "emacsclient -nw";
|
"y" = "job spawn { wezterm --config-file ~/.config/wezterm/launcher.lua start --always-new-process --cwd (pwd) yazi }";
|
||||||
"gtr" = "gtrash restore";
|
|
||||||
"rmr" = "gtrash restore";
|
|
||||||
"rm" = "gtrash put";
|
|
||||||
"lg" = "lazygit";
|
|
||||||
"cat" = "bat --plain";
|
|
||||||
"y" = "wezterm --config-file ~/.config/wezterm/launcher.lua start --always-new-process --cwd (pwd) yazi &";
|
|
||||||
"sbcl" = "rlwrap sbcl";
|
|
||||||
"yabup" = "yabridgectl sync --prune";
|
|
||||||
};
|
};
|
||||||
# configFile.source = ./config.nu;
|
configFile.source = ./config.nu;
|
||||||
loginFile.text = ''
|
loginFile.text = ''
|
||||||
${pkgs.figlet}/bin/figlet -f ($env.HOME)/.local/share/flf/wavy.flf (hostname)
|
${pkgs.figlet}/bin/figlet -f ($env.HOME)/.local/share/flf/wavy.flf (hostname)
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -44,7 +44,7 @@ pref_by_location:setup({
|
||||||
|
|
||||||
-- show_hidden: true|false (Optional) https://yazi-rs.github.io/docs/configuration/yazi#mgr.show_hidden
|
-- show_hidden: true|false (Optional) https://yazi-rs.github.io/docs/configuration/yazi#mgr.show_hidden
|
||||||
|
|
||||||
-- Match any folder with name "Downloads"
|
-- Match any folder with name "downloads"
|
||||||
{ location = ".*/downloads", sort = { "mtime", reverse = true, dir_first = false }, linemode = "time_and_size" },
|
{ location = ".*/downloads", sort = { "mtime", reverse = true, dir_first = false }, linemode = "time_and_size" },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue