forked from aylac.top/nixcfg
this repo has no description

helium module!!

aylac.top 8a2082aa e70f6be1

verified
Changed files
+97 -95
homes
modules
home
programs
+3 -3
flake.lock
···
]
},
"locked": {
-
"lastModified": 1757109107,
-
"narHash": "sha256-EiwgbwyzQs7ntOV4w+3L39CIVHBur0IGSWSMsPLeYkY=",
"owner": "ayla6",
"repo": "pkgs",
-
"rev": "3b3adb4d52381b68277bbd2f8afa30b5e3250280",
"type": "github"
},
"original": {
···
]
},
"locked": {
+
"lastModified": 1757127879,
+
"narHash": "sha256-YAHmt9eYEQV3Qkvx0/xHoyx6gpJjaErhcz4rMff2+wM=",
"owner": "ayla6",
"repo": "pkgs",
+
"rev": "12254a35e0008188a76a1263ef1f9d3844d59631",
"type": "github"
},
"original": {
+5 -5
flake.nix
···
inputs.nixpkgs.follows = "nixpkgs";
};
copyparty.url = "github:9001/copyparty";
disko = {
···
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.4.2";
-
inputs.nixpkgs.follows = "nixpkgs";
-
};
-
-
aylapkgs = {
-
url = "github:ayla6/pkgs";
inputs.nixpkgs.follows = "nixpkgs";
};
···
inputs.nixpkgs.follows = "nixpkgs";
};
+
aylapkgs = {
+
url = "github:ayla6/pkgs";
+
inputs.nixpkgs.follows = "nixpkgs";
+
};
+
copyparty.url = "github:9001/copyparty";
disko = {
···
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.4.2";
inputs.nixpkgs.follows = "nixpkgs";
};
+1 -1
homes/ayla/default.nix
···
myHome = {
programs = {
-
chromium.enable = true;
fastfetch.enable = true;
firefox = {
enable = true;
···
myHome = {
programs = {
+
helium.enable = true;
fastfetch.enable = true;
firefox = {
enable = true;
+1
modules/home/default.nix
···
./profiles
./snippets
inputs.agenix.homeManagerModules.default
];
home = {
···
./profiles
./snippets
inputs.agenix.homeManagerModules.default
+
inputs.aylapkgs.homeModules.default
];
home = {
-85
modules/home/programs/chromium/default.nix
···
-
# https://github.com/isabelroses/dotfiles/blob/ed6d3765ffb7dcfe67540f111f23d51a0d9617d5/modules/home/programs/chromium.nix#L16
-
{
-
config,
-
lib,
-
pkgs,
-
...
-
}: let
-
inherit
-
(lib)
-
concatLists
-
enableFeature
-
;
-
in {
-
options.myHome.programs.chromium.enable = lib.mkEnableOption "chromium web browser";
-
-
config = lib.mkIf config.myHome.programs.chromium.enable {
-
programs.chromium = {
-
enable = true;
-
-
# unfortunately the extensions thing doesn't work here, i should probably make an actual module for helium
-
#extensions = [
-
# {id = "mdjildafknihdffpkfmmpnpoiajfjnjd";} # consent-o-matic
-
# {id = "clngdbkpkpeebahjckkjfobafhncgmne";} # stylus
-
# {id = "jinjaccalgkegednnccohejagnlnfdag";} # violentmonkey
-
# {id = "nngceckbapebfimnlniiiahkandclblb";} # bitwarden
-
#
-
# rec {
-
# id = "oladmjdebphlnjjcnomfhhbfdldiimaf"; # libredirect
-
# version = "3.2.0";
-
#
-
# crxPath = pkgs.fetchurl {
-
# url = "https://github.com/libredirect/browser_extension/releases/download/v${version}/libredirect-${version}.crx";
-
# sha256 = "sha256-Neja0pJ7rMV+riINeMcWxU2SzZ+ZETp6bV1MaYLHz1Y=";
-
# };
-
# }
-
#
-
# rec {
-
# id = "lkbebcjgcmobigpeffafkodonchffocl"; # bypass-paywalls-clean
-
# version = "4.1.8.0";
-
#
-
# crxPath = pkgs.fetchurl {
-
# url = #"https://gitflic.ru/project/magnolia1234/bpc_uploads/blob/raw?file=bypass-paywalls-chrome-clean-${version}.crx";
-
# sha256 = "sha256-BRpwrV8AN1eOG2IXfk24gyEd8OzwK1BJqDdoxlgX8o4=";
-
# };
-
# }
-
#];
-
-
package = pkgs.helium.override {
-
# https://github.com/secureblue/hardened-chromium
-
# https://github.com/secureblue/secureblue/blob/e500f078efc5748d5033a881bbbcdcd2de95a813/files/system/usr/etc/chromium/chromium.conf.md
-
commandLineArgs = concatLists [
-
# Aesthetics
-
[
-
"--gtk-version=4"
-
]
-
-
# Wayland
-
[
-
"--ozone-platform=wayland"
-
"--enable-features=UseOzonePlatform"
-
]
-
-
# Performance
-
[
-
(enableFeature true "gpu-rasterization")
-
(enableFeature true "oop-rasterization")
-
(enableFeature true "zero-copy")
-
"--ignore-gpu-blocklist"
-
]
-
-
# Etc
-
[
-
"--disk-cache=$XDG_RUNTIME_DIR/chromium-cache"
-
(enableFeature false "reading-from-canvas")
-
"--no-first-run"
-
"--disable-wake-on-wifi"
-
"--disable-breakpad"
-
"--no-default-browser-check"
-
"--enable-features=TouchpadOverscrollHistoryNavigation"
-
]
-
];
-
};
-
};
-
};
-
}
···
+1 -1
modules/home/programs/default.nix
···
imports = [
./anki
./aria2
-
./chromium
./fastfetch
./firefox
./helix
./lutris
./git
···
imports = [
./anki
./aria2
./fastfetch
./firefox
+
./helium
./helix
./lutris
./git
+86
modules/home/programs/helium/default.nix
···
···
+
# https://github.com/isabelroses/dotfiles/blob/ed6d3765ffb7dcfe67540f111f23d51a0d9617d5/modules/home/programs/chromium.nix#L16
+
{
+
config,
+
lib,
+
pkgs,
+
...
+
}: let
+
inherit
+
(lib)
+
concatLists
+
enableFeature
+
;
+
in {
+
options.myHome.programs.helium.enable = lib.mkEnableOption "helium web browser";
+
+
config = lib.mkIf config.myHome.programs.helium.enable {
+
programs.helium = {
+
enable = true;
+
+
extensions = [
+
{id = "mdjildafknihdffpkfmmpnpoiajfjnjd";} # consent-o-matic
+
{id = "clngdbkpkpeebahjckkjfobafhncgmne";} # stylus
+
{id = "jinjaccalgkegednnccohejagnlnfdag";} # violentmonkey
+
{id = "nngceckbapebfimnlniiiahkandclblb";} # bitwarden
+
{id = "mnjggcdmjocbbbhaepdhchncahnbgone";} # sponsorblock
+
{id = "pncfbmialoiaghdehhbnbhkkgmjanfhe";} # ublacklist
+
+
rec {
+
id = "oladmjdebphlnjjcnomfhhbfdldiimaf"; # libredirect
+
version = "3.2.0";
+
+
crxPath = pkgs.fetchurl {
+
url = "https://github.com/libredirect/browser_extension/releases/download/v${version}/libredirect-${version}.crx";
+
sha256 = "sha256-Neja0pJ7rMV+riINeMcWxU2SzZ+ZETp6bV1MaYLHz1Y=";
+
};
+
}
+
+
rec {
+
id = "lkbebcjgcmobigpeffafkodonchffocl"; # bypass-paywalls-clean
+
version = "4.2.0.0";
+
+
crxPath = pkgs.fetchurl {
+
url = "https://gitflic.ru/project/magnolia1234/bpc_uploads/blob/raw?file=bypass-paywalls-chrome-clean-${version}.crx";
+
sha256 = "sha256-B++3RussuUv3AtDi2MnZH+SojCPOMnOXWW8GI3pI8lk=";
+
};
+
}
+
];
+
+
package = pkgs.helium.override {
+
# https://github.com/secureblue/hardened-chromium
+
# https://github.com/secureblue/secureblue/blob/e500f078efc5748d5033a881bbbcdcd2de95a813/files/system/usr/etc/chromium/chromium.conf.md
+
commandLineArgs = concatLists [
+
# Aesthetics
+
[
+
"--gtk-version=4"
+
]
+
+
# Wayland
+
[
+
"--ozone-platform=wayland"
+
"--enable-features=UseOzonePlatform"
+
]
+
+
# Performance
+
[
+
(enableFeature true "gpu-rasterization")
+
(enableFeature true "oop-rasterization")
+
(enableFeature true "zero-copy")
+
"--ignore-gpu-blocklist"
+
]
+
+
# Etc
+
[
+
"--disk-cache=$XDG_RUNTIME_DIR/helium-cache"
+
(enableFeature false "reading-from-canvas")
+
"--no-first-run"
+
"--disable-wake-on-wifi"
+
"--disable-breakpad"
+
"--no-default-browser-check"
+
"--enable-features=TouchpadOverscrollHistoryNavigation"
+
]
+
];
+
};
+
};
+
};
+
}