8
modules/darwin/bin/open-project.nix
Normal file
8
modules/darwin/bin/open-project.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{pkgs}:
|
||||||
|
pkgs.writeShellScriptBin "open-project" ''
|
||||||
|
TARGET=$(fd -t d --exact-depth 1 . $HOME/Projects |
|
||||||
|
sed "s~$HOME/Projects/~~" |
|
||||||
|
fzf --prompt "project > ")
|
||||||
|
|
||||||
|
zellij run -i -- /${pkgs.fish}/bin/fish -c "cd $HOME/Projects/$TARGET; fish"
|
||||||
|
''
|
||||||
@@ -9,8 +9,9 @@
|
|||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
../core.nix
|
../core.nix
|
||||||
../tailscale.nix
|
|
||||||
../syncthing.nix
|
../syncthing.nix
|
||||||
|
../tailscale.nix
|
||||||
|
./bin/open-project.nix
|
||||||
./dock
|
./dock
|
||||||
./homebrew.nix
|
./homebrew.nix
|
||||||
./system.nix
|
./system.nix
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
constants,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
setWallpaperScript = import ../lib/wallpaper.nix {inherit pkgs;};
|
setWallpaperScript = import ../bin/wallpaper.nix {inherit pkgs;};
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./ghostty.nix
|
./ghostty.nix
|
||||||
|
|||||||
Reference in New Issue
Block a user