blob: d707005071f11d01e0f074d7c3c221322bc168d9 [file] [log] [blame]
Skyler Grey2a7ca382022-09-01 23:15:31 +01001{
2 pkgs,
3 username,
4 gtimelog,
5 lib,
6 ...
7}: {
8 home.home = {
9 packages = [
10 (pkgs.gtimelog.overrideAttrs (oldAttrs: {
11 src = gtimelog;
12 makeWrapperArgs = [
Skyler Grey2a7ca382022-09-01 23:15:31 +010013 "--set GIO_MODULE_DIR ${lib.makeSearchPathOutput "out"
14 "lib/gio/modules" (with pkgs; [
15 glib-networking
16 ])}"
17 ];
Skyler Greye1d081f2022-09-07 02:00:25 +010018 nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [pkgs.gobject-introspection];
Skyler Grey2a7ca382022-09-01 23:15:31 +010019 buildInputs = oldAttrs.buildInputs ++ [pkgs.glib-networking];
20 }))
21 ];
22 file.".gtimelog/gtimelogrc".source = ./gtimelog/gtimelogrc.toml;
23 };
24
25 config.environment.persistence."/nix/persist".users.${username}.directories = [".gtimelog"];
26}