move stuff to fish module
This commit is contained in:
@ -8,7 +8,9 @@
|
|||||||
# This is a module
|
# This is a module
|
||||||
# Because no imports/options/config is defined explicitly, everything is treated as config
|
# Because no imports/options/config is defined explicitly, everything is treated as config
|
||||||
# { inputs, lib, ... }: { ... } gets turned into { inputs, lib, ... }: { config = { ... }; } implicitly
|
# { inputs, lib, ... }: { ... } gets turned into { inputs, lib, ... }: { config = { ... }; } implicitly
|
||||||
rec {
|
let
|
||||||
|
cfgnv = config.modules.neovim;
|
||||||
|
in rec {
|
||||||
|
|
||||||
# Every module is a nix expression, specifically a function { inputs, lib, ... }: { ... }
|
# Every module is a nix expression, specifically a function { inputs, lib, ... }: { ... }
|
||||||
# Every module (/function) is called with the same arguments as this module (home.nix)
|
# Every module (/function) is called with the same arguments as this module (home.nix)
|
||||||
@ -127,8 +129,8 @@ rec {
|
|||||||
|
|
||||||
# Environment variables
|
# Environment variables
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
EDITOR = "nvim";
|
EDITOR = (if cfgnv.enable then "nvim" else "nano");
|
||||||
VISUAL = "nvim";
|
VISUAL = (if cfgnv.enable then "nvim" else "nano");
|
||||||
LANG = "en_US.UTF-8";
|
LANG = "en_US.UTF-8";
|
||||||
|
|
||||||
DOCKER_BUILDKIT = 1;
|
DOCKER_BUILDKIT = 1;
|
||||||
@ -167,11 +169,10 @@ rec {
|
|||||||
nvd # nix rebuild diff
|
nvd # nix rebuild diff
|
||||||
neofetch # Easily see interesting package versions/kernel
|
neofetch # Easily see interesting package versions/kernel
|
||||||
lazygit
|
lazygit
|
||||||
|
yt-dlp
|
||||||
|
|
||||||
# Web
|
# Web
|
||||||
signal-desktop
|
signal-desktop
|
||||||
yt-dlp
|
|
||||||
# thunderbird # Try gnome mail
|
|
||||||
protonmail-bridge
|
protonmail-bridge
|
||||||
protonvpn-cli
|
protonvpn-cli
|
||||||
|
|
||||||
@ -200,80 +201,23 @@ 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;
|
||||||
|
bat.enable = true;
|
||||||
bat = { enable = true; };
|
exa.enable = true;
|
||||||
|
ssh.enable = true;
|
||||||
# Exclusive with nix-index
|
|
||||||
# command-not-found.enable = true;
|
|
||||||
|
|
||||||
# chromium.enable = true;
|
|
||||||
|
|
||||||
direnv = {
|
direnv = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nix-direnv.enable = true;
|
nix-direnv.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
exa.enable = true;
|
|
||||||
|
|
||||||
# feh.enable = true; # Use gnome apps for now
|
|
||||||
|
|
||||||
fzf = {
|
|
||||||
enable = true;
|
|
||||||
enableFishIntegration = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
delta.enable = true;
|
delta.enable = true;
|
||||||
userEmail = "christoph.urlacher@protonmail.com";
|
userEmail = "christoph.urlacher@protonmail.com";
|
||||||
userName = "ChUrl";
|
userName = "ChUrl";
|
||||||
};
|
};
|
||||||
|
|
||||||
keychain = {
|
|
||||||
enable = true;
|
|
||||||
enableFishIntegration = true;
|
|
||||||
enableXsessionIntegration = true;
|
|
||||||
agents = [ "ssh" ];
|
|
||||||
keys = [ "id_ed25519" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Gnome apps for now
|
|
||||||
# mpv = {
|
|
||||||
# enable = true;
|
|
||||||
# scripts = with pkgs; [
|
|
||||||
# mpvScripts.mpris # Make controllable with media keys
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
|
|
||||||
nix-index = {
|
|
||||||
enable = true;
|
|
||||||
enableFishIntegration = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
ssh.enable = true;
|
|
||||||
|
|
||||||
starship = {
|
|
||||||
enable = true;
|
|
||||||
enableFishIntegration = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# TODO: TexLive
|
|
||||||
|
|
||||||
zoxide = {
|
|
||||||
enable = true;
|
|
||||||
enableFishIntegration = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# services = {
|
|
||||||
# # lorri.enable = true; # Use nix-direnv instead
|
|
||||||
|
|
||||||
# nextcloud-client = {
|
|
||||||
# enable = true;
|
|
||||||
# startInBackground = true;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
|
|
||||||
# Nicely reload system units when changing configs
|
# Nicely reload system units when changing configs
|
||||||
systemd.user.startServices = "sd-switch";
|
systemd.user.startServices = "sd-switch";
|
||||||
}
|
}
|
||||||
|
@ -82,5 +82,35 @@ in {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# 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;
|
||||||
|
};
|
||||||
|
|
||||||
|
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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user