Jump to content

Mango: Difference between revisions

From Official NixOS Wiki
Cktiel (talk | contribs)
Article creation
 
Cktiel (talk | contribs)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:


== Installation ==
== Installation ==
As of August 2026, the mango module is not present by default in NixOS and [[Home Manager]] and needs to be imported using [[Flakes]].
If you don't want to configure mango using nix, you can just add mango to your systemPackages:


Here is an example flake:
{{file|3=environment.systemPackages = with pkgs; [
    mango
];
|name=/etc/nixos/configuration.nix|lang=nix}}


{{file|3={
If you would like to configure mango declaratively using nix and home-manager, you should install the [https://mangowm.github.io/docs/installation#nixos official flake]. Add it to your inputs:
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
mango = {
      url = "github:mangowm/mango";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };


  outputs = { self, nixpkgs, mango, ... } @ inputs:
{{file|3=inputs = {
   {
  nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst";
nixosConfigurations.HOSTNAME = nixpkgs.lib.nixosSystem {
   mango = {
  specialArgs = { inherit inputs; };
    url = "github:mangowm/mango";
  modules = [ ./configuration.nix ];
    inputs.nixpkgs.follows = "nixpkgs";
};
   };
   };
}|name=flake.nix|lang=nix}}
};|name=flake.nix|lang=nix}}


== Configuration ==
== Configuration ==
Line 31: Line 26:
     inputs.mango.hmModules.mango
     inputs.mango.hmModules.mango
   ];
   ];
   wayland.windowManager.mango= {
   wayland.windowManager.mango= {
     enable = true;
     enable = true;

Latest revision as of 18:26, 5 November 2026

Mango is a lightweight, modern Wayland compositor based on dwl. Mango provides features like animations, IPC, different layouts and visual effects.

Installation

If you don't want to configure mango using nix, you can just add mango to your systemPackages:

❄︎ /etc/nixos/configuration.nix
environment.systemPackages = with pkgs; [
    mango
];

If you would like to configure mango declaratively using nix and home-manager, you should install the official flake. Add it to your inputs:

❄︎ flake.nix
inputs = {
  nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst";
  mango = {
    url = "github:mangowm/mango";
    inputs.nixpkgs.follows = "nixpkgs";
  };
};

Configuration

After adding the new input, mango can be configured using Home Manager:

❄︎ home.nix
{ config, pkgs, inputs, ... }:
{
  imports = [
    inputs.mango.hmModules.mango
  ];

  wayland.windowManager.mango= {
    enable = true;
    settings = {
      animations = 0;
      bordercolor="0x595959aa";
      bind = [
        "SUPER,r,reload_config"
        "SUPER,space,spawn,fuzzel"
        "SUPER,Return,spawn,foot"
      ];
    };
  };
}

Extra documentation can be found on the official website.