1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
static
|
static
|
||||||
|
result
|
||||||
|
|
||||||
|
|||||||
18
flake.nix
18
flake.nix
@@ -12,11 +12,14 @@
|
|||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
packages.default = pkgs.buildGoModule {
|
packages = {
|
||||||
pname = "slenpaste";
|
default = pkgs.buildGoModule {
|
||||||
version = "0.1.0";
|
pname = "slenpaste";
|
||||||
src = ./.;
|
version = "0.1.0";
|
||||||
goPackagePath = "github.com/slendidev/slenpaste";
|
src = ./.;
|
||||||
|
goPackagePath = "github.com/slendidev/slenpaste";
|
||||||
|
vendorHash = null;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
@@ -36,6 +39,11 @@
|
|||||||
default = "0.0.0.0:8080";
|
default = "0.0.0.0:8080";
|
||||||
description = "Listen address (host:port)";
|
description = "Listen address (host:port)";
|
||||||
};
|
};
|
||||||
|
options.services.slenpaste.staticDir = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "/var/lib/slenpaste";
|
||||||
|
description = "Directory which contains the actual paste data";
|
||||||
|
};
|
||||||
options.services.slenpaste.expireDur = lib.mkOption {
|
options.services.slenpaste.expireDur = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = "0";
|
default = "0";
|
||||||
|
|||||||
Reference in New Issue
Block a user