-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhome.nix
690 lines (615 loc) · 21.2 KB
/
home.nix
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
{
config,
lib,
pkgs,
tmux-colours-onedark,
...
}: {
dconf.settings = {
"org/gnome/desktop/background" = {
color-shading-type = "solid";
picture-options = "zoom";
picture-uri = "file://${config.xdg.dataHome}/backgrounds/ChromeOSWind-1.png";
picture-uri-dark = "file://${config.xdg.dataHome}/backgrounds/ChromeOSWind-2.png";
primary-color = "#3465a4";
secondary-color = "#000000";
};
"org/gnome/desktop/input-sources" = {
sources = [
(lib.hm.gvariant.mkTuple ["xkb" "us+altgr-intl"])
];
xkb-options = [
"caps:escape"
];
};
"org/gnome/desktop/interface" = {
document-font-name = "Sans 11";
enable-animations = false;
enable-hot-corners = false;
font-antialiasing = "grayscale";
font-hinting = "none";
font-name = "Sans 11";
monospace-font-name = "Monospace 12.5";
show-battery-percentage = true;
};
"org/gnome/desktop/session" = {
idle-delay = 120;
};
"org/gnome/desktop/wm/preferences" = {
titlebar-font = "Sans Bold 11";
};
"org/gnome/mutter" = {
experimental-features = [
"variable-refresh-rate"
];
};
"org/gnome/settings-daemon/plugins/power" = {
idle-dim = true;
power-button-action = "suspend";
power-saver-profile-on-low-battery = true;
sleep-inactive-ac-type = "nothing";
sleep-inactive-battery-timeout = 900;
sleep-inactive-battery-type = "suspend";
};
"org/gnome/shell" = {
disable-user-extensions = false;
enabled-extensions = [
"appindicatorsupport@rgcjonas.gmail.com"
"light-style@gnome-shell-extensions.gcampax.github.com"
"nightthemeswitcher@romainvigier.fr"
];
favorite-apps = [
"firefox.desktop"
"foot.desktop"
"org.gnome.Nautilus.desktop"
"org.gnome.Evolution.desktop"
"org.gnome.Calendar.desktop"
];
};
};
home = {
homeDirectory = "/home/tlv";
file = {
".digrc".text = "+noall +answer";
"${config.xdg.dataHome}/backgrounds/ChromeOSWind-1.png".source = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/saint-13/Linux_Dynamic_Wallpapers/refs/heads/main/Dynamic_Wallpapers/ChromeOSWind/ChromeOSWind-1.png";
hash = "sha256-lT6dvLymLtlJ+xFFyX7k1aV0lTBceZXRJSeCQvJqA3o=";
};
"${config.xdg.dataHome}/backgrounds/ChromeOSWind-2.png".source = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/saint-13/Linux_Dynamic_Wallpapers/refs/heads/main/Dynamic_Wallpapers/ChromeOSWind/ChromeOSWind-2.png";
hash = "sha256-jB0T07ro1QtJ6fYcu/IKHZB8ESNbqwpVHtA9nr8alUg=";
};
};
sessionVariables = {
# Zsh's "< file" built-in pager
READNULLCMD = "$PAGER";
LESS = "--chop-long-lines --ignore-case --LONG-PROMPT --no-init --RAW-CONTROL-CHARS --quit-if-one-screen --quit-on-intr";
SYSTEMD_LESS = "$LESS";
# Default to Wayland for Chrome/Electron
# https://nixos.org/manual/nixos/unstable/release-notes#sec-release-23.11
NIXOS_OZONE_WL = 1;
# https://github.com/agkozak/zsh-z/tree/afaf2965b41fdc6ca66066e09382726aa0b6aa04#settings
ZSHZ_CMD = "j";
# https://telemetry.timseverien.com/opt-out/
# https://github.com/jeremy-code/dotfiles/blob/22979c1132b33c39fe59a07a2d865b0121cc2c6b/oh-my-zsh/telemetry.zsh
ALGOLIA_CLI_TELEMETRY = 0; # Algolia
AMPLIFY_DISABLE_TELEMETRY = 1; # AWS Amplify
APOLLO_TELEMETRY_DISABLED = 1; # Apollo Router/Rover
ARDUINO_METRICS_ENABLED = "false"; # Arduino
ASTRO_TELEMETRY_DISABLED = 1; # Astro
AZURE_CORE_COLLECT_TELEMETRY = 0; # Azure
CALCOM_TELEMTRY_DISABLED = 1; # Cal.com
CHECKPOINT_DISABLE = 1; # Prisma, Terraform
CLOUDSDK_CORE_DISABLE_USAGE_REPORTING = "true"; # Google Cloud SDK
DATAHUB_TELEMETRY_ENABLED = "false"; # DataHub
DA_TEST_DISABLE_TELEMETRY = 1; # JavaScript Debugger (VSCode)
DDB_LOCAL_TELEMETRY = 0; # DynamoDB
DISABLE_ZAPIER_ANALYTICS = 1; # Zapier
DOTNET_CLI_TELEMETRY_OPTOUT = 1; # .NET
DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT = 1; # .NET Interactive
DO_NOT_TRACK = 1; # https://consoledonottrack.com
EXPO_NO_TELEMETRY = 1; # Expo
GATSBY_TELEMETRY_DISABLED = 1; # Gatsby
GOTELEMETRY = "false"; # Go
HASURA_GRAPHQL_ENABLE_TELEMETRY = "false"; # Hasura
HOMEBREW_NO_ANALYTICS = 1;
MSSQL_TELEMETRY_ENABLED = "false"; # Azure SQL Edge
NEXT_TELEMETRY_DISABLED = 1; # Next.js
NG_CLI_ANALYTICS = "false"; # Angular CLI
NUXT_TELEMETRY_DISABLED = 1; # Nuxt.js
SAM_CLI_TELEMETRY = 0; # AWS SAM
SFDX_DISABLE_TELEMETRY = "true"; # Salesforce CLI
SLS_TELEMETRY_DISABLED = 1; # Serverless Framework
SST_TELEMETRY_DISABLED = 1; # SST
STORYBOOK_DISABLE_TELEMETRY = 1; # Storybook
STRAPI_TELEMETRY_DISABLED = "true";
STRIPE_CLI_TELEMETRY_OPTOUT = 1; # Stripe
TELEMETRY_DISABLED = 1;
YARN_ENABLE_TELEMETRY = 0; # Yarn
# https://github.com/sindresorhus/pure/tree/87e6f5dd4c793f6d980532205aaefe196780606f#options
PURE_GIT_PULL = 0;
# https://typicode.github.io/husky/get-started.html#disabling-hooks
HUSKY = 0;
};
stateVersion = "23.05";
username = "tlv";
};
# Workaround for "unable to download 'https://git.sr.ht/~rycee"
# https://github.com/nix-community/home-manager/issues/4879
manual = {
html.enable = false;
manpages.enable = false;
json.enable = false;
};
programs.firefox = {
enable = true;
profiles.default = {
settings = {
"dom.security.https_only_mode" = true;
"extensions.pocket.enabled" = false;
"media.ffmpeg.vaapi.enabled" = true;
"ui.key.menuAccessKeyFocuses" = false;
};
};
};
programs.foot = {
enable = true;
settings = {
main = {
font = "monospace:size=12.5";
include = "${pkgs.foot.themes}/share/foot/themes/onedark";
initial-window-mode = "fullscreen";
};
cursor = {
style = "beam";
blink = "yes";
beam-thickness = 1;
};
scrollback = {
lines = 10000;
};
};
};
programs.fzf = {
enable = true;
enableZshIntegration = true;
changeDirWidgetCommand = "(git ls-tree -d -r --name-only HEAD || fd --type directory) 2>/dev/null";
defaultCommand = "(git ls-files --cached --exclude-standard --others || fd --type file) 2>/dev/null";
defaultOptions = [
"--cycle"
"--no-mouse"
];
fileWidgetCommand = "(git ls-files --cached --exclude-standard --others || fd --type file) 2>/dev/null";
};
programs.git = {
enable = true;
aliases = {
br = "branch";
brrm = "!git branch | grep -vE '^\\*|main|master' | xargs -n 1 git branch -D";
c = "commit";
cfa = "commit --all --amend --no-edit";
ci = "commit --all";
cia = "commit --all --message";
cl = "clone --recursive";
co = "checkout";
cob = "checkout -b";
com = "checkout master";
cp = "cherry-pick";
cpc = "cherry-pick --continue";
d = "diff";
dfs = "diff --stat";
g = "grep --ignore-case";
l = "log -p --follow";
lh = "log --follow --pretty=format:'%H'";
lhr = "log --reverse --pretty=format:'%H'";
lm = "log --follow --pretty=format:'%s'";
lo = "log --graph --decorate --pretty=oneline --abbrev-commit";
lpp = "log --graph --all --pretty=format:'%h by %an (%cr):%d %s' --abbrev-commit --decorate --date-order";
ls = "ls-files";
mt = "mergetool";
pa = "push --all all";
pd = "pull --rebase --tags";
pu = "push --tags";
rbc = "rebase --continue";
s = "status --short --ignore-submodules=dirty";
subpd = "submodule foreach --recursive git pull origin master";
subpu = "submodule foreach --recursive git push origin master";
# Overrides
ctags = "!.git/hooks/ctags";
# Show verbose output about tags, branches or remotes";
branches = "branch -a";
remotes = "remote -v";
tags = "tag -l";
};
attributes = [
"* text=auto"
];
diff-so-fancy.enable = true;
extraConfig = {
apply = {
whitespace = "fix";
};
branch = {
autosetuprebase = "always";
};
color = {
ui = "auto";
};
"color \"grep\"" = {
match = "green";
};
commit = {
verbose = true;
};
core = {
whitespace = "space-before-tab,trailing-space";
untrackedCache = true;
};
diff = {
compactionHeuristic = true;
tool = "nvim -d";
};
difftool = {
prompt = false;
};
github = {
user = "tlvince";
};
merge = {
tool = "fugitive";
};
mergetool = {
keepBackup = false;
prompt = false;
};
"mergetool \"fugitive\"" = {
cmd = "nvim -c Gdiff $MERGED";
};
push = {
default = "simple";
};
web = {
browser = "gio open";
};
};
signing = {
key = "AB184CDBE6AEACDE";
signByDefault = true;
};
userEmail = "git@tlvince.com";
userName = "Tom Vincent";
};
programs.gpg = {
enable = true;
settings = {
default-key = "E6AEACDE";
default-recipient-self = true;
keyserver = "hkp://keys.gnupg.net";
keyserver-options = "auto-key-retrieve";
use-agent = true;
};
};
services.gpg-agent = {
enable = true;
enableScDaemon = false;
defaultCacheTtl = 28800; # 8 hours
defaultCacheTtlSsh = 28800; # 8 hours
maxCacheTtl = 57600; # 16 hours
maxCacheTtlSsh = 57600; # 16 hours
pinentryPackage = pkgs.pinentry-gnome3;
};
programs.home-manager.enable = true;
programs.htop = {
enable = true;
settings = {
hide_userland_threads = 1;
highlight_base_name = 1;
screen_tabs = 1;
shadow_other_users = 1;
show_cpu_frequency = 1;
show_program_path = 0;
};
};
programs.mpv = {
enable = true;
config = {
hwdec = "auto-safe";
vo = "dmabuf-wayland";
ytdl-format = "(bestvideo[vcodec^=av01][height<=?2160]/bestvideo[height<=?2160])+bestaudio/best";
};
};
programs.neovim = {
enable = true;
defaultEditor = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
};
programs.readline = {
enable = true;
bindings = {
"\e[3;3~" = "kill-word";
};
extraConfig = ''
# History with up/down keys
$if mode=vi
set keymap vi-command
"\e[A": history-search-backward
"\e[B": history-search-forward
set keymap vi-insert
"\e[A": history-search-backward
"\e[B": history-search-forward
"\C-l": clear-screen
$else
"\e[A": history-search-backward
"\e[B": history-search-forward
$endif
'';
# https://github.com/tlvince/shell-config/blob/9498a951e5ed612f106b4ae53c579fe2c9ce2a8c/.inputrc
variables = {
# Make Tab autocomplete regardless of filename case
completion-ignore-case = true;
# If there are more than 200 possible completions for a word, ask to show them all
completion-query-items = 200;
editing-mode = "vi";
# Immediately add a trailing slash when autocompleting symlinks to directories
mark-symlinked-directories = true;
# Do not autocomplete hidden files unless the pattern explicitly begins with a dot
match-hidden-files = false;
# Show all autocomplete results at once
page-completions = false;
# List all matches in case multiple possible completions are possible
show-all-if-ambiguous = true;
# Be more intelligent when autocompleting
skip-completed-text = true;
# Show extra file information when completing, like `ls -F` does
visible-stats = true;
# # Allow UTF-8 input and output
convert-meta = false;
input-meta = true;
output-meta = true;
};
};
programs.tmux = {
enable = true;
aggressiveResize = true;
baseIndex = 1;
clock24 = true;
customPaneNavigationAndResize = true;
escapeTime = 0;
extraConfig = ''
# Toggle the last window with prefix
bind-key C-a last-window
# Open new windows/splits in an interactive shell, not login shell (by default)
set-option -g default-command "$SHELL"
# Intuitive window-splitting keys
bind '"' split-window -c "#{pane_current_path}"
bind - split-window -vc "#{pane_current_path}"
bind % split-window -hc "#{pane_current_path}"
bind '\' split-window -hc "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# Set window name based on command
set-window-option -g automatic-rename on
# Reload config
bind r source-file "$XDG_CONFIG_HOME/tmux/tmux.conf"\; display-message "Config reloaded..."
# Copy/paste to/from the system clipboard
unbind [
bind Escape copy-mode
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "wl-copy && wl-paste -n | wl-copy -p"
bind-key p run "wl-paste -n | tmux load-buffer - ; tmux paste-buffer"
# Disable noisy right-hand status bar
set-option -g status-right ""
# Toggle the status bar
bind-key b set-option -g status
# Zoom split
bind-key | resize-pane -Z
# Colours
set-option -ga terminal-overrides ",tmux-256color:Tc,xterm-256color:Tc"
${pkgs.lib.fileContents "${tmux-colours-onedark}/tmux-colours-onedark.conf"}
'';
historyLimit = 10000;
keyMode = "vi";
mouse = true;
prefix = "C-a";
secureSocket = true;
sensibleOnTop = false;
terminal = "screen-256color";
};
programs.zsh = {
enable = true;
autocd = true;
autosuggestion.enable = true;
enableCompletion = true;
history.ignoreAllDups = true;
initExtra =
''
# Prompt
autoload -U promptinit; promptinit
prompt pure
# Autojump
source ${pkgs.zsh-z}/share/zsh-z/zsh-z.plugin.zsh
# Escape URLs when pasting
autoload -Uz bracketed-paste-magic url-quote-magic
zle -N bracketed-paste bracketed-paste-magic
zle -N self-insert url-quote-magic
# History search matching the current line up to the current cursor position
autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
zle -N up-line-or-beginning-search
zle -N down-line-or-beginning-search
bindkey "$terminfo[kcuu1]" up-line-or-beginning-search
bindkey "$terminfo[kcud1]" down-line-or-beginning-search
# Fix pasting with autosuggest
# https://github.com/zsh-users/zsh-autosuggestions/issues/238#issuecomment-389324292
pasteinit() {
OLD_SELF_INSERT=''${''${(s.:.)widgets[self-insert]}[2,3]}
zle -N self-insert url-quote-magic
}
pastefinish() {
zle -N self-insert $OLD_SELF_INSERT
}
zstyle :bracketed-paste-magic paste-init pasteinit
zstyle :bracketed-paste-magic paste-finish pastefinish
# Write history immediately, rather than on shell exit
setopt INC_APPEND_HISTORY
# Spell check
setopt CORRECT
# Glob
setopt EXTENDED_GLOB
setopt GLOB_COMPLETE
setopt COMPLETE_IN_WORD
setopt NUMERIC_GLOB_SORT
# Sanity checks
setopt NO_CLOBBER
setopt RM_STAR_WAIT
# Array expansion
setopt RC_EXPAND_PARAM
# <Ctrl + e>: Invoke a visual editor on the command line
autoload -Uz edit-command-line
zle -N edit-command-line
bindkey "^e" edit-command-line
# <Alt + .>: Insert the last argument of the previous command
bindkey "^[." insert-last-word
# Shift-Tab
bindkey "^[[Z" reverse-menu-complete
# Tab Completion options <http://stackoverflow.com/a/171564>
zstyle ':completion::complete:*' use-cache on
zstyle ':completion::complete:*' cache-path "$XDG_CACHE_HOME/zcompcache"
# case insensitive completion
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
zstyle ':completion:*' verbose yes
zstyle ':completion:*:descriptions' format '%B%d%b'
zstyle ':completion:*:messages' format '%d'
zstyle ':completion:*:warnings' format 'No matches for: %d'
zstyle ':completion:*' group-name \'\'
zstyle ':completion:*' completer _expand _complete _approximate _ignored
# generate descriptions with magic.
zstyle ':completion:*' auto-description 'specify: %d'
# Don't prompt for a huge list, page it!
zstyle ':completion:*:default' list-prompt '%S%M matches%s'
# Don't prompt for a huge list, menu it!
zstyle ':completion:*:default' menu 'select=0'
# Have the newer files last so I see them first
zstyle ':completion:*' file-sort modification reverse
# color code completion!!!! Wohoo!
zstyle ':completion:*' list-colors "=(#b) #([0-9]#)*=36=31"
# Separate man page sections. Neat.
zstyle ':completion:*:manuals' separate-sections true
# complete with a menu for xwindow ids
zstyle ':completion:*:windows' menu on=0
zstyle ':completion:*:expand:*' tag-order all-expansions
# more errors allowed for large words and fewer for small words
zstyle ':completion:*:approximate:*' max-errors 'reply=( $(( ($#PREFIX+$#SUFFIX)/3 )) )'
# Errors format
zstyle ':completion:*:corrections' format '%B%d (errors %e)%b'
# Don't complete stuff already on the line
zstyle ':completion::*:(rm|vi):*' ignore-line true
# Don't complete directory we are already in (../here)
zstyle ':completion:*' ignore-parents parent pwd
zstyle ':completion::approximate*:*' prefix-needed false
''
+ builtins.readFile ./functions.zsh;
shellAliases = {
# Overrides
ag = "ag --pager less --smart-case";
df = "df -h";
diff = "diff --color=auto --unified";
du = "du -hc";
grep = "grep --color=auto";
htop = "htop -u $USER";
ls = "ls --color=auto --human-readable --no-group";
mysql = "mysql --pager=\"less -nSFX\"";
vi = "nvim";
visudo = "sudo EDITOR=nvim visudo";
# Shortcuts
".." = "cd ..";
"..." = "cd ../..";
acp = "rsync -a --partial-dir=\".rsync-partial\" --progress";
adbss = "adb shell screencap -p > /tmp/android-screenshot-\$(date +%s).png";
curl-time = "curl --output /dev/null --silent --write-out 'DNS: %{time_namelookup}s\nEstablish Connection: %{time_connect}s\nTTFB: %{time_starttransfer}s\nTotal: %{time_total}s\n'";
ll = "l | less";
mk = "mkdir -p";
mpva = "mpv --no-video";
mpvn = "mpv --no-ytdl";
myip = "curl --silent https://ifconfig.me";
nd = "nix develop --command $SHELL";
pc = "pass -c";
pct = "passCopyTail";
pg = "passGenerate";
po = "popd";
pu = "pushd";
rd = "rmdir";
serve = "python3 -m http.server --bind 127.0.0.1";
sudu = "sudo -iu";
ts = "date --utc +'%Y-%m-%dT%H:%M:%S.%3NZ'";
th = "dict -d moby-thesaurus";
webcam = "mpv --demuxer-lavf-format=video4linux2 --demuxer-lavf-o=video_size=1920x1080,input_format=mjpeg av://v4l2:/dev/video0 --profile=low-latency --untimed --vf=hflip";
# Compression
"7z9" = "7z a -mx9 -mmt -ms";
"7zp" = "7z9 -mhe";
"7zt" = "7z a -m0=PPMd -ms";
# Single character
b = "bookmark";
c = "wl-copy";
d = "dict -d wn";
g = "git";
# j reserved for zsh-z
l = "ls -lA";
o = "gio open";
p = "wl-paste";
s = "spell";
v = "nvim";
};
syntaxHighlighting.enable = true;
};
wayland.windowManager.sway = {
enable = false;
config = {
input = {
"type:keyboard" = {
xkb_options = "caps:escape";
};
"type:pointer" = {
natural_scroll = "enabled";
};
"type:touchpad" = {
tap = "enabled";
natural_scroll = "enabled";
};
};
menu = "${pkgs.bemenu}/bin/bemenu-run";
modifier = "Mod4";
terminal = "${pkgs.foot}/bin/foot --config $XDG_CONFIG_HOME/foot/foot-windowed.ini";
};
package = null;
xwayland = false;
};
xdg = {
enable = true;
# Stream audio to an AirPlay receiver
# https://wiki.archlinux.org/index.php?title=PipeWire&oldid=792188#Streaming_audio_to_an_AirPlay_receiver
configFile."pipewire/pipewire.conf.d/raop-discover.conf".text = ''
context.modules = [
{
name = libpipewire-module-raop-discover
args = {}
}
]
'';
configFile."systemd/user/org.gnome.Shell@wayland.service.d/override.conf".text = ''
[Service]
ExecStart=
ExecStart=${pkgs.gnome-shell}/bin/gnome-shell --no-x11
'';
userDirs = {
enable = true;
desktop = "${config.home.homeDirectory}/desktop";
documents = "${config.home.homeDirectory}/documents";
download = "${config.home.homeDirectory}/downloads";
music = "${config.home.homeDirectory}/music";
pictures = "${config.home.homeDirectory}/pictures";
publicShare = "${config.home.homeDirectory}/public";
templates = "${config.home.homeDirectory}/templates";
videos = "${config.home.homeDirectory}/videos";
};
};
}