Personal Nix setup
at main 604 B view raw
1{ lib, config, pkgs, helpers, ... }: 2 3with lib; 4let 5 cfg = config.modules.apps; 6in { 7 options.modules.apps.chromium = { 8 enable = mkOption { 9 default = false; 10 description = "Whether to enable (Ungoogled) Chromium."; 11 type = types.bool; 12 }; 13 }; 14 15 config.modules.apps.chromium = { 16 enable = if helpers.isLinux then (mkDefault false) else (mkForce false); 17 }; 18} // helpers.linuxAttrs { 19 config = mkIf (cfg.enable && cfg.chromium.enable) { 20 home.packages = with pkgs; [ 21 ungoogled-chromium 22 ]; 23 24 systemd.user.sessionVariables.NIXOS_OZONE_WL = mkDefault 1; 25 }; 26}