modularize CHROME_EXECUTABLE

This commit is contained in:
jacekpoz 2024-09-01 23:12:18 +02:00
parent ebcb1c283c
commit 8638aa2352
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
6 changed files with 12 additions and 18 deletions

View file

@ -0,0 +1,11 @@
{
lib,
pkgs,
...
}: let
inherit (lib.meta) getExe;
in {
environment.sessionVariables = {
CHROME_EXECUTABLE = getExe pkgs.ungoogled-chromium;
};
}

View file

@ -1,6 +1,7 @@
_: {
imports = [
./bluetooth.nix
./chrome-executable.nix
./fonts.nix
./kernel.nix
./malloc-perturb.nix

View file

@ -35,10 +35,6 @@ in {
extraGroups = [ "video" ];
};
environment.sessionVariables = {
CHROME_EXECUTABLE = getExe pkgs.ungoogled-chromium;
};
hardware = {
sensor.iio.enable = true;
# ipu6 = {

View file

@ -5,14 +5,9 @@
...
}: let
inherit (lib.attrsets) attrValues;
inherit (lib.meta) getExe;
in {
programs.dconf.enable = true;
environment.sessionVariables = {
CHROME_EXECUTABLE = getExe pkgs.ungoogled-chromium;
};
services = {
pcscd.enable = true;

View file

@ -34,10 +34,6 @@ in {
security.polkit.enable = true;
environment.sessionVariables = {
CHROME_EXECUTABLE = getExe pkgs.ungoogled-chromium;
};
services = {
pcscd.enable = true;

View file

@ -6,7 +6,6 @@
...
}: let
inherit (lib.attrsets) attrValues;
inherit (lib.meta) getExe;
inherit (config.poz.other.system) username;
in {
@ -34,10 +33,6 @@ in {
extraGroups = [ "video" "docker" ];
};
environment.sessionVariables = {
CHROME_EXECUTABLE = getExe pkgs.ungoogled-chromium;
};
hardware = {
sensor.iio.enable = true;
# ipu6 = {