nix: remove now-unused yarr module and package
This commit is contained in:
parent
9f9d3a98ab
commit
c2169671da
|
@ -94,5 +94,4 @@ in
|
|||
rucksack = callPackage ./packages/rucksack {};
|
||||
toml-cli = callPackage ./packages/toml-cli {};
|
||||
when = callPackage ./packages/when {};
|
||||
yarr-dev = callPackage ./packages/yarr-dev {};
|
||||
}
|
||||
|
|
|
@ -1,73 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.services.yarr;
|
||||
in {
|
||||
options.services.yarr = {
|
||||
enable = mkEnableOption {
|
||||
description = mdDoc "Enable yarr: yet another rss reader.";
|
||||
};
|
||||
|
||||
addr = mkOption {
|
||||
type = types.str;
|
||||
description = mdDoc "Network address to bind the yarr service to.";
|
||||
};
|
||||
|
||||
auth-file = mkOption {
|
||||
type = types.str;
|
||||
description = mdDoc "Path to a file containing username:password.";
|
||||
};
|
||||
|
||||
db = mkOption {
|
||||
type = types.str;
|
||||
description = mdDoc "Path to the SQLite database where yarr keeps its state.";
|
||||
};
|
||||
|
||||
user = mkOption {
|
||||
type = types.str;
|
||||
default = "yarr";
|
||||
description = mdDoc "User account under which yarr runs.";
|
||||
};
|
||||
|
||||
group = mkOption {
|
||||
type = types.str;
|
||||
default = "yarr";
|
||||
description = mdDoc "Group account under which yarr runs.";
|
||||
};
|
||||
|
||||
package = mkPackageOptionMD pkgs "yarr" {};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
systemd.services.yarr = {
|
||||
wantedBy = ["default.target"];
|
||||
after = ["fs.service" "networking.target"];
|
||||
wants = ["fs.service" "networking.target"];
|
||||
|
||||
serviceConfig = {
|
||||
User = cfg.user;
|
||||
Group = cfg.group;
|
||||
Restart = "on-failure";
|
||||
RestartSec = "30s";
|
||||
Type = "oneshot";
|
||||
};
|
||||
script = "exec env ${getExe cfg.package} " + (builtins.concatStringsSep " " (builtins.map (opt: optionalString (cfg.${opt} != null) "-${opt} ${cfg.${opt}}") ["addr" "auth-file" "db"]));
|
||||
};
|
||||
|
||||
users.users = mkIf (cfg.user == "yarr") {
|
||||
yarr = {
|
||||
inherit (cfg) group;
|
||||
createHome = false;
|
||||
description = "yarr daemon user";
|
||||
isNormalUser = true;
|
||||
};
|
||||
};
|
||||
|
||||
users.groups =
|
||||
mkIf (cfg.group == "yarr") {yarr = {gid = null;};};
|
||||
};
|
||||
}
|
|
@ -28,7 +28,6 @@ NixOS packages for personal use.
|
|||
- [toml-cli] : Simple CLI for editing and querying TOML files
|
||||
- [twt] : Multipurpose tool to extract metadata from a user's tweets
|
||||
- [when] : A CLI tool to deal with timezones
|
||||
- [yarr] : yet another rss reader
|
||||
|
||||
[adb-sync]: https://msfjarvis.dev/g/adb-sync
|
||||
[adbtuifm]: https://github.com/darkhz/adbtuifm
|
||||
|
@ -59,4 +58,3 @@ NixOS packages for personal use.
|
|||
[toml-cli]: https://github.com/gnprice/toml-cli
|
||||
[twt]: https://msfjarvis.dev/g/twt
|
||||
[when]: https://github.com/mitsuhiko/when
|
||||
[yarr]: https://github.com/nkanaev/yarr
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
buildGoModule rec {
|
||||
pname = "yarr-dev";
|
||||
version = "unstable-2024-04-21";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nkanaev";
|
||||
repo = "yarr";
|
||||
rev = "4983e18e23b34126e778c2e56e684f9f8d801f2b";
|
||||
hash = "sha256-98rtTvDV/gmlbdBw94pVekqdMNILnCwcKwblFSWDbC8=";
|
||||
};
|
||||
|
||||
vendorHash = null;
|
||||
|
||||
ldflags = ["-s" "-w"];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Yet another rss reader";
|
||||
homepage = "https://github.com/nkanaev/yarr";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [msfjarvis];
|
||||
mainProgram = "yarr";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue