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 = [ imports = [
./bat.nix ../bat.nix
./carapace.nix ../carapace.nix
./direnv.nix ../direnv.nix
./eza.nix ../eza.nix
./fzf.nix ../fzf.nix
../ripgrep.nix
../starship.nix
../zoxide.nix
./git.nix ./git.nix
./gpg ./gpg
./neovim ./neovim
./picocom.nix ./picocom.nix
./podman.nix ./podman.nix
./ripgrep.nix
./rsync.nix ./rsync.nix
./shell_aliases.nix ./shell_aliases.nix
./ssh.nix ./ssh.nix
./starship.nix
./tree.nix ./tree.nix
./zoxide.nix
./zsh.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.stateVersion = "24.05"; # Please read the comment before changing.
home.packages = with pkgs; [ home.packages = with pkgs; [
eza
jq jq
htop htop
ripgrep
pavucontrol pavucontrol
gnumake gnumake
unzip unzip
@ -57,19 +55,21 @@
programs.home-manager.enable = true; programs.home-manager.enable = true;
imports = [ imports = [
./bat.nix ../bat.nix
./carapace.nix ../carapace.nix
./direnv.nix ../direnv.nix
../eza.nix
../fzf.nix
../ripgrep.nix
../starship.nix
../zoxide.nix
./firefox.nix ./firefox.nix
./fzf.nix
./git.nix ./git.nix
./gpg ./gpg
./kitty.nix ./kitty.nix
./neovim ./neovim
./nextcloud.nix ./nextcloud.nix
./starship.nix
./sway ./sway
./zoxide.nix
./zsh.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;
};
}