diff --git a/hosts/common/desktop/chrome-executable.nix b/hosts/common/desktop/chrome-executable.nix new file mode 100644 index 0000000..6f209b5 --- /dev/null +++ b/hosts/common/desktop/chrome-executable.nix @@ -0,0 +1,11 @@ +{ + lib, + pkgs, + ... +}: let + inherit (lib.meta) getExe; +in { + environment.sessionVariables = { + CHROME_EXECUTABLE = getExe pkgs.ungoogled-chromium; + }; +} diff --git a/hosts/common/desktop/default.nix b/hosts/common/desktop/default.nix index aa5e451..ae2537c 100644 --- a/hosts/common/desktop/default.nix +++ b/hosts/common/desktop/default.nix @@ -1,6 +1,7 @@ _: { imports = [ ./bluetooth.nix + ./chrome-executable.nix ./fonts.nix ./kernel.nix ./malloc-perturb.nix diff --git a/hosts/del/configuration.nix b/hosts/del/configuration.nix index 0bfd6c6..c78b52f 100644 --- a/hosts/del/configuration.nix +++ b/hosts/del/configuration.nix @@ -35,10 +35,6 @@ in { extraGroups = [ "video" ]; }; - environment.sessionVariables = { - CHROME_EXECUTABLE = getExe pkgs.ungoogled-chromium; - }; - hardware = { sensor.iio.enable = true; # ipu6 = { diff --git a/hosts/hape/configuration.nix b/hosts/hape/configuration.nix index dd3b30d..b91d82d 100644 --- a/hosts/hape/configuration.nix +++ b/hosts/hape/configuration.nix @@ -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; diff --git a/hosts/niks/configuration.nix b/hosts/niks/configuration.nix index 7767b75..629e829 100644 --- a/hosts/niks/configuration.nix +++ b/hosts/niks/configuration.nix @@ -34,10 +34,6 @@ in { security.polkit.enable = true; - environment.sessionVariables = { - CHROME_EXECUTABLE = getExe pkgs.ungoogled-chromium; - }; - services = { pcscd.enable = true; diff --git a/hosts/work/configuration.nix b/hosts/work/configuration.nix index 23395c6..3a40bb1 100644 --- a/hosts/work/configuration.nix +++ b/hosts/work/configuration.nix @@ -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 = {