{ pkgs, ... }:
{
  nix.package = pkgs.nixVersions.unstable;
  services.nix-daemon.enable = true;
  nix.gc.automatic = true;
  nix.settings.auto-optimise-store = true;
  nix.settings.trusted-users = [
    "root"
    "weethet"
  ];
  nix.settings.use-xdg-base-directories = true;
  nix.settings.experimental-features = "nix-command flakes";
  security.pam.enableSudoTouchIdAuth = true;

  environment.systemPackages = [ ];

  programs.fish.enable = true;

  fonts = {
    fontDir.enable = true;
    fonts = with pkgs; [
      fira-code-nerdfont
      monaspace
      open-sans
      victor-mono
      inter
    ];
  };

  users.users.weethet = {
    name = "weethet";
    home = "/Users/weethet";
  };

  homebrew = {
    enable = true;
    onActivation = {
      cleanup = "uninstall";
      autoUpdate = true;
      upgrade = true;
    };
    global.autoUpdate = false;
    taps = [
      "homebrew/cask-versions"
      "homebrew/cask-fonts"
      # "railwaycat/emacsmacport"
    ];
    brews = [ "mint" ];
    casks = import ./homebrew-casks.nix;
    masApps = {
      "Icon Set Creator" = 939343785;
      "Wayback Machine" = 1472432422;
      "HSE App X" = 1527320487;
      "Consent-O-Matic" = 1606897889;
      "AdGuard for Safari" = 1440147259;
      Bitwarden = 1352778147;
      CotEditor = 1024640650;
      Boop = 1518425043;
      Numbers = 409203825;
      Pages = 409201541;
      Keynote = 409183694;
      Vimari = 1480933944;
      Xcode = 497799835;
      "Microsoft To Do" = 1274495053;
      TestFlight = 899247664;
    };
  };

  system.stateVersion = 4;
}