blob: 568306a6f14dc5d60e9bd391f170fae2fc4cfb9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{ config, pkgs, lib, ... }:
{
imports = [
./modules/sketchybar
./modules/simple-bar
./modules/taskwarrior-ubersicht
./modules/ubersicht
];
ryan.sketchybar.enable = true;
programs.zen-browser = {
package = null; # managed via homebrew
darwinDefaultsId = "app.zen-browser.zen";
};
# Need special config for gpg-agent on macOS
home.file.".gnupg/gpg-agent.conf".text = ''
pinentry-program ${pkgs.pinentry_mac}/Applications/pinentry-mac.app/Contents/MacOS/pinentry-mac
enable-ssh-support
'';
# Add hammerspoon
home.file.".hammerspoon".source = ./hammerspoon;
home.file.".config/homebrew".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.homebrew";
home.packages = with pkgs; [
iina # Media player (frontend to mpv essentially)
jujutsu
netbird-tui
];
# Install User apps to subdir for dock stuff
targets.darwin.linkApps.directory = "Applications/User Apps";
# Symlink System apps into the user apps "system" dir
home.activation.linkSystemApps = lib.hm.dag.entryAfter ["writeBoundary"] ''
if [[ -z "$HOME" ]]; then
echo "ERROR: HOME was not defined. This should not happen. Bailing! ">&2
exit 1
fi
$DRY_RUN_CMD mkdir -p "$HOME/Applications/System Apps"
$DRY_RUN_CMD rm -rf "$HOME/Applications/System Apps/"*.app
$DRY_RUN_CMD find /Applications /System/Applications -maxdepth 2 -name "*.app" \
-prune -exec ln -sf {} "$HOME/Applications/System Apps/" \;
'';
# Restart gpg-agent
home.activation.restartGpgAgent = lib.hm.dag.entryAfter ["writeBoundary"] ''
$DRY_RUN_CMD ${pkgs.gnupg}/bin/gpgconf --kill gpg-agent || true
'';
}
|