mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat[client]: reduce file clobbering
This commit is contained in:
parent
101f4d3183
commit
9ce9a7ec6a
4 changed files with 106 additions and 88 deletions
|
|
@ -2,14 +2,19 @@
|
|||
let
|
||||
moduleName = "obsidian";
|
||||
inherit (nixosConfig.repo.secrets.common.obsidian) userIgnoreFilters;
|
||||
name = "Main";
|
||||
in
|
||||
{
|
||||
options.swarselmodules.${moduleName} = lib.mkEnableOption "enable ${moduleName} with settings";
|
||||
config = lib.mkIf config.swarselmodules.${moduleName} {
|
||||
|
||||
home.file = {
|
||||
"${config.programs.obsidian.vaults.${name}.target}/.obsidian/app.json".force = true;
|
||||
"${config.programs.obsidian.vaults.${name}.target}/.obsidian/appearance.json".force = true;
|
||||
"${config.programs.obsidian.vaults.${name}.target}/.obsidian/core-plugins.json".force = true;
|
||||
};
|
||||
|
||||
programs.obsidian =
|
||||
let
|
||||
name = "Main";
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
package = pkgs.obsidian;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue