worldofpeace_ changed the topic of #nixos to: NixOS stable: 20.03 ✨ https://discourse.nixos.org/t/nixos-20-03-release/6785 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || use ,channels for a list of Nix* related channels || nixcon videos: https://tinyurl.com/nixcon2019 || Link to the output of nix-info
whatisRT has quit [Ping timeout: 272 seconds]
<Fare> and if I want to make some gerbilPackage function available to overlays, where do I register it into lib or pkgs ?
therealsarcastic has joined #nixos
<adisbladis> Raito_Bezarius: `src = lib.cleanSourceWith { filter = yourCustomFunc; src = poetry2nix.cleanPythonSources { src = ./.; }; }`
<Fare> I tried to put the function in one of my packages, but mkDerivation complained about that.
<Raito_Bezarius> awesome, adisbladis++
<{^_^}> adisbladis's karma got increased to 65
<reanimus> Do the ACME systemd timers fire really often? Let's Encrypt has ratelimiting in place that throttles you after 5 failed requests in an hour window, and I just tried, had an error, then tried again after fixing it only to find that I've gotten the ratelimiting error. :(
chagra has quit [Ping timeout: 265 seconds]
hlisp_ has quit [Ping timeout: 240 seconds]
<ambro718> So I did the python env the right way and now pip starts, but it tries to install stuff to /nix/store
hlisp has joined #nixos
therealsarcastic has quit [Ping timeout: 265 seconds]
<Raito_Bezarius> reanimus: indeed, I got bitten by this
<Raito_Bezarius> enable staging
<Raito_Bezarius> that's the only proper way of testing ACME
<reanimus> yeah i just realized that
chagra has joined #nixos
asbachb has joined #nixos
fusion809 has joined #nixos
akamaus has quit [Ping timeout: 260 seconds]
Darkmatter66_ has joined #nixos
Darkmatter66 has quit [Ping timeout: 260 seconds]
<Fare> where do I stuff language-specific library functions? The things that will be used by many Gerbil packages.
xantoz has quit [Ping timeout: 260 seconds]
laerling has joined #nixos
<asbachb> lassulus: Hej. I saw you authored: https://github.com/nix-community/nixos-generators/blob/master/formats/lxc.nix I currently try to remove the symlink: https://gist.github.com/asbachb/813710a71e1ac8f79dee9820cb9e48c1 Any hint why the generated image is quite empty?
xantoz has joined #nixos
<Fare> should I define a lib.gerbil ???
reallymemorable has quit [Quit: reallymemorable]
<Fare> or lib.gerbilTools ?
<Raito_Bezarius> is it expected that direnv re-evaluates a lot the default.nix?
<{^_^}> [nixpkgs] @eadwu closed pull request #81996 → pytorch-bin: init at 1.4.0 → https://git.io/Jvr0T
<Raito_Bezarius> just doing "touch default.nix" causes direnv to rerun the evaluation
<adisbladis> Raito_Bezarius: Iirc direnv uses mtime, so that's expected.
<Raito_Bezarius> Makes sense, then
griff__ has quit [Quit: griff__]
laerling has quit [Changing host]
laerling has joined #nixos
maddo2 has quit [Quit: See ya]
fragamus has joined #nixos
fragamus has quit [Ping timeout: 240 seconds]
stepcut has joined #nixos
hlolli_ has joined #nixos
<stepcut> Is there a way to tell this quick install procedure that I want to use nix 2.2.2 ? `curl -L https://nixos.org/nix/install | sh`
<infinisil> stepcut: Nope, why do you want that?
hlolli__ has quit [Ping timeout: 244 seconds]
<stepcut> infinisil: because progress is pain
<infinisil> Does the latest version cause you trouble?
wozeparrot has quit [Quit: Connection closed for inactivity]
<stepcut> infinisil: trying to setup a nix environment on an ubuntu machine which matches another machine which is still on nix-2.2.2
<betaboon> will `nixos-rebuild switch` respect `--option substituters` ?
<infinisil> stepcut: Usually the Nix version itself matters very little in regards to reproducibility, so I wouldn't worry about it
<infinisil> And upgrades for Nix itself should be very painfree
cr4y1 has quit [Ping timeout: 264 seconds]
<stepcut> infinisil: I am not super worried. For other reasons, the setup procedure actually downgrades to nix-2.2.2 due to the old nixpkgs-channels snapshot we are using
<infinisil> stepcut: What's the problem with later versions? How old is the nixpkgs version?
<stepcut> infinisil: old enough to have nix-2.2.2. The problem is that we are in the middle of a development cycle, and upgrading will take time that is not available. Why fix what ain't broke?
<rotaerk> hmm I'm reading instructions on setting some settings in xorg.conf, but since nixos manages that, is there some way to see the effective xorg.conf produced by nixos?
<infinisil> stepcut: The best way to install that version then is to first install Nix with the install script, then reinstall it from the nixpkgs version you want
Guest35509 has quit [Ping timeout: 272 seconds]
freeman42x has quit [Quit: Leaving]
<rotaerk> or, actually, is everything it produces xorg.conf-related just the files under /etc/X11/xorg.conf.d?
<stepcut> infinisil: that is what now happens -- but I wonder what other things might also be different. But, if there is no way to run the old install script, I guess I'll just have to wonder
lord| has quit [Quit: https://i.imgur.com/xacQ09F.mp4]
<infinisil> Hm yeah, there might be some tiny differences in how the installation happens
<infinisil> I guess you might be able to get an old installation script from the source directly
<rotaerk> ahh, you can do `nixos-option services.xserver.config`
<rotaerk> neat
<infinisil> rotaerk: There's also services.xserver.exportConfiguration
<{^_^}> [nixpkgs] @emilazy opened pull request #86623 → memtest86-efi: compute ESP offset from partitions → https://git.io/Jf3jn
lord| has joined #nixos
ambro718 has quit [Quit: Konversation terminated!]
qrnteen has quit [Remote host closed the connection]
<rotaerk> ah, thanks
therealsarcastic has joined #nixos
zeta_0 has joined #nixos
therealsarcastic has quit [Ping timeout: 260 seconds]
<zeta_0> how do i correctly place this ihaskell `let in` expression in this shell.nix file with mkShell? https://dpaste.org/H5f3 https://dpaste.org/zVZL
<zeta_0> i finally got ihaskell working with ghc883 but now i can't seem to get it to work in mkShell
<rotaerk> hmm I give up at trying to get nvidia optimus prime offload to work... switching to sync mode
jmeredith has quit [Quit: Connection closed for inactivity]
<emily> 01:49 <infinisil> stepcut: The best way to install that version then is to first install Nix with the install script, then reinstall it from the nixpkgs version you want
<emily> you know hydra produces tarballs for nix right?
<emily> could just fetch one of those and use them, the install script doesn't do much
<emily> though I guess you have to find the corresponding commit
bpye has joined #nixos
<stepcut> emily: :|
<bpye> Hey - if I have my root on an encrypted nixos volume how can I configure so that I can enter my encryption key via ssh?
<emily> well, if you use nixFlakes you don't have to worry about stable versions because there are none...
<rotaerk> zeta_0, what have you tried? the shell you linked doesn't mention ihaskell
ddellacosta has joined #nixos
<rotaerk> think you'd just add it to buildInputs
shibboleth has quit [Ping timeout: 240 seconds]
iyzsong has joined #nixos
<rotaerk> of course, the nixpkgs manual is unhelpful with how to use mkShell
<emily> benpye: not sure for luks but I can help for zfs
<gchristensen> (please s/of course/send PRs/)
shatsky has quit [Ping timeout: 240 seconds]
jluttine has quit [Ping timeout: 264 seconds]
<bpye> emily: Yeah this is ZFS
<emily> how many months until that doesn't involve docbook again? :p
<rotaerk> zeta_0, or maybe you'd put it in inputsFrom
<rotaerk> not clear on the distinction between inputsFrom and buildInputs
<zeta_0> rotaerk: i paste binned the ihaskell expression separately from the shell.nix file with mkShell so that i could better explain what i'm trying to do, i already tried placing it in buildInputs, but it threw an error
<emily> benpye: so, set up boot.initrd.network, boot.initrd.ssh
<emily> benpye: then the magic is this
<rotaerk> zeta_0, try inputsFrom
<Raito_Bezarius> can I inject extra packages in nixpkgs?
<Raito_Bezarius> using overlays?
<bpye> Ah! That's the bit I missed
<emily> which prompts for zfs keys on every ssh login and then kills the one that's waiting on keys in the console
<emily> making it work out basically like you just entered the passphrase into that one
<emily> it's gross compared to a proper scriptable password prompting interface or whatever like plymouth might give you but it works ^^
<zeta_0> rotaerk: the reason i'm trying to put it in a mkShell is because i'm trying to set it up with lorri in emacs with the env vars setup, but ok, i'll try inputsFrom
<zeta_0> instead of buildInputs
<emily> benpye: you can of course ^C out of the prompt if you want to do other boot debug, or put it in an executable or function or something if you don't just want to automatically do it at ssh time
<emily> but i find it most convenient this way
jluttine has joined #nixos
<{^_^}> [nixpkgs] @bhipple merged pull request #86618 → 1password: 0.9.4 -> 0.10.0 → https://git.io/Jf3FW
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JfseB
skorpy has quit [Remote host closed the connection]
eoli3n_ has quit [Quit: WeeChat 2.8]
<{^_^}> [nixpkgs] @bhipple merged pull request #86621 → python.pkgs.binwalk: remove p7zip from propagatedBuildInputs → https://git.io/Jf3NA
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/Jfsei
braunse has quit [Ping timeout: 265 seconds]
braunse_ has joined #nixos
<rotaerk> notgne2, FYI, I fixed that weird firefox visual artifact
<zeta_0> rotaerk: ok cool, by swapping buildInputs with inputsFrom, i was able to go into a nix-shell without any errors, i'm going to test ihaskell out now to make sure it's working correctly in the shell: https://dpaste.org/vuBw
<rotaerk> turns out that's what it does when the intel GPU is being used ... and firefox doesn't seem to correctly handle optimus prime's offload mode
<{^_^}> [nixpkgs] @bhipple merged pull request #86604 → [20.03] keybase,kbfs,keybase-gui: 5.0.0 -> 5.4.2 → https://git.io/Jf3DC
<{^_^}> [nixpkgs] @bhipple pushed 9 commits to release-20.03: https://git.io/JfseP
<rotaerk> as in, if I just run firefox, it simply uses intel. but if I set the appropriate offload environment variables, it tries and fails to use the nvidia card
<rotaerk> so I switched to sync mode (which is unfortunate for my battery life), and that works
kaivai has quit [Remote host closed the connection]
<rotaerk> I got fed up I installed another program and it had the same problem, but with sync mode, neither have the problem
stepcut has quit [Remote host closed the connection]
<rotaerk> when I *
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
proofofkeags has quit [Remote host closed the connection]
stepcut has joined #nixos
<jophish> Is the cache down?
proofofkeags has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
<rotaerk> zeta_0, oh nice; yeah, the nixpkgs manual doesn't say how you're supposed to use the thing, but the example does seem to put tools into inputsFrom and libraries into buildInputs
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
proofofk_ has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
proofofkeags has quit [Ping timeout: 260 seconds]
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
thongpv87 has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
h0m1 has quit [Ping timeout: 260 seconds]
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
h0m1 has joined #nixos
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
hlisp has quit [Remote host closed the connection]
stepcut has quit [Remote host closed the connection]
zeta_0 has quit [Quit: rebuilding]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
hlisp has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
kbZ has quit [Quit: The Lounge - https://thelounge.chat]
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
therealsarcastic has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
hlisp has quit [Remote host closed the connection]
stepcut has joined #nixos
<dxtr> What path should I use if I want to run openssl from inside a script that's run during nixos-rebuild switch?
therealsarcastic has quit [Ping timeout: 258 seconds]
<cole-h> > "${openssl}/bin/openssl"
<{^_^}> "/nix/store/3918pjmvz1b9hzp4w9xd6bqcj2i75vdp-openssl-1.1.1g-bin/bin/openssl"
<cole-h> ?
griff__ has joined #nixos
<dxtr> cole-h: Ah, is it just ${<package name>} to find out where it is located?
<cole-h> Inside a string, it interpolates to where that package is, yes. Depending on the context, you might need `pkgs.<package>`
<cole-h> > "${pkgs.openssl}/bin/openssl"
<{^_^}> "/nix/store/3918pjmvz1b9hzp4w9xd6bqcj2i75vdp-openssl-1.1.1g-bin/bin/openssl"
stepcut has quit [Ping timeout: 265 seconds]
tsrt^ has quit [Read error: Connection reset by peer]
reallymemorable has joined #nixos
felixfoertsch23 has joined #nixos
felixfoertsch has quit [Ping timeout: 272 seconds]
felixfoertsch23 is now known as felixfoertsch
teto has quit [Ping timeout: 246 seconds]
hlisp has joined #nixos
zeta_0 has joined #nixos
asbachb has quit [Ping timeout: 245 seconds]
hlisp has quit [Remote host closed the connection]
proofofk_ has quit [Remote host closed the connection]
hlisp has joined #nixos
proofofkeags has joined #nixos
<emily> dxtr: yeah, derivations magically stringify to their output paths
<emily> dxtr: there's e.g. .outPath if you want to be more explicit, in the case of openssl the "full" path is even pkgs.openssl.bin.outPath, but generally you should just do ${pkg}
<zeta_0> rotaerk: ok, so i tested out that shell.nix, but in emacs it tells me that it does not recognize ihaskell, so i'm not sure what's going on: https://dpaste.org/Jcyr
proofofkeags has quit [Ping timeout: 265 seconds]
chagra has quit [Ping timeout: 272 seconds]
<monokrome> seems like it's working now
* monokrome has no idea how she fixed this
<Raito_Bezarius> Do someone succeded to make pinentry work on wayland?
<Raito_Bezarius> I'm trying to use ncurses and gpg-agent is always complaining about pinentry
Ralith_ has quit [Remote host closed the connection]
<rotaerk> zeta_0, I guess figure out where emacs is looking, why it's not recognizing it
<rotaerk> and then figure out what it takes to get the shell to put it there
Ralith_ has joined #nixos
ndfh^ has joined #nixos
hlolli_ has quit [Quit: Leaving]
<zeta_0> rotaerk: my other shell.nix's that use mkShell work fine in emacs, it's strange that ihaskell is not being recognized, no errors are being thrown when i go into a nix-shell, so i'm not sure how to troubleshoot this
ixxie has quit [Ping timeout: 256 seconds]
hlisp has quit [Remote host closed the connection]
<zeta_0> hmmm
ixxie has joined #nixos
<energizer> bpye: boot.initrd.network.ssh.enable
zebrag has quit [Ping timeout: 240 seconds]
zebrag has joined #nixos
<cole-h> Is it possible to modify a file in the nix store on NixOS with root?
<energizer> how could it be otherwise?
proofofkeags has joined #nixos
<cole-h> If the store is mounted read-only, it probably wouldn't be possible...
<energizer> in that case you also couldnt install anything
<cole-h> Unless it's remounted as read-write for the duration of store operations
<cole-h> Anyways, I'm looking for cold-hard facts, not guesstimation.
<energizer> $ sudo echo hi > /nix/store/hello
<energizer> zsh: read-only file system: /nix/store/hello
<cole-h> And what if you `sudo nano /nix/store/somefileinstore` and modify and try to save?
hlisp has joined #nixos
turona has quit [Ping timeout: 265 seconds]
<energizer> cant open file for writing
<cole-h> Or even knowing what happens when you `sudo nano /etc/sudoers` and try to change+save
<energizer> i'm not gonna try that one, but you could do it in a docker container
turona has joined #nixos
proofofkeags has quit [Ping timeout: 272 seconds]
<cole-h> energizer++ Fair enough. Thanks for your help.
<{^_^}> energizer's karma got increased to 12
<energizer> (`sudo echo hi > /nix/store/hello` isnt correct, but whatever :))
corpix has quit [Remote host closed the connection]
<emily> cole-h: it's not possible
<zeta_0> if any of you guys wouldn't mind taking a look at this, emacs is not recognizing the ihaskell or jupyter commands? https://dpaste.org/Tmjg
<emily> cole-h: but you can make it possible
<emily> (I don't know if there's any convenient twiddle to do so though)
<cole-h> emily: How easily done, and how often do you think people do so?
<emily> cole-h: nix.readOnlyStore
<cole-h> A trifle, but if there's even a chance of a user attempting to write to it, I'd like to have a warning, so I can't be held liable if anything happens (:
<emily> there's a convenient twiddle, so the warning should stay
<cole-h> Yep, OK, thank you! emily++
<{^_^}> emily's karma got decreased to 16
<emily> that said, setting nix.readOnlyStore off sounds terrible
<emily> maybe we should get rid of it
<{^_^}> Wait no, it got *increased* to 18
<cole-h> lol
<cole-h> LOL
<emily> ;w;
<emily> is {^_^} drunk
<cole-h> No HAHAHA
<cole-h> infinisil added some "sprinkles" to karma additions
<zeta_0> that same let in expression for ihaskell works fine in home.nix, how strange that it's not working in that shell.nix file
corpix has joined #nixos
<cole-h> Sorry, "spice" in the words of w*rldofpeace
<energizer> i didnt even notice the store was mounted ro, TIL. cole-h++
<{^_^}> cole-h's karma got increased to 39
therealsarcastic has joined #nixos
<cole-h> energizer: "Nix will automatically make the store writable when needed."
<cole-h> That's how it does it :P
<cole-h> (install packages and whatnot)
<energizer> last time i tried messing with the store was before i switched to nixos. you can write to it in non-nixos, right?
<cole-h> Yep.
<emily> hm, does it actually remount /nix/store, or just mount it separately somewhere else to write to ti?
<emily> the former is a pretty ugly race
<cole-h> It does /something/
<cole-h> And that's all you need to know
<cole-h> :P
<emily> god I wish I never had to know Nix implementation details
<emily> take me to that planet
<cole-h> Drink enough alcohol to make it so!
<cole-h> /s
proofofkeags has joined #nixos
<energizer> emily: curious why you'd have to know that?
<cole-h> (NOTE: cole-h does not actually recommend this)
proofofkeags has quit [Remote host closed the connection]
hlisp has quit [Remote host closed the connection]
<emily> energizer: well, in this case it affects whether you can ever write to /etc/sudoers even with readOnlyStore on
therealsarcastic has quit [Ping timeout: 260 seconds]
<cole-h> (I think they meant why you'd need to know Nix implementation details)
<emily> if nix remounts /nix/store rw for a period then there's a race condition with another process writing to it
reallymemorable has quit [Quit: reallymemorable]
proofofkeags has joined #nixos
<emily> I mean, this is a Nix implementation detail that's relevant to the current discussion, right?
gustavderdrache has quit [Quit: Leaving.]
<emily> but it's certainly not the first time... the general answer is that abstractions are leaky, some moreso than others
corpix has quit [Quit: corpix]
<energizer> sure
<emily> nix tries to achieve a very ambitious set of guarantees on top of a very chaotic system, and so there are always going to be times when you need to figure out how it works when discrepancies pop up
hlisp has joined #nixos
proofofkeags has quit [Ping timeout: 265 seconds]
ixxie has quit [Ping timeout: 246 seconds]
ixxie has joined #nixos
kbZ has joined #nixos
kbZ has quit [Quit: The Lounge - https://thelounge.chat]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
SunWuKung has quit [Quit: iLeave]
kbZ has joined #nixos
SunWuKung has joined #nixos
hlisp has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @SRGOM reopened pull request #84454 → powershell: 6.2.3 -> 7.0.0 → https://git.io/JvN5q
zeta_0 has quit [Remote host closed the connection]
hlisp has joined #nixos
kbZ has quit [Quit: The Lounge - https://thelounge.chat]
waleee-cl has quit [Quit: Connection closed for inactivity]
corpix has joined #nixos
kbZ has joined #nixos
<bpye> does boot.initrd.network.enable respect the adapter specific useDHCP settings or do I need to set networking.useDHCP specifically?
<cole-h> If a dependency is necessary both for its binaries and its libraries, does it make sense to put the dependency in both `buildInputs` and `nativeBuildInputs`, or is there a special input for those situations?
kbZ has quit [Quit: The Lounge - https://thelounge.chat]
hlisp has quit [Ping timeout: 264 seconds]
ddellacosta has quit [Ping timeout: 240 seconds]
hlisp has joined #nixos
kbZ has joined #nixos
therealsarcastic has joined #nixos
hlisp has quit [Ping timeout: 256 seconds]
therealsarcastic has quit [Ping timeout: 272 seconds]
hlisp has joined #nixos
<bpye> I wonder if you could combine https://grahamc.com/blog/erase-your-darlings with kexec to persist keys across regularly scheduled (fast) reboots...
<bpye> * I wonder if you could combine https://grahamc.com/blog/erase-your-darlings with kexec to persist encryption keys across regularly scheduled (fast) reboots...
jkachmar has quit [Quit: Connection closed for inactivity]
<hyper_ch> to persist encryption keys? accross reboots?
<hyper_ch> bpye: what do you mean?
<bpye> So - I like the concept described in the article however I use ZFS' native encryption and my home server reboots very slowly (actual server hardware problems...) so I wonder if instead I could kill two birds with a singular stone - kexec would give me a quick reboot and if I can figure out a way to persist the ZFS encryption key across the kexec then I can avoid needing to enter the passphrase frequently
<hyper_ch> how often do you reboot? oO
<clever> bpye: if you `systemctl kexec`, then systemd will reboot the machine via kexec, the issue though is getting it to pass the keys over...
<bpye> Actually, even that won't work for me because I'm stuck with BIOS boot... But I can get around that by calling kexec manually first, yeah, getting keys over is the tricky bit...
<bpye> I guess the intent would be to allocate some pages in memory that we can retrieve the key from in the new initrd...
<danderson> gchristensen: so, following your "erase your darlings" blog post, I'm wondering... What do you do about /etc/nixos?
<danderson> That ends up in the root dataset for me, and being the configuration that gets applied, I can't easily define symlinks for it via the config that it contains, if that makes sense.
<hyper_ch> danderson: I mount it seperately
<hyper_ch> danderson: tankTest/encZFS/persist/etc.nixos 1.76M 3.50T 244K /etc/nixos --> I even use zfs mount for that
<{^_^}> [nixpkgs] @bhipple opened pull request #86624 → python27Packages.watchdog: 0.9.0 -> 0.10.2 → https://git.io/JfsUO
<danderson> hyper_ch: hm, makes sense I guess.
<hyper_ch> but safer option would be also legacy boot
<energizer> if you deploy with nixops/morph, do you need to have /etc/nixos at all?
<hyper_ch> on that machine I just try to see where I can use zfs mount and where I need legacy booot
<hyper_ch> danderson: so I do have a /etc as legacy mount but that gets wiped
<danderson> energizer: this is the laptop that I would be deploying *from* :P
<danderson> sure, legacy mount makes sense in this case
<{^_^}> [nixpkgs] @bhipple closed pull request #86624 → python27Packages.watchdog: 0.9.0 -> 0.10.2 → https://git.io/JfsUO
<energizer> danderson: someone in here (adisbladis?) was saying they use nixops to deploy to localhost
<hyper_ch> oh, seems I got rid of the /etc :)
<bpye> clever: There have been proposals but I'm not sure they have gotten anywhere... http://pramfs.sourceforge.net/tech.html
<danderson> heh
<danderson> energizer: I'm not ready for nixops as a daily driver yet, it'll have to wait a bit :)
<hyper_ch> but zfs mount with the /etc/nixos works... but as said, legacy is safer
<bpye> hyper_ch: How do you determine where zfs mount is going to work - is it just files that are not critical to boot or..?
<hyper_ch> bpye: trial and error
<bpye> Ah I see
<hyper_ch> bpye: I did a bunch of testing with that script https://www.sjau.ch/zfs (that was before gchristensen's article)
<{^_^}> [nixpkgs] @bhipple opened pull request #86625 → python27Packages.watchdog: 0.9.0 -> 0.10.2 → https://git.io/JfsUn
<hyper_ch> bpye: danderson: also if you want to use /home and /home/$user as zfs mount (which can be nice) you'll need to set users mutable to false
<bpye> In this exact use case (home server) I don’t even really need home to be persisted
<Izorkin> How to need to merge PR #85225 and #85225
<{^_^}> https://github.com/NixOS/nixpkgs/pull/85225 (by Izorkin, 2 weeks ago, open): nixos/unit: update service configuration and update unit to 1.17
<energizer> if you have immutable users and you set the initialHashedPassword, then you can't even change it can you?
<Izorkin> and #85862
<{^_^}> https://github.com/NixOS/nixpkgs/pull/85862 (by Izorkin, 1 week ago, open): nginx: change log and cache directories
<hyper_ch> bpye: I do have Plex as /home/plex ;)
orivej has quit [Ping timeout: 258 seconds]
<hyper_ch> energizer: there's hashedPassword... that would be overwritten as /etc is volatile it should need to write that anew again...
<hyper_ch> (better play around with it before putting it into action)
<monokrome> ,locate libvulkan.so.1
<{^_^}> Found in packages: vulkan-loader
<monokrome> >.<
<energizer> i sometimes see configs that if i'm not mistaken seem to have their hashed password on public repos, i dont think this is a good idea
<hyper_ch> why?
<{^_^}> [nixpkgs] @peterhoeg merged pull request #85094 → syslinux: add uefi support → https://git.io/Jvj8V
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/JfsU4
<energizer> well, how long is your password
<hyper_ch> the point of a hashed password is supposedly that you're not able to deduce the actual one
VPS has joined #nixos
<hyper_ch> using modern hash algorithm and decently long password, it should be fine :)
<monokrome> ,locate glxsphere
<monokrome> ,locate glxspheres
<{^_^}> Found in packages: virtualgl, virtualglLib
<{^_^}> Found in packages: virtualgl, virtualglLib
<{^_^}> [nixpkgs] @bhipple merged pull request #86611 → afio: package has moved to GitHub → https://git.io/Jf3HF
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JfsUu
<cole-h> danderson: (I think he went to sleep -- you should ask again next you see him, or ,tell him)
<monokrome> lol =^.^=
<danderson> cole-h: yup, figured. But I have enough to keep poking for now :)
<{^_^}> [nixpkgs] @bhipple merged pull request #86617 → latte-dock: 0.9.10 -> 0.9.11 → https://git.io/Jf351
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JfsUz
<{^_^}> [nixpkgs] @bhipple merged pull request #86548 → dnsproxy: 0.24.0 -> 0.27.
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JfsUg
<{^_^}> [nixpkgs] @bhipple merged pull request #86564 → fstl: 0.9.3 -> 0.9.
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JfsUa
<bpye> Hah... I think I can have an awful hack where I indicate that a memory region is nvram, and then during boot we attempt to mount and find keys there before falling back to SSH input which will also have to persist keys there
<bpye> And during a kexec that region will be persisted because we didn't clear memory
<monokrome> lol... Sway tells you to run with `--my-next-gpu-wont-be-nvidia`
<energizer> hyper_ch: surprisingly difficult to find a graph of time-to-crack by length
<hyper_ch> :)
<monokrome> I'd be a liar if I actually typed it =^.^=
<hyper_ch> energizer: this https://xkcd.com/936/ and also that https://xkcd.com/538/
<energizer> those are both silly
<jophish> Would someone on NixOS with an AMD or Intel GPU be able to test a vulkan program for me? It works on my nvidia card but not with swiftshader and I'd like to see it working on AMD and Intel before raising a bug against swiftshader
hlisp has quit [Remote host closed the connection]
<jophish> It should be sufficient to clone --recursive https://github.com/expipiplus1/vulkan and run nix-build
<jophish> nix-build -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/dbacfa172f9a6399f180bcd0aef7998fdec0d55a.tar.gz -A vulkan-examples
<{^_^}> [nixpkgs] @kalbasit opened pull request #86626 → vimPlugins.vim-go: set g:go_bin_path to work with pure nix-shell → https://git.io/JfsUS
<{^_^}> [nixpkgs] @marsam opened pull request #86627 → fluent-bit: 1.4.1 -> 1.4.3 → https://git.io/JfsU9
<jophish> there's a program in there called 'offscreen' which should render an image to "triangle.png"
<{^_^}> [nixpkgs] @peterhoeg opened pull request #86628 → unar: 1.10.1 -> 1.10.7 → https://git.io/JfsUH
<hyper_ch> is anyone using gpu passthrough for gaming in a windows vm?
<monokrome> I could never get it working hyper_ch
<hyper_ch> I've used an "old" notebook sofar but I've been wondering if it's easier to jut put a gpu into my homesrver
endformationage has quit [Quit: WeeChat 2.6]
<{^_^}> [nixpkgs] @marsam opened pull request #86629 → lean: 3.9.0 -> 3.10.0 → https://git.io/JfsU7
<energizer> hyper_ch: here we go https://lowe.github.io/tryzxcvbn/
<energizer> looks like you need four random words
<hyper_ch> well, correcthorsebatterystaple is a very strong password that's been used by many now :)
<hyper_ch> I generally use pwgen -ync 40 to create a password if the site allows me
therealsarcastic has joined #nixos
griff__ has quit [Quit: griff__]
stree has quit [Read error: Connection reset by peer]
stree has joined #nixos
therealsarcastic has quit [Ping timeout: 246 seconds]
peelz has quit [Ping timeout: 244 seconds]
griff__ has joined #nixos
<energizer> hyper_ch: but is that what you do for your unix user password?
<hyper_ch> there's a few long passwords that I remember
<hyper_ch> like the one to access the vault ;)
<energizer> like, do you type it in for sudo?
<hyper_ch> you have a different password for sudo than for login?
<energizer> no
domogled1 has joined #nixos
domogled has quit [Read error: Connection reset by peer]
domogled1 is now known as domogled
<hyper_ch> so, I don't understand your question then :)
<Fare> Is it OK to update several related packages in one commit? I'm refactoring both Gambit and Gerbil, and it's messy to separate them in two commits, where the middle one wouldn't work and/or would require much extra testing.
<Fare> And if OK, do I put all those version update lines as "top lines" ?
hlisp has joined #nixos
butcher has quit [Ping timeout: 260 seconds]
xO1 has joined #nixos
linarcx has joined #nixos
palo1 has joined #nixos
zebrag has quit [Quit: Konversation terminated!]
palo1 is now known as palo
palo has quit [Ping timeout: 258 seconds]
hlisp has quit [Ping timeout: 265 seconds]
<bpye> What's the earliest boot hook we get? my hack relies on detecting if a disk is 'formatted' and mounting it if possible, but not failing if the partition has been corrupted
hlisp has joined #nixos
<cole-h> Fare: They should be separate commits
<Fare> is it ok if I don't test the intermediate commit?
<{^_^}> [nixpkgs] @peterhoeg opened pull request #86630 → fuseiso: allow building from checkout → https://git.io/JfsTx
<Fare> also -- what is the right way to have a default.nix and/or overlay for a package that is not yet public?
<Fare> so I can't use fetchgit or something; I just want to use the current directory and/or a tarball I provide
oborot has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @Atemu opened pull request #86631 → Aarch32: disable libpfm → https://git.io/Jfskt
oldyas has joined #nixos
oldyas is now known as verdys
<Fare> and if I create a package for a gerbil library, should I put it in the same directory (or a subdirectory) as the gerbil compiler?
user_0x58 has quit [Quit: Leaving]
<Fare> (I'd say, if it were a large ecosystem with lots of software not tied to the compiler, no, but for the beginning with just a couple of libraries tied to the compiler, yes)
<{^_^}> [nixpkgs] @Mic92 merged pull request #86631 → Aarch32: disable libpfm → https://git.io/Jfskt
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/JfskE
drakonis has quit [Quit: WeeChat 2.8]
<Vikingman> i try to change something in my config and i got /boot is not look like uefi partition
smatting_ has joined #nixos
domogled has quit [Ping timeout: 260 seconds]
domogled has joined #nixos
Jackneill has quit [Ping timeout: 264 seconds]
akamaus has joined #nixos
therealsarcastic has joined #nixos
Heirlung has quit [Ping timeout: 256 seconds]
therealsarcastic has quit [Ping timeout: 272 seconds]
fabianhjr has quit [Quit: Leaving.]
Heirlung has joined #nixos
<{^_^}> [nixpkgs] @Atemu opened pull request #86632 → Undervolt: Make timer optional → https://git.io/JfsIY
Acou_Bass has quit [Ping timeout: 264 seconds]
Darkmatter66_ has quit [Ping timeout: 272 seconds]
Jackneill has joined #nixos
Darkmatter66 has joined #nixos
Acou_Bass has joined #nixos
smatting_ has quit [Ping timeout: 260 seconds]
<angerman> why would I have to keep providing `nix-env` with `-f '<nixpkgs>'`? Shouldn't that be inferred?
<Fare> angerman, welcome to the club :-(
asheshambasta has joined #nixos
<angerman> Fare *hooray*?
Darkmatter66 has quit [Ping timeout: 264 seconds]
Darkmatter66 has joined #nixos
iassai has joined #nixos
eof has quit [Quit: eof]
mchasard has joined #nixos
mchasard has quit [Client Quit]
griff__ has quit [Quit: griff__]
maxter has joined #nixos
ixxie has quit [Ping timeout: 240 seconds]
ixxie has joined #nixos
medvid_ has joined #nixos
Fare has quit [Remote host closed the connection]
medvid has quit [Ping timeout: 265 seconds]
vidbina has joined #nixos
mchasard has joined #nixos
<mchasard> hi
<mchasard> i just want to uninstall somme browser applications ... command line please ?
<cjpbirkbeck> nix-env --uninstall yourbrowser ?
eoli3n_ has joined #nixos
<mchasard> i remove it from configuration.nix file and lauch a rebuild switch
<NobbZ[m]> mchasard if you installed them through `nix-env`, then you can remove them using `nix-env -e`
<mchasard> no i installed from the config file ...ok thanks
igghibu has joined #nixos
<mchasard> on more question ... its very easy to change desktop environnemnt
<cjpbirkbeck> if you added it to configuration.nix, then remove from the file and `sudo nixos-rebuild switch` and it should be gone
<NobbZ[m]> Then you have to edit the config file.
<mchasard> i just want a light desktop
<mchasard> mate is lighter than kde
griff__ has joined #nixos
<mchasard> but sometimes mate stay loud for me
<cjpbirkbeck> mchasard: you can add `services.xserver.desktopManager.mate.enable = true;` to your config and that should enable the MATE desktop
<mchasard> i already done that but is there a lighter desktop ?
<cjpbirkbeck> mchasard: i believe lx{de,qt} are even lighter
therealsarcastic has joined #nixos
Avaq has joined #nixos
hlisp has quit [Remote host closed the connection]
<cjpbirkbeck> and you could always go with a window manager only, provided you are ether install the programs that usually come with a de yourself or forego them entirely
<mchasard> ok its same i have to replace mate for lxde or lxqt in configuration.nix file ?
<NobbZ[m]> Personally I use `awesome`, but a lot of people say `i3` is even lighter.
<mchasard> awesome ok i3 is exclusivly with keyboards
<cjpbirkbeck> mchasard: okay i was mistaken, there's only lxqt in the repos
<cjpbirkbeck> `services.xserver.desktopManager.lxqt.enable = true;`
<mchasard> lxqt ok thanks
<mchasard> i have to test it so but awesome is something like fluebox ?
therealsarcastic has quit [Ping timeout: 246 seconds]
<NobbZ[m]> I don't know fluebox. Awesome is a tiling window manager.
mallox has joined #nixos
<mchasard> is it awesome lol ? i tried openbox but i don't know hox is under nixos
hlisp has joined #nixos
<NobbZ[m]> Awesome has its flaws, but from those I tried it suits my workflow best.
<cjpbirkbeck> NobbZ[m], mchasard: i also run awesomewm, and i feel the same way
cjpbirkbeck has quit [Quit: cjpbirkbeck]
cjpbirkbeck has joined #nixos
<mchasard> ok one more guy using awesome
cole-h has quit [Quit: Goodbye]
fusion809 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @gebner merged pull request #86629 → lean: 3.9.0 -> 3.10.0 → https://git.io/JfsU7
<{^_^}> [nixpkgs] @gebner pushed 2 commits to master: https://git.io/JfsLq
mr_sm1th has joined #nixos
<mr_sm1th> Does anyone know a derivation for gcc-10?
orivej has joined #nixos
igghibu has quit [Quit: Textual IRC Client: www.textualapp.com]
<cjpbirkbeck> i like the way awesomewm's tags and it tiling windows, it does floating windows well and comes with own status bar and notification system
<{^_^}> [nixpkgs] @zowoq opened pull request #86634 → nixos/cri-o: copy upstream config → https://git.io/JfsLY
<cjpbirkbeck> but it feels a bit too heavy memory-wise for a solo window manager and the docs can be ... iffy at times and it's not as popular as i3, so there is less help for it
<cjpbirkbeck> note that the configuration is done in lua, and if something goes wrong the program will dump you back to the default.
<mchasard> if i replace only mate by awesome oin my config file its not enough ?
<bpye> Hmm... how can I debug my initrd ssh being unreachable?
<srhb> angerman: Does ~/.nix-defexpr/nixpkgs point to a nixpkgs channel (or some other nixpkgs) ?
akamaus has quit [Ping timeout: 260 seconds]
<angerman> srhb: there is only Channels and channels_root in there.
mchasard has quit [Quit: Leaving]
<srhb> angerman: Create a symlink called nixpkgs pointing to your nixpkgs of choice, I think that should do t.
<angerman> srhb: is there a nix tool that would be supposed to do that?
<srhb> Likely, something at homedir creation
<angerman> I also see that on my nixOS machine where user's apparently don't get those symlinks created 🤷‍♂️
<angerman> srhb: so nixpkgs should point to channles/nixos-...?
<{^_^}> [nixpkgs] @ktor opened pull request #86635 → cnijfilter2: 5.70 -> 5.90 → https://git.io/JfsLC
<srhb> angerman: That would work. I think it can also work with the channels symlink (if that is correct and contains nixpkgs itself) -- but I'm not sure of the exact mechanics.
<srhb> angerman: I only know that the direct ~/.nix-defexpr/nixpkgs symlink does work
<angerman> srhb: direct as in?
<srhb> angerman: As opposed to (indirectly) ~/.nix-defexpr/channels/nixos/nixpkgs
<srhb> angerman: Do you use some non-default shell?
<angerman> Not on the nixOS machine. No.
<srhb> angerman: I suspect the creation of the right defexpr symlinks is a shell rc script of some kind
<srhb> Then I don't know how it happens. Anyway, the above (direct) method should always work, as far as I know.
<angerman> srhb: sorry for being dense here. Do you have an example for the direct link?
<srhb> angerman: In my case, it's ~/.nix-defexpr/nixpkgs -> ~/src/nixpkgs
<srhb> angerman: If you want to use your channel it'll point to that nixpkgs channel in /nix/var/nix/profiles/per-user/.../nixpkgs
hlisp has quit [Ping timeout: 260 seconds]
<angerman> I see
<srhb> the ... being something like angerman/channels/nixos
<srhb> (or root/channels/nixos depending on your exact setup)
<angerman> Thanks. Maybe this will help Fare as well.
<angerman> Still perplexed how I ended up in this mess
<srhb> angerman: Yeah, I'm not sure. It seems to happen for some people and not others, but channel related mess is hard to debug without having a shell on the system.
<srhb> Too many moving parts.
<angerman> Maybe I should enlist clever :-) he already has an account to the machine in question.
<srhb> I think the default NixOS setup should only have ~/.nix-defexpr/channels_root, which points to /nix/var/nix/profiles/per-user/root/channels
<srhb> In there, there'll be a nixos channel, which contains nixpkgs
<srhb> And that should "just work"
<srhb> (in other words, one way to break it is to delete or maybe even rename root's channels)
<{^_^}> [nixpkgs] @prusnak opened pull request #86636 → steam: fix more of generated runtime dependencies → https://git.io/JfsLu
<srhb> Honestly ~/.nix-defexpr should just go away. :-)
<srhb> Too many incantations summon nixpkgs as it is.
<srhb> But nix-env using that instead of $NIX_PATH is probably the most egregiously confusing one.
knupfer has joined #nixos
akamaus has joined #nixos
doda has quit [Quit: Konversation terminated!]
hlisp has joined #nixos
akamaus has quit [Ping timeout: 246 seconds]
akamaus has joined #nixos
<{^_^}> [nixpkgs] @zowoq opened pull request #86637 → cri-o: wrap packages → https://git.io/JfsLP
<{^_^}> [nixos-hardware] @pmyjavec opened pull request #157 → Add a shared HiDPI Configuration, use it. → https://git.io/JfsL1
nikivi has quit [Remote host closed the connection]
matthiaskrgr has quit [Remote host closed the connection]
redkahuna has joined #nixos
denni9th[m] has joined #nixos
Setzer22_2 has joined #nixos
Guest35509 has joined #nixos
therealsarcastic has joined #nixos
<Setzer22_2> I'm trying to run unity-editor from the unity3d package but I'm getting this error: /nix/store/j4vb9rfbg9svrld2h0znyw89xn1nvcj8-unity-editor-2018.3.0xf2/opt/Unity/Editor/Unity: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
<Setzer22_2> it looks like a missing dependency in the package, but I have no idea how to start debugging/fixing this ^^' any tips?
redkahuna has quit [Ping timeout: 272 seconds]
therealsarcastic has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @zowoq opened pull request #86638 → cri-o, cri-tools: install completion, manpages → https://git.io/JfsLh
matthiaskrgr has joined #nixos
stree has quit [Read error: Connection reset by peer]
nikivi has joined #nixos
<siers> if I have an attribute in nix, can I output its source?
<{^_^}> [nixpkgs] @lheckemann merged pull request #86598 → linux: CONFIG_HIDRAW=y → https://git.io/Jf3i0
<{^_^}> [nixpkgs] @lheckemann pushed 2 commits to master: https://git.io/JfstU
<siers> outputting is a secondary problem – I need to get it as a string first
redkahuna has joined #nixos
stree has joined #nixos
proofofkeags has joined #nixos
<{^_^}> [nixpkgs] @matthiasbeyer opened pull request #86640 → mutt: 1.13.5 -> 1.14.0 → https://git.io/JfstO
fendor has joined #nixos
redkahuna has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @mothsART opened pull request #86641 → gspeech: init at 0.9.0 → https://git.io/JfstZ
proofofkeags has quit [Ping timeout: 265 seconds]
codygman has joined #nixos
zupo has joined #nixos
KeiraT has quit [Ping timeout: 240 seconds]
asbachb has joined #nixos
<asbachb> Hey. Is there any reason there's no option for bashcompinit?
grumble has quit [Quit: The bacteria inside Neil Armstrong were the first non-human life to land on the moon. And Neil Armstrong was their space suit.]
KeiraT has joined #nixos
grumble has joined #nixos
<infinisil> siers: I'm not entirely sure what you mean, but the answer is probably No
<siers> infinisil, haha, likely. I want to include some generated data in my nixos config. I could keep it as json, but I would like to avoid it, if I can
<infinisil> I'd really prefer json for that, Nix isn't really a format suited for generating (even though everybody does it)
<eyJhb> Anyone know what a base instalation of NixOS in size? (how much does it take up of space?
<mr_sm1th> Does anyone know if there's a nixpkgs for the latest (unreleased) gcc version somewhere?
<FireFly> eyJhb: did an install fairly recently, I think it came to something like 1-2 GB
<infinisil> siers: So I guess you want something that turns an attribute set into a string that has a nix expression in it representing that attrset. I think there is something like that in lib.generators, but it's probably brittle
<siers> infinisil, brittle is fine
chloekek has joined #nixos
iassai has quit [Quit: Connection closed for inactivity]
<infinisil> For one it won't work for functions and other things that can't be serialized
<siers> it's pretty simple data
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
<angerman> Is there a muslc-raspberrypi config in nixpkgs somewhere?
<infinisil> siers: I think it's lib.generators.toPretty, but it's totally not meant for that
<infinisil> Most times, people use some general-purpose language to generate Nix anyways
<asbachb> Any idea where `/nix/store/bawzbs39gd7h2kw0hpc634wpbvqcnq9c-lxd-4.0.1-bin/share/bash-completion/completions/lxc` is included for completion?
<siers> infinisil, mkValueStringDefault isn't, I just checked
<siers> let's check out pretty
<siers> toPretty
<siers> eyJhb, all my desktop nixos needs fit into 4G, I think. I wrote it to an iso, uncompressed
turona has quit [Quit: ...]
thc202 has joined #nixos
<siers> infinisil, looks like toPretty might work
Setzer22_2 has quit [Remote host closed the connection]
<siers> how do I use nix eval's --argstr? I tried nix eval --argstr a 1 'a: a' and ... '{a}: a', but neither works
<infinisil> Need to wrap the string with ({ a }: a)
vidbina has quit [Ping timeout: 256 seconds]
<infinisil> oh and it's --argstr a value
<infinisil> (Takes key and value)
<eyJhb> FireFly: seems OK, might have to compare it to Debian etc. it should be a basic server install
<siers> infinisil, % nix eval --argstr a 1 '({a}: 1)' => <LAMBDA>
<siers> a key, 1, value
<infinisil> Ah maybe nix eval doesn't work with that
<siers> that's what I'm trying to figure out :)
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #83121 → nixos/acme: change default keyType to ec256 → https://git.io/Jfstd
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/JfstF
<infinisil> It's experimental anyways, I'd just use nix-instantiate --eval
<siers> woo, this works nix-instantiate --eval --arg a 2 -E '({a}: a)'
<siers> nix-instantiate is a phenomenal name for that command :)
<siers> and I know you guys know
<manveru> great... i got a build that has stack overflow with `nix-build`, but none with `nix-build --trace-function-calls` :P
<manveru> gotta love heisenbugs
<edcragg> hi, i'm packaging a program which has a bunch of static (non-binary) files it needs at runtime, but which don't want to be stateful, and are updated for new versions of the package, is there some convention for where to store these during installPhase?
<thongpv87> How can I add xmonad-wallpaper packages to use in xmonad using home-manager?
codygman has quit [Ping timeout: 260 seconds]
<infinisil> edcragg: $out/share/$name/static seems like a good place
<{^_^}> [nixpkgs] @kolloch opened pull request #86642 → maintainers: add kolloch → https://git.io/Jfstj
<{^_^}> [nixpkgs] @etu merged pull request #86401 → doc: Add PHP section to index → https://git.io/JfOJJ
<{^_^}> [nixpkgs] @etu pushed 4 commits to master: https://git.io/JfsqJ
codygman has joined #nixos
turona has joined #nixos
<edcragg> infinisil: cool, thanks!
nic has joined #nixos
nic is now known as Guest26071
turlando has joined #nixos
__monty__ has joined #nixos
magnus1 has joined #nixos
chagra has joined #nixos
Guest26071 has left #nixos [#nixos]
therealsarcastic has joined #nixos
magnus1 has quit [Read error: Connection reset by peer]
teto has joined #nixos
<{^_^}> [nixpkgs] @kraem closed pull request #86560 → linux: version bumps (5.6.9 & 5.4.37) → https://git.io/Jf3E5
therealsarcastic has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @asbachb opened pull request #86643 → zsh: added option to enable compatibility with bash's completion system → https://git.io/Jfsq0
Setzer22_2 has joined #nixos
<Setzer22_2> Is there a way I can search for packages providing a certain file? I'm interested particularly in libnss3
<Setzer22_2> I don't know if that makes sense: I'm trying to make the unity3d package build, but when running it tells me that this library could not be found, so I'm modifying the expression from nixpkgs to include that as a dependency
jakobrs has joined #nixos
<{^_^}> [nixpkgs] @gebner merged pull request #82392 → octoprint: 1.3.12 -> 1.4.0, use python3 → https://git.io/Jv6ch
<{^_^}> [nixpkgs] @gebner pushed 13 commits to master: https://git.io/JfsqE
<jakobrs> Can /nix be a bind mount?
<jakobrs> Think "sudo mount --bind /persist/nix /nix"
<colemickens> but why persist /nix?
<jakobrs> When I tried the system wouldn't boot because it's "waiting for device /persist/nix to appear"
<jakobrs> The same with /etc
<jakobrs> I'm fairly sure /nix should be persistent
<colemickens> idk, it's not for me.
<jakobrs> Sorry, the error is "waiting for device /mnt-root/persist/nix to appear"
<colemickens> it's a separate dataset, but I only keep things I care to backup in /persist
<colemickens> but you didn't ask that, sorry, I don't know about bind mounts :s
<jakobrs> I'd say that counts as persistent?
whatisRT has joined #nixos
<jakobrs> I suspect I might need to specify the mount _order_ maybe?
<arianvp[m]> jakobrs it's s bit problematic I think because /nix is mounted quite early in boot even before systemd starts
xO1 has quit [Ping timeout: 246 seconds]
<arianvp[m]> So you can't set it up using fstab. It's intrinsic and special at the moment
<jakobrs> The same problem occured with /etc though
<colemickens> jakobrs: are you handling /persist by hand?
<colemickens> there's a module going around that's popular?
<jakobrs> I just did nixos-generate-config, /persist is just my /dev/vgmain/root
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<arianvp[m]> Anyhow I'd suggest reading the stage-2-init.sh script
<jakobrs> Do I need to set neededForBoot for /persist, /boot and /nix maybe?
<arianvp[m]> Maybe you can hook into things before /nix is bind-mount
<arianvp[m]> There might be some bells I'm not aware off
<jakobrs> Huh, /boot is missing from fileSystems, I'll try to add that
Setzer22_2 has quit [Remote host closed the connection]
<arianvp[m]> Systemd will auto-mount the /boot partition using a .automount
<arianvp[m]> Even if it's not in fileSystems
<arianvp[m]> (as long as you're on EFI that is)
<jakobrs> btw, should nixos-generate-config actually rewrite hardware-configuration.nix? If I just run nixos-generate-config --root / I get a lot of incorrect entries
<jakobrs> (from lxd, etc)
<verdys> Setzer22_2: i just grepped the package repository, nixpkgs/pkgs/games/steam/runtime-generated.nix mentions libnss3
jakobrs has left #nixos ["attempt #3"]
<{^_^}> [nixpkgs] @doronbehar closed pull request #86459 → nerdfonts: reuse individual fonts → https://git.io/JfO7M
never_released_ has joined #nixos
never_released has quit [Ping timeout: 256 seconds]
asheshambasta has quit [Ping timeout: 272 seconds]
stree has quit [Read error: Connection reset by peer]
jakobrs has joined #nixos
aveltras has joined #nixos
<asbachb> Can I load a packages build environment with sources checked out?
stree has joined #nixos
<jakobrs> Ok I'm fairly sure the problem is that /nix is mounted _before_ /persist
ambroisie has joined #nixos
<jakobrs> I can't find any option in configuration.nix(5) for changing the mount order?
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen has joined #nixos
<jakobrs> Just noticed that they appear to be mounted in alphabetical order, I'll s/persist/aaaaaa-persist and try again
jakobrs has left #nixos [#nixos]
jakobrs has joined #nixos
<jakobrs> That worked! ... except for the fact that I don't have a password and therefore can't log in.
<jakobrs> It does feel like a hack calling /persist /aaaaaa-persist so that it's mounted earlier
<arianvp[m]> I'm pretty sure there are some hooks to mount things earlier..m
<jakobrs> There's no option in fileSystems.<name> though
<jakobrs> alright, rebooting, hopefully able to login this time
jakobrs has left #nixos [#nixos]
Blessjah has quit [Remote host closed the connection]
jakobrs has joined #nixos
<jakobrs> I could make /nix a btrfs subvol, and then I wouln't need to mount /persist for it to work at all ...
<arianvp[m]> That's what I do jakobrs
<arianvp[m]> I have /nix /var /etc and /home
Blessjah has joined #nixos
<arianvp[m]> Though /etc doesn't make too much sense given most of it is generated on boot
<jakobrs> Just `btrfs subvol create nix` right?
<arianvp[m]> Yep
stree has quit [Excess Flood]
<jakobrs> And -o subvol=/path-to-nix
Pidgeotto has quit [Excess Flood]
<arianvp[m]> Nah you don't have to give a path at all?
redkahuna has joined #nixos
<arianvp[m]> Just mount /
<arianvp[m]> That's all you need!
stree has joined #nixos
<arianvp[m]> Subvolumes are folders too. So no need to mount them
<jakobrs> I'm not making this global, I'm keeping /nix in a temporary directory
<jakobrs> Because this is mostly just an experiment, but I might honestly keep it
<drozdziak1[m]> Is it possible to add vim-plug to vim from some *.nix file and make it work in my ~/.vimrc?
<jakobrs> arianvp[m]: So you have / as a btrfs fs? And then you just restore it on boot?
<arianvp[m]> I have / as a btrfs filesystem. Where all the top level directories like /nix are subvolumes
<arianvp[m]> Aka just sub-dirs of /
Pidgeotto has joined #nixos
<jakobrs> but for a clean /, do you just do use btrfs to restore / on each boot?
<arianvp[m]> And then I have the snapshots in the same top-level directory. Though don't have a nice scheme of restoring on boot etc
<arianvp[m]> I don't have such a setup yet. Working on it though.
redkahuna has quit [Ping timeout: 258 seconds]
<arianvp[m]> Ah you trying to mimmick gchristensen 's setup using btrfs?
<jakobrs> yes
<asbachb> Does `genericBuild` works with `buildGoPackage`?
<jakobrs> Something like boot.initrd.postDeviceCommands = lib.mkAfter "btrfs subvol snap /clean-root /"
<arianvp[m]> I had this setup at some moment and it worked: https://github.com/arianvp/nixos-stuff/blob/master/configs/t430s/rootfs.nix
<arianvp[m]> It did mount /nix on time without weird issues
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<arianvp[m]> Ah cool yeh
<arianvp[m]> Ok I might mess around with this idea too today then
<arianvp[m]> But not now.. later. Curious what you come up with :D
o1lo01ol1o has joined #nixos
therealsarcastic has joined #nixos
o1lo01ol1o has quit [Ping timeout: 260 seconds]
stree has quit [Read error: Connection reset by peer]
therealsarcastic has quit [Ping timeout: 265 seconds]
<jakobrs> "cannot enqueue a work item while the thread pool is shutting down"
stree has joined #nixos
redkahuna has joined #nixos
mr_sm1th has quit [Remote host closed the connection]
<jakobrs> Can nix copy reflink?
redkahuna has quit [Ping timeout: 265 seconds]
<aanderse> ok, update... was able to remove /etc mount and system is running fine
<aanderse> but i'm confused whether /root needs to be persistent or not
<aanderse> seems to hold a few important things
<aanderse> (this is in context to my / on tmpfs project, following the guides of several community members)
konobi has quit [Ping timeout: 260 seconds]
is_null has joined #nixos
<asbachb> Any ideas how to build a nixpkg with `buildGoPackage` manually via `nix-env`?
suchar has quit [Quit: WeeChat 2.4]
<arianvp> aanderse: how does that work?
<arianvp> do you nixos-install from the initrd to the rootfs?
suchar has joined #nixos
<aanderse> arianvp: did you read the "erase your darlings" blog entry from gchristensen?
<arianvp> partially :P
<aanderse> gchristensen: i found out why i had problems with my system without persistent /etc
<aanderse> looking through /etc/shadow on a fresh boot i see root has no password entry (sounds like a bug)
<aanderse> i hadn't created a regular user, but instead set users.mutableUsers = false; + users.users.root.hashedPassword = ...; assuming that i would have a root password set
<aanderse> arianvp: you should read blog post from etu :D
<colemickens> I think I intentionally have an unset root password
<colemickens> Oh wait, I didn't read that right.
<colemickens> weird that it got generated but is missing the root entry
<aanderse> well i was actually going to remove the root password, but on install i hadn't created a user account yet... so i couldn't login
<jakobrs> [4/85/1481 copied ...] this is going to take a while
<jakobrs> Is it possible to unmount /nix/store?
<jakobrs> Even if just in a mount namespace
zeenk has joined #nixos
<{^_^}> [nixpkgs] @aanderse merged pull request #85319 → php.extensions.sqlsrv: 5.8.0 -> 5.8.1 → https://git.io/JfvMH
<{^_^}> [nixpkgs] @aanderse pushed 3 commits to master: https://git.io/JfsYm
<arianvp> jakobrs: no; because all the executables that keep the system running are there
<arianvp> we even patched systemd to not unmount /nix/store just like systemd special-cases /usr
<jakobrs> But it's just an ro bind mount of itself
<arianvp> ah that you can undo yes
<jakobrs> I need to unmount it so that I can reflink copy it
<arianvp> I think..
<jakobrs> because --reflink doesn't work across mount points, even on the same device
<arianvp> oh nasty
<arianvp> how about btrfs snapshot /nix ?
<arianvp> how about btrfs snapshot /nix/store *
<jakobrs> nix is not currently a snapshot
<jakobrs> nor is /ix/store
<jakobrs> unmounting /nix/store yields "target busy", even in a mount namespace
fendor_ has joined #nixos
<jakobrs> Presumably because bash, etc is in it
<{^_^}> [nixpkgs] @sorki opened pull request #86645 → libgpiod: add patch fixing cross-compilation → https://git.io/JfsYO
<jakobrs> I was able to lazy unmount it in a namespace
cr4y1 has joined #nixos
<drozdziak1[m]> <arianvp[m] "https://github.com/arianvp/nixos"> from home-manager I get "programs.vim.package is read-only, but it's set multiple times", for home.nix: https://paste.q3k.org/paste/Kkcqslxd#uaZ3C+wS1sULhMIHcv8X-C0ZpBUMHANMC/uoJd3wnDT
<jakobrs> That seems to have worked
<drozdziak1[m]> it doesn't matter what I put in the package field, and whether the derivation I put there is already installed
<arianvp> sorry i havent used home-manager before
<arianvp> maybe the .package field is immutable?
<arianvp> you're not supposed to set it? :/
<arianvp> gchristensen: do we already have https://matchbox.psdn.io/matchbox/ for NixOS?
<arianvp> saw you messing around with iPXE SSL stuff
<arianvp> I need it yesterday
<rycee> drozdziak1: The `programs.vim.package` option is marked `readOnly`. You can't set it yourself.
<drozdziak1[m]> Is there any other way make it use a different vim?
<gchristensen> arianvp: not really, but I'd like one... hydra can acta sone
<rycee> drozdziak1: I don't know much about the vim packaging but from what I can tell if you want to modify the underlying vim package then you can replace it in an overlay.
<rycee> To replace the vim attribute, that is.
<drozdziak1[m]> Okay, I'll consider that
<drozdziak1[m]> thanks!
monsieurp has quit [Ping timeout: 246 seconds]
hlisp has quit [Remote host closed the connection]
<arianvp> I think a very minimal initrd that just nixos-install's whateer it gets served from matchbox would be useful
<arianvp> doesnt sound too hard to pull off
linarcx has quit [Ping timeout: 260 seconds]
<gchristensen> arianvp: I think you're right-ish
<gchristensen> arianvp: does matchbox do formatting? I mean, maybe I have built matchbox-but-for-nixos
<arianvp> matchbox is just an http server serving ignition conifgs (not nixos configs) alas
<arianvp> those configs are then consumed by CoreOS's initrd which indeed does formatting and whatnot
<gchristensen> but you said matchbox-for-nixos :P
<arianvp> I dont think there is much we can re-use directly
<arianvp> yes! we need both matchbox-for-nixos and ignition-for-nixos :P
<arianvp> but I guess "nixos-install" is our ignition-for-nixos sans the formatting drives part
<gchristensen> arianvp: I have built a thing which takes a json document to do formatting / mounts, and a config via a second document, and installs
linarcx has joined #nixos
hlisp has joined #nixos
johnjay has quit [Ping timeout: 272 seconds]
<arianvp> cool
<jakobrs> How do I do nixos-rebuild with a separate store?
<jakobrs> Like --store
<gchristensen> arianvp: so what is next, a mapping service of macaddr <-> (storage,config) ?
<jakobrs> actually I'll just reboot and hope this works
jakobrs has quit [Quit: WeeChat 2.8]
o1lo01ol1o has joined #nixos
<gchristensen> arianvp: matchbox cloud-config, which is where the system config comes from
<ToxicFrog> Can someone else `nix-shell -p python3Packages.py3exiv2' and tell me if it builds?
never_released has joined #nixos
never_released_ has quit [Ping timeout: 272 seconds]
stree has quit [Read error: Connection reset by peer]
<etu> aanderse: My post describes the most basic things you probably want as persistence :)
<arianvp> gchristensen: yes exactly
<gchristensen> arianvp: yes, exactly, that is what my system dos :)
<arianvp> Cook
stree has joined #nixos
<etu> aanderse: the openssh one and the mode= on / is a nice bonus because I've debugged a non starting opensshd several times :p
<gchristensen> so how do we finish this
<arianvp> Cool. And kernel / initrd too of course
<aanderse> etu: yeah, big time!
<aanderse> etu: you didn't mention persistent /root, is that not needed if you use channels?
<aanderse> ~> sudo cat /root/.nix-channels
o1lo01ol1o has quit [Ping timeout: 272 seconds]
hlisp has quit [Remote host closed the connection]
<aanderse> what about you gchristensen ... any persistence in /root ?
<etu> aanderse: I'm not entierly sure, I didn't test that. But I managed to rebuild my system several times in my VM so it had a channel somewhere.
monsieurp has joined #nixos
jakobrs has joined #nixos
<gchristensen> aanderse: not me
<aanderse> gchristensen: and you're using channels?
<gchristensen> aanderse: as long as your only root channel is nixos, nixos will set that channel up on boot
<jakobrs> Is there any drawback to having /nix be a suvolume, even if I'm not having / be a btrfs subvolume?
<{^_^}> [nixpkgs] @andir merged pull request #86642 → maintainers: add kolloch → https://git.io/Jfstj
<{^_^}> [nixpkgs] @andir pushed 2 commits to master: https://git.io/JfsY1
<jakobrs> *even if I'm not having root on tmpfs?
<etu> aanderse: There we have a good answer :)
therealsarcastic has joined #nixos
<gchristensen> etu: link to your post?
<aanderse> gchristensen: does that imply that my channel revision effectively changes on every boot? i would have to run sudo nix-channel --update before i run a rebuild (once after every time i reboot)?
<etu> aanderse: I guess it updates to the revision booted? :D
<etu> that's my guess
<etu> but not sure
<Miyu-saki> How do I escape in ${} multi-line stirng again?
<Miyu-saki> ,escape
<{^_^}> " double quote: \" backslash: \\ bash curly bois: \${} newline: \n tab: \t "
<{^_^}> Miyu-saki: Did you mean escape"?
<Miyu-saki> ,escape''
<{^_^}> '' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
<Miyu-saki> Oh, I still remember the command lol
<gchristensen> aanderse: no, your channel history is safely stored in /nix/var/nix/profiles/per-user/root/channels and on startup you're just getting your symlink back: [root@Petunia:~]# ls -la .nix-defexpr/channels
<gchristensen> lrwxrwxrwx 1 root root 44 Apr 30 09:39 .nix-defexpr/channels -> /nix/var/nix/profiles/per-user/root/channels
<aanderse> etu++
<{^_^}> etu's karma got increased to 16
<aanderse> gchristensen++
<{^_^}> gchristensen's karma got increased to 282
<gchristensen> but the one thing that is NOT a symlink and is deleted / lost, is this: [root@Petunia:~]# cat .nix-channels
<gchristensen> that file is recreated at boot based on the channel your booted system was built from
Fare has joined #nixos
<aanderse> right, so if i want more channels i can just make a symlink or iunno... tmpfiles rule to puke whatever i want in there, i assume (though that is theoretical, only using 1 channel)
<aanderse> awesome!
<infinisil> (or better: Don't use channels at all!)
therealsarcastic has quit [Ping timeout: 260 seconds]
<gchristensen> you can pry channels out of my cold fingers
<aanderse> ahh thats why i thought all the cool kids weren't using channels... infinisil said that ;-)
<gchristensen> the workflow of channels is much better for me, and overlays work great
<aanderse> ok... hopefully final reboot to test this out :)
butcher has joined #nixos
<armin> so network-manager is not remembering my connection when i reboot, any hint what i need to do?
<Fare> I must be doing overlays the hard way, and I suspect there is a right way: pkgs: super: rec { inherit (super) lib; foo = lib.trivial.mergeAttrs super.foo { newField = newValue; };}
splintah has joined #nixos
<Fare> that works fine at one level deep, but N levels deep, it becomes cumbersome.
<infinisil> Fare: Unfortunately there's no generic overriding mechanism for all things in nixpkgs
<infinisil> So even that won't always work correctly
<Fare> ok, // is better than lib.trivial.mergeAttrs
<arianvp> idk what is next gchristensen :)
<jakobrs> Is it a bad idea to do `export NIX_PATH=nixpkgschannel:nixpkgs-unstable` etc?
<arianvp> is it me or is nixpkgs-unstable been kind of stagant the past 2 weeks?
<gchristensen> arianvp: okay but when you know, lmk :P
<Fare> infinisil, so I found one thing I don't like in nix :-/
<jakobrs> *NIX_PATH=nixpkgs=channel:nixpkgs-unstable
<arianvp> im experimenting with all these ideas here: github.com/arianvp/server-optimised-nixos/
<arianvp> its my "what if nixos; but from scratch without me having to worry about breaking other people's stuff" repo
<Fare> I want trivial syntax for a path-derived overriding lens.
ambroisie has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<infinisil> Fare: I guess you're a Haskell person?
<emily> gchristensen: wow, the one person who likes channels
<emily> enjoy them while they last I guess :p
<arianvp> channels I can live with
<gchristensen> I'm not :)
<arianvp> .nix-defexpr and nix-env will confuse me forever
<ToxicFrog> Ok, having a weird issue here
<ToxicFrog> I'm trying to buildPythonPAckage
<gchristensen> arianvp: those are bad
<ToxicFrog> As part of the build, it needs to call msgfmt, which is part of gettext, and `nix-shell -p gettext --run 'type msgfmt'` works fine
<arianvp> and I prefer nobody ever told me that they exist :P
<ToxicFrog> So I do `buildInputs = [ pkgs.gettext ]`
<Fare> infinisil, not a practising Haskeller, just a spectator.
<Fare> I'm a lisper.
<infinisil> > :p lib.recursiveUpdate { foo.bar = { a = 10; b = 20; }; } { foo.bar.b = 30; }
<{^_^}> { foo = { bar = { a = 10; b = 30; }; }; }
<infinisil> Fare: ^
<ToxicFrog> But at build time, it fails with 'unable to execute 'msgfmt': No such file or directory'
<ToxicFrog> What am I missing?
ambroisie has joined #nixos
jakobrs has quit [Quit: WeeChat 2.8]
<ToxicFrog> If I add `echo $PATH` to preBuild, it shows that ${pkgs.gettext}/bin is not part of PATH.
<Fare> OK, other issue: I wanted to get a list of my gerbilPackages, but builtins.attrValues pkgs.gerbilPackages also returns true because of recurseForDerivations = true;
<Fare> I suppose I need to filter that off.
vidbina has joined #nixos
<infinisil> Fare: Yeah, `filterAttrs (name: isDerivation) (...)`
<Fare> infinisil, what is isDerivation ?
<infinisil> It checks whether a value is a derivation
<{^_^}> [nixpkgs] @rnhmjoj merged pull request #86640 → mutt: 1.13.5 -> 1.14.0 → https://git.io/JfstO
<{^_^}> [nixpkgs] @rnhmjoj pushed 2 commits to master: https://git.io/JfsOt
* Fare sees lib.attrsets.isDerivation in the nixpkgs manual. Thanks!
o1lo01ol1o has joined #nixos
<Fare> I only just understood you were building a curried function that was ignoring its first argument.
<sephii> Does anyone know how to change the editor used by the `nixos-rebuild edit` command? Running it without sudo opens it with vim (which is correct, but then I can't save it), but using sudo opens it with nano. I've already set `environment.variables.EDITOR` to `vim` and `echo $EDITOR` shows vim.
<{^_^}> [nixpkgs] @aanderse merged pull request #86608 → libcec: 4.0.4 -> 4.0.5 → https://git.io/Jf3Sz
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/JfsOZ
<Fare> sephii, sudo tends to forget the environment for security reasons
ixxie_ has joined #nixos
<Fare> sephii, sudo EDITOR=vim nixos-rebuild edit ?
<sephii> Fare: ah yes it works... but then it's easier to just write `sudo vim /etc/nixos/configuration.nix` ^^
phreedom has quit [Quit: No Ping reply in 180 seconds.]
phreedom has joined #nixos
<infinisil> sephii: How about `sudoedit /etc/nixos/configuration.nix`
<Fare> sephii, wait, you don't use Emacs???
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #nixos
<Fare> ok, have you seen nixos/modules/programs/environment.nix EDITOR = mkDefault "nano"; --- you should be able to override that, no?
<clever> Fare: > I've already set `environment.variables.EDITOR` to `vim` and `echo $EDITOR` shows vim.
<sephii> Fare: haha, actually I use it as my primary editor, but I've been a long time vim user and I'm still using it in the terminal ;)
johnjay has joined #nixos
<sephii> infinisil: didn't know about sudoedit, thanks, it also works (uses vim)
<Fare> emacsclient -nw FTW!
fusion809 has joined #nixos
<FireFly> there's also 'sudo -e', I'm not entirely sure how it differs to sudoedit
<FireFly> oh hm, seems 'sudoedit' is just an alias for the same (judging by the manpage: 'when invoked as sudoedit, the -e option is implied')
<clever> lrwxrwxrwx 1 root root 4 Dec 17 2014 /usr/bin/sudoedit -> sudo
<clever> FireFly: on a regular system, its just a symlink
oldyas has joined #nixos
<{^_^}> [nixpkgs] @romildo merged pull request #86424 → xfce.xfce4-panel: 4.14.3 -> 4.14.4 → https://git.io/JfOzf
<{^_^}> [nixpkgs] @romildo pushed 2 commits to master: https://git.io/JfsOr
<{^_^}> [nixpkgs] @Mic92 opened pull request #86646 → dmg2img: fix build against openssl 1.1 → https://git.io/JfsOo
verdys has quit [Ping timeout: 272 seconds]
ixxie_ has quit [Quit: leaving]
Avaq has quit [Quit: Leaving.]
<{^_^}> [nixpkgs] @romildo merged pull request #86196 → pop-icon-theme: init at 2020-03-04 → https://git.io/Jfm3s
<{^_^}> [nixpkgs] @romildo pushed 2 commits to master: https://git.io/JfsOy
phreedom has quit [Quit: No Ping reply in 180 seconds.]
phreedom has joined #nixos
<ixxie> are NixOS networking options built on networkd?
<qyliss> Not by default
<srk> not by default iirc
<qyliss> But there is also a networkd module
<ixxie> hmmm
seg has joined #nixos
phreedom has quit [Ping timeout: 240 seconds]
<Fare> ok, so is there a way to specify a local directory or private git repo (with private credentials) as src to a derivation?
<clever> Fare: src = /home/clever/apps/foo;
<{^_^}> [nixpkgs] @peterhoeg merged pull request #86628 → unar: 1.10.1 -> 1.10.7 → https://git.io/JfsUH
<Fare> Is that how you are supposed to include private / secret software in a nix recipe? What if I have a private server to distribute source around?
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/Jfs3v
<clever> Fare: builtins.fetchGit can also clone anything you can with `git clone`
<clever> it runs git as your user, so it can use whatever secrets you have in the usual places
phreedom has joined #nixos
splintah has quit [Ping timeout: 260 seconds]
avn has quit [Ping timeout: 264 seconds]
therealsarcastic has joined #nixos
<Fare> clever, I tried to use fetchGit, but it wouldn't use my ssh credentials.
<clever> Fare: what url did you use? how did you run the build from a shell?
<Miyu-saki> methinks they used a sudo?
<Miyu-saki> Tho, I wonder. How would you resolve that? Like, a secret Git repo with configuration.nix.
<Miyu-saki> Run the build as a user?
<clever> Miyu-saki: `sudo ssh` works just fine when your using an ssh-agent
redkahuna has joined #nixos
<Miyu-saki> Oh. TIL.
<Fare> clever: a private gitlab server
<clever> sudo changes $HOME, so ~/.ssh is diff, but it leaves $SSH_AUTH_SOCK intact
<Miyu-saki> Does it check $SUDO_USER?
<Miyu-saki> Oh
<Miyu-saki> Right.
<Fare> clever: I have a local checkout from git+ssh
<clever> Fare: how did you run the build from a shell?
<Fare> clever, without nix, usually
<Fare> or a dirty nix-shell ?
oldyas has quit [Quit: Konversation terminated!]
therealsarcastic has quit [Ping timeout: 260 seconds]
<clever> Fare: something must be evaluating the nix expr with builtins.fetchGit, what did it?
<Fare> nothing. I disabled it, because I didn't know how to make it work.
domogled has quit [Ping timeout: 272 seconds]
redkahuna has quit [Ping timeout: 240 seconds]
<ToxicFrog> Oh COME ON
<ToxicFrog> It's expecting a `setup.py dl_assets` phase, which of course is illegal in nix
<seg> Hi, I'm using NixOS with GNOME and have the issue that the desktop launchers of applications I install are not accessible via GNOME (for example when I search for the application via GNOME Shell's search). Does anyone know how to fix this?
stepcut has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<emily> seg: log out and in again
<emily> this is a bug probably... I don't know if it's on the tracker
<Fare> weird, when in a nix-shell I buildPhase, it also runs the tests in ./unit-tests.ss but I don't know what triggers that.
<seg> emily: thanks! I was sure I had already tried that, but I just tried again and it did work!
o1lo01ol1o has joined #nixos
<emily> seg: if you feel like opening an issue for it that would be great: https://github.com/NixOS/nixpkgs/issues/new?assignees=&labels=0.kind%3A+bug&template=bug_report.md&title=
<emily> (otherwise I'll try to remember to at some point)
<arianvp[m]> Seg try logging in and out
<arianvp[m]> I think they're not pivke up otherwise. It's a bit odd
<arianvp[m]> Not sure if that's a bug or not. Has been doing that as long as I remember
<seg> aranvp[m]: thanks, emily already suggested that and it did fix the issue
<seg> arianvp[m]: thanks, emily already suggested that and it did fix the issue
<arianvp[m]> I'd say it's a bug. Maybe there's an issue open for it as this issue has been there already for a loooong time
<arianvp[m]> (as long as I can remember)
shibboleth has joined #nixos
<seg> I'm creating a bug report now. Do you know if this only affects GNOME?
o1lo01ol1o has quit [Ping timeout: 260 seconds]
<Fare> apparently, it was calling the Makefile instead of evaluating $buildPhase
<emily> seg: I think it's a GNOME thing, but I'm not certain
<emily> it's fine to just report your specific circumstances and the issue can be generalized if the root cause turns out to be broader
<emily> arianvp: I think it's as much as bug as if it didn't get picked up in $PATH
<emily> it's certainly very annoying at least
redkahuna has joined #nixos
<Fare> for the sake of a recipe, what's the easiest way to test whether a directory is empty?
<clever> Fare: builtins.readDir
<{^_^}> #86647 (by segfault3, 34 seconds ago, open): Desktop launchers not accessible via GNOME until new login
redkahuna has quit [Ping timeout: 260 seconds]
<Fare> clever, sorry, I meant in the installPhase bash script of a recipe
<emily> seg: thank you!
<Fare> I'm detecting whether the package contains binaries, and if so install them in bin/
<Fare> $out/bin that is, vs $out/gerbil/bin
<emily> Fare: I came up with ! find dir -mindepth 1 -exec false {} +, which I hate :p
<emily> Fare: foo=(dir/) and then whatever zany bash syntax tests if an array is empty is probably going to be the most omgoptimized
sanks_im[m] has joined #nixos
<emily> ugh, asterisk after dir/. matrix client issues
<Fare> emily, I just did bins=(dir/*) ; if [ 0 -lt ''${#bins} ] ; then ...
arjen-jonathan has joined #nixos
sanks_im[m] is now known as Sanks[m]
reallymemorable has joined #nixos
Sanks[m] has left #nixos ["User left"]
<ixxie> What is it that determines the name of a networking interface? The same VM has an interface called 'eth0' in Ubuntu and 'ens3' in NixOS
<symphorien> it's called predictable interface names
<symphorien> a setting of udev
stepcut has quit [Remote host closed the connection]
<ixxie> symphorien: how can I predict them?
<{^_^}> [nixpkgs] @snicket2100 opened pull request #86648 → kismet: 2016-07-R1 -> 2020-04-R2 → https://git.io/Jfssk
stepcut has joined #nixos
<symphorien> my point is: ubuntu does not have it by default, nixos has
<symphorien> ubuntu names are not predictable because they depend on boot timing
<symphorien> the actual algorithm to assign predictable name, I don't know
<emily> ixxie: by checking ip(8), mostly
<emily> it's technically derived from the hardware path
<emily> Fare: (( ${#bins} )) will save you a subshell :p
<linarcx> Guys, i wana use libaria2 with shell.nix. But there is only aria package that doesn't include development files. What can i do?
seg has quit [Remote host closed the connection]
seg has joined #nixos
stepcut has quit [Ping timeout: 272 seconds]
stepcut has joined #nixos
meck has quit [Quit: ZNC 1.7.5 - https://znc.in]
<ixxie> emily: so you mean running `ip addr`
meck has joined #nixos
o1lo01ol1o has joined #nixos
<ixxie> so what's a function that lets you run a shell command and capture the output?
<gchristensen> pkgs.runCommand "foo" {} ''echo hi > $out''
avn has joined #nixos
<Miyu-saki> (That runs under a nix builder tho. So that's either exactly what you want, or not what you want at all.)
Lumpio- has left #nixos ["WeeChat 2.5"]
<Miyu-saki> (Just clarifying that, because they were talking about network interfaces a while ago.)
<notgne2> you can technically still use the results in Nix expressions though using buuiltins.readFile Miyu-saki
<notgne2> not sure if it's a good idea, but one of my personal modules actually uses runCommandNoCC to generate a list of IPs for the wireguard module
<ixxie> well here is the thing... I need to determine the network interface in order to add an IP to it, but this needs to be dynamic; clever recommended I create a dedicated systemd service for this, but learning now from symphorien that NixOS ensures a predictable network interface name, I feel that approach is overkill
<ixxie> so I plan to determine the interface at build time. Only minus is that I must build on the target machine, but for the time being I can live with that and do something fancier in the future
<Miyu-saki> It's not. You'd want to generate them on runtime. But let's be honest, it's morally okay to make something just work, rather than correct.
<simpson> linarcx: I've taken a quick look at the package. I'm guessing that the aria2 derivation could be configured to build the library and changed to have a lib output.
<ixxie> somehow all of this still seems more complicated than it should be, I am quite sure there are better tools for this that I don't know about
<Miyu-saki> Technically, you can't determine the interface at build time, because Nix is not hardware-aware.
iyzsong has quit [Ping timeout: 260 seconds]
<Miyu-saki> you can determine the interface at build time, on the first build. But it will stop working when you change hardware.
<notgne2> my use case was at least still deterministic (it takes the server IP and uses the python ipaddress module to create subnet ranges excluding it), if you use a derivation to break purity like that it will be difficult, and that's probably for a good reason as it can be really messy to forget about or work around in the future
<Miyu-saki> Which is ewll, somewhat okay, honestly.
sascha-grunert has joined #nixos
<ixxie> Miyu-saki: its a VM :D
<Miyu-saki> ixxie: I think the more morally correct way is to generate the VM deterministically.
<Miyu-saki> Rather than generate an image for a VM.
Sanks[m]1 has joined #nixos
<ixxie> Miyu-saki: well, I buy it from Hetzner cloud; its possible they are deterministic but I am not sure.
<clever> ixxie: how many interfaces on the machine, how do they differ from eachother?
<ixxie> clever: always two, the loopback and the actual interface
<Miyu-saki> Hm.
<clever> ixxie: then you can just disable predictable names, and assume eth0
<Miyu-saki> Are impure derivatiions content-addressable?
<clever> ixxie: loopback is always lo, so you can be sure it will be lo and eth0
<Miyu-saki> Like, if an impure derivation results in the same value, is the dependency tree cached?
<ixxie> clever: so you are saying predictable names are less pretictable :D
<{^_^}> [nixpkgs] @mmilata opened pull request #86649 → nixos/prosody: add MUC extraConfig + fixes → https://git.io/JfsGk
<clever> ixxie: they are predictable, based on the output of lspci, and some complex rules
<clever> ixxie: but if you dont know those rules, and cant boot a nixos to query things, it can be simpler to just turn them off
CMCDragonkai1 has joined #nixos
<ixxie> clever: well I have booted a nixos on one of those machines, and discovered the predictable interface name (ens3)
<ixxie> clever: I guess I can also leave predictable names on and assume it will always be ens3
<clever> ixxie: and what did lspci say about the card?
<ixxie> didn't check that, hold on
vidbina has quit [Ping timeout: 256 seconds]
<linarcx> simpson: How?
<hyperfekt> damn i'm so tempted to add the iohk cachix as a substituter. i don't wanna add unnecessary trust in general but the IFD from package/stack.yaml stuff is so nice
sascha-grunert has quit [Remote host closed the connection]
therealsarcastic has joined #nixos
akamaus has quit [Ping timeout: 260 seconds]
<ixxie> clever: do you happen to know which package contains lspci?
<clever> > bin lspci
<{^_^}> undefined variable 'bin' at (string):309:1
<clever> ,locate bin lspci
<clever> oops
<{^_^}> Found in packages: toybox, busybox, pciutils
ehmry has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
monsieurp has quit [Remote host closed the connection]
<ixxie> cheers
ehmry has joined #nixos
<srk> I've consider adding aliases for lspci, lsusb and alsamixer recently. and maybe jscal as well but that needs work
<Miyu-saki> I'm actually curious myself. What are the inputs to predictable interfaces??
<Miyu-saki> s/??/?/
<Miyu-saki> 03:00.0 Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 34)
<clever> Miyu-saki: pci bus, slot, and function number are some of it
<Miyu-saki> 3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
<Miyu-saki> Ah.
<clever> let me find my notes
<Miyu-saki> clever: I corebooted this a few days ago, then uncorebooted it, because it was more broken.
<Miyu-saki> It changed my interface from wlp3s0 to wlp2s0.
<clever> 00:03.0 Ethernet controller: Red Hat, Inc. Virtio network device
therealsarcastic has quit [Ping timeout: 265 seconds]
<clever> ixxie: its on bus 0, slot 3, function 0
<Miyu-saki> Oh okay. I'm starting to see this.
<Miyu-saki> s means slot
turona has quit [Quit: ...]
civodul has joined #nixos
<Miyu-saki> 03:00.0 -> wlp3s0
<Miyu-saki> 00:19.0 -> enp0s25
<Miyu-saki> 19#16 == 25#10
<ixxie> clever: so... en = ethernet s3 = slot 3
monsieurp has joined #nixos
<Miyu-saki> Oh. :D
<Miyu-saki> Thanks! \o
jb55 has quit [Ping timeout: 240 seconds]
zeenk has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @Mic92 merged pull request #86646 → dmg2img: fix build against openssl 1.1 → https://git.io/JfsOo
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JfsGE
<Miyu-saki> >
<Miyu-saki> The PCI domain is only prepended when it is not 0.
<Miyu-saki> Hmm
<Miyu-saki> I guess it *may* still be prependend if it's 0.
Jackneill has quit [Ping timeout: 272 seconds]
<Miyu-saki> Well, now I know something new.
<Miyu-saki> Now I'm curious how IPv4 and IPv6 works without dhcpcd.
<linarcx> Guys is't possible to use host dependencies inside shell.nix?
<Miyu-saki> host dependencies?
<ixxie> thanks clever, Miyu-saki, emily & symphorien
<clever> linarcx: they will leak into the shell by default, and only --pure can stop that
<kraem> ,locate nmcli
<{^_^}> Found in packages: networkmanager, networkmanager098
<linarcx> clever: But i can't access them. I'm using nix+lorri+direnv on void linux.
<Miyu-saki> Since we're talking about nix-shell. How would I nix-shell a package's dependencies and a few tools?
dadada_ has quit [Quit: WeeChat 2.7.1]
<Miyu-saki> -E .overrideAttrs?
<linarcx> And installed libaria2 via xbps(package manager of void) and wana use libaria2 inside shell.nix. But seems it can't find it.
<Miyu-saki> nix-shell -E '(import ./shell.nix {}).overrideAttrs (oldAttrs: {nativeBuildInputs = [ foo ] ++ oldAttrs.nativeBuildInputs;})`
<clever> linarcx: the gcc provided by nix will never look in /usr/lib
<Miyu-saki> Is there an easier idea than that? lol
<clever> linarcx: it can only find libraries that nix is providing
dadada_ has joined #nixos
<linarcx> It's not gcc, it's clang.
reallymemorable has quit [Quit: reallymemorable]
<clever> linarcx: same rules for the clang that nix provides
<Miyu-saki> Wouldn't you also have linker problems?
<Miyu-saki> or, well, interpreter?
<Miyu-saki> Or is the interpreter only determined on the executable?
<linarcx> clever: hmm.. thanks. So using `pure` is meaningless with gcc and clang, yes?
<{^_^}> [nixpkgs] @Flakebi opened pull request #86651 → [19.09] salt: 2019.2.0 -> 2019.2.4 → https://git.io/JfsGo
<clever> linarcx: pure only really matters in terms of $PATH and other env vars
zebrag has joined #nixos
<clever> linarcx: libraries are special, and usually wont be picked up enless they are in the buildInputs
<linarcx> Got it. thanks.
jb55 has joined #nixos
Jackneill has joined #nixos
<simpson> linarcx: I'm not sure yet. I think that you'll have to read upstream libaria2 packaging in order to figure it out.
<{^_^}> [nixpkgs] @pingiun opened pull request #86652 → python3Packages.python-telegram-bot: 12.3.0 -> 12.7 → https://git.io/JfsZf
konobi has joined #nixos
<{^_^}> [nixpkgs] @Flakebi opened pull request #86653 → [20.03] salt: 2019.2.0 -> 2019.2.4 → https://git.io/JfsZJ
turona has joined #nixos
hlisp has joined #nixos
morgrimm has joined #nixos
hlisp has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @Luz opened pull request #86654 → librepcb: 0.1.3 -> 0.1.4 → https://git.io/JfsZO
oborot has joined #nixos
mallox has quit [Quit: WeeChat 2.8]
<{^_^}> [nixpkgs] @Ma27 merged pull request #86603 → youtube-dl: 2020.03.24 -> 2020.05.03 → https://git.io/Jf3Df
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JfsZr
<{^_^}> [nixpkgs] @DamienCassou merged pull request #86568 → gmailctl: 0.6.0 -> 0.7.
<{^_^}> [nixpkgs] @DamienCassou pushed 2 commits to master: https://git.io/JfsZX
cole-h has joined #nixos
<amf> is there a nix file formatter? like clang-format
<{^_^}> [nixpkgs] @DamienCassou merged pull request #86627 → fluent-bit: 1.4.1 -> 1.4.3 → https://git.io/JfsU9
<{^_^}> [nixpkgs] @DamienCassou pushed 2 commits to master: https://git.io/JfsZM
<amf> nice! thanks cole-h
<{^_^}> [nixpkgs] @romildo opened pull request #86655 → xfce.xfwm4: 4.14.0 -> 4.14.2 → https://git.io/JfsZd
<cole-h> Fellow vimmers, how do you replace your tofu hashes with the real hash? Do you just do `vi"p`, as I do, or is there some better way?
<{^_^}> [nixpkgs] @jonasnick opened pull request #86656 → lnd: 0.9.2 -> 0.10.0 → https://git.io/JfsnJ
vidbina has joined #nixos
<ehmry> FYI, there is a provisional mumble server - mumble://mumble.nix-community.org
slack1256 has joined #nixos
<ixxie> anybody use VSCode? How extensive is the extension coverage in the declarative configuration available in home-manager?
<cole-h> (Assuming you don't get a satisfying answer here, you could also ask at #home-manager)
zupo has joined #nixos
<infinisil> ehmry: Neat, just for all kinds of things?
<{^_^}> [nixpkgs] @cole-h opened pull request #86658 → zoxide: 0.3.1 -> 0.4.0 → https://git.io/Jfsn4
<infinisil> cole-h: Doing the same with vim :)
<{^_^}> [nixpkgs] @Ma27 pushed commit from @Luflosi to release-20.03 « youtube-dl: 2020.03.24 -> 2020.05.03 »: https://git.io/JfsnB
<cole-h> OK, cool. Just wanted to make sure I wasn't missing out on any vim magic, like I so-frequently am
<ehmry> infinisil: all kinds of nix things
therealsarcastic has joined #nixos
slack1256 has quit [Ping timeout: 265 seconds]
<cole-h> infinisil: While I have your attention: Do you know if it's possible to `nix-store -r ....` from cachix? I attempted to set it up for my CI last night, but running `nix-store -r` on the logged path just threw an error...
slack1256 has joined #nixos
<clever> cole-h: there is a negative narinfo cache
<clever> cole-h: if nix-store -r cant find something, it wont bother checking again for an hour
<simpson> linarcx: I suspect that the lib might not even be being built.
<simpson> That is, you might have to change how aria2 is configured, not installed.
therealsarcastic has quit [Ping timeout: 256 seconds]
<cole-h> clever: Is there a way to 1) clear that cache; or 2) make it check the path from Cachix? I don't know the underlying mechanisms, but it just sounded as if it couldn't find the path at all, even after `cachix use`
rembo10_ has quit [Quit: ZNC 1.7.5 - https://znc.in]
<clever> $ nix show-config | grep nega
<clever> narinfo-cache-negative-ttl = 3600
<cole-h> Oh, maybe that's `--option narinfo-cache-negative-ttl 0`
<cole-h> Yeah heh
<clever> cole-h: you can use --option to just make it smaller
floscr has joined #nixos
floscr has quit [Remote host closed the connection]
floscr has joined #nixos
<infinisil> cole-h: I created this script to check whether cachix has paths cached: https://github.com/Infinisil/all-hies/blob/master/check-cache.sh
floscr has quit [Remote host closed the connection]
hlisp has joined #nixos
floscr has joined #nixos
rembo10 has joined #nixos
<cole-h> Oooh, looks interesting. infinisil++
<{^_^}> infinisil's karma got increased to 279
<floscr> Is it possible to write functions that set multiple config values?
<infinisil> floscr: Needs more context
hlisp has quit [Ping timeout: 246 seconds]
<floscr> Here's the gist of what I want
<Aleksejs> Hello, I'm trying to switch to 20.03 and I'm getting an error about libstdc. --show-trace shows this: http://vpaste.net/YJagP
<floscr> So I pass two strings to a function, and it writes to multiple values.
<{^_^}> [nixpkgs] @maralorn opened pull request #86659 → haskellPackages.ghcide: Fix build → https://git.io/Jfsnx
stepcut has quit []
hlisp has joined #nixos
<{^_^}> [nixpkgs] @asbachb opened pull request #86660 → lxd: added patch for fixing path `/usr/share/misc/usb.ids` → https://git.io/JfscY
<glittershark> is there some way in a nix expression to force a derivation to be built?
<glittershark> I would expect "${drv}" to work but it's not building, which is very strange to me
<clever> glittershark: "${drv}" will return the path to the result, and invisibly attach the derivation to that string
<glittershark> the path doesn't exist though
<clever> glittershark: if you then pass that string to another derivation, it magically becomes part of the build-time dependencies
<nschoe> Hi everyone. I'm on 20.03, fresh install from a few weeks ago. My laptop SD card reader doesn't seem to work. Inserting the SD card inside does not show a /dev/mmcblk as it should be, and 'dmesg' doesn't even register it.
<nschoe> 'lspci' lists the reader as "Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)".
<nschoe> Is there something I should install or a nixos-option to enable?
<glittershark> until I :b it
<glittershark> clever: that's what I thought... but it isn't happening
<clever> glittershark: and when you try to build a derivation, all of its build-time deps get built
<glittershark> clever: again, that's what I would expect to happen, but it isn't
<clever> glittershark: so only :b, nix-build, nix-shell, and nix-env can cause the build to actually start]
ninegrid has quit [Read error: Connection reset by peer]
ninegrid has joined #nixos
<dxtr> I am actually amazed at how well nixos-rebuild switch works
<Aleksejs> Anyone has an idea about my problem? I tried to google it with no result. I tried to disable all imports and all options in my nix file - still the same error
<clever> Aleksejs: what have you set systemPackages to?
<clever> Aleksejs: and what is the exact error msg?
hlisp has quit [Ping timeout: 256 seconds]
<Aleksejs> the error message is "Package ‘libstdc++5-3.3.6’ in /nix/store/1mgwylas2q898px4sgwlvc8jrd9ilakl-nixos-20.03.1619.ab3adfe1c76/nixos/pkgs/development/libraries/gcc/libstdc++/5.nix:113 is marked as broken, refusing to evaluate."
<notgne2> is there a quick way to fix the nameserver config in nixos without rebuilding
<notgne2> I'm booted into a server using clever's kexec thingy and realized I forgot to set the nameserver
<clever> Aleksejs: and what do you have in systemPackages?
<clever> notgne2: just edit /etc/resolv.conf
<Aleksejs> clever: you mean environment.systemPackages?
<clever> Aleksejs: yes
<notgne2> oh huh, I expected that to be a symlink or something
<floscr> How can I share a function across config files?
<clever> notgne2: due to dhcp, it has to be edited at runtime
<Aleksejs> I put all packages I use there
<cole-h> infinisil: So, I get a cache hit using your script, but when I run `nix-store -r ...`, I get told `don't know how to build these paths`. Any ideas?
<infinisil> cole-h: Did you configure it with `cachix use`?
<clever> cole-h: what does `nix show-config | grep sub` say?
<cole-h> I did `cachix use`, but hey, it didn't show up in the substituters list...............
<cole-h> Oh lmao I had a comment at the end of my config line, where the cache got added
<cole-h> Yep, that did it lol.
james has joined #nixos
morgrimm has quit [Ping timeout: 265 seconds]
james has left #nixos [#nixos]
hlisp has joined #nixos
jiphex has joined #nixos
<cole-h> It's because I had a cache commented in my `/etc/nix/nix.conf`
reallymemorable has joined #nixos
<cole-h> So `cachix use` would copy that comment every time, and add the new cache after that..
jiphex has quit [Client Quit]
<cole-h> Finally! Thank you! infinisil++ clever++
<{^_^}> clever's karma got increased to 404
<{^_^}> infinisil's karma got increased to 280
<infinisil> :D
Cale has quit [Ping timeout: 244 seconds]
jiphex has joined #nixos
arjen-jonathan has quit [Quit: WeeChat 2.8]
hlisp has quit [Ping timeout: 260 seconds]
Cale has joined #nixos
<infinisil> floscr: I recommend defining an option for that
<infinisil> E.g. `options.bindings = mkOption { type = attrsOf (submodule ({ name, ... }: { options.key = mkOption { default = name; ... }; options.command = mkOption { ... }; }
<infinisil> This then allows setting `config.bindings.<some-key> = <some-command>` in any NixOS module
hlisp has joined #nixos
therealsarcastic has joined #nixos
fusion809 has quit [Remote host closed the connection]
floscr has quit [Ping timeout: 260 seconds]
user_0x58 has joined #nixos
jiphex has quit [Remote host closed the connection]
therealsarcastic has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @hedning opened pull request #86661 → Gnome 3.36.2 → https://git.io/JfsCr
<{^_^}> [nixpkgs] @glittershark opened pull request #86662 → chromium: Add missing dependency on gnugrep → https://git.io/JfsCi
hlisp has quit [Ping timeout: 256 seconds]
<Aleksejs> clever: I've removed the libstdc package for now. I don't actually remember why I added it. Also I noticed that steam cannot be installed - some urls return 404
reallymemorable has quit [Quit: reallymemorable]
reallymemorable has joined #nixos
<nschoe> Any idea for the SD card reader?
<{^_^}> [nixpkgs] @dasJ opened pull request #86663 → left4gore: Init at 2.3 → https://git.io/JfsCx
fabianhjr has joined #nixos
<clever> Aleksejs: valve deleted the .deb files after an update, the fix is already in nixpkgs master
ninegrid has quit [Ping timeout: 260 seconds]
CMCDragonkai1 has quit [Ping timeout: 260 seconds]
rcshm has joined #nixos
rcshm has quit [Client Quit]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @jtojnar merged pull request #86596 → libmypaint: 1.5.1 -> 1.6.
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/JfsWS
<betaboon> colemickens: i got webrtc, pipewire working. about to open a PR. but i need to ask your opinion on one detail: in order for chrome/chromium/vivaldi to work with pipewire you have to set a flag and add pipewire_0_2 to LD_LIBRARY_PATH. i created a wrapper for chrome go add it. and that works. alternativly you could add LD_LIBRARY_PATH to environment.variables and get rid of the wrappers. what would
<betaboon> you prefer ?
butcher_ has joined #nixos
<Athas> Can someone tell me whether I'm supposed to do more about https://github.com/NixOS/nixpkgs/pull/84730, or whether there's just a lack of review resources?
<{^_^}> #84730 (by athas, 3 weeks ago, open): mlkit: init at 4.5.0
splintah has joined #nixos
mallox has joined #nixos
butcher has quit [Ping timeout: 260 seconds]
<cole-h> betaboon: Better to submit it and spark conversation there, where it (probably) won't get lost to the annals of IRC
<cole-h> (IMHO)
<betaboon> cole-h: true. will do
hlisp has joined #nixos
mallox has quit [Quit: WeeChat 2.8]
mallox has joined #nixos
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
gilligan has joined #nixos
<gilligan> hi
Rusty1 has joined #nixos
jmeredith has joined #nixos
<cole-h> Howdy :)
philr has quit [Ping timeout: 272 seconds]
gilligan has quit [Quit: WeeChat 2.7.1]
gilligan has joined #nixos
<slack1256> y'all
* cole-h tips 10-gallon cowboy hat.
o1lo01ol1o has quit [Remote host closed the connection]
therealsarcastic has joined #nixos
o1lo01ol1o has joined #nixos
<arianvp> does anybody know what the "services.nginx.sso.enable" is?
chloekek has quit [Ping timeout: 272 seconds]
<arianvp> it says "Whether to enable nginx-sso service"
<arianvp> but googling that gives no results ;and there's no additional documentation
<arianvp> it sounds useful; but can not decide what this option does at all
shafox has joined #nixos
hlisp has quit [Ping timeout: 272 seconds]
o1lo01ol1o has quit [Ping timeout: 256 seconds]
therealsarcastic has quit [Ping timeout: 260 seconds]
stree has quit [Read error: Connection reset by peer]
stree has joined #nixos
o1lo01ol1o has joined #nixos
hlisp has joined #nixos
linarcx has quit [Quit: WeeChat 2.8]
<{^_^}> [nixpkgs] @dywedir merged pull request #86658 → zoxide: 0.3.1 -> 0.4.0 → https://git.io/Jfsn4
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/Jfs8g
o1lo01ol1o has quit [Remote host closed the connection]
gilligan has quit [Ping timeout: 244 seconds]
gilligan has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
akamaus has joined #nixos
domogled has joined #nixos
lord| has quit [Quit: https://i.imgur.com/xacQ09F.mp4]
<{^_^}> [nixpkgs] @Ma27 pushed 5 commits to master: https://git.io/Jfs8i
<philipp[m]> What is wrong with the channels? Why is everything stuck?
lord| has joined #nixos
vidbina has quit [Ping timeout: 272 seconds]
akamaus has quit [Ping timeout: 240 seconds]
<clever> philipp[m]: https://status.nixos.org/
<clever> philipp[m]: darwin is to blame i think, for the nixpkgs based channels
<betaboon> cole-h: done :)
linarcx has joined #nixos
<clever> philipp[m]: for nixos, a range of failures, that look like a game of whack-a-mole, one gets fixed, then another comes up
<philipp[m]> So the usual :-)
hlisp has quit [Ping timeout: 265 seconds]
<philipp[m]> Didn't pay much attention to it the last few weeks and was wondering when i saw the status page.
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
akamaus has joined #nixos
<evils> why the mismatch between status.nixos.org's reported age and the passing builds' age?
ddellacosta has joined #nixos
<simpson> Because distributed systems don't have a single absolute ordering of all events.
<evils> nixos-unstable-small is reported as 3 days old, but it's been passing for the last 3 days
o1lo01ol1o has quit [Ping timeout: 272 seconds]
<evils> and distributed systems can have an absolute ordering...
<simpson> Meh. I mean, yes, I was flippant. Reading https://nixos.wiki/wiki/Nix_channels, I think that the channel does not update until the entire package set is cached, and the cache probably takes time to fill, although maybe three days is a long time for that.
<{^_^}> [nixpkgs] @NeQuissimus pushed 4 commits to master: https://git.io/Jfs4H
o1lo01ol1o has joined #nixos
<evils> oh and i seem to recall seeing channels advance while status.nixos.org didn't reflect that in the age
o1lo01ol1o has quit [Remote host closed the connection]
<clever> simpson: yeah, it wont update until the linked job is green, and EVERYTHING in that eval has at least been tried, pass or fail
o1lo01ol1o has joined #nixos
Rusty1 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<{^_^}> [nixpkgs] @ryantm merged pull request #86565 → ft2-clone: 1.15 -> 1.2
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JfsBf
justanotheruser has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @ryantm merged pull request #86538 → clightning: 0.8.1 -> 0.8.
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JfsBJ
<evanjs> Alright so is there an easy way to grep the output from nix-review (or nixpkgs-review... cant remember) so I can see which packages are failing as a direct result of my changes?
<{^_^}> [nixpkgs] @ryantm merged pull request #86516 → binaryen: 91 -> 9
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JfsBk
<evanjs> And to expand on that, is `nix-review rev HEAD` the right approach for testing eg #77714?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/77714 (by evanjs, 15 weeks ago, open): pythonPackages.pillow: 6.2.1 -> 7.0.0
o1lo01ol1o has quit [Ping timeout: 272 seconds]
<evanjs> If my current local branch is pristine
andymandias has joined #nixos
<evanjs> I don’t know if I can handle `nix build`ing 30+ packages individually
<{^_^}> [nixpkgs] @Ma27 merged pull request #86605 → wireguard-compat: 1.0.20200426 -> 1.0.20200429 → https://git.io/Jf3ym
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JfsBZ
andymandias_ has quit [Ping timeout: 272 seconds]
<evanjs> I want to compile a list of packages that break as a direct result of my bump for pillow so I can address those directly. Filtering out such packages by doing individual `nix build`s will likely drive my insane... should I ever have enough focus to get it done
Fare has quit [Ping timeout: 260 seconds]
<clever> evanjs: nix-build -E 'with import <nixpkgs> {}; buildEnv { name = "foo"; paths = [ hello firefox ]; }'
<clever> evanjs: that will build 2 packages at once
o1lo01ol1o has joined #nixos
<LnL> well that also assumes both work
<evanjs[m]> I mean I could do that... but isn’t nix-review essentially doing the same thing?
<evanjs[m]> While addressing what LnL mentioned
growpotkin has joined #nixos
<LnL> this is kind of a tricky problem what you'd basically have to do is evaluate the diff (ofborg mostly does that) and then check each attribute in the cache
<LnL> for a know good revision like the last channel update, then build all those that are not missing
<evanjs> Hrm. Is there no way to aggregate the failed build logs from `nix-review` or etc?
<evanjs> Could just pipe/tee/redirect _all_ of it to a file, but...
floscr has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
<LnL> I don't know the details of how nix-review works
<LnL> nix path-info --store https://cache.nixos.org $(nix eval --raw -f channel:nixpkgs-unstable hello.outPath)
justanotheruser has joined #nixos
<{^_^}> [nixpkgs] @Ma27 pushed 3 commits to release-20.03: https://git.io/JfsBo
<LnL> ^ but that would be one way of checking what I mentioned before
michalrus has joined #nixos
<michalrus> Hey, my Noto Emoji font symbols in terminal or on i3bar/swaybar are huuuuuge.
<michalrus> On 19.09?
<evanjs> On that note... is there a difference between nix-review and nixpkgs-review..? Or was it just renamed a while back? The readme in the repo for nixpkgs-review seems to have mentions of both nix-review and nixpkgs-review
<evanjs> Mic92: ^
reallymemorable has joined #nixos
seg has quit [Remote host closed the connection]
<evanjs> Derpppp nvm
<evanjs> Just read the _first line_ haha
<evanjs> The few mentions elsewhere in the readme there me off lol
<evanjs> Threw*
o1lo01ol1o has quit [Remote host closed the connection]
<evanjs> Okay, it looks like nixpkgs-review can build a subset of packages. I will try rerunning it with just the packages that fail during a full run and see if that is easier to manage
<evanjs> Eg `nixpkgs-review pr -p openjpeg -p ImageMagick 49262`
splintah has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #84494 → hactool: init at 1.3.3 → https://git.io/JvAfD
<{^_^}> [nixpkgs] @jonringer pushed commit from @IvarWithoutBones to master « hactool: init at 1.3.3 »: https://git.io/JfsBX
shafox has quit [Remote host closed the connection]
hlisp has joined #nixos
o1lo01ol1o has quit [Ping timeout: 256 seconds]
leah2 has quit [Ping timeout: 265 seconds]
aveltras has quit [Quit: Connection closed for inactivity]
zupo has joined #nixos
zupo has quit [Client Quit]
therealsarcastic has joined #nixos
<evanjs> Also: how do we typically handle importorskip for python tests? I feel like jonringer commented on my PR but I don’t see it anymore; assuming said comment was removed after I squashed the relevant changes or something
<{^_^}> [nixpkgs] @jonringer merged pull request #86531 → exiv2, jsoncpp: fix build on 32-bit arm → https://git.io/Jf34R
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JfsBH
floscr has quit [Remote host closed the connection]
<evanjs> Alright literally just checkInputs. That seems manageable. Now to investigate why the image tests are failing... 😒
therealsarcastic has quit [Ping timeout: 265 seconds]
hlisp has quit [Ping timeout: 265 seconds]
ninegrid has joined #nixos
thongpv87 has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @petabyteboy merged pull request #86175 → nixos/initrd-ssh: add extraConfig Options → https://git.io/JfmTF
<{^_^}> [nixpkgs] @petabyteboy pushed commit from @Kloenk to master « nixos/initrd-ssh: add extraConfig Options »: https://git.io/JfsRY
hlisp has joined #nixos
thongpv87 has joined #nixos
<michalrus> Re: fontconfig, if anyone is looking in logs later on, it was https://github.com/NixOS/nixpkgs/issues/73303#issuecomment-553078622
<energizer> when i type my username into lightdm it ignores the first letter so i have to type it again. is that just me?
<{^_^}> [nixpkgs] @jonringer opened pull request #86664 → python3Packages.wordfreq: 2.2.0 -> 2.3.2 → https://git.io/JfsR8
o1lo01ol1o has joined #nixos
hlisp has quit [Ping timeout: 260 seconds]
taika has joined #nixos
<taika> Hello there ppl.
<taika> Is there a man with emulating python-venv experience?
<taika> Using nix-shell.
michalrus has left #nixos ["WeeChat 2.6"]
leah2_ has joined #nixos
<obadz> taika: have a look at buildEnv in https://github.com/FRidh/python-on-nix/blob/master/tutorial.md
<taika> obadz: thank you very much sir\miss
<obadz> np
leah2_ is now known as leah2
<obadz> taika: there's also this which seems actively maintained: https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/python.section.md
<energizer> taika: if you can use poetry, poetry2nix.mkPoetryEnv is very nice
zupo has joined #nixos
<taika> My goal is to use pyvips module in API mod, which req dev headers and C librarier on setuptime, if Poetryenv can help with that, it'll be a delight.
leah2_ has joined #nixos
<evanjs> You know you dun messed up when FRidh self assigns your 3 month old bump with an associated CVE 🙃
hlisp has joined #nixos
<energizer> evanjs: ouch
leah2_ is now known as leah2
<energizer> taika: are you writing a python library or application?
<taika> energizer: I want to use inside script, just importing.
<{^_^}> [nixpkgs] @jonringer opened pull request #86665 → pythonPackages.secure: disable for python2, not supported → https://git.io/Jfs0v
<cole-h> evanjs: Btw ofborg doesn't run tests automatically (unless they're in passthru). `@ofborg test <testnamehere>` should get it going.
mallox has quit [Quit: WeeChat 2.8]
<energizer> yeha there's that third thing, a script.
reallymemorable has quit [Quit: reallymemorable]
<taika> energizer: Does it matter that much?
<energizer> i guess a script with dependencies is really just an application
<evanjs[m]> Lol right? I tried 😂
<evanjs[m]> energizer: bumping pillow which is a library
<evanjs[m]> Fork of python’s PIL
<energizer> taika: anyway, if you install poetry, then `poetry init` it'll help you find your dependencies
<evanjs[m]> cole-h ah gotcha. Should probably post that, then
Antoine has joined #nixos
<taika> energizer: I'll try, but it seems that the main constraint is the nix non-FHS, I've already tried pointing setup.py to respected includes, libraries and pkg-cinfig files, but the module came out corrupted ( dropping cores )
Antoine is now known as antoine2
antoine2 is now known as antoine271828
antoine271828 has quit [Remote host closed the connection]
hlisp has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @jonringer merged pull request #86664 → python3Packages.wordfreq: 2.2.0 -> 2.3.2 → https://git.io/JfsR8
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/Jfs0c
<energizer> can i define my own infix operators?
<energizer> also, how does `or` even work
<evanjs> There wr go. Added the setup summary to the PR. Thanks, cole-h
<{^_^}> [nixpkgs] @jonringer merged pull request #86665 → pythonPackages.secure: disable for python2, not supported → https://git.io/Jfs0v
<{^_^}> [nixpkgs] @jonringer pushed to master « pythonPackages.secure: disable for python2, not supported »: https://git.io/Jfs0B
<ixxie> Its correct to say that Nix is stateless in the sense that if I nuke half the Nix store it will figure out what is missing and build it, i.e. builds are idempotent
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
<{^_^}> [nixpkgs] @IvarWithoutBones opened pull request #86666 → xp-pen-g430: rename to pentablet-driver & 20190820 -> 1.2.13.1 → https://git.io/Jfs0r
endformationage has joined #nixos
waleee-cl has joined #nixos
reallymemorable has joined #nixos
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hlisp has joined #nixos
<cole-h> evanjs: And you can run the tests locally with `nix-build -A nixosTests.<test>` :^)
<infinisil> ixxie: Assuming you have the Nix expressions (and all the paths and such they depend on), then yes, the whole store can be deleted and regenerated
<infinisil> Which is why I don't back up my /nix :)
<cole-h> Yeah, that just seems wasteful...
<hyper_ch> backuping up /nix can also just be a convenience
<cole-h> Or rather, it depends on what tradeoffs you're comfortable making
<infinisil> Considering that disk failures are *very* rare, I don't mind redownloading/building stuff again when it happens
<cole-h> If you have plenty of bandwidth + no (or large enough) data cap, and can't spare the disk space, not backing it up is a decent idea.
taika has quit [Ping timeout: 272 seconds]
<evanjs> cole-h: yeah I was referring to the results from the checkPhase in this case so idk if that would cover those
<cole-h> If you have loads of disk space and low bandwidth and/or a low data cap, then backing it up is a decent idea.
<cole-h> evanjs: Ah, yeah, checkPhase is part of building :P
hlisp has quit [Ping timeout: 240 seconds]
<hyper_ch> cole-h: and when hydra isn't available, your bandwith and cap won't help
<cole-h> Well, you'll still be able to fetch sources and build locally
<hyper_ch> will you?
<{^_^}> [nixpkgs] @jonringer merged pull request #86652 → python3Packages.python-telegram-bot: 12.3.0 -> 12.7 → https://git.io/JfsZf
<{^_^}> [nixpkgs] @jonringer pushed commit from @pingiun to master « python3Packages.python-telegram-bot: 12.3.0 -> 12.7 (#86652) »: https://git.io/Jfs0x
taika has joined #nixos
<cole-h> Let me flip that question on its head: why wouldn't you be able to?
<hyper_ch> github recently had several times troubles...
<cole-h> Which is unrelated to Hydra
<hyper_ch> doesn't mean both can happen at the same time
<hyper_ch> there's so many reasons why upstream can't be available at some point in time
<evanjs> cole-h: yup that’s why I was trying `nix build`. I should probably get more involved with nixosTests at some point, anyhow 😝
<cole-h> If both Hydra and GitHub go down, you're SoL. There's something to be said for single points of failure, but that isn't really on-topic for #nixos
<cole-h> (Which is also why some packages are fetched from a `mirror://`)
<{^_^}> [nixpkgs] @ryantm merged pull request #86597 → libosmium: 2.15.4 -> 2.15.
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JfsEk
<ixxie> infinisil: I was just wondering because I was thinking how annoying it is that terraform has state, and I wondered if one could replace terraform with Nix and have store addresses act as a local verification of a reproducible remote deployment
<{^_^}> [nixpkgs] @brainrape opened pull request #86667 → makeDotElm: fix → https://git.io/JfsEq
<{^_^}> [nixpkgs] @ryantm merged pull request #86511 → atlantis: 0.11.1 -> 0.12.
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JfsEm
hlisp has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #86544 → croc: 8.0.7 -> 8.0.
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JfsEl
turq has quit [Changing host]
turq has joined #nixos
therealsarcastic has joined #nixos
thongpv87 has quit [Ping timeout: 260 seconds]
taika has quit [Quit: WeeChat 2.8]
reallymemorable has quit [Quit: reallymemorable]
<Ralith_> is there a way to create a shell environment in which I can build binaries that'll run directly on ubuntu, i.e. no funny rpath to the dynamic loader?
therealsarcastic has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @jonringer merged pull request #86648 → kismet: 2016-07-R1 -> 2020-04-R2 → https://git.io/Jfssk
<{^_^}> [nixpkgs] @jonringer pushed commit from @snicket2100 to master « kismet: 2016-07-R1 -> 2020-04-R2 »: https://git.io/JfsEa
reallymemorable has joined #nixos
<ixxie> Ralith_: maybe this https://nixos.wiki/wiki/Cross_Compiling
<Ralith_> I'm not trying to compile for NixOS on another architecture, I'm trying to compile for another distro on the same architecture
<infinisil> Ralith_: Check out https://github.com/matthewbauer/nix-bundle
<infinisil> This creates a binary that doesn't need a nix installation to run ^
<infinisil> But by default, Nix binaries run on all distros, assuming you use Nix to install them
<Ralith_> that's good for what it is, but I'm asking if there's a way to construct an environment where I can compile a binary that will run on another distro directly, provided that I know what versions of the dynamic libraries I need are available
<Ralith_> (which are few, just the regular gcc runtime stuff)
<Ralith_> something like how the nix package for steam emulates an ubuntu environment
<clever> Ralith_: one min
<clever> Ralith_: that will do exactly what you want, to generate deb and rpm packages of nix itself
chloekek has joined #nixos
hlisp has quit [Ping timeout: 272 seconds]
<Ralith_> clever: huh? I'm not trying to create a package, just a binary
<Ralith_> and certainly not a package of nix
<Ralith_> and it looks like makeRPM involves qemu, which is a far bigger (and slower) hammer than I'd really like
<clever> Ralith_: you need to use the libraries that ubuntu provides, or you run the risk of compatability problems
<Ralith_> again, same architecture
<clever> you could just use patchelf to undo the rpath stuff
<Ralith_> yes, but using those libraries != producing an RPM
<clever> but it might break if ubuntu has the "wrong" glibc
<prusnak> i'd like to deploy nix into a docker container; is using "FROM nixos/nix" still preferred?
<clever> a static binary is the simplest answer
<clever> prusnak: i try to always use dockerTools.buildImage
drakonis has joined #nixos
<energizer> do i want nix-user-chroot or proot?
<clever> energizer: nix-user-chroot uses namespacing, so it has better performance
<clever> energizer: but then debian/ubuntu decided to get in the way, and make namespacing require root by default, and you have to specially allow non-root to use it
<energizer> clever: do i need any particular features to use proot?
<clever> energizer: nope, its using LD_PRELOAD to overwrite glibc functions, and then prepends a string to all paths
<drakonis> user namespaces require root because historically it comes with vulnerability baggage
<drakonis> it is a debian move mind you
<{^_^}> [nixpkgs] @veprbl opened pull request #86668 → python3Packages.python-telegram-bot: fix --with-upstream-urllib3 → https://git.io/JfsuY
nschoe has quit [Quit: No Ping reply in 180 seconds.]
o1lo01ol1o has quit [Remote host closed the connection]
nschoe has joined #nixos
domogled has quit [Quit: domogled]
<{^_^}> [hydra] @lopsided98 opened pull request #749 → Don't distribute localhost builds to other builders → https://git.io/Jfsu8
<genevino> so nix-env -qa '*' automatically will spawn in a pager (i think that's less or more) because it's exposing about 30k lines (which of course makes sense). nevertheless, can i disable that pager feature?
<cole-h> `PAGER=cat nix-env...` maybe
<clever> genevino: or just throw `|cat` at the end i believe
<energizer> getting an error when installing nix in proot https://bpaste.net/HETA
<genevino> ty :)
<clever> most programs use `isatty()` to figure out what stdout is
<genevino> PAGER=cat sudo -E nix-env -qa '*' works for example.
<cole-h> I was wondering why nix-env -q never works for me
<cole-h> Turns out, it's because I deleted all my channels because I use a local checkout lol
<clever> cole-h: add `-f '<nixpkgs>'`
<cole-h> Yep, that works haha. Thanks :)
<cole-h> (I usually rely on `nix search` nowadays, though)
zupo has joined #nixos
<energizer> what is it trying to do that's causing that error?
<genevino> nix search works wonderfully, but the dark grey and the dark red in its output colors can get annoying
<clever> energizer: load a normal dynamic library
<energizer> clever: that should be available in the store, right?
linarcx has quit [Ping timeout: 256 seconds]
<clever> energizer: yeah, which means proot isnt working right
asbachb has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @veprbl merged pull request #85321 → macvim: 8.2.319 -> 8.2.539 → https://git.io/JfvDl
<{^_^}> [nixpkgs] @veprbl pushed 4 commits to master: https://git.io/JfsuH
<{^_^}> [nixpkgs] @filalex77 opened pull request #86669 → bandwhich: 0.13.0 -> 0.14.0 → https://git.io/Jfsu5
<energizer> i want to request nix installation on a system that I don't own. I intend to use the `nix --store` feature to install packages in my user directory. In order to present the case, I want to tell the admins how much shared storage must be used to set up the system's base nix installation (which I'll need in order to access the `nix` command).
<energizer> how much storage is it?
<{^_^}> [nixpkgs] @filalex77 opened pull request #86670 → gitAndTools.git-workspace: 0.5.0 -> 0.6.0 → https://git.io/Jfsux
<qyliss> What's the point of having Nix installed globally when you have your own store? Why not just install Nix into that store?
<energizer> i dont have root
<qyliss> Right, but you're going to be installing things into a store in your user directory, you said
<qyliss> So why not install Nix into that store along with everything else?
<energizer> how?
<qyliss> Build Nix from source, then use it to install itself, then remove the original Nix
<energizer> oh
<energizer> is this gonna be super unpleasant to compile everything all the time?
hmpffff has joined #nixos
<qyliss> You are going to have to compile everything
<qyliss> Whether that's unpleasant is up to you
therealsarcastic has joined #nixos
<energizer> how long does it take to build a reasonable environment?
<qyliss> depends on the computer
<energizer> ok but
<qyliss> A few hours on a big server to a few days on a small thing
<symphorien> energizer: did you investigate nix-user-chroot ?
<qyliss> ^ that's probably a better option if you can
<energizer> i tried it briefly and failed. maybe i just needed to request some small configuration change to make it work
therealsarcastic has quit [Ping timeout: 240 seconds]
Hamilton has joined #nixos
<Hamilton> Are nixos and guix similar to each other?
<adisbladis> Hamilton: Yes, in fact Guix is a fork of Nix.
<cole-h> "It uses low-level mechanisms from the Nix package manager..."
<drakonis> it is very inspired by nix
<drakonis> adisbladis: they're really close to replacing the daemon with guile
<Hamilton> but it has a diffrenet kernel instead of linux?
<adisbladis> Hamilton: No, also Linux.
<drakonis> linux and hurd
<drakonis> but then, hurd isnt exactly a player
<cole-h> Support for the Hurd is "being worked on"
<cole-h> (According to https://guix.gnu.org/about/)
<adisbladis> drakonis: Did they get around to replacing shepherd yet?
<drakonis> still shepherd
<drakonis> they have done some
<drakonis> um
<drakonis> impractical choices
<azazel> they want to replace shepherd? Really? With what?
stree has quit [Read error: Connection reset by peer]
<Hamilton> What scenarios would nixos beat debian based oses? I couldn't find good YT presentation on this (like I found a 20min vid on Alpine but the ones for nix are confusing )
<adisbladis> azazel: I heard they want to go with systemd
<drakonis> i dont think there's any plans to ditch shepherd
<adisbladis> But this information may be completely wrong
<{^_^}> [nixpkgs] @bachp opened pull request #86671 → aria2: add libaria2 support → https://git.io/JfszY
<drakonis> adisbladis: that was their april fools joke 2 years ago
<drakonis> they posted a valid patchset to swap to systemd
<adisbladis> drakonis: Ahh. Ok.
<drakonis> it was never merged
stree has joined #nixos
<Yaniel> Hamilton: well, pretty much any scenario where a debian update breaks something
<cole-h> That sounds like a lot of effort for an April Fools joke lol
<Yaniel> either due to overwriting config files or due to package incompatibilities
hlisp has joined #nixos
<drakonis> they tend to go really far with those
<drakonis> see the hurd april fools joke
<Hamilton> Yaniel, by config files you mean my app config files in .config or something else?
<drakonis> they had plans to have real hurd support but they fast tracked it for april fools
codygman has quit [Read error: Connection reset by peer]
<Yaniel> the ones in /etc mostly
<drakonis> there's some questionable design choices driven by being a gnu project
<Yaniel> you can handle user-specific configs in ~/.config with nix too (see home-manager)
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @Ma27 merged pull request #86669 → bandwhich: 0.13.0 -> 0.14.0 → https://git.io/Jfsu5
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/Jfszs
<Yaniel> basically when a nixos update breaks something you can just reboot into the previous state
<Hamilton> Yaniel, Suppose we keep track of every version of every package in a json file. Then if things break, we revert back to those exact versions...How nix is diferent from this?
<Yaniel> with debian you have to untangle the mess manually
codygman has joined #nixos
<Yaniel> in addition to that nix also isolates every package from everything except its dependencies
<Yaniel> so you can have two things that depend on different versions of the same library installed at the same time
<Yaniel> Hamilton: do you also keep track of every user change to config files in /etc?
<Hamilton> Yaniel, Is learning NixOS difficult but with a pay-off (like vim) or is it more like for certain tasks and people (like Gentoo/Arch)
<Yaniel> yes and yes
zgrep is now known as zgrep_nick_chang
<Hamilton> Yaniel, no... But I keep track of my mess in a plain text file
zgrep_nick_chang is now known as zgrep
<Yaniel> (it does have a learning curve that pays off, but is not for everyone)
o1lo01ol1o has quit [Ping timeout: 260 seconds]
<Hamilton> Also /g/ memers were talking about how guix uses a *proper* language (Haskell I think) for declaring the state of the OS but nixos uses a more difficult Domain Specific langugge
<Yaniel> I also like having pristine development environments for all my projects
<energizer> nix could be for everyone, but that's not currently a goal of the project
<Yaniel> (via nix-shell)
<energizer> Hamilton: guix uses scheme
<Hamilton> Yaniel, so nix tries to deprecate containters like docker
<energizer> if you have experience writing software, nix language isn't especially difficult to learn
<Yaniel> that's not really its goal, but yes it does have a form of containers too
<qyliss> Hamilton: no, in fact Nixpkgs has lots of stuff to support Docker
<qyliss> You can build Docker containers from Nix derivations, and manage docker containers using a NixOS module
<{^_^}> [docker] @prusnak opened pull request #16 → Update to nix 2.3.4 → https://git.io/JfszV
<{^_^}> [nixpkgs] @r-ryantm opened pull request #86672 → freewheeling: 0.6.5 -> 0.6.6 → https://git.io/JfszK
hlisp has quit [Ping timeout: 256 seconds]
opthomasprime has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #85573 → whsniff: init → https://git.io/JfUVL
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JfszQ
opthomasprime has quit [Remote host closed the connection]
reallymemorable has quit [Quit: reallymemorable]
hlisp has joined #nixos
<{^_^}> [nixpkgs] @filalex77 opened pull request #86673 → bashtop: init at 0.8.23 → https://git.io/Jfszj
<{^_^}> [docker] @domenkozar closed pull request #14 → Update to nix version 2.3.3 → https://git.io/Jv9ED
johan767[m] has joined #nixos
<ehmry> qyliss: may I ask how you livestreamed the last spectrum session? is the setup reproducible?
<qyliss> Sure, i'm just using nginx rtmp
klntsky has quit [Ping timeout: 240 seconds]
<qyliss> This is in Nixpkgs, and it's surprisingly straightforward to configure
gxt has quit [Ping timeout: 240 seconds]
<qyliss> I run that on a server, and then on my computer I use wf-recorder
<qyliss> Which captures my screen and mic and streams it to the server
hlisp has quit [Ping timeout: 260 seconds]
<ehmry> qyliss: ok thanks, I'm investigating how to combine livestream with mumble
klntsky has joined #nixos
gxt has joined #nixos
<qyliss> If you want a web player I think dash.js is the appropriate library, but I haven't set that up yet
<ehmry> nah, mpv works just fine
jmeredith has quit [Quit: Connection closed for inactivity]
<qyliss> my thoughts too :)
ve7det[m] has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #86542 → codeql: 2.1.0 -> 2.1.
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/Jfsg6
<{^_^}> [nixpkgs] @Ma27 pushed commit from @filalex77 to release-20.03 « bandwhich: 0.13.0 -> 0.14.0 »: https://git.io/Jfsgi
<emily> johan767: it should
Fare has joined #nixos
Maxdamantus has quit [Ping timeout: 244 seconds]
Maxdamantus has joined #nixos
ve7det[m] has left #nixos ["User left"]
o1lo01ol1o has joined #nixos
verdys has joined #nixos
awygle has left #nixos ["http://quassel-irc.org - Chat comfortably. Anywhere."]
therealsarcastic has joined #nixos
<{^_^}> [nixpkgs] @filalex77 opened pull request #86674 → caddy2: 2.0.0-rc.1 -> 2.0.0-rc.3 → https://git.io/JfsgQ
sigmundv_ has joined #nixos
therealsarcastic has quit [Ping timeout: 260 seconds]
<ixxie> Is it so that all NixOps backends have now been pulled out of the main repo into a 'plugin' system?
Maxdamantus has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #86675 → gpodder: 3.10.13 -> 3.10.15 → https://git.io/JfsgA
<johan767[m]> <emily "johan767: it should"> Found out that NIX_SSL_CERT_FILE=/etc/pki/tls/certs/ca-bundle.crt was required for nixos-install to download binaries rather than building everything
Maxdamantus has joined #nixos
Hamilton has quit [Quit: Leaving]
siriobalmelli has joined #nixos
__monty__ has quit [Quit: leaving]
Maxdamantus has quit [Ping timeout: 272 seconds]
reallymemorable has joined #nixos
Maxdamantus has joined #nixos
reallymemorable has quit [Client Quit]
hlisp has joined #nixos
<siriobalmelli> hi guys, I'm looking for any pointers for how to make a Python package available to the runtime of a vim-plugin :P
icey_ has joined #nixos
<siriobalmelli> can't seem to find any pointers in vim docs https://nixos.wiki/wiki/Vim or by grepping inside the vim-plugins dir
<siriobalmelli> for reference the plugin is outputting this into my Vim window at runtime:
<siriobalmelli> Error detected while processing function beancount#complete[17]..beancount#load_everything[40]..provider#python3#Call:
<siriobalmelli> line 18:
<siriobalmelli> ModuleNotFoundError: No module named 'beancount'
<siriobalmelli> Error invoking 'python_execute' on channel 3 (python3-script-host):
<siriobalmelli> Traceback (most recent call last): File "<string>", line 2, in <module>
<siriobalmelli> ... any pointers much appreciated!
iceypoi has quit [Ping timeout: 256 seconds]
Maxdamantus has quit [Ping timeout: 272 seconds]
Maxdamantus has joined #nixos
pjt_014 has joined #nixos
reallymemorable has joined #nixos
plutes has quit [Ping timeout: 260 seconds]
<hyperfekt> now i get why people use haskell.nix instead of nixpkgs -_-
plutes has joined #nixos
<ixxie> siriobalmelli: it seems that plugin hadn't been updated in 3 years... maybe its broken?
plutes has quit [Max SendQ exceeded]
plutes has joined #nixos
<niso> hyperfekt: why?
Maxdamantus has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #86676 → hyper: 2.1.2 -> 3.0.2 → https://git.io/Jfs2o
Maxdamantus has joined #nixos
<hyperfekt> niso: because it's seriously annoying to try and make any changes to it if you're not peti
<niso> hyperfekt: care to elaborate? (i was just about to setup an environment)
<energizer> siriobalmelli: how do the other python vim plugins do it?
<cole-h> hyperfekt: You should tune in to one of his streams some time and learn how to do it yourself :^)
<hyperfekt> niso: you'll probably be fine if you're just gonna use overrides, but upstreaming into nixpkgs is a whole other thing.
<niso> hyperfekt: alright, thanks
hlisp has quit [Ping timeout: 265 seconds]
<hyperfekt> cole-h: with all due respect, i really think people should not have to acquire incidental knowledge
<siriobalmelli> ixxie: the plugin works OK apart from autocompletion with calls Python 'beancount' package ... which seems operational, so AFAICT we should be ok :P
tobi has joined #nixos
<hyperfekt> cole-h: i think i will learn how to regenerate the haskell package set and put that into a script so noone else has to ^^
jkachmar has joined #nixos
<cole-h> hyperfekt: Fair enough. I'm sure peti would be open to suggestions on how to improve things, though.
tobi is now known as Guest82779
<cole-h> Or better document things
<siriobalmelli> energizer: very good question, seems they add dependencies to vim-plugins/overrides.nix ... eg jedi-vim on line 670
<cole-h> hyperfekt: Also, I thought that regenerating the set was mostly automated already...
<siriobalmelli> ... but no dice
<siriobalmelli> I guess what I'm hung up on is how to figure out dumping what python environment plugins are actually seeing at runtime in neovim
drewr has quit [Ping timeout: 240 seconds]
<hyperfekt> cole-h: it seems that it is, but in a way such that i cannot trigger it. that means i can't test my fix without writing the whole thing again in overlay style
<siriobalmelli> for the record, this is the derivation I'm using to build NeoVim: https://github.com/siriobalmelli/toolbench/blob/master/vim/default.nix
<iqubic> Well, I now find myself unable to run steam through flatpak. I tried running it in a terminal (flatpak run com.valvesoft.Steam) and got this output: http://dpaste.com/2KT9SWR
hlisp has joined #nixos
<cole-h> I think nh2 said that the video is a little long and that a shorter one would be beneficial, but you should find all the information in there.
<hyperfekt> cole-h: yeah i'm watching that right now but really this should probably be a maintainer script, not a video
<niso> hyperfekt: or a blog-post :P
<hyperfekt> it's just that right now peti is doing this work so noone is feeling the pain enough to make it so
<hyperfekt> but as it seems our bus factor is very close to one rn
<hyperfekt> anyway, let me see if i can fix that
therealsarcastic has joined #nixos
hlisp has quit [Ping timeout: 240 seconds]
<nh2> hyperfekt cole-h: last week I made cabal2nix more easily buildable, another step would be to make the hackage2nix script more generally usable and better documented
hlisp has joined #nixos
<{^_^}> [nixpkgs] @veprbl merged pull request #86668 → python3Packages.python-telegram-bot: fix --with-upstream-urllib3 → https://git.io/JfsuY
<{^_^}> [nixpkgs] @veprbl pushed 3 commits to master: https://git.io/Jfsat
<pbogdan> hyperfekt: https://github.com/NixOS/nixpkgs/pull/62105 might be of interest as well
<{^_^}> #62105 (by teto, 48 weeks ago, open): init maintainers/scripts/update-hackage
knupfer has quit [Ping timeout: 260 seconds]
<hyperfekt> pbogdan: i saw that, my intention was to address the problems with it and see if i can get it into a state where we would feel comfortable merging it and making it the way the update is done
hlisp has quit [Ping timeout: 246 seconds]
therealsarcastic has quit [Ping timeout: 240 seconds]
hlisp has joined #nixos
Maxdamantus has quit [Ping timeout: 256 seconds]
reallymemorable has quit [Quit: reallymemorable]
<hyperfekt> would be embarrasing if we couldn't make this reproducible with nix, that's what it was created for after all
Maxdamantus has joined #nixos
<quinn> is putting extra stuff in postInstall appropriate for a haskellPackage, or is there a better way to do it?
<energizer> are there other languages like nix and dhall that people can use to write their config? what about yaml?
<{^_^}> [nixpkgs] @btlvr opened pull request #86677 → bluez: add configuration options to package → https://git.io/Jfsa6
Maxdamantus has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #86674 → caddy2: 2.0.0-rc.1 -> 2.0.0-rc.3 → https://git.io/JfsgQ
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfsaP
<quinn> energizer: toml is like dhall.
hlisp has quit [Ping timeout: 272 seconds]
<energizer> quinn: i can write my config in toml? got a link?
Maxdamantus has joined #nixos
<quinn> https://github.com/toml-lang/toml not sure what you're asking
qrnteen has joined #nixos
qrnteen has quit [Client Quit]
hlisp has joined #nixos
<siriobalmelli> guys I'm out of time and will head on out, thanks for the pointers on vim-plugin python deps, once I fix this will file a pull request upstream as usual. Happy Sunday
siriobalmelli has quit [Quit: leaving]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adisbladis> energizer: I hate yaml with a passion..
<energizer> adisbladis: sure, but most languages can output yaml, most cannot output nix
<adisbladis> energizer: If you're generating things you're better off just outputting json
turlando has quit [Ping timeout: 260 seconds]
<cole-h> adisbladis++
<{^_^}> adisbladis's karma got increased to -2147483648
fenedor has joined #nixos
<cole-h> lmao
<adisbladis> <3 {^_^}
<{^_^}> {^_^}'s karma got increased to 192
<cole-h> I get a kick every time I see those spicy messages hahaha
<cole-h> infinisil did such a great job
fendor__ has joined #nixos
justanotheruser has quit [Ping timeout: 240 seconds]
<infinisil> xD
<adisbladis> I used to dislike the karma module, now it's great!
inkbottle has joined #nixos
griff__ has quit [Quit: griff__]
chloekek has quit [Ping timeout: 246 seconds]
zebrag has quit [Ping timeout: 246 seconds]
fendor_ has quit [Ping timeout: 272 seconds]
fendor has quit [Ping timeout: 264 seconds]
<adisbladis> energizer: yaml is needlessly complex, suffers from portability issues, it's barely human readable (anchors?!?! such a shitty "feature")
<energizer> dude i know :)
<adisbladis> Tbh if you need deduplication you probably want functions :)
<adisbladis> Good :)
<keithy[m]> just wish I could get dhall to work
griff__ has joined #nixos
gentauro has quit [Read error: Connection reset by peer]
shabius_ has joined #nixos
shabius_ has quit [Remote host closed the connection]
<keithy[m]> substitution of '/nix/store/11b3gwnnj9nd61d0kh6kg42l5c7468b4-dhall-1.31.1': trying next substituter
<keithy[m]> path '/nix/store/11b3gwnnj9nd61d0kh6kg42l5c7468b4-dhall-1.31.1' is required, but there is no substituter that can build it
shabius_ has joined #nixos
gentauro has joined #nixos
<bpye> Hmm... Anyone seen any other Skylake devices where booting without i915.modeset=0 results in a black screen as soon as i915 is loaded?
<bpye> This is a Chromebook specifically, I don't remember needing this sort of hack before though...
<{^_^}> [nixpkgs] @rnhmjoj opened pull request #86678 → nixos/picom: cleanup → https://git.io/JfsVs
shabius has quit [Ping timeout: 265 seconds]
fendor__ has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @marsam merged pull request #86670 → gitAndTools.git-workspace: 0.5.0 -> 0.6.0 → https://git.io/Jfsux
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfsVW
whatisRT has quit [Ping timeout: 272 seconds]
shabius_ has quit [Client Quit]
o1lo01ol1o has quit [Remote host closed the connection]
fenedor has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @NeQuissimus merged pull request #86583 → kotlin: 1.3.71 -> 1.3.7
<{^_^}> [nixpkgs] @NeQuissimus pushed 2 commits to master: https://git.io/JfsVB
justanotheruser has joined #nixos
hlisp has quit [Ping timeout: 260 seconds]
<energizer> adisbladis: is it better to output nix or json as a compilation target?
hlisp has joined #nixos
<energizer> i saw the dhall-nix blog post wants compile to nix, but i'm not sure if that's better or what
ixxie has quit [Ping timeout: 272 seconds]
jmeredith has joined #nixos
<energizer> er, i saw the dhall-nix blog post wants compile to nix, but i'm not sure if that's better than compiling to json?
<emily> hyperfekt: peti also announced quite some time ago he'd rather step down from it, not sure if this makes you more or less concerned though :p
ixxie has joined #nixos
Guest82779 has quit [Quit: leaving]
hlisp has quit [Ping timeout: 240 seconds]
shabius has joined #nixos
hlisp has joined #nixos
fabianhjr has quit [Ping timeout: 240 seconds]
pjt_014 has quit [Ping timeout: 256 seconds]
o1lo01ol1o has joined #nixos
<quinn> energizer: well, what are you trying to do with "it" once you've compiled "it"
cr4y1 has quit [Quit: Leaving]
<energizer> quinn: let's say i want to use dhall/whateverlang instead of nix as much as possible, replacing my whole config with it
<{^_^}> [nixpkgs] @marsam merged pull request #86566 → git-quick-stats: 2.0.15 -> 2.0.1
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jfswt
<energizer> so, what i'm trying to do with it is get nix to build and install derivations
<{^_^}> [nixpkgs] @marsam merged pull request #86546 → dbmate: 1.7.0 -> 1.8.
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfswY
vika_nezrimaya has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #86549 → dolt: 0.15.2 -> 0.16.
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jfswn
<{^_^}> [nixpkgs] @r-ryantm opened pull request #86679 → libsass: 3.6.3 -> 3.6.4 → https://git.io/Jfswc
<vika_nezrimaya> Hi! so ughh how to use the flake-support branch of NixOps properly? I assume it doesn't support custom nixopsDefinitions.<something> attributes, only the default one
<vika_nezrimaya> what about physical.nix? wanted to try the split definitions for the first time, my previous setup contained everything in one file
quinn has quit [Quit: ZNC 1.7.5 - https://znc.in]
<{^_^}> [nixpkgs] @marsam merged pull request #86533 → chafa: 1.4.0 -> 1.4.
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfswW
<energizer> i guess one problem with this plan is that it can't handle functions like fetchGit
<energizer> so i can't compile to json, i have to compile to nix
<energizer> unless there aren't a lot of those and i can do a simple translation at the end
ixxie has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #86680 → libuninameslist: 20200313 -> 20200413 → https://git.io/JfswB
<abathur> curious if anyone's dealt with a similar python-packaging pickle; I wrote a setup.py to build someone else's code which uses python for development but is distributed as a binary without pip. It has multiple dirs w/ __init__.py, used from other packages/modules without a prefix. I'd like to force a prefix on it; anyone know of a better way than extensive substituteAll? :)
ixxie has joined #nixos
<abathur> vika_nezrimaya: not sure myself; may want to give #nixops a try if no one answers here
griff__ has quit [Quit: griff__]
<{^_^}> [nixpkgs] @marsam merged pull request #86585 → leatherman: 1.11.0 -> 1.12.
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jfswg
<energizer> abathur: you want to rewrite the imports in the source?
<{^_^}> [nixpkgs] @marsam merged pull request #86580 → kak-lsp: 7.0.0 -> 8.0.
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jfsw2
<abathur> energizer: would prefer to avoid that if there's a way to hack it?
<energizer> abathur: it's python, there's always a way to hack it :P
butcher_ has quit [Ping timeout: 265 seconds]
<abathur> energizer: since he may add new modules, delete them, etc.; if I can force all imports to check the package I'm forcing in (but keep imports outside the package from falling over...)
<keithy[m]> should sshagent be running by default?
<abathur> energizer: nod, that's why I'm not already writing substituteAlls :D
<energizer> abathur: can you link to the project?
hlisp has quit [Ping timeout: 272 seconds]
quinn has joined #nixos
griff__ has joined #nixos
<abathur> I'll msg
<vika_nezrimaya> abathur: #nixops is almost empty tho :c
<keithy[m]> I am looking at nix pkgs and I see lots of descriptive docs like mkOption { type description etc. Where is this displayed/used?
<energizer> vika_nezrimaya: small tool channel often means "all the maintainers are in this channel" :P
<abathur> vika_nezrimaya: perhaps, but your message will be visible to everyone idling there when they come back; here, it's going to be hidden in their scrollbacks in ~5-10m
<vika_nezrimaya> let's hope #nixops senpais are gonna notice me
<vika_nezrimaya> :3
<energizer> keithy[m]: are you talking about nixos modules? https://nixos.org/nixos/options.html#
therealsarcastic has joined #nixos
<keithy[m]> dunno am i
<{^_^}> [nixpkgs] @marsam merged pull request #86526 → cargo-udeps: 0.1.10 -> 0.1.1
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jfswy
<energizer> keithy[m]: link to what you're talking about
<keithy[m]> I just googles sshagent
<energizer> yes that's a nixos module
<keithy[m]> whats a nixos module
<energizer> unless you meant "define 'nixos module'"
<{^_^}> [nixpkgs] @r-ryantm opened pull request #86681 → liquibase: 3.8.8 -> 3.8.9 → https://git.io/Jfswb
<keithy[m]> no seriously I havent seen modules mentioned in docs yet
hlisp has joined #nixos
<keithy[m]> so I genuinely dont know what oe is
<keithy[m]> one*
<energizer> they are in the nixos docs, not the nix docs or the nixpkgs docs
<energizer> there are three manuals
<Raito_Bezarius> Is there a way to not rebuild all nixpkgs packages when I use a local nixpkgs fork?
taika has joined #nixos
<{^_^}> [nixpkgs] @romildo opened pull request #86682 → lxqt.libqtxdg: fix include and lib install directories → https://git.io/Jfsrf
<taika> Hello there/
<energizer> Raito_Bezarius: check out the version you're using
<Raito_Bezarius> energizer: good point
<taika> Is there a way to import/add/point shared libraries in nix-shell?
therealsarcastic has quit [Ping timeout: 272 seconds]
<taika> Or maybe someone has experience in packaging python modules with C bindings ( somewhat simillar to FFTW example in guide )
<{^_^}> [nixpkgs] @emilazy opened pull request #86683 → nicotine-plus: 1.4.1 -> 1.4.3 → https://git.io/Jfsrq
<{^_^}> [nixpkgs] @r-ryantm opened pull request #86684 → luigi: 2.8.12 -> 2.8.13 → https://git.io/Jfsrm
<quinn> energizer: you'll probably have an even easier time writing your config file in nix, but if you must write it in something else, you should do just dhall -> nix. i'm not sure how json would figure, but i can't imagine it wouldn't create any problems with typing and formatting.
gxt has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
gxt has joined #nixos
<bpye> Ah I worked it out, kernel 5.4 appears to be broken but that's the default for 20.03, updating to 5.6 fixed my issues
ixxie has quit [Ping timeout: 272 seconds]
ixxie has joined #nixos
redkahuna has joined #nixos
<{^_^}> [nixpkgs] @bhipple merged pull request #86684 → luigi: 2.8.12 -> 2.8.13 → https://git.io/Jfsrm
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/Jfsrc
<keithy[m]> benpye
mbrgm_ has joined #nixos
mbrgm has quit [Ping timeout: 260 seconds]
mbrgm_ is now known as mbrgm
<{^_^}> [nixpkgs] @r-ryantm opened pull request #86685 → maestral: 0.6.3 -> 0.6.4 → https://git.io/JfsrB
fabianhjr has joined #nixos
o1lo01ol1o has joined #nixos
philr has joined #nixos
hlisp has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @NeQuissimus merged pull request #86681 → liquibase: 3.8.8 -> 3.8.9 → https://git.io/Jfswb
<{^_^}> [nixpkgs] @NeQuissimus pushed 2 commits to master: https://git.io/Jfsra
<{^_^}> [nixpkgs] @filalex77 opened pull request #86686 → nixos-caddy: add support for v2 → https://git.io/Jfsrw
<{^_^}> [nixpkgs] @r-ryantm opened pull request #86687 → matterbridge: 1.17.1 -> 1.17.4 → https://git.io/JfsrK
hlisp has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
ixxie has quit [Ping timeout: 256 seconds]
oborot has quit [Ping timeout: 258 seconds]
hlisp has quit [Ping timeout: 246 seconds]
taika has quit [Quit: WeeChat 2.8]
hlisp has joined #nixos
oborot has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #86688 → memtier-benchmark: 1.2.17 -> 1.3.0 → https://git.io/JfsrS
<{^_^}> [nixpkgs] @Valodim closed pull request #33184 → WIP: waterfox-bin: init at 56.0.1 → https://git.io/vbN4p
ixxie has joined #nixos
Fare has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #86660 → lxd: added patch for fixing path `/usr/share/misc/usb.ids` → https://git.io/JfscY
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfsrA
<armin> so what do i use if all i want to do is control the contents of a file in some home directory on the live cd i create? is there a simple stanza i could add in iso.nix?
shibboleth has quit [Quit: shibboleth]
<Raito_Bezarius> armin: oneshot service?
<Raito_Bezarius> or home-manager?
<Raito_Bezarius> you can control a home from system config.nix
<{^_^}> [nixpkgs] @bhipple merged pull request #85254 → Cmake paths patch 1/? (boost, aws-sdk-cpp) → https://git.io/JfveU
<{^_^}> [nixpkgs] @bhipple pushed 3 commits to master: https://git.io/Jfsoe
<armin> Raito_Bezarius: is there really nothing more trivial?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #86689 → mill: 0.6.1 -> 0.6.2 → https://git.io/Jfsov
<armin> Raito_Bezarius: i use home-manager actually on my desktop machine, but i have no clue how to do that one thing, control the contents of some simple config file, when building a live cd with nix-build
<Raito_Bezarius> armin: with home-manager?
<armin> hm
redkahuna has quit [Ping timeout: 272 seconds]
<Raito_Bezarius> without
<Raito_Bezarius> you'd need systemd
<Raito_Bezarius> armin: but what is it exactly?
<Raito_Bezarius> a simple file?
<Raito_Bezarius> a dir?
<Raito_Bezarius> oh, a config file
<energizer> armin: you can do it in activationScripts
<Raito_Bezarius> +1
<{^_^}> [nixpkgs] @andir opened pull request #86690 → nss: 3.51 -> 3.52 → https://git.io/JfsoI
<energizer> there's probably a nicer way tho
<Raito_Bezarius> last time I tried, clever recommended me activationScripts
hlisp has quit [Read error: Connection timed out]
<energizer> armin: grahamc uses a little custom service https://github.com/grahamc/nixos-config/blob/master/packages/symlinks/service.nix
<armin> is it me or is that overly complex to control the content of a file?
o1lo01ol1o has quit [Remote host closed the connection]
ninegrid has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #86691 → minder: 1.7.2 -> 1.7.3 → https://git.io/Jfsos
ninegrid has joined #nixos
<{^_^}> [nixpkgs] @bhipple merged pull request #86653 → [20.03] salt: 2019.2.0 -> 2019.2.4 → https://git.io/JfsZJ
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to release-20.03: https://git.io/JfsoZ
<{^_^}> [nixpkgs] @bhipple merged pull request #85561 → salt: 2019.2.0 -> 3000.2 → https://git.io/JfURc
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/Jfsol
<hyperfekt> lol i think github just started ratelimiting me because i tried to use all-cabal-hashes too much
eoli3n_ has quit [Quit: WeeChat 2.8]
therealsarcastic has joined #nixos
<{^_^}> [nixpkgs] @bhipple merged pull request #86651 → [19.09] salt: 2019.2.0 -> 2019.2.4 → https://git.io/JfsGo
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to release-19.09: https://git.io/Jfso0
<{^_^}> [nixpkgs] @r-ryantm opened pull request #86692 → minio: 2020-03-25T07-03-04Z -> 2020-05-01T22-19-14Z → https://git.io/JfsoE
is_null has quit [Quit: leaving]
therealsarcastic has quit [Ping timeout: 260 seconds]
is_null has joined #nixos