users/foo-dogsquared: update program setup
Some checks are pending
Build devcontainers / build-devcontainers (push) Waiting to run
Cache outputs / build-custom-packages (push) Waiting to run
Check flake outputs / check-outputs (push) Waiting to run
Publish every Git push to master to FlakeHub / flakehub-publish (push) Waiting to run
Build personalized bootstrap ISO / build-iso (x86_64-linux) (push) Waiting to run
Build project site / build (push) Waiting to run
Build project site / deploy (push) Blocked by required conditions

This commit is contained in:
Gabriel Arazas 2025-02-20 12:42:30 +08:00
parent 0ce654bdd9
commit bea88da62b
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
5 changed files with 151 additions and 123 deletions

View File

@ -91,124 +91,150 @@ in {
}; };
}; };
profiles.personal = { profiles.personal = lib.mkMerge [
isDefault = true; {
isDefault = true;
extensions = with pkgs.nur.repos.rycee.firefox-addons; extensions = with pkgs.nur.repos.rycee.firefox-addons;
[ [
aw-watcher-web aw-watcher-web
bitwarden bitwarden
browserpass browserpass
facebook-container facebook-container
firefox-color firefox-color
firefox-translations firefox-translations
firenvim firenvim
languagetool languagetool
multi-account-containers multi-account-containers
privacy-badger privacy-badger
search-by-image search-by-image
tampermonkey tampermonkey
tridactyl tridactyl
ublock-origin ublock-origin
vimium vimium
wayback-machine wayback-machine
] ++ (with pkgs.firefox-addons; [ ] ++ (with pkgs.firefox-addons; [
get-rss-feed-url get-rss-feed-url
google-container google-container
microsoft-container microsoft-container
regretsreporter regretsreporter
simple-translate simple-translate
sourcegraph-for-firefox sourcegraph-for-firefox
tineye-reverse-image-search updateswh
updateswh zhongwen
zhongwen open-access-helper
open-access-helper rsshub-radar
rsshub-radar ]) ++ lib.optionals config.programs.mpv.enable
]) ++ lib.optionals config.programs.mpv.enable (with pkgs.nur.repos.rycee.firefox-addons; [ ff2mpv ]);
(with pkgs.nur.repos.rycee.firefox-addons; [ ff2mpv ]);
# Much of the settings are affected by the policies set in the # Much of the settings are affected by the policies set in the
# package. See more information about them in # package. See more information about them in
# https://mozilla.github.io/policy-templates/. # https://mozilla.github.io/policy-templates/.
settings = { settings = lib.mkMerge [
# Disable the UI tour. {
"browser.uitour.enabled" = false; # Disable the UI tour.
"browser.uitour.enabled" = false;
# Some quality of lifes. # Some quality of lifes.
"browser.search.widget.inNavBar" = true; "browser.search.widget.inNavBar" = true;
"browser.search.openintab" = true; "browser.search.openintab" = true;
"browser.startup.homepage" =
lib.mkIf userCfg.programs.custom-homepage.enable
"file://${config.xdg.dataHome}/foodogsquared/homepage";
# Some privacy settings... # Some privacy settings...
"privacy.donottrackheader.enabled" = true; "privacy.donottrackheader.enabled" = true;
# Burn our own fingers. # Burn our own fingers.
"privacy.resistFingerprinting" = true; "privacy.resistFingerprinting" = true;
"privacy.fingerprintingProtection" = true; "privacy.fingerprintingProtection" = true;
"privacy.fingerprintingProtection.pbmode" = true; "privacy.fingerprintingProtection.pbmode" = true;
"privacy.query_stripping.enabled" = true; "privacy.query_stripping.enabled" = true;
"privacy.query_stripping.enabled.pbmode" = true; "privacy.query_stripping.enabled.pbmode" = true;
"dom.security.https_first" = true; "dom.security.https_first" = true;
"dom.security.https_first_pbm" = true; "dom.security.https_first_pbm" = true;
"privacy.firstparty.isolate" = true; "privacy.firstparty.isolate" = true;
}; }
search = { (lib.mkIf userCfg.programs.custom-homepage.enable {
default = "Brave"; "browser.startup.homepage" = "file://${config.xdg.dataHome}/foodogsquared/homepage";
force = true; })
order = [ "Brave" "Nix Packages" "Google" ]; ];
engines = {
"Brave" = {
urls = [{
template = "https://search.brave.com/search";
params = [
{
name = "type";
value = "search";
}
{
name = "q";
value = "{searchTerms}";
}
];
}];
icon = search = {
"${config.programs.brave.package}/share/icons/hicolor/64x64/apps/brave-browser.png"; default = "Brave";
definedAliases = [ "@brave" "@b" ]; force = true;
order = [ "Brave" "Nix Packages" "Google" ];
engines = {
"Brave" = {
urls = [{
template = "https://search.brave.com/search";
params = [
{
name = "type";
value = "search";
}
{
name = "q";
value = "{searchTerms}";
}
];
}];
icon =
"${config.programs.brave.package}/share/icons/hicolor/64x64/apps/brave-browser.png";
definedAliases = [ "@brave" "@b" ];
};
"Nix Packages" = {
urls = [{
template = "https://search.nixos.org/packages";
params = [
{
name = "type";
value = "packages";
}
{
name = "query";
value = "{searchTerms}";
}
];
}];
icon =
"${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@np" ];
};
"Bing".metaData.hidden = true;
"Duckduckgo".metaData.hidden = true;
"Google".metaData.alias = "@g";
}; };
"Nix Packages" = {
urls = [{
template = "https://search.nixos.org/packages";
params = [
{
name = "type";
value = "packages";
}
{
name = "query";
value = "{searchTerms}";
}
];
}];
icon =
"${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@np" ];
};
"Bing".metaData.hidden = true;
"Duckduckgo".metaData.hidden = true;
"Google".metaData.alias = "@g";
}; };
}; }
};
(lib.mkIf userCfg.programs.doom-emacs.enable {
settings."network.protocol-handler.expose.org-protocol" = true;
bookmarks = [
{
name = "Refer to org-roam node";
tags = [ "org-roam" ];
# Formatted like this for ease of modifying.
url = lib.concatStrings [
"javascript:location.href="
"'org-protocol://roam-ref?template=r&ref='"
"+encodeURIComponent(location.href)"
"+'&title='"
"+encodeURIComponent(document.title)"
"+'&body='"
"+encodeURIComponent(window.getSelection())"
];
}
];
})
];
profiles.guest = { profiles.guest = {
search.default = "Google"; search.default = "Google";
@ -224,13 +250,15 @@ in {
(pkgs.writeTextFile { (pkgs.writeTextFile {
name = "tridactyl-nix-generated"; name = "tridactyl-nix-generated";
text = '' text =
set newtab file://${config.xdg.dataHome}/foodogsquared/homepage/index.html lib.optionalString userCfg.programs.custom-homepage.enable ''
'' bind gT tabopen file://${config.xdg.dataHome}/foodogsquared/homepage/index.html
+ lib.optionalString attrs.nixosConfig.services.miniflux.enable '' set newtab file://${config.xdg.dataHome}/foodogsquared/homepage/index.html
# This is to take advantage of Miniflux shortcuts. ''
blacklistadd localhost:${builtins.toString attrs.nixosConfig.state.ports.miniflux.value} + lib.optionalString attrs.nixosConfig.services.miniflux.enable ''
''; # This is to take advantage of Miniflux shortcuts.
blacklistadd localhost:${builtins.toString attrs.nixosConfig.state.ports.miniflux.value}
'';
}) })
]; ];
}; };

