diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-04-04 13:12:12 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-04-04 13:12:12 +0200 |
commit | 8c4e702a269317609fb1f6609045e7e99e611f65 (patch) | |
tree | 1ae0b49611a05a24d7a5be7b707eee565a5c38b7 /modules/home.legacy/conf/xdg/default.nix | |
parent | refactor(modules/timewarrior): Migrate to by-name (diff) | |
download | nixos-config-8c4e702a269317609fb1f6609045e7e99e611f65.zip |
refactor(treewide): neorg -> tskm
Diffstat (limited to '')
-rw-r--r-- | modules/home.legacy/conf/xdg/default.nix | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/modules/home.legacy/conf/xdg/default.nix b/modules/home.legacy/conf/xdg/default.nix index 4099720d..9751d806 100644 --- a/modules/home.legacy/conf/xdg/default.nix +++ b/modules/home.legacy/conf/xdg/default.nix @@ -1,22 +1,18 @@ { - sysLib, pkgs, - config, + lib, ... }: let - url_handler = sysLib.writeShellScript { - name = "url_handler"; - src = ./url_handler.sh; - keepPath = true; - # Naming dependencies for this will be difficult, as it depend on overridden packages. - dependencies = with pkgs; [ - rofi - libnotify - zathura + url_handler = pkgs.writeShellApplication { + name = "url-handler"; + text = builtins.readFile ./url_handler.sh; + inheritPath = false; + runtimeInputs = [ + pkgs.rofi + pkgs.libnotify + pkgs.zathura + pkgs.tskm ]; - replacementStrings = { - ALL_PROJECTS_PIPE = "${config.soispha.taskwarrior.projects.projects_pipe}"; - }; }; in { imports = [ @@ -39,10 +35,10 @@ in { }; }; desktopEntries = { - url_handler = { - name = "url_handler"; + url-handler = { + name = "url-handler"; genericName = "Web Browser"; - exec = "${url_handler}/bin/url_handler %u"; + exec = "${lib.getExe url_handler} %u"; terminal = false; categories = [ "Application" |