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
MmeQuignon has quit [Ping timeout: 240 seconds]
rajivr has joined #home-manager
o1lo01ol_ has joined #home-manager
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol_ has quit [Ping timeout: 264 seconds]
mcornick has quit [Remote host closed the connection]
mcornick has joined #home-manager
malSet has joined #home-manager
AlpineLlama has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
AlpineLlama has joined #home-manager
mcornick has quit [Quit: zzzzzz]
cole-h has quit [Quit: Goodbye]
cole-h has joined #home-manager
cole-h has quit [Ping timeout: 260 seconds]
o1lo01ol1o has joined #home-manager
o1lo01ol1o has quit [Ping timeout: 264 seconds]
iyefrat has joined #home-manager
<iyefrat> i feel like this question probably gets asked a lot, but i can't find an answer online. why doesn't home-manager have a nice alias for rollbacks?
<iyefrat> it feels like a `home-manager rollback 33` would be relatively easy to implement and would effectively just do the steps in the readme for you
<madonius[m]> iyefrat if you feel comfortable in doing so you could try implementing it
cole-h has joined #home-manager
<madonius[m]> I would like such a thing
<iyefrat> madonius[m]: i mean yeah i totally would but since it feels like something that is not that hard tm i was wondering if there is a specific reason it hasn't been done yet other than nobody getting around to it yet
<madonius[m]> maybe this should/could be discussed in an issue?
<iyefrat> issue #1114 does this but there isn't a reply
<{^_^}> https://github.com/nix-community/home-manager/issues/1114 (by Shou, 48 weeks ago, open): Feature Request: `rollback` command
<iyefrat> oh sweet, didn't know the bot does that
<rycee> I think it is mainly that nobody has felt strongly enough to implement it yet.
<iyefrat> neato
<iyefrat> i'll try to get around to it
<iyefrat> expect a PR sometime between like two weeks from now and the heat death of the universe
<rycee> Also, it is not entirely clear how to do it in a good way. If you do a rollback to a specific generation then I think the most intuitive would be that then that generation number is active but the current setup would create a new generation number.
<madonius[m]> @rycee you mean in terms of "forking"
<iyefrat> i think that the current approach is the correct one, perhaps a good middle ground would be a way to see which previous generations are the same as the current one
<iyefrat> i think having generation numbers not strictly increase leads to more confusion when trying to reason about previous generations because the chronological order gets a bit fuzzy
<iyefrat> on the other hand nix-env does this by explicitly going back to a previous generation so maybe i'm wrong
<iyefrat> or at least, this difference is not that major and consistency between nix and home-manager is more important
o1lo01ol1o has joined #home-manager
iyefrat has quit [Ping timeout: 260 seconds]
chisui has joined #home-manager
chisui has quit [Ping timeout: 240 seconds]
o1lo01ol_ has joined #home-manager
__monty__ has joined #home-manager
o1lo01ol1o has quit [Ping timeout: 245 seconds]
chisui has joined #home-manager
MmeQuignon has joined #home-manager
<chisui> Hey, I'm trying to write some config for thunderbird. It's pretty similar to firefox, so I just copied it. I need to create a directory though. How do I do that?
<chisui> It seems that everything in `home.file` is just passed to `writeTextFile`. So I can't create an empty directory?
<rycee> chisui: Use something like `home.file."path/to/directory/.keep".text = "";`
<chisui> rycee It would be nice to have something like `home.file."path".directory = true;` but I think that hack has to do for now
<rycee> Consider it the official way to make Home Manager create directories. It is unlikely anything else will be supported.
<chisui> ok
<rycee> It's too tricky to track directories for removal, using a `.keep` file is much more robust.
<__monty__> chisui: Why is it so important HM creates the directory? Most programs just create the directories they need if they're not present, especially when it comes to caching.
<chisui> thunderbird crashes if the profile directory doesn't exist
<__monty__> That sounds like a problem that should be resolved in the thunderbird expression, not HM. Shouldn't it work for users who haven't even heard of HM?
cole-h has quit [Read error: Connection reset by peer]
<chisui> __monty__ normally thunderbird creates that directory itself but, like firefox. that directory contains a random hash. So you have to create an entry in `Profile.ini` and ensure that the directory exists if you want a deterministic location for the profile.
<__monty__> Ok, then it sounds like the thunderbird module should be more like the firefox module?
<chisui> It is. I copied it. But the setup is slightly different, so depending on the configuration the profile directory may be empty. In that case it's not created. Granted, If the directory is empty it doesn't make much sense to manage profiles through home-manager but I just want to prevent random crashes.
cole-h has joined #home-manager
koluacik has joined #home-manager
<koluacik> How can I configure my NixOS system to use the latest git version of XMonad managed by home-manager? I already have XMonad working but the latest release of xmonad-contrib does not have some of stuff I need.
<rycee> koluacik: Try creating an overlay that updates the relevant packages in `haskellPackages`.
<rycee> At least, I think that is the easiest and most correct way.
<koluacik> That was my initial guess too, but I don't know how to do that. Any pointers on where I can learn creating overlays?
<__monty__> Though I seem to recall you need some special sauce for haskellPackages.
<rycee> For Haskell packages in particular it may be a bit tricky if I recall correctly, maybe ask in #nixos?
<__monty__> Oof, the haskell infrastructure documentation took a nosedive o.O
<__monty__> Not including it in the manual is a huge mistake imo. And the site it's now hosted at isn't very clear and hardly searchable at all : /
<koluacik> Thanks, looking into both of them.
<chisui> I'm writing options for message filters for thunderbird. These are stored in a strange format that I don't want to expose to the home-manager user. But they can become somewhat complex. To abstract this a little I would like to create a small EDSL to create these filters. My current idea is to create an option like `filters = edsl: with edsl;
<chisui> ...;`. Does this design fit with the home-manager philosophy?
<chisui> I'm writing options for message filters for thunderbird. These are stored in a strange format that I don't want to expose to the home-manager user. But they can become somewhat complex. To abstract this a little I would like to create a small EDSL to create these filters. My current idea is to create an option like `filters = edsl: with edsl;
<chisui> [...];`. Does this design fit with the home-manager philosophy?
<chisui> Another alternative would be to provide some string lists that are concatenated in a certain way.
nf has quit [Quit: Fairfarren.]
nf has joined #home-manager
nf has quit [Quit: Fairfarren.]
nf has joined #home-manager
o1lo01ol_ has quit [Remote host closed the connection]
o1lo01ol1o has joined #home-manager
hplar is now known as aei
aei is now known as hplar
o1lo01ol1o has quit [Remote host closed the connection]
svrana has quit [Quit: WeeChat 2.9]
svrana has joined #home-manager
chisui has quit [Quit: Connection closed]
nf has quit [Quit: Fairfarren.]
nf has joined #home-manager
nf has quit [Quit: Fairfarren.]
nf has joined #home-manager
nf has quit [Quit: Fairfarren.]
chisui has joined #home-manager
nf has joined #home-manager
ardumont has quit [Ping timeout: 240 seconds]
nf has quit [Client Quit]
nf has joined #home-manager
ardumont has joined #home-manager
chisui has quit [Quit: Connection closed]
chisui has joined #home-manager
<Reventlov> Do someone in there manage thunderbird accounts via home-manager / nix ?
<__monty__> I think chisui is working on exactly that?
<Reventlov> oh lol
<Reventlov> I didn't read chisui messages and like, exactly what I'm trying to do too
<Reventlov> (well for accounts at least)
<chisui> I'm finalizing the PR as we speak ;)
<chisui> although, the first version wont include a way to manage accounts, only message filters.
rajivr has quit [Quit: Connection closed for inactivity]
chisui has quit [Quit: Connection closed]
chisui has joined #home-manager
drakonis has quit [Quit: ZNC 1.8.2 - https://znc.in]
drakonis has joined #home-manager
heywoodlh has quit [Quit: ZNC 1.8.2 - https://znc.in]
heywoodlh has joined #home-manager
o1lo01ol1o has joined #home-manager
o1lo01ol1o has quit [Ping timeout: 245 seconds]
heywoodlh has quit [Quit: ZNC 1.8.2 - https://znc.in]
heywoodlh has joined #home-manager
<chisui> Woa, the MacOS CI tests take really long.
srk has quit [Ping timeout: 268 seconds]
srk has joined #home-manager
<chisui> Why, is that test compiling libc?
<chisui> *libc++
numkem has quit [Quit: The Lounge - https://thelounge.chat]
numkem has joined #home-manager
mcornick has joined #home-manager
MmeQuignon has quit [Ping timeout: 272 seconds]
__monty__ has quit [Quit: leaving]
chisui has quit [Quit: Connection closed]
chisui89 has joined #home-manager
MmeQuignon has joined #home-manager