stylix icon indicating copy to clipboard operation
stylix copied to clipboard

DankMaterialShell: init target

Open khas-amir opened this issue 2 months ago • 3 comments

#1924


khas-amir avatar Oct 04 '25 22:10 khas-amir

I don't understand why the checks are failing.

khas-amir avatar Oct 28 '25 10:10 khas-amir

I don't understand why the checks are failing.

The locally working evaluations are failing in CI for some reason:

2025-11-04T14:39:20.6152550Z building '/nix/store/r3va1pk1gc1wnmn4ajr8f3vbqicxyx8r-dgop-0.1.7.drv'...
2025-11-04T14:39:20.8373284Z error: Nix daemon disconnected unexpectedly (maybe it crashed?)
2025-11-04T14:39:20.8490390Z WARNING:nix_fast_build:build testbed:dankMaterialShell:light exited with 1
[...]
2025-11-04T14:39:46.9992225Z error: Nix daemon disconnected unexpectedly (maybe it crashed?)
2025-11-04T14:39:47.0068660Z WARNING:nix_fast_build:build testbed:dankMaterialShell:dark exited with 1

-- https://github.com/nix-community/stylix/actions/runs/18920823815/job/54477479189?pr=1932

Maybe rebasing this PR on top of https://github.com/nix-community/stylix/pull/1961 once its CI passes, also resolves this CI failure.

trueNAHO avatar Nov 08 '25 15:11 trueNAHO

pulling from master again should fix the ci

0xda157 avatar Nov 18 '25 19:11 0xda157

dankmaterialshell has been upstreamed to nixpkgs now, so the flake input is probably no longer necessary, no?

skiletro avatar Dec 14 '25 00:12 skiletro

dankmaterialshell has been upstreamed to nixpkgs now, so the flake input is probably no longer necessary, no?

I suppose you are referring to upstream commit https://github.com/NixOS/nixpkgs/commit/b744e5ab0bb291629c75f7aa0d75cf65499137ef ("nixos/dms-greeter: add module"). However, testing the Home Manager module with the upstream flake probably means that we still need it:

diff --git a/modules/dankMaterialShell/testbeds/dankMaterialShell.nix b/modules/dankMaterialShell/testbeds/dankMaterialShell.nix
new file mode 100644
index 000000000..235dff4cb
--- /dev/null
+++ b/modules/dankMaterialShell/testbeds/dankMaterialShell.nix
@@ -0,0 +1,11 @@
+{ lib, ... }:
+{
+  stylix.testbed.ui = {
+    graphicalEnvironment = "hyprland";
+    command.text = "dms run";
+  };
+
+  home-manager.sharedModules = lib.singleton {
+    programs.dankMaterialShell.enable = true;
+  };
+}
diff --git a/stylix/testbed/default.nix b/stylix/testbed/default.nix
index cd43da058..c002f6aeb 100644
--- a/stylix/testbed/default.nix
+++ b/stylix/testbed/default.nix
@@ -33,6 +33,10 @@ let
               )
             )
             {
+              dankMaterialShell.home-manager.sharedModules = [
+                inputs.dankMaterialShell.homeModules.dankMaterialShell.default
+              ];
+
               inherit (inputs.spicetify-nix.nixosModules) spicetify;

               nixvim-integrated = inputs.nixvim.nixosModules.nixvim;

trueNAHO avatar Dec 15 '25 09:12 trueNAHO