ctucx.git: nixfiles

ctucx' nixfiles

commit 3d58686629be4be55b6d6562750ecf333db93edc
parent ce948a1683e1cf5c64a6a6af4d79fc5dc99bf8e7
Author: Leah (ctucx) <leah@ctu.cx>
Date: Wed, 12 Jan 2022 16:49:29 +0100

programs/cli/ansible: add program
2 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/configurations/desktop-sway.nix b/configurations/desktop-sway.nix
@@ -59,6 +59,7 @@
     ./programs/mpv.nix
     ./programs/imv.nix
 
+    ./programs/cli/ansible.nix
     ./programs/sublime-text3.nix
     ./programs/gimp
 
diff --git a/configurations/programs/cli/ansible.nix b/configurations/programs/cli/ansible.nix
@@ -0,0 +1,14 @@
+{ pkgs, ... }:
+
+let
+  ansible = pkgs.python3Packages.toPythonApplication (pkgs.python3Packages.ansible-core.overridePythonAttrs (old: rec {
+    propagatedBuildInputs = old.propagatedBuildInputs ++ [
+      pkgs.python3Packages.jmespath
+    ];
+  }));
+
+in {
+  home-manager.users.leah = {
+    home.packages = [ ansible pkgs.ansible-lint ];
+  };
+}