push
This commit is contained in:
@@ -23,6 +23,8 @@
|
|||||||
|
|
||||||
nix-gaming.url = "github:fufexan/nix-gaming";
|
nix-gaming.url = "github:fufexan/nix-gaming";
|
||||||
nix-citizen.inputs.nix-gaming.follows = "nix-gaming";
|
nix-citizen.inputs.nix-gaming.follows = "nix-gaming";
|
||||||
|
|
||||||
|
copyparty.url = "github:9001/copyparty";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ self, nixpkgs, stylix, home-manager, flatpaks, hytale-launcher, vscode-server, ... }:
|
outputs = inputs@{ self, nixpkgs, stylix, home-manager, flatpaks, hytale-launcher, vscode-server, ... }:
|
||||||
@@ -60,6 +62,8 @@
|
|||||||
./main.nix
|
./main.nix
|
||||||
|
|
||||||
vscode-server.nixosModules.default
|
vscode-server.nixosModules.default
|
||||||
|
|
||||||
|
copyparty.nixosModules.default
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
1
main.nix
1
main.nix
@@ -12,6 +12,7 @@
|
|||||||
] ++ (if device == "server" then [
|
] ++ (if device == "server" then [
|
||||||
./modules/mailserver.nix
|
./modules/mailserver.nix
|
||||||
./modules/vscode-server.nix
|
./modules/vscode-server.nix
|
||||||
|
./modules/copyparty.nix
|
||||||
|
|
||||||
({ pkgs, ... }: {
|
({ pkgs, ... }: {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|||||||
48
modules/copyparty.nix
Normal file
48
modules/copyparty.nix
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
nixpkgs.overlays = [ copyparty.overlays.default ];
|
||||||
|
|
||||||
|
services.copyparty = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
user = "copyparty";
|
||||||
|
|
||||||
|
group = "copyparty";
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
i = "0.0.0.0";
|
||||||
|
p = [ 3210 3211 ];
|
||||||
|
no-reload = true;
|
||||||
|
ignored-flag = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
accounts = {
|
||||||
|
bug = {
|
||||||
|
passwordFile = "";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
groups = {
|
||||||
|
g1 = [ "bug" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
volumes = {
|
||||||
|
"/" = {
|
||||||
|
path = "/srv/copyparty";
|
||||||
|
|
||||||
|
access = {
|
||||||
|
r = "*";
|
||||||
|
rw = [ "bug" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
flags = {
|
||||||
|
fk = 4;
|
||||||
|
scan = 60;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
openFilesLimit = 8192;
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user