instantOS / instantNIX

instantOS tools packaged for the Nix package manager (and NixOS)
MIT License
32 stars 7 forks source link

documentation: missing instructions (and/or session files?) how a session can be defined and started from a display manager #20

Closed ppenguin closed 3 years ago

ppenguin commented 3 years ago

I just installed nixos and directly installed the NUR and instantnix system wide (from /etc/nixos/configuration.nix), with lightdm as the chosen DM. How can the necessary xsession definition be included in such a setup (preferably declaratively so as to enable a consistent default install experience)?

con-f-use commented 3 years ago

Glad you tried out instantNIX!

Currently, you should start from https://github.com/instantOS/instantNIX/blob/dev/utils/configuration.nix so that the maximum amount of stuff works. I plan to make most of what instantSETTINGS offers configurable right from the system configuration file (i.e. /etx/nixos/configuration.nix). So everything configurable in instantSETTINGS would also have a NixOS option via the NixOS module system. Then I want to have an overarching config option like services.xserver.windowManager.instantnix.enable = true that would set defaults beind the scenes and take care of packages to install. But I already have a day job :wink: . I'll invest that time when instantOS is out of beta and stable and relatively unchanging.

To answer your question, the example NixOS config has the xsession configured at around line 88.

Btw. there is also a wiki article describing the recommend mode of installation.

Help with the module system would be very appreciated but so is testing. So thanks already.

Also, this is not technically a bug.

ppenguin commented 3 years ago

Thanks for the quick info, I'll look into it! Sorry for the bug label, would have been unintended, it was apparently auto-selected and in my haste I hadn't really paid attention to it :wink: .