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
jesystanii has joined #home-manager
svrana has quit [Read error: Connection reset by peer]
svrana has joined #home-manager
ece has quit [Read error: Connection reset by peer]
ece has joined #home-manager
patagonicus18 has joined #home-manager
patagonicus1 has quit [Ping timeout: 260 seconds]
rajivr has joined #home-manager
ece has quit [Read error: Connection reset by peer]
ece has joined #home-manager
supersandro2000 has quit [Quit: The Lounge - https://thelounge.chat]
supersandro2000 has joined #home-manager
AlpineLlama has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
AlpineLlama has joined #home-manager
jesystanii has quit [Ping timeout: 268 seconds]
jesystanii has joined #home-manager
jesystanii has quit [Ping timeout: 240 seconds]
jesystanii has joined #home-manager
evanjs has quit [Read error: Connection reset by peer]
justanotheruser has quit [Ping timeout: 250 seconds]
evanjs has joined #home-manager
berbiche has quit [Ping timeout: 245 seconds]
SumnerEvans[m] has quit [Ping timeout: 245 seconds]
dash has quit [Ping timeout: 245 seconds]
tad-lispy[m]1 has quit [Ping timeout: 245 seconds]
kalbasit[m] has quit [Ping timeout: 245 seconds]
rycee has quit [Ping timeout: 245 seconds]
jschievink has quit [Ping timeout: 245 seconds]
hpfr has quit [Ping timeout: 245 seconds]
Kng[m] has quit [Ping timeout: 245 seconds]
Asbjrn[m] has quit [Ping timeout: 245 seconds]
matthewcroughan[ has quit [Ping timeout: 245 seconds]
dash has joined #home-manager
matthewcroughan[ has joined #home-manager
berbiche has joined #home-manager
SumnerEvans[m] has joined #home-manager
Asbjrn[m] has joined #home-manager
jschievink has joined #home-manager
Kng[m] has joined #home-manager
hpfr has joined #home-manager
tad-lispy[m]1 has joined #home-manager
rycee has joined #home-manager
kalbasit[m] has joined #home-manager
slby[m] has quit [Quit: Idle for 30+ days]
energizer has quit [Quit: ZNC 1.7.0+deb0+xenial1 - https://znc.in]
MmeQuignon has joined #home-manager
energizer has joined #home-manager
cyphase has quit [Ping timeout: 252 seconds]
cyphase has joined #home-manager
jvanbruegge has joined #home-manager
<jvanbruegge> hi, I have problems with linking files from a git submodule. I use this config snippet:
<jvanbruegge> ```
<jvanbruegge> home.file.wallpapers = {
<jvanbruegge>     source = ./wallpapers;
<jvanbruegge>     target = ".config/sway/wallpapers";
<jvanbruegge>     recursive = true;  # does not matter
<jvanbruegge> }
<jvanbruegge> ```
<jvanbruegge> where `./wallpapers` is the git submodule that is checked out and not empty.
<jvanbruegge> But the symlink in `.config` as well as the folder in the home manager nix store is empty, how can I fix this?
<jvanbruegge> Thanks
heywoodlh has joined #home-manager
heywoodlh_ has quit [Ping timeout: 240 seconds]
jesystanii has quit [Ping timeout: 260 seconds]
jvanbruegge has quit [Ping timeout: 240 seconds]
jvanbruegge has joined #home-manager
jvanbruegge has quit [Client Quit]
nerdypepper has quit [Ping timeout: 246 seconds]
nerdypepper has joined #home-manager
justanotheruser has joined #home-manager
MmeQuignon has quit [Ping timeout: 265 seconds]
MmeQuignon has joined #home-manager
rajivr has quit [Quit: Connection closed for inactivity]
<justanotheruser> I'm trying to configure offlineimap in home-manager. How can I run a script with a python dependency? https://privatebin.net/?bb1ee53139cb7509#C9h9mLgHGvAyCxMZgRWMJ4zoHTqCs4pKnuN19MVkMhEp
<justanotheruser> I've run the script as a standalone and it adds the dependencies properly
<SumnerEvans[m]> https://github.com/nix-community/home-manager/blob/master/modules/programs/offlineimap.nix#L163 it looks pretty inflexible to me, unfortunately.
<justanotheruser> hmm, so can I override xdg.configFile."offlineimap/get_settings.pyc".source?
<immae> you can cheat
<immae> You’d have to add to the python path the path to your libkeepass
<immae> just before importing it
<justanotheruser> you mean in python override the path env variable?
<immae> yes
<justanotheruser> hmm, trying import sys; sys.path.append('${pkgs.python2Packages.libkeepass}')
<immae> Not sure it’s the syntax but that’s the idea I was thinking of yes
<immae> (I know I did that already but I don’t find it)
<immae> Oh you might need to add something to it
<immae> like /lib/python2.7/site-packages
<immae> aka ${pkgs.python2Packages.libkeepass}/${pkgs.python2.sitePackages}
<justanotheruser> hmm, this method has some issue with dependency resolution
<justanotheruser> had to do sys.path.append('${pkgs.python2Packages.libkeepass}/${pkgs.python2.sitePackages}'); sys.path.append('${pkgs.python2Packages.pycryptodome}/${pkgs.python2.sitePackages}'); sys.path.append('${pkgs.python2Packages.lxml}/${pkgs.python2.sitePackages}')
<justanotheruser> but now it works, thanks!
<immae> good
<immae> (you can optimise that too)
<immae> (the dependency resolution)
<SumnerEvans[m]> This seems pretty ugly. We should probably make an actual fix for this.
<SumnerEvans[m]> I am glad you found a workaround, though!
<SumnerEvans[m]> Maybe open an issue to keep track of this (and include your current workaround)?
<justanotheruser> immae: is there some option which includes site-packages for the package and all its dependencies?
<immae> this should work: sys.path.append('${pkgs.python2.withPackages(p: [p.libkeepass])}/${pkgs.python2.sitePackages}');
<immae> justanotheruser: yes that ^
<justanotheruser> thanks!
<immae> (try it first)
<immae> (I wrote it blindly)
<justanotheruser> yes, it works
<immae> cool
<justanotheruser> SumnerEvans[m]: let me see if I can get the dependencies set by an option
<rycee> I think you can use `wrapPythonPrograms` for automatically setting `sys.path` based on the build inputs.
<rycee> somehow
<rycee> Never tried it myself :-)
<immae> This works only if your input it a file
<immae> here it’s passed as a text (which is then passed as a file in hm)
<immae> (as far as I see from the wrapPythonPrograms function, I never tried it myself either)
<rycee> But you should be able to call `wrapPythonPrograms` inside a `runCommandLocal` body where the code text is injected using `passAsFile`?
<immae> hmm no?
<immae> Because the said text is called via python directly
<immae> (I might miss something of your suggestion though)
<rycee> Something like `mkdir $out/bin/blah; mv $inputFile $out/bin/blah; wrapPythonProgramsIn $out/bin/blah $pythonInputs` perhaps? Then read out the content of `$out/bin/blah` and put where you want it.
<immae> wrapPythonPrograms will produce a (bash) shell script that wraps path and all
<rycee> Ah, right. Then I dunno :-/
<rycee> I guess you can write your own wrapper script that does the type of wrapping you need.
<immae> yes sure
<immae> considering how simple it is that’s clearly an option
<rycee> I'm not sure its super simple (considering the wrapper in Nixpkgs including `magicalSedExpression`, which does seem a bit magical) but seems doable.
<immae> It look as simple as that to me: https://tools.immae.eu/paste/8ykl (but maybe we’re not talking about the same thing)
<rycee> Ah, maybe they need to do something more fancy in the wrapper. It would be sweet if your example works.
<rycee> I don't really know Python so can't really tell why the wrapper in Nixpkgs is the way it is.
MmeQuignon has quit [Ping timeout: 245 seconds]
cyphase has quit [Ping timeout: 252 seconds]
crystalxo has joined #home-manager
cyphase has joined #home-manager
<crystalxo> Hey everyone - how come when using wayland and sway that you need to do add `dropbox start` to the startup command list? Is there a reason its not automatic?
<crystalxo> Looking in https://github.com/nix-community/home-manager/blob/master/modules/services/dropbox.nix#blob-path it does appear like it should do this automatically, but for me personally dropbox doesn't start when I run sway unless I do `dropbox start` at some point?
crystalxo has quit [Quit: Connection closed]
supersandro20000 has joined #home-manager
supersandro2000 has quit [Killed (orwell.freenode.net (Nickname regained by services))]
supersandro20000 is now known as supersandro2000
<immae> is the "dropbox start" command you’re talking about a shorthand for "systemctl --user start dropbox" ?
<immae> ah nevermind there’s an actual "dropbox" command
<immae> You should check the logs of the service, it may fail for some reason