2023-07-26 10:48:52 +02:00
|
|
|
{ pkgs
|
|
|
|
, lib
|
|
|
|
, inputs
|
|
|
|
, config
|
|
|
|
, ...
|
|
|
|
}: {
|
2023-07-27 11:33:44 +02:00
|
|
|
imports = [
|
2023-09-15 00:21:07 +02:00
|
|
|
./../../home/base.nix
|
2023-12-07 10:22:35 +01:00
|
|
|
./../../home/alacritty.nix
|
2024-01-20 12:53:58 +01:00
|
|
|
./programs/newsboat
|
2023-07-27 11:33:44 +02:00
|
|
|
];
|
2023-07-26 10:48:52 +02:00
|
|
|
|
|
|
|
home.packages = with pkgs; [
|
2024-04-15 11:39:51 +02:00
|
|
|
emacs-macport
|
2024-09-05 16:39:51 +02:00
|
|
|
feishin
|
2023-11-02 11:14:28 +01:00
|
|
|
iterm2
|
2024-06-02 01:02:31 +02:00
|
|
|
# prismlauncher
|
2024-03-08 02:42:49 +01:00
|
|
|
spotify
|
2023-11-02 11:14:28 +01:00
|
|
|
|
2024-06-27 20:47:19 +02:00
|
|
|
aerc
|
2024-03-08 02:42:49 +01:00
|
|
|
borgbackup
|
2024-06-27 20:47:19 +02:00
|
|
|
catimg
|
2023-08-08 08:51:20 +02:00
|
|
|
cocoapods
|
2023-08-18 19:06:07 +02:00
|
|
|
gnutar
|
2023-07-27 13:13:03 +02:00
|
|
|
nix-index
|
2024-09-13 13:57:16 +02:00
|
|
|
nodejs
|
2023-08-08 08:51:20 +02:00
|
|
|
tldr
|
2024-05-30 10:39:02 +02:00
|
|
|
unstable.snicat
|
2024-06-27 20:47:19 +02:00
|
|
|
w3m
|
2023-10-14 00:09:22 +02:00
|
|
|
zellij
|
2023-11-02 11:14:28 +01:00
|
|
|
|
|
|
|
(python311.withPackages (ps: with ps; [
|
|
|
|
pwntools
|
|
|
|
pycryptodome
|
|
|
|
requests
|
|
|
|
]))
|
2023-07-26 10:48:52 +02:00
|
|
|
];
|
|
|
|
|
2023-09-15 17:04:17 +02:00
|
|
|
programs.zsh = {
|
|
|
|
shellAliases."rebuild" = "darwin-rebuild switch --flake /Users/felixalb/nix";
|
|
|
|
prezto.pmodules = [ "ssh" ];
|
2023-09-22 12:32:13 +02:00
|
|
|
};
|
2023-09-13 23:20:31 +02:00
|
|
|
|
2024-09-13 13:57:16 +02:00
|
|
|
programs.neovim.plugins = with pkgs.vimPlugins; [
|
|
|
|
coc-emmet
|
|
|
|
copilot-vim
|
|
|
|
emmet-vim # Ctrl+y + ,
|
|
|
|
];
|
2023-12-28 23:38:24 +01:00
|
|
|
|
2023-07-26 15:22:24 +02:00
|
|
|
# Copy Applications to ~/Applications to allow them to be launched from Spotlight
|
2023-07-26 10:48:52 +02:00
|
|
|
disabledModules = [ "targets/darwin/linkapps.nix" ];
|
|
|
|
home.activation = lib.mkIf pkgs.stdenv.isDarwin {
|
|
|
|
copyApplications =
|
|
|
|
let
|
|
|
|
apps = pkgs.buildEnv {
|
|
|
|
name = "home-manager-applications";
|
|
|
|
paths = config.home.packages;
|
|
|
|
pathsToLink = "/Applications";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
|
|
|
baseDir="$HOME/Applications/Home Manager Apps"
|
|
|
|
if [ -d "$baseDir" ]; then
|
|
|
|
rm -rf "$baseDir"
|
|
|
|
fi
|
|
|
|
mkdir -p "$baseDir"
|
|
|
|
for appFile in ${apps}/Applications/*; do
|
|
|
|
target="$baseDir/$(basename "$appFile")"
|
|
|
|
$DRY_RUN_CMD cp ''${VERBOSE_ARG:+-v} -fHRL "$appFile" "$baseDir"
|
|
|
|
$DRY_RUN_CMD chmod ''${VERBOSE_ARG:+-v} -R +w "$target"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
home.stateVersion = "23.05";
|
|
|
|
}
|