This commit is contained in:
parent
468bd046ee
commit
bf45f5ebe3
5 changed files with 70 additions and 5 deletions
24
flake.lock
24
flake.lock
|
@ -54,11 +54,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1719037157,
|
||||
"narHash": "sha256-aOKd8+mhBsLQChCu1mn/W5ww79ta5cXVE59aJFrifM8=",
|
||||
"lastModified": 1719180626,
|
||||
"narHash": "sha256-vZAzm5KQpR6RGple1dzmSJw5kPivES2heCFM+ZWkt0I=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "cd886711998fe5d9ff7979fdd4b4cbd17b1f1511",
|
||||
"rev": "6b1f90a8ff92e81638ae6eb48cd62349c3e387bb",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -99,12 +99,28 @@
|
|||
"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": {
|
||||
"inputs": {
|
||||
"agenix": "agenix",
|
||||
"home-manager": "home-manager",
|
||||
"nix-flatpak": "nix-flatpak",
|
||||
"nixpkgs": "nixpkgs"
|
||||
"nixpkgs": "nixpkgs",
|
||||
"nur": "nur"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
nur.url = github:nix-community/NUR;
|
||||
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
|
@ -20,6 +21,7 @@
|
|||
|
||||
outputs = inputs@{
|
||||
nixpkgs,
|
||||
nur,
|
||||
home-manager,
|
||||
agenix,
|
||||
nix-flatpak,
|
||||
|
@ -41,6 +43,7 @@
|
|||
./hosts/${s.name}/configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
agenix.nixosModules.default
|
||||
{ nixpkgs.overlays = [ nur.overlay ]; }
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
modules.home = {
|
||||
apps = {
|
||||
chromium.enable = true;
|
||||
firefox.enable = true;
|
||||
flatpak.enable = true;
|
||||
jetbrainsToolbox.enable = true;
|
||||
kitty.enable = true;
|
||||
|
|
|
@ -3,8 +3,9 @@
|
|||
{
|
||||
imports = [
|
||||
./chromium
|
||||
./firefox
|
||||
./flatpak
|
||||
./jetbrainsToolbox
|
||||
./kitty
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
44
modules/home/apps/firefox/default.nix
Normal file
44
modules/home/apps/firefox/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue