{ self, inputs, ... }: {
  flake.nixosModules.uConsoleConfiguration =
    {
      self,
      lib,
      pkgs,
      modulesPath,
      config,
      inputs,
      ...
    }:
    {
      # Workaround for NixOS/nixpkgs#398456.
      disabledModules = [ (modulesPath + "/rename.nix") ];

      imports = [
        # Workaround for NixOS/nixpkgs#398456.
        (lib.mkAliasOptionModule
          [ "environment" "checkConfigurationOptions" ]
          [ "_module" "check" ])

        self.nixosModules.uConsoleHardware
        inputs.home-manager.nixosModules.home-manager
        inputs.sops-nix.nixosModules.sops

        self.nixosModules.system
        self.nixosModules.desktop
        self.nixosModules.users

        self.nixosModules."client-services"
        ./_private/platform.nix
        ./_private/raspberrypi-utils-overlay.nix
        ./_private/wifi-brcmfmac.nix
        ./_private/services.nix
        ./_private/cockpit.nix
        ./_private/activation.nix
        ./_private/4g/default.nix
      ];

      nix.settings = {
        experimental-features = [ "nix-command" "flakes" ];
        require-sigs = false;
      };

      chiasson.system.librepods.enable = true;
      chiasson.system.palera1n.enable = true;

      # ─────────────────────── Display Server & Desktop ──────────────────────────

      chiasson.desktop = {
        # Pi 5 + RP1 DSI: see `modules/desktop/niri/pi5-workarounds.nix` and `chiasson.desktop.niri.raspberryPi5DrmWorkaround`.
        # After login, `niri msg outputs` — add `outputs."…"` under `extraSettings` only if you need mode/transform.
        niri = {
          enable = true;
          raspberryPi5DrmWorkaround = true;
        };
        defaultSession = "niri";
        shell = "dms";
      };
      chiasson.system = {
        audio.enable = true;
        networking = {
          hostName = "uConsole";
          networkManager = {
            enable = true;
            unmanaged = [ ];
          };
          wifi.tools.enabled = true;
        };
        extraPackages = with pkgs; [ gitMinimal ];
      };

      chiasson.users.enabled = [ "olivier" ];

      console.packages = with pkgs; [ terminus_font ];
    };
}
