Compare commits

...

3 Commits

Author SHA1 Message Date
LUCAZEAU Alexandre c755ef21b7 ADD packages
ADD firefox configuration
2023-10-25 22:19:00 +02:00
LUCAZEAU Alexandre 7cd30aba59 Merge branch 'main' of git.atlanticaweb.fr:alexandre/nixos-config 2023-10-25 19:00:39 +02:00
LUCAZEAU Alexandre 88d76a48f4 modifié : firefox.nix
modifié :         home.nix
	modifié :         ../nixos/configuration.nix
	modifié :         ../../../modules/neovim.nix
2023-10-25 19:00:10 +02:00
9 changed files with 237 additions and 53 deletions

View File

@ -0,0 +1,8 @@
{ config, pkgs, ... }:
{
#configDir = "/home/alexandre/git/nixos-config/hosts/dell-5590/nixpkgs/";
programs.bat = {
enable = true;
# } // (import "${configDir}/bat");
} // (import "/home/alexandre/git/nixos-config/hosts/dell-5590/home-manager/bat");
}

View File

@ -0,0 +1,7 @@
{
config = {
decorations = "auto";
paging = "auto";
theme = "Nord";
};
}

View File

@ -1,6 +1,5 @@
{ config, pkgs, theme, ... }: { config, lib, pkgs, ... }:
{ {
programs.firefox = { programs.firefox = {
enable = true; enable = true;
package = pkgs.wrapFirefox pkgs.firefox-unwrapped { package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
@ -60,56 +59,42 @@
}; };
}; };
bookmarks { bookmarks = [
[ {
{ name = "wikipedia";
name = "wikipedia"; tags = [ "wiki" ];
tags = [ "wiki" ]; keyword = "wiki";
keyword = "wiki"; url = "https://en.wikipedia.org/wiki/Special:Search?search=%s&go=Go";
url = "https://en.wikipedia.org/wiki/Special:Search?search=%s&go=Go"; }
} {
{ name = "kernel.org";
name = "kernel.org"; url ="https://v2.produhost.net/panel/16148/dashboard";
url = "https://www.kernel.org"; }
} {
{ name = "Nix sites";
name = "Nix sites"; toolbar = true;
toolbar = true; bookmarks = [
bookmarks = [ {
{ name = "homepage";
name = "homepage"; url = "https://nixos.org/";
url = "https://nixos.org/"; }
} {
{ name = "wiki";
name = "wiki"; tags = [ "wiki" "nix" ];
tags = [ "wiki" "nix" ]; url = "https://nixos.wiki/";
url = "https://nixos.wiki/"; }
} ];
]; }
} ];
]
"https://v2.produhost.net/panel/16148/dashboard"
};
"browser.toolbars.bookmarks.visibility" = "never";
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
ublock-origin
privacy-badger
keepassxc-browser
clearurls
decentraleyes
floccus
languagetool
disconnect
];
settings = { settings = {
"general.smoothScroll" = true; "general.smoothScroll" = true;
}; };
# extraConfig = ''
# user_pref("full-screen-api.ignore-widgets", true); extraConfig = ''
# user_pref("media.ffmpeg.vaapi.enabled", true); user_pref("full-screen-api.ignore-widgets", true);
# user_pref("media.rdd-vpx.enabled", true); user_pref("media.ffmpeg.vaapi.enabled", true);
# ''; user_pref("media.rdd-vpx.enabled", true);
'';
}; };
}; };
}; };

View File

@ -2,7 +2,11 @@
{ {
imports = [ imports = [
./firefox.nix ./home_firefox.nix
./packages.nix
../../../modules/neovim.nix
../../../modules/tmux.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
# manage. # manage.

View File

@ -0,0 +1,105 @@
{ 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 = "wikipedia";
tags = [ "wiki" ];
keyword = "wiki";
url = "https://en.wikipedia.org/wiki/Special:Search?search=";
}
{
name = "kernel.org";
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 ;
"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

@ -0,0 +1,46 @@
{ pkgs, ... }: {
programs.go.enable = true;
home.packages = with pkgs; [
jq
nextcloud-client
libreoffice
rofi
poppler_utils
brightnessctl
chromium
gimp
scrot
papirus-icon-theme
ganttproject-bin
audio-recorder
pandoc
hugo
whois
inkscape
feh
ispell
aspellDicts.fr
nix-direnv
keepassxc
direnv
texlive.combined.scheme-full
zola
exa
python3
unar # like 7z
nmap
libnotify
sublime-music
drawio
lsd
guake
dig
vlc
pinta
# python39Packages.grip
linphone
graphviz
freecad
];
nixpkgs.config.permittedInsecurePackages = [ "ferdi-5.8.1" ];
}

View File

@ -10,6 +10,7 @@
./hardware-configuration.nix ./hardware-configuration.nix
./services.nix ./services.nix
./extra_hw.nix ./extra_hw.nix
./gnome.nix
]; ];
boot = { boot = {
@ -70,7 +71,7 @@
description = "alexandre"; description = "alexandre";
extraGroups = [ "wheel" "networkmanager" "docker" "libvirtd" "scanner" "plocate" "lp" ]; extraGroups = [ "wheel" "networkmanager" "docker" "libvirtd" "scanner" "plocate" "lp" ];
packages = with pkgs; [ packages = with pkgs; [
firefox #firefox
gitAndTools.gitFull gitAndTools.gitFull
]; ];
}; };
@ -168,7 +169,7 @@
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.05"; # Did you read the comment? system.stateVersion = "23.05"; # Did you read the comment?
nixpkgs.config.packageOverrides = pkgs: { nixpkgs.config.packageOverrides = pkgs: {
nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") { nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") {
inherit pkgs; inherit pkgs;
}; };

View File

@ -0,0 +1,29 @@
{ config, pkgs, ... }:
{
services.udev.packages = with pkgs; [ gnome.gnome-settings-daemon ];
environment.gnome.excludePackages = (with pkgs; [
gnome-photos
gnome-tour
]) ++ (with pkgs.gnome; [
cheese # webcam tool
gnome-music
gedit # text editor
epiphany # web browser
totem # video player
tali # poker game
iagno # go game
hitori # sudoku game
atomix # puzzle game
]);
environment.systemPackages = with pkgs; [
pkgs.gnome3.gnome-tweaks
gnomeExtensions.appindicator
gnomeExtensions.yakuake
gnomeExtensions.workspace-indicator-2
gnomeExtensions.wireless-hid
gnomeExtensions.vitals
];
}

View File

@ -1,6 +1,5 @@
{ pkgs, config, ... }: { { pkgs, config, ... }: {
programs.neovim = { programs.neovim = {
enable = true ;
viAlias = true; viAlias = true;
vimAlias = true; vimAlias = true;
vimdiffAlias = true; vimdiffAlias = true;