reo101
2941536b80
Also stop passing `outputs` around, prefer `inputs.self` Also put all `auto_` in `readOnly` `internal` options - `autoModules`, `autoConfigurations` and `autoPackages` Do not export packages as overlay (causes an infinite recursion) - this is documented on the two places it has effect on -- in `./overlays/default.nix` and `./modules/flake/configurations.nix` -- in `autoConfigurations` we manually extend `pkgs` with the flake packages Allow packages to say what `systems` they are compatible with - See `./pkgs/swww/systems.nix` - disabled for all systems - See `./pkgs/pngpaste/systems.nix` - enabled only for `darwin` targets
32 lines
760 B
Nix
32 lines
760 B
Nix
{ inputs, lib, pkgs, config, ... }:
|
|
|
|
{
|
|
# age.secrets."nextcloud.adminpass" = {
|
|
# rekeyFile = "${inputs.self}/secrets/home/jeeves/nextcloud/adminpass.age";
|
|
# mode = "770";
|
|
# owner = "nextcloud";
|
|
# group = "nextcloud";
|
|
# };
|
|
|
|
environment.systemPackages = [
|
|
# config.services.nextcloud.package
|
|
];
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
|
|
services.nginx = {
|
|
enable = true;
|
|
package = pkgs.openresty;
|
|
# virtualHosts."_.${config.networking.hostName}.local" = {
|
|
# # listen = [
|
|
# # {
|
|
# # addr = "127.0.0.1";
|
|
# # port = 1234;
|
|
# # }
|
|
# # ];
|
|
# enableACME = false;
|
|
# forceSSL = false;
|
|
# locations."/".proxyPass = "http://127.0.0.1:1234";
|
|
# };
|
|
};
|
|
}
|