rycee changed the topic of #home-manager to: Support and discussion around the Home Manager project (https://github.com/rycee/home-manager) | Logs: https://logs.nix.samueldr.com/home-manager
wolfman154 has joined #home-manager
wolfman154 has quit [Client Quit]
wolfman154 has joined #home-manager
wolfman154 has quit [Client Quit]
lovesegfault has quit [Quit: WeeChat 2.4]
wolfman154 has joined #home-manager
wolfman154 has quit [Client Quit]
linarcx has joined #home-manager
linarcx has quit [Client Quit]
wolfman154 has joined #home-manager
<wolfman154> rycee: are you there? I need some help with a rebuild problem
<wolfman154> When I did a rebuild xmonad and terminator finally started working which is great, but my custom keyboard layout is not loading, I have a custom keyboard layout called keymap.nix which is a sub module to configuration.nix, do I need to create my custom keyboard layout in home-manager instead for it to work?
wolfman154 has quit [Quit: Mutter: www.mutterirc.com]
wolfman154 has joined #home-manager
wolfman154 has quit [Client Quit]
linarcx has joined #home-manager
wolfman154 has joined #home-manager
wolfman154 has quit [Client Quit]
linarcx has quit [Remote host closed the connection]
linarcx has joined #home-manager
wolfman154 has joined #home-manager
<wolfman154> rycee: so here’s the 4 links of my nix config files
<wolfman154> rycee: I have to go do some errands so I’ll be back in a couple of hours
wolfman154 has quit [Quit: Mutter: www.mutterirc.com]
<NickHu> Does anyone here know what StatusNotifierItem is? I can't make sense of it other than it's some sort of successor to existing systray stuff
linarcx has quit [Read error: Connection reset by peer]
linarcx has joined #home-manager
linarcx has quit [Remote host closed the connection]
thePirateKing has joined #home-manager
<NickHu> Would anyone here be willing to help me write a module for https://github.com/gauteh/gmailieer? I'm not sure how to proceed because its configuration seems very interactive
linarcx has joined #home-manager
linarcx has quit [Quit: WeeChat 2.4]
pie___ has joined #home-manager
pie__ has quit [Remote host closed the connection]
linarcx has joined #home-manager
wolfman154 has joined #home-manager
<wolfman154> rycee: I’m back on have you checked the 4 links?
wolfman154 has quit [Quit: Mutter: www.mutterirc.com]
wolfman154 has joined #home-manager
wolfman154 has quit [Quit: Mutter: www.mutterirc.com]
wolfman154 has joined #home-manager
thePirateKing has quit [Quit: Leaving]
<rycee> Nick Hu: From what I can tell the configuration ends up as a simple JSON file: https://github.com/gauteh/gmailieer/blob/d677db768e5a0162b61a51ce5ace03a799c36edb/lieer/local.py#L90-L108
<rycee> Nick Hu: But it seems it wants it inside the Maildir?
<NickHu> rycee: Not only that, but it stores last modified date in the same file
<NickHu> Here is the contents of my .gmailieer.json file: {"last_historyId": 4411444, "lastmod": 64495, "replace_slash_with_dot": false, "account": "me@nickhu.co.uk", "timeout": 0, "drop_non_existing_label": false, "ignore_tags": ["new"], "ignore_remote_labels": []}
<NickHu> Also the oauth authentication is interactive and it generates a credential file which is updated every time the program is run
<rycee> Nick Hu: Seems you'd be better off using mbsync together with notmuch :-)
<rycee> wolfman154: What is the issue you are having with the files?
<NickHu> rycee: The benefit of this program is that it uses the gmail api so it can do bidirectional sync between notmuch tags and gmail labels
<rycee> Nick Hu: Ok, that sounds useful. Well, I guess the simplest would be to generate the commands necessary to set the configuration options in an activation script block.
<rycee> But I guess a user need to run `gmi init` before these commands would work?
<NickHu> But if it writes a configuration file, that's going to symlink to the read-only nix store, so then the synchronisation state won't get updated
<NickHu> rycee: Yes
<NickHu> I guess it ought to be a simple thing for them to implement on their end
<NickHu> I'm not sure how you can make the google oauth flow non-interactive
<rycee> No, I meant to insert commands like `gmi set whatever` in the activation script. So it'll do its thing at activation time, and can write whatever it needs in your home directory.
<rycee> But yeah, if it's possible then a declarative configuration file would be the best.
wolfman154 has quit [Quit: Mutter: www.mutterirc.com]
<rycee> The dconf module does something like this by running `dconf load …` at activation time.
wolfman154 has joined #home-manager
<NickHu> Well, `gmi init` spawns a webpage which has a google login
<NickHu> And I guess waits for the callback to fire when you complete the login flow in your browser
<rycee> Yeah. My concern is whether it will be OK to run `gmi set whatever` before `gmi init` has happened?
<rycee> Basically I want to avoid having things break when a user having this module enabled is sitting in a console and installing NixOS :-)
<NickHu> No, it throws an error
<wolfman154> rycee: I was referred to this: https://github.com/rycee/home-manager/issues/543
<wolfman154> I guess something in home-manager is overwriting, configuration.nix so I have to disable it?
<NickHu> But in principle home-manager doesn't need to call `gmi set` to perform the configuration; could just write the json manually
<wolfman154> rycee: so that my custom keyboard layout will hopefully work
<wolfman154> rycee: oh and to answer your question, the rebuild works: xmonad and terminator loads, but my custom keyboard layout does not load when I reboot, so hopefully the link for issue 543 will help fix it, maybe something was overridden?
<rycee> wolfman154: Yeah, sounds likely that the setxkbmap overwriting your configuration.
<wolfman154> rycee: ok
<wolfman154> rycee++
linarcx has quit [Quit: WeeChat 2.4]
wolfman154 has quit [Remote host closed the connection]