backup mail and fzf

This commit is contained in:
Kopatz
2025-09-14 19:08:35 +02:00
parent 87325a81d7
commit 2ea08b7a20
4 changed files with 15 additions and 4 deletions

View File

@@ -1,4 +1,8 @@
{ config, pkgs, inputs, ... }: { { config, pkgs, inputs, ... }: {
programs.fzf = {
enable = true;
enableZshIntegration = true;
};
programs.zsh = { programs.zsh = {
enable = true; enable = true;
enableCompletion = true; enableCompletion = true;

View File

@@ -32,6 +32,12 @@ in {
#This is useful to execute shebangs on NixOS that assume hard coded locations in locations like /bin or /usr/bin etc. #This is useful to execute shebangs on NixOS that assume hard coded locations in locations like /bin or /usr/bin etc.
services.envfs.enable = true; services.envfs.enable = true;
# enables fzf and integration with bash/zsh/fish
programs.fzf = {
fuzzyCompletion = true;
keybindings = true;
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
getTotalPowerUsed getTotalPowerUsed
watchCurrentPowerUsed watchCurrentPowerUsed
@@ -39,7 +45,6 @@ in {
wget wget
else else
powerjoular) # monitor power usage powerjoular) # monitor power usage
fzf # fuzzy finder
bat # fancy cat bat # fancy cat
fd # nicer find fd # nicer find
duf # nicer du duf # nicer du

View File

@@ -50,12 +50,13 @@
let let
kavita = "/data/kavita"; kavita = "/data/kavita";
gitolite = "/var/lib/gitolite"; gitolite = "/var/lib/gitolite";
mail = "/data/vmail";
syncthing = [ "/data/synced/default/" "/data/synced/work_drive/" ]; syncthing = [ "/data/synced/default/" "/data/synced/work_drive/" ];
syncthingFull = syncthing syncthingFull = syncthing
++ [ "/data/synced/fh/" "/data/synced/books/" ]; ++ [ "/data/synced/fh/" "/data/synced/books/" ];
backupPathsSmall = [ "/home" gitolite ] ++ syncthing; backupPathsSmall = [ "/home" gitolite mail ] ++ syncthing;
backupPathsMedium = [ "/home" gitolite ] ++ syncthing; backupPathsMedium = [ "/home" gitolite mail ] ++ syncthing;
backupPathsFull = [ "/home" kavita gitolite ] ++ syncthingFull; backupPathsFull = [ "/home" kavita gitolite mail ] ++ syncthingFull;
in in
{ {
enable = true; enable = true;

View File

@@ -1,5 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let let
# create hash -> dovecot -O pw
tmp_dovecot_passwords = "kopatz:{CRYPT}$2y$05$jqBkvhJ0e439J0PLhef4leOGc3GACGH83kSDCrvmAcsdz68tELkA6:5000:5000::/home/kopatz"; tmp_dovecot_passwords = "kopatz:{CRYPT}$2y$05$jqBkvhJ0e439J0PLhef4leOGc3GACGH83kSDCrvmAcsdz68tELkA6:5000:5000::/home/kopatz";
email-domain = "mail.detschn.net"; email-domain = "mail.detschn.net";
in in