@@ -2,9 +2,14 @@
|
||||
user ? throw "user argument is required",
|
||||
home ? throw "home argument is required",
|
||||
}:
|
||||
{ inputs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home-manager.users.${user} = {
|
||||
imports = [ inputs.nur.modules.homeManager.default ];
|
||||
imports = lib.lists.optional (!config.home-manager.useGlobalPkgs) inputs.nur.modules.homeManager.default;
|
||||
};
|
||||
}
|
||||
|
@@ -39,7 +39,7 @@
|
||||
profiles.default = {
|
||||
settings."extensions.autoDisableScopes" = 0;
|
||||
|
||||
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||
extensions.packages = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||
languagetool
|
||||
bitwarden
|
||||
darkreader
|
||||
|
@@ -20,7 +20,7 @@ in
|
||||
programs.obsidian = {
|
||||
enable = true;
|
||||
|
||||
sharedSettings = {
|
||||
defaultSettings = {
|
||||
app = {
|
||||
defaultViewMode = "preview";
|
||||
livePreview = false;
|
||||
|
@@ -46,7 +46,7 @@ in
|
||||
enable = mkEnableOption "obsidian";
|
||||
package = mkPackageOption pkgs "obsidian" { };
|
||||
|
||||
sharedSettings = {
|
||||
defaultSettings = {
|
||||
app = mkOption {
|
||||
description = "Settings to write to app.json.";
|
||||
type = raw;
|
||||
@@ -138,13 +138,13 @@ in
|
||||
app = mkOption {
|
||||
description = "Settings to write to app.json.";
|
||||
type = attrsOf anything;
|
||||
default = cfg.sharedSettings.app;
|
||||
default = cfg.defaultSettings.app;
|
||||
};
|
||||
|
||||
appearance = mkOption {
|
||||
description = "Settings to write to appearance.json.";
|
||||
type = attrsOf anything;
|
||||
default = cfg.sharedSettings.appearance;
|
||||
default = cfg.defaultSettings.appearance;
|
||||
};
|
||||
|
||||
corePlugins =
|
||||
@@ -175,7 +175,7 @@ in
|
||||
mkOption {
|
||||
description = "Core plugins to activate.";
|
||||
type = listOf (coercedTo (enum corePlugins) (p: { name = p; }) (submodule corePluginsOptions));
|
||||
default = cfg.sharedSettings.corePlugins;
|
||||
default = cfg.defaultSettings.corePlugins;
|
||||
};
|
||||
|
||||
communityPlugins =
|
||||
@@ -206,7 +206,7 @@ in
|
||||
mkOption {
|
||||
description = "Community plugins to install and activate.";
|
||||
type = listOf (coercedTo package (p: { pkg = p; }) (submodule communityPluginsOptions));
|
||||
default = cfg.sharedSettings.communityPlugins;
|
||||
default = cfg.defaultSettings.communityPlugins;
|
||||
};
|
||||
|
||||
cssSnippets =
|
||||
@@ -250,12 +250,11 @@ in
|
||||
type = listOf (
|
||||
coercedTo (addCheck path checkCssPath) (p: { source = p; }) (submodule cssSnippetsOptions)
|
||||
);
|
||||
default = cfg.sharedSettings.cssSnippets;
|
||||
default = cfg.defaultSettings.cssSnippets;
|
||||
};
|
||||
|
||||
themes =
|
||||
let
|
||||
|
||||
themesOptions =
|
||||
{ config, ... }:
|
||||
{
|
||||
@@ -276,7 +275,7 @@ in
|
||||
mkOption {
|
||||
description = "Themes to install.";
|
||||
type = listOf (coercedTo package (p: { pkg = p; }) (submodule themesOptions));
|
||||
default = cfg.sharedSettings.themes;
|
||||
default = cfg.defaultSettings.themes;
|
||||
};
|
||||
|
||||
hotkeys =
|
||||
@@ -301,7 +300,7 @@ in
|
||||
mkOption {
|
||||
description = "Hotkeys to configure.";
|
||||
type = attrsOf (listOf (submodule hotkeysOptions));
|
||||
default = cfg.sharedSettings.hotkeys;
|
||||
default = cfg.defaultSettings.hotkeys;
|
||||
};
|
||||
|
||||
extraFiles =
|
||||
@@ -335,7 +334,7 @@ in
|
||||
mkOption {
|
||||
description = "Extra files to link to the vault directory.";
|
||||
type = attrsOf (submodule extraFilesOptions);
|
||||
default = cfg.sharedSettings.extraFiles;
|
||||
default = cfg.defaultSettings.extraFiles;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user