2023-10-01 17:34:28 +02:00
|
|
|
{ pkgs, lib, config, ... }:
|
2021-12-06 23:35:29 +01:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
2023-11-28 17:09:38 +01:00
|
|
|
../config/fonts
|
2023-06-26 20:41:47 +02:00
|
|
|
|
2022-07-29 20:13:31 +02:00
|
|
|
../programs/fish.nix
|
2023-09-09 19:54:02 +02:00
|
|
|
../programs/nushell.nix
|
2023-02-27 17:51:39 +01:00
|
|
|
../programs/atuin.nix
|
2022-07-29 20:13:31 +02:00
|
|
|
../programs/direnv.nix
|
2023-12-16 13:07:53 +01:00
|
|
|
../programs/fzf.nix
|
2023-09-09 19:54:02 +02:00
|
|
|
../programs/starship.nix
|
|
|
|
../programs/zoxide.nix
|
|
|
|
|
2022-12-19 22:02:48 +01:00
|
|
|
../programs/wezterm.nix
|
2021-12-06 23:35:29 +01:00
|
|
|
|
2022-07-29 20:13:31 +02:00
|
|
|
../programs/nvim
|
2021-12-06 23:35:29 +01:00
|
|
|
|
2022-07-29 20:13:31 +02:00
|
|
|
../programs/git.nix
|
2021-12-06 23:35:29 +01:00
|
|
|
|
2022-07-29 20:13:31 +02:00
|
|
|
../programs/bat.nix
|
2021-12-06 23:35:29 +01:00
|
|
|
|
2022-12-20 17:46:51 +01:00
|
|
|
../programs/btop.nix
|
|
|
|
|
2023-05-05 16:46:54 +02:00
|
|
|
../programs/gallery-dl.nix
|
|
|
|
|
2022-12-25 22:12:54 +01:00
|
|
|
../programs/gpg.nix
|
|
|
|
|
2022-07-29 20:13:31 +02:00
|
|
|
../programs/jq.nix
|
2021-12-06 23:35:29 +01:00
|
|
|
|
2022-07-29 20:13:31 +02:00
|
|
|
../programs/texlive.nix
|
|
|
|
../programs/pandoc.nix
|
2022-07-15 15:07:52 +02:00
|
|
|
|
2022-07-29 20:13:31 +02:00
|
|
|
../programs/podman.nix
|
2022-06-27 21:38:03 +02:00
|
|
|
|
2022-07-29 20:13:31 +02:00
|
|
|
../programs/scripts.nix
|
2022-01-05 10:52:59 +01:00
|
|
|
|
2022-08-08 23:43:47 +02:00
|
|
|
../programs/ssh/Styx.nix
|
2024-01-21 13:09:54 +01:00
|
|
|
../programs/eternal-terminal.nix
|
2022-01-10 22:41:52 +01:00
|
|
|
|
2022-08-01 12:24:30 +02:00
|
|
|
../programs/streamlink.nix
|
2022-07-29 20:13:31 +02:00
|
|
|
../programs/yt-dlp.nix
|
2021-12-06 23:35:29 +01:00
|
|
|
];
|
|
|
|
|
2023-10-01 17:34:28 +02:00
|
|
|
disabledModules = [ "targets/darwin/linkapps.nix" ];
|
|
|
|
|
2021-12-06 23:35:29 +01:00
|
|
|
home = {
|
2022-07-31 20:33:19 +02:00
|
|
|
stateVersion = "22.11";
|
2022-02-03 23:35:52 +01:00
|
|
|
|
2021-12-06 23:35:29 +01:00
|
|
|
packages = with pkgs; [
|
2022-03-19 22:54:55 +01:00
|
|
|
agilebits-op
|
2021-12-06 23:35:29 +01:00
|
|
|
arp-scan
|
2023-03-31 12:05:34 +02:00
|
|
|
curlHTTP3
|
2022-02-14 15:22:49 +01:00
|
|
|
dasel
|
2023-06-10 20:48:07 +02:00
|
|
|
dig
|
2023-03-24 22:17:39 +01:00
|
|
|
exiftool
|
2021-12-06 23:35:29 +01:00
|
|
|
fd
|
|
|
|
ffmpeg
|
2022-01-28 22:45:50 +01:00
|
|
|
glow
|
2021-12-06 23:35:29 +01:00
|
|
|
hexyl
|
|
|
|
hyperfine
|
2023-07-31 10:31:27 +02:00
|
|
|
just
|
2022-02-12 23:13:47 +01:00
|
|
|
lnav
|
2022-06-19 01:39:54 +02:00
|
|
|
mtr
|
2023-07-07 19:57:55 +02:00
|
|
|
nix-tree
|
2023-12-16 19:21:27 +01:00
|
|
|
nix-update
|
2023-01-10 17:28:50 +01:00
|
|
|
nurl
|
2021-12-06 23:35:29 +01:00
|
|
|
parallel
|
2022-06-12 23:06:57 +02:00
|
|
|
q
|
2021-12-06 23:35:29 +01:00
|
|
|
ripgrep
|
2022-04-27 22:16:44 +02:00
|
|
|
socat
|
2023-10-18 00:01:50 +02:00
|
|
|
ssh-audit
|
2022-06-25 20:27:42 +02:00
|
|
|
viddy
|
2021-12-13 00:01:54 +01:00
|
|
|
wget
|
2022-08-12 11:51:38 +02:00
|
|
|
xxHash
|
2021-12-28 19:48:27 +01:00
|
|
|
xz
|
2021-12-06 23:35:29 +01:00
|
|
|
];
|
2023-10-01 17:34:28 +02:00
|
|
|
|
|
|
|
activation.aliasApplications = lib.mkIf pkgs.stdenv.hostPlatform.isDarwin (
|
|
|
|
let
|
|
|
|
apps = pkgs.buildEnv {
|
|
|
|
name = "home-manager-applications";
|
|
|
|
paths = config.home.packages;
|
|
|
|
pathsToLink = "/Applications";
|
|
|
|
};
|
|
|
|
|
|
|
|
lastAppsFile = "${config.xdg.stateHome}/nix/.apps";
|
|
|
|
in
|
2023-10-01 22:56:08 +02:00
|
|
|
lib.hm.dag.entryAfter [ "writeBoundary" ] /* bash */ ''
|
2023-10-01 17:34:28 +02:00
|
|
|
last_apps=$(cat "${lastAppsFile}" 2>/dev/null || echo "")
|
|
|
|
next_apps=$(readlink -f ${apps}/Applications/* | sort)
|
|
|
|
|
|
|
|
if [ "$last_apps" != "$next_apps" ]; then
|
|
|
|
echo "Apps have changed. Updating macOS aliases..."
|
|
|
|
|
|
|
|
apps_path="$HOME/Applications/Home Manager Apps"
|
|
|
|
$DRY_RUN_CMD mkdir -p "$apps_path"
|
|
|
|
|
2023-12-13 00:45:38 +01:00
|
|
|
$DRY_RUN_CMD ${lib.getExe pkgs.fd} \
|
2023-10-01 17:34:28 +02:00
|
|
|
-t l -d 1 . ${apps}/Applications \
|
|
|
|
-x $DRY_RUN_CMD "${pkgs.mkalias}/bin/mkalias" \
|
|
|
|
-L {} "$apps_path/{/}"
|
|
|
|
|
|
|
|
[ -z "$DRY_RUN_CMD" ] && echo "$next_apps" > "${lastAppsFile}"
|
|
|
|
fi
|
|
|
|
''
|
|
|
|
);
|
2021-12-06 23:35:29 +01:00
|
|
|
};
|
|
|
|
}
|