feat: add markedit and duti for default apps management
This commit is contained in:
parent
b3c3a865e1
commit
3ca861bd33
3 changed files with 35 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
|||
./cli.nix
|
||||
./git.nix
|
||||
./zsh.nix
|
||||
./duti.nix
|
||||
];
|
||||
|
||||
home.stateVersion = "24.11";
|
||||
|
|
|
|||
33
home/duti.nix
Normal file
33
home/duti.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ 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 default apps on activation
|
||||
system.activationScripts.defaultApps.text = ''
|
||||
${pkgs.duti}/bin/duti -d ${config.xdg.configHome}/duti/config || true
|
||||
'';
|
||||
}
|
||||
|
|
@ -29,5 +29,6 @@
|
|||
"caffeine"
|
||||
"lunacy"
|
||||
"skim"
|
||||
"markedit"
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue