kaeeraa / ayugram-desktop

AyuGram - it's a fork of telegram that have many useful features. Is NixOS flake, made for installing AyuGram
GNU General Public License v3.0
3 stars 0 forks source link
ayugram desktop flake nixos telegram

Ayugram desktop 🌐 NixOS flake

wakatime

[!NOTE] We do have binary cache via Garnix CI. In case you'll setup it manually - make sure to rebuild with activated cache BEFORE adding ayugram into environment.systemPackages or home.packages..

☄️ Installation Instructions

  1. You'll need to add this repo into your flake.nix:
{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
    ayugram-desktop.url = "github:kaeeraa/ayugram-desktop/release?submodules=1";
  };

  outputs = {
    self,
    nixpkgs,
    ayugram-desktop,
    ... 
  }: {
    ...
  };
}
  1. After that, add package into your environment.systemPackages or home.packages:
    # Nixos configuraion
    {
    pkgs,
    inputs,
    ...
    }: {
    environment.systemPackages = with pkgs; [
    inputs.ayugram-desktop.packages.${pkgs.system}.ayugram-desktop
    ];
    }
# Home-manager configuration
{
  pkgs,
  inputs,
  ...
}: {
  home.packages = with pkgs; [
    inputs.ayugram-desktop.packages.${pkgs.system}.ayugram-desktop
  ];
}
  1. Now rebuild, and feel free to use ayugram-desktop!

⚡ Manual Binary Cache Setup

Simpy add it into your nix settings inside nixos configuration:

nix = {
  settings = {
    substituters = [
      "https://cache.garnix.io"
    ];
    trusted-public-keys = [
      "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
    ];
  };
};

🪐 P.S.:

Thanks to
🪐 shwewo for original repo.
🪐 kaeeraa for fork adoption.
🪐 AyuGram for the ayugram-dektop itself.
🪐 hand7s for this awesome readme (:D) and some work with package format.