Skip to content

tgirlcloud/pkgs

Repository files navigation

tgirlpkgs

If you're reading the docs on the README.md file you can find the full documentation at https://pkgs.tgirl.cloud/.

Installation

You can use this as either a flake or with channels, not that I know how to use channels.

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";

    tgirlpkgs = {
      url = "github:tgirlcloud/pkgs";
      inputs = {
        nixpkgs.follows = "nixpkgs";
        # flakes users don't need to track flake-compact
        flake-compact.follows = "";
      };
    };
  };
}

Using the modules

You can import the modules like so:

{ inputs, ... }:
{
  # you should only import these if you're system type allows for it
  imports = [
    inputs.tgirlpkgs.nixosModules.default
    inputs.tgirlpkgs.darwinModules.default
    inputs.tgirlpkgs.homeManagerModules.default
  ];
}

Using the packages

You can add the packages like so:

{ pkgs, inputs, ... }:
{
  environment.systemPackages = [
    inputs.tgirlpkgs.packages.${pkgs.stdenv.hostPlatform.system}.packagename
  ];
}

Using the overlay

You can add the overlay like so:

{ pkgs, inputs, ... }:
{
  nixpkgs.overlays = [
    inputs.tgirlpkgs.overlays.default
  ];

  # then you can use the packages like normal
  environment.systemPackages = [
    pkgs.packagename
  ];
}