mirror of
https://codeberg.org/icewind/shelve.git
synced 2026-06-03 12:04:09 +02:00
fmt
This commit is contained in:
parent
39d60199fb
commit
d3d50bfb2c
6 changed files with 56 additions and 51 deletions
19
README.md
19
README.md
|
|
@ -4,22 +4,27 @@ Quick and easy file hosting
|
|||
|
||||

|
||||
|
||||
Shelve is intended to be an easy way to share files with a friend, just drag in
|
||||
a file and copy the link.
|
||||
|
||||
## Tokens
|
||||
|
||||
Upload tokens are configured by setting the `TOKENS` environment variable to a comma separated list.
|
||||
Upload tokens are configured by setting the `TOKENS` environment variable to a
|
||||
comma separated list.
|
||||
|
||||
## License
|
||||
|
||||
Licensed under either of
|
||||
|
||||
- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or https://www.apache.org/licenses/LICENSE-2.0)
|
||||
- MIT license ([LICENSE-MIT](LICENSE-MIT) or https://opensource.org/licenses/MIT)
|
||||
- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
|
||||
https://www.apache.org/licenses/LICENSE-2.0)
|
||||
- MIT license ([LICENSE-MIT](LICENSE-MIT) or
|
||||
https://opensource.org/licenses/MIT)
|
||||
|
||||
at your option.
|
||||
|
||||
### Contribution
|
||||
|
||||
Unless you explicitly state otherwise, any contribution intentionally
|
||||
submitted for inclusion in the work by you, as defined in the Apache-2.0
|
||||
license, shall be dual licensed as above, without any additional terms or
|
||||
conditions.
|
||||
Unless you explicitly state otherwise, any contribution intentionally submitted
|
||||
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
|
||||
dual licensed as above, without any additional terms or conditions.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ dockerTools
|
||||
, shelve
|
||||
,
|
||||
{
|
||||
dockerTools,
|
||||
shelve,
|
||||
}:
|
||||
dockerTools.buildLayeredImage {
|
||||
name = "icewind1991/shelve";
|
||||
|
|
|
|||
13
flake.nix
13
flake.nix
|
|
@ -10,16 +10,17 @@
|
|||
inputs.flakelight.follows = "flakelight";
|
||||
};
|
||||
};
|
||||
outputs = { mill-scale, ... }: mill-scale ./. {
|
||||
outputs = {mill-scale, ...}:
|
||||
mill-scale ./. {
|
||||
extraPaths = [
|
||||
./templates
|
||||
];
|
||||
nixosModules = {outputs, ...}: {
|
||||
default =
|
||||
{ pkgs
|
||||
, config
|
||||
, lib
|
||||
, ...
|
||||
default = {
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [./nix/module.nix];
|
||||
config = lib.mkIf config.services.shelve.enable {
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
{ config
|
||||
, lib
|
||||
, pkgs
|
||||
, ...
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.services.shelve;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options.services.shelve = {
|
||||
enable = mkEnableOption "Enables the shelve service";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
{ stdenv
|
||||
, rustPlatform
|
||||
, lib
|
||||
,
|
||||
}:
|
||||
let
|
||||
{
|
||||
stdenv,
|
||||
rustPlatform,
|
||||
lib,
|
||||
}: let
|
||||
inherit (lib.sources) sourceByRegex;
|
||||
inherit (builtins) fromTOML readFile;
|
||||
src = sourceByRegex ../. ["Cargo.*" "(src|templates)(/.*)?"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue