adapt config for use with standalone home-manager
This commit is contained in:
19 files changed
+418
-287
No files matched your search
@@ -1,10 +1,8 @@
|
||||
{ inputs, self, ... }: {
|
||||
flake.nixosModules.global = { lib, config, ... }: {
|
||||
flake.homeModules.global = { pkgs, lib, config, ... }: {
|
||||
options.features.applications.cli.fastfetch.enable = lib.mkEnableOption "fastfetch";
|
||||
};
|
||||
|
||||
flake.homeModules.global = { pkgs, lib, osConfig, ... }: {
|
||||
config = lib.mkIf (osConfig.features.applications.cli.fastfetch.enable) ({
|
||||
config = lib.mkIf (config.features.applications.cli.fastfetch.enable) ({
|
||||
programs.zsh.initContent = lib.mkOrder 1500 "fastfetch";
|
||||
programs.fastfetch.enable = true;
|
||||
});
|
||||
|
||||
@@ -1,26 +1,24 @@
|
||||
{ inputs, self, ... }: {
|
||||
flake.nixosModules.graphics = { pkgs, lib, config, ... }: {
|
||||
flake.homeModules.graphics = { pkgs, lib, config, ... }: {
|
||||
options.features.applications.gui.equibop.enable = lib.mkEnableOption "equibop";
|
||||
};
|
||||
|
||||
flake.homeModules.graphics = { pkgs, lib, osConfig, ... }: {
|
||||
config = lib.mkIf (osConfig.features.applications.gui.equibop.enable) {
|
||||
config = lib.mkIf (config.features.applications.gui.equibop.enable) {
|
||||
programs.equibop.enable = true;
|
||||
|
||||
home.activation = {
|
||||
linkEquibopConfigSettings = lib.hm.dag.entryAfter ["writeBoundary"] (osConfig.helpers.mkSymlinkActivationScript {
|
||||
linkEquibopConfigSettings = lib.hm.dag.entryAfter ["writeBoundary"] (config.helpers.mkSymlinkActivationScript {
|
||||
target = ".config/equibop/settings.json";
|
||||
source = "dotfiles/${osConfig.info.hostName}/equibop/settings.json";
|
||||
source = "dotfiles/${config.info.hostName}/equibop/settings.json";
|
||||
});
|
||||
|
||||
linkEquibopConfigEquicordSettings = lib.hm.dag.entryAfter ["writeBoundary"] (osConfig.helpers.mkSymlinkActivationScript {
|
||||
linkEquibopConfigEquicordSettings = lib.hm.dag.entryAfter ["writeBoundary"] (config.helpers.mkSymlinkActivationScript {
|
||||
target = ".config/equibop/settings/settings.json";
|
||||
source = "dotfiles/${osConfig.info.hostName}/equibop/equicord-settings.json";
|
||||
source = "dotfiles/${config.info.hostName}/equibop/equicord-settings.json";
|
||||
});
|
||||
|
||||
linkEquibopConfigQuickCss = lib.hm.dag.entryAfter ["writeBoundary"] (osConfig.helpers.mkSymlinkActivationScript {
|
||||
linkEquibopConfigQuickCss = lib.hm.dag.entryAfter ["writeBoundary"] (config.helpers.mkSymlinkActivationScript {
|
||||
target = ".config/equibop/settings/quickCss.css";
|
||||
source = "dotfiles/${osConfig.info.hostName}/equibop/quickCss.css";
|
||||
source = "dotfiles/${config.info.hostName}/equibop/quickCss.css";
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,216 +1,213 @@
|
||||
{ inputs, self, ... }: {
|
||||
flake.nixosModules.graphics = { pkgs, config, lib, ... }: {
|
||||
flake.homeModules.graphics = { pkgs, lib, config, osConfig, ... }: {
|
||||
options.features.applications.gui.floorp.enable = lib.mkEnableOption "floorp";
|
||||
};
|
||||
|
||||
flake.homeModules.graphics = { pkgs, lib, osConfig, ... }: {
|
||||
config = lib.mkIf (osConfig.features.applications.gui.floorp.enable) (
|
||||
let
|
||||
firefox-addons = with pkgs; inputs.firefox-addons.packages.${system};
|
||||
in {
|
||||
stylix.targets.floorp.profileNames = lib.mkIf (osConfig.features.nixos.stylix.enable) [ "default" ];
|
||||
|
||||
programs.floorp = {
|
||||
enable = true;
|
||||
nativeMessagingHosts = [
|
||||
pkgs.firefoxpwa
|
||||
];
|
||||
policies = {
|
||||
AIControls.Default = {
|
||||
Value = "blocked";
|
||||
Locked = true;
|
||||
};
|
||||
AutofillAddressEnabled = false;
|
||||
AutofillCreditCardEnabled = false;
|
||||
DisableAppUpdate = true;
|
||||
DisableFeedbackCommands = true;
|
||||
DisableFirefoxStudies = true;
|
||||
DisablePocket = true;
|
||||
DisableTelemetry = true;
|
||||
NoDefaultBookmarks = true;
|
||||
EnableTrackingProtection = {
|
||||
Value = true;
|
||||
Locked = true;
|
||||
Cryptomining = true;
|
||||
Fingerprinting = true;
|
||||
};
|
||||
config = lib.mkIf (config.features.applications.gui.floorp.enable) (
|
||||
let
|
||||
firefox-addons = with pkgs; inputs.firefox-addons.packages.${system};
|
||||
in {
|
||||
programs.floorp = {
|
||||
enable = true;
|
||||
nativeMessagingHosts = [
|
||||
pkgs.firefoxpwa
|
||||
];
|
||||
policies = {
|
||||
AIControls.Default = {
|
||||
Value = "blocked";
|
||||
Locked = true;
|
||||
};
|
||||
profiles.default = {
|
||||
extensions = {
|
||||
packages = with firefox-addons; [
|
||||
adnauseam
|
||||
bitwarden
|
||||
indie-wiki-buddy
|
||||
pwas-for-firefox
|
||||
gnome-shell-integration
|
||||
];
|
||||
|
||||
settings = {
|
||||
${firefox-addons.adnauseam.addonId} = {
|
||||
force = true;
|
||||
settings = {
|
||||
"firstInstall" = false;
|
||||
"hidingAds" = true;
|
||||
"clickingAds" = true;
|
||||
"blockingMalware" = true;
|
||||
"disableClickingForDNT" = true;
|
||||
"clickProbability" = 0.75;
|
||||
selectedFilterLists = [
|
||||
"user-filters"
|
||||
"adnauseam-filters"
|
||||
"eff-dnt-whitelist"
|
||||
"ublock-filters"
|
||||
"ublock-badware"
|
||||
"ublock-privacy"
|
||||
"ublock-quick-fixes"
|
||||
"ublock-unbreak"
|
||||
"easylist"
|
||||
"easyprivacy"
|
||||
"urlhaus-1"
|
||||
"fanboy-cookiemonster"
|
||||
"ublock-cookies-easylist"
|
||||
"adguard-cookies"
|
||||
"ublock-cookies-adguard"
|
||||
"fanboy-ai-suggestions"
|
||||
"easylist-chat"
|
||||
"easylist-newsletters"
|
||||
"easylist-notifications"
|
||||
"easylist-annoyances"
|
||||
"adguard-mobile-app-banners"
|
||||
"adguard-other-annoyances"
|
||||
"adguard-popup-overlays"
|
||||
"adguard-widgets"
|
||||
"ublock-annoyances"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
AutofillAddressEnabled = false;
|
||||
AutofillCreditCardEnabled = false;
|
||||
DisableAppUpdate = true;
|
||||
DisableFeedbackCommands = true;
|
||||
DisableFirefoxStudies = true;
|
||||
DisablePocket = true;
|
||||
DisableTelemetry = true;
|
||||
NoDefaultBookmarks = true;
|
||||
EnableTrackingProtection = {
|
||||
Value = true;
|
||||
Locked = true;
|
||||
Cryptomining = true;
|
||||
Fingerprinting = true;
|
||||
};
|
||||
};
|
||||
profiles.default = {
|
||||
extensions = {
|
||||
packages = with firefox-addons; [
|
||||
adnauseam
|
||||
bitwarden
|
||||
indie-wiki-buddy
|
||||
pwas-for-firefox
|
||||
gnome-shell-integration
|
||||
];
|
||||
|
||||
settings = {
|
||||
"signon.rememberSignons" = false;
|
||||
"signon.autofillForms" = false;
|
||||
"floorp.panelSidebar.enabled" = false;
|
||||
"floorp.workspaces.enabled" = false;
|
||||
"browser.toolbars.bookmarks.visibility" = "newtab";
|
||||
"floorp.browser.welcome.page.shown" = true;
|
||||
"browser.newtabpage.activity-stream.feeds.topsites" = false;
|
||||
"browser.newtabpage.activity-stream.feeds.section.topstories" = false;
|
||||
"browser.newtabpage.activity-stream.feeds.adsfeed" = false;
|
||||
"browser.newtabpage.activity-stream.feeds.telemetry" = false;
|
||||
"browser.newtabpage.activity-stream.feeds.weatherfeed" = false;
|
||||
"browser.newtabpage.activity-stream.newtabWallpapers.user.enabled" = true;
|
||||
"browser.newtabpage.activity-stream.widgets.enabled" = false;
|
||||
"browser.newtabpage.activity-stream.discoverystream.enabled" = false;
|
||||
"browser.newtabpage.activity-stream.newtabWallpapers.wallpaper" = "suspension-bridge";
|
||||
"floorp.design.configs" = {
|
||||
globalConfigs = {
|
||||
userInterface = "proton";
|
||||
uiCustomization = {
|
||||
qrCode.disableButton = true;
|
||||
disableFloorpStart = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
"ui.key.menuAccessKeyFocuses" = false;
|
||||
"floorp.keyboardshortcut.enabled" = true;
|
||||
"floorp.keyboardshortcut.config" = {
|
||||
enabled = true;
|
||||
shortcuts = {
|
||||
gecko-close-tab = {
|
||||
modifiers = {
|
||||
alt = true;
|
||||
ctrl = false;
|
||||
meta = false;
|
||||
shift = false;
|
||||
};
|
||||
key = "Q";
|
||||
action = "gecko-close-tab";
|
||||
};
|
||||
gecko-open-new-tab = {
|
||||
modifiers = {
|
||||
alt = true;
|
||||
ctrl = false;
|
||||
meta = false;
|
||||
shift = false;
|
||||
};
|
||||
key = "Enter";
|
||||
action = "gecko-open-new-tab";
|
||||
};
|
||||
${firefox-addons.adnauseam.addonId} = {
|
||||
force = true;
|
||||
settings = {
|
||||
"firstInstall" = false;
|
||||
"hidingAds" = true;
|
||||
"clickingAds" = true;
|
||||
"blockingMalware" = true;
|
||||
"disableClickingForDNT" = true;
|
||||
"clickProbability" = 0.75;
|
||||
selectedFilterLists = [
|
||||
"user-filters"
|
||||
"adnauseam-filters"
|
||||
"eff-dnt-whitelist"
|
||||
"ublock-filters"
|
||||
"ublock-badware"
|
||||
"ublock-privacy"
|
||||
"ublock-quick-fixes"
|
||||
"ublock-unbreak"
|
||||
"easylist"
|
||||
"easyprivacy"
|
||||
"urlhaus-1"
|
||||
"fanboy-cookiemonster"
|
||||
"ublock-cookies-easylist"
|
||||
"adguard-cookies"
|
||||
"ublock-cookies-adguard"
|
||||
"fanboy-ai-suggestions"
|
||||
"easylist-chat"
|
||||
"easylist-newsletters"
|
||||
"easylist-notifications"
|
||||
"easylist-annoyances"
|
||||
"adguard-mobile-app-banners"
|
||||
"adguard-other-annoyances"
|
||||
"adguard-popup-overlays"
|
||||
"adguard-widgets"
|
||||
"ublock-annoyances"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
search = {
|
||||
force = true;
|
||||
default = "ddg-noai";
|
||||
engines = {
|
||||
ddg-noai = {
|
||||
name = "DuckDuckGo No-AI";
|
||||
urls = [
|
||||
{
|
||||
template = "https://noai.duckduckgo.com/?q={searchTerms}";
|
||||
}
|
||||
];
|
||||
icon = "https://duckduckgo.com/favicon.ico";
|
||||
definedAliases = ["@noai"];
|
||||
|
||||
settings = {
|
||||
"signon.rememberSignons" = false;
|
||||
"signon.autofillForms" = false;
|
||||
"floorp.panelSidebar.enabled" = false;
|
||||
"floorp.workspaces.enabled" = false;
|
||||
"browser.toolbars.bookmarks.visibility" = "newtab";
|
||||
"floorp.browser.welcome.page.shown" = true;
|
||||
"browser.newtabpage.activity-stream.feeds.topsites" = false;
|
||||
"browser.newtabpage.activity-stream.feeds.section.topstories" = false;
|
||||
"browser.newtabpage.activity-stream.feeds.adsfeed" = false;
|
||||
"browser.newtabpage.activity-stream.feeds.telemetry" = false;
|
||||
"browser.newtabpage.activity-stream.feeds.weatherfeed" = false;
|
||||
"browser.newtabpage.activity-stream.newtabWallpapers.user.enabled" = true;
|
||||
"browser.newtabpage.activity-stream.widgets.enabled" = false;
|
||||
"browser.newtabpage.activity-stream.discoverystream.enabled" = false;
|
||||
"browser.newtabpage.activity-stream.newtabWallpapers.wallpaper" = "suspension-bridge";
|
||||
"floorp.design.configs" = {
|
||||
globalConfigs = {
|
||||
userInterface = "proton";
|
||||
uiCustomization = {
|
||||
qrCode.disableButton = true;
|
||||
disableFloorpStart = true;
|
||||
};
|
||||
nixpkgs = {
|
||||
name = "nixpkgs packages";
|
||||
urls = [
|
||||
{
|
||||
template = "https://search.nixos.org/packages?query={searchTerms}";
|
||||
}
|
||||
];
|
||||
icon = "https://wiki.nixos.org/favicon.ico";
|
||||
definedAliases = ["@np"];
|
||||
};
|
||||
};
|
||||
"ui.key.menuAccessKeyFocuses" = false;
|
||||
"floorp.keyboardshortcut.enabled" = true;
|
||||
"floorp.keyboardshortcut.config" = {
|
||||
enabled = true;
|
||||
shortcuts = {
|
||||
gecko-close-tab = {
|
||||
modifiers = {
|
||||
alt = true;
|
||||
ctrl = false;
|
||||
meta = false;
|
||||
shift = false;
|
||||
};
|
||||
key = "Q";
|
||||
action = "gecko-close-tab";
|
||||
};
|
||||
nixos-options = {
|
||||
name = "NixOS options";
|
||||
urls = [
|
||||
{
|
||||
template = "https://search.nixos.org/options?query={searchTerms}";
|
||||
}
|
||||
];
|
||||
icon = "https://wiki.nixos.org/favicon.ico";
|
||||
definedAliases = ["@no"];
|
||||
};
|
||||
nixos-wiki = {
|
||||
name = "NixOS Wiki";
|
||||
urls = [
|
||||
{
|
||||
template = "https://wiki.nixos.org/w/index.php?search={searchTerms}";
|
||||
}
|
||||
];
|
||||
icon = "https://wiki.nixos.org/favicon.ico";
|
||||
definedAliases = ["@nw"];
|
||||
};
|
||||
noogle = {
|
||||
name = "Noogle";
|
||||
urls = [
|
||||
{
|
||||
template = "https://noogle.dev/q/?term={searchTerms}";
|
||||
}
|
||||
];
|
||||
icon = "https://noogle.dev/favicon.ico";
|
||||
definedAliases = ["@ng"];
|
||||
};
|
||||
arch-wiki = {
|
||||
name = "ArchWiki";
|
||||
urls = [
|
||||
{
|
||||
template = "https://wiki.archlinux.org/index.php?search={searchTerms}";
|
||||
}
|
||||
];
|
||||
icon = "https://wiki.archlinux.org/favicon.ico";
|
||||
definedAliases = ["@aw"];
|
||||
gecko-open-new-tab = {
|
||||
modifiers = {
|
||||
alt = true;
|
||||
ctrl = false;
|
||||
meta = false;
|
||||
shift = false;
|
||||
};
|
||||
key = "Enter";
|
||||
action = "gecko-open-new-tab";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
search = {
|
||||
force = true;
|
||||
default = "ddg-noai";
|
||||
engines = {
|
||||
ddg-noai = {
|
||||
name = "DuckDuckGo No-AI";
|
||||
urls = [
|
||||
{
|
||||
template = "https://noai.duckduckgo.com/?q={searchTerms}";
|
||||
}
|
||||
];
|
||||
icon = "https://duckduckgo.com/favicon.ico";
|
||||
definedAliases = ["@noai"];
|
||||
};
|
||||
nixpkgs = {
|
||||
name = "nixpkgs packages";
|
||||
urls = [
|
||||
{
|
||||
template = "https://search.nixos.org/packages?query={searchTerms}";
|
||||
}
|
||||
];
|
||||
icon = "https://wiki.nixos.org/favicon.ico";
|
||||
definedAliases = ["@np"];
|
||||
};
|
||||
nixos-options = {
|
||||
name = "NixOS options";
|
||||
urls = [
|
||||
{
|
||||
template = "https://search.nixos.org/options?query={searchTerms}";
|
||||
}
|
||||
];
|
||||
icon = "https://wiki.nixos.org/favicon.ico";
|
||||
definedAliases = ["@no"];
|
||||
};
|
||||
nixos-wiki = {
|
||||
name = "NixOS Wiki";
|
||||
urls = [
|
||||
{
|
||||
template = "https://wiki.nixos.org/w/index.php?search={searchTerms}";
|
||||
}
|
||||
];
|
||||
icon = "https://wiki.nixos.org/favicon.ico";
|
||||
definedAliases = ["@nw"];
|
||||
};
|
||||
noogle = {
|
||||
name = "Noogle";
|
||||
urls = [
|
||||
{
|
||||
template = "https://noogle.dev/q/?term={searchTerms}";
|
||||
}
|
||||
];
|
||||
icon = "https://noogle.dev/favicon.ico";
|
||||
definedAliases = ["@ng"];
|
||||
};
|
||||
arch-wiki = {
|
||||
name = "ArchWiki";
|
||||
urls = [
|
||||
{
|
||||
template = "https://wiki.archlinux.org/index.php?search={searchTerms}";
|
||||
}
|
||||
];
|
||||
icon = "https://wiki.archlinux.org/favicon.ico";
|
||||
definedAliases = ["@aw"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
}) // lib.optionalAttrs (builtins.hasAttr "osConfig" self) {
|
||||
stylix.targets.floorp.profileNames = lib.mkIf (config.features.applications.gui.floorp.enable) [ "default" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,10 +1,8 @@
|
||||
{ inputs, self, ... }: {
|
||||
flake.nixosModules.graphics = { pkgs, config, lib, ... }: {
|
||||
flake.homeModules.graphics = { pkgs, config, lib, ... }: {
|
||||
options.features.applications.gui.kitty.enable = lib.mkEnableOption "kitty";
|
||||
};
|
||||
|
||||
flake.homeModules.graphics = { pkgs, osConfig, lib, ... }: {
|
||||
config = lib.mkIf (osConfig.features.applications.gui.kitty.enable) {
|
||||
config = lib.mkIf (config.features.applications.gui.kitty.enable) {
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
|
||||
|
||||
@@ -19,10 +19,10 @@
|
||||
};
|
||||
};
|
||||
|
||||
flake.homeModules.graphics = { pkgs, osConfig, lib, ... }: {
|
||||
config = lib.mkIf (osConfig.features.applications.gui.nautilus.enable) {
|
||||
flake.homeModules.graphics = { pkgs, osConfig, config, lib, ... }: {
|
||||
config = lib.mkIf (builtins.hasAttr "osConfig" self) (lib.mkIf (osConfig.features.applications.gui.nautilus.enable) {
|
||||
gtk.gtk3.bookmarks = [
|
||||
"file://${osConfig.info.rootPath} NixOS"
|
||||
"file://${config.info.rootPath} NixOS"
|
||||
"file:///home/grey/Downloads Downloads"
|
||||
"file:///home/grey/Documents Documents"
|
||||
"file:///home/grey/Pictures Pictures"
|
||||
@@ -30,6 +30,6 @@
|
||||
"file:///home/grey/Videos Videos"
|
||||
"file:/// Root"
|
||||
];
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
@@ -1,18 +1,16 @@
|
||||
{ inputs, self, ... }: {
|
||||
flake.nixosModules.graphics = { pkgs, config, lib, ... }: {
|
||||
flake.homeModules.graphics = { pkgs, config, lib, ... }: {
|
||||
options.features.applications.gui.remmina.enable = lib.mkEnableOption "remmina";
|
||||
};
|
||||
|
||||
flake.homeModules.graphics = { pkgs, osConfig, lib, ... }: {
|
||||
config = lib.mkIf (osConfig.features.applications.gui.remmina.enable) {
|
||||
config = lib.mkIf (config.features.applications.gui.remmina.enable) {
|
||||
home.packages = with pkgs; [
|
||||
remmina
|
||||
freerdp
|
||||
];
|
||||
|
||||
home.activation.linkRemminaPresets = lib.hm.dag.entryAfter ["writeBoundary"] (osConfig.helpers.mkSymlinkActivationScript {
|
||||
home.activation.linkRemminaPresets = lib.hm.dag.entryAfter ["writeBoundary"] (config.helpers.mkSymlinkActivationScript {
|
||||
target = ".local/share/remmina";
|
||||
source = "dotfiles/${osConfig.info.hostName}/remmina";
|
||||
source = "dotfiles/${config.info.hostName}/remmina";
|
||||
isDir = true;
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1,25 +1,23 @@
|
||||
{ inputs, self, ... }: {
|
||||
flake.nixosModules.graphics = { lib, ... }: {
|
||||
flake.homeModules.graphics = { pkgs, config, lib, ... }: {
|
||||
options.features.applications.gui.spotify = {
|
||||
enable = lib.mkEnableOption "spotify";
|
||||
spicetify.enable = lib.mkEnableOption "spicetify";
|
||||
};
|
||||
};
|
||||
|
||||
flake.homeModules.graphics = { pkgs, config, lib, osConfig, ... }: {
|
||||
imports = [
|
||||
inputs.spicetify.homeManagerModules.default
|
||||
];
|
||||
|
||||
config = {
|
||||
home.packages = lib.mkIf (with osConfig.features.applications.gui.spotify; enable && !spicetify.enable) (with pkgs; [
|
||||
home.packages = lib.mkIf (with config.features.applications.gui.spotify; enable && !spicetify.enable) (with pkgs; [
|
||||
spotify
|
||||
]);
|
||||
|
||||
programs.spicetify =
|
||||
let
|
||||
spicePkgs = inputs.spicetify.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
||||
in lib.mkIf (with osConfig.features.applications.gui.spotify; enable && spicetify.enable) {
|
||||
in lib.mkIf (with config.features.applications.gui.spotify; enable && spicetify.enable) {
|
||||
enable = true;
|
||||
enabledExtensions = with spicePkgs.extensions; [
|
||||
hidePodcasts
|
||||
|
||||
@@ -1,19 +1,17 @@
|
||||
{ inputs, self, ... }: {
|
||||
flake.nixosModules.graphics = { pkgs, config, lib, ... }: {
|
||||
flake.homeModules.graphics = { config, pkgs, lib, ... }: {
|
||||
options.features.applications.gui.vscode.enable = lib.mkEnableOption "vscode";
|
||||
};
|
||||
|
||||
flake.homeModules.graphics = { osConfig, pkgs, lib, ... }: {
|
||||
config = lib.mkIf (osConfig.features.applications.gui.vscode.enable) {
|
||||
config = lib.mkIf (config.features.applications.gui.vscode.enable) {
|
||||
home.packages = [ pkgs.vscode ];
|
||||
|
||||
home.activation = {
|
||||
linkVsCodeConfigSettings = lib.hm.dag.entryAfter ["writeBoundary"] (osConfig.helpers.mkSymlinkActivationScript {
|
||||
linkVsCodeConfigSettings = lib.hm.dag.entryAfter ["writeBoundary"] (config.helpers.mkSymlinkActivationScript {
|
||||
target = ".config/Code/User/settings.json";
|
||||
source = "dotfiles/global/vscode/settings.json";
|
||||
});
|
||||
|
||||
linkVsCodeConfigKeybindings = lib.hm.dag.entryAfter ["writeBoundary"] (osConfig.helpers.mkSymlinkActivationScript {
|
||||
linkVsCodeConfigKeybindings = lib.hm.dag.entryAfter ["writeBoundary"] (config.helpers.mkSymlinkActivationScript {
|
||||
target = ".config/Code/User/keybindings.json";
|
||||
source = "dotfiles/global/vscode/keybindings.json";
|
||||
});
|
||||
|
||||
@@ -12,8 +12,13 @@
|
||||
};
|
||||
};
|
||||
|
||||
flake.homeModules.global = { pkgs, osConfig, lib, ... }: {
|
||||
config = lib.mkIf (osConfig.features.shells.zsh.enable) {
|
||||
flake.homeModules.global = { pkgs, osConfig, config, lib, ... }: {
|
||||
options.features.shells.zsh = {
|
||||
enable = lib.mkEnableOption "zsh";
|
||||
antidote.enable = lib.mkEnableOption "antidote";
|
||||
};
|
||||
|
||||
config = (if builtins.hasAttr "osConfig" self then (lib.mkIf (osConfig.features.shells.zsh.enable || config.features.shells.zsh.enable)) else (lib.mkIf (config.features.shells.zsh.enable))) {
|
||||
home.shell.enableZshIntegration = true;
|
||||
|
||||
programs.kitty.shellIntegration.enableZshIntegration = true;
|
||||
@@ -21,7 +26,7 @@
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
completionInit = "";
|
||||
antidote = lib.mkIf (osConfig.features.shells.zsh.antidote.enable) {
|
||||
antidote = (if builtins.hasAttr "osConfig" self then (lib.mkIf (osConfig.features.shells.zsh.antidote.enable || config.features.shells.zsh.antidote.enable)) else (lib.mkIf (config.features.shells.zsh.antidote.enable))) {
|
||||
enable = true;
|
||||
plugins = [
|
||||
"getantidote/use-omz"
|
||||
|
||||
Reference in new issue
Block a user