mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
opencloud
This commit is contained in:
parent
9bfde42b0a
commit
ccaccd6320
2 changed files with 19 additions and 0 deletions
18
modules/opencloud.nix
Normal file
18
modules/opencloud.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# opencloud.nix
|
||||
{ config, pkgs, ... }: # This defines a NixOS module that takes config, pkgs, etc. as arguments [2]
|
||||
|
||||
{
|
||||
services.opencloud = {
|
||||
enable = true;
|
||||
environment = {
|
||||
OC_INSECURE = "true";
|
||||
OC_BASIC_AUTH_ENABLE = "true";
|
||||
OC_BASIC_AUTH_USERNAME = "death916"; # Replace with your desired username
|
||||
OC_BASIC_AUTH_PASSWORD = "(builtins.readFile /etc/nixos/secrets/opencloud"; # Replace with your desired password
|
||||
OC_LOG_LEVEL = "info";
|
||||
};
|
||||
listenAddress = "0.0.0.0";
|
||||
port = 9000;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -16,6 +16,7 @@
|
|||
# ../modules/home-assistant-vm.nix
|
||||
../modules/vms/incus-base.nix
|
||||
../modules/smb.nix
|
||||
../modules/opencloud.nix
|
||||
];
|
||||
arrSuite.enable = true;
|
||||
services.samba.shares.Media.path = "/media/storage/media";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue