This commit is contained in:
Miguel Palhas
2025-11-24 13:21:00 +00:00
parent 5098792587
commit 265d97cecc
11 changed files with 88 additions and 33 deletions
Generated
+21 -21
View File
@@ -45,11 +45,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1762980239, "lastModified": 1763759067,
"narHash": "sha256-8oNVE8TrD19ulHinjaqONf9QWCKK+w4url56cdStMpM=", "narHash": "sha256-LlLt2Jo/gMNYAwOgdRQBrsRoOz7BPRkzvNaI/fzXi2Q=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "flake-parts", "repo": "flake-parts",
"rev": "52a2caecc898d0b46b2b905f058ccc5081f842da", "rev": "2cccadc7357c0ba201788ae99c4dfa90728ef5e0",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -115,11 +115,11 @@
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_3"
}, },
"locked": { "locked": {
"lastModified": 1763363037, "lastModified": 1763967824,
"narHash": "sha256-y0Z6CvLpPAwyGGhx+EEKxvWsaMaf0dgl4MJtF6QlWuU=", "narHash": "sha256-/7Rqw0Y1hDGPnbX6IEcWSKhx5M4nJl539j9FvSa4C80=",
"owner": "shazow", "owner": "shazow",
"repo": "foundry.nix", "repo": "foundry.nix",
"rev": "0cc7fdcae7cdf09d0585c2b8e0024e2189a37c02", "rev": "bbf79c88974d4bae764a5353d2a7b4ce63a8f053",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -333,11 +333,11 @@
}, },
"nixpkgs_5": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1763191728, "lastModified": 1763618868,
"narHash": "sha256-esRhOS0APE6k40Hs/jjReXg+rx+J5LkWw7cuWFKlwYA=", "narHash": "sha256-v5afmLjn/uyD9EQuPBn7nZuaZVV9r+JerayK/4wvdWA=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "1d4c88323ac36805d09657d13a5273aea1b34f0c", "rev": "a8d610af3f1a5fb71e23e08434d8d61a466fc942",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -387,11 +387,11 @@
"systems": "systems_3" "systems": "systems_3"
}, },
"locked": { "locked": {
"lastModified": 1763334942, "lastModified": 1763984728,
"narHash": "sha256-ORaewCyY3Fff+XaGrRjWi0XYzC22YTr/H3oL9c9k+9I=", "narHash": "sha256-i07UsSg+kedev5Bh/p/ERG1xrbRivOztih8laHZR6W8=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixvim", "repo": "nixvim",
"rev": "59af09b1814538b826f30eac8024d126d8c36efc", "rev": "3dc952d69cd38cdc3ad3ec7570fc4a1caed2bfea",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -426,11 +426,11 @@
"nvchad-starter": { "nvchad-starter": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1761549665, "lastModified": 1763985834,
"narHash": "sha256-mmJDsK3cshuCfwQMuhQTiPfjnuZ3OFCSYIEojtgLXzs=", "narHash": "sha256-aP8d8J7Zc/rbAJHzo6cJ8hiVGGiRkuNC/3ScTCDqRmQ=",
"owner": "naps62", "owner": "naps62",
"repo": "nvchad-starter", "repo": "nvchad-starter",
"rev": "2b736718f5114252f01f5ad205729077762b5dae", "rev": "8223b4f0c7a711887a1edc528ec7566942fad45e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -450,11 +450,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1763090138, "lastModified": 1763694739,
"narHash": "sha256-7h9pE4Sm/gk3KSa0N/kTSm3Jr3VSriKhCzWe94r9nRE=", "narHash": "sha256-zpT3XysPItqHuYvygFfC8ASzKNGExARZCrfDQUul1v4=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nix4nvchad", "repo": "nix4nvchad",
"rev": "856b909046ad6f07e8337736ecf3702460be2b0f", "rev": "713a3693da4832c169aa90e8cae6e7a45b8c7949",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -698,11 +698,11 @@
"nixpkgs": "nixpkgs_7" "nixpkgs": "nixpkgs_7"
}, },
"locked": { "locked": {
"lastModified": 1763353619, "lastModified": 1763958868,
"narHash": "sha256-y30wSzjr7QiO4OVB/Tt7dnLRLIuK2EpaftpKeMMLGu0=", "narHash": "sha256-IOP3fAjawH68FL1RDakySNRK6XNYdZajX538Q3U58Y0=",
"owner": "0xc000022070", "owner": "0xc000022070",
"repo": "zen-browser-flake", "repo": "zen-browser-flake",
"rev": "7463345c68cfdd9e92e2d40e390b1a802b0f2add", "rev": "15db6bda557066f3525010209bde4ec5f968f2ba",
"type": "github" "type": "github"
}, },
"original": { "original": {
+2 -1
View File
@@ -15,12 +15,13 @@
../common/programs/zen-browser.nix ../common/programs/zen-browser.nix
../common/programs/hyprland ../common/programs/hyprland
../common/programs/i3.nix ../common/programs/i3.nix
../common/programs/kitty.nix ../common/programs/kitty
../common/programs/syncthing.nix ../common/programs/syncthing.nix
../common/programs/unity.nix ../common/programs/unity.nix
../common/programs/ethui.nix ../common/programs/ethui.nix
../common/programs/gpg.nix ../common/programs/gpg.nix
../common/features/xdg.nix ../common/features/xdg.nix
../common/programs/3d.nix
../common/features/bluetooth.nix ../common/features/bluetooth.nix
./monitors.nix ./monitors.nix
]; ];
+1
View File
@@ -17,6 +17,7 @@
./aider.nix ./aider.nix
./cpp.nix ./cpp.nix
./claude ./claude
./yazi
]; ];
programs = { programs = {
+27 -6
View File
@@ -44,6 +44,7 @@ in
gaps_in = 0; gaps_in = 0;
gaps_out = 0; gaps_out = 0;
snap = { snap = {
enabled = true;
border_overlap = true; border_overlap = true;
}; };
@@ -54,6 +55,7 @@ in
misc = { misc = {
disable_hyprland_logo = true; disable_hyprland_logo = true;
disable_splash_rendering = true; disable_splash_rendering = true;
new_window_takes_over_fullscreen = 2;
}; };
xwayland = { xwayland = {
@@ -104,6 +106,15 @@ in
"nm-applet" "nm-applet"
"hyprsunset" "hyprsunset"
]; ];
workspace = [
# no gaps when only window
"w[t1], gapsout:0, gapsin:0"
"w[tg1], gapsout:0, gapsin:0"
"f[1], gapsout:0, gapsin:0"
"special:terminal, on-created-empty:[float; size 1000 800; move center] kitty, persistent:false"
"special:yazi, on-created-empty:[float; size 1000 800; move center] kitty --session sessions/yazi, persistent:false"
];
windowrulev2 = [ windowrulev2 = [
# imv # imv
@@ -120,23 +131,28 @@ in
"move cursor -50% -50%, class:pavucontrol" "move cursor -50% -50%, class:pavucontrol"
"size 600 600, class:pavucontrol" "size 600 600, class:pavucontrol"
# thunar
"float, class:thunar"
"move cursor -50% -50%, class:thunar"
"size 800 600, class:thunar"
# metamask # metamask
"float, class:chrome-nkbihfbeogaeaoehlefnkodbefgpgknn-.*" "float, class:chrome-nkbihfbeogaeaoehlefnkodbefgpgknn-.*"
# bitwarden, chrome # bitwarden, chrome
"float, class:chrome-nngceckbapebfimnlniiiahkandclblb-.*" "float, class:chrome-nngceckbapebfimnlniiiahkandclblb-.*"
# no gaps when only window
"bordersize 0, floating:0, onworkspace:w[t1]"
"rounding 0, floating:0, onworkspace:w[t1]"
"bordersize 0, floating:0, onworkspace:w[tg1]"
"rounding 0, floating:0, onworkspace:w[tg1]"
"bordersize 0, floating:0, onworkspace:f[1]"
"rounding 0, floating:0, onworkspace:f[1]"
"move center, onworkspace:special:terminal"
"move center, onworkspace:special:yazi"
]; ];
"$mod" = "SUPER"; "$mod" = "SUPER";
bind = [ bind = [
"$mod, t, exec, kitty" "$mod, t, exec, kitty"
"$mod, e, exec, thunar"
"$mod, v, togglefloating" "$mod, v, togglefloating"
"$mod, q, killactive" "$mod, q, killactive"
"$mod, f, fullscreen, 0" "$mod, f, fullscreen, 0"
@@ -182,6 +198,11 @@ in
"$mod, mouse_down, workspace, e+1" "$mod, mouse_down, workspace, e+1"
"$mod, mouse_up, workspace, e-1" "$mod, mouse_up, workspace, e-1"
# special workspaces
"$mod, x, togglespecialworkspace, terminal"
"$mod, x, centerwindow"
"$mod, e, togglespecialworkspace, yazi"
"$mod, e, centerwindow"
]; ];
bindel = [ bindel = [
@@ -126,4 +126,6 @@
color15 #ffffff color15 #ffffff
''; '';
}; };
xdg.configFile."kitty/sessions".source = ./sessions;
} }
+1
View File
@@ -0,0 +1 @@
launch yazi
+14
View File
@@ -0,0 +1,14 @@
{
lib,
pkgs,
config,
...
}:
{
home.packages = with pkgs; [
yazi
];
xdg.configFile."yazi/yazi.yaml".source = ./yazi.yaml;
}
+9
View File
@@ -0,0 +1,9 @@
[preview]
image_quality = 80
[opener]
pdf = [{ run = 'tdf "$@"', block = true }]
edit = [{ run = '$EDITOR "$@"', block = true }]
[open]
rules = [{ mime = "application/pdf", use = "tdf" }]
+9 -3
View File
@@ -66,10 +66,15 @@
export PATH="$HOME/.bin:$PATH" export PATH="$HOME/.bin:$PATH"
export FOUNDRY_DISABLE_NIGHTLY_WARNING=true export FOUNDRY_DISABLE_NIGHTLY_WARNING=true
# export PKG_CONFIG_PATH=$(nix eval --raw nixpkgs.openssl.dev)/lib/pkgconfig:$PKG_CONFIG_PATH
# export LIBRARY_PATH=$(nix eval --raw nixpkgs.openssl.dev)/lib:$LIBRARY_PATH
# export LD_LIBRARY_PATH=$(nix eval --raw nixpkgs.openssl.dev)/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=${pkgs.icu}/lib:${pkgs.stdenv.cc.cc.lib}/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH=${pkgs.icu}/lib:${pkgs.stdenv.cc.cc.lib}/lib:$LD_LIBRARY_PATH
function y() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
yazi "$@" --cwd-file="$tmp"
IFS= read -r -d "" cwd < "$tmp"
[ -n "$cwd" ] && [ "$cwd" != "$PWD" ] && builtin cd -- "$cwd"
rm -f -- "$tmp"
}
''; '';
}; };
@@ -120,6 +125,7 @@
eza eza
asdf-vm asdf-vm
fd fd
tdf
]; ];
home.sessionVariables = { home.sessionVariables = {
+1 -1
View File
@@ -15,7 +15,7 @@
../common/programs/zen-browser.nix ../common/programs/zen-browser.nix
../common/programs/hyprland ../common/programs/hyprland
../common/programs/i3.nix ../common/programs/i3.nix
../common/programs/kitty.nix ../common/programs/kitty
../common/programs/syncthing.nix ../common/programs/syncthing.nix
../common/programs/unity.nix ../common/programs/unity.nix
../common/programs/gpg.nix ../common/programs/gpg.nix
+1 -1
View File
@@ -37,7 +37,7 @@
]; ];
}; };
stdenv.hostPlatform.system.stateVersion = "24.05"; system.stateVersion = "24.05";
programs.zsh.enable = true; programs.zsh.enable = true;