full PC config setup
shifting towards manual symlinks for more complex setup than laptop, allows for GUI settings changes to actually apply, and is much easier than nix-ifying every config
This commit is contained in:
149 files changed
+9539
-478
No files matched your search
@@ -1,6 +1,7 @@
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
firefox-addons = with pkgs; inputs.firefox-addons.packages.${system};
|
||||
@@ -9,103 +10,19 @@ in {
|
||||
inputs.zen-browser.homeModules.beta
|
||||
];
|
||||
|
||||
home.activation = {
|
||||
linkZenConfig = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||
#!/bin/bash
|
||||
if [ -d /home/grey/.config/zen ]; then
|
||||
rm -rf /home/grey/.config/zen
|
||||
fi
|
||||
ln -s /home/grey/nixos/assets/dotfiles/zen-config /home/grey/.config/zen
|
||||
'';
|
||||
};
|
||||
|
||||
programs.zen-browser = {
|
||||
enable = true;
|
||||
setAsDefaultBrowser = 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;
|
||||
OfferToSaveLogins = false;
|
||||
EnableTrackingProtection = {
|
||||
Value = true;
|
||||
Locked = true;
|
||||
Cryptomining = true;
|
||||
Fingerprinting = true;
|
||||
};
|
||||
Preferences = {
|
||||
"browser.startup.homepage" = {
|
||||
Value = "about:blank";
|
||||
Status = "locked";
|
||||
};
|
||||
};
|
||||
};
|
||||
profiles.default = {
|
||||
settings = {
|
||||
"zen.urlbar.behavior" = "float";
|
||||
"zen.welcome-screen.seen" = true;
|
||||
};
|
||||
extensions.packages = with firefox-addons; [
|
||||
adnauseam
|
||||
bitwarden
|
||||
indie-wiki-buddy
|
||||
pwas-for-firefox
|
||||
];
|
||||
search = {
|
||||
force = true;
|
||||
default = "ddg";
|
||||
engines = {
|
||||
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"];
|
||||
};
|
||||
};
|
||||
};
|
||||
keyboardShortcuts = [
|
||||
{
|
||||
id = "key_close";
|
||||
key = "q";
|
||||
modifiers = {
|
||||
control = false;
|
||||
alt = true;
|
||||
};
|
||||
}
|
||||
{
|
||||
id = "key_newNavigatorTab";
|
||||
keycode = "VK_RETURN";
|
||||
modifiers = {
|
||||
control = false;
|
||||
alt = true;
|
||||
};
|
||||
}
|
||||
];
|
||||
keyboardShortcutsVersion = 19;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user