feat(firefox): Move csshacks to subflake

This commit is contained in:
uttarayan21
2024-04-04 21:59:37 +05:30
parent 89e53f3bd8
commit 451f5821e6
3 changed files with 26 additions and 42 deletions

View File

@@ -6,22 +6,14 @@
programs.firefox = { programs.firefox = {
enable = device.hasGui; enable = device.hasGui;
profiles.default = { profiles.default = {
userChrome = let userChrome =
# TODO: Move to subflake
csshacks = pkgs.fetchFromGitHub {
owner = "MrOtherGuy";
repo = "firefox-csshacks";
rev = "master";
sha256 = "sha256-XJ+MTEADzOsCIh0I8EAxbtIpDHfMJsN68sKBy7/1l60=";
};
in
/* /*
css css
*/ */
'' ''
/* @import url(${csshacks}/chrome/toolbars_below_content.css); */ /* @import url(${pkgs.csshacks}/chrome/toolbars_below_content.css); */
/* @import url(${csshacks}/chrome/scrollable_menupopups.css); */ /* @import url(${pkgs.csshacks}/chrome/scrollable_menupopups.css); */
/* @import url(${csshacks}/chrome/linux_gtk_window_control_patch.css); */ /* @import url(${pkgs.csshacks}/chrome/linux_gtk_window_control_patch.css); */
''; '';
extensions = with pkgs.nur.repos.rycee.firefox-addons; [ extensions = with pkgs.nur.repos.rycee.firefox-addons; [
privacy-badger privacy-badger

38
flake.lock generated
View File

@@ -197,6 +197,22 @@
"type": "github" "type": "github"
} }
}, },
"csshacks": {
"flake": false,
"locked": {
"lastModified": 1712075115,
"narHash": "sha256-asxjHWOHWK9Hrf7qF4D+KfFlxQOpPK8oYgdbR1b4gxc=",
"owner": "MrOtherGuy",
"repo": "firefox-csshacks",
"rev": "daf2d17b3607085d51e30a0da01bf9b713672827",
"type": "github"
},
"original": {
"owner": "MrOtherGuy",
"repo": "firefox-csshacks",
"type": "github"
}
},
"devshell": { "devshell": {
"inputs": { "inputs": {
"flake-utils": "flake-utils_8", "flake-utils": "flake-utils_8",
@@ -1587,22 +1603,6 @@
"type": "github" "type": "github"
} }
}, },
"nvim-devdocs_2": {
"flake": false,
"locked": {
"lastModified": 1703234230,
"narHash": "sha256-qqtBNfBBGyxMsHL3UXu+MF/UyfVAubG+6fnwLK9kY9Q=",
"owner": "luckasRanarison",
"repo": "nvim-devdocs",
"rev": "521d24661ffe6d1ba025debea2675c765a9c1ee1",
"type": "github"
},
"original": {
"owner": "luckasRanarison",
"repo": "nvim-devdocs",
"type": "github"
}
},
"pre-commit-hooks": { "pre-commit-hooks": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_4", "flake-compat": "flake-compat_4",
@@ -1877,15 +1877,15 @@
}, },
"subflakes": { "subflakes": {
"inputs": { "inputs": {
"csshacks": "csshacks",
"flake-utils": "flake-utils_15", "flake-utils": "flake-utils_15",
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
], ]
"nvim-devdocs": "nvim-devdocs_2"
}, },
"locked": { "locked": {
"lastModified": 1, "lastModified": 1,
"narHash": "sha256-PaTXAe/aVsZln/cKtHPXfiWIL+VwFxRiSQU0CRmglLI=", "narHash": "sha256-FXBBslH2CHFNTtc3NQmcoJAcjGz/c9/+k6oJegUaYig=",
"path": "./flakes", "path": "./flakes",
"type": "path" "type": "path"
}, },

View File

@@ -3,8 +3,8 @@
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
nvim-devdocs.url = "github:luckasRanarison/nvim-devdocs"; csshacks.url = "github:MrOtherGuy/firefox-csshacks";
nvim-devdocs.flake = false; csshacks.flake = false;
}; };
outputs = { outputs = {
nixpkgs, nixpkgs,
@@ -12,15 +12,7 @@
... ...
} @ inputs: let } @ inputs: let
overlay = final: prev: { overlay = final: prev: {
vimPlugins = csshacks = inputs.csshacks;
prev.vimPlugins
// {
nvim-devdocs = final.pkgs.vimUtils.buildVimPlugin {
pname = "nvim-devdocs";
version = "0.4.1";
src = inputs.nvim-devdocs;
};
};
}; };
in {overlays.default = overlay;}; in {overlays.default = overlay;};
} }