DankMaterialShell icon indicating copy to clipboard operation
DankMaterialShell copied to clipboard

nix profile install does not provide any binary: How to install on NixOS?

Open Myverne opened this issue 1 year ago • 11 comments

Compositor

  • [X] niri
  • [ ] Hyprland
  • [ ] other

Description

Hello, the quickstart (curl -fsSL https://install.danklinux.com | sh) installer says that NixOS is not supported, but that there is a flake available. But nix profile install github:AvengeMedia/DankMaterialShell does not provide any binary as far as I can tell, most notably no dms cli tool.

Am I doing something wrong? I'm on a flake-based NixOS 25.05 install.

Thank you in advance, let me know if I can provide any more information.

Solutions Tried

See above.

Configuration Details

NixOS 25.05, flake-based

Screenshots/Recordings

Myverne avatar Sep 10 '25 17:09 Myverne

Yea I temporarily removed the nixos support from the installer just because the flake needs some update for hyprland, I'm not sure since I don't use nixos.

You can join the niri discord or matrix server and someone can help you there

bbedward avatar Sep 10 '25 17:09 bbedward

Does it make sense to add support for NixOS in the installer anyway? I would assume that any NixOS user would use the flake instead of the curl installer TBH

sezaru avatar Sep 10 '25 19:09 sezaru

Does it make sense to add support for NixOS in the installer anyway? I would assume that any NixOS user would use the flake instead of the curl installer TBH

Yea, not sure - the installer uses the flake itself so it's kinda just a wrapper for some things.

bbedward avatar Sep 10 '25 21:09 bbedward

I've installed quickshell from the unstable branch (https://search.nixos.org/packages?channel=unstable&show=quickshell&query=quickshell) successfully. sadly I don't recall all the issues I hit.

the only thing beyond that was to add environment.sessionVariables.QMLLS_BUILD_DIRS = "${pkgs.kdePackages.qtdeclarative}/lib/qt-6/qml:${pkgs.unstable.quickshell}/lib/qt-6/qml/";

though I'm not sure if was still needed.

mastoca avatar Sep 11 '25 15:09 mastoca

I'm running on NixOS unstable.

I installed the following packages from nixpkgs as usual (replace <username> with yours of course)

users.users.<username>.packages = with pkgs; [
    gammastep  #(if you want night mode)
    matugen       #(if you want auto themes)
    quickshell
];

Fonts

fonts.packages = with pkgs; [
    firacode
    inter
    material-symbols
];

For DMS, I just git cloned the repo:

git clone https://github.com/AvengeMedia/DankMaterialShell.git ~/.config/DMS/

Then start the shell with:

qs -c ~/.config/DMS/

To update the shell:

> cd ~/.config/DMS
> git pull

It's not declarative, but it works.

kevb1973 avatar Sep 16 '25 00:09 kevb1973

Here is my config in case it helps, you don't need to do anything custom tbh:

{
  pkgs,
  inputs,
  ...
}: let
  quickshell = inputs.quickshell.packages.${pkgs.system}.default;
in {
  imports = [
    inputs.dankMaterialShell.homeModules.dankMaterialShell
  ];

  programs.dankMaterialShell = {
    enable = true;
    enableSpawn = true;
    enableCalendarEvents = false;

    quickshell.package = quickshell;
  };

  # Service used by DMS
  services.cliphist = {
    enable = true;
    allowImages = true;
  };
}

And, of course, having the flake in your inputs:

    # Quickshell
    quickshell = {
      url = "git+https://git.outfoxxed.me/outfoxxed/quickshell";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    # Dank Material Shell - Quickshell
    dankMaterialShell = {
      url = "github:AvengeMedia/DankMaterialShell";
      inputs.nixpkgs.follows = "nixpkgs";
      inputs.quickshell.follows = "quickshell";
    };

sezaru avatar Sep 16 '25 02:09 sezaru

I've been trying sezaru's method. I keep running into various undefined variable errors:

error: undefined variable 'spawn'
       at /nix/store/kbjjdwga7rhfr6gxpmnk2914k9pn7aj3-source/flake.nix:129:39:
          128|                         binds = with config.lib.niri.actions; let
          129|                             dms-ipc = spawn "dms" "ipc"; 

I was able to troubleshoot through this one by enabling niri through home manager:

error: attribute 'niri' missing
     at /nix/store/kbjjdwga7rhfr6gxpmnk2914k9pn7aj3-source/flake.nix:128:38:
        127|                     (lib.mkIf cfg.enableKeybinds {
        128|                         binds = with config.lib.niri.actions; let
           |                                      ^
        129|                             dms-ipc = spawn "dms" "ipc";

GendersGod avatar Sep 19 '25 06:09 GendersGod

Here's how I got DMS working: Flake inputs

    quickshell = {
      url = "github:outfoxxed/quickshell";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    dms = {
      url = "github:AvengeMedia/DankMaterialShell";
      inputs.nixpkgs.follows = "nixpkgs";
      inputs.quickshell.follows = "quickshell";
    };
    dms-cli = {
      url = "github:AvengeMedia/danklinux";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    dgop = {
      url = "github:AvengeMedia/dgop";
      inputs.nixpkgs.follows = "nixpkgs";
    };

Flake outputs:

  outputs = { self, nixpkgs, ... }@inputs:
    {
      nixosConfigurations.flake = nixpkgs.lib.nixosSystem {
        specialArgs = { inherit inputs; };
        modules = [
          ./path/to/dms.nix

dms.nix

{ pkgs, inputs, ... }:

let
  dms = pkgs.stdenv.mkDerivation rec {
    pname = "dankmaterialshell";
    version = "v0.0.7";

    src = pkgs.fetchFromGitHub {
      owner = "AvengeMedia";
      repo = "DankMaterialShell";
      rev = "v0.0.7";
      sha256 = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    };

    buildInputs = [
      pkgs.qt515.qtbase
      pkgs.qt515.qtdeclarative
      pkgs.qt515.qtmultimedia
    ];
    dontWrapQtApps = true;

    installPhase = ''
      mkdir -p $out
      cp -r * $out/
    '';
  };
in
{
  environment.systemPackages = [
    inputs.quickshell.packages.${pkgs.system}.default
    inputs.dgop.packages.${pkgs.system}.default
    inputs.dms-cli.packages.${pkgs.system}.default
    dms
    pkgs.cava
    pkgs.wl-clipboard
    pkgs.cliphist
    pkgs.brightnessctl
    pkgs.matugen
    pkgs.gammastep
  ];
}

Add the fonts somewhere in your system

GendersGod avatar Sep 22 '25 06:09 GendersGod

I've been trying sezaru's method. I keep running into various undefined variable errors:

error: undefined variable 'spawn'
       at /nix/store/kbjjdwga7rhfr6gxpmnk2914k9pn7aj3-source/flake.nix:129:39:
          128|                         binds = with config.lib.niri.actions; let
          129|                             dms-ipc = spawn "dms" "ipc"; 

I was able to troubleshoot through this one by enabling niri through home manager:

error: attribute 'niri' missing
     at /nix/store/kbjjdwga7rhfr6gxpmnk2914k9pn7aj3-source/flake.nix:128:38:
        127|                     (lib.mkIf cfg.enableKeybinds {
        128|                         binds = with config.lib.niri.actions; let
           |                                      ^
        129|                             dms-ipc = spawn "dms" "ipc";

Are you using https://github.com/sodiboo/niri-flake? I think thats a prereq for the DMS home module and your error looks like its caused by the niri flake hm module missing.

Pacman99 avatar Sep 28 '25 06:09 Pacman99

Got it 100% functional in the following comment Edit: It was related to the qtwrap, if I recall

GendersGod avatar Sep 28 '25 06:09 GendersGod

Nice, also: https://github.com/AvengeMedia/DankMaterialShell/pull/242

purian23 avatar Oct 05 '25 02:10 purian23