Compare commits
7 Commits
20d2f30fc7
...
34dd10327f
Author | SHA1 | Date | |
---|---|---|---|
34dd10327f | |||
4a1de9e6f6 | |||
8576f0eb84 | |||
26b53b57f6 | |||
a158ee98d8 | |||
b4f345b1c5 | |||
eaf0c9e955 |
@ -3,7 +3,7 @@ self: super:
|
|||||||
{
|
{
|
||||||
dogetipbot-telegram = super.callPackage (super.fetchgit {
|
dogetipbot-telegram = super.callPackage (super.fetchgit {
|
||||||
url = "https://gitlab.com/nyanloutre/dogetipbot-telegram.git";
|
url = "https://gitlab.com/nyanloutre/dogetipbot-telegram.git";
|
||||||
rev = "3bf1c89aaccded42ce41452c72f7ebf6d4d056ca";
|
rev = "33e5a2273cc1e447dec9a37676913915706fd332";
|
||||||
sha256 = "1gd1wi054ihbxanvj1ac7mz5ghnxab89a0r3i4hy482sglbxqcih";
|
sha256 = "1rzv5qd7bj1dzx5qa2h4mdzzvxk77hz3svfcg7hq0sff8a7npk46";
|
||||||
}) { pkgs = self; };
|
}) { pkgs = self; };
|
||||||
}
|
}
|
||||||
|
@ -17,8 +17,8 @@ in
|
|||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
(builtins.fetchTarball {
|
(builtins.fetchTarball {
|
||||||
url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/v2.2.0/nixos-mailserver-v2.2.0.tar.gz";
|
url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/8b7dde4b54da821ca3dc2058178d6ffbd2e25bc5/nixos-mailserver-8b7dde4b54da821ca3dc2058178d6ffbd2e25bc5.tar.gz";
|
||||||
sha256 = "0gqzgy50hgb5zmdjiffaqp277a68564vflfpjvk1gv6079zahksc";
|
sha256 = "0pf25ns3yq9vdbpb30cplx4zkj7srrklamd6kw7ifaf7gyc7fy65";
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
gitRev = "baee8283bb858602e6b8d9c4763f11f79d4ac813";
|
gitRev = "0af0b7a9cf9dc426c3686fd8b9369251ef18805a";
|
||||||
nixpkgs = fetchTarball "https://github.com/nyanloutre/nixpkgs/archive/${gitRev}.tar.gz";
|
nixpkgs = fetchTarball "https://github.com/nyanloutre/nixpkgs/archive/${gitRev}.tar.gz";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -117,6 +117,11 @@
|
|||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/var/lib/factorio" =
|
||||||
|
{ device = "loutrepool/var/factorio";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
fileSystems."/var/dkim" =
|
fileSystems."/var/dkim" =
|
||||||
{ device = "loutrepool/var/dkim";
|
{ device = "loutrepool/var/dkim";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
|
@ -9,6 +9,7 @@ let
|
|||||||
pgmanage_port = 52347;
|
pgmanage_port = 52347;
|
||||||
max_port = 52348;
|
max_port = 52348;
|
||||||
musique_port = 52349;
|
musique_port = 52349;
|
||||||
|
factorio_port = 52351;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -21,6 +22,7 @@ in
|
|||||||
../../services/python-ci.nix
|
../../services/python-ci.nix
|
||||||
../../services/sdtdserver.nix
|
../../services/sdtdserver.nix
|
||||||
../../containers/vsftpd.nix
|
../../containers/vsftpd.nix
|
||||||
|
/mnt/secrets/factorio_secrets.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
@ -59,6 +61,7 @@ in
|
|||||||
"pgmanage.${domaine}" = { ip = "127.0.0.1"; port = pgmanage_port; auth = true; };
|
"pgmanage.${domaine}" = { ip = "127.0.0.1"; port = pgmanage_port; auth = true; };
|
||||||
"gitea.${domaine}" = { ip = "127.0.0.1"; port = 3001; auth = false; };
|
"gitea.${domaine}" = { ip = "127.0.0.1"; port = 3001; auth = false; };
|
||||||
"ci.${domaine}" = { ip = "127.0.0.1"; port = 52350; auth = false; };
|
"ci.${domaine}" = { ip = "127.0.0.1"; port = 52350; auth = false; };
|
||||||
|
"factorio.${domaine}" = { ip = "127.0.0.1"; port = factorio_port; auth = false; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -209,6 +212,10 @@ in
|
|||||||
listen = [ { addr = "127.0.0.1"; port = riot_port; } ];
|
listen = [ { addr = "127.0.0.1"; port = riot_port; } ];
|
||||||
locations = { "/" = { root = pkgs.riot-web; }; };
|
locations = { "/" = { root = pkgs.riot-web; }; };
|
||||||
};
|
};
|
||||||
|
"factorio" = {
|
||||||
|
listen = [ { addr = "127.0.0.1"; port = factorio_port; } ];
|
||||||
|
locations = { "/" = { root = "/var/www/factorio"; }; };
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -283,7 +290,6 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
|
||||||
borgbackup.jobs = {
|
borgbackup.jobs = {
|
||||||
loutre = {
|
loutre = {
|
||||||
paths = [
|
paths = [
|
||||||
@ -319,12 +325,11 @@ in
|
|||||||
postHook = ''
|
postHook = ''
|
||||||
${pkgs.zfs}/bin/zfs destroy loutrepool/var/postgresql@borgsnap
|
${pkgs.zfs}/bin/zfs destroy loutrepool/var/postgresql@borgsnap
|
||||||
if [[ $exitStatus == 0 ]]; then
|
if [[ $exitStatus == 0 ]]; then
|
||||||
${pkgs.rclone}/bin/rclone --config /mnt/secrets/rclone_loutre.conf sync -v $BORG_REPO loutre_ovh:loutre
|
${pkgs.rclone}/bin/rclone --config /mnt/secrets/rclone_loutre.conf sync -v $BORG_REPO BackupStorage:loutre
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
*/
|
|
||||||
|
|
||||||
borgbackup.repos = {
|
borgbackup.repos = {
|
||||||
diskstation = {
|
diskstation = {
|
||||||
@ -362,10 +367,17 @@ in
|
|||||||
|
|
||||||
python-ci.enable = true;
|
python-ci.enable = true;
|
||||||
|
|
||||||
sdtdserver.enable = true;
|
sdtdserver.enable = false;
|
||||||
|
|
||||||
|
factorio = {
|
||||||
|
enable = true;
|
||||||
|
autosave-interval = 10;
|
||||||
|
game-name = "Shame";
|
||||||
|
public = true;
|
||||||
|
username = "nyanloutre";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
|
||||||
systemd.services.dogetipbot-telegram = {
|
systemd.services.dogetipbot-telegram = {
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
@ -373,11 +385,9 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
EnvironmentFile = "/mnt/secrets/dogetipbot-telegram_env";
|
EnvironmentFile = "/mnt/secrets/dogetipbot-telegram_env";
|
||||||
User = "nobody";
|
DynamicUser = true;
|
||||||
Group = "nogroup";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
*/
|
|
||||||
|
|
||||||
systemd.services.matrix-synapse = {
|
systemd.services.matrix-synapse = {
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
Loading…
Reference in New Issue
Block a user