mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
nix plasma-manager
This commit is contained in:
parent
e30bc681cd
commit
39eabd9c51
17 changed files with 247 additions and 39 deletions
|
|
@ -1,8 +1,15 @@
|
|||
{pkgs, ...}: {
|
||||
programs.chromium = {
|
||||
enable = true;
|
||||
homepageLocation = "https://duckduckgo.com";
|
||||
defaultSearchProviderSearchURL = "https://duckduckgo.com?q={searchTerms}";
|
||||
extraOpts = {
|
||||
"BrowserSignin" = 0;
|
||||
"BrowserSignin" = 1;
|
||||
"PasswordManagerEnabled" = false;
|
||||
"ExtensionManifestV2Availability" = 2;
|
||||
};
|
||||
extensions = [
|
||||
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
8
nixcfgs/modules/nixos/desktop/niri.nix
Normal file
8
nixcfgs/modules/nixos/desktop/niri.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
programs.niri.enable = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
waybar
|
||||
mako
|
||||
rofi
|
||||
];
|
||||
}
|
||||
|
|
@ -1,10 +1,34 @@
|
|||
{pkgs, ...}: {
|
||||
{pkgs, ...}:
|
||||
|
||||
# See https://www.reddit.com/r/NixOS/comments/1kcj34p/how_to_apply_this_sddm_theme_on_nixos/
|
||||
let
|
||||
custom-sddm-astronaut = pkgs.sddm-astronaut.override {
|
||||
embeddedTheme = "astronaut";
|
||||
#themeConfig = {
|
||||
# Background = "path/to/background.jpg";
|
||||
# Font = "M+1 Nerd Font";
|
||||
#};
|
||||
};
|
||||
|
||||
in {
|
||||
# Enable the KDE Plasma Desktop Environment.
|
||||
services.displayManager.sddm = {
|
||||
enable = true;
|
||||
wayland.enable = true;
|
||||
extraPackages = with pkgs; [
|
||||
sddm-astronaut
|
||||
];
|
||||
# theme = "sddm-astronaut-theme";
|
||||
custom-sddm-astronaut
|
||||
];
|
||||
|
||||
theme = "sddm-astronaut-theme";
|
||||
settings = {
|
||||
Theme = {
|
||||
Current = "sddm-astronaut-theme";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
custom-sddm-astronaut
|
||||
kdePackages.qtmultimedia
|
||||
];
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,23 +10,70 @@
|
|||
|
||||
preferences = {
|
||||
"widget.use-xdg-desktop-portal.file-picker" = 1;
|
||||
"widget.use-xdg-desktop-portal.mime-handler" = 1;
|
||||
"screenshots.browser.component.enabled" = false;
|
||||
"toolkit.telemetry.enabled" = false;
|
||||
"toolkit.telemetry.archive.enabled" = false;
|
||||
"browser.shell.checkDefaultBrowser" = false;
|
||||
"browser.contentblocking.category" = "strict";
|
||||
"browser.formfill.enable" = false;
|
||||
"extensions.formautofill.creditCards.enabled" = false;
|
||||
"dom.forms.autocomplete.formautofill" = false;
|
||||
"browser.urlbar.update2.engineAliasRefresh" = true;
|
||||
"browser.newtabpage.activity-stream.showSponsored" = false;
|
||||
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
||||
};
|
||||
|
||||
policies = {
|
||||
DisableTelemetry = true;
|
||||
BlockAboutConfig = false;
|
||||
DisableFirefoxScreenshots = true;
|
||||
DontCheckDefaultBrowser = true;
|
||||
|
||||
ExtensionSettings = let
|
||||
moz = short: "https://addons.mozilla.org/firefox/downloads/latest/${short}/latest.xpi";
|
||||
in {
|
||||
"*".installation_mode = "blocked";
|
||||
|
||||
"uBlock0@raymondhill.net" = {
|
||||
install_url = moz "ublock-origin";
|
||||
installation_mode = "force_installed";
|
||||
updates_disabled = true;
|
||||
ExtensionSettings = with builtins; let
|
||||
extension = short: uuid: {
|
||||
name = uuid;
|
||||
value = {
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/${short}/latest.xpi";
|
||||
installation_mode = "force_installed";
|
||||
};
|
||||
};
|
||||
in
|
||||
listToAttrs [
|
||||
(extension "ublock-origin" "uBlock0@raymondhill.net")
|
||||
(extension "multi-account-containers" "@testpilot-containers")
|
||||
(extension "side-view" "@webcompat@mozilla.org")
|
||||
(extension "clearurls" "{74145f27-f039-47ce-a470-a662b129930a}")
|
||||
];
|
||||
|
||||
SearchEngines = {
|
||||
Default = "DuckDuckGo";
|
||||
Add = [
|
||||
{
|
||||
Alias = "@np";
|
||||
Description = "Search in NixOS Packages";
|
||||
IconURL = "https://nixos.org/favicon.ico";
|
||||
Method = "GET";
|
||||
Name = "NixOS Packages";
|
||||
URLTemplate = "https://search.nixos.org/packages?from=0&size=200&sort=relevance&type=packages&query={searchTerms}";
|
||||
}
|
||||
{
|
||||
Alias = "@no";
|
||||
Description = "Search in NixOS Options";
|
||||
IconURL = "https://nixos.org/favicon.ico";
|
||||
Method = "GET";
|
||||
Name = "NixOS Options";
|
||||
URLTemplate = "https://search.nixos.org/options?from=0&size=200&sort=relevance&type=packages&query={searchTerms}";
|
||||
}
|
||||
{
|
||||
Alias = "@hm";
|
||||
Description = "Search in Home Manager Options";
|
||||
IconURL = "https://nixos.org/favicon.ico";
|
||||
Method = "GET";
|
||||
Name = "Home Manager options";
|
||||
URLTemplate = "https://home-manager-options.extranix.com/?query={searchTerms}";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue