refactor: extract common config files

main
mandlm 2024-07-10 08:28:44 +02:00
parent 27b66ec830
commit 7b8e76860c
Signed by: mandlm
GPG Key ID: 088ED38F036C7AF2
16 changed files with 16 additions and 78 deletions

View File

@ -1,10 +0,0 @@
{ config, lib, pkgs, user, ... }:
{
programs = {
fzf = {
enable = true;
enableZshIntegration = true;
};
};
}

View File

@ -18,23 +18,23 @@
];
imports = [
./bat.nix
./carapace.nix
./direnv.nix
./eza.nix
./fzf.nix
../bat.nix
../carapace.nix
../direnv.nix
../eza.nix
../fzf.nix
../ripgrep.nix
../starship.nix
../zoxide.nix
./git.nix
./gpg
./neovim
./picocom.nix
./podman.nix
./ripgrep.nix
./rsync.nix
./shell_aliases.nix
./ssh.nix
./starship.nix
./tree.nix
./zoxide.nix
./zsh.nix
];
}

View File

@ -1,13 +0,0 @@
{ theme, ... }:
let
theme_name = "Solarized (${theme})";
in
{
programs = {
bat = {
enable = true;
config.theme = theme_name;
};
};
}

View File

@ -1,8 +0,0 @@
{ ... }:
{
programs.carapace = {
enable = true;
enableZshIntegration = true;
};
}

View File

@ -1,11 +0,0 @@
{ ... }:
{
programs = {
direnv = {
enable = true;
enableZshIntegration = true;
nix-direnv.enable = true;
};
};
}

View File

@ -7,10 +7,8 @@
home.stateVersion = "24.05"; # Please read the comment before changing.
home.packages = with pkgs; [
eza
jq
htop
ripgrep
pavucontrol
gnumake
unzip
@ -57,19 +55,21 @@
programs.home-manager.enable = true;
imports = [
./bat.nix
./carapace.nix
./direnv.nix
../bat.nix
../carapace.nix
../direnv.nix
../eza.nix
../fzf.nix
../ripgrep.nix
../starship.nix
../zoxide.nix
./firefox.nix
./fzf.nix
./git.nix
./gpg
./kitty.nix
./neovim
./nextcloud.nix
./starship.nix
./sway
./zoxide.nix
./zsh.nix
];
}

View File

@ -1,11 +0,0 @@
{ lib, ... }:
{
programs.starship = {
enable = true;
settings = {
format = lib.concatStrings [ "$all" "$directory" "$character" ];
hostname.format = "[$ssh_symbol$hostname]($style) ";
};
};
}

View File

@ -1,9 +0,0 @@
{ ... }:
{
programs.zoxide = {
enable = true;
enableZshIntegration = true;
};
}