ChanServ changed the topic of #home-manager to: Support and discussion around the Home Manager project (https://github.com/nix-community/home-manager) | Logs: https://logs.nix.samueldr.com/home-manager
sorki is now known as srk
mcornick has quit [Ping timeout: 246 seconds]
rajivr has joined #home-manager
mcornick has joined #home-manager
lovesegfault has joined #home-manager
<lovesegfault> Why is `programs.waybar.settings` a list of submodules?
AlpineLlama has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
AlpineLlama has joined #home-manager
mcornick has quit [Quit: zzzz]
justan0theruser has quit [Ping timeout: 272 seconds]
ronthecookie has quit [Excess Flood]
ronthecookie has joined #home-manager
cole-h has quit [Ping timeout: 256 seconds]
patagonicus has quit [Ping timeout: 264 seconds]
patagonicus has joined #home-manager
<sumner> lovesegfault, I think it's so that you can have multiple bars?
<lovesegfault> sumner: Oh, maybe
<lovesegfault> I hope not, because then my work is useless :P
<{^_^}> nix-community/home-manager#1861 (by lovesegfault, 3 hours ago, open): waybar: make settings a submodule
patagonicus has quit [Quit: The Lounge - https://thelounge.chat]
<SumnerEvans[m]> lovesegfault: I see this:
<SumnerEvans[m]> finalConfiguration = map makeConfiguration cfg.settings
<SumnerEvans[m]> which indicates to me that it was intentionally trying to support multiple submodules in `settings`. Also, this would indicate that multiple bars can be created if you put them in an array in the config: https://github.com/Alexays/Waybar/wiki/Configuration#configuration-of-multiple-outputs
patagonicus has joined #home-manager
sumner has left #home-manager ["The Lounge - https://thelounge.chat"]
<lovesegfault> SumnerEvans[m]: hmm
<lovesegfault> That's a shame
<lovesegfault> I'll retract my PR
patagonicus has quit [Ping timeout: 260 seconds]
<DigitalKiwi> lovesegfault: what did you do
<lovesegfault> DigitalKiwi: I just made it a submodule instead of a list of submodules
<lovesegfault> but as SumnerEvans[m] points out that's insufficient
<lovesegfault> or, rather, worse
<DigitalKiwi> lovesegfault: maybe you can make a PR that updates the docs so that someone doesn't make the same mistake as you lol
<lovesegfault> is there a way for me to say programs.foo.settingThatsAListOfAttrSets = map (a: a // { foo = "bar"; }) config.programs.foo.settingThatsAListOfAttrSets?
<lovesegfault> (if I do that I get infinite recursion, ofc
patagonicus has joined #home-manager
alexarice[m] has quit [Quit: Idle for 30+ days]
Gordon[m]1 has quit [Quit: Idle for 30+ days]
<aaronjanse> I think so
<aaronjanse> lovesegfault I'd get a list of the attr names of that option, then use a builtin function (I forgot it's name, but it's used for forEachSystem in many flakes) to set your desired option for each of those attrs
<aaronjanse> I'd write the expression for you if my laptop would boot
<aaronjanse> Ooh, actually, try just removing the `a //` from the code you sent
<lovesegfault> aaronjanse: still infinite recursion
<lovesegfault> it's happening because I have a property being assigned a value constructed from itself
<lovesegfault> b/c lazy
<lovesegfault> Like, that I can't do this in that way makes sense to me
<lovesegfault> how else to do it idk :P
<aaronjanse> Yeah, that makes sense
<DigitalKiwi> nix strict when?
benkolera has quit [Quit: Connection closed for inactivity]
kenran has joined #home-manager
kenran_ has joined #home-manager
kenran has quit [Quit: Lost terminal]
__monty__ has joined #home-manager
kenran_ has quit [Quit: Lost terminal]
kenran has joined #home-manager
patagonicus2 has joined #home-manager
patagonicus2 has quit [Client Quit]
patagonicus2 has joined #home-manager
patagonicus has quit [Ping timeout: 246 seconds]
patagonicus2 is now known as patagonicus
patagonicus has quit [Quit: The Lounge - https://thelounge.chat]
patagonicus has joined #home-manager
kenran has quit [Quit: leaving]
cole-h has joined #home-manager
kenran has joined #home-manager
<siraben> DigitalKiwi: don't lists already eval their contents to WHNF for some reason
<siraben> Nix is like strict* with a disclaimer
<DigitalKiwi> i have absolutely no idea
mcornick has joined #home-manager
mcornick has quit [Quit: brb]
mcornick has joined #home-manager
rajivr has quit [Quit: Connection closed for inactivity]
mcornick has quit [Quit: bbl]
justanotheruser has joined #home-manager
benkolera has joined #home-manager
mcornick has joined #home-manager
mcornick has quit [Remote host closed the connection]
mcornick has joined #home-manager
greizgh has quit [Quit: greizgh]
greizgh has joined #home-manager
kenran has quit [Remote host closed the connection]
__monty__ has quit [Quit: leaving]