nixos/home-manager/modules/programs/ansible/default.nix
Andreas Zweili 14950aaa85 Remove the ansible package from Emacs
It should use the version we provide with the repo.
2023-08-02 11:33:36 +02:00

24 lines
644 B
Nix

{ config, lib, pkgs, ... }:
let
cfg = config.programs.az-ansible;
in
{
options = {
programs.az-ansible.enable = lib.mkEnableOption "Enable ansible.";
};
config = lib.mkIf cfg.enable {
home = {
# NPM is required for the language server which I currently can only
# install through npm because the version in Nix is broken 2023-04-27
sessionPath = [ "$HOME/.local/share/node_modules/bin" ];
sessionVariables = {
NPM_CONFIG_PREFIX = "$HOME/.local/share/node_modules";
};
packages = [
pkgs.sshpass # it's the only system package that I need to run Ansible
];
};
};
}