fix: use script instead of text for duti activation
This commit is contained in:
parent
bc8481dd7a
commit
3a9deba59e
1 changed files with 35 additions and 0 deletions
|
|
@ -0,0 +1,35 @@
|
|||
{ config, pkgs, ... }: {
|
||||
home.packages = [ pkgs.duti ];
|
||||
|
||||
xdg.configFile."duti/config".text = ''
|
||||
# browser
|
||||
com.google.chrome public.html
|
||||
com.google.chrome public.url
|
||||
com.google.chrome public.xhtml
|
||||
|
||||
# text editor
|
||||
com.vscodium public.plain-text
|
||||
com.vscodium public.text
|
||||
com.vscodium public.source-code
|
||||
|
||||
# markdown viewer
|
||||
com.godspeedapps.MarkEdit net.daringfireball.markdown
|
||||
com.godspeedapps.MarkEdit public.markdown
|
||||
|
||||
# terminal
|
||||
net.kovidgoyal.kitty public.shell-script
|
||||
|
||||
# pdf
|
||||
net.sourceforge.skim-app com.adobe.pdf
|
||||
|
||||
# mail
|
||||
com.apple.mail public.email-message
|
||||
'';
|
||||
|
||||
# Apply defaults after linking config
|
||||
home.activation.dutiApply = {
|
||||
script = ''
|
||||
${pkgs.duti}/bin/duti -d ${config.xdg.configHome}/duti/config
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue