feat(obsidian): initial obsidian config

This commit is contained in:
ooks-io 2024-02-27 20:02:29 +13:00
parent 8fcda1a7e9
commit a02ecc1f70
6 changed files with 48 additions and 2 deletions

View file

@ -9,7 +9,7 @@
#./wallpaper -- still needs to be implemented #./wallpaper -- still needs to be implemented
#./utility -- still needs to be implemented #./utility -- still needs to be implemented
./wayland # -- almost done, need to implement eww ./wayland # -- almost done, need to implement eww
#./productivity -- still needs to be implemented ./productivity
# ./gaming # ./gaming
]; ];
} }

View file

@ -0,0 +1,13 @@
{ lib, ... }:
{
imports = [
./obsidian
];
options.homeModules.desktop.productivity = {
obsidian = {
enable = lib.mkEnableOption "enable obsidian home module";
};
};
}

View file

@ -0,0 +1,11 @@
{ lib, config, pkgs, ... }:
let
cfg = config.homeModules.desktop.productivity.obsidian;
in
{
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [ obsidian ];
};
}

View file

@ -11,6 +11,7 @@ in
./base ./base
./hyprland ./hyprland
#./creative #./creative
./productivity
]; ];
options = { options = {
@ -29,6 +30,9 @@ in
gaming = { gaming = {
enable = lib.mkEnableOption "Enable the gaming profile"; enable = lib.mkEnableOption "Enable the gaming profile";
}; };
productivity = {
enable = lib.mkEnableOption "Enable the productivity profile";
};
}; };
}; };

View file

@ -0,0 +1,18 @@
{ config, lib, ... }:
let
cfg = config.profiles.productivity;
in
{
imports = [
../../modules
];
config = lib.mkIf cfg.enable {
homeModules.desktop = {
productivity = {
obsidian.enable = true;
};
};
};
}

View file

@ -5,7 +5,7 @@
../../../profile ../../../profile
]; ];
activeProfiles = ["base" "hyprland" ]; activeProfiles = ["base" "hyprland" "productivity"];
home.sessionVariables.HN = "ooksdesk"; home.sessionVariables.HN = "ooksdesk";