refactor: extract common config files

This commit is contained in:
Michael Mandl 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;
};
}