- obsidian - vesktop had to manually recreate the shortcuts with --disable-gpu nvidia fuck you
28 lines
759 B
Nix
28 lines
759 B
Nix
{ pkgs, lib, config, ... }:
|
|
let
|
|
cfg = config.nixfiles.packageSets.productivity;
|
|
inherit (lib) optionals;
|
|
in
|
|
{
|
|
config = lib.mkIf cfg.enable {
|
|
home.packages = with pkgs; optionals config.nixfiles.meta.graphical [
|
|
libreoffice-fresh
|
|
obsidian
|
|
] ++ [
|
|
pandoc
|
|
];
|
|
|
|
xdg.desktopEntries.obsidian = lib.mkIf config.nixfiles.meta.graphical {
|
|
categories = [ "Office" ];
|
|
comment = "Knowledge base";
|
|
exec = "env NIXOS_OZONE_WL=1 obsidian --disable-gpu %u";
|
|
icon = "obsidian";
|
|
mimeType = [ "x-scheme-handler/obsidian" ];
|
|
name = "Obsidian";
|
|
type = "Application";
|
|
};
|
|
};
|
|
|
|
options.nixfiles.packageSets.productivity.enable = lib.mkEnableOption "the productivity package set";
|
|
}
|