firefox config

This commit is contained in:
foglar 2024-11-01 21:54:24 +01:00
parent ed421eb672
commit 185cf7c330
5 changed files with 76 additions and 2 deletions

View File

@ -1,3 +1,8 @@
# dotfiles
- my personal nix dotfiles
- my personal nix dotfiles in flake
```bash
git clone https://git.foglar.tech/foglar/dotfiles.git $HOME/dotfiles --depth 1
sudo nixos-rebuild switch ~/dotfiles#laptop
```

View File

@ -120,6 +120,29 @@
"type": "github"
}
},
"firefox-addons": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"dir": "pkgs/firefox-addons",
"lastModified": 1730451285,
"narHash": "sha256-riTKP5+xXtWnNiGrnttTylrVYW9umOduK7/eoqXEmFU=",
"owner": "rycee",
"repo": "nur-expressions",
"rev": "f6b3852c3b3e79786d33f5f5a4b4429dbe03d566",
"type": "gitlab"
},
"original": {
"dir": "pkgs/firefox-addons",
"owner": "rycee",
"repo": "nur-expressions",
"type": "gitlab"
}
},
"flake-compat": {
"flake": false,
"locked": {
@ -153,6 +176,21 @@
}
},
"flake-utils": {
"locked": {
"lastModified": 1629284811,
"narHash": "sha256-JHgasjPR0/J1J3DRm4KxM4zTyAj4IOJY8vIl75v/kPI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "c5d161cc0af116a2e17f54316f0bf43f0819785c",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_2": {
"inputs": {
"systems": [
"stylix",
@ -536,6 +574,7 @@
"root": {
"inputs": {
"Hyprspace": "Hyprspace",
"firefox-addons": "firefox-addons",
"home-manager": "home-manager",
"hyprland": "hyprland",
"nixpkgs": "nixpkgs_2",
@ -550,7 +589,7 @@
"base16-helix": "base16-helix",
"base16-vim": "base16-vim",
"flake-compat": "flake-compat_2",
"flake-utils": "flake-utils",
"flake-utils": "flake-utils_2",
"gnome-shell": "gnome-shell",
"home-manager": "home-manager_2",
"nixpkgs": "nixpkgs_3",

View File

@ -23,7 +23,13 @@
};
stylix.url = "github:danth/stylix";
zen-browser.url = "github:MarceColl/zen-browser-flake";
firefox-addons = {
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {

View File

@ -0,0 +1,22 @@
{
config,
pkgs,
lib,
inputs,
...
}: {
options = {
firefox.enable = lib.mkEnableOption "enable Firefox module";
};
config = lib.mkIf config.firefox.enable {
programs.firefox = {
enable = true;
profiles.default = {
extensions = with inputs.firefox-addons.packages."x86_64-linux"; [
ublock-origin
];
};
};
};
}

View File

@ -7,12 +7,14 @@
./programming/programming.nix
./games.nix
./terminal_tools.nix
./applications/firefox.nix
#./packages/applications.nix
];
terminal_tools.enable = lib.mkDefault true;
programming.enable = lib.mkDefault true;
games.enable = lib.mkDefault false;
firefox.enable = lib.mkDefault true;
#programs.neovim.enable = true;
home.packages = with pkgs; [