Replace Bash with ZSH

Uninstall some unneeded GNOME programs
This commit is contained in:
Pim Kunis 2024-06-09 23:01:34 +02:00
parent c3bddc6c44
commit 867912a676
3 changed files with 90 additions and 79 deletions

View file

@ -42,29 +42,59 @@
}; };
environment = { environment = {
systemPackages = with pkgs; [ # https://nix-community.github.io/home-manager/options.xhtml#opt-programs.zsh.enableCompletion
wget pathsToLink = [ "/share/zsh" ];
curl
git systemPackages = (with pkgs; [
age
borgbackup
btop btop
ripgrep btrfs-progs
vim curl
dogdns
tree
dig dig
gnomeExtensions.pop-shell exfat
f3
fastfetch
file
git
gnome.gnome-shell-extensions gnome.gnome-shell-extensions
gnomeExtensions.window-is-ready-remover jq
]; kubectl
gnome.excludePackages = with pkgs; with pkgs.gnome; [ nmap
totem poppler_utils # For pdfunite
gnome-tour ripgrep
sbctl
silicon
sops
tree
units
vim
wget
yq
]) ++ (with pkgs.gnomeExtensions; [
pop-shell
window-is-ready-remover
]);
gnome.excludePackages = (with pkgs; [
epiphany epiphany
geary gnome-connections
gnome-console gnome-console
gnome-music gnome-tour
]) ++ (with pkgs.gnome; [
geary
gnome-calendar gnome-calendar
]; gnome-clocks
gnome-contacts
gnome-font-viewer
gnome-logs
gnome-maps
gnome-music
seahorse
totem
yelp
gnome-weather
]);
}; };
system = { system = {

104
home.nix
View file

@ -2,11 +2,10 @@
imports = [ imports = [
./modules/home-manager/neovim ./modules/home-manager/neovim
./modules/home-manager/firefox ./modules/home-manager/firefox
./modules/home-manager/syncthing ./modules/home-manager/syncthing.nix
./modules/home-manager/keepassxc ./modules/home-manager/keepassxc.nix
]; ];
# Let home-manager manage the X session
xsession.enable = true; xsession.enable = true;
xdg.userDirs.enable = true; xdg.userDirs.enable = true;
@ -15,57 +14,47 @@
homeDirectory = "/home/pim"; homeDirectory = "/home/pim";
stateVersion = "23.05"; stateVersion = "23.05";
packages = with pkgs; [ packages = (with pkgs; [
unstable.moonlight-qt
unstable.vlc
unstable.nicotine-plus
unstable.logseq
unstable.signal-desktop
unstable.telegram-desktop
unstable.strawberry
unstable.gimp
unstable.libreoffice
virt-manager
gnome.gnome-tweaks gnome.gnome-tweaks
unstable.impression
poppler_utils # For pdfunite
silicon
unstable.dbeaver-bin
unstable.wireshark
units
btrfs-progs
exfat
unstable.qFlipper
f3
unstable.insomnia
unstable.vorta
jellyfin-media-player jellyfin-media-player
jq virt-manager
kubectl ]) ++ (with pkgs.unstable; [
file attic-client
yq dbeaver-bin
age devenv
sops bottles-unwrapped
nmap gimp
unstable.devenv hexchat
unstable.attic-client impression
unstable.hexchat insomnia
sbctl krita
borgbackup libreoffice
unstable.krita logseq
unstable.bottles-unwrapped moonlight-qt
]; nicotine-plus
qFlipper
signal-desktop
strawberry
telegram-desktop
vlc
vorta
wireshark
]);
}; };
programs = { programs = {
home-manager.enable = true; home-manager.enable = true;
chromium.enable = true; chromium.enable = true;
alacritty.enable = true;
bat.enable = true; bat.enable = true;
alacritty = {
enable = true;
settings.shell.program = lib.getExe config.programs.zsh.package;
};
thunderbird = { thunderbird = {
enable = true; enable = true;
profiles.default = { isDefault = true; }; profiles.default.isDefault = true;
}; };
direnv = { direnv = {
@ -79,21 +68,11 @@
enableBashIntegration = true; enableBashIntegration = true;
}; };
bash = { zsh = {
enable = true; enable = true;
shellAliases = { autocd = true;
htop = "btop"; autosuggestion.enable = true;
gp = "git push"; prezto.enable = true;
gco = "git checkout";
gd = "git diff";
gc = "git commit";
gpl = "git pull";
gb = "git branch";
ga = "git add";
gl = "git log";
gs = "git status";
tf = "tofu";
};
}; };
ssh = { ssh = {
@ -101,15 +80,16 @@
extraConfig = "User root"; extraConfig = "User root";
matchBlocks = { matchBlocks = {
lewis = lib.hm.dag.entryBefore [ "*" ] { hostname = "lewis.dmz"; };
atlas = lib.hm.dag.entryBefore [ "*" ] { hostname = "atlas.dmz"; };
jefke = lib.hm.dag.entryBefore [ "*" ] { hostname = "jefke.dmz"; };
warwick = lib.hm.dag.entryBefore [ "*" ] { hostname = "warwick.dmz"; };
github = lib.hm.dag.entryBefore [ "*" ] { github = lib.hm.dag.entryBefore [ "*" ] {
hostname = "github.com"; hostname = "github.com";
user = "pizzapim"; user = "pizzapim";
identitiesOnly = true; identitiesOnly = true;
}; };
lewis = lib.hm.dag.entryBefore [ "*" ] { hostname = "lewis.dmz"; };
atlas = lib.hm.dag.entryBefore [ "*" ] { hostname = "atlas.dmz"; };
jefke = lib.hm.dag.entryBefore [ "*" ] { hostname = "jefke.dmz"; };
warwick = lib.hm.dag.entryBefore [ "*" ] { hostname = "warwick.dmz"; };
}; };
}; };
@ -117,11 +97,13 @@
enable = true; enable = true;
userName = "Pim Kunis"; userName = "Pim Kunis";
userEmail = "pim@kunis.nl"; userEmail = "pim@kunis.nl";
extraConfig = { extraConfig = {
push.autoSetupRemote = true; push.autoSetupRemote = true;
commit.verbose = true; commit.verbose = true;
pull.rebase = true; pull.rebase = true;
}; };
includes = [{ includes = [{
path = "~/git/suecode/.gitconfig"; path = "~/git/suecode/.gitconfig";
condition = "gitdir:~/git/suecode/**"; condition = "gitdir:~/git/suecode/**";

View file

@ -11,7 +11,6 @@
extraPackages = with pkgs; [ extraPackages = with pkgs; [
nil nil
nodePackages.pyright nodePackages.pyright
neofetch
gopls gopls
terraform-ls terraform-ls
nixfmt-classic nixfmt-classic