blob: c44319e9429f9670b75e57e791a4f2d288e2e3b6 (
plain) (
blame)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
{
config,
pkgs,
lib,
dotfilesRoot,
...
}:
# Arch host Home-Manager package profile.
let
whisper-cpp-model-base = pkgs.stdenvNoCC.mkDerivation rec {
pname = "whisper-cpp-model-base";
version = "1.0";
src = pkgs.fetchurl {
url = "https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.bin";
hash = "sha256-YO1bw90U7qhWST0zQ0m0BXgt3K8AKNS130CINF+6Lv4=";
};
dontUnpack = true;
installPhase = ''
runHook preInstall
install -Dm644 $src $out/share/whisper-cpp-models/ggml-base.bin
runHook postInstall
'';
meta = with lib; {
description = "Whisper.cpp ggml-base.bin model (142 MB, multilingual)";
homepage = "https://huggingface.co/ggerganov/whisper.cpp";
license = licenses.mit;
platforms = platforms.all;
};
};
pass-secret-service-rust = pkgs.rustPlatform.buildRustPackage rec {
pname = "pass-secret-service";
version = "0.7.0";
src = pkgs.fetchFromGitHub {
owner = "grimsteel";
repo = "pass-secret-service";
rev = "v${version}";
hash = "sha256-cBDGxF1ETyszwHZJwN8n+lwKcpOU8Xt1XTOGbUHj9UI=";
};
cargoHash = "sha256-Ko8LlgPG6kl+pZ47jrFnKdc+9i7/eh9DMRtG2SWQGjQ=";
nativeBuildInputs = [ pkgs.makeWrapper ];
postInstall = ''
wrapProgram "$out/bin/pass-secret-service" \
--prefix PATH : "${lib.makeBinPath [ pkgs.gnupg ]}"
'';
meta = {
description = "Implementation of org.freedesktop.secrets using pass";
homepage = "https://github.com/grimsteel/pass-secret-service";
license = lib.licenses.gpl3Only;
platforms = lib.platforms.linux;
mainProgram = "pass-secret-service";
};
};
arkenfox-userjs-profile =
pkgs.runCommand "arkenfox-userjs-profile-${pkgs.arkenfox-userjs.version}" { }
''
install -Dm644 ${pkgs.arkenfox-userjs}/user.js $out/share/arkenfox-userjs/user.js
install -Dm644 ${pkgs.arkenfox-userjs}/user.cfg $out/share/arkenfox-userjs/user.cfg
'';
in
{
imports = [ ./common.nix ];
home.username = builtins.getEnv "USER";
home.homeDirectory = builtins.getEnv "HOME";
# Used by nvim-treesitter parser builds without adding a compiler to PATH.
home.sessionVariables.NVIM_TREESITTER_CC = "${pkgs.stdenv.cc}/bin/cc";
home.packages = with pkgs; [
# ── Thunderbird helpers ───────────────────────────────────────────────────
external-editor-revived
# ── Mail: ProtonMail Bridge ───────────────────────────────────────────────
protonmail-bridge
# ── Secrets portal ────────────────────────────────────────────────────────
pass-secret-service-rust
# ── Wayland session: bars, launchers, notifiers, daemons ──────────────────
waybar
mako
fuzzel
wofi # used by bemoji + mako-history.sh
swayidle
swayr # auto-tiling + window switcher
inhibridge # browser idle-inhibit bridge → systemd-inhibit
bemoji # emoji picker (wofi backend)
wob # volume/brightness OSD
poweralertd
# ── Wayland: capture + clipboard + image viewing ─────────────────────────
grim
slurp
wf-recorder
wtype
wl-clipboard # wl-copy + wl-paste
cliphist # clipboard history (used by cliphist-{text,image} units)
# ── Media control ────────────────────────────────────────────────────────
playerctl # MPRIS over session bus
pulsemixer # TUI for PipeWire/PulseAudio
# ── General CLIs ─────────────────────────────────────────────────────────
qrencode
torsocks
lshw
yt-dlp
streamlink
xdg-utils # xdg-open, used by yazi/linkhandler/OPENER
# ── File sync ───────────────────────────────────────────────────────────────
syncthing
# ── Work VPN ──────────────────────────────────────────────────────────────
snx-rs
# ── Bitcoin wallet ───────────────────────────────────────────────────────
sparrow
# ── Browser hardening ────────────────────────────────────────────────────
arkenfox-userjs-profile
# ── OCR ──────────────────────────────────────────────────────────────────
(tesseract.override {
enableLanguages = [
"eng"
"por"
];
})
# ── Speech-to-text (dictate script) ──────────────────────────────────────
(whisper-cpp.override { vulkanSupport = true; })
whisper-cpp-model-base
];
# ── Smartcard (Yubikey) ────────────────────────────────────────────────────
home.file.".gnupg/scdaemon.conf".text = ''
disable-ccid
pcsc-driver /usr/lib/libpcsclite.so.1
'';
}
|