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,7 +91,8 @@ 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;
@ -119,7 +120,6 @@ in {
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
@ -130,16 +130,14 @@ in {
# 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. # Disable the UI tour.
"browser.uitour.enabled" = false; "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;
@ -156,7 +154,12 @@ in {
"dom.security.https_first_pbm" = true; "dom.security.https_first_pbm" = true;
"privacy.firstparty.isolate" = true; "privacy.firstparty.isolate" = true;
}; }
(lib.mkIf userCfg.programs.custom-homepage.enable {
"browser.startup.homepage" = "file://${config.xdg.dataHome}/foodogsquared/homepage";
})
];
search = { search = {
default = "Brave"; default = "Brave";
@ -208,7 +211,30 @@ in {
"Google".metaData.alias = "@g"; "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,7 +250,9 @@ in {
(pkgs.writeTextFile { (pkgs.writeTextFile {
name = "tridactyl-nix-generated"; name = "tridactyl-nix-generated";
text = '' text =
lib.optionalString userCfg.programs.custom-homepage.enable ''
bind gT tabopen file://${config.xdg.dataHome}/foodogsquared/homepage/index.html
set newtab file://${config.xdg.dataHome}/foodogsquared/homepage/index.html set newtab file://${config.xdg.dataHome}/foodogsquared/homepage/index.html
'' ''
+ lib.optionalString attrs.nixosConfig.services.miniflux.enable '' + lib.optionalString attrs.nixosConfig.services.miniflux.enable ''

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 ]))
]; ];
}) })
]); ]);