defaults: cleanup
This commit is contained in:
parent
00c06f982b
commit
d8071797fd
7 changed files with 73 additions and 67 deletions
|
|
@ -5,17 +5,17 @@
|
|||
}:
|
||||
|
||||
let
|
||||
name = "graphical";
|
||||
name = "defaults";
|
||||
cfg = config.nixowos.${name};
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./plasma.nix
|
||||
./nvidia.nix
|
||||
./games
|
||||
./jp.nix
|
||||
./mpv.nix
|
||||
./virt.nix
|
||||
./plasma.nix
|
||||
./tmux.nix
|
||||
./git.nix
|
||||
./shell.nix
|
||||
./browsers.nix
|
||||
];
|
||||
|
||||
options.nixowos.${name} = {
|
||||
|
|
@ -24,33 +24,12 @@ in
|
|||
|
||||
config = lib.mkIf cfg.enable {
|
||||
nixowos.${name} = lib.mkDefault {
|
||||
jp.enable = true;
|
||||
plasma.enable = config.services.desktopManager.plasma6.enable;
|
||||
mpv.enable = true;
|
||||
};
|
||||
|
||||
programs.firefox = lib.mkDefault {
|
||||
policies = {
|
||||
ExtensionSettings = {
|
||||
"uBlock0@raymondhill.net" = {
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
|
||||
};
|
||||
};
|
||||
Preferences = {
|
||||
"browser.newtabpage.activity-stream.feeds.wallpaperfeed".Value = false;
|
||||
"browser.newtabpage.activity-stream.feeds.weatherfeed".Value = false;
|
||||
|
||||
# from https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265
|
||||
"browser.newtabpage.activity-stream.feeds.section.topstories".Value = false;
|
||||
"browser.newtabpage.activity-stream.feeds.snippets".Value = false;
|
||||
"browser.newtabpage.activity-stream.section.highlights.includePocket".Value = false;
|
||||
"browser.newtabpage.activity-stream.section.highlights.includeBookmarks".Value = false;
|
||||
"browser.newtabpage.activity-stream.section.highlights.includeDownloads".Value = false;
|
||||
"browser.newtabpage.activity-stream.section.highlights.includeVisited".Value = false;
|
||||
"browser.newtabpage.activity-stream.showSponsored".Value = false;
|
||||
"browser.newtabpage.activity-stream.system.showSponsored".Value = false;
|
||||
"browser.newtabpage.activity-stream.showSponsoredTopSites".Value = false;
|
||||
};
|
||||
};
|
||||
tmux.enable = true;
|
||||
git.enable = true;
|
||||
shell.enable = true;
|
||||
browers.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue