Update home-manager + add Firefox
All checks were successful
check / check (push) Successful in 35s

This commit is contained in:
Florian RICHER 2024-06-25 20:07:01 +02:00
parent 468bd046ee
commit bf45f5ebe3
5 changed files with 70 additions and 5 deletions

View file

@ -54,11 +54,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1719037157, "lastModified": 1719180626,
"narHash": "sha256-aOKd8+mhBsLQChCu1mn/W5ww79ta5cXVE59aJFrifM8=", "narHash": "sha256-vZAzm5KQpR6RGple1dzmSJw5kPivES2heCFM+ZWkt0I=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "cd886711998fe5d9ff7979fdd4b4cbd17b1f1511", "rev": "6b1f90a8ff92e81638ae6eb48cd62349c3e387bb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -99,12 +99,28 @@
"type": "github" "type": "github"
} }
}, },
"nur": {
"locked": {
"lastModified": 1719335339,
"narHash": "sha256-YxXZckTrfSfvUlF7sFVonFyJ5CqlWQkjuhA+/2+na9Q=",
"owner": "nix-community",
"repo": "NUR",
"rev": "c019a0ab8a21c5e84a440f34ef43947a0c9ebc34",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "NUR",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"agenix": "agenix", "agenix": "agenix",
"home-manager": "home-manager", "home-manager": "home-manager",
"nix-flatpak": "nix-flatpak", "nix-flatpak": "nix-flatpak",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs",
"nur": "nur"
} }
}, },
"systems": { "systems": {

View file

@ -3,6 +3,7 @@
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nur.url = github:nix-community/NUR;
home-manager = { home-manager = {
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";
@ -20,6 +21,7 @@
outputs = inputs@{ outputs = inputs@{
nixpkgs, nixpkgs,
nur,
home-manager, home-manager,
agenix, agenix,
nix-flatpak, nix-flatpak,
@ -41,6 +43,7 @@
./hosts/${s.name}/configuration.nix ./hosts/${s.name}/configuration.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
agenix.nixosModules.default agenix.nixosModules.default
{ nixpkgs.overlays = [ nur.overlay ]; }
{ {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;

View file

@ -8,6 +8,7 @@
modules.home = { modules.home = {
apps = { apps = {
chromium.enable = true; chromium.enable = true;
firefox.enable = true;
flatpak.enable = true; flatpak.enable = true;
jetbrainsToolbox.enable = true; jetbrainsToolbox.enable = true;
kitty.enable = true; kitty.enable = true;

View file

@ -3,8 +3,9 @@
{ {
imports = [ imports = [
./chromium ./chromium
./firefox
./flatpak ./flatpak
./jetbrainsToolbox ./jetbrainsToolbox
./kitty ./kitty
]; ];
} }

View file

@ -0,0 +1,44 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.modules.home.apps.firefox;
in
{
options.modules.home.apps.firefox = {
enable = mkEnableOption ''
Enable firefox with my custom configurations
'';
};
config = mkIf cfg.enable {
programs.firefox = {
enable = true;
nativeMessagingHosts = [
pkgs.kdePackages.plasma-browser-integration
];
profiles = {
perso = {
id = 0;
name = "Perso";
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
ublock-origin
bitwarden
floccus
plasma-integration
istilldontcareaboutcookies
darkreader
];
settings = {
# Enable multi-pip
"media.videocontrols.picture-in-picture.allow-multiple" = true;
};
};
};
};
};
}