This commit is contained in:
2026-03-03 16:30:58 +01:00
parent 5f34d32807
commit 6a49646d5e
34 changed files with 1229 additions and 1044 deletions

View File

@@ -23,6 +23,14 @@
enableZshIntegration = true;
nix-direnv.enable = true;
};
programs.lazygit = {
enable = true;
# TODO: Figure out how to handle this flag. Set it in shell.nix or here?
# Maybe set it conditionally on if zsh is enabled?
# Might be relevant: lib.hm.shell.mkZshIntegrationOption
enableZshIntegration = true;
};
};
};
}

View File

@@ -47,7 +47,6 @@
rustc
rust-analyzer
rustfmt
markdownlint-cli2
astro-language-server
tinymist
typstyle

View File

@@ -14,9 +14,6 @@ require("lz.n").load({
event = { "BufReadPre", "BufNewFile" },
after = function()
local lint = require("lint")
lint.linters_by_ft = {
markdown = { "markdownlint-cli2" },
}
-- Create autocommand which carries out the actual linting
-- on the specified events.

10
modules/dev/podman.nix Normal file
View File

@@ -0,0 +1,10 @@
{ ... }:
{
lux.podman = {
homeManager = {
services.podman = {
enable = true;
};
};
};
}

View File

@@ -7,7 +7,7 @@
# Delete zcompdump on config switch, so that we regenerate completions
home.activation = {
clearZshCompDump = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
rm -f '${config.programs.zsh.dotDir}/.zcompdump*'
rm -f "${config.programs.zsh.dotDir}"/.zcompdump*
'';
};
@@ -17,20 +17,16 @@
enableCompletion = true;
completionInit = ''
setopt EXTENDED_GLOB
autoload -U compinit
local dump_path="${config.programs.zsh.dotDir}/.zcompdump"
local cache_check=( $dump_path(#qN.mh-24) )
compinit -C
if (( $#cache_check )); then
# Array has items: File exists and is new
compinit -C
else
# Array is empty: File is older than 24 hours OR doesn't exist
compinit
zcompile "$dump_path" &
fi
ZCOMPDUMP="${config.programs.zsh.dotDir}/.zcompdump"
# Compile it in the background
{
if [[ -s "$ZCOMPDUMP" && (! -s "''${ZCOMPDUMP}.zwc" || "$ZCOMPDUMP" -nt "''${ZCOMPDUMP}.zwc") ]]; then
zcompile "$ZCOMPDUMP"
fi
} &!
'';
autosuggestion.enable = true;

View File

@@ -22,7 +22,7 @@
# Window layout
confirm_os_window_close = 0;
window_padding_width = 5;
window_padding_width = 3;
# Advanced
update_check_interval = 0;