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,4 +1,10 @@
{ pkgs, ... }:
{ pkgs, inputs, ... }:
let
keepbook = inputs.keepbook.packages.${pkgs.stdenv.hostPlatform.system}.keepbook.overrideAttrs (_: {
# Upstream checks currently depend on TS artifacts that are not built in Nix.
doCheck = false;
});
in
{
nixpkgs.config.allowBroken = true;
@@ -36,6 +42,7 @@
ispell
jq
just
keepbook
lshw
lsof
magic-wormhole-rs

6
nixos/flake.lock generated
View File

@@ -1318,11 +1318,11 @@
]
},
"locked": {
"lastModified": 1771447274,
"narHash": "sha256-W5TTADv4NGn0tpap2nkOTZAxVUGiJI7m2UiKQvfW+WY=",
"lastModified": 1771570718,
"narHash": "sha256-vmFe1a9gIOLcT8UdE/b+Z9Cb0KQzGQonwtrxcZX9hx8=",
"owner": "colonelpanic8",
"repo": "keepbook",
"rev": "d0feb8deed6a439fb0f673ce1b9026afb2240b70",
"rev": "c0154c4e701dc3726cc709b15ec01cad1175d4f8",
"type": "github"
},
"original": {

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 = {