1

email, move programs from fish to default, abbrs

This commit is contained in:
2022-10-31 15:50:02 +01:00
parent 044ea51034
commit d5cba4f604
2 changed files with 73 additions and 45 deletions

View File

@ -38,6 +38,10 @@ in rec {
doom.autoUpgrade = false; # Very volatile as the upgrade fails sometimes with bleeding edge emacs doom.autoUpgrade = false; # Very volatile as the upgrade fails sometimes with bleeding edge emacs
}; };
email = {
enable = true;
}
firefox = { firefox = {
enable = true; enable = true;
wayland = true; wayland = true;
@ -226,7 +230,7 @@ in rec {
# Web stuff # Web stuff
signal-desktop signal-desktop
protonvpn-cli protonvpn-cli
yt-dlp # download videos (from almost anywhere) # yt-dlp # download videos (from almost anywhere) # HM program
cyberdrop-dl # TODO: Make this somehow only available in the needed folder (but keep derivation here?) cyberdrop-dl # TODO: Make this somehow only available in the needed folder (but keep derivation here?)
filezilla filezilla
@ -240,7 +244,7 @@ in rec {
# Office # Office
jabref # manage bibilography jabref # manage bibilography
sioyek # Scientific pdf reader # sioyek # Scientific pdf reader # HM program
xournalpp # Write with a pen xournalpp # Write with a pen
libreoffice-qt libreoffice-qt
hunspell # I cna't type hunspell # I cna't type
@ -265,7 +269,7 @@ in rec {
libsForQt5.kate libsForQt5.kate
libsForQt5.kwrited # Already included by default libsForQt5.kwrited # Already included by default
libsForQt5.ark libsForQt5.ark
libsForQt5.kdeconnect-kde libsForQt5.kdeconnect-kde # NOTE: Also has HM program
libsForQt5.kcalc libsForQt5.kcalc
libsForQt5.ksystemlog libsForQt5.ksystemlog
libsForQt5.kfind libsForQt5.kfind
@ -291,9 +295,47 @@ in rec {
# Packages with extra options managed by HomeManager natively # Packages with extra options managed by HomeManager natively
programs = { programs = {
home-manager.enable = true; home-manager.enable = true;
# Potential future enables
# mangohud.enable = true;
# matplotlib.enable = true;
# kdeconnect.enable = true;
bat.enable = true; bat.enable = true;
btop.enable = true;
direnv = {
enable = true;
nix-direnv.enable = true;
};
# TODO: Configure this
# editorconfig.enable = true;
exa.enable = true; exa.enable = true;
ssh.enable = true;
fzf = {
enable = true;
enableFishIntegration = config.modules.fish.enable;
};
gallery-dl.enable = true; # TODO: Alternative to cyberdrop-dl?
git = {
enable = true;
delta.enable = true;
userEmail = "christoph.urlacher@protonmail.com";
userName = "ChUrl";
};
# NOTE: If error occurs after system update on fish init run "ssh-add"
keychain = {
enable = true;
enableFishIntegration = config.modules.fish.enable;
enableXsessionIntegration = true;
agents = [ "ssh" ];
keys = [ "id_ed25519" ];
};
# Realtime Motion Interpolation: https://gist.github.com/phiresky/4bfcfbbd05b3c2ed8645 # Realtime Motion Interpolation: https://gist.github.com/phiresky/4bfcfbbd05b3c2ed8645
mpv = { mpv = {
@ -309,16 +351,31 @@ in rec {
}; };
}; };
direnv = { nix-index = {
enable = true; enable = true;
nix-direnv.enable = true; enableFishIntegration = config.modules.fish.enable;
}; };
git = { # Scientific pdf reader
sioyek = {
enable = true; enable = true;
delta.enable = true; # bindings = {};
userEmail = "christoph.urlacher@protonmail.com"; # config = {};
userName = "ChUrl"; };
ssh.enable = true;
starship = {
enable = true;
enableFishIntegration = config.modules.fish.enable;
};
# TODO: Check HM module options
yt-dlp.enable = true;
zoxide = {
enable = true;
enableFishIntegration = config.modules.fish.enable;
}; };
}; };

View File

@ -45,15 +45,13 @@ in {
kerrors = "journalctl -p 3 -xb -k"; kerrors = "journalctl -p 3 -xb -k";
xxhamster = "TERM=ansi ssh christoph@217.160.142.51"; xxhamster = "TERM=ansi ssh christoph@217.160.142.51";
mp4 = "yt-dlp -f 'bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4] / bv*+ba/b' --recode-video mp4"; # the -f options are yt-dlp defaults
mp3 = "yt-dlp -f 'ba' --extract-audio --audio-format mp3";
} }
(optionalAttrs (contains config.home.packages pkgs.lazygit) { lg = "lazygit"; }) (optionalAttrs (contains config.home.packages pkgs.lazygit) { lg = "lazygit"; })
(optionalAttrs (contains config.home.packages pkgs.gping) { ping = "gping"; }) (optionalAttrs (contains config.home.packages pkgs.gping) { ping = "gping"; })
(optionalAttrs (contains config.home.packages pkgs.duf) { df = "duf"; }) (optionalAttrs (contains config.home.packages pkgs.duf) { df = "duf"; })
(optionalAttrs (contains config.home.packages pkgs.gdu) { du = "gdu"; }) (optionalAttrs (contains config.home.packages pkgs.gdu) { du = "gdu"; })
(optionalAttrs config.programs.btop.enable { top = "btop"; })
(optionalAttrs (contains config.home.packages pkgs.fzf) { (optionalAttrs (contains config.home.packages pkgs.fzf) {
fz = "fzf --preview 'bat --color=always --style=numbers --line-range=:500 {}'"; fz = "fzf --preview 'bat --color=always --style=numbers --line-range=:500 {}'";
}) })
@ -83,43 +81,16 @@ in {
vpnkr = "protonvpn-cli c --cc kr"; vpnkr = "protonvpn-cli c --cc kr";
vpnoff = "protonvpn-cli d"; vpnoff = "protonvpn-cli d";
}) })
(optionalAttrs config.programs.yt-dlp.enable {
mp4 = "yt-dlp -f 'bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4] / bv*+ba/b' --recode-video mp4"; # the -f options are yt-dlp defaults
mp3 = "yt-dlp -f 'ba' --extract-audio --audio-format mp3";
})
]; ];
shellInit = '' shellInit = ''
set -e fish_greeting set -e fish_greeting
''; '';
}; };
# I put these programs here as they all have fish integration and are connected to the shell,
# don't know if I will keep it that way
programs.fzf = {
enable = true;
enableFishIntegration = true;
};
# NOTE: If error occurs after system update on fish init run "ssh-add"
programs.keychain = {
enable = true;
enableFishIntegration = true;
enableXsessionIntegration = true;
agents = [ "ssh" ];
keys = [ "id_ed25519" ];
};
programs.nix-index = {
enable = true;
enableFishIntegration = true;
};
programs.starship = {
enable = true;
enableFishIntegration = true;
};
programs.zoxide = {
enable = true;
enableFishIntegration = true;
};
}; };
} }