Compare commits

...

2 Commits

Author SHA1 Message Date
c05e1a919a fix(bepasty): workaround for nixpkgs#500538
Some checks failed
build / build-sydpc (push) Successful in 1m43s
build / build-fruitbook (push) Successful in 25s
build / build-deertopia (push) Failing after 40s
https://github.com/NixOS/nixpkgs/pull/500538
2026-03-16 16:50:32 -06:00
2905839509 refactor(bepasty): no with lib 2026-03-16 16:50:32 -06:00

View File

@@ -1,12 +1,10 @@
{ config, lib, pkgs, ... }:
with lib;
let cfg = config.sydnix.deertopia.bepasty;
in {
options = {
sydnix.deertopia.bepasty = {
enable = mkEnableOption "Bepasty";
enable = lib.mkEnableOption "Bepasty";
port = lib.mkOption {
default = 22018;
@@ -19,7 +17,7 @@ in {
};
};
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
sydnix.sops.secrets.bepasty-secret-key = {};
sydnix.sops.secrets.bepasty-secret-config = {};
@@ -28,6 +26,26 @@ in {
config.services.bepasty.servers."bin.deertopia.net".dataDir
];
# See https://github.com/NixOS/nixpkgs/pull/500538
nixpkgs.overlays = [
(self: super: {
python3 = super.python3.override {
self = self.python3;
packageOverrides = self: super: {
xstatic-bootstrap =
super.xstatic-bootstrap.overridePythonAttrs (oldAttrs: rec {
version = "4.5.3.1";
src = oldAttrs.src.override {
pname = "XStatic-Bootstrap";
inherit version;
hash = "sha256-z2fSBUN7MlCKiLaafnxbviylqK5xCXORpqb1EOv9KCA=";
};
});
};
};
})
];
services.bepasty = {
enable = true;
servers."bin.deertopia.net" = {