2024-07-21 21:22:21 +00:00
|
|
|
# 🌙 nyxexprs
|
2023-11-03 08:17:35 +00:00
|
|
|
|
2024-07-21 21:22:21 +00:00
|
|
|
My personal package overlay for sharing my most commonly used derivations.
|
2023-11-03 08:17:35 +00:00
|
|
|
|
2023-11-05 18:18:11 +00:00
|
|
|
## 📦 Packages
|
|
|
|
|
2024-07-21 19:47:09 +00:00
|
|
|
There are several packages exposed by this flake. Each directory in `pkgs`
|
|
|
|
contains a description of the package inside its README.
|
2023-11-05 18:18:11 +00:00
|
|
|
|
2024-07-21 21:33:52 +00:00
|
|
|
| Package | Description |
|
|
|
|
| :--------------- | :---------------------------------------------------------------------------------------------: |
|
|
|
|
| alejandra-no-ads | A patched version of the **Alejandra** Nix formatter, without the pesky ads and spacing patches |
|
|
|
|
| ani-cli | An up-to-date, auto updated version of ani-cli |
|
|
|
|
| cloneit | A CLI tool to download specific GitHub directories or files |
|
|
|
|
| foot-transparent | A patched version of the foot terminal emulator that brings back fullscreen transparency[^1] |
|
|
|
|
| headscale-ui | A web frontend for the headscale Tailscale-compatible coordination server |
|
|
|
|
| mastodon-bird-ui | Mastodon web UI, but strongly inspired by Twitter. |
|
|
|
|
| mov-cli | A cli tool to browse and watch Movies/Shows/TV/Sports |
|
2023-11-05 18:18:11 +00:00
|
|
|
|
2023-11-03 08:17:35 +00:00
|
|
|
## Usage
|
|
|
|
|
2023-11-05 18:18:11 +00:00
|
|
|
### Binary Cache
|
|
|
|
|
2024-07-21 19:47:09 +00:00
|
|
|
Regardless of your setup,you may want to add the
|
|
|
|
[binary cache](https://app.cachix.org/cache/nyx) to your substituters to avoid
|
|
|
|
building the provided packages on each pull. You may follow the example below to
|
|
|
|
add the binary cache to your system.
|
2023-11-05 18:18:11 +00:00
|
|
|
|
|
|
|
```nix
|
|
|
|
nix.settings = {
|
|
|
|
builders-use-substitutes = true;
|
|
|
|
substituters = [
|
|
|
|
# other substituters
|
|
|
|
"https://nyx.cachix.org"
|
|
|
|
];
|
|
|
|
|
|
|
|
trusted-public-keys = [
|
|
|
|
# other trusted keys
|
|
|
|
"nyx.cachix.org-1:xH6G0MO9PrpeGe7mHBtj1WbNzmnXr7jId2mCiq6hipE="
|
|
|
|
];
|
|
|
|
};
|
|
|
|
```
|
|
|
|
|
2023-11-03 08:17:35 +00:00
|
|
|
### NixOS/Home-manager (flakes)
|
|
|
|
|
|
|
|
It is as simple as adding a new entry to your inputs with the correct url.
|
|
|
|
|
|
|
|
```nix
|
|
|
|
# flake.nix
|
|
|
|
inputs = {
|
|
|
|
# ...
|
2024-07-21 21:22:21 +00:00
|
|
|
nyxexprs.url = "github:notashelf/nyxexprs";
|
2023-11-03 08:17:35 +00:00
|
|
|
# ...
|
|
|
|
};
|
|
|
|
```
|
|
|
|
|
2024-07-21 19:47:09 +00:00
|
|
|
After adding the input, you can consume the [exposed packages](#-packages) in
|
|
|
|
your system configuration. An example `flake.nix` would be as follows:
|
2023-11-03 08:17:35 +00:00
|
|
|
|
|
|
|
```nix
|
|
|
|
# flake.nix
|
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
|
|
|
2024-07-21 21:22:21 +00:00
|
|
|
# ↓ add nyxexprs as a flake input
|
|
|
|
nyxexprs.url = "github:notashelf/nyxexprs";
|
2023-11-03 08:17:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = inputs @ {self, nixpkgs, ...}: {
|
|
|
|
# set up for NixOS
|
|
|
|
nixosConfigurations.<yourHostName> = nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = {inherit inputs;};
|
|
|
|
modules = [
|
|
|
|
./configuration.nix
|
|
|
|
# ...
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
# or for Home Manager
|
|
|
|
homeConfigurations.<yourHostName> = inputs.home-manager.lib.homeManagerConfiguration {
|
|
|
|
extraSpecialArgs = {inherit inputs;};
|
|
|
|
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
modules = [
|
|
|
|
./home.nix
|
|
|
|
# ...
|
|
|
|
];
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2024-07-21 19:47:09 +00:00
|
|
|
Where you can then add the relevant package to your `environment.systemPackages`
|
|
|
|
or `home.packages`
|
2023-11-03 08:17:35 +00:00
|
|
|
|
|
|
|
```nix
|
|
|
|
{pkgs, inputs, ...}: {
|
|
|
|
# in case of home-manager, this will be home.packages
|
|
|
|
environment.systemPackages = [
|
2024-07-21 21:22:21 +00:00
|
|
|
inputs.nyxexprs.packages.${pkgs.system}.<packageName> # installs a package
|
2023-11-03 08:17:35 +00:00
|
|
|
];
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### Nix
|
|
|
|
|
2024-07-21 19:47:09 +00:00
|
|
|
If you are using Nix on a non-NixOS distro, you may `nix run` to try out
|
|
|
|
packages, or `nix profile install` to install them on your system profile. If
|
|
|
|
using home-manager on non-NixOS, I recommend using `home.packages` instead.
|
2023-11-03 08:17:35 +00:00
|
|
|
|
|
|
|
```console
|
2024-07-21 21:22:21 +00:00
|
|
|
nix profile install github:notashelf/nyxexprs#<package>
|
2023-11-03 08:17:35 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### NixOS/Home-manager (no flakes)
|
|
|
|
|
2024-07-21 19:47:09 +00:00
|
|
|
If you are not using flakes, the above instructions will not apply. You may
|
|
|
|
obtain the source as a tarball to consume in your system configuration as
|
|
|
|
follows:
|
2023-11-03 08:17:35 +00:00
|
|
|
|
|
|
|
```nix
|
|
|
|
{pkgs, ...}: let
|
2024-07-21 21:22:21 +00:00
|
|
|
nyxexprs = import (builtins.fetchTarball "https://github.com/notashelf/nyxexprs/archive/main.tar.gz");
|
2023-11-03 08:17:35 +00:00
|
|
|
in {
|
|
|
|
# install packages
|
|
|
|
# this can also be home.packages if you are using home-manager
|
|
|
|
environment.systemPackages = [
|
2024-07-21 21:22:21 +00:00
|
|
|
nyxexprs.packages.${pkgs.hostPlatform.system}.<packageName>
|
2023-11-03 08:17:35 +00:00
|
|
|
];
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## 🔧 Contributing
|
|
|
|
|
|
|
|
PRs are always welcome.
|
2023-11-03 08:30:03 +00:00
|
|
|
|
|
|
|
## 🫂 Credits
|
|
|
|
|
2024-07-21 19:47:09 +00:00
|
|
|
The repository structure is mostly borrowed from
|
|
|
|
[@fufexan](https://github.com/fufexan)'s
|
|
|
|
[nix-gaming](https://github.com/fufexan/nix-gaming).
|
2023-11-03 15:58:45 +00:00
|
|
|
|
2024-07-21 19:47:09 +00:00
|
|
|
[^1]:
|
|
|
|
Foot has broken fullscreen transparency on 1.15, which looks **really**
|
|
|
|
ugly with padding. The author is dead set on not fixing it, because it's broken
|
|
|
|
on one wayland compositor that a total of 7 people use.
|