refactor(chrome): move relevant nixos config

This commit is contained in:
514fpv 2024-01-03 16:42:10 +08:00
parent 6fcd64d31b
commit ca9471bfb3
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
2 changed files with 9 additions and 7 deletions

9
home/chrome/nixos.nix Normal file
View file

@ -0,0 +1,9 @@
{ pkgs
, lib
, config
, ... }: with lib; let
gui = with config.faucet.gui; ( enable && session );
in {
users.home.persist.directories = mkIf gui [ ".config/google-chrome" ];
security.chromiumSuidSandbox.enable = mkIf gui true;
}