-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfiguration.nix
805 lines (702 loc) · 22.6 KB
/
configuration.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
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
# ❄️
{ config, pkgs, lib, ... }:
{
imports =
[
# Include the results of the hardware scan.
./hardware-configuration.nix
# This is great for quick and easy config
# But I have backported this into my own config
#<nixos-hardware/dell/xps/13-9360>
<home-manager/nixos>
];
# The encrypted disk that should be opened before the root filesystem is mounted
boot.initrd.luks.devices = [
{
name = "root";
device = "/dev/nvme0n1p2";
# luksOpen will be attempted before LVM scan
preLVM = true;
}
];
# Display ownership notice before LUKS prompt
boot.initrd.preLVMCommands = ''
echo '--- OWNERSHIP NOTICE ---'
echo 'This device is property of Stanislas Lange'
echo 'If lost please contact stanislas.lange at pm.me'
echo '--- OWNERSHIP NOTICE ---'
'';
# systemd-boot
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Bigger console font
boot.loader.systemd-boot.consoleMode = "2";
# Prohibits gaining root access by passing init=/bin/sh as a kernel parameter
boot.loader.systemd-boot.editor = false;
# new!
#boot.loader.systemd-boot.memtest86.enable = true;
# Plymouth boot splash screen
boot.plymouth.enable = true;
# Clear /tmp during boot
boot.cleanTmpDir = true;
# https://wiki.archlinux.org/index.php/Kernel_mode_setting#Early_KMS_start
boot.initrd.kernelModules = [ "i915" ];
# Enable framebuffer compression (FBC)
# can reduce power consumption while reducing memory bandwidth needed for screen refreshes.
# https://wiki.archlinux.org/index.php/intel_graphics#Framebuffer_compression_(enable_fbc)
boot.kernelParams = [ "i915.enable_fbc=1" ];
# Use latest kernel
# boot.kernelPackages will use linuxPackages by default, so no need to define it
nixpkgs.config.packageOverrides = in_pkgs :
{
linuxPackages = in_pkgs.linuxPackages_latest;
};
# No access time and continuous TRIM for SSD
fileSystems."/".options = [ "noatime" "discard" ];
# If non-empty, write log messages to the specified TTY device.
services.journald.console = "/dev/tty12";
# Enable microcode updates for Intel CPU
hardware.cpu.intel.updateMicrocode = true;
# Enable Kernel same-page merging
hardware.ksm.enable = true;
# Enable all the firmware
hardware.enableAllFirmware = true;
# Enable all the firmware with a license allowing redistribution. (i.e. free firmware and firmware-linux-nonfree)
hardware.enableRedistributableFirmware = true;
# Enable OpenGL drivers
hardware.opengl.enable = true;
hardware.opengl.extraPackages = with pkgs; [
vaapiIntel
vaapiVdpau
libvdpau-va-gl
];
# Sysctl params
boot.kernel.sysctl = {
"fs.inotify.max_user_watches" = 524288; # Allow VS Code to watch more files
};
# A DBus service that allows applications to update firmware
services.fwupd.enable = true;
# Check S.M.A.R.T status of all disks and notify in case of errors
services.smartd = {
enable = true;
# Monitor all devices connected to the machine at the time it's being started
autodetect = true;
notifications = {
x11.enable = if config.services.xserver.enable then true else false;
wall.enable = true; # send wall notifications to all users
};
};
# Enable entropy daemon which refills /dev/random when low
services.haveged.enable = true;
# Add the NixOS Manual on virtual console 8
services.nixosManual.showManual = true;
networking.hostName = "nixpsla";
networking.networkmanager.enable = true;
# Simple stateful dual-stack firewall
networking.firewall = {
enable = true;
allowPing = true;
allowedTCPPorts = [];
allowedUDPPorts = [];
logRefusedConnections = true;
checkReversePath = false; # for libvirtd
};
#networking.search = ["oxalide.local"];
#networking.nameservers = ["192.168.3.2" "89.185.39.94" "176.103.130.130" "1.0.0.1"];
# The list of nameservers. It can be left empty if it is auto-detected through DHCP.
#networking.nameservers = [ "1.0.0.1" "1.1.1.1" ];
# Network usage statistics
services.vnstat.enable = true;
i18n = {
consoleFont = "latarcyrheb-sun32"; # Big console font for HiDPI
consoleKeyMap = "fr";
defaultLocale = "en_US.UTF-8";
};
time.timeZone = "Europe/Paris";
# Use the systemd-timesyncd SNTP client to sync the system clock (enabled by default)
services.timesyncd.enable = true;
# Disable sudo password for the wheel group
security.sudo.wheelNeedsPassword = false;
# List packages installed in system profile.
environment.systemPackages = with pkgs; [
# Utils
wget
neofetch
micro
ncdu
gparted
ntfs3g
ripgrep
file
htop
speedtest-cli
strace
awscli
gitAndTools.diff-so-fancy
freerdp
google-cloud-sdk
vault
exa
lazygit
bat
libsForQt5.vlc
gparted
tree
rsync
openssl
docker-compose
nload
sysbench
geekbench
psmisc # provides: fuser, killall, pstree, peekfd
ethtool
lsof
tokei # fast cloc alternative in rust
dos2unix # Convert between DOS and Unix line endings
socat
ipcalc
whois
dnsutils
iperf
netcat
nmap
speedtest-cli
openvpn
networkmanager-openvpn
ntfs3g
pavucontrol # PulseAudio Volume Control, GUI
#hyper
# Nix tools
nix-du #https://github.com/symphorien/nix-du
common-updater-scripts
nixops
nix-review
nix-universal-prefetch
# Dev
cmake
bundix
vscode
nodejs-11_x
ruby_2_6
php73
php73Packages.composer
python27Full
python37Full
go_1_12
sublime3
shellcheck
git
solargraph # ruby tools
rubocop
gtk3
gnome3.glade
pkgconfig
# Compiler and debugger
gcc gdb
# Build tools
automake
gnumake
pkg-config
clang-tools
# Formatter
indent
# Linter
splint
# as (assembler) and ld, ld.bfd, ld.gold (linkers)
binutils
# Else
google-chrome
chromium
spotify
slack
filezilla
firefox
ansible
terraform_0_12
vagrant
tdesktop
libreoffice
gimp
# Media
plex-media-player
# VM
open-vm-tools
# Hardware
lshw
usbutils
pciutils
dmidecode
lm_sensors
hdparm
smartmontools
p7zip
privoxy
# compression
pixz pigz pbzip2 # parallel (de-)compression
unzip
# Data formatters, accessors
libxml2 # xmllint
jq # json parser
yq # same for yaml
nvme-cli
_1password
ffsend
graphviz
dpkg
hexchat
pidgin
gitlab-runner
exfat
jnettop
zip
# https://www.mpscholten.de/nixos/2016/04/11/setting-up-vim-on-nixos.html
(
with import <nixpkgs> {};
vim_configurable.customize {
# Specifies the vim binary name
# E.g. set this to "my-vim" and you need to type "my-vim" to open this vim
# This allows to have multiple vim packages installed (e.g. with a different set of plugins)
name = "vim";
vimrcConfig.customRC = ''
syntax on
syntax enable
set backupdir=/tmp " save backup files (~) to /tmp
set tabstop=4 " number of visual spaces per TAB
set softtabstop=4 " number of spaces in tab when editing
set expandtab " tabs are spaces
filetype indent on " load filetype-specific indent files
filetype on " Enable file type detection
set number " show line numbers
set showcmd " show command in bottom bar
set cursorline " highlight current line
set wildmenu " visual autocomplete for command menu
set lazyredraw " redraw only when we need to.
set showmatch " highlight matching [{()}]
set incsearch " search as characters are entered
set hlsearch " highlight matches
colorscheme pablo
set backspace=indent,eol,start " backspace over everything in insert mode
'';
}
)
];
# Install + setcap
programs.iftop.enable = true;
programs.iotop.enable = true;
programs.mtr.enable = true;
# Thermals and cooling
services.thermald.enable = true;
# This includes support for suspend-to-RAM and powersave features on laptops
powerManagement.enable = true;
# Enable powertop auto tuning on startup.
powerManagement.powertop.enable = false;
# IDK if TLP is useful/conflicts with powerManagement
services.tlp.enable = false;
services.tlp.extraConfig = "USB_AUTOSUSPEND=0";
# Install and configure Docker
virtualisation.docker = {
enable = true;
# Run docker system prune -f periodically
autoPrune.enable = true;
autoPrune.dates = "weekly";
# Don't start the service at boot, use systemd socket activation
enableOnBoot = false;
};
# Install LXD
virtualisation.lxd.enable = true;
# Install VB
virtualisation.virtualbox.host.enable = true;
# Libvirtd (Qemu)
virtualisation.libvirtd.enable = true;
# Periodically update the database of files used by the locate command
services.locate.enable = true;
# Enable Flatpak
#services.flatpak.enable = true
# No snap yet: https://github.com/NixOS/nixpkgs/issues/30336
# Enable ClamAV, an open source antivirus engine
#services.clamav.daemon.enable = true;
# Enable ClamAV freshclam updater.
#services.clamav.updater.enable = true;
# Enable CUPS to print documents.
# services.printing.enable = true;
# Enable the OpenSSH daemon.
#services.openssh.enable = true;
# Monitoring
services.netdata = {
enable = true;
config = {
global = {
"default port" = "19999";
"bind to" = "127.0.0.1";
};
};
};
# Enable Pulseaudio
hardware.pulseaudio = {
enable = true;
# NixOS allows either a lightweight build (default) or full build of PulseAudio to be installed.
# Only the full build has Bluetooth support, so it must be selected here.
package = pkgs.pulseaudioFull;
};
# Bluetooth
# https://nixos.wiki/wiki/Bluetooth
hardware.bluetooth.enable = false;
# Don't power up the default Bluetooth controller on boot
hardware.bluetooth.powerOnBoot = false;
# Enable the X11 windowing system.
services.xserver.enable = true;
services.xserver.layout = "fr";
services.xserver.xkbOptions = "eurosign:e";
# Enable touchpad support.
services.xserver.libinput.enable = true;
# GNOME
services.xserver.desktopManager.gnome3.enable = true;
services.xserver.displayManager.gdm.enable = true;
# GDM uses wayland by default, but I don't want to
services.xserver.displayManager.gdm.wayland = true;
# Remove these packages that come by default with GNOME
environment.gnome3.excludePackages = with pkgs.gnome3; [
epiphany
evolution
gnome-maps
accerciser
];
# Enable GNOME Keyring daemon
services.gnome3.gnome-keyring.enable = true;
# Enable Chrome GNOME Shell native host connector
# This is a DBus service allowing to install GNOME Shell extensions from a web browser.
services.gnome3.chrome-gnome-shell.enable = true;
# this is required for mounting android phones
# over mtp://
services.gvfs.enable = true;
# Disable mutable users.
#users.mutableUsers = false;
# Use fish by default for all users
users.defaultUserShell = pkgs.fish;
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.stanislas = {
description = "Stanislas";
# This automatically sets group to users, createHome to true,
# home to /home/username, useDefaultShell to true, and isSystemUser to false.
isNormalUser = true;
# Use fish as the default shell
shell = pkgs.fish;
extraGroups = [
"wheel" # Enable ‘sudo’ for the user.
"docker" "lxd" # Allow access to the sockets without root
"libvirtd"
];
# It is possible to install packages on a per-user basis.
# I don't know why I would do that so they are installed globally for now.
#packages = [];
};
home-manager.users.stanislas = { pkgs, ... }: {
# home.packages = [ pkgs.atool pkgs.httpie ];
# programs.bash.enable = true;
programs.git = {
enable = true;
userName = "Stanislas Lange";
userEmail = "[email protected]";
aliases = {
plog = "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all";
};
# BEGING diff-so-fancy config
extraConfig = {
core = {
pager = "diff-so-fancy | less --tabs=4 -RFX";
};
color = {
ui = "true";
};
"color \"diff-highlight\"" = {
oldnormal = "red bold";
oldHighlight = "red bold 52";
newNormal = "green bold";
newHighlight = "green bold 22";
};
"color \"diff\"" = {
meta = "yellow";
frag = "magenta bold";
commit = "yellow bold";
old = "red bold";
new = "green bold";
whitespace = "red reverse";
};
};
# END diff-so-fancy config
ignores = [
"*.swp"
"*~"
".#*"
".DS_Store"
".direnv"
".vagrant"
];
};
programs.ssh = {
enable = true;
matchBlocks = {
# Personal
kokoro = {
hostname = "kokoro.angristan.xyz";
user = "root";
port = 3200;
identityFile = "~/.ssh/xps-sla";
};
mina = {
hostname = "mina.angristan.xyz";
user = "root";
port = 3200;
identityFile = "~/.ssh/xps-sla";
};
mitsuha = {
hostname = "mitsuha.angristan.xyz";
user = "root";
port = 3200;
identityFile = "~/.ssh/xps-sla";
};
"github.com" = {
user = "git";
identityFile = "~/.ssh/xps-sla";
identitiesOnly = true;
};
"gitlab.com" = {
user = "git";
identityFile = "~/.ssh/xps-sla-oxa";
identitiesOnly = true;
};
# Work
pa1 = {
hostname = "bastion-pa1-01";
user = "slange";
identityFile = "~/.ssh/xps-sla-oxa";
};
pa2 = {
hostname = "bastion-pa2-01";
user = "slange";
identityFile = "~/.ssh/xps-sla-oxa";
};
pa3 = {
hostname = "bastion-pa3-01";
user = "slange";
identityFile = "~/.ssh/xps-sla-oxa";
};
"oxalide.factory.git-01.adm" = {
user = "slange";
identityFile = "~/.ssh/xps-sla-oxa";
identitiesOnly = true;
};
};
};
programs.htop = {
enable = true;
# Detailed CPU time (System/IO-Wait/Hard-IRQ/Soft-IRQ/Steal/Guest).
detailedCpuTime = true;
};
# home.file."" = {
# text = ''
# '';
# };
};
environment.variables.EDITOR = "vim";
# Allow "unfree" packages.
nixpkgs.config.allowUnfree = true;
fonts = {
enableDefaultFonts = true;
enableFontDir = true;
enableGhostscriptFonts = true;
fontconfig.ultimate.enable = true;
fonts = with pkgs; [
noto-fonts
noto-fonts-cjk # Chinese, Japanese, Korean
noto-fonts-emoji
noto-fonts-extra
fira-code # Monospace font with programming ligatures
hack-font # A typeface designed for source code
fira-mono # Mozilla's typeface for Firefox OS
corefonts # Microsoft free fonts
ubuntu_font_family
roboto # Android
];
};
nix = {
# Automatically run the garbage collector
gc.automatic = false;
gc.dates = "12:45";
# Automatically run the nix store optimiser
optimise.automatic = false;
optimise.dates = [ "12:55" ];
# Nix automatically detects files in the store that have identical contents, and replaces them with hard links to a single copy.
autoOptimiseStore = true;
# maximum number of concurrent tasks during one build
buildCores = 4;
# maximum number of jobs that Nix will try to build in parallel
# "auto" is broken: https://github.com/NixOS/nixpkgs/issues/50623
maxJobs = 4;
# perform builds in a sandboxed environment
useSandbox = true;
};
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you
# should.
# This does NOT define the NixOS version. The channel does.
# https://nixos.wiki/wiki/FAQ#When_do_I_update_stateVersion
system.stateVersion = "19.03"; # Did you read the comment?
# This will run nixos-rebuild switch --upgrade periodically
#system.autoUpgrade.enable = true;
# Use the fish shell.
programs.fish = {
enable = true;
shellAliases = {
sysrs = "sudo nixos-rebuild switch";
# Same as nix-channel --update nixos; nixos-rebuild switch
sysup = "sudo nixos-rebuild switch --upgrade";
sysrsgit = "sysrs -I nixpkgs=/home/stanislas/nixpkgs";
sysupgit = "sysup -I nixpkgs=/home/stanislas/nixpkgs";
nixpkgsupgit = "cd ~/nixpkgs/ && git fetch upstream && git checkout master && git rebase upstream/master && git push && cd -";
sysclean = "sudo nix-collect-garbage -d; and sudo nix-store --optimise";
lgit = "git add -A; and git commit; and git push";
lgitf = "git add -A; and git commit; and git pull; and git push";
cat = "bat -p";
ls = "exa -gF --group-directories-first --git";
ll = "ls -l";
l = "ll -a";
grep = "rg";
rgrep = "grep";
};
shellInit = ''
# Remove welcome message
set fish_greeting
export VAULT_ADDR=https://vault.oxalide.net
'';
promptInit = ''
# Based on the "Classic" and "Informative Vcs" prompts
function fish_prompt --description 'Write out the prompt'
set -l last_status $status
if not set -q __fish_git_prompt_show_informative_status
set -g __fish_git_prompt_show_informative_status 1
end
if not set -q __fish_git_prompt_hide_untrackedfiles
set -g __fish_git_prompt_hide_untrackedfiles 1
end
if not set -q __fish_git_prompt_color_branch
set -g __fish_git_prompt_color_branch magenta --bold
end
if not set -q __fish_git_prompt_showupstream
set -g __fish_git_prompt_showupstream "informative"
end
if not set -q __fish_git_prompt_char_upstream_ahead
set -g __fish_git_prompt_char_upstream_ahead "↑"
end
if not set -q __fish_git_prompt_char_upstream_behind
set -g __fish_git_prompt_char_upstream_behind "↓"
end
if not set -q __fish_git_prompt_char_upstream_prefix
set -g __fish_git_prompt_char_upstream_prefix ""
end
if not set -q __fish_git_prompt_char_stagedstate
set -g __fish_git_prompt_char_stagedstate "●"
end
if not set -q __fish_git_prompt_char_dirtystate
set -g __fish_git_prompt_char_dirtystate "✚"
end
if not set -q __fish_git_prompt_char_untrackedfiles
set -g __fish_git_prompt_char_untrackedfiles "…"
end
if not set -q __fish_git_prompt_char_conflictedstate
set -g __fish_git_prompt_char_conflictedstate "✖"
end
if not set -q __fish_git_prompt_char_cleanstate
set -g __fish_git_prompt_char_cleanstate "✔"
end
if not set -q __fish_git_prompt_color_dirtystate
set -g __fish_git_prompt_color_dirtystate blue
end
if not set -q __fish_git_prompt_color_stagedstate
set -g __fish_git_prompt_color_stagedstate yellow
end
if not set -q __fish_git_prompt_color_invalidstate
set -g __fish_git_prompt_color_invalidstate red
end
if not set -q __fish_git_prompt_color_untrackedfiles
set -g __fish_git_prompt_color_untrackedfiles $fish_color_normal
end
if not set -q __fish_git_prompt_color_cleanstate
set -g __fish_git_prompt_color_cleanstate green --bold
end
if not set -q __fish_prompt_normal
set -g __fish_prompt_normal (set_color normal)
end
set -l suffix
switch "$USER"
case root toor
if set -q fish_color_cwd_root
set color_cwd $fish_color_cwd_root
else
set color_cwd $fish_color_cwd
end
set suffix '#'
case '*'
set color_cwd $fish_color_cwd
set suffix '>'
end
echo -n -s "$USER" @ (prompt_hostname) ' ' (set_color $color_cwd) (prompt_pwd) (set_color normal) "$suffix"
printf '%s ' (__fish_vcs_prompt)
set_color normal
end
'';
};
programs.tmux = {
enable = true;
extraTmuxConf = ''
# More history
set -g history-limit 100000
# Windows start at 1
set -g base-index 1
# Basic status bar colors
set -g status-bg black
set -g status-fg cyan
set -g status-left-bg black
set -g status-left-fg green
set -g status-left-length 40
#set -g status-left "Session #S #[fg=white]#[fg=yellow]Windows #I #[fg=cyan]Pane #P"
set -g status-left "#S #[fg=white]#[fg=yellow]#I #[fg=cyan]#P"
# Right side of status bar
set -g status-right-bg black
set -g status-right-fg cyan
set -g status-right-length 40
set -g status-right "#H #[fg=white]#[fg=yellow]%H:%M:%S #[fg=green]%d-%b-%y"
# Window status
set -g window-status-format " #I:#W "
set -g window-status-current-format " #I:#W "
# Current window status
set -g window-status-current-bg red
set -g window-status-current-fg black
# Window with activity status
set -g window-status-activity-bg yellow # fg and bg are flipped here due to a
set -g window-status-activity-fg black # bug in tmux
# Window separator
set -g window-status-separator ""
# Window status alignment
set -g status-justify centre
# Screen like binding
set -g prefix C-a
bind a send-prefix
# Enable mouse mode
set -g mouse on
'';
};
# services.restic.backups.bastion_pa3 = {
# passwordFile = "/etc/nixos/secrets/restic-password";
# paths = [ "/etc" ];
# user = "stanislas";
# repository = "sftp:pa3:restic";
# timerConfig = {
# OnCalendar = "12:30";
# };
# };
}