From 22b9cf046c285251dfb6fde48d4197cb7c6928c5 Mon Sep 17 00:00:00 2001 From: Troy Date: Tue, 14 Jan 2025 12:48:25 +0000 Subject: [PATCH] add nixos install instructions --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 2c14e9a..2add92a 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,24 @@ This is my first attempt at making something with Rust so that I may learn alongside creating something that I personally find useful. +## Installation + +On NixOS you can install Packard by including it as an input in flake.nix, then adding it to your system packages. + +```nix +inputs = { + packard.url = "github:troylusty/packard"; +}; +``` + +```nix +environment.systemPackages = { + inputs.packard.packages."${pkgs.system}".default +}; +``` + +Alternatively, [the latest release](https://github.com/troylusty/packard/releases/latest) binary is available. + ## Configuration There are now several options available to be configured, with more on their way. As of now Packard's config file should be placed within `$HOME/.config/packard` and formatted in TOML.