{ config, pkgs, ... }:

{
  nixpkgs.config.allowUnfree = true;

  nixpkgs.overlays = [ (import ./overlay) ];

  nix.useSandbox = true;

  system.autoUpgrade = {
    enable = true;
    channel = https://nixos.org/channels/nixos-unstable;
    dates = "0/1:00:00"; # means "every hour on the hour"
  };

  # run nix-collect-garbage automatically
  nix.gc = {
    automatic = true;
    dates = "0/1:00:00"; # means "every hour on the hour"
  };

  system.stateVersion = "unstable";
}

{ config, pkgs, ... }:

{
  nixpkgs.config.allowUnfree = true;

  nixpkgs.overlays = [ (import ./overlay) ];

  nix.useSandbox = true;

  system.stateVersion = "unstable";
}

Remove automatic nixos-rebuild switch and nix-collect-garbage services. Could they be the cause of the firefox window-switching issue?
Remove automatic nixos-rebuild switch and nix-collect-garbage services. Could they be the cause of the firefox window-switching issue?
