Compare commits
4 Commits
bba08e6d7b
...
a9baa4d7e1
Author | SHA1 | Date |
---|---|---|
Alexandre LUCAZEAU | a9baa4d7e1 | |
Alexandre LUCAZEAU | 99fb4d9338 | |
Alexandre LUCAZEAU | 1a6aaf8b88 | |
Alexandre LUCAZEAU | 4f31d688a9 |
|
@ -1,35 +1,25 @@
|
|||
{ 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 ;
|
||||
package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
|
||||
extraPolicies = {
|
||||
CaptivePortal = false;
|
||||
DisableFirefoxStudies = true;
|
||||
DisablePocket = true;
|
||||
DisableTelemetry = true;
|
||||
DisableFirefoxAccounts = false;
|
||||
NoDefaultBookmarks = true;
|
||||
OfferToSaveLogins = true;
|
||||
OfferToSaveLoginsDefault = true;
|
||||
PasswordManagerEnabled = true;
|
||||
FirefoxHome = {
|
||||
Search = true;
|
||||
Pocket = false;
|
||||
Snippets = false;
|
||||
TopSites = false;
|
||||
Highlights = false;
|
||||
};
|
||||
UserMessaging = {
|
||||
ExtensionRecommendations = false;
|
||||
SkipOnboarding = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
profiles = {
|
||||
alexandre = {
|
||||
id = 0;
|
||||
name = "alexandre";
|
||||
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";
|
||||
|
@ -61,40 +51,69 @@
|
|||
|
||||
bookmarks = [
|
||||
{
|
||||
name = "wikipedia";
|
||||
tags = [ "wiki" ];
|
||||
keyword = "wiki";
|
||||
url = "https://en.wikipedia.org/wiki/Special:Search?search=%s&go=Go";
|
||||
}
|
||||
{
|
||||
name = "kernel.org";
|
||||
url ="https://v2.produhost.net/panel/16148/dashboard";
|
||||
}
|
||||
{
|
||||
name = "Nix sites";
|
||||
name = "DRI";
|
||||
toolbar = true;
|
||||
bookmarks = [
|
||||
{
|
||||
name = "homepage";
|
||||
url = "https://nixos.org/";
|
||||
name = "wiki";
|
||||
tags = [ "wiki" ];
|
||||
keyword = "wiki";
|
||||
url = "https://en.wikipedia.org/wiki/Special:Search?search=";
|
||||
}
|
||||
{
|
||||
name = "wiki";
|
||||
tags = [ "wiki" "nix" ];
|
||||
url = "https://nixos.wiki/";
|
||||
name = "AVV";
|
||||
url ="https://v2.produhost.net/panel/16148/dashboard";
|
||||
}
|
||||
{
|
||||
name = "Alexandre";
|
||||
url = "https://bbb.produhost.net/b/ale-1a8-984";
|
||||
}
|
||||
{
|
||||
name = "David";
|
||||
url = "https://bbb.produhost.net/b/dav-5aj-hxx";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
settings = {
|
||||
"general.smoothScroll" = true;
|
||||
};
|
||||
|
||||
extraConfig = ''
|
||||
user_pref("full-screen-api.ignore-widgets", true);
|
||||
user_pref("media.ffmpeg.vaapi.enabled", true);
|
||||
user_pref("media.rdd-vpx.enabled", true);
|
||||
'';
|
||||
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 ;
|
||||
};
|
||||
};
|
||||
} ;
|
||||
} ;
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
./home_firefox.nix
|
||||
./firefox.nix
|
||||
./packages.nix
|
||||
../../../modules/neovim.nix
|
||||
../../../modules/emacs.nix
|
||||
# ../../../modules/tmux.nix
|
||||
../../../modules/tmux.nix
|
||||
../../../modules/git.nix
|
||||
];
|
||||
# Home Manager needs a bit of information about you and the paths it should
|
||||
|
|
|
@ -1,112 +0,0 @@
|
|||
{ 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 ;
|
||||
};
|
||||
};
|
||||
} ;
|
||||
} ;
|
||||
}
|
|
@ -143,6 +143,7 @@ nix.settings.auto-optimise-store = true;
|
|||
options = "--delete-older-than 10d";
|
||||
};
|
||||
|
||||
programs.hyprland.enable = true;
|
||||
programs = {
|
||||
htop = {
|
||||
enable = true;
|
||||
|
|
|
@ -47,8 +47,9 @@
|
|||
displayManager.gdm.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 = ''
|
||||
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"
|
||||
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"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
{ 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";
|
||||
}
|
Loading…
Reference in New Issue