nixos: bump keepbook and expose keepbook binaries

This commit is contained in:
2026-02-19 23:08:23 -08:00
committed by Kat Huang
parent dc41b71e46
commit 5e6f66e132
3 changed files with 22 additions and 13 deletions

View File

@@ -1,13 +1,13 @@
{ config, lib, pkgs, inputs, makeEnable, ... }:
let
cfg = config.myModules."keepbook-sync";
keepbookTray =
inputs.keepbook.packages.${pkgs.stdenv.hostPlatform.system}.keepbook-tray.overrideAttrs (old: {
# Upstream currently includes a contract test that expects a built TS CLI
# entrypoint under ts/dist/, but the Nix build does not build the TS
# artifacts first. Skip checks to keep the package usable on NixOS.
doCheck = false;
});
let
cfg = config.myModules."keepbook-sync";
keepbookTray =
inputs.keepbook.packages.${pkgs.stdenv.hostPlatform.system}.keepbook-tray.overrideAttrs (_: {
# Upstream currently includes a contract test that expects a built TS CLI
# entrypoint under ts/dist/, but the Nix build does not build the TS
# artifacts first. Skip checks to keep the package usable on NixOS.
doCheck = false;
});
daemonArgs = [
"--config" cfg.configPath
@@ -24,6 +24,8 @@
daemonExec = lib.escapeShellArgs ([ "${keepbookTray}/bin/keepbook-sync-daemon" ] ++ daemonArgs);
enabledModule = makeEnable config "myModules.keepbook-sync" false {
environment.systemPackages = [ keepbookTray ];
home-manager.users.${cfg.user} = {
systemd.user.services.keepbook-sync-daemon = {
Unit = {