Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 1 | { pkgs |
Skyler Grey | 84ee8cb | 2023-04-15 17:34:45 +0000 | [diff] [blame] | 2 | , home |
| 3 | , config |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 4 | , username |
| 5 | , gtimelog |
| 6 | , lib |
| 7 | , ... |
Skyler Grey | 2a7ca38 | 2022-09-01 23:15:31 +0100 | [diff] [blame] | 8 | }: { |
| 9 | home.home = { |
| 10 | packages = [ |
| 11 | (pkgs.gtimelog.overrideAttrs (oldAttrs: { |
| 12 | src = gtimelog; |
| 13 | makeWrapperArgs = [ |
Skyler Grey | 2a7ca38 | 2022-09-01 23:15:31 +0100 | [diff] [blame] | 14 | "--set GIO_MODULE_DIR ${lib.makeSearchPathOutput "out" |
| 15 | "lib/gio/modules" (with pkgs; [ |
| 16 | glib-networking |
| 17 | ])}" |
| 18 | ]; |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 19 | nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ pkgs.gobject-introspection ]; |
| 20 | buildInputs = oldAttrs.buildInputs ++ [ pkgs.glib-networking ]; |
Skyler Grey | 2a7ca38 | 2022-09-01 23:15:31 +0100 | [diff] [blame] | 21 | })) |
| 22 | ]; |
Skyler Grey | 2a7ca38 | 2022-09-01 23:15:31 +0100 | [diff] [blame] | 23 | }; |
| 24 | |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 25 | config.environment.persistence."/nix/persist".users.${username}.directories = [ ".gtimelog" ]; |
Skyler Grey | 84ee8cb | 2023-04-15 17:34:45 +0000 | [diff] [blame] | 26 | config.sops.secrets."gtimelogrc.toml" = { |
| 27 | owner = config.users.users.${username}.name; |
| 28 | group = config.users.users.${username}.group; |
| 29 | format = "binary"; |
| 30 | sopsFile = ../secrets/gtimelogrc.toml; |
| 31 | path = "${home.home.homeDirectory}/.gtimelog/gtimelogrc"; |
| 32 | }; |
Skyler Grey | 2a7ca38 | 2022-09-01 23:15:31 +0100 | [diff] [blame] | 33 | } |