Compare commits

...
Author SHA1 Message Date
Olaf 303bf80633 bit of cleanup of linux remnants and libreoffice-bin from packages instead of mas 2026-09-18 10:59:57 +02:00
Olaf de3eb544a8 alicrity error [config change] 2026-09-16 16:22:03 +02:00
Olaf acdb913edb emacs startup error in projectile 2026-09-16 16:17:02 +02:00
Olaf 41a9a18e0a alacrity term definition 2026-09-16 16:16:48 +02:00
Olaf a0b974e71a texlive deprication 2026-09-16 16:16:36 +02:00
6 changed files with 36 additions and 53 deletions
+1 -10
View File
@@ -113,20 +113,11 @@ confirm_details
replace_tokens() { replace_tokens() {
local file="$1" local file="$1"
if [[ $(basename $1) != "apply" ]]; then if [[ $(basename $1) != "apply" ]]; then
if [[ "$OS" == "Darwin" ]]; then
# macOS # macOS
LC_ALL=C LANG=C sed -i '' -e "s/%USER%/$USERNAME/g" "$file" LC_ALL=C LANG=C sed -i '' -e "s/%USER%/$USERNAME/g" "$file"
LC_ALL=C LANG=C sed -i '' -e "s/%EMAIL%/$GIT_EMAIL/g" "$file" LC_ALL=C LANG=C sed -i '' -e "s/%EMAIL%/$GIT_EMAIL/g" "$file"
LC_ALL=C LANG=C sed -i '' -e "s/%NAME%/$GIT_NAME/g" "$file" LC_ALL=C LANG=C sed -i '' -e "s/%NAME%/$GIT_NAME/g" "$file"
else
# Linux or other
sed -i -e "s/%USER%/$USERNAME/g" "$file"
sed -i -e "s/%EMAIL%/$GIT_EMAIL/g" "$file"
sed -i -e "s/%NAME%/$GIT_NAME/g" "$file"
sed -i -e "s/%INTERFACE%/$PRIMARY_IFACE/g" "$file"
sed -i -e "s/%DISK%/$BOOT_DISK/g" "$file"
sed -i -e "s/%HOST%/$HOST_NAME/g" "$file"
fi
fi fi
} }
-10
View File
@@ -113,20 +113,10 @@ confirm_details
replace_tokens() { replace_tokens() {
local file="$1" local file="$1"
if [[ $(basename $1) != "apply" ]]; then if [[ $(basename $1) != "apply" ]]; then
if [[ "$OS" == "Darwin" ]]; then
# macOS # macOS
LC_ALL=C LANG=C sed -i '' -e "s/%USER%/$USERNAME/g" "$file" LC_ALL=C LANG=C sed -i '' -e "s/%USER%/$USERNAME/g" "$file"
LC_ALL=C LANG=C sed -i '' -e "s/%EMAIL%/$GIT_EMAIL/g" "$file" LC_ALL=C LANG=C sed -i '' -e "s/%EMAIL%/$GIT_EMAIL/g" "$file"
LC_ALL=C LANG=C sed -i '' -e "s/%NAME%/$GIT_NAME/g" "$file" LC_ALL=C LANG=C sed -i '' -e "s/%NAME%/$GIT_NAME/g" "$file"
else
# Linux or other
sed -i -e "s/%USER%/$USERNAME/g" "$file"
sed -i -e "s/%EMAIL%/$GIT_EMAIL/g" "$file"
sed -i -e "s/%NAME%/$GIT_NAME/g" "$file"
sed -i -e "s/%INTERFACE%/$PRIMARY_IFACE/g" "$file"
sed -i -e "s/%DISK%/$BOOT_DISK/g" "$file"
sed -i -e "s/%HOST%/$HOST_NAME/g" "$file"
fi
fi fi
} }
+1 -1
View File
@@ -49,7 +49,7 @@
:bind-keymap ("C-c p" . projectile-command-map) :bind-keymap ("C-c p" . projectile-command-map)
:defer 5 :defer 5
:config :config
(projectile-global-mode)) (projectile-mode +1))
+23 -25
View File
@@ -65,7 +65,7 @@ in
"Fedistar" = 6445863996; # (1.13.1) "Fedistar" = 6445863996; # (1.13.1)
"Home Assistant" = 1099568401; # (2025.7.1) "Home Assistant" = 1099568401; # (2025.7.1)
"Ice Cubes for Mastodon" = 6444915884; # (1.11.3) "Ice Cubes for Mastodon" = 6444915884; # (1.11.3)
"LibreOffice" = 1630474372; #"LibreOffice" = 1630474372;
"Monal - XMPP Chatting " = 1637078500; "Monal - XMPP Chatting " = 1637078500;
"MQTT Explorer" = 1455214828; # (0.3.5) "MQTT Explorer" = 1455214828; # (0.3.5)
"Native SQLite Manager" = 1416282836; # (1.31.0) "Native SQLite Manager" = 1416282836; # (1.31.0)
@@ -118,8 +118,19 @@ in
style = "Block"; style = "Block";
}; };
env = {
TERM = "xterm-256color";
};
window = { window = {
opacity = 1.0; opacity = 1.0;
dynamic_padding = true;
decorations = "full";
title = "Terminal";
class = {
instance = "Alacritty";
general = "Alacritty";
};
padding = { padding = {
x = 24; x = 24;
y = 24; y = 24;
@@ -131,18 +142,7 @@ in
family = "MesloLGS NF"; family = "MesloLGS NF";
style = "Regular"; style = "Regular";
}; };
size = lib.mkMerge [ size = 14;
(lib.mkIf pkgs.stdenv.hostPlatform.isLinux 10)
(lib.mkIf pkgs.stdenv.hostPlatform.isDarwin 14)
];
};
dynamic_padding = true;
decorations = "full";
title = "Terminal";
class = {
instance = "Alacritty";
general = "Alacritty";
}; };
colors = { colors = {
@@ -204,10 +204,7 @@ in
"vps3.evangineer.net".forwardAgent = true; "vps3.evangineer.net".forwardAgent = true;
"vps2.evangineer.net".forwardAgent = true; "vps2.evangineer.net".forwardAgent = true;
}; };
includes = [ includes = [ "/Users/${user}/.ssh/config_external" ];
(lib.mkIf pkgs.stdenv.hostPlatform.isLinux "/home/${user}/.ssh/config_external")
(lib.mkIf pkgs.stdenv.hostPlatform.isDarwin "/Users/${user}/.ssh/config_external")
];
}; };
gpg = { gpg = {
@@ -231,19 +228,19 @@ in
}; };
initContent = initContent =
let let
zshConfigBefore = lib.mkBefore ''
if [[ "$TERM" == "alacritty" ]] && ! infocmp alacritty >/dev/null 2>&1; then
export TERM="xterm-256color"
fi
export TERMINFO_DIRS="$HOME/.nix-profile/share/terminfo:/run/current-system/sw/share/terminfo:/nix/var/nix/profiles/default/share/terminfo:/usr/share/terminfo"
'';
zshConfigEarlyInit = lib.mkOrder 500 '' zshConfigEarlyInit = lib.mkOrder 500 ''
if [[ -f /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh ]]; then if [[ -f /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh ]]; then
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
. /nix/var/nix/profiles/default/etc/profile.d/nix.sh . /nix/var/nix/profiles/default/etc/profile.d/nix.sh
fi fi
if [[ "$TERM" == "alacritty" ]]; then
export TERMINFO_DIRS="$HOME/.nix-profile/share/terminfo:/run/current-system/sw/share/terminfo:/nix/var/nix/profiles/default/share/terminfo:/usr/share/terminfo"
if ! infocmp alacritty >/dev/null 2>&1; then
export TERM="xterm-256color"
fi
fi
# GPGAgent for SSH # GPGAgent for SSH
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
@@ -285,6 +282,7 @@ in
''; '';
in in
lib.mkMerge [ lib.mkMerge [
zshConfigBefore
zshConfigEarlyInit zshConfigEarlyInit
zshConfigLastInit zshConfigLastInit
]; ];
@@ -581,7 +579,7 @@ in
{ path = "/Applications/Visual Studio Code.app/"; } { path = "/Applications/Visual Studio Code.app/"; }
{ path = "/Applications/Home Assistant.app/"; } { path = "/Applications/Home Assistant.app/"; }
{ path = "/Applications/reMarkable.app/"; } { path = "/Applications/reMarkable.app/"; }
{ path = "/Applications/LibreOffice.app/"; } { path = "/run/current-system/Applications/LibreOffice.app/"; }
{ path = "/Applications/Microsoft Word.app/"; } { path = "/Applications/Microsoft Word.app/"; }
{ path = "/Applications/Microsoft PowerPoint.app/"; } { path = "/Applications/Microsoft PowerPoint.app/"; }
{ path = "/Applications/Microsoft Teams.app/"; } { path = "/Applications/Microsoft Teams.app/"; }
+9 -5
View File
@@ -35,6 +35,7 @@ with pkgs;
killall killall
minicom minicom
mtr mtr
ncurses
ncdu ncdu
nodejs nodejs
@@ -86,6 +87,7 @@ with pkgs;
hunspell hunspell
iftop iftop
inetutils # includes Telnet inetutils # includes Telnet
libreoffice-bin
ripgrep ripgrep
tmux tmux
tree tree
@@ -96,7 +98,9 @@ with pkgs;
uv uv
(python3.withPackages ( (python3.withPackages (
python-pkgs: with python-pkgs; [ python-pkgs:
with python-pkgs;
[
bidict bidict
blinker blinker
certifi certifi
@@ -150,8 +154,8 @@ with pkgs;
xml2rfc xml2rfc
zotero zotero
(texlive.combine { (texliveSmall.withPackages (
inherit (texlive) texlivePackages: with texlivePackages; [
apa6 apa6
apa7 apa7
apacite apacite
@@ -200,8 +204,8 @@ with pkgs;
xecjk xecjk
xifthen xifthen
xurl xurl
; ]
}) ))
dockutil dockutil
] ]
+1 -1
View File
@@ -24,7 +24,7 @@ self: super: with super; {
description = "Set of font icons from the open source collection Feather Icons"; description = "Set of font icons from the open source collection Feather Icons";
license = licenses.mit; license = licenses.mit;
maintainers = [ maintainers.dlyons ]; maintainers = [ maintainers.dlyons ];
platforms = [ platforms.x86_64-linux platforms.x86_64-darwin ]; platforms = [ platforms.x86_64-darwin ];
}; };
}; };
} }