From 0c5990e8e29e678dc1e6b108ae995ec390fbb71d Mon Sep 17 00:00:00 2001 From: Francis Hamel <36383308+francishamel@users.noreply.github.com> Date: Fri, 8 Nov 2024 11:44:08 -0500 Subject: [PATCH] Setup pet cli snippets tool (#329) For now, I just have 1 snippet but it's easy to extend in the future. --- home-manager/flake-module.nix | 1 + home-manager/modules/pet.nix | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 home-manager/modules/pet.nix diff --git a/home-manager/flake-module.nix b/home-manager/flake-module.nix index 6e3a328..9bb8e82 100644 --- a/home-manager/flake-module.nix +++ b/home-manager/flake-module.nix @@ -13,6 +13,7 @@ ./modules/git.nix ./modules/gui.nix ./modules/helix.nix + ./modules/pet.nix ./modules/ripgrep.nix ./modules/ssh.nix ./modules/starship.nix diff --git a/home-manager/modules/pet.nix b/home-manager/modules/pet.nix new file mode 100644 index 0000000..12dc7e8 --- /dev/null +++ b/home-manager/modules/pet.nix @@ -0,0 +1,15 @@ +{ ... }: + +{ + programs.pet = { + enable = true; + + snippets = [ + { + command = "bin/rails g migration "; + description = "Generate a Rails migration"; + tag = [ "rails" ]; + } + ]; + }; +}