NixOS: "Could not find "dms" config directory"
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
}
Please check the ~/.config/quickshell directory.
❯ ls -la ~/.config/quickshell/dms
"~/.config/quickshell/dms": No such file or directory (os error 2)
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:
Is systemctl status home-manager-super6.service related to vicinae? I get the output "Unit home-manager-super6.service could not be found".
home-manager-xxx.service The xxx is your username.
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.
What about under the user unit?
systemctl --user list-units | grep home also gives no output
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.
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.
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 I had the same issue with a ~/.config/quickshell/shell.qml lol. Thanks for the advice!