From 45a9d03a814e9b01286adc3d289d3616e47d8a47 Mon Sep 17 00:00:00 2001 From: Romain Paquet Date: Tue, 7 Apr 2026 19:35:03 +0000 Subject: [PATCH] dms: add plugins declaratively --- flake.lock | 21 +++++++++++++++++++++ flake.nix | 3 +++ machines/haze/niri.nix | 19 +++++++++++++++++-- 3 files changed, 41 insertions(+), 2 deletions(-) diff --git a/flake.lock b/flake.lock index cbbf3a4..e7b723f 100644 --- a/flake.lock +++ b/flake.lock @@ -160,6 +160,26 @@ "type": "github" } }, + "dms-plugin-registry": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1775611601, + "narHash": "sha256-qHO90a2KcPMjGoNRNlHwfbC+53DNcDZ+Ff7pnyNL5Hc=", + "owner": "AvengeMedia", + "repo": "dms-plugin-registry", + "rev": "db6733400494c83307a4ef91724839ea61082f10", + "type": "github" + }, + "original": { + "owner": "AvengeMedia", + "repo": "dms-plugin-registry", + "type": "github" + } + }, "flake-compat": { "flake": false, "locked": { @@ -439,6 +459,7 @@ "clan-core": "clan-core", "direnv-instant": "direnv-instant", "disko": "disko_2", + "dms-plugin-registry": "dms-plugin-registry", "flake-parts": "flake-parts_2", "home-manager": "home-manager", "lanzaboote": "lanzaboote", diff --git a/flake.nix b/flake.nix index e79a23d..2defe20 100644 --- a/flake.nix +++ b/flake.nix @@ -65,5 +65,8 @@ lanzaboote.url = "github:nix-community/lanzaboote/v1.0.0"; lanzaboote.inputs.nixpkgs.follows = "nixpkgs"; + + dms-plugin-registry.url = "github:AvengeMedia/dms-plugin-registry"; + dms-plugin-registry.inputs.nixpkgs.follows = "nixpkgs"; }; } diff --git a/machines/haze/niri.nix b/machines/haze/niri.nix index e47300d..8225b2f 100644 --- a/machines/haze/niri.nix +++ b/machines/haze/niri.nix @@ -1,5 +1,12 @@ -{ pkgs, ... }: { + self, + pkgs, + config, + ... +}: +{ + imports = [ self.inputs.dms-plugin-registry.modules.default ]; + programs.niri.enable = true; environment.systemPackages = with pkgs; [ @@ -12,5 +19,13 @@ environment.sessionVariables.NIXOS_OZONE_WL = "1"; - programs.dms-shell.enable = true; + programs.dms-shell = { + enable = true; + plugins = { + dankBatteryAlerts.enable = config.services.upower.enable; + dankHooks.enable = true; + dankKDEConnect.enable = true; + musicLyrics.enable = true; + }; + }; }