feat: change calibre to support unrar, add ruff lsp, fix zsh flake hook
This commit is contained in:
parent
ce7da77e9c
commit
ba29acb89d
3 changed files with 12 additions and 7 deletions
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
obsidian # a powerful knowledge base that works on top of a local folder of plain text markdown files
|
||||
gimp # the gnu image manipulation program
|
||||
calibre # comprehensive e-book software
|
||||
(calibre.override { unrarSupport = true; })
|
||||
libreoffice # comprehensive, professional-quality productivity suite, a variant of openoffice.org
|
||||
xournalpp # a handwriting notetaking software with pdf annotation support
|
||||
libsForQt5.okular # kde document viewer
|
||||
|
|
|
|||
|
|
@ -13,7 +13,9 @@
|
|||
rust-analyzer
|
||||
gopls
|
||||
nixd
|
||||
ruff # an extremely fast python linter
|
||||
vscode-langservers-extracted
|
||||
nodePackages.typescript-language-server
|
||||
tailwindcss-language-server
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ... }: {
|
||||
{ config, ... }: {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
|
|
@ -22,11 +22,14 @@
|
|||
initExtra = ''
|
||||
nix_dev_env() {
|
||||
FLAKE="$PWD/flake.nix"
|
||||
[[ -z "$CURRENT_FLAKE_ENV" ]] && \
|
||||
[[ -f $FLAKE ]] && \
|
||||
ZSH_PREFIX="$ZSH_PREFIX(flake)" \
|
||||
CURRENT_FLAKE_ENV=$FLAKE \
|
||||
nix develop -c $SHELL 2> /dev/null
|
||||
[[ -z "$CURRENT_FLAKE_ENV" ]] && \
|
||||
[[ -f $FLAKE ]] && \
|
||||
echo -n "Enter nix develop? (Y/N): " && \
|
||||
read confirm && \
|
||||
[[ $confirm == [yY] || $confirm == [yY][eE][sS] ]] && \
|
||||
ZSH_PREFIX="$ZSH_PREFIX(flake)" \
|
||||
CURRENT_FLAKE_ENV=$FLAKE \
|
||||
nix develop -c $SHELL
|
||||
}
|
||||
autoload -U add-zsh-hook
|
||||
add-zsh-hook chpwd nix_dev_env
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue