Biggest fire

This commit is contained in:
Javier Feliz 2025-08-16 00:39:44 -04:00
parent c1d3821667
commit 44f55e90bc
4 changed files with 23 additions and 20 deletions

View File

@ -14,6 +14,7 @@ let
hide_window_decorations yes
map ctrl+shift+t new_tab_with_cwd
map ctrl+r send_text all \x15shellhistory\r
'';
in
{

View File

@ -60,11 +60,15 @@
# Golang
gr = "go run .";
gmt = "go mod tidy";
};
# Additional bash configuration
initContent = ''
function shellhistory() {
cmd=$(cat .zsh_history | grep -E ^: | sed "s/^: //" | sed "s|:0;| |" | sort --reverse | uniq | awk '{print substr($0, index($0, $2))}' | fzf)
eval "$cmd"
}
function pape() {
hyprctl hyprpaper preload $1
hyprctl hyprpaper wallpaper ", $1"

View File

@ -1,4 +1,4 @@
{ lib, ... }:
{ lib, pkgs, ... }:
let
nasIp = "10.89.0.15";
@ -41,8 +41,11 @@ in
udisks2.enable = true;
};
fileSystems = fsConfig;
# Add NFS utilities
environment.systemPackages = with pkgs; [
nfs-utils
];
# # Optional: Create mount directories
# systemd.tmpfiles.rules = map (share: "d /mnt/${share} 0755 root root -") shares;
fileSystems = fsConfig;
systemd.tmpfiles.rules = map (share: "d /mnt/${share} 0755 root root -") shares;
}

View File

@ -60,24 +60,19 @@
enable = true;
globalConfig = ''
auto_https off
admin off
frankenphp
order php_server before file_server
'';
extraConfig = ''
*.test:80 {
root * /home/javi/projects/{labels.1}
# Specific subdomain first (more specific routes come first)
http://caddytest.test {
respond "We in caddyland"
}
# Try /public directory first (for Laravel)
@laravel file /home/javi/projects/{labels.1}/public/index.php
root @laravel /home/javi/projects/{labels.1}/public
# PHP FastCGI
php_fastcgi unix//run/phpfpm/www.sock
# File server for static assets
file_server
# Laravel specific - handle missing files
try_files {path} {path}/ /index.php?{query}
# Wildcard for other .test domains
http://*.test {
root * /home/javi/projects/{labels.1}/public
php_server
}
'';
};