DankMaterialShell icon indicating copy to clipboard operation
DankMaterialShell copied to clipboard

NixOS: "Could not find "dms" config directory"

Open mawkler opened this issue 1 year ago • 12 comments

Compositor

  • [ ] niri
  • [x] Hyprland
  • [ ] other

Distribution

NixOS

dms version

DankLinux Manager v0.1.2

Description

Hi! I'm trying to install this on NixOS using home-manager. Following the instructions in the README I created a dms config like shown below, but it doesn't seem to start automatically and running dms run yields the following:

❯ dms run

██████╗  █████╗ ███╗   ██╗██╗  ██╗
██╔══██╗██╔══██╗████╗  ██║██║ ██╔╝
██║  ██║███████║██╔██╗ ██║█████╔╝
██║  ██║██╔══██║██║╚██╗██║██╔═██╗
██████╔╝██║  ██║██║ ╚████║██║  ██╗
╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═══╝╚═╝  ╚═╝
  INFO  go: DMS API Server listening on: /run/user/1000/danklinux-5915.sock
  INFO  go: Protocol: JSON over Unix socket
  INFO  go: Request format: {"id": <any>, "method": "...", "params": {...}}
  INFO  go: Response format: {"id": <any>, "result": {...}} or {"id": <any>, "error": "..."}
  INFO  go: Freedesktop manager initialized
  INFO  go: Network manager initialized
  INFO  go: Loginctl manager initialized
Could not find "dms" config directory in any valid config path.
 ERROR  go: quickshell exited: exit status 255

As you can see, the dms binary got installed.

Could not find "dms" config directory in any valid config path tells me that home-manager hasn't generated a configuration, which I expect it should?

Solutions Tried

Giving up and creating a GitHub issue

Configuration Details

# dank-material-shell.nix
{ inputs, ... }: {
  imports = [ inputs.dankMaterialShell.homeModules.dankMaterialShell.default ];

  programs.dankMaterialShell.enable = true;
}
# flake.nix
{
	inputs = {
		dankMaterialShell.url = "github:AvengeMedia/DankMaterialShell";
		dankMaterialShell.inputs.nixpkgs.follows = "nixpkgs";
	};

	# ... the other stuff
}

mawkler avatar Oct 16 '25 20:10 mawkler

Please check the ~/.config/quickshell directory.

Image

bokicoder avatar Oct 17 '25 07:10 bokicoder

❯ ls -la ~/.config/quickshell/dms
"~/.config/quickshell/dms": No such file or directory (os error 2)

mawkler avatar Oct 17 '25 08:10 mawkler

The code at https://github.com/AvengeMedia/DankMaterialShell/blob/master/nix/default.nix#L102-L104 should create a symbolic link for the dms directory. Check this:

Image

bokicoder avatar Oct 17 '25 09:10 bokicoder

Is systemctl status home-manager-super6.service related to vicinae? I get the output "Unit home-manager-super6.service could not be found".

mawkler avatar Oct 17 '25 18:10 mawkler

home-manager-xxx.service The xxx is your username.

bokicoder avatar Oct 17 '25 19:10 bokicoder

I don't seem to have a home-manager service. This gives me no output:

systemctl list-units | grep home

Not sure if it's relevant, but I have home-manager installed as a standalone installation.

mawkler avatar Oct 17 '25 19:10 mawkler

What about under the user unit?

bokicoder avatar Oct 17 '25 19:10 bokicoder

systemctl --user list-units | grep home also gives no output

mawkler avatar Oct 17 '25 19:10 mawkler

I don't quite understand your situation. There must be a process that creates and maintains the symbolic link upon login. That's why I asked you to check this service — if this service has failed, it would explain the absence of the dms directory.

bokicoder avatar Oct 17 '25 19:10 bokicoder

I'm using a standalone installation of home-manager, which means that I call home-manager switch to generate my home configs, instead of them being generated together with systemctl-rebuild switch. systemctl is only mentioned in the NixOS module installation section, so perhaps my variant doesn't use a home-manager service?

To be clear my setup does work properly for a bunch of other home-manager modules like zsh, hyprpaper, caelestia, tealdeer, zen-browser, direnv, etc. , so I don't think the problem is an improper home-manager installation.

mawkler avatar Oct 18 '25 20:10 mawkler

I want to chime in here as someone with the same issue that @mawkler is facing - I have a NixOs machine with a standalone home-manager installation. What gets me here is that I actually have two machines - a desktop and a laptop. I build their configurations from the same repo, with the same home.nix for the home manager portion.

My laptop is new and I just got set up to my liking with DMS and it does not have this issue. I came back to my desktop which was previously not using DMS to try and build the same home-manager configuration on it. For some reason, it is not working here.

I've just booted my laptop and run the systemctl status home-manager-xxx.service command (with my username ofc) and that yields the same Unit home-manager-xxx.service could not be found. message. So I would say that DMS operating properly may not depend on that systemd service since it's working find there without it. Hopefully this is helpful information!

UPDATE: For my specific situation, I also had a shell.qml living in ~/.config/quickshell/ that I had written some time ago trying to create my own quickshell configuration from scratch. That dms symlink was also there, but I think quickshell was stopping at the shell.qml in the root of the directory, preventing dms from running properly.

FarrisSwisher avatar Oct 30 '25 02:10 FarrisSwisher

@FarrisSwisher I had the same issue with a ~/.config/quickshell/shell.qml lol. Thanks for the advice!

mawkler avatar Nov 02 '25 14:11 mawkler