<eule>
like i said, another was saying wheres this lib i need...
<eule>
the kind of thing a maintainer should have coded differently so compile on nix works
<eule>
OH
<eule>
and scsi driver...sg? optical burning sw didnt work because scsi is only partial (as per manual) - maybe its simple, but i got tired of trying, esp as I was unsure if i could late load a module like that without it being in kernel on boot
<eule>
it was looking for /dev/sg# or something on the liveiso
<eule>
while trying to burn another live iso with cdrtools or whatever
<eule>
but the distrowatch reviews also kept mentioning issues with non-fhs compliance
toppler has quit [Ping timeout: 265 seconds]
<buckley310>
certainly a lot of software will assume certain things about your system that do not hold true for nixos... usually that just means that it takes a few extra steps to compile it
<eule>
mdash super simple, can i, once booted from livedvd, install /dev/sg as required by any optical burning tool
<eule>
they all failed
rardiol_ has quit [Quit: Leaving]
<eule>
because scsi wasn't considered essential enough by the image-makers i guess
toppler has joined #nixos
freeman42x has quit [Ping timeout: 246 seconds]
<notgne2>
eule: not sure if there's a proper way, but you can probably get away with just adding the package to a file in in /var or something, curious what the use case is
<eule>
notgne2, mdash not only that but there was nothing i could find with the search in nixpkgs repo with scsi or sg - maybe its under firmware-xyz (or drivers-xyz)?
Fare has joined #nixos
<mdash>
eule: not something i've ever attempted, sorry
toppler has joined #nixos
<yorick>
why does the nixos getaddrinfo not like the fc00::/7 source ipv6?
sb0 has joined #nixos
<yorick>
I know debian has that as an override somewhere, but where's the nixos gai.conf?
iMatejC has quit [Remote host closed the connection]
<Sardine>
I'm trying to install https://github.com/akiraux/Akira, and so far I've got https://hasteb.in/sudugatu.nix - If I `nix-shell` with that in the git repo, then I can successfully `ninja install`, but when I actually try to build the derivation, it fails when running the post install script. Can anyone help?
<Sardine>
OIC
<Sardine>
wait
<Sardine>
Oh nvm its installing to the correct nix store location
<Mic92>
Sardine: I think there was a build support hook for desktop schemas
Ariakenom has joined #nixos
ennui has joined #nixos
leo_ has quit [Quit: leaving]
knupfer has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @FRidh merged pull request #71672 → bash-completion: do not change pkgconfig behaviour, fixes #71662 → https://git.io/JeRyw
<{^_^}>
[nixpkgs] @FRidh pushed to staging « bash-completion: do not change pkgconfig behaviour, fixes #71662 »: https://git.io/Je0JP
toppler has quit [Ping timeout: 246 seconds]
<bahamas>
where can I find exactly what nix-shell does? I want to run a command in my project which needs access to my dependencies. normally, I would first run nix-shell and then my command. but in this case, I want to do everything in a shell file
toppler has joined #nixos
<yorick>
the spotify from nixos-unstable isn't building
<yorick>
takes forever
xkapastel has quit [Quit: Connection closed for inactivity]
<joe22>
Looking in to doing some derivation.overrideAttr in order to add additional configurations files into the build (that later can be symlinked into ~/). I'm thinking of providing some *phase that does the copying of files in to same $out/config directory. The issue is *how can I inspect the current phases of derivation*; what are there? what do they
<joe22>
do?
<bahamas>
srhb: this is kind of what I meant `nix-shell --pure --run "source .env && ./manage.py collectstatic --no-input" shell.nix && nix-build`. except the script behaves as if it calls nix-build first
<bahamas>
bahamas: it looks like nix-shell doesn't read shell.nix even though I specify it on the command line
<bahamas>
err srhb
<{^_^}>
[nixpkgs] @FRidh opened pull request #71780 → Staging next → https://git.io/Je0U9
<joe22>
For a derivation currently in <nixpkgs>, i.e. firefox, what's the most convenient way in inspecting the attribute set that was provided to stdenv.mkDerivation in the making of it. (Assuming it was made that way)
<kandinski>
Hi, I upgraded from 19.03 to 19.09 and this is what I see now in my profile:
<kandinski>
$ nix-env -u
<kandinski>
error: cannot auto-call a function that has an argument without a default value ('config')
drakonis has quit [Quit: WeeChat 2.6]
<joe22>
That is, my using nix repl. Not by reading the source.
toppler has quit [Ping timeout: 268 seconds]
<joe22>
@kandinski run: nix-env -u --show-trace
toppler has joined #nixos
<kandinski>
joe22: same output
Zer0xp has joined #nixos
<joe22>
there should be some trace info of which function/file is the error
<kandinski>
zero
<kandinski>
so that's how much I b0rked it
is_null_ has quit [Ping timeout: 268 seconds]
is_null has quit [Ping timeout: 265 seconds]
<joe22>
kandinski does nix-env -q work?
<kandinski>
version is 2.3, and the same result when I sudo into root
<kandinski>
joe22: yes
sigmundv has joined #nixos
<joe22>
kandinski can you upgrade a single package: nix-env -u a-packgae-name ?
<joe22>
try on a few
<joe22>
get out of sudo!
<kandinski>
hmmm, I can't with just with nix-env -u barrier (same output), but it just worked with nix-env -uA nixpkgs.barrier
<kandinski>
(I'm in my user profile, not on root)
<kandinski>
(that was just to check if the broken bit was a profile-installed nix executable)
<joe22>
you probably have 2 channels setup
<kandinski>
yes I do
<kandinski>
it's the other one that's suspect?
<kandinski>
well no, just unstable
<kandinski>
but I think root has nixos and musnix
<joe22>
you can force to pick only one by: nix-env -f "<nixpkgs>" -u
<kandinski>
yes, deleting the musnix channel fixed it
<kandinski>
thanks
<kandinski>
now I need to figure out why before I reenable it
<kandinski>
could be that it's not up to supporting 19.09 yet
Zer0xp has quit [Quit: Bye!]
<kandinski>
joe22: do you mind explaining your train of thought for this debugging?
<kandinski>
you didn't deduce this from the error message
is_null has joined #nixos
<joe22>
the error says: a function that excepts an argument set { config } used to have default a value { config ? ... }
is_null_ has joined #nixos
is_null has quit [Remote host closed the connection]
is_null_ has quit [Remote host closed the connection]
Makaveli7 has joined #nixos
<joe22>
so there is inconsistency between depending packages (the calling package expected to not have to provide the argument)
<kandinski>
I see
<joe22>
this would have test-failed if the had been in the same channel
ardumont has quit [Ping timeout: 276 seconds]
<kandinski>
and how could it be that a package provided by nixpkgs depended on a package provided by musnix?
ardumont has joined #nixos
<kandinski>
I had already commented out musnix from my configuration.nix
<joe22>
packages depend by name, nix looks up in all channels and picks the 'latest version' found
<kandinski>
thanks
<joe22>
if the same name was in two channels but with same version, the first one is picked.
Fare has quit [Ping timeout: 265 seconds]
toppler has quit [Ping timeout: 276 seconds]
<kandinski>
joe22: so m goes before n in alphabetical order...
<kandinski>
joe22: thanks!
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ardumont has quit [Ping timeout: 276 seconds]
Chiliparrot has joined #nixos
toppler has joined #nixos
meck_ has quit [Quit: WeeChat 2.6]
ardumont has joined #nixos
<joe22>
For a derivation currently in <nixpkgs>, i.e. firefox, Is there way in _nix repl_ in inspecting the attribute set that was provided to stdenv.mkDerivation in the making of it. (Assuming it was made that way)
<joe22>
I.e getting the argument-set that would be passed to overrideAttr's argument-function
<johnnywho>
Scanning on linux is anything but sane. Running SANE_DEBUG_DLL=250 scanimage -L shows that smfp is loaded without errors, my udev permissions are ok, sane-find-scanner detects the scanner, and STILL scanimage -L does not
__Sander__ has joined #nixos
<johnnywho>
It 's really weird because there are no errors, just nothing is found
<joe22>
the overrideAttrs function calls its argument function with the oldAttrs set (according to documents, this would be the set provided to mkDerivation). So derivation.overrideAttrs (oldAttrs: oldAttrs) == derivation
<gchristensen>
yep
domogled has quit [Ping timeout: 265 seconds]
nalck has joined #nixos
<DigitalKiwi>
a wild gchristensen appears!
<joe22>
how can you get hold of that **oldAttrs**
<gchristensen>
you can look at the call site
<{^_^}>
[nixpkgs] @tomfitzhenry opened pull request #71789 → openarena: add module and test → https://git.io/Je0k7
<DigitalKiwi>
hey's anyone else use kicad it keeps segfaulting on me and i don't know why or even how to debug it :( i am on the newest version we have but it crashed on the one prior too (5.1.2, 5.1.4)
<joe22>
gchristensen: could you expand on that please? Like how to do so in nix repl.
<gchristensen>
joe22: ah, you can't
<gchristensen>
joe22: what are you trying to do?
<{^_^}>
[nixpkgs] @basvandijk opened pull request #71791 → release-lib.nix: initialize pkgs for the currentSystem → https://git.io/Je0kN
civodul has joined #nixos
<joe22>
gchristensen: I want to add phases, but not override existing phase. So I thought could inspect existing phases.
<gchristensen>
you can do: overrideAttrs ( old: { myPhase = "${old.myPhase} ..."; })
__monty__ has joined #nixos
tiAy has joined #nixos
<joe22>
yes i could do that, thanks. Sidenote: are there phases that packages maintainers *promise* not to use.
<{^_^}>
[nixpkgs] @FRidh opened pull request #71792 → python.pkgs.twisted: move twisted cache generation to postFixup → https://git.io/Je0kj
<gchristensen>
no
hyper_ch2 has quit [Remote host closed the connection]
<evils>
DigitalKiwi: try launching kicad from the commandline, it may give you some info
<DigitalKiwi>
yeah that didn't show much
<evils>
any idea how to trigger a segfault?
<DigitalKiwi>
yeah
monoidal has quit [Quit: WeeChat 2.6]
sigmundv has quit [Ping timeout: 265 seconds]
<joe22>
gchristensen: there is the `phases` attribute that may have been set. how can I inspect that?
<DigitalKiwi>
i can repeatedly do it (almost every time) by placing a footprint on a pcb, either by typing in the search field, or if you select one and it doesn't crash, it crashes the next time you do anything pretty much
nalck[m] has joined #nixos
cfricke has quit [Quit: WeeChat 2.6]
<evils>
DigitalKiwi: jup, here too
<gchristensen>
> let old = {}; in old.phases or ["whatever"]
<{^_^}>
[ "whatever" ]
<evils>
DigitalKiwi: on 5.1.4 (nixos-unstable)
<DigitalKiwi>
Place -> Footprint -> *click on layout* -> footprint window -> type "dip 14" or w/e it usually crashes before i finish > segfault
fendor has joined #nixos
<tokudan[m]>
DigitalKiwi: i worked on 5.1.4 and it worked for me (tm), what exactly did you install?
<Ariakenom>
whether nixlang is lazy doesnt affect what is being built, right? since that is based on what is in the derivation.
<DigitalKiwi>
i'm on nixos-unstable 5.1.4
<gchristensen>
ariakenom: it does affect what is built, in the way you expect
<gchristensen>
ariakenom: ie: nix only builds what you need, nothing more
joshuagl has quit [Ping timeout: 268 seconds]
<evils>
tokudan[m]: i'm using /nix/store/xn9zi5dkkvrwismwam4ngprcxaa0qx8n-kicad-5.1.4/bin/kicad
<Ariakenom>
gchristensen: but laziness doesnt matter after the derivation is made? and build time is after that?
<DigitalKiwi>
why's yours different
<tokudan[m]>
DigitalKiwi: ok... i'm on 19.09, so i'm installing kicad from nixos-unstable right now
<gchristensen>
ariakenom: roughly yeah
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Ariakenom>
gchristensen: im confused. first you said it does affect it and then you said it doesnt
monoidal has joined #nixos
<DigitalKiwi>
5.1.2 did it on 19.09 too
<DigitalKiwi>
there was an update (<~1 week) recently and i was hoping that it fixed it but it did not
<gchristensen>
ariakenom: well so the evaluator is lazy. evaluation produces drvs. drvs are built. if the evaluator was not lazy, it would create .drv files for everything everywhere, and then the build phase would have to pick out the one(s) it wants to build
<DigitalKiwi>
i've also had it lock up so hard i had to kill -9 it :(
<tokudan[m]>
yep, got the same path: /nix/store/sl7aaibb1jmz8bp0gb8vv0rlz00nk5jf-kicad-5.1.4/bin/kicad, trying to insert something causes a lot of "library not found", but no segfault
<Ariakenom>
gchristensen: oh I thought only the result of the expression made a derivation
<DigitalKiwi>
oh yeah i had that problem when i was on 19.09 and tried to install the unstable one ;)
<joe22>
gchristensen a phase in `phases` is just a name that corresponds to an attribute in the set. Nix uses these name to lookup the phase-name-attribute value and sends it the `bulider`. So if `phases` was deliberately set to `[]`, no build would occur. Am I correct?
<DigitalKiwi>
that was the version that usually i would have to kill....
<evils>
huh, i've got kicad-with-packages3d in my configuration.nix with stateVersion 19.09, my nix-env uses channel nixos-unstable, that gets me the same derivation as digitalkiwi, also crashes
<tokudan[m]>
DigitalKiwi: these library not found is somewhat expected if the paths change, i think. not sure if there's a better solution for them. what's the exact message you get when you run kicad from a terminal and it segfaults?
<gchristensen>
joe22: I'm afraid that on about 30m of sleep over the last 36h, I can't really say conclusiely
<DigitalKiwi>
12:52 DigitalKiwi: i tried running nix-review on a pr that updated it recently that hasn't hit nixos-unstable yet last i checked and...that ended poorly. it
<DigitalKiwi>
locked up and i had to kill -9
psyanticy has joined #nixos
<tokudan[m]>
DigitalKiwi: so there's no segfault, it just hangs?
<DigitalKiwi>
is there any oldversion that does work >.>
monoidal has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @worldofpeace pushed to master « pantheon.elementary-files: use latest vala »: https://git.io/Je0I5
monoidal has joined #nixos
<DigitalKiwi>
and/or why's it work for tokudan[m] but not us
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 6 commits to nixos-19.09-small: https://git.io/Je0Ua
<tokudan[m]>
DigitalKiwi: i'm pretty sure it's not the actual version that's causing the issue but something in your environment. does "nix-env -q" show anything?
<DigitalKiwi>
.... yeah, i'm gonna get shamed if i post it :|
bahamas has quit [Ping timeout: 240 seconds]
<evils>
DigitalKiwi: at least 5.0.2 works (different search GUI) also getting the wxWidgets warning
<{^_^}>
[nixpkgs] @jonringer opened pull request #71797 → azure-cli: init at 2.0.75 → https://git.io/Je0IF
<tokudan[m]>
DigitalKiwi: the only thing i'm not sure about is gdb. any output when you run that command as root?
<{^_^}>
[nixpkgs] @teto opened pull request #71798 → vim update.py: allow different in and out files → https://git.io/Je0IN
<DigitalKiwi>
someone remind me do those get updated or only if you reinstall them
<DigitalKiwi>
i only installed that just a few minutes ago
<tokudan[m]>
DigitalKiwi: nothing touches those, apart from yourself
<DigitalKiwi>
so if one of those is an older version could it mess it up?
xkapastel has quit [Quit: Connection closed for inactivity]
<tokudan[m]>
DigitalKiwi: what you install through nix-env is completely your own responsibility
<tokudan[m]>
DigitalKiwi: I don't think so
<tokudan[m]>
DigitalKiwi: so... "sudo nix-env -q" and "nixos-option environment.systemPackages" would be good to see next :)
ng0 has quit [Quit: Alexa, when is the end of world?]
<DigitalKiwi>
i need to clean it out anyway i usually only have stuff there temporarily because i get annoyed when i do a nixos-rebuild and my mouse, internet, and kde... break :(
<DigitalKiwi>
nothing in root nix-env, and the other is taking a while
<{^_^}>
[nixpkgs] @FRidh opened pull request #71800 → pipenv: patch pipenv to point to python that has virtualenv → https://git.io/Je0LW
<Raito_Bezarius>
Hi there, I'm trying to set up some continuous delivery with NixOps, I know that I can use Hydra as a build server and generate builds then how can I trigger a nixops deploy to my servers?
<tokudan[m]>
DigitalKiwi: that's a pretty clear indication that there are still two versions of wxpython being mixed, I just have no idea where that could be.
<DigitalKiwi>
isn't there a command that shows what uses it?
<tokudan[m]>
DigitalKiwi: and possibly --requisites
eule has quit [Ping timeout: 264 seconds]
<evils>
tokudan[m]: FWIW, i tried to fix kicad-unstable a while ago (ngspice and pythonscripting fail and i get the wxWidgets warning there too), this issue also occurs with this https://git.io/Je0Lm (1h old source)
hyper_ch2 has quit [Remote host closed the connection]
<tokudan[m]>
evils: i saw that you referenced my pr in your work. you saw that I force-pushed later with a different set of changes?
<evils>
i force pushed a few times without realizing github notifies the mentioned issue xD (removed those mentions now...)
<evils>
tokudan[m]: i haven't checked what you ended up doing but i was just messing with it
<tokudan[m]>
evils: basically the solution to ngspice is a simple wrapper: --prefix LD_LIBRARY_PATH : "${libngspice}/lib"
<tokudan[m]>
evils: the rest is just the update to 5.1.4
<evils>
tokudan[m]: looks like the main difference is the LD_LIBRARY_PATH thing, i'm not actually familiar with cmake etc so i kinda gave up trying to set up those wrappers (not quite sure why there's a kicad-unstable anyway if the main one is this up-to-date xD )
<tokudan[m]>
evils: i'm not familiar with cmake either. the wrapper is done by nix
<evils>
but the unstable.nix seems to use some build options and sources from github, so maybe it's worth something for the default.nix?
toppler has quit [Ping timeout: 246 seconds]
<tokudan[m]>
evils: does it fix issues?
leo_ has joined #nixos
ubert has joined #nixos
<Ericson2314>
tetdim: I've been traveling to nix con and internet is spotty
<Ericson2314>
I can't build the nix-shell to try your work, but I can comment, as I'm sure you saw
toppler has joined #nixos
<evils>
tokudan[m]: it sure don't fix this one :P as far as i can tell, it makes scriptingSupport optional
alexherbo22 has quit [Ping timeout: 252 seconds]
<evils>
tokudan[m]: btw that segfault (core dumped) shouldn't there be a core dump file somewhere that conceivably has some info?
<DigitalKiwi>
tokudan[m]: if i run it from a nix-shell --pure kicad it didn't find all of the footprints but it did take a long time to crash...i was about to say it wasn't crashing when it did
<DigitalKiwi>
--pure -p kicad
toppler has joined #nixos
<Christian[m]3>
Any chance to get a review for https://github.com/NixOS/nixpkgs/pull/71083/files ? It touches a lot of code (trivial changes), hence it will likely get hearder to merge as time passes.
kreisys has joined #nixos
<rsa>
infinisil: i got it to work, i just had to do two escapes in my case, one for nix and a second one for bash, e.g. ${ becomes \''${ or \\\${
<ddima>
adisbladis: very important question of life and death for nixcon/brno; do you know if it's possible to acquire some club mate (or one of the other common brands like mio mio) in Brno? ;)
<evils>
how do i build a nix package without the debug symbols getting stripped?
<sondr3>
I think I may have misunderstood `boot.kernelParams` and `boot.extraModprobeConfig`, I wanted to set some `i915` settings that I found on the Arch Wiki and used `kernelParams`
<sondr3>
The wiki said " those processors it is necessary to add i915.enable_guc=2 to the kernel parameters", so I figured `kernelParams` was the right option
<sondr3>
but the options are configured in `/etc/modprobe/`, so I'm wondering which is for what
<sondr3>
to answer myself, `kernelParams` was the wrong thing
sondr3 has quit [Remote host closed the connection]
<karetsu>
a colleague in work tried my config but they got themselves 19.09 and ran into problems because I relied on dmenu2 heavily (and the -h flag causes errors in dmenu)
<kaychaks>
is there some documentation on how to configure for hidpi screens especially when using xmonad. I could fix the font scaling with fontconfig but I still could not make my mouse pointer big
<karetsu>
thanks evanjs, I don't see why no development in 18 months means it should be removed - it was pretty complete in what it wanted to do :(
<ddima>
karetsu: I had to use home-managers xsession.pointerCursor and am setting it to pkgs.vanilla-dmz with a size of 32.
<karetsu>
kaychaks: ^ this was for you
_pash has joined #nixos
<ddima>
karetsu: like so https://gist.github.com/ - but Im using awesome in this case. Might work for xmonad just fine too, unless it does things to the pointer itself.
<xd1le>
karetsu: there is rofi if you want to look into that, in case you don't already know about it
<karetsu>
xd1le: yeah, I moved to dmenu2 from rofi, might just make a custom patch to fix the bar height for my needs instead I think
<primeos>
karetsu: Regarding the dmenu2 removal: There was no development in 5 years (the 18 months was the development period)
<xd1le>
oh you switched to it from rofi, interesting ^_^
<primeos>
Therefore at least the name seemed confusing/inappropriate and I didn't know that anyone was still using it
MmeQuignon has joined #nixos
<karetsu>
primeos: the name I can agree with being confusing, doesn't mean that something is bad or out of use just because it hasn't been developed in a while :(
<karetsu>
its fine, I'll work around it - its not for me on 19.03 anyway ^^
<primeos>
karetsu: Yeah, I see your point and agree (the removal was more about the name and probably a bit about functionality and security concerns)
toppler has quit [Ping timeout: 250 seconds]
freeman42x has joined #nixos
<primeos>
But I guess you can simply copy the expression for 19.09 and use that in your configuration or overlay
<karetsu>
primeos: for me the only issue is that dmenu doesn't offer customisation of the bar height to fit in with my current aesthetic so I only need to include the override
<ddima>
astrall33: apparently. was news to me too.
<lassulus>
yes #nixcon ?
Okinan has joined #nixos
lsix has quit [Quit: WeeChat 2.3]
astrall33 has quit [Ping timeout: 240 seconds]
orbekk has joined #nixos
_pash has joined #nixos
kreisys has joined #nixos
<karetsu>
ok, progress: how would I fix this issue? http://dpaste.com/1WXQK8X the diff has the correct sha256 in my patches but this wanted vs got confuses me because neither of those is the correct length to be sha256, what have I done wrong?
knupfer has joined #nixos
_pash has quit [Client Quit]
lsix has joined #nixos
bahamas has joined #nixos
bahamas has joined #nixos
bahamas has quit [Changing host]
oscarvarto has joined #nixos
<{^_^}>
[nixpkgs] @puckipedia opened pull request #71814 → frozen-bubble: init at 2.212 → https://git.io/Je0YW
toppler has quit [Ping timeout: 245 seconds]
lanin has joined #nixos
toppler has joined #nixos
AnjumShahzad[m] has joined #nixos
<wedens[m]>
karetsu: can you show the expression with the patch?
bvdw has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @talyz opened pull request #71816 → gitlab: Get rid of most 'already initialized constant'-warnings → https://git.io/Je0OO
toppler has joined #nixos
_pash has quit [Client Quit]
_pash has joined #nixos
l33__ has joined #nixos
<wedens[m]>
is there some written material on why Nix could be preferred over stack or cabal new-build for haskell? (not for myself, but I'm also curious to read such thing)
shyim has quit [Read error: Connection reset by peer]
<Raito_Bezarius>
when I do it, I still get: { host = { ... }; }
<Raito_Bezarius>
even with deepSeq
astrall33 has joined #nixos
astrall33 has quit [Remote host closed the connection]
<Raito_Bezarius>
ah, because I wanted to use mapAttrs' and it is not available in builtins
alexherbo22 has joined #nixos
waleee-cl has joined #nixos
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed commit from @FRidh to nixos-19.09-small « doc: backport manual improvements (19.09) (#71779) »: https://git.io/Je0Uo
karetsu has quit [Quit: WeeChat 2.6]
<sphalerite>
(toeing the line to off-topic) I want to run https://hackage.haskell.org/package/github-backup . I've managed to get it running with `nix run -f channel:nixos-18.03 haskellPackages.github-backup`, but that's far from ideal :) what would be a better way? (it's broken in more recent nixpkgs versions because of an incompatibility with the version of haskellPackages.github)
<{^_^}>
[nixpkgs] @willghatch opened pull request #71828 → bind: Expand description of services.bind.cacheNetworks → https://git.io/Je0GH
Chiliparrot has joined #nixos
pamplemousse has joined #nixos
glittershark has quit [Ping timeout: 250 seconds]
<glasserc>
The last few nights, when my laptop has done the autoUpgrade at 4:48 AM, my GNOME session has crashed. How do I debug this? I can reproduce it by switching to the system profile in question
<glasserc>
Sorry, to rephrase, it's not that the profile is bad, it's that switching from one profile to another (in either direction) kills the GNOME session
furrycatherder has joined #nixos
<{^_^}>
[nixpkgs] @vbgl opened pull request #71829 → monotoneViz, haxe: refactor out of ocamlPackages → https://git.io/Je0ZT
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.colored: 1.3.93 -> 1.4.0 »: https://git.io/Je0Zt
furrycatherder has quit [Client Quit]
Ariakenom has joined #nixos
<jonringer>
Raito_Bezarius:what do you mean? if you mean the nix cli tool, that should be taken care of by the installer when you do `curl https://nixos.org/nix/install | sh`
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.peewee: 3.11.1 -> 3.11.2 »: https://git.io/Je0Zc
toppler has joined #nixos
<Raito_Bezarius>
Also, how can I store deployment.keys.* into a separate file and import it in my logical configuration?
dm9 has quit [Quit: WeeChat 2.6]
<Raito_Bezarius>
It seems like I cannot just do secrets.nix and put a function which takes a deployment attrset and edit it, then import it in my stuff
<DigitalKiwi>
evils and tokudan[m] what graphics drivers do you use?
<judson_>
Raito_Bezarius, I've got a secrets/ directory in my repo. I use git-crypt to keep it private.
<Raito_Bezarius>
judson_: Sure, how do you use it in your NixOps config?
<Raito_Bezarius>
I was planning to use git-crypt to crypt my secrets.nix
<judson_>
keyset = import secrets/keyfile;
<judson_>
is as if the contents of secrets/keyfile.nix replaces "import secrets/keyfile"
<Raito_Bezarius>
I'm not sure I understand
<Raito_Bezarius>
secrets/keyfile is a text file?
<exarkun>
judson_: and then it ends up in /nix/store right?
<judson_>
For a toplevel secrets.nix, you'd need ./secrets to get Nix to recognize a path
<Raito_Bezarius>
But what would be the contents of secrets/keyfile.nix?
<judson_>
secrets/keyfile.nix is a text file that contains nix code. Could be "password" or { user = "me"; pass = "pass"; }
<Raito_Bezarius>
Oh okay
<Raito_Bezarius>
But then, can I use it with deployment.*** ?
<judson_>
import doesn't execute the code, it includes it directly.
<Raito_Bezarius>
Alright, so I don't have to worry for it to end in /nix/store and being world readable?
<judson_>
Somewhere you have deployment.keys.my-secret.text = import ./secret
<Raito_Bezarius>
Ah okay
<judson_>
or (import ./secret).password
oida has quit [Remote host closed the connection]
<judson_>
Or you can let secrets = import ./secrets in my-secret = secrets.pass
oida has joined #nixos
<Raito_Bezarius>
BTW, what's the best practice to store secrets which are attrset themselves?
<Raito_Bezarius>
Like I have a database config which is a secret, in an attrset format
<Raito_Bezarius>
Can I do deployment.keys.my-secret.text = { … }; ?
<jonringer>
Raito_Bezarius: attrs sets themselves are plain text. but you could import a file using `import ./relative/path/to/secrets`
astrall33 has joined #nixos
<judson_>
exarkun, I'm not 100% on that. I think ultimately that's accurate, but only in /nix/stores where the password would be in the clear on the machine anyway.
<Raito_Bezarius>
jonringer: awesome @ attrsets
<judson_>
e.g. the deployment server has the repo checked out, and git-crypt decrypted the secret, or a target server that has the password in a config
<exarkun>
It looks like the nixops docs say that `deployment.keys` is handled specially and kept out of /nix/store
<gchristensen>
correct
<exarkun>
whether your secrets ending up plaintext in /nix/store matters to you or not depends on your threat model, of course, but it looks like it's not something you have to worry about w/ this use of nixops
<judson_>
Oh, yes. I'd forgotten that behavior.
FRidh has quit [Quit: Konversation terminated!]
lanin has joined #nixos
<Raito_Bezarius>
jonringer: hm attrsets are not automatically plaintext
<Raito_Bezarius>
My question was:
<Raito_Bezarius>
deployment.keys.some-secret.text = attrSet was possible or not?
<judson_>
You could say deployment.keys = attrSet (of the right form)
demize has joined #nixos
<ddima>
did anything regarding remote builders change/break with nix 2.3 and 19.09? Can't get nix-build or nixos-rebuild to dispatch to a previously working remote builers, still troubleshooting but just wondering if I maybe missed some change.
<Raito_Bezarius>
judson_: if I have multiple DBs
<Raito_Bezarius>
like DB1, DB2, DB3 which contains { host, password, user, port }
<Raito_Bezarius>
if I do deployment.keys = attrSet
<Raito_Bezarius>
won't there be a problem?
toppler has quit [Ping timeout: 240 seconds]
<evils>
DigitalKiwi: amdgpu here
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 3 commits to nixos-19.09-small: https://git.io/Je0ZQ
<kraem>
hey this might be a stupid question but here goes; why does nix seem to fetch all of my installed packages on some upgrades? it's like it can't find that they exist in the nix store? what could be triggering this?
pamplemousse has joined #nixos
cosimone has joined #nixos
<{^_^}>
[nixops] @edolstra pushed 2 commits to flake-support: https://git.io/Je0nR
<aminechikhaoui>
is there an easy way to disable python2 entirely through nixpkgs config.packageOverrides ?
<aminechikhaoui>
I guess I can go through all the attributes related to python2 and point them to null ?
<Raito_Bezarius>
Any idea why I have "waiting for SSH" infinitely on EC2 deployment with NixOps and I ensured that I have a good SG group (with SSH port), I have tried a lot of stuff, like changing the default SG group, using a new one, adding Internet Gateways, modifying VPCs subnets/routes, and I am unable to SSH myself into the EC2 instance
<{^_^}>
[nixpkgs] @wizeman merged pull request #71137 → nixos/smokeping: replace smokeping.fcgi with a symlink → https://git.io/Je8gR
<infinisil>
Squarism: You're free to do whatever you want with your nix expressions :P
<evils>
DigitalKiwi: i'll check kicad on debian tomorrow to see if the wxPython mismatch warning occurs there too (and the segfault too ofc); are you planning on opening an issue for this?
thomassgn has left #nixos ["WeeChat 1.7.1"]
<AmandaC>
Anybody got any idea why lightdm-mini-geeter is just logging me right in? I don't have that configured anywhere, AFAICT.
<AmandaC>
Like, no password prompt, I'm just -- oh
astrall33 has joined #nixos
gkmngrgn has quit [Quit: WeeChat 2.6]
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed commit from @Ma27 to nixos-19.09-small « wireguard-tools: 0.0.20190913 -> 0.0.20191012 »: https://git.io/Je0Zi
<{^_^}>
[nixpkgs] @Lassulus pushed commit from @drewrisinger to master « users-groups: fix typo »: https://git.io/Je0Cr
gkmngrgn has quit [Ping timeout: 246 seconds]
<kaliumxyz>
??? what happened with nixops???
<kaliumxyz>
the examples are gone, and it seems like the structure of the files in the repo changed.
<DigitalKiwi>
evils: yeah probably i have another issue i might need to open too anyway for something else
<DigitalKiwi>
and some PRs i need to do...
bitmapper has joined #nixos
<aminechikhaoui>
kaliumxyz nixops was split into plugins for each backend (see https://github.com/NixOS/nixops/pull/1179), it's not released yet so the changes are only on master
<kaliumxyz>
That explains a lot, also that makes sense.
<kaliumxyz>
Thanks c:
pamplemousse has quit [Ping timeout: 265 seconds]
Flambe has joined #nixos
<Flambe>
yo
<kaliumxyz>
aminechikhaoui is there any IDE tool for nixops which allows you to do things like code completion?
astrall33 has quit [Read error: Connection reset by peer]
bitmapper has quit [Remote host closed the connection]
<aminechikhaoui>
kaliumxyz Do you mean for the Nix language in general ? I don't think that exists
<kaliumxyz>
For nix it exists, or did exist but almost all of them are broken.
<kaliumxyz>
Do you usually just grab the docs and source code of things?
toppler has quit [Ping timeout: 240 seconds]
tiAy has joined #nixos
<{^_^}>
[nixpkgs] @bjornfor opened pull request #71849 → nixos-rebuild: add explicit option to enable (remote) sudo → https://git.io/Je0WG
<kaliumxyz>
I'm really wondering about other people their workflow on this, I guess most people settle into their own system.
toppler has joined #nixos
<simpson>
kaliumxyz: I have a vim and a local copy of nixpkgs. If I need to look something up, I grep my nixpkgs tree.
astrall33 has joined #nixos
leo__ has joined #nixos
* simpson
pretty basic person
gkmngrgn has joined #nixos
<kaliumxyz>
I guess most people look thigns up, I hate context switching tho. There is an attribute lookup package for emacs that works if you modify its symbol parsing function, still gotta make a PR for that.
<stagboot>
when I start a nix-shell, often bash will emit the error "/run/user/1000/env-vars: cannot overwrite existing file". can i safely ignore this?
pamplemousse has joined #nixos
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 61 commits to nixos-unstable-small: https://git.io/Je0WK
<jD91mZM2>
Hi everyone! I'm trying to finally make a default.nix derivation for xidlehook. I have pushed something to https://github.com/jD91mZM2/xidlehook that works with nix-build but fails with adding it to my list of packages in home-manager because "The option value ... is not of type `package'". Any pointers of what this means and how I can wrap the derivation into a package would be appreciated :)
freeman42x has quit [Ping timeout: 276 seconds]
<DigitalKiwi>
that was for kaliumxyz
astrall33 has quit [Read error: Connection reset by peer]
astrall33 has joined #nixos
<DigitalKiwi>
and if you don't like emacs, doom-emacs is really nice, or there's spacemacs, too, to make it more vim like
bvdw has quit [Read error: Connection reset by peer]
freeman42x has joined #nixos
bvdw has joined #nixos
toppler has quit [Ping timeout: 268 seconds]
knupfer has quit [Remote host closed the connection]
<kaliumxyz>
DigitalKiwi we talked yesterday, that one is nice but its company mode is broken ATM
knupfer has joined #nixos
<kaliumxyz>
I use spacemacs c:
<DigitalKiwi>
oh
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kaliumxyz>
Its because of minor changes in `nix repl`
freeman42x has quit [Remote host closed the connection]
<jD91mZM2>
So about the thing I just sent, turns out I'm a tired idiot. I forgot to add {} actually call the package function. So everything works after all.
<kaliumxyz>
oh wait
<DigitalKiwi>
i used to but then it started taking 3-5+ seconds to open and i got mad and then i saw ocharles using doom on twitch and it was nice, haven't looked back
<kaliumxyz>
the nix-mode one is what I'm talking about.
<kaliumxyz>
nix-emacs also doesn't work but its easy to fix.
<kaliumxyz>
c:
<kaliumxyz>
That is, the completion.
<jD91mZM2>
kaliumxyz: The lack of tooling is definitely a valid complaint to Nix, it's one of the main arguments to using GuixSD or something else that doesn't create its own domain-specific language
<kaliumxyz>
It takes shorter to open on the develop branch.
<kaliumxyz>
For now I'm going to keep on trying to fix the nix-mode company-nix
<kaliumxyz>
for completion :d
<jD91mZM2>
kaliumxyz: I mean it has basic, but dumb, completion for in-file stuff. But for something more complicated that's going to depend on actually evaluating nix... somewhat at least
<kaliumxyz>
oh cool.
<kaliumxyz>
Will check it out now, am stuck with my nixops stuff anyways.
<kaliumxyz>
Can't get container deployments working :c
<etu>
kaliumxyz: If you come up with a fix for nix mode you can ping me on that PR :)
<jD91mZM2>
Since Nix is so dynamic, I mean, it for example can't complete `let a = <nixpkgs>; in import a` without evaluating. I've been thinking about making some kind of evaluation library that would fallback to the C++ implementation when it fails to do it directly with rnix, but idk
<DigitalKiwi>
etu: i can never read your name without finishing it with "Brute?" and it amuses me
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
<philipp[m]>
I want to learn how to use nix run properly. Example: I have wine.override.wineRelease = "staging" set, but want to nix run the stable. How do I do that?
<{^_^}>
[nixpkgs] @jonringer pushed commit from @sikmir to master « openorienteering-mapper: 0.8.4 -> 0.9.0 »: https://git.io/Je08c
<Raito_Bezarius>
Hey, I have been trying to deploy using NixOps on AWS EC2, but for some reason, impossible to use specific VPC / Security Groups, each time I deploy, it sets a default SG which is not the good one and which locks the EC2 from SSH and NixOps just hangs on "waiting for SSH ..."
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.yamllint: 1.17.0 -> 1.18.0 »: https://git.io/Je04v
<zeta_0>
symphorien: wow, that is very convenient, nix saves you a lot of hassle and migrane headaches
<zeta_0>
symphorien: thanks for the help
<zeta_0>
symphorien: ++
<zeta_0>
symphorien++
<{^_^}>
symphorien's karma got increased to 22
chloekek has joined #nixos
<zeta_0>
so, how do i get rid of software that i do not need anymore, i have done many rebuilds so i am not sure if all these nix configurations are using up a lot of memory ?
<zeta_0>
infinisil: so will executing the command:`nix-collect-garbage -d` remove all previous generations and make my current configuration the only generation: `generation 1` (almost like starting all over again)?
<infinisil>
zeta_0: Pretty much
<zeta_0>
infinisil: should i run the command as `root` or as `user` ? what is the difference ?
<infinisil>
as user it will only delete the profiles of your user. With root it will do it for all users and the system profiles toot
<infinisil>
s/toot/too
<{^_^}>
[nixpkgs] @thorstenweber83 opened pull request #71864 → libredwg: init at 0.9 → https://git.io/Je04c
drakonis has joined #nixos
<zeta_0>
infinisil: oh that makes sense, i'll try it with root
freeman42x has quit [Remote host closed the connection]
<mog>
what changed in nix-shell in regards to openssl recently? i had an issue with SSL_CERT_FILE env not being brought in and now ruby in shell cant seem to do it properly either : SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate) (Seahorse::Client::NetworkingError)
astrall33 has quit [Remote host closed the connection]
astrall33 has joined #nixos
pamplemousse has joined #nixos
wormwood has quit [Changing host]
wormwood has joined #nixos
freeman42x has joined #nixos
freeman42xx has joined #nixos
astrall33 has quit [Read error: Connection reset by peer]
<abathur>
not finding any discussion around this, but I've updated channel and I'm seeing a break in the bootstrapped-pip override in a requirements.nix file when I run nix-shell; has anyone covered this ground aleady?
toppler has quit [Ping timeout: 240 seconds]
Okinan has quit [Quit: Konversation terminated!]
Okinan has joined #nixos
Serus has joined #nixos
toppler has joined #nixos
Shouou has joined #nixos
ennui has quit [Ping timeout: 246 seconds]
typelogic has joined #nixos
typelogic has quit [Client Quit]
thc202 has quit [Ping timeout: 264 seconds]
<abathur>
my best guess is that I'm running into whatever changes https://github.com/nix-community/pypi2nix/pull/323 was intended to workaround; I've made the same edit and am re-running nix-shell; will see if it works when I get back from dinner
<{^_^}>
nix-community/pypi2nix#323 (by seppeljordan, 4 weeks ago, merged): Do not patch bootstrapped-pip in generated requirements.nix
Havvy has quit [Quit: Computer Restarted or Restarting IRC]
<stagboot>
Hi, everyone. When I start a nix-shell, often bash will emit the error "/run/user/1000/env-vars: cannot overwrite existing file". Can I safely ignore this?
mexisme has joined #nixos
work_ has joined #nixos
ng0 has quit [Quit: Alexa, when is the end of world?]
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 4 commits to nixos-19.09-small: https://git.io/Je0BM
<{^_^}>
[nixpkgs] @risicle opened pull request #71872 → [r19.09] ghostscript: add patches for CVE-2019-10216, CVE-2019-14811, CVE-2019-14812, CVE-2019-14813 and some of CVE-201… → https://git.io/Je0Rm
<Raito_Bezarius>
can I specify dependencies in NixOps for AWS deployment?
<Raito_Bezarius>
like I need to have my RDS instance ready before to deploy an EC2 instance?
<Raito_Bezarius>
and I need to have my RDS instance host
wildtrees has quit [Quit: Leaving]
_pash has joined #nixos
<_pash>
hello, is it possible to keep the system channel on nixos-unstable, but still be able to compile packages at user level from stable 19.09?