Compare commits

..

4 commits

3 changed files with 93 additions and 60 deletions

View file

@ -38,11 +38,11 @@
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1728768056,
"narHash": "sha256-nDz1+eO5ziimxiyqtKVT3Gj9OZfk3WVhC4czo6EGec8=",
"lastModified": 1728525495,
"narHash": "sha256-dsI85smVkHkv0sXlskE7EzBT7aR2jZYs3sCKhLu48NE=",
"owner": "koverstreet",
"repo": "bcachefs-tools",
"rev": "4f9293b045cf32dfc629ce300180d311aba8f53a",
"rev": "571ca8b8ce27d35cb7be3442dc55d64814dad11f",
"type": "github"
},
"original": {
@ -174,11 +174,11 @@
"rocksdb": "rocksdb"
},
"locked": {
"lastModified": 1729355720,
"narHash": "sha256-WRUhmmQznBwm2pcD5uHgmwcExLX04zY5kf3cPL8VWA8=",
"lastModified": 1728182038,
"narHash": "sha256-H6QiZWG95OgV+/T4hIguk7QtS5REVHtdNPObQL5R6bM=",
"owner": "girlbossceo",
"repo": "conduwuit",
"rev": "8428e7cdf739fc1ce2dd34b96b6ff95b22d0d4b7",
"rev": "e589464954ff88bf817b8bdff4c803cc3bf18a28",
"type": "github"
},
"original": {
@ -247,12 +247,18 @@
}
},
"crane_4": {
"inputs": {
"nixpkgs": [
"lanzaboote",
"nixpkgs"
]
},
"locked": {
"lastModified": 1728776144,
"narHash": "sha256-fROVjMcKRoGHofDm8dY3uDUtCMwUICh/KjBFQnuBzfg=",
"lastModified": 1721842668,
"narHash": "sha256-k3oiD2z2AAwBFLa4+xfU+7G5fisRXfkvrMTCJrjZzXo=",
"owner": "ipetkov",
"repo": "crane",
"rev": "f876e3d905b922502f031aeec1a84490122254b7",
"rev": "529c1a0b1f29f0d78fa3086b8f6a134c71ef3aaf",
"type": "github"
},
"original": {
@ -352,11 +358,11 @@
]
},
"locked": {
"lastModified": 1729281548,
"narHash": "sha256-MuojlSnwAJAwfhgmW8ZtZrwm2Sko4fqubCvReqbUzYw=",
"lastModified": 1728334376,
"narHash": "sha256-CTKEKPzD/j8FK6H4DO3EjyixZd3HHvgAgfnCwpGFP5c=",
"owner": "nix-community",
"repo": "disko",
"rev": "a6a3179ddf396dfc28a078e2f169354d0c137125",
"rev": "d39ee334984fcdae6244f5a8e6ab857479cbaefe",
"type": "github"
},
"original": {
@ -573,11 +579,11 @@
]
},
"locked": {
"lastModified": 1727826117,
"narHash": "sha256-K5ZLCyfO/Zj9mPFldf3iwS6oZStJcU4tSpiXTMYaaL0=",
"lastModified": 1719994518,
"narHash": "sha256-pQMhCCHyQGRzdfAkdJ4cIWiw+JNuWsTX7f0ZYSyz0VY=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "3d04084d54bedc3d6b8b736c70ef449225c361b1",
"rev": "9227223f6d922fee3c7b190b2cc238a99527bbb7",
"type": "github"
},
"original": {
@ -758,11 +764,11 @@
]
},
"locked": {
"lastModified": 1729321331,
"narHash": "sha256-KVyQq+ez/oB30/WbdNgVD8g/bda34z8NiU187QKQb74=",
"lastModified": 1728337164,
"narHash": "sha256-VdRTjJFyq4Q9U7Z/UoC2Q5jK8vSo6E86lHc2OanXtvc=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "122f70545b29ccb922e655b08acfe05bfb44ec68",
"rev": "038630363e7de57c36c417fd2f5d7c14773403e4",
"type": "github"
},
"original": {
@ -778,11 +784,11 @@
"nixpkgs": "nixpkgs_4"
},
"locked": {
"lastModified": 1729177642,
"narHash": "sha256-DdKal+ZhB9QD/tnEwFg4cZ4j4YnrkvSljBxnyG+3eE0=",
"lastModified": 1728410210,
"narHash": "sha256-vn6qupt1U0M6Hf3eXhK3/K4Du0Z7A60qYS1G14QsRY8=",
"owner": "Jovian-Experiments",
"repo": "Jovian-NixOS",
"rev": "bb69165ff372ddbd3228a03513922acd783040e8",
"rev": "a25f915ec05196d15e3f7f8555ffb612d4f1045d",
"type": "github"
},
"original": {
@ -801,11 +807,11 @@
"rust-overlay": "rust-overlay"
},
"locked": {
"lastModified": 1729064530,
"narHash": "sha256-oSr/w/5dvf/8ll6NvQlL7+rrK8wzjIcEMP1LvI4Ag08=",
"lastModified": 1728199407,
"narHash": "sha256-x4G0ja//3pT/epOvwxKR1XB7GAW7Yuwiy6RYCOgRjuQ=",
"owner": "nix-community",
"repo": "lanzaboote",
"rev": "2fa1368f938b50e35ca87334b5aeba38a3402165",
"rev": "0bc127c631999c9555cae2b0cdad2128ff058259",
"type": "github"
},
"original": {
@ -930,11 +936,11 @@
]
},
"locked": {
"lastModified": 1728790083,
"narHash": "sha256-grMdAd4KSU6uPqsfLzA1B/3pb9GtGI9o8qb0qFzEU/Y=",
"lastModified": 1728263287,
"narHash": "sha256-GJDtsxz2/zw6g/Nrp4XVWBS5IaZ7ZUkuvxPOBEDe7pg=",
"owner": "nix-community",
"repo": "nix-index-database",
"rev": "5c54c33aa04df5dd4b0984b7eb861d1981009b22",
"rev": "5fce10c871bab6d7d5ac9e5e7efbb3a2783f5259",
"type": "github"
},
"original": {
@ -976,11 +982,11 @@
},
"nixlib": {
"locked": {
"lastModified": 1728781282,
"narHash": "sha256-hUP9oxmnOmNnKcDOf5Y55HQ+NnoT0+bLWHLQWLLw9Ks=",
"lastModified": 1728176478,
"narHash": "sha256-px3Q0W//c+mZ4kPMXq4poztsjtXM1Ja1rN+825YMDUQ=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "16340f605f4e8e5cf07fd74dcbe692eee2d4f51b",
"rev": "b61309c3c1b6013d36299bc8285612865b3b9e4c",
"type": "github"
},
"original": {
@ -997,11 +1003,11 @@
]
},
"locked": {
"lastModified": 1729127034,
"narHash": "sha256-42AMGl+dh4I2wGgICSeDI1mqYaDEJhwqquHJ1vA0QiQ=",
"lastModified": 1728522165,
"narHash": "sha256-UQpsJ0Ev6JBGsCYRlS2oOVvb+eWcDD0xTV3RVlqbeVU=",
"owner": "nix-community",
"repo": "nixos-generators",
"rev": "dd28a0806e7124fe392c33c9ccaa12f21970401f",
"rev": "40c8d30c490414910fc63626ad1b67af7db40cd3",
"type": "github"
},
"original": {
@ -1012,11 +1018,11 @@
},
"nixos-hardware": {
"locked": {
"lastModified": 1729333370,
"narHash": "sha256-NU+tYe3QWzDNpB8RagpqR3hNQXn4BNuBd7ZGosMHLL8=",
"lastModified": 1728269138,
"narHash": "sha256-oKxDImsOvgUZMY4NwXVyUc/c1HiU2qInX+b5BU0yXls=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "38279034170b1e2929b2be33bdaedbf14a57bfeb",
"rev": "ecfcd787f373f43307d764762e139a7cdeb9c22b",
"type": "github"
},
"original": {
@ -1059,11 +1065,11 @@
},
"nixpkgs-edge": {
"locked": {
"lastModified": 1729342391,
"narHash": "sha256-T89yRYGbO4/8gDn7ttuaX9Mxi71D4Q9h8danhqm4CiY=",
"lastModified": 1728565888,
"narHash": "sha256-PslcBWpcB0IDe9yxYosT2G/rrsXmAgxrTlEoVFolAPM=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "0708033e05433075a518c60245207c9eeea0c628",
"rev": "262f0e36d5e5fd4afc695a9ec368fe0704e5252a",
"type": "github"
},
"original": {
@ -1170,11 +1176,11 @@
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1729256560,
"narHash": "sha256-/uilDXvCIEs3C9l73JTACm4quuHUsIHcns1c+cHUJwA=",
"lastModified": 1728492678,
"narHash": "sha256-9UTxR8eukdg+XZeHgxW5hQA9fIKHsKCdOIUycTryeVw=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0",
"rev": "5633bcff0c6162b9e4b5f1264264611e950c8ec7",
"type": "github"
},
"original": {
@ -1218,11 +1224,11 @@
},
"nixpkgs_4": {
"locked": {
"lastModified": 1728888510,
"narHash": "sha256-nsNdSldaAyu6PE3YUA+YQLqUDJh+gRbBooMMekZJwvI=",
"lastModified": 1727802920,
"narHash": "sha256-HP89HZOT0ReIbI7IJZJQoJgxvB2Tn28V6XS3MNKnfLs=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c",
"rev": "27e30d177e57d912d614c88c622dcfdb2e6e6515",
"type": "github"
},
"original": {
@ -1234,11 +1240,11 @@
},
"nixpkgs_5": {
"locked": {
"lastModified": 1728897630,
"narHash": "sha256-0utJPs4o2Mody8GDwo4hnGuxc8dJqju4u9lLJY4d/Lw=",
"lastModified": 1722264024,
"narHash": "sha256-gomyYQrlOltr2/prDRikRDQoPz+J5Qq6SEJrqVC5x2c=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c9f0b4a395289ce18727e2a8e43cae6796693ccc",
"rev": "fc5e08c73022f96cfeaefa2e087e8b713d47d201",
"type": "github"
},
"original": {
@ -1250,11 +1256,11 @@
},
"nixpkgs_6": {
"locked": {
"lastModified": 1729256560,
"narHash": "sha256-/uilDXvCIEs3C9l73JTACm4quuHUsIHcns1c+cHUJwA=",
"lastModified": 1728492678,
"narHash": "sha256-9UTxR8eukdg+XZeHgxW5hQA9fIKHsKCdOIUycTryeVw=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0",
"rev": "5633bcff0c6162b9e4b5f1264264611e950c8ec7",
"type": "github"
},
"original": {
@ -1321,11 +1327,11 @@
]
},
"locked": {
"lastModified": 1729243807,
"narHash": "sha256-YxS3wU1cdhK/aYaj9ODukmg451uMCdCVlOhjtFh9YJc=",
"lastModified": 1727917089,
"narHash": "sha256-XWNBGf8Z03sqA5/m99X6XTFbHGNuVx1gMaMQJbdDIrY=",
"owner": "pjones",
"repo": "plasma-manager",
"rev": "30d186abf38f8dd248ed9046c45b422ed21bdbb0",
"rev": "bc14b17bff1557de8f103172508f896a87bb9cdb",
"type": "github"
},
"original": {
@ -1375,11 +1381,11 @@
"nixpkgs-stable": "nixpkgs-stable_3"
},
"locked": {
"lastModified": 1728778939,
"narHash": "sha256-WybK5E3hpGxtCYtBwpRj1E9JoiVxe+8kX83snTNaFHE=",
"lastModified": 1721042469,
"narHash": "sha256-6FPUl7HVtvRHCCBQne7Ylp4p+dpP3P/OYuzjztZ4s70=",
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"rev": "ff68f91754be6f3427e4986d7949e6273659be1d",
"rev": "f451c19376071a90d8c58ab1a953c6e9840527fd",
"type": "github"
},
"original": {
@ -1470,11 +1476,11 @@
]
},
"locked": {
"lastModified": 1728959392,
"narHash": "sha256-fp4he1QQjE+vasDMspZYeXrwTm9otwEqLwEN6FKZ5v0=",
"lastModified": 1722219664,
"narHash": "sha256-xMOJ+HW4yj6e69PvieohUJ3dBSdgCfvI0nnCEe6/yVc=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "4c6e317300f05b8871f585b826b6f583e7dc4a9b",
"rev": "a6fbda5d9a14fb5f7c69b8489d24afeb349c7bb4",
"type": "github"
},
"original": {

View file

@ -16,6 +16,31 @@
zellij action toggle-floating-panes
zellij action close-pane
'';
jupyter =
pkgs.writeText "run_jupyter_from_helix.zsh"
''
#! ~/.nix-profile/bin/zsh
function new() {
new=true;
touch /tmp/rjh;
cat /tmp/rjh | while read line
do
if $(pwd) = line; then
new=false;
fi
done
echo new;
}
function send_to_jupyter() {
if $(new); then
zellij run -f -n "jupyter console" jupyter console --kernel="$1" -f="/tmp/rjh-$(pwd).json" --ZMQTerminalInteractiveShell.include_other_output=True --ZMQTerminalInteractiveShell.other_output_prefix=\'\'
pwd >> /tmp/rjh
fi
zellij write 29 25 # send ctr + w
just send
}
'';
in {
programs.helix = {
enable = true;
@ -29,6 +54,7 @@ in {
t = ":sh zellij run -f -n 'test code' -- direnv exec . just test";
g = ":sh zellij run -fc -n 'lazygit' -- lazygit";
f = ":sh zellij run --floating -n 'yazi picker' -- zsh ~/.config/helix/open_in_helix_from_yazi.zsh ";
j = ":pipe-to just jupyter";
};
editor = {
line-number = "relative";

View file

@ -93,6 +93,7 @@
command "hx"
args "."
}
pane split_direction="vertical" size="20%" {}
}
swap_tiled_layout name="vertical" {
tab max_panes=5 {