add garage server (not functional)
This commit is contained in:
@@ -57,6 +57,7 @@
|
|||||||
flake = "/home/user/nix-config";
|
flake = "/home/user/nix-config";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
virtualisation.docker.enable = true;
|
||||||
services.tailscale.enable = true;
|
services.tailscale.enable = true;
|
||||||
services.rsync.enable = true;
|
services.rsync.enable = true;
|
||||||
programs.nix-ld.enable = true;
|
programs.nix-ld.enable = true;
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
mp3val
|
mp3val
|
||||||
flac
|
flac
|
||||||
nitch
|
nitch
|
||||||
|
openssl
|
||||||
(python314.withPackages (
|
(python314.withPackages (
|
||||||
ps: with ps; [
|
ps: with ps; [
|
||||||
requests
|
requests
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./shares
|
||||||
./slskd.nix
|
./slskd.nix
|
||||||
./navidrome.nix
|
./navidrome.nix
|
||||||
./nfs.nix
|
|
||||||
./services.nix
|
./services.nix
|
||||||
./smb.nix
|
|
||||||
./zfs.nix
|
./zfs.nix
|
||||||
./firewall.nix
|
./firewall.nix
|
||||||
../scripts.nix
|
../scripts.nix
|
||||||
|
|||||||
@@ -5,5 +5,9 @@
|
|||||||
2049
|
2049
|
||||||
445
|
445
|
||||||
5030
|
5030
|
||||||
|
3900
|
||||||
|
3901
|
||||||
|
3902
|
||||||
|
3903
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./garage.nix
|
||||||
|
./smb.nix
|
||||||
|
./nfs.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
services.garage = {
|
||||||
|
enable = false;
|
||||||
|
package = pkgs.garage;
|
||||||
|
environmentFile = "/home/user/garage_secrets";
|
||||||
|
settings = {
|
||||||
|
db_engine = "sqlite";
|
||||||
|
|
||||||
|
rpc_bind_addr = "0.0.0.0:3901";
|
||||||
|
# rpc_public_addr = "garage.example.com:3901";
|
||||||
|
|
||||||
|
replication_factor = 1;
|
||||||
|
|
||||||
|
s3_api = {
|
||||||
|
s3_region = "garage";
|
||||||
|
api_bind_addr = "0.0.0.0:3900";
|
||||||
|
};
|
||||||
|
|
||||||
|
# s3_web = {
|
||||||
|
# bind_addr = "0.0.0.0:3902";
|
||||||
|
# };
|
||||||
|
|
||||||
|
admin = {
|
||||||
|
api_bind_addr = "0.0.0.0:3903";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -36,4 +36,8 @@
|
|||||||
services.zfs.autoScrub.enable = true;
|
services.zfs.autoScrub.enable = true;
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
services.zfs.autoSnapshot = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user