refactor: extract shell setup

main
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; inherit pkgs;
modules = [ modules = [
./shell
./git
./gpg
./neovim
./private.nix ./private.nix
./xps.nix ./xps.nix
]; ];
@ -37,6 +41,10 @@
inherit pkgs; inherit pkgs;
modules = [ modules = [
./shell
./git
./gpg
./neovim
./horsch.nix ./horsch.nix
]; ];

View File

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

View File

@ -1,6 +1,5 @@
{ pkgs, theme, ... }: { pkgs, theme, ... }:
{ {
# symlink for a stable path # symlink for a stable path
home.file.".vscode-extensions/vscode-lldb".source = pkgs.vscode-extensions.vadimcn.vscode-lldb; 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.stateVersion = "24.05"; # Please read the comment before changing.
home.packages = with pkgs; [ home.packages = with pkgs; [
jq
htop
pavucontrol pavucontrol
gnumake gnumake
unzip
gcc gcc
thunderbird thunderbird
keepassxc keepassxc
light light
element-desktop element-desktop
difftastic
darktable darktable
kubectl kubectl
kubectx kubectx
@ -27,50 +23,16 @@
gthumb gthumb
gimp gimp
evince evince
screen
inkscape inkscape
chromium 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; programs.home-manager.enable = true;
imports = [ imports = [
./bat.nix
./carapace.nix
./direnv.nix
./eza.nix
./firefox.nix ./firefox.nix
./fzf.nix
./git.nix
./gpg
./kitty.nix ./kitty.nix
./neovim
./nextcloud.nix ./nextcloud.nix
./ripgrep.nix
./shell_aliases.nix
./starship.nix
./sway ./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
];
}