h: switch to mcchunkie flake

- remove pkgs/mcchunkie
This commit is contained in:
Aaron Bieber 2024-03-28 11:46:44 -06:00
parent 6150b45593
commit 078e695f13
No known key found for this signature in database
4 changed files with 29 additions and 53 deletions

View File

@ -202,6 +202,26 @@
"type": "github" "type": "github"
} }
}, },
"mcchunkie": {
"inputs": {
"nixpkgs": [
"unstable"
]
},
"locked": {
"lastModified": 1711641721,
"narHash": "sha256-/C5ibcEv9QodpxSTa6G2MMzWVKjoUX9tPJTEMBcsaV8=",
"owner": "qbit",
"repo": "mcchunkie",
"rev": "d41b55e44c41824d11f85bfeb0637aa061dbfbc0",
"type": "github"
},
"original": {
"owner": "qbit",
"repo": "mcchunkie",
"type": "github"
}
},
"microca": { "microca": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -364,6 +384,7 @@
"gostart": "gostart", "gostart": "gostart",
"gqrss": "gqrss", "gqrss": "gqrss",
"kogs": "kogs", "kogs": "kogs",
"mcchunkie": "mcchunkie",
"microca": "microca", "microca": "microca",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"peerix": "peerix", "peerix": "peerix",

View File

@ -47,6 +47,10 @@
nixos-hardware.url = "github:NixOS/nixos-hardware/master"; nixos-hardware.url = "github:NixOS/nixos-hardware/master";
mcchunkie = {
url = "github:qbit/mcchunkie";
inputs.nixpkgs.follows = "unstable";
};
microca = { microca = {
url = "github:qbit/microca"; url = "github:qbit/microca";
inputs.nixpkgs.follows = "unstable"; inputs.nixpkgs.follows = "unstable";
@ -111,6 +115,7 @@
{ self { self
, darwin , darwin
, gostart , gostart
, mcchunkie
, kogs , kogs
, peerix , peerix
, po , po
@ -159,6 +164,7 @@
overlays = [ overlays = [
inputs.emacs-overlay.overlay inputs.emacs-overlay.overlay
inputs.gostart.overlay inputs.gostart.overlay
inputs.mcchunkie.overlay
inputs.kogs.overlay inputs.kogs.overlay
inputs.microca.overlay inputs.microca.overlay
inputs.peerix.overlay inputs.peerix.overlay
@ -253,6 +259,7 @@
h = buildSys "x86_64-linux" stable [ h = buildSys "x86_64-linux" stable [
./configs/hardened.nix ./configs/hardened.nix
gostart.nixosModule gostart.nixosModule
mcchunkie.nixosModule
kogs.nixosModule kogs.nixosModule
pots.nixosModule pots.nixosModule
pr-status.nixosModule pr-status.nixosModule
@ -329,7 +336,6 @@
flake-warn = flake-warn =
spkgs.callPackage ./pkgs/flake-warn.nix { inherit spkgs; }; spkgs.callPackage ./pkgs/flake-warn.nix { inherit spkgs; };
#kurinto = spkgs.callPackage ./pkgs/kurinto.nix {}; #kurinto = spkgs.callPackage ./pkgs/kurinto.nix {};
mcchunkie = spkgs.callPackage ./pkgs/mcchunkie.nix { inherit spkgs; };
yaegi = spkgs.callPackage ./pkgs/yaegi.nix { inherit spkgs; }; yaegi = spkgs.callPackage ./pkgs/yaegi.nix { inherit spkgs; };
gen-patches = gen-patches =
spkgs.callPackage ./bins/gen-patches.nix { inherit spkgs; }; spkgs.callPackage ./bins/gen-patches.nix { inherit spkgs; };

View File

@ -7,7 +7,6 @@
with pkgs; let with pkgs; let
gqrss = callPackage ../../pkgs/gqrss.nix { inherit isUnstable; }; gqrss = callPackage ../../pkgs/gqrss.nix { inherit isUnstable; };
icbirc = callPackage ../../pkgs/icbirc.nix { inherit isUnstable; }; icbirc = callPackage ../../pkgs/icbirc.nix { inherit isUnstable; };
mcchunkie = callPackage ../../pkgs/mcchunkie.nix { inherit isUnstable; };
slidingSyncPkg = callPackage ../../pkgs/sliding-sync.nix { }; slidingSyncPkg = callPackage ../../pkgs/sliding-sync.nix { };
weepushover = weepushover =
python3Packages.callPackage ../../pkgs/weepushover.nix { inherit pkgs; }; python3Packages.callPackage ../../pkgs/weepushover.nix { inherit pkgs; };
@ -239,7 +238,6 @@ in
# matrix things # matrix things
matrix-synapse-tools.synadm matrix-synapse-tools.synadm
matrix-synapse-tools.rust-synapse-compress-state matrix-synapse-tools.rust-synapse-compress-state
mcchunkie
zonemaster-cli zonemaster-cli
sqlite sqlite
@ -257,15 +255,8 @@ in
users = { users = {
root = userBase; root = userBase;
qbit = userBase; qbit = userBase;
mcchunkie = {
createHome = true;
isSystemUser = true;
home = "/var/lib/mcchunkie";
group = "mcchunkie";
}; };
}; };
groups.mcchunkie = { };
};
systemd = { systemd = {
services = { services = {
@ -290,17 +281,6 @@ in
ExecStart = "${icbIrcTunnel}/bin/icb-irc-tunnel"; ExecStart = "${icbIrcTunnel}/bin/icb-irc-tunnel";
}; };
}; };
mcchunkie = {
wantedBy = [ "multi-user.target" ];
serviceConfig = {
User = "mcchunkie";
Group = "mcchunkie";
Restart = "always";
WorkingDirectory = "/var/lib/mcchunkie";
ExecStart = "${mcchunkie}/bin/mcchunkie";
};
};
}; };
}; };
@ -329,6 +309,7 @@ in
}; };
services = { services = {
mcchunkie.enable = true;
wallabag = { wallabag = {
enable = false; enable = false;
secretPath = config.sops.secrets.wallabag_secret.path; secretPath = config.sops.secrets.wallabag_secret.path;

View File

@ -1,32 +0,0 @@
{ lib
, buildGoModule
, fetchFromGitHub
, ...
}:
with lib;
buildGoModule rec {
pname = "mcchunkie";
version = "1.0.14";
src = fetchFromGitHub {
owner = "qbit";
repo = pname;
rev = "v${version}";
hash = "sha256-biKmKulVV4ed0x/3KLESNDXBkihk7OlPcQPeAZmVNPU=";
};
vendorHash = "sha256-OGSJeyGxXdKCD7nNRsJcKEKqBQOBKEc6RdtJfoIgR+0=";
ldflags = [ "-X suah.dev/mcchunkie/plugins.version=${version}" ];
proxyVendor = true;
doCheck = false;
meta = {
description = "Matrix Bot";
homepage = "https://github.com/qbit/mcchunkie";
license = licenses.mit;
maintainers = with maintainers; [ qbit ];
};
}