From 3c225448e89ad18158dbeb35fbea978b58eb1256 Mon Sep 17 00:00:00 2001 From: lucy Date: Wed, 2 Sep 2026 00:44:40 +0200 Subject: [PATCH] add mangowm + config --- flake.lock | 8 ++++---- flake.nix | 1 + modules/hosts/base/configuration.nix | 1 + modules/programs/mango.nix | 13 +++++++++---- modules/programs/nixcord.nix | 4 +--- 5 files changed, 16 insertions(+), 11 deletions(-) diff --git a/flake.lock b/flake.lock index 8a0c507..c577544 100644 --- a/flake.lock +++ b/flake.lock @@ -366,11 +366,11 @@ "tt-discord": { "flake": false, "locked": { - "lastModified": 1775215536, - "narHash": "sha256-tgavgso+bdyG9VRWR4D0qLqD7zsuaoLXh1CAL5SDgVg=", + "lastModified": 1788292449, + "narHash": "sha256-YiNFAa/w72k/b/aqf+TFHvqNvIx/MsXEaKJVzg92DhQ=", "ref": "refs/heads/main", - "rev": "b6d440de0ce02178b2e9670e610a18fa4786ebc6", - "revCount": 5, + "rev": "dcf9db7194b5281a67f5af1452f9d8eb0ca78811", + "revCount": 6, "type": "git", "url": "https://git.lucy.rip/lucy/tinted-discord.git" }, diff --git a/flake.nix b/flake.nix index 215c68a..436603b 100644 --- a/flake.nix +++ b/flake.nix @@ -45,6 +45,7 @@ let boilerplate = [ ./modules/theming + mango.nixosModules.mango home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; diff --git a/modules/hosts/base/configuration.nix b/modules/hosts/base/configuration.nix index f2a81b0..1624b21 100644 --- a/modules/hosts/base/configuration.nix +++ b/modules/hosts/base/configuration.nix @@ -21,6 +21,7 @@ time.timeZone = "Europe/Berlin"; i18n.defaultLocale = "en_US.UTF-8"; services.displayManager.gdm.enable = true; + programs.mango.enable = true; programs.niri = { enable = true; }; diff --git a/modules/programs/mango.nix b/modules/programs/mango.nix index 5672bb7..5b7011c 100644 --- a/modules/programs/mango.nix +++ b/modules/programs/mango.nix @@ -1,9 +1,10 @@ { - pkgs, - lib, - inputs, + config, ... }: +let + c = config.scheme; + in { home.file.screenshot = { enable = true; @@ -14,9 +15,13 @@ wayland.windowManager.mango = { enable = true; settings = { + rootcolor = "0x${c.base00}ff"; + bordercolor = "0x${c.base02}ff"; + focuscolor = "0x${c.base0D}ff"; + dropcolor = "0x${c.base09}ff"; cursor_theme = "macOS"; cursor_size = 24; - border_radius = 16; + border_radius = 20; animations = 1; layer_animations = 0; animation_type_open = "slide"; diff --git a/modules/programs/nixcord.nix b/modules/programs/nixcord.nix index 480aa90..6ea8222 100644 --- a/modules/programs/nixcord.nix +++ b/modules/programs/nixcord.nix @@ -10,9 +10,7 @@ discord.enable = false; enable = true; vesktop.enable = true; - # tt-discord's templates/config.yaml uses the filetype/output keys, which - # base16.nix can't read; give it the extension directly so it skips that file. - quickCss = builtins.readFile (config.scheme); + quickCss = builtins.readFile (config.scheme inputs.tt-discord); config = { useQuickCss = true; plugins = {