Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 1 | { pkgs |
| 2 | , username |
| 3 | , gtimelog |
| 4 | , lib |
| 5 | , ... |
Skyler Grey | 2a7ca38 | 2022-09-01 23:15:31 +0100 | [diff] [blame] | 6 | }: { |
| 7 | home.home = { |
| 8 | packages = [ |
| 9 | (pkgs.gtimelog.overrideAttrs (oldAttrs: { |
| 10 | src = gtimelog; |
| 11 | makeWrapperArgs = [ |
Skyler Grey | 2a7ca38 | 2022-09-01 23:15:31 +0100 | [diff] [blame] | 12 | "--set GIO_MODULE_DIR ${lib.makeSearchPathOutput "out" |
| 13 | "lib/gio/modules" (with pkgs; [ |
| 14 | glib-networking |
| 15 | ])}" |
| 16 | ]; |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 17 | nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ pkgs.gobject-introspection ]; |
| 18 | buildInputs = oldAttrs.buildInputs ++ [ pkgs.glib-networking ]; |
Skyler Grey | 2a7ca38 | 2022-09-01 23:15:31 +0100 | [diff] [blame] | 19 | })) |
| 20 | ]; |
| 21 | file.".gtimelog/gtimelogrc".source = ./gtimelog/gtimelogrc.toml; |
| 22 | }; |
| 23 | |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 24 | config.environment.persistence."/nix/persist".users.${username}.directories = [ ".gtimelog" ]; |
Skyler Grey | 2a7ca38 | 2022-09-01 23:15:31 +0100 | [diff] [blame] | 25 | } |