-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for NixOS #206
Comments
I had tried to get lemurs to work on nixos with the updated flake/module on the nixosmodule branch, and I never actually quite got it to work back then. If I remember correctly I got it to show up and start however it wouldn't display any options for sessions to log in with. Wasn't sure what to do about it, and it was a separate branch that was evidently in progress, so I've just been using SDDM in the meantime. But I've learned a decent bit more about nixos in the recent months, so I would like to take a crack at it again. As for your issue, I took a scroll through your configs in your profile and don't see anything that jumps out at me as wrong with regard to lemurs. I haven't seen that format for executing the package before though, but I don't know much about flakes/building stuff with flakes so that could just be me lol, I'm assuming you're doing it like this because you're directly referencing the flake instead of adding it like as a module or something? Anyways, what exactly is going wrong with lemurs for you? Is it just not showing up for you or is it something else like what I was experiencing a while back? |
I'm pretty new to this too. Yes I'm trying to use the flake from this repo, instead of pkgs.lemurs from nixpkgs just to see if it builds and left it lying there since I'm not using it (benefit of specialisations). It builds and when I boot via that specialisation it goes to tty directly, I guess I need to use Can you share you config? It doesn't start at all, lemurs. |
Well my current configs aren't going to help you much since I removed the lemurs parts a long time ago, but I can show you what I had done:
inputs = {
..
# Forked the nixosmodule branch to edit (see below)
lemurs = { url = "github:NullCub3/lemurs/nixosmodule"; inputs.nixpkgs.follows = "nixpkgs"; };
# Probably a better way to do this would have been something like this
# and do all your modifications here, offline
# not 100% sure if this works though lol:
# lemurs = {
# url = "git+file:///home/username/clonelocation/lemurs";
# inputs.nixpkgs.follows = "nixpkgs";
# };
..
};
outputs =
{ self
, nixpkgs
, lemurs
, ...
}@inputs:
{
nixosConfigurations = {
systemName = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
system = "x86_64-linux";
modules = [
lemurs.nixosModules.default
./hosts/systemName/configuration.nix
];
};
};
};
{ lib, inputs, ... }:
{
imports = [
inputs.lemurs.nixosModules.default
];
services.displayManager.sddm.enable = lib.mkForce false;
services.displayManager.enable = true;
services.lemurs = {
enable = true;
#x11.enable = true;
wayland.enable = true;
};
} And with my fork of the nixosmodule branch all I had done was fix the existing shell issue here and here (although with it just replacing it anyways I don't think it actually matters) and then removing the couple of lines here pointing to the wayland and x sessions because they were causing issues for some reason and then with that lemurs would start up properly and everything but I don't think there was any way for me to log in or anything. Currently my fork of it doesn't actually have all of those changes made though, so you'll have to make your own. Hopefully this helps? |
I completely missed the nixosmodule branch thanks for posting your config |
Yes I see what you mean, It boots to lemurs and I see two options |
Hey there, I've been working on setting up the lemurs module for a while and in my research I came across these couple of repos and I was wondering if they might be able to help you out a bit: They seem to be mostly identical and I haven't tried out the module configs, but the person who made the second one was the one who added lemurs to nixpkgs |
Hey, thank you all for your effort. As you have seen, I had tried myself for some time to get lemurs to work on NixOS. I think the problem currently is to do with how lemurs relies on PAM to lower the privilege, but I am not 100% sure. I feel like I might need to copy something similar to what greetd is doing for it to work properly. |
I'm completely new to Nix & NixOS, but I was able to run lemurs in my NixOS setup. You can see the full config here: https://github.com/auvred/nixos-config/blob/3e3b86a988a25fd0bae13192a5c5e2c107c47de5/nixos-modules/lemurs/default.nix. I hope this helps someone! The main parts I've struggled with:
|
Oh that's fantastic! Very well documented, thank you for sharing that, that's incredibly useful. If it's okay with you, I'll just roll that into the improved module I'm working on at the moment. Do the shutdown/reboot keys work for you at all with that config? I haven't yet investigated what exactly lemurs wants to run for those but it clearly isn't finding the right commands. |
No, I just haven't tried pressing on them. After a little Line 103 in 9bc4297
It's pretty easy to patch. See this commit auvred/nixos-config@e304bf4. Perhaps this patch should be applied in lemurs itself, because this is the only place in the project that spawns not a |
Ah, makes sense. But yeah why don't you just open a pull request with that patch applied? Probably just got missed in fixing the assuming of binary locations if I had to guess. |
fyi: #208 just got merged. thanks to @coastalwhite 👍 |
my first attempt to have a nixos-module: NixOS/nixpkgs#329496 . the |
Okay sweet! I had stepped away from this for a bit as I wasn't sure exactly what config settings to include, and the next major step was to do some extensive testing to find and fix some bugs* but I have a functional module integrated into the flake right now. Power buttons work, login works, config, etc. The only couple of things I had wanted to do was figure out what the most common config options people wanted and also add some kind of system to add your own init scripts. Both of those would be an easy add I think. https://github.com/NullCub3/lemurs/tree/nixosmodule-dev *for example, trying to log back in with a wayland session after having logged out of one doesn't work? Not sure if that's a me issue or not. I also have not tested X11 since I don't have that set up on my system right now. |
By the way, as I mentioned here, the latest release for lemurs is very old and doesn't include any of the newer configuration for the X server paths, @coastalwhite would you be willing to publish a new release including all the newer changes so that it can be more easily merged into nixpkgs? |
@coastalwhite following up on this! I would like to start using Lemur from the nixpkgs. |
I have tried to get lemurs work using the provided flake and use
services.displayManager.execCmd
with no luck, couldn't get it working and wasn't seeing any error messages either in journalctl.I copied this user's config https://discourse.nixos.org/t/lemurs-dm-doesnt-work/45300
I did
execCmd = "${lemurs.packages.${system}.default}/bin/lemurs --no-log";
instead. While passing lemurs as aspecialArg
and using this repo as the flake.Also saw the recent work done on it previously #177 #199.
@antonmosich @NullCub3 could you share your nixos configs for lemurs if you got it working?
The text was updated successfully, but these errors were encountered: