Compare commits

..

No commits in common. "a9baa4d7e18e71972f4a094a3e20091cef841be0" and "bba08e6d7b1ea9568c0d44ee6817b62587409cc1" have entirely different histories.

6 changed files with 212 additions and 141 deletions

View File

@ -1,25 +1,35 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let
nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") {
inherit pkgs;
};
in
{ {
programs.firefox = { programs.firefox = {
enable = true; enable = true;
profiles.default = { package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
isDefault = true ; extraPolicies = {
extensions = lib.mkIf config.programs.firefox.enable CaptivePortal = false;
(with nur.repos.rycee.firefox-addons; [ DisableFirefoxStudies = true;
french-dictionary DisablePocket = true;
i-dont-care-about-cookies DisableTelemetry = true;
ublock-origin DisableFirefoxAccounts = false;
privacy-badger NoDefaultBookmarks = true;
keepassxc-browser OfferToSaveLogins = true;
clearurls OfferToSaveLoginsDefault = true;
decentraleyes PasswordManagerEnabled = true;
floccus FirefoxHome = {
]); Search = true;
Pocket = false;
Snippets = false;
TopSites = false;
Highlights = false;
};
UserMessaging = {
ExtensionRecommendations = false;
SkipOnboarding = true;
};
};
};
profiles = {
alexandre = {
id = 0;
name = "alexandre";
search = { search = {
force = true; force = true;
default = "Google"; default = "Google";
@ -51,69 +61,40 @@ in
bookmarks = [ bookmarks = [
{ {
name = "DRI"; name = "wikipedia";
toolbar = true;
bookmarks = [
{
name = "wiki";
tags = [ "wiki" ]; tags = [ "wiki" ];
keyword = "wiki"; keyword = "wiki";
url = "https://en.wikipedia.org/wiki/Special:Search?search="; url = "https://en.wikipedia.org/wiki/Special:Search?search=%s&go=Go";
} }
{ {
name = "AVV"; name = "kernel.org";
url ="https://v2.produhost.net/panel/16148/dashboard"; url ="https://v2.produhost.net/panel/16148/dashboard";
} }
{ {
name = "Alexandre"; name = "Nix sites";
url = "https://bbb.produhost.net/b/ale-1a8-984"; toolbar = true;
bookmarks = [
{
name = "homepage";
url = "https://nixos.org/";
} }
{ {
name = "David"; name = "wiki";
url = "https://bbb.produhost.net/b/dav-5aj-hxx"; tags = [ "wiki" "nix" ];
url = "https://nixos.wiki/";
} }
]; ];
} }
]; ];
settings = {
"general.smoothScroll" = true;
};
settings = { extraConfig = ''
settings = { user_pref("full-screen-api.ignore-widgets", true);
"browser.contentblocking.category" = "strict" ; user_pref("media.ffmpeg.vaapi.enabled", true);
"browser.search.region" = "CH" ; user_pref("media.rdd-vpx.enabled", true);
"browser.startup.homepage" = https://www.google.fr ; '';
"browser.toolbars.bookmarks.visibility" = "always";
"dom.security.https_only_mode" = true ;
"dom.security.https_only_mode_ever_enabled" = true ;
"extensions.blocklist.pingCountVersion" = -1 ;
"extensions.databaseSchema" = 35 ;
"extensions.ui.dictionary.hidden" = false ;
"extensions.ui.extension.hidden" = false ;
"extensions.ui.locale.hidden" = true ;
"extensions.ui.sitepermission.hidden" = true ;
"extensions.webcompat.enable_shims" = true ;
"extensions.webcompat.perform_injections" = true ;
"extensions.webcompat.perform_ua_overrides" = true ;
"findbar.highlightAll" = true ;
"font.name.serif.x-western" = "FreeSerif" ;
"font.size.variable.x-western" = 20 ;
"media.eme.enabled" = true ;
"pref.browser.homepage.disable_button.current_page" = false ;
"print_printer" = "Mozilla Save to PDF" ;
"privacy.annotate_channels.strict_list.enabled" = true ;
"privacy.clearOnShutdown.cookies" = true ;
"privacy.clearOnShutdown.downloads" = false ;
"privacy.clearOnShutdown.formdata" = false ;
"privacy.clearOnShutdown.history" = false ;
"privacy.clearOnShutdown.offlineApps" = true ;
"privacy.clearOnShutdown.sessions" = false ;
"privacy.donottrackheader.enabled" = true ;
"privacy.firstparty.isolate" = true ;
"privacy.history.custom" = true ;
"privacy.purge_trackers.date_in_cookie_database" = 0 ;
"privacy.trackingprotection.emailtracking.enabled" = true ;
"privacy.trackingprotection.enabled" = true ;
"privacy.trackingprotection.socialtracking.enabled" = true ;
};
}; };
}; };
}; };

View File

@ -2,11 +2,11 @@
{ {
imports = [ imports = [
./firefox.nix ./home_firefox.nix
./packages.nix ./packages.nix
../../../modules/neovim.nix ../../../modules/neovim.nix
../../../modules/emacs.nix ../../../modules/emacs.nix
../../../modules/tmux.nix # ../../../modules/tmux.nix
../../../modules/git.nix ../../../modules/git.nix
]; ];
# Home Manager needs a bit of information about you and the paths it should # Home Manager needs a bit of information about you and the paths it should

View File

@ -0,0 +1,112 @@
{ config, lib, pkgs, ... }:
let
nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") {
inherit pkgs;
};
in
{
programs.firefox = {
enable = true ;
profiles.default = {
isDefault = true ;
extensions = lib.mkIf config.programs.firefox.enable
(with nur.repos.rycee.firefox-addons; [
french-dictionary
i-dont-care-about-cookies
ublock-origin
privacy-badger
keepassxc-browser
clearurls
decentraleyes
floccus
]);
search = {
force = true;
default = "Google";
engines = {
"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" ];
};
"NixOS Wiki" = {
urls = [{ template = "https://nixos.wiki/index.php?search={searchTerms}"; }];
iconUpdateURL = "https://nixos.wiki/favicon.png";
updateInterval = 24 * 60 * 60 * 1000;
definedAliases = [ "@nw" ];
};
"Wikipedia (en)".metaData.alias = "@wiki";
"Google".metaData.hidden = false;
"Amazon.com".metaData.hidden = true;
"Bing".metaData.hidden = true;
"eBay".metaData.hidden = true;
};
};
bookmarks = [
{
name = "DRI";
toolbar = true;
bookmarks = [
{
name = "wiki";
tags = [ "wiki" ];
keyword = "wiki";
url = "https://en.wikipedia.org/wiki/Special:Search?search=";
}
{
name = "AVV";
url ="https://v2.produhost.net/panel/16148/dashboard";
}
];
}
];
settings = {
settings = {
"browser.contentblocking.category" = "strict" ;
"browser.search.region" = "CH" ;
"browser.startup.homepage" = https://www.google.fr ;
"browser.toolbars.bookmarks.visibility" = "always";
"dom.security.https_only_mode" = true ;
"dom.security.https_only_mode_ever_enabled" = true ;
"extensions.blocklist.pingCountVersion" = -1 ;
"extensions.databaseSchema" = 35 ;
"extensions.ui.dictionary.hidden" = false ;
"extensions.ui.extension.hidden" = false ;
"extensions.ui.locale.hidden" = true ;
"extensions.ui.sitepermission.hidden" = true ;
"extensions.webcompat.enable_shims" = true ;
"extensions.webcompat.perform_injections" = true ;
"extensions.webcompat.perform_ua_overrides" = true ;
"findbar.highlightAll" = true ;
"font.name.serif.x-western" = "FreeSerif" ;
"font.size.variable.x-western" = 20 ;
"media.eme.enabled" = true ;
"pref.browser.homepage.disable_button.current_page" = false ;
"print_printer" = "Mozilla Save to PDF" ;
"privacy.annotate_channels.strict_list.enabled" = true ;
"privacy.clearOnShutdown.cookies" = true ;
"privacy.clearOnShutdown.downloads" = false ;
"privacy.clearOnShutdown.formdata" = false ;
"privacy.clearOnShutdown.history" = false ;
"privacy.clearOnShutdown.offlineApps" = true ;
"privacy.clearOnShutdown.sessions" = false ;
"privacy.donottrackheader.enabled" = true ;
"privacy.firstparty.isolate" = true ;
"privacy.history.custom" = true ;
"privacy.purge_trackers.date_in_cookie_database" = 0 ;
"privacy.trackingprotection.emailtracking.enabled" = true ;
"privacy.trackingprotection.enabled" = true ;
"privacy.trackingprotection.socialtracking.enabled" = true ;
};
};
} ;
} ;
}

View File

@ -143,7 +143,6 @@ nix.settings.auto-optimise-store = true;
options = "--delete-older-than 10d"; options = "--delete-older-than 10d";
}; };
programs.hyprland.enable = true;
programs = { programs = {
htop = { htop = {
enable = true; enable = true;

View File

@ -47,9 +47,8 @@
displayManager.gdm.enable = true; displayManager.gdm.enable = true;
desktopManager.gnome.enable = true; desktopManager.gnome.enable = true;
}; };
#ACTION=="remove", ENV{ID_VENDOR_ID}=="1050", ENV{ID_MODEL_ID}=="0407", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/alexandre/.Xauthority" RUN+="${pkgs.sudo}/bin/sudo -u alexandre ${pkgs.xdg-utils}/bin/xdg-screensaver lock"
udev.extraRules = '' udev.extraRules = ''
ACTION=="remove", ENV{ID_VENDOR_ID}=="1050", ENV{ID_MODEL_ID}=="0407", RUN+="${pkgs.sudo}/bin/sudo -u alexandre ${pkgs.dbus}/bin/dbus-send --type=method_call --dest=org.gnome.ScreenSaver /org/gnome/ScreenSaver org.gnome.ScreenSaver.Lock" ACTION=="remove", ENV{ID_VENDOR_ID}=="1050", ENV{ID_MODEL_ID}=="0407", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/alexandre/.Xauthority" RUN+="${pkgs.sudo}/bin/sudo -u alexandre ${pkgs.xdg-utils}/bin/xdg-screensaver lock"
''; '';
}; };
} }

View File

@ -1,20 +0,0 @@
{ config, pkgs, ... }:
{
programs.sway = {
enable = true;
wrapperFeatures.gtk = true; # so that gtk works properly
extraPackages = with pkgs; [
swaylock
swayidle
wl-clipboard
wf-recorder
mako # notification daemon
grim
slurp
alacritty
wofi
];
};
programs.waybar.enable = true;
services.xserver.layout = "fr";
}