style(nixfmt): formatting using nixfmt cli tools
This commit is contained in:
parent
b804520f4c
commit
fbe803b928
46 changed files with 2133 additions and 1700 deletions
|
|
@ -1,38 +1,43 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.service.selfhost.nextcloud;
|
||||
dataDir = "/mnt/data/nextcloud";
|
||||
cfg = config.service.selfhost.nextcloud;
|
||||
dataDir = "/mnt/data/nextcloud";
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg {
|
||||
environment.systemPackages = with pkgs; [
|
||||
php
|
||||
];
|
||||
services = {
|
||||
nextcloud = {
|
||||
enable = true;
|
||||
https = true;
|
||||
package = pkgs.nextcloud31;
|
||||
hostName = "nextcloud.enium.eu";
|
||||
datadir = "/mnt/data/nextcloud/";
|
||||
config = {
|
||||
adminpassFile = "/etc/nextcloud-pass.txt";
|
||||
adminuser = "OwnedByTheEniumTeam";
|
||||
dbtype = "sqlite";
|
||||
};
|
||||
settings = {
|
||||
trusted_domains = [
|
||||
"192.168.1.254"
|
||||
];
|
||||
default_phone_region = "FR";
|
||||
};
|
||||
};
|
||||
nginx.virtualHosts."nextcloud.enium.eu".enableACME = true;
|
||||
nginx.virtualHosts."nextcloud.enium.eu".forceSSL = true;
|
||||
nginx.virtualHosts."nextcloud.enium.eu".locations."~ \.php$".extraConfig = ''
|
||||
fastcgi_pass unix:/run/phpfpm-nextcloud.sock;
|
||||
'';
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg {
|
||||
environment.systemPackages = with pkgs; [
|
||||
php
|
||||
];
|
||||
services = {
|
||||
nextcloud = {
|
||||
enable = true;
|
||||
https = true;
|
||||
package = pkgs.nextcloud31;
|
||||
hostName = "nextcloud.enium.eu";
|
||||
datadir = "/mnt/data/nextcloud/";
|
||||
config = {
|
||||
adminpassFile = "/etc/nextcloud-pass.txt";
|
||||
adminuser = "OwnedByTheEniumTeam";
|
||||
dbtype = "sqlite";
|
||||
};
|
||||
settings = {
|
||||
trusted_domains = [
|
||||
"192.168.1.254"
|
||||
];
|
||||
default_phone_region = "FR";
|
||||
};
|
||||
};
|
||||
nginx.virtualHosts."nextcloud.enium.eu".enableACME = true;
|
||||
nginx.virtualHosts."nextcloud.enium.eu".forceSSL = true;
|
||||
nginx.virtualHosts."nextcloud.enium.eu".locations."~ \.php$".extraConfig = ''
|
||||
fastcgi_pass unix:/run/phpfpm-nextcloud.sock;
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue