From 4062d9a2c75a2b267ece56983b68139e1acff506 Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Mon, 7 Oct 2024 22:58:07 -0500 Subject: migrate scripts --- macos.local/.flake/home/programs/core.nix.org | 1 + macos.local/.flake/home/scripts.nix.org | 18 ++++++++++++++++++ macos.local/.flake/system/core.nix.org | 1 + 3 files changed, 20 insertions(+) create mode 100644 macos.local/.flake/home/scripts.nix.org (limited to 'macos.local/.flake') diff --git a/macos.local/.flake/home/programs/core.nix.org b/macos.local/.flake/home/programs/core.nix.org index 1700521..96710ca 100644 --- a/macos.local/.flake/home/programs/core.nix.org +++ b/macos.local/.flake/home/programs/core.nix.org @@ -17,6 +17,7 @@ aspell bash-language-server inetutils + choose-gui clang-tools cmake cmake-language-server diff --git a/macos.local/.flake/home/scripts.nix.org b/macos.local/.flake/home/scripts.nix.org new file mode 100644 index 0000000..6bf46a6 --- /dev/null +++ b/macos.local/.flake/home/scripts.nix.org @@ -0,0 +1,18 @@ +#+title: Custom Scripts + +#+begin_src nix + { config, pkgs, ... }: + + { + home.file = { + ".local/bin/launcher" = { + text '' + #!/bin/sh + app="$(ls /Applications/ /Applications/Utilities/ /System/Applications/ /System/Applications/Utilities/ ~/Applications/ | grep '\.app$' | sed 's/\.app$//g' | choose -f "SauceCodePro Nerd Font" -s 15 -b ece0c9).app" + open -n "$HOME/Applications/$app" || open -n "/Applications/$app" || open -n "/System/Applications/Utilities/$app" || open -n "/System/Applications/$app" || open -n "/Applications/Utilities/$app" + ''; + executable = true; + }; + }; + } +#+end_src diff --git a/macos.local/.flake/system/core.nix.org b/macos.local/.flake/system/core.nix.org index d8e02dd..2cd455a 100644 --- a/macos.local/.flake/system/core.nix.org +++ b/macos.local/.flake/system/core.nix.org @@ -10,6 +10,7 @@ This file imports various system configuration components in addition to enablin ./skhd.nix ./yabai.nix ]; + environment.systemPackages = with pkgs; [ emacs-macport gnupg -- cgit v1.2.3