nix: fmt
This commit is contained in:
parent
de1aea7abd
commit
58787628d2
2 changed files with 39 additions and 23 deletions
|
@ -1,5 +1,10 @@
|
||||||
{ inputs, pkgs, lib, config, ... }:
|
{
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.modules.pelican-panel;
|
cfg = config.modules.pelican-panel;
|
||||||
dir = "/var/www/pelican";
|
dir = "/var/www/pelican";
|
||||||
|
@ -26,12 +31,18 @@ in {
|
||||||
pkgs.php83Extensions.zip
|
pkgs.php83Extensions.zip
|
||||||
pkgs.php83Extensions.intl
|
pkgs.php83Extensions.intl
|
||||||
pkgs.php83Extensions.sqlite3
|
pkgs.php83Extensions.sqlite3
|
||||||
( import ./pelican-install.nix { inherit pkgs; inherit dir; } )
|
(import ./pelican-install.nix {
|
||||||
( import ./pelican-update.nix { inherit pkgs; inherit dir; } )
|
inherit pkgs;
|
||||||
|
inherit dir;
|
||||||
|
})
|
||||||
|
(import ./pelican-update.nix {
|
||||||
|
inherit pkgs;
|
||||||
|
inherit dir;
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
systemd.timers."pelican-cron" = {
|
systemd.timers."pelican-cron" = {
|
||||||
wantedBy = [ "timers.target" ];
|
wantedBy = ["timers.target"];
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
OnBootSec = "5m";
|
OnBootSec = "5m";
|
||||||
OnUnitActiveSec = "1m";
|
OnUnitActiveSec = "1m";
|
||||||
|
@ -49,7 +60,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.pelican-queue = {
|
systemd.services.pelican-queue = {
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = ["multi-user.target"];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
User = "nginx";
|
User = "nginx";
|
||||||
Group = "nginx";
|
Group = "nginx";
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
{ inputs, pkgs, lib, config, ... }:
|
{
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.modules.pelican-wings;
|
cfg = config.modules.pelican-wings;
|
||||||
in {
|
in {
|
||||||
|
@ -10,19 +15,19 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
networking.firewall.allowedTCPPorts = [ 8080 8443 ];
|
networking.firewall.allowedTCPPorts = [8080 8443];
|
||||||
|
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
( pkgs.callPackage ./package.nix {} )
|
(pkgs.callPackage ./package.nix {})
|
||||||
];
|
];
|
||||||
|
|
||||||
systemd.services.pelican-wings = {
|
systemd.services.pelican-wings = {
|
||||||
description = "Wings Daemon";
|
description = "Wings Daemon";
|
||||||
after = [ "docker.service" ];
|
after = ["docker.service"];
|
||||||
requires = [ "docker.service" ];
|
requires = ["docker.service"];
|
||||||
partOf = [ "docker.service" ];
|
partOf = ["docker.service"];
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
User = "root";
|
User = "root";
|
||||||
|
@ -36,7 +41,7 @@ in {
|
||||||
RestartSec = "5";
|
RestartSec = "5";
|
||||||
};
|
};
|
||||||
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = ["multi-user.target"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
Reference in a new issue