16 lines
289 B
Nix
16 lines
289 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
with lib;
|
|
let
|
|
gui = with config.global.gpu; enable && session;
|
|
in
|
|
{
|
|
users.home.persist.directories = mkIf gui [ ".config/google-chrome" ];
|
|
security.chromiumSuidSandbox.enable = mkIf gui true;
|
|
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
|
}
|