View File

@ -58,13 +58,12 @@ in {
# :lang org +roam2 # :lang org +roam2
texlive.combined.scheme-medium texlive.combined.scheme-medium
sqlite sqlite
#anystyle-cli
]; ];
programs.python = { programs.python = {
enable = true; enable = true;
package = pkgs.python3; package = pkgs.python3;
modules = ps: with ps; [ jupyter jupyter-book ]; modules = ps: with ps; [ jupyter ];
}; };
# Enable Emacs server for them quicknotes. # Enable Emacs server for them quicknotes.
@ -75,10 +74,12 @@ in {
# Add org-protocol support. # Add org-protocol support.
xdg.desktopEntries.org-protocol = { xdg.desktopEntries.org-protocol = {
name = "Org protocol"; name = "org-protocol";
exec = "emacsclient %u"; exec = "emacsclient -- %u";
icon = "emacs";
mimeType = [ "x-scheme-handler/org-protocol" ]; mimeType = [ "x-scheme-handler/org-protocol" ];
terminal = false;
comment = "Intercept calls from emacsclient to trigger custom actions";
noDisplay = true;
}; };
xdg.mimeApps.defaultApplications = { xdg.mimeApps.defaultApplications = {

View File

@ -14,11 +14,8 @@ in {
programs.nushell = { programs.nushell = {
enable = true; enable = true;
plugins = with pkgs.nushellPlugins; [ plugins = with pkgs.nushellPlugins; [
dbus
query query
skim
polars polars
units
formats formats
highlight highlight
]; ];

View File

@ -32,7 +32,9 @@ in {
alefragnani.project-manager alefragnani.project-manager
fill-labs.dependi fill-labs.dependi
] ++ lib.optionals userCfg.programs.browsers.firefox.enable ] ++ lib.optionals userCfg.programs.browsers.firefox.enable
[ firefox-devtools.vscode-firefox-debug ]; [ firefox-devtools.vscode-firefox-debug ]
++ lib.optionals config.programs.python.enable
[ ms-toolsai.jupyter ms-toolsai.jupyter-renderers ];
userSettings = { "extensions.ignoreRecommendations" = true; }; userSettings = { "extensions.ignoreRecommendations" = true; };
}; };

View File

@ -149,7 +149,7 @@ in {
home.packages = with pkgs; [ home.packages = with pkgs; [
supercollider-with-plugins supercollider-with-plugins
processing processing
#(puredata-with-plugins (with pkgs; [ zexy cyclone ])) (puredata-with-plugins (with pkgs; [ zexy ]))
]; ];
}) })
]); ]);