nixpkgs/home/programs.nix
Daniel Siepmann e80a1034a5
Migrate away from 3rd party vim plugin for sqlformat
It didn't work.
Instead I migrated to nix + python directly.
I keep the way to use autocommand to set the formatting.
But no expression but an external program.
This program is created via nix as shell application.
This one uses the sqlparse, just like the plugin.
This will use the std input as file for input.

That way I can re use this in other places.
Integration is way easier, no additional overhead to write python
embedded as vimscript.
Also full dependency control via nix.
2022-05-30 10:43:18 +02:00

56 lines
874 B
Nix

{ config, pkgs }:
let
sqlformat = pkgs.callPackage ./packages/sqlformat {
};
in {
# Let Home Manager install and manage itself.
home-manager.enable = true;
neovim = import ./programs/neovim.nix {
inherit pkgs sqlformat;
};
git = import ./programs/git.nix {
inherit pkgs;
};
htop = import ./programs/htop.nix {
inherit config;
};
tmux = import ./programs/tmux.nix {
inherit pkgs;
};
jq = import ./programs/jq.nix {
inherit config;
};
zsh = import ./programs/zsh.nix {
inherit config pkgs;
};
keychain = import ./programs/keychain.nix {
inherit config pkgs;
};
ssh = import ./programs/ssh.nix {
};
zathura = import ./programs/zathura.nix {
};
firefox = import ./programs/firefox.nix {
inherit pkgs;
};
mcfly = import ./programs/mcfly.nix {
};
# Media
cmus.enable = true;
}