24 lines
521 B
Nix
24 lines
521 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
# Obsidian as the desktop note-taking vault.
|
|
let
|
|
user = config.user.name;
|
|
in
|
|
{
|
|
options.modules.desktop.apps.obsidian.enable =
|
|
lib.mkEnableOption "Obsidian as the desktop note-taking vault";
|
|
|
|
config = lib.mkIf config.modules.desktop.apps.obsidian.enable {
|
|
home-manager.users.${user}.home.packages = [ pkgs.obsidian ];
|
|
|
|
registry.window-icon.${config.networking.hostName}.obsidian = {
|
|
class = "obsidian";
|
|
icon = builtins.fromJSON ''"\uf02d"'';
|
|
};
|
|
};
|
|
}
|