Giter Site home page Giter Site logo

bia3 / ehfiveflakes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ehfive/flakes

0.0 0.0 0.0 1.02 MB

NixOS configurations & Nix packages for @EHfive's mail server & NanoPi R2S router

License: MIT License

Shell 2.28% C 5.96% Nix 91.20% Sieve 0.55%

ehfiveflakes's Introduction

EHfive's Nix flakes

Usage

Setup cache (optional)

$ cachix use eh5

or add to NixOS config

{ ... } : {
  nix.settings.substituters =  [ "https://eh5.cachix.org" ];
  nix.settings.trusted-public-keys = [ "eh5.cachix.org-1:pNWZ2OMjQ8RYKTbMsiU/AjztyyC8SwvxKOf6teMScKQ=" ];
}

Build/Run package

$ nix run   github:bia3/EHfiveFlakes#nix-gfx-mesa
$ nix build github:bia3/EHfiveFlakes#packages.aarch64-linux.ubootNanopiR2s

Install package, module

NixOS (flake)
# flake.nix
{
  inputs.eh5 = {
    url = "github:bia3/EHfiveFlakes";
    inputs.nixpkgs.follows = "nixpkgs";
  };

  outputs = { self, nixpkgs, eh5 }: {
    nixosConfigurations.your-machine = nixpkgs.lib.nixosSystem rec {
      # system = ...
      modules = [
        # ...
        # imports all
        eh5.nixosModules.default
        # or on demand
        #eh5.nixosModules.mosdns
        #eh5.nixosModules.v2ray-next
        { pkgs, ... }: {
          nixpkgs.overlays = [
            # ...
            eh5.overlays.default
          ];

          environment.systemPackages = [
            pkgs.nix-gfx-mesa # via overlay
            # or specify the package directly
            #eh5.packages.${system}.nix-gfx-mesa
          ];
        }
      ];
    };
  };
}

All packages in this repo are also re-exported into github:nixos-cn/flakes, you can install from it in same fashion as above.

$ nix run github:nixos-cn/flakes#re-export.netease-cloud-music
$ # or in full path
$ nix run github:nixos-cn/flakes#legacyPackages.x86_64-linux.re-export.netease-cloud-music

packages

Base

Name Description Platforms
dovecot-fts-flatcurve Dovecot FTS Flatcurve plugin (Xapian) *-linux
fake-hwclock Fake hardware clock *
mosdns A DNS proxy *
nix-gfx-mesa nixGL but for Mesa only *
qcef Qt5 binding of CEF x86_64-linux
stalwart-cli Stalwart JMAP server CLI *
stalwart-imap Stalwart IMAP server (imap-to-jmap proxy) *
stalwart-jmap Stalwart JMAP server *
ubootNanopiR2s U-Boot images for NanoPi R2S aarch64-linux
v2ray-next V2Ray v5 *

Extra

Name Description Platforms
sops-install-secrets-nonblock sops-install-secrets but using non-blocking getrandom(2) {x86_64,aarch64}-linux

overlays

.#overlays.default

Adds all base packages listed above.

nixosModules

Module Description Option
fake-hwclock Fake hardware clock service services.fake-hwclock.enable
mosdns mosdns service services.mosdns.*
stalwart-jmap Stalwart JMAP server services.stalwart-jmap.*
system-tarball-extlinux config.system.build.tarball for systems using EXTLINUX style boot loader system.enableExtlinuxTarball
v2ray-next V2Ray v5 service services.v2ray-next.*
v2ray-rules-dat Auto update V2Ray rules dat services.v2ray-rules-dat.*
default Imports all above modules

Some of the modules requires some packages declared above, hence requiring .#overlays.default to be applied.

ehfiveflakes's People

Contributors

github-actions[bot] avatar ehfive avatar bia3 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.