Compare commits
23 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b5aa64e74a | |||
| d7c765b80e | |||
| b3b8ffd90f | |||
| c3614c5397 | |||
|
|
7e3186e632 | ||
| 2db673093e | |||
| f894f65024 | |||
| 7468ccd09f | |||
| c2f8b28b5d | |||
| ff52a9c024 | |||
|
|
2389cfb703 | ||
|
|
ab408f5eed | ||
|
|
37b5d11b75 | ||
| d83ecd19dd | |||
| 92ab3eb6d6 | |||
| 92b6f03db1 | |||
| fa6bd362c8 | |||
| ccf9e6b624 | |||
|
|
eaf515e178 | ||
|
|
2a73531342 | ||
| 7173c81006 | |||
| b5c6c781c1 | |||
| fd20c8ff2d |
191
flake.lock
generated
191
flake.lock
generated
@@ -49,11 +49,11 @@
|
|||||||
"nixpkgs": "nixpkgs_3"
|
"nixpkgs": "nixpkgs_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767637959,
|
"lastModified": 1769470446,
|
||||||
"narHash": "sha256-+gBU5Cj9QNpHLQ5PHJoWNQft7TMsBM6X+tDQg+/B2P0=",
|
"narHash": "sha256-nze0VZ70K2kbDxjE+BBZLD7juOmnZqNYdOhl9aUNGWg=",
|
||||||
"owner": "9001",
|
"owner": "9001",
|
||||||
"repo": "copyparty",
|
"repo": "copyparty",
|
||||||
"rev": "038af507772593b904b5c3efc306f89cbdf2b6fb",
|
"rev": "2f57228fd4e62f8cd8e12cb80a3531dc2d4d170a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -91,11 +91,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1766150702,
|
"lastModified": 1769524058,
|
||||||
"narHash": "sha256-P0kM+5o+DKnB6raXgFEk3azw8Wqg5FL6wyl9jD+G5a4=",
|
"narHash": "sha256-zygdD6X1PcVNR2PsyK4ptzrVEiAdbMqLos7utrMDEWE=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "disko",
|
"repo": "disko",
|
||||||
"rev": "916506443ecd0d0b4a0f4cf9d40a3c22ce39b378",
|
"rev": "71a3fc97d80881e91710fe721f1158d3b96ae14d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -136,22 +136,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-compat_3": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1747046372,
|
|
||||||
"narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=",
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1659877975,
|
"lastModified": 1659877975,
|
||||||
@@ -200,24 +184,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils_4": {
|
|
||||||
"inputs": {
|
|
||||||
"systems": "systems_3"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1731533236,
|
|
||||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -267,31 +233,11 @@
|
|||||||
"nixpkgs": "nixpkgs_4"
|
"nixpkgs": "nixpkgs_4"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767147099,
|
"lastModified": 1769567010,
|
||||||
"narHash": "sha256-395ehjdAtaqCbKmx+PhKAqnkYLvTtAzq2qzFG9qaGDw=",
|
"narHash": "sha256-R4ESxjCluQQlSIPw4NaRYVvEtvsnKGRwmACcXU1at6g=",
|
||||||
"owner": "Infinidoge",
|
"owner": "Infinidoge",
|
||||||
"repo": "nix-minecraft",
|
"repo": "nix-minecraft",
|
||||||
"rev": "01f571579edd64433f97c4294137fbc366deef4b",
|
"rev": "1c9c95fea177a4f8430c34dc1f974394e72bca1f",
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "Infinidoge",
|
|
||||||
"repo": "nix-minecraft",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nix-minecraft_2": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-compat": "flake-compat_3",
|
|
||||||
"flake-utils": "flake-utils_4",
|
|
||||||
"nixpkgs": "nixpkgs_6"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1767147099,
|
|
||||||
"narHash": "sha256-395ehjdAtaqCbKmx+PhKAqnkYLvTtAzq2qzFG9qaGDw=",
|
|
||||||
"owner": "Infinidoge",
|
|
||||||
"repo": "nix-minecraft",
|
|
||||||
"rev": "01f571579edd64433f97c4294137fbc366deef4b",
|
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -365,51 +311,21 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_5": {
|
"nixpkgs_5": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767313136,
|
"lastModified": 1769318308,
|
||||||
"narHash": "sha256-16KkgfdYqjaeRGBaYsNrhPRRENs0qzkQVUooNHtoy2w=",
|
"narHash": "sha256-Mjx6p96Pkefks3+aA+72lu1xVehb6mv2yTUUqmSet6Q=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "ac62194c3917d5f474c1a844b6fd6da2db95077d",
|
"rev": "1cd347bf3355fce6c64ab37d3967b4a2cb4b878c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"ref": "nixos-25.05",
|
"ref": "nixos-25.11",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_6": {
|
"nixpkgs_6": {
|
||||||
"locked": {
|
|
||||||
"lastModified": 1748929857,
|
|
||||||
"narHash": "sha256-lcZQ8RhsmhsK8u7LIFsJhsLh/pzR9yZ8yqpTzyGdj+Q=",
|
|
||||||
"owner": "nixos",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "c2a03962b8e24e669fb37b7df10e7c79531ff1a4",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nixos",
|
|
||||||
"ref": "nixos-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs_7": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1767364772,
|
|
||||||
"narHash": "sha256-fFUnEYMla8b7UKjijLnMe+oVFOz6HjijGGNS1l7dYaQ=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "16c7794d0a28b5a37904d55bcca36003b9109aaa",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"id": "nixpkgs",
|
|
||||||
"type": "indirect"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs_8": {
|
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1737062831,
|
"lastModified": 1737062831,
|
||||||
"narHash": "sha256-Tbk1MZbtV2s5aG+iM99U8FqwxU/YNArMcWAv6clcsBc=",
|
"narHash": "sha256-Tbk1MZbtV2s5aG+iM99U8FqwxU/YNArMcWAv6clcsBc=",
|
||||||
@@ -423,7 +339,7 @@
|
|||||||
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_9": {
|
"nixpkgs_7": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1736549401,
|
"lastModified": 1736549401,
|
||||||
"narHash": "sha256-ibkQrMHxF/7TqAYcQE+tOnIsSEzXmMegzyBWza6uHKM=",
|
"narHash": "sha256-ibkQrMHxF/7TqAYcQE+tOnIsSEzXmMegzyBWza6uHKM=",
|
||||||
@@ -439,26 +355,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"reclamation": {
|
|
||||||
"inputs": {
|
|
||||||
"nix-minecraft": "nix-minecraft_2",
|
|
||||||
"nixpkgs": "nixpkgs_7",
|
|
||||||
"utils": "utils"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1767786101,
|
|
||||||
"narHash": "sha256-ENlpYr2V5u0/Enq07nIHfzetqmS95aydQYIM6sISVUc=",
|
|
||||||
"ref": "refs/heads/master",
|
|
||||||
"rev": "b71acff364b7b5eb3e1b68915aeb379053b86c94",
|
|
||||||
"revCount": 10,
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://git.shobu.fr/sin_serhao/reclamation"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://git.shobu.fr/sin_serhao/reclamation"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
@@ -467,7 +363,6 @@
|
|||||||
"disko": "disko",
|
"disko": "disko",
|
||||||
"nix-minecraft": "nix-minecraft",
|
"nix-minecraft": "nix-minecraft",
|
||||||
"nixpkgs": "nixpkgs_5",
|
"nixpkgs": "nixpkgs_5",
|
||||||
"reclamation": "reclamation",
|
|
||||||
"shoblog-front": "shoblog-front",
|
"shoblog-front": "shoblog-front",
|
||||||
"testing-grounds": "testing-grounds",
|
"testing-grounds": "testing-grounds",
|
||||||
"unstable": "unstable"
|
"unstable": "unstable"
|
||||||
@@ -475,7 +370,7 @@
|
|||||||
},
|
},
|
||||||
"shoblog-front": {
|
"shoblog-front": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs_8"
|
"nixpkgs": "nixpkgs_6"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1752594581,
|
"lastModified": 1752594581,
|
||||||
@@ -537,39 +432,9 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems_3": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems_4": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"testing-grounds": {
|
"testing-grounds": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs_9"
|
"nixpkgs": "nixpkgs_7"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1755527993,
|
"lastModified": 1755527993,
|
||||||
@@ -587,11 +452,11 @@
|
|||||||
},
|
},
|
||||||
"unstable": {
|
"unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767640445,
|
"lastModified": 1769461804,
|
||||||
"narHash": "sha256-UWYqmD7JFBEDBHWYcqE6s6c77pWdcU/i+bwD6XxMb8A=",
|
"narHash": "sha256-msG8SU5WsBUfVVa/9RPLaymvi5bI8edTavbIq3vRlhI=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "9f0c42f8bc7151b8e7e5840fb3bd454ad850d8c5",
|
"rev": "bfc1b8a4574108ceef22f02bafcf6611380c100d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -600,24 +465,6 @@
|
|||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"utils": {
|
|
||||||
"inputs": {
|
|
||||||
"systems": "systems_4"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1731533236,
|
|
||||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
# Flake inputs
|
# Flake inputs
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
||||||
unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
colmena.url = "github:zhaofengli/colmena";
|
colmena.url = "github:zhaofengli/colmena";
|
||||||
|
|
||||||
@@ -17,10 +17,7 @@
|
|||||||
# sin inputs
|
# sin inputs
|
||||||
nix-minecraft.url = "github:Infinidoge/nix-minecraft";
|
nix-minecraft.url = "github:Infinidoge/nix-minecraft";
|
||||||
testing-grounds.url = "gitlab:shobu13/testing-grounds";
|
testing-grounds.url = "gitlab:shobu13/testing-grounds";
|
||||||
reclamation.url = "git+https://git.shobu.fr/sin_serhao/reclamation";
|
|
||||||
shoblog-front.url = "gitlab:shobu13/shoblog";
|
shoblog-front.url = "gitlab:shobu13/shoblog";
|
||||||
# striped-front.url = "git+ssh://git@gitlab.com/striped1/striped-front";
|
|
||||||
# striped-back.url = "git+ssh://git@gitlab.com/striped1/striped-back";
|
|
||||||
|
|
||||||
copyparty.url = "github:9001/copyparty";
|
copyparty.url = "github:9001/copyparty";
|
||||||
|
|
||||||
@@ -44,7 +41,6 @@
|
|||||||
# striped-back,
|
# striped-back,
|
||||||
nix-minecraft,
|
nix-minecraft,
|
||||||
testing-grounds,
|
testing-grounds,
|
||||||
reclamation,
|
|
||||||
copyparty,
|
copyparty,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
./secrets.nix
|
./secrets.nix
|
||||||
./coredns
|
./coredns
|
||||||
./copyparty.nix
|
./copyparty.nix
|
||||||
|
./trilium.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.kernelModules = [ "usb_storage" ];
|
boot.initrd.kernelModules = [ "usb_storage" ];
|
||||||
@@ -43,6 +44,8 @@
|
|||||||
|
|
||||||
3000 # gitea
|
3000 # gitea
|
||||||
|
|
||||||
|
config.services.trilium-server.port
|
||||||
|
|
||||||
53
|
53
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -27,13 +27,50 @@
|
|||||||
shr = "/shares";
|
shr = "/shares";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
accounts = {
|
||||||
|
serhao = {
|
||||||
|
passwordFile = config.age.secrets.copyparty-serhao.path;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
volumes = {
|
volumes = {
|
||||||
"/media" = {
|
"/movies" = {
|
||||||
path = "/mnt/mediacenter/media";
|
path = "/mnt/mediacenter/media/movies";
|
||||||
access = {
|
access = {
|
||||||
r = "*";
|
r = "*";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
"/shows" = {
|
||||||
|
path = "/mnt/mediacenter/media/shows";
|
||||||
|
access = {
|
||||||
|
r = "*";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
"/musics" = {
|
||||||
|
path = "/mnt/mediacenter/media/musics";
|
||||||
|
access = {
|
||||||
|
r = "*";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"/mediacenter" = {
|
||||||
|
path = "/mnt/mediacenter/media";
|
||||||
|
access = {
|
||||||
|
rw = ["serhao"];
|
||||||
|
};
|
||||||
|
flags = {
|
||||||
|
e2d = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"/data" = {
|
||||||
|
path = "/mnt/data";
|
||||||
|
access = {
|
||||||
|
rwd = ["serhao"];
|
||||||
|
};
|
||||||
|
flags = {
|
||||||
|
e2d = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -122,7 +122,7 @@
|
|||||||
description = "bring back your world to life";
|
description = "bring back your world to life";
|
||||||
widget = {
|
widget = {
|
||||||
type = "minecraft";
|
type = "minecraft";
|
||||||
url = "udp://minecraft.shobu.fr:43001";
|
url = "udp://minecraft.shobu.fr:25665";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,10 +11,9 @@ in
|
|||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
intel-media-driver
|
intel-media-driver
|
||||||
intel-vaapi-driver
|
intel-vaapi-driver
|
||||||
vaapiVdpau
|
libva-vdpau-driver
|
||||||
intel-compute-runtime # OpenCL filter support (hardware tonemapping and subtitle burn-in)
|
intel-compute-runtime # OpenCL filter support (hardware tonemapping and subtitle burn-in)
|
||||||
vpl-gpu-rt # QSV on 11th gen or newer
|
vpl-gpu-rt # QSV on 11th gen or newer
|
||||||
intel-media-sdk # QSV up to 11th gen
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -54,6 +53,12 @@ in
|
|||||||
"transmission"
|
"transmission"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
users.users.whisparr.extraGroups = [
|
||||||
|
"jellyfin"
|
||||||
|
"starr"
|
||||||
|
"transmission"
|
||||||
|
];
|
||||||
|
|
||||||
users.users.shobu.extraGroups = [
|
users.users.shobu.extraGroups = [
|
||||||
"jellyfin"
|
"jellyfin"
|
||||||
"starr"
|
"starr"
|
||||||
@@ -76,15 +81,27 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
group = "starr";
|
group = "starr";
|
||||||
|
settings = {
|
||||||
|
authentication.AuthenticationMethod = "external";
|
||||||
|
authentication.AuthenticationType = "enabled";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
radarr = {
|
radarr = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
group = "starr";
|
group = "starr";
|
||||||
|
settings = {
|
||||||
|
authentication.AuthenticationMethod = "external";
|
||||||
|
authentication.AuthenticationType = "enabled";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
prowlarr = {
|
prowlarr = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
|
settings = {
|
||||||
|
authentication.AuthenticationMethod = "external";
|
||||||
|
authentication.AuthenticationType = "enabled";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
bazarr = {
|
bazarr = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -93,7 +110,18 @@ in
|
|||||||
lidarr = {
|
lidarr = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
package = unstable.lidarr;
|
settings = {
|
||||||
|
authentication.AuthenticationMethod = "external";
|
||||||
|
authentication.AuthenticationType = "enabled";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
whisparr = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
settings = {
|
||||||
|
authentication.AuthenticationMethod = "external";
|
||||||
|
authentication.AuthenticationType = "enabled";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
jellyseerr = {
|
jellyseerr = {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
# and the actual btrfs raid on the second disk, and the name of these entries matters!
|
# and the actual btrfs raid on the second disk, and the name of these entries matters!
|
||||||
system = {
|
system = {
|
||||||
type = "disk";
|
type = "disk";
|
||||||
device = "/dev/mmcblk0";
|
device = "/dev/sdb";
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
partitions = {
|
partitions = {
|
||||||
@@ -42,6 +42,10 @@
|
|||||||
"/root" = {
|
"/root" = {
|
||||||
mountpoint = "/";
|
mountpoint = "/";
|
||||||
};
|
};
|
||||||
|
"/nix" = {
|
||||||
|
mountpoint = "/nix";
|
||||||
|
mountOptions = [ "compress=zstd:3" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -74,10 +78,6 @@
|
|||||||
mountpoint = "/mnt/fs";
|
mountpoint = "/mnt/fs";
|
||||||
mountOptions = [ "compress=zstd:3" ];
|
mountOptions = [ "compress=zstd:3" ];
|
||||||
};
|
};
|
||||||
"/nix" = {
|
|
||||||
mountpoint = "/nix";
|
|
||||||
mountOptions = [ "compress=zstd:3" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
"/data" = {
|
"/data" = {
|
||||||
mountpoint = "/mnt/data";
|
mountpoint = "/mnt/data";
|
||||||
|
|||||||
@@ -10,5 +10,22 @@
|
|||||||
file = ./secrets/airvpn_wireguard_key_env.age;
|
file = ./secrets/airvpn_wireguard_key_env.age;
|
||||||
mode = "700";
|
mode = "700";
|
||||||
};
|
};
|
||||||
|
copyparty-serhao = {
|
||||||
|
file = ./secrets/copyparty-serhao.age;
|
||||||
|
mode = "700";
|
||||||
|
owner = "copyparty";
|
||||||
|
};
|
||||||
|
authelia-jwt = {
|
||||||
|
file = ./secrets/authelia-jwt.age;
|
||||||
|
mode = "700";
|
||||||
|
};
|
||||||
|
authelia-encryption = {
|
||||||
|
file = ./secrets/authelia-encryption.age;
|
||||||
|
mode = "700";
|
||||||
|
};
|
||||||
|
authelia-session = {
|
||||||
|
file = ./secrets/authelia-session.age;
|
||||||
|
mode = "700";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
7
hosts/sin/secrets/authelia-encryption.age
Normal file
7
hosts/sin/secrets/authelia-encryption.age
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 /uqj4A L95rgX9APIgoMvkplZIYgMQDhKBOsPGOw/maymMhiks
|
||||||
|
LNfa/YBCd84iknAMk4wbQps4KMXCvrhPp2d9KkhJWHI
|
||||||
|
-> ssh-ed25519 NoSl6Q G/y6DUFTyV6Jy6KHo8yc+xxtu3aJtTOF3Ldmxq3FmyE
|
||||||
|
FOExj321S/VIPQ/qdvZBcJ930HI/GsjDVjJp9WMSXLA
|
||||||
|
--- iIpq/CWng+4+kQbvJQb/qgejr/eza94wCkegEJ2dvno
|
||||||
|
ÿNôU*1=DÔOˆ£W6]_â©Kà=©*ÊÞký¦_ù˜ÝøÉ‡™tmË•ãw°
|
||||||
7
hosts/sin/secrets/authelia-jwt.age
Normal file
7
hosts/sin/secrets/authelia-jwt.age
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 /uqj4A i6SPCzjkGrPMjhC9NQDdYTk3fzXoD4OSQdhS1togN0A
|
||||||
|
Lqus8sROz1O4EepauPwC4RX/qH+SnDiL2H5iZGtAhXo
|
||||||
|
-> ssh-ed25519 NoSl6Q LxV4a5HiB6qfPjbba75dkVVECzaqrMjksMXHh53JbGQ
|
||||||
|
x4POzurz+J2mymT81M+cu69Iv/MeiYt+JvaRteinm5Q
|
||||||
|
--- OFqooyZ2HPBxP756PqpgJAyVOTkqhJ0LhEQsLJBZUtE
|
||||||
|
—>»&Ȇw·\D„Au{õz{CˆÁ~á$‘_ˆ9»¢ZZ<5A>U^„ÎÊL!(lnпÂó‰Üv{fdº 1Ýßl¢,<2C>|<7C>Ü.¤çH«¤³êVaù¥ÍÓˆ™PêwOo3ž
|
||||||
7
hosts/sin/secrets/authelia-session.age
Normal file
7
hosts/sin/secrets/authelia-session.age
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 /uqj4A eff535EaT7gEZOacWx9raBJMdd4PPd9+y6Y3eOt1wBI
|
||||||
|
5P4aefjWVJ4L11ff+Cg8j3gQ58I+agDPUMFWiCaL/sQ
|
||||||
|
-> ssh-ed25519 NoSl6Q 3+EZtaiiZQk7JK6zCNo/nUSSRAJzf8nal2X1sFkYmxo
|
||||||
|
f5gzpiOtCbYdiV7vOxfZvJPRmRruTbHg6T8g0r5JRgc
|
||||||
|
--- BBL3wE2eSmHVI4tlhq+5fy84cauw6P6G69nFXuObLKE
|
||||||
|
êéæí @[¡SÓcñ‘<C3B1>SyÉŠ‡<; í†<C3AD>e±Ë茟<C592><C5B8>§(°Æž1\Yj›È¯½½4åõ Ýȹ.3>Â[Èq¢Jh8í·šÕVt”øX[Ì~[(#^‘_5€§<E282AC>
|
||||||
7
hosts/sin/secrets/copyparty-serhao.age
Normal file
7
hosts/sin/secrets/copyparty-serhao.age
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 BoEq8A O6x9n4kvpqLucX7NuNeD2SsMmvT5n6aVYwo4nQt21H8
|
||||||
|
R+4g1QuXtxovyv5Mav+mAhgGjOcGQW4q17FSBtzXZQo
|
||||||
|
-> ssh-ed25519 NoSl6Q iKPipXfIGWxUobXF/9CSRhc/zKgmKKWWZhDTDgX0jWA
|
||||||
|
LB4TFCdbEG0VToYzTWdFedd0duF5PKlCnpBs4nBbLAQ
|
||||||
|
--- D7VE3Mwgx9ehk5rNuHm62S5ggQBm9wJodZa61jLEVsY
|
||||||
|
8ÔîÐÄÒë`S«šéT¯Fª9&(½Ú²Á‡¸=~Ïášoù».X޶ž7ðV&'Øøå ÒÔ¸‹%ã î
|
||||||
9
hosts/sin/trilium.nix
Normal file
9
hosts/sin/trilium.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
services.trilium-server = {
|
||||||
|
enable = true;
|
||||||
|
port = 12783;
|
||||||
|
host = "0.0.0.0";
|
||||||
|
noAuthentication = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
126
hosts/thea/authelia.nix
Normal file
126
hosts/thea/authelia.nix
Normal file
@@ -0,0 +1,126 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.services.authelia.instances.main;
|
||||||
|
dataDir = "/var/lib/authelia-${cfg.name}";
|
||||||
|
authelia-snippets = pkgs.callPackage ./lib/autheliaSnippets.nix { inherit pkgs; };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
services.authelia.instances = {
|
||||||
|
main = {
|
||||||
|
enable = true;
|
||||||
|
secrets = {
|
||||||
|
jwtSecretFile = config.age.secrets.authelia-jwt.path;
|
||||||
|
storageEncryptionKeyFile = config.age.secrets.authelia-encryption.path;
|
||||||
|
sessionSecretFile = config.age.secrets.authelia-session.path;
|
||||||
|
};
|
||||||
|
settings = {
|
||||||
|
theme = "light";
|
||||||
|
log.level = "debug";
|
||||||
|
|
||||||
|
authentication_backend = {
|
||||||
|
file = {
|
||||||
|
path = dataDir + "/users.yml";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
storage = {
|
||||||
|
local = {
|
||||||
|
path = dataDir + "/db.sqlite3";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
session = {
|
||||||
|
cookies = [
|
||||||
|
{
|
||||||
|
domain = "shobu.fr";
|
||||||
|
authelia_url = "https://auth.shobu.fr";
|
||||||
|
default_redirection_url = "https://shobu.fr";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
notifier = {
|
||||||
|
filesystem = {
|
||||||
|
filename = "${dataDir}/notification.txt";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
access_control = {
|
||||||
|
default_policy = "deny";
|
||||||
|
rules = [
|
||||||
|
# {
|
||||||
|
# domain = "radarr.shobu.fr";
|
||||||
|
# policy = "bypass";
|
||||||
|
# }
|
||||||
|
{
|
||||||
|
domain = "*.shobu.fr";
|
||||||
|
policy = "one_factor";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
server = {
|
||||||
|
endpoints = {
|
||||||
|
authz = {
|
||||||
|
auth-request = {
|
||||||
|
implementation = "AuthRequest";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# systemd.tmpfiles.rules = lib.mkIf cfg.enable [
|
||||||
|
# "d '${dataDir}' 0700 ${cfg.user} ${cfg.group} - -"
|
||||||
|
# ];
|
||||||
|
|
||||||
|
age.secrets = {
|
||||||
|
authelia-jwt = {
|
||||||
|
owner = cfg.user;
|
||||||
|
file = ./secrets/authelia-jwt.age;
|
||||||
|
mode = "700";
|
||||||
|
};
|
||||||
|
authelia-encryption = {
|
||||||
|
owner = cfg.user;
|
||||||
|
file = ./secrets/authelia-encryption.age;
|
||||||
|
mode = "700";
|
||||||
|
};
|
||||||
|
authelia-session = {
|
||||||
|
owner = cfg.user;
|
||||||
|
file = ./secrets/authelia-session.age;
|
||||||
|
mode = "700";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx = {
|
||||||
|
enable = true;
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
recommendedTlsSettings = true;
|
||||||
|
|
||||||
|
virtualHosts."auth.shobu.fr" =
|
||||||
|
let
|
||||||
|
upstream = "http://thea:9091";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = upstream;
|
||||||
|
extraConfig = ''
|
||||||
|
error_log /var/log/nginx/debug_authelia.log debug;
|
||||||
|
include ${authelia-snippets.proxy};
|
||||||
|
set $upstream ${upstream};
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
locations."/api/verify" = {
|
||||||
|
proxyPass = upstream;
|
||||||
|
};
|
||||||
|
locations."/api/authz" = {
|
||||||
|
proxyPass = upstream;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -16,11 +16,11 @@ in
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
# ./striped
|
|
||||||
# ./cybercoffee
|
# ./cybercoffee
|
||||||
./ollama.nix
|
./ollama.nix
|
||||||
./minecraft.nix
|
./minecraft.nix
|
||||||
./nix-serve.nix
|
./secrets
|
||||||
|
./authelia.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
@@ -37,7 +37,14 @@ in
|
|||||||
# dhcpcd.extraConfig = "nohook resolv.conf";
|
# dhcpcd.extraConfig = "nohook resolv.conf";
|
||||||
|
|
||||||
firewall = {
|
firewall = {
|
||||||
allowedTCPPorts = [ nodes.sin.config.services.gitea.settings.server.SSH_PORT ];
|
allowedTCPPorts = [
|
||||||
|
nodes.sin.config.services.gitea.settings.server.SSH_PORT
|
||||||
|
]
|
||||||
|
++ [
|
||||||
|
# minecraft ad hoc server ports
|
||||||
|
25665
|
||||||
|
25675
|
||||||
|
];
|
||||||
};
|
};
|
||||||
nat = {
|
nat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
81
hosts/thea/lib/autheliaSnippets.nix
Normal file
81
hosts/thea/lib/autheliaSnippets.nix
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
{ pkgs }:
|
||||||
|
{
|
||||||
|
proxy = pkgs.writeText "proxy.conf" ''
|
||||||
|
## Headers
|
||||||
|
# proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Original-URL $scheme://$http_host$request_uri;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header X-Forwarded-Host $http_host;
|
||||||
|
proxy_set_header X-Forwarded-URI $request_uri;
|
||||||
|
proxy_set_header X-Forwarded-Ssl on;
|
||||||
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
|
'';
|
||||||
|
authelia-location = pkgs.writeText "authelia-location.conf" ''
|
||||||
|
set $upstream_authelia http://192.168.1.12:9091/api/authz/auth-request;
|
||||||
|
|
||||||
|
## Virtual endpoint created by nginx to forward auth requests.
|
||||||
|
location /internal/authelia/authz {
|
||||||
|
## Essential Proxy Configuration
|
||||||
|
internal;
|
||||||
|
proxy_pass $upstream_authelia;
|
||||||
|
|
||||||
|
## Headers
|
||||||
|
## The headers starting with X-* are required.
|
||||||
|
proxy_set_header X-Original-Method $request_method;
|
||||||
|
proxy_set_header X-Original-URL $scheme://$http_host$request_uri;
|
||||||
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
|
proxy_set_header Content-Length "";
|
||||||
|
proxy_set_header Connection "";
|
||||||
|
|
||||||
|
## Basic Proxy Configuration
|
||||||
|
proxy_pass_request_body off;
|
||||||
|
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503; # Timeout if the real server is dead
|
||||||
|
proxy_redirect http:// $scheme://;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_cache_bypass $cookie_session;
|
||||||
|
proxy_no_cache $cookie_session;
|
||||||
|
proxy_buffers 4 32k;
|
||||||
|
client_body_buffer_size 128k;
|
||||||
|
|
||||||
|
## Advanced Proxy Configuration
|
||||||
|
send_timeout 5m;
|
||||||
|
proxy_read_timeout 240;
|
||||||
|
proxy_send_timeout 240;
|
||||||
|
proxy_connect_timeout 240;
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
authelia-authrequest = pkgs.writeText "authelia-authrequest.conf" ''
|
||||||
|
## Send a subrequest to Authelia to verify if the user is authenticated and has permission to access the resource.
|
||||||
|
auth_request /internal/authelia/authz;
|
||||||
|
|
||||||
|
## Save the upstream metadata response headers from Authelia to variables.
|
||||||
|
auth_request_set $user $upstream_http_remote_user;
|
||||||
|
auth_request_set $groups $upstream_http_remote_groups;
|
||||||
|
auth_request_set $name $upstream_http_remote_name;
|
||||||
|
auth_request_set $email $upstream_http_remote_email;
|
||||||
|
|
||||||
|
## Inject the metadata response headers from the variables into the request made to the backend.
|
||||||
|
proxy_set_header Remote-User $user;
|
||||||
|
proxy_set_header Remote-Groups $groups;
|
||||||
|
proxy_set_header Remote-Email $email;
|
||||||
|
proxy_set_header Remote-Name $name;
|
||||||
|
|
||||||
|
## Configure the redirection when the authz failure occurs. Lines starting with 'Modern Method' and 'Legacy Method'
|
||||||
|
## should be commented / uncommented as pairs. The modern method uses the session cookies configuration's authelia_url
|
||||||
|
## value to determine the redirection URL here. It's much simpler and compatible with the mutli-cookie domain easily.
|
||||||
|
|
||||||
|
## Modern Method: Set the $redirection_url to the Location header of the response to the Authz endpoint.
|
||||||
|
auth_request_set $redirection_url $upstream_http_location;
|
||||||
|
|
||||||
|
## Modern Method: When there is a 401 response code from the authz endpoint redirect to the $redirection_url.
|
||||||
|
error_page 401 =302 $redirection_url;
|
||||||
|
|
||||||
|
## Legacy Method: Set $target_url to the original requested URL.
|
||||||
|
## This requires http_set_misc module, replace 'set_escape_uri' with 'set' if you don't have this module.
|
||||||
|
# set_escape_uri $target_url $scheme://$http_host$request_uri;
|
||||||
|
|
||||||
|
## Legacy Method: When there is a 401 response code from the authz endpoint redirect to the portal with the 'rd'
|
||||||
|
## URL parameter set to $target_url. This requires users update 'auth.shobu.fr/' with their external authelia URL.
|
||||||
|
# error_page 401 =302 https://auth.shobu.fr/?rd=$target_url;
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -9,7 +9,10 @@ let
|
|||||||
url = "file:///${inputs.testing-grounds.modpack}/pack.toml";
|
url = "file:///${inputs.testing-grounds.modpack}/pack.toml";
|
||||||
packHash = "sha256-+taYj4uroLNxM4Nia3n+5P1Y/g6dzE6Iq13TsZgk4mU=";
|
packHash = "sha256-+taYj4uroLNxM4Nia3n+5P1Y/g6dzE6Iq13TsZgk4mU=";
|
||||||
};
|
};
|
||||||
reclamation = inputs.reclamation.packages.${pkgs.stdenv.system};
|
gregpack = pkgs.fetchPackwizModpack {
|
||||||
|
url = "https://raw.githubusercontent.com/GregTechCEu/GregTech-Modern-Community-Pack/refs/heads/main/pack.toml";
|
||||||
|
packHash = "sha256-SE86gP15H/Aug6vTLmMxHuxF2/+iLmCI/wQlON1xasM=";
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [ inputs.nix-minecraft.nixosModules.minecraft-servers ];
|
imports = [ inputs.nix-minecraft.nixosModules.minecraft-servers ];
|
||||||
@@ -20,28 +23,6 @@ in
|
|||||||
eula = true;
|
eula = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
|
|
||||||
servers.reclamation = {
|
|
||||||
enable = false;
|
|
||||||
package = pkgs.fabricServers.fabric;
|
|
||||||
|
|
||||||
symlinks = {
|
|
||||||
"mods" = "${reclamation.modpack}/mods";
|
|
||||||
"FTBLang" = "${reclamation.modpack}/FTBLang";
|
|
||||||
"defaultconfigs" = "${reclamation.modpack}/defaultconfigs";
|
|
||||||
"ressourcepacks" = "${reclamation.modpack}/ressourcepacks";
|
|
||||||
"config" = "${reclamation.modpack}/config";
|
|
||||||
"kubejs" = "${reclamation.modpack}/kubejs";
|
|
||||||
"patchouli_books" = "${reclamation.modpack}/patchouli_books";
|
|
||||||
"server.dat" = "${reclamation.modpack}/server.dat";
|
|
||||||
};
|
|
||||||
|
|
||||||
serverProperties = {
|
|
||||||
server-port = 43001;
|
|
||||||
motd = "all hail the gorgon v3.14";
|
|
||||||
allow-flight = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
servers.testing-grounds = {
|
servers.testing-grounds = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
@@ -58,4 +39,10 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
25865 # autismcraft
|
||||||
|
25665 # reclamation
|
||||||
|
25675 # reclamation
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,14 @@
|
|||||||
{ inputs, ... }:
|
{
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
# striped-front = inputs.striped-front;
|
# striped-front = inputs.striped-front;
|
||||||
|
|
||||||
sin-address = "192.168.1.14";
|
sin-address = "192.168.1.14";
|
||||||
|
authelia-snippets = pkgs.callPackage ./lib/autheliaSnippets.nix { inherit pkgs; };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -17,35 +23,92 @@ in
|
|||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
|
|
||||||
|
typesHashMaxSize = 512;
|
||||||
|
mapHashMaxSize = 512;
|
||||||
|
|
||||||
virtualHosts =
|
virtualHosts =
|
||||||
let
|
let
|
||||||
mkStarr = host: port: {
|
mkVHost = host: port: {
|
||||||
"${host}" = {
|
"${host}" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://${sin-address}:${port}";
|
proxyPass = "http://${sin-address}:${port}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
mkStarr = host: port: {
|
||||||
|
"${host}" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
include ${authelia-snippets.authelia-location};
|
||||||
|
'';
|
||||||
|
|
||||||
|
locations."/api" = {
|
||||||
|
proxyPass = "http://${sin-address}:${port}";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
proxy_ssl_server_name on;
|
proxy_ssl_server_name on;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://${sin-address}:${port}";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
extraConfig = ''
|
||||||
|
include ${authelia-snippets.proxy};
|
||||||
|
include ${authelia-snippets.authelia-authrequest};
|
||||||
|
|
||||||
|
proxy_ssl_server_name on;
|
||||||
proxy_read_timeout 4800s;
|
proxy_read_timeout 4800s;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
withAuthelia =
|
||||||
|
vhost: location:
|
||||||
|
(builtins.mapAttrs (
|
||||||
|
name: value:
|
||||||
|
(lib.recursiveUpdate value {
|
||||||
|
extraConfig = (if value ? extraConfig then value.extraConfig else "") + ''
|
||||||
|
include ${authelia-snippets.authelia-location};
|
||||||
|
'';
|
||||||
|
locations."${location}".extraConfig =
|
||||||
|
(
|
||||||
|
if value.locations."${location}" ? extraConfig then
|
||||||
|
value.locations."${location}".extraConfig
|
||||||
|
else
|
||||||
|
""
|
||||||
|
)
|
||||||
|
+ ''
|
||||||
|
include ${authelia-snippets.proxy};
|
||||||
|
include ${authelia-snippets.authelia-authrequest};
|
||||||
|
'';
|
||||||
|
})
|
||||||
|
) vhost);
|
||||||
|
withWebsockets =
|
||||||
|
vhost: location:
|
||||||
|
(builtins.mapAttrs (
|
||||||
|
name: value:
|
||||||
|
(lib.recursiveUpdate value {
|
||||||
|
locations."${location}".proxyWebsockets = true;
|
||||||
|
})
|
||||||
|
) vhost);
|
||||||
in
|
in
|
||||||
(
|
(
|
||||||
mkStarr "jellyfin.shobu.fr" "8096"
|
(withWebsockets (mkVHost "jellyfin.shobu.fr" "8096") "/")
|
||||||
// mkStarr "radarr.shobu.fr" "7878"
|
// mkStarr "radarr.shobu.fr" "7878"
|
||||||
// mkStarr "sonarr.shobu.fr" "8989"
|
// mkStarr "sonarr.shobu.fr" "8989"
|
||||||
// mkStarr "prowlarr.shobu.fr" "9696"
|
// mkStarr "prowlarr.shobu.fr" "9696"
|
||||||
// mkStarr "bazarr.shobu.fr" "6767"
|
// mkStarr "bazarr.shobu.fr" "6767"
|
||||||
// mkStarr "jellyseerr.shobu.fr" "5055"
|
|
||||||
// mkStarr "fileshelter.shobu.fr" "5091"
|
|
||||||
// mkStarr "lidarr.shobu.fr" "8686"
|
// mkStarr "lidarr.shobu.fr" "8686"
|
||||||
// mkStarr "transmission.shobu.fr" "9091"
|
// mkStarr "whisparr.shobu.fr" "6969"
|
||||||
// mkStarr "zimablade-admin.shobu.fr" "61208"
|
// mkVHost "jellyseerr.shobu.fr" "5055"
|
||||||
|
// mkVHost "transmission.shobu.fr" "9091"
|
||||||
|
// mkVHost "zimablade-admin.shobu.fr" "61208"
|
||||||
|
// (withWebsockets (withAuthelia (mkVHost "trilium.shobu.fr" "12783") "/") "/")
|
||||||
// {
|
// {
|
||||||
"shobu.fr" = {
|
"shobu.fr" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
@@ -108,10 +171,18 @@ in
|
|||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
# include ${authelia-snippets.authelia-location};
|
||||||
|
# error_log /var/log/nginx/debug_files.log debug;
|
||||||
|
'';
|
||||||
|
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://${sin-address}:8086";
|
proxyPass = "http://${sin-address}:8086";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
# include ${authelia-snippets.proxy};
|
||||||
|
# include ${authelia-snippets.authelia-authrequest};
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
client_max_body_size 100M;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
10
hosts/thea/secrets/authelia-encryption.age
Normal file
10
hosts/thea/secrets/authelia-encryption.age
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 /uqj4A 9cZH/SlDpiluz2O3wCxRcBhmt3L5eN24I0HHwiJDWRU
|
||||||
|
VVZaJlB4QzxBPcaN3MjCemjptEbqSUMD8VVtKyGezH8
|
||||||
|
-> ssh-ed25519 70Re8Q ZFEQxmnm+dFKSXcQAc0KxkewCB59J5FyL1Ob/uEEtVg
|
||||||
|
fRdEZpIytxjUeSKPieIzvZaAn5Mikjp28HlZhKwzS7M
|
||||||
|
-> ssh-ed25519 QvCxGg ifsqXBKO0mqE1RuJ44Y7qDJ7lyci8iyz+J1xFgO38jI
|
||||||
|
MkhMTZ+RttBFFMkbIaSCSQiExR1gf4OyFWHXIsx+QYQ
|
||||||
|
--- nnMlLyQjixpBkx+bSU5I364IP3KnZ0qnmMPueBcRHpU
|
||||||
|
ë˜<EFBFBD>6TX—ÕÞÌfÁ““É
|
||||||
|
®?Z7M<37>T<EFBFBD>Å|ÚQf
|
||||||
BIN
hosts/thea/secrets/authelia-jwt.age
Normal file
BIN
hosts/thea/secrets/authelia-jwt.age
Normal file
Binary file not shown.
9
hosts/thea/secrets/authelia-session.age
Normal file
9
hosts/thea/secrets/authelia-session.age
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 /uqj4A yxpGM3pJxfnM/5q9+NzdfG2kBjjNex6bdyUeZEBKjnI
|
||||||
|
UO6ovn2cFeNi6SbcGpfF71/OAyQccyG+l6aZXubUal8
|
||||||
|
-> ssh-ed25519 70Re8Q GW40lmeg6Lj7ntZswT0/hWZFpYBWoV3CMq4pdo+Ncgc
|
||||||
|
oWTYuM/s3G7EKPWPQpHbXo9Tpzgn7YlYVQHYGn4xKS8
|
||||||
|
-> ssh-ed25519 QvCxGg pKLpxtuMIa0xPXoaeb4WeQWVEINRE/j4nrxDB1J9BUI
|
||||||
|
1azpt5MImTiDSF+Ts9EvUCdWMeVG7lErUHSBQfMiip4
|
||||||
|
--- IOOR8Us6zlZhJm0V4X3IlbkHSdtR3GLLxEfa4i+lqv0
|
||||||
|
ó P¬¥rhé"BFãŽÌŸtÌ€ê¤{¾(öB`q“Óø"AµnN_ ™f*ÏŒºvPpj&{)ìŠØ@‹ÃkF«Ú]<Aš*Á<>‡<EFBFBD>´WTm”ƪD‡,Ý1E™”¦³eѨ·O¢š
|
||||||
3
hosts/thea/secrets/default.nix
Normal file
3
hosts/thea/secrets/default.nix
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
}
|
||||||
@@ -16,6 +16,10 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
podman-compose
|
||||||
|
];
|
||||||
|
|
||||||
virtualisation.oci-containers.containers =
|
virtualisation.oci-containers.containers =
|
||||||
let
|
let
|
||||||
runner_config = pkgs.writeTextFile {
|
runner_config = pkgs.writeTextFile {
|
||||||
|
|||||||
Reference in New Issue
Block a user