ansible/shell.nix

21 lines
468 B
Nix
Raw Permalink Normal View History

2024-09-06 21:26:58 +02:00
let
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-24.05";
pkgs = import nixpkgs { config = {}; overlay = []; };
python-packages = ps: with ps; [
ansible
ansible-core
jinja2
requests
proxmoxer
];
in
pkgs.mkShell {
name = "Ansible perso";
packages = with pkgs; [
(python3.withPackages python-packages)
];
ANSIBLE_FORCE_COLOR = true;
LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
}