Clean up home directory
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -7,6 +7,8 @@ let
|
|||||||
hmConfig = config.home-manager.users.${username};
|
hmConfig = config.home-manager.users.${username};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
environment.sessionVariables.ZDOTDIR = "$HOME/.config/zsh";
|
||||||
|
|
||||||
home-manager.users.${username} = {
|
home-manager.users.${username} = {
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -21,8 +23,9 @@ in
|
|||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.persistence."/persist${userConfig.home}".directories = [
|
home = {
|
||||||
"${hmConfig.xdg.relativeDataHome}/zsh"
|
file.".zshenv".enable = false;
|
||||||
];
|
persistence."/persist${userConfig.home}".directories = [ "${hmConfig.xdg.relativeDataHome}/zsh" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -36,7 +36,20 @@ in
|
|||||||
gtk4.extraCss = "@import './theme.css';";
|
gtk4.extraCss = "@import './theme.css';";
|
||||||
};
|
};
|
||||||
|
|
||||||
home.pointerCursor.gtk.enable = true;
|
home = {
|
||||||
|
pointerCursor.gtk.enable = true;
|
||||||
|
|
||||||
|
file =
|
||||||
|
{
|
||||||
|
".icons/default/index.theme".enable = false;
|
||||||
|
}
|
||||||
|
// builtins.listToAttrs (
|
||||||
|
builtins.map (name: {
|
||||||
|
name = ".icons/${name}";
|
||||||
|
value.enable = false;
|
||||||
|
}) (hmConfig.theme.icon.names ++ hmConfig.theme.cursor.names)
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
programs.matugen.settings.templates = {
|
programs.matugen.settings.templates = {
|
||||||
gtk3 = {
|
gtk3 = {
|
||||||
|
@@ -359,9 +359,7 @@ in
|
|||||||
let
|
let
|
||||||
mkApp = vault: {
|
mkApp = vault: {
|
||||||
name = "${vault.target}/.obsidian/app.json";
|
name = "${vault.target}/.obsidian/app.json";
|
||||||
value = {
|
value.source = (pkgs.formats.json { }).generate "app.json" vault.settings.app;
|
||||||
source = (pkgs.formats.json { }).generate "app.json" vault.settings.app;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
mkAppearance = vault: {
|
mkAppearance = vault: {
|
||||||
@@ -389,33 +387,27 @@ in
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
name = "${vault.target}/.obsidian/core-plugins.json";
|
name = "${vault.target}/.obsidian/core-plugins.json";
|
||||||
value = {
|
value.source = (pkgs.formats.json { }).generate "core-plugins.json" (
|
||||||
source = (pkgs.formats.json { }).generate "core-plugins.json" (
|
builtins.map toName vault.settings.corePlugins
|
||||||
builtins.map toName vault.settings.corePlugins
|
);
|
||||||
);
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "${vault.target}/.obsidian/core-plugins-migration.json";
|
name = "${vault.target}/.obsidian/core-plugins-migration.json";
|
||||||
value = {
|
value.source = (pkgs.formats.json { }).generate "core-plugins-migration.json" (
|
||||||
source = (pkgs.formats.json { }).generate "core-plugins-migration.json" (
|
builtins.listToAttrs (
|
||||||
builtins.listToAttrs (
|
builtins.map (name: {
|
||||||
builtins.map (name: {
|
inherit name;
|
||||||
inherit name;
|
value = builtins.any (
|
||||||
value = builtins.any (
|
plugin: name == (toName plugin) && isEnabled plugin
|
||||||
plugin: name == (toName plugin) && isEnabled plugin
|
) vault.settings.corePlugins;
|
||||||
) vault.settings.corePlugins;
|
}) corePlugins
|
||||||
}) corePlugins
|
)
|
||||||
)
|
);
|
||||||
);
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
++ builtins.map (plugin: {
|
++ builtins.map (plugin: {
|
||||||
name = "${vault.target}/.obsidian/${plugin.name}.json";
|
name = "${vault.target}/.obsidian/${plugin.name}.json";
|
||||||
value = {
|
value.source = (pkgs.formats.json { }).generate "${plugin.name}.json" plugin.options;
|
||||||
source = (pkgs.formats.json { }).generate "${plugin.name}.json" plugin.options;
|
|
||||||
};
|
|
||||||
}) (builtins.filter hasOptions vault.settings.corePlugins);
|
}) (builtins.filter hasOptions vault.settings.corePlugins);
|
||||||
|
|
||||||
mkCommunityPlugins =
|
mkCommunityPlugins =
|
||||||
@@ -423,11 +415,9 @@ in
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
name = "${vault.target}/.obsidian/community-plugins.json";
|
name = "${vault.target}/.obsidian/community-plugins.json";
|
||||||
value = {
|
value.source = (pkgs.formats.json { }).generate "community-plugins.json" (
|
||||||
source = (pkgs.formats.json { }).generate "community-plugins.json" (
|
builtins.map getManifest (builtins.filter isEnabled vault.settings.communityPlugins)
|
||||||
builtins.map getManifest (builtins.filter isEnabled vault.settings.communityPlugins)
|
);
|
||||||
);
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
++ builtins.map (plugin: {
|
++ builtins.map (plugin: {
|
||||||
@@ -439,9 +429,7 @@ in
|
|||||||
}) vault.settings.communityPlugins
|
}) vault.settings.communityPlugins
|
||||||
++ builtins.map (plugin: {
|
++ builtins.map (plugin: {
|
||||||
name = "${vault.target}/.obsidian/plugins/${getManifest plugin}/data.json";
|
name = "${vault.target}/.obsidian/plugins/${getManifest plugin}/data.json";
|
||||||
value = {
|
value.source = (pkgs.formats.json { }).generate "data.json" plugin.options;
|
||||||
source = (pkgs.formats.json { }).generate "data.json" plugin.options;
|
|
||||||
};
|
|
||||||
}) (builtins.filter hasOptions vault.settings.communityPlugins);
|
}) (builtins.filter hasOptions vault.settings.communityPlugins);
|
||||||
|
|
||||||
mkCssSnippets =
|
mkCssSnippets =
|
||||||
@@ -459,16 +447,12 @@ in
|
|||||||
vault:
|
vault:
|
||||||
builtins.map (theme: {
|
builtins.map (theme: {
|
||||||
name = "${vault.target}/.obsidian/themes/${getManifest theme}";
|
name = "${vault.target}/.obsidian/themes/${getManifest theme}";
|
||||||
value = {
|
value.source = toPkg theme;
|
||||||
source = toPkg theme;
|
|
||||||
};
|
|
||||||
}) vault.settings.themes;
|
}) vault.settings.themes;
|
||||||
|
|
||||||
mkHotkeys = vault: {
|
mkHotkeys = vault: {
|
||||||
name = "${vault.target}/.obsidian/hotkeys.json";
|
name = "${vault.target}/.obsidian/hotkeys.json";
|
||||||
value = {
|
value.source = (pkgs.formats.json { }).generate "hotkeys.json" vault.settings.hotkeys;
|
||||||
source = (pkgs.formats.json { }).generate "hotkeys.json" vault.settings.hotkeys;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
mkExtraFiles =
|
mkExtraFiles =
|
||||||
|
Reference in New Issue
Block a user