Open minego opened 1 month ago
(the formatting of your codeblock is kinda horribly broken, just FYI)
What exactly are you asking for?
From your english text, i'm gathering you want to generate a config without using home-manager, as in the program.niri.settings
parts? If so, you can use the internal settings module which is exposed through lib.internal
. you can see how this is done here in my config and the other half of that to genrate the file itself here in my config.
From your snippet, it looks more like you want to just make it point to an arbitrary location, in which case there isn't really an easy way to do it currently. I've been thinking of implementing an environment variable in niri that lets us (in nixos land) set it in a wrapper. The current -c
flag isn't reliable because it should still be overrideable with the prefix (it isn't) and also it preents you from using any subcommands. But i'll see what i can do on the other side of this to make this work well for you.
I'm not sure how I messed up the formatting, but I think you understood my meaning, and the answer was perfect!
I now have it working, using -c to point to my config. The PR you put up looks like a very nice improvement too! Thank you!
I'm going to reopen this because I want to create a better interface to perform this. Yes, you can pass --config
manually, but that's annoying if you use it more than once.
I'm going to reopen this because I want to create a better interface to perform this. Yes, you can pass
--config
manually, but that's annoying if you use it more than once.
Makes sense. I do have my setup working now, but I agree that it could be done in a much better way.
I appreciate this kind of dedication a lot. This kind of response makes me feel very good about using this project!
I'd really like to be able to use this module to generate my niri config, but I don't use home manager... I currently am doing this with: ``` nixpkgs.overlays = [ niri.overlays.niri