refactor: change where programs are activated

This commit is contained in:
Nydragon 2024-06-14 01:39:37 +09:00
parent 400cb5f8c2
commit efd1f9adef
No known key found for this signature in database
GPG key ID: 14AA30A865EA1209
5 changed files with 22 additions and 11 deletions

View file

@ -33,7 +33,7 @@
urls = [ urls = [
{ template = "https://wiki.archlinux.org/index.php?title=Special:Search&search={searchTerms}"; } { template = "https://wiki.archlinux.org/index.php?title=Special:Search&search={searchTerms}"; }
]; ];
iconUpdateURL = "https://nixos.wiki/favicon.ico"; iconUpdateURL = "https://wiki.archlinux.org/favicon.ico";
updateInterval = iconUpdateInterval; updateInterval = iconUpdateInterval;
definedAliases = [ "@archwiki" ]; definedAliases = [ "@archwiki" ];
}; };
@ -61,6 +61,15 @@
updateInterval = iconUpdateInterval; updateInterval = iconUpdateInterval;
definedAliases = [ "@stackoverflow" ]; definedAliases = [ "@stackoverflow" ];
}; };
Noogle = {
urls = [ { template = "https://noogle.dev/q?term={searchTerms}"; } ];
icon = nixicon;
definedAliases = [
"@noogle"
"@ngl"
];
};
}; };
}; };
}; };

View file

@ -1,7 +1,6 @@
{ ... }: { ... }:
{ {
programs.thunderbird = { programs.thunderbird = {
enable = true;
settings = { settings = {
"mailnews.wraplength" = 80; "mailnews.wraplength" = 80;
"mail.pane_config.dynamic" = 2; "mail.pane_config.dynamic" = 2;

View file

@ -72,9 +72,13 @@ in
}; };
}; };
programs.dconf.enable = true; programs = {
programs.steam.enable = true; dconf.enable = true;
programs.fish.enable = true; steam.enable = true;
fish.enable = true;
firefox.enable = true;
thunderbird.enable = true;
};
home-manager.users.${username} = import ../../home { home-manager.users.${username} = import ../../home {
inherit inherit
@ -84,6 +88,7 @@ in
inputs inputs
stateVersion stateVersion
username username
lib
homeDirectory homeDirectory
; ;
}; };

View file

@ -1,8 +1,7 @@
# Reference https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265 # Reference https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265
{ ... }: { lib, config, ... }:
{ {
programs.firefox = { programs.firefox = lib.mkIf config.programs.firefox.enable {
enable = true;
preferencesStatus = "locked"; preferencesStatus = "locked";
preferences = { preferences = {
"browser.bookmarks.restore_default_bookmarks" = false; "browser.bookmarks.restore_default_bookmarks" = false;

View file

@ -1,7 +1,6 @@
{ ... }: { lib, config, ... }:
{ {
programs.thunderbird = { programs.thunderbird = lib.mkIf config.programs.thunderbird.enable {
enable = true;
preferencesStatus = "locked"; preferencesStatus = "locked";
preferences = { preferences = {
"mail.biff.play_sound" = false; "mail.biff.play_sound" = false;