refactor: extract shell setup

This commit is contained in:
mandlm 2024-07-10 13:21:28 +02:00
parent f6f01771ab
commit c2afb2c5d1
Signed by: mandlm
GPG Key ID: 088ED38F036C7AF2
18 changed files with 33 additions and 58 deletions

View File

@ -20,6 +20,10 @@
inherit pkgs;
modules = [
./shell
./git
./gpg
./neovim
./private.nix
./xps.nix
];
@ -37,6 +41,10 @@
inherit pkgs;
modules = [
./shell
./git
./gpg
./neovim
./horsch.nix
];

View File

@ -6,10 +6,6 @@
home.stateVersion = "24.05"; # Please read the comment before changing.
home.sessionVariables = {
EDITOR = "nvim";
};
programs.home-manager.enable = true;
home.packages = with pkgs; [
@ -18,23 +14,8 @@
];
imports = [
./bat.nix
./carapace.nix
./direnv.nix
./eza.nix
./fzf.nix
./git.nix
./gpg
./neovim
./picocom.nix
./podman.nix
./ripgrep.nix
./rsync.nix
./shell_aliases.nix
./starship.nix
./tree.nix
./zoxide.nix
./zsh.nix
./horsch/ssh.nix
./horsch/zsh.nix

View File

@ -1,6 +1,5 @@
{ pkgs, theme, ... }:
{
# symlink for a stable path
home.file.".vscode-extensions/vscode-lldb".source = pkgs.vscode-extensions.vadimcn.vscode-lldb;

View File

@ -7,17 +7,13 @@
home.stateVersion = "24.05"; # Please read the comment before changing.
home.packages = with pkgs; [
jq
htop
pavucontrol
gnumake
unzip
gcc
thunderbird
keepassxc
light
element-desktop
difftastic
darktable
kubectl
kubectx
@ -27,50 +23,16 @@
gthumb
gimp
evince
screen
inkscape
chromium
xclip
];
# Home Manager can also manage your environment variables through
# 'home.sessionVariables'. These will be explicitly sourced when using a
# shell provided by Home Manager. If you don't want to manage your shell
# through Home Manager then you have to manually source 'hm-session-vars.sh'
# located at either
#
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
#
# or
#
# ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh
#
# or
#
# /etc/profiles/per-user/mandlm/etc/profile.d/hm-session-vars.sh
#
home.sessionVariables = { };
programs.home-manager.enable = true;
imports = [
./bat.nix
./carapace.nix
./direnv.nix
./eza.nix
./firefox.nix
./fzf.nix
./git.nix
./gpg
./kitty.nix
./neovim
./nextcloud.nix
./ripgrep.nix
./shell_aliases.nix
./starship.nix
./sway
./tree.nix
./zoxide.nix
./zsh.nix
];
}

25
shell/default.nix Normal file
View File

@ -0,0 +1,25 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
difftastic
htop
jq
unzip
xclip
];
imports = [
./bat.nix
./carapace.nix
./direnv.nix
./eza.nix
./fzf.nix
./ripgrep.nix
./rsync.nix
./shell_aliases.nix
./starship.nix
./tree.nix
./zoxide.nix
./zsh.nix
];
}