-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add obsidian modules and mount for it
- Loading branch information
Showing
4 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,10 @@ in { | |
}; | ||
}; | ||
|
||
apps = { | ||
obsidian = enabled; | ||
}; | ||
|
||
cli-apps = { | ||
argocd = enabled; | ||
atuin = enabled; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
lib, | ||
config, | ||
... | ||
}: | ||
with lib; | ||
with lib.custom; let | ||
cfg = config.custom.apps.obsidian; | ||
in { | ||
options.custom.desktop.obsidian = { | ||
enable = mkEnableOption "Enable Obsidian note-taking app"; | ||
}; | ||
|
||
config = mkIf cfg.enable { | ||
homebrew = { | ||
casks = ["obsidian"]; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
lib, | ||
config, | ||
pkgs, | ||
... | ||
}: let | ||
inherit (lib) mkEnableOption mkIf; | ||
|
||
cfg = config.custom.apps.obsidian; | ||
in { | ||
options.custom.apps.obsidian = { | ||
enable = mkEnableOption "Enable Obsidian note-taking app"; | ||
}; | ||
|
||
config = mkIf cfg.enable { | ||
home.packages = with pkgs; [ | ||
obsidian | ||
]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters