<petersjt014>
anyone know what aws-sdk-cpp is? It's one of the last roadblocks to actually getting a rebuild on arm and it takes forever to compile (1+ weeks on rpi0)--and hangs indefinitely on at least one test.
<clever>
petersjt014: i think nix depends on it, to support s3://bucket as a store
<clever>
petersjt014: you could override nix and set aws-sdk-cpp = null;
<petersjt014>
where would that be done?
<ToxicFrog>
petersjt014: amazon web services SDK, C++ version, at a guess based on the name
<clever>
petersjt014: the same place you do all other packageOverrides
<petersjt014>
gonna havta look it up then, haven't done that before
eadwu has quit [Quit: WeeChat 2.3]
<petersjt014>
I found some examples, but none really suggest how to *exclude* certain things. halp?
<clever>
petersjt014: you have to override one of its inputs to null, nix = pkgs.nix.override { aws-sdk-cpp = null; };
justanotheruser has quit [Ping timeout: 240 seconds]
<petersjt014>
Am I putting that as a top-level expression in configuration.nix?
<petersjt014>
wait I think I got it
<petersjt014>
maybe
<clever>
petersjt014: under nixpkgs.config.packageOverrides
<delan>
anyone know how to interpolate $XDG_RUNTIME_DIR or the uid into a systemd.user.sockets.<name>.listenStreams (or ListenStream= if it could/should be done in systemd.socket(5) natively)?
justanotheruser has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhS4l
<delan>
oh I see, %t and %U respectively (see systemd.unit(5) section SPECIFIERS)
jluttine has joined #nixos
eadwu has joined #nixos
eadwu has quit [Client Quit]
alex`` has quit [Ping timeout: 244 seconds]
lord| has quit [Read error: Connection reset by peer]
lord| has joined #nixos
<{^_^}>
[nixpkgs] @volth opened pull request #55104 → mkp224o: init at 1.2.0 → https://git.io/fhS4R
<petersjt014>
hmm--seems closer, but now I'm getting "value is null when a set was expected, at /nix/var.../package-management/nix/default.nix:36:13", and It's building anyway. Also: is it certain that it'll even be using the values in configuration.nix If I haven't been able to compile it once yet?
slack1256 has joined #nixos
<petersjt014>
I remember there being another relevant config file somewhere for nix-env/nixos-rebuild
eadwu has joined #nixos
<clever>
petersjt014: one sec...
<clever>
petersjt014: nixos-rebuild always obeys nixpkgs.config from configuration.nix
<ghostyy>
i looked there but i was kind of expecting some kind of "services.wayland.enable" option
<petersjt014>
from what I understand the architecture is fairly different and running 'just wayland' isn't a thing. But even if I'm wrong, you could try enabling sway. Unless it's available on x11 (very sure it isn't), wayland will certainly be running then
<ghostyy>
ahh, i see
<ghostyy>
ill give that a shot then
<petersjt014>
but don't fully trust me on that. I avoid even running a WM if I can help it.
<ghostyy>
lol wait what, how does that work?
<petersjt014>
no gui applications (don't always need 'em), abduco and dvtm for multitasking, along with nq and nnn
<ghostyy>
i have never even heard of most of those
mizu_no_oto has joined #nixos
<petersjt014>
nnn is a file browser, nq is a job manager (run nq do_thing and the output is piped into a file so you have your console back)
<ghostyy>
whoa
<ghostyy>
that actually sounds pretty cool
<petersjt014>
abduco lets you have detachable named sessions
<petersjt014>
and dvtm is tmux but better because I like it better
<ghostyy>
earlier today i realized that awesome wm was using 3GB of memory after about 11 days of uptime so not running a window manager sounds kinda cool right about now
<petersjt014>
there's also dwm if you need a super slimmed down one
<ghostyy>
i really wanted to like dwm but the process of merging all of the different patches to make it do what i wanted it to do was way too time-consuming
<petersjt014>
apparently overlays can help with that, but I haven't bothered yet--I just use the defaults lol
<petersjt014>
also, this is whereI get a lot of my tools from: http://suckless.org
<ghostyy>
ah yeah ive heard of them
<petersjt014>
yeah, I can recommend most of their projects and stuff from their 'rocks' page
<pbb>
how do I add multiple ExecStop directives to a systemd service?
<jasongrossman>
ghostyy: Oh whoops. And that's interesting.
<clever>
i didnt really check if ratpoison is supported fully, but this is enough for a media frontend
<ghostyy>
i switched to whatever the unstable version is
<ghostyy>
so hopefully that will fix it
<Church->
Honestly suckless just sucks.
<jasongrossman>
FWIW, I use stumpwm (which is descended from ratpoison).
<jasongrossman>
ghostyy: I hope so.
<Church->
Not a fan of their politics and while the code is half decent, add some dang comments
<ghostyy>
Church-, excuse me i will have you know that their video editor is exquisite
<Church->
Even if it is small.
<Church->
Eh I guess blind is alright.
<ghostyy>
i was being sarcastic :P i don't think it's possible to actually use blind to do any real work...
<petersjt014>
some of their stances are weird, like strongly disliking symlinks, but I either use shit they make/recommend or ignore their other ramblings
<ghostyy>
i thought it was a joke at first but apparently he actually wrote the code
<ottidmes>
on the dwm page "Because dwm is customized through editing its source code, it's pointless to make binary packages of it. This keeps its userbase small and elitist. No novices asking stupid questions." yep, some weird stances
<clever>
ottidmes: xmonad works pretty much the same way
<petersjt014>
I can understand the why of that. Really do wish their was a better security-usability compromise tho
<petersjt014>
honestly If I had a choice I'd just configure shit in dhall
<petersjt014>
turing complete config languages scare me
Mateon2 has joined #nixos
Mateon1 has quit [Ping timeout: 250 seconds]
Mateon2 is now known as Mateon1
<ottidmes>
clever: xmonad tries to make it somewhat user friendly at least, its just that Haskell has a high threshold for some
<petersjt014>
in much the same way that a ceiling is steep compared to a floor
<petersjt014>
I learned at least four functional langs before even touching haskell
<DigitalKiwi>
you don't need to know haskell to use xmonad
<clever>
petersjt014: the only functional language i learned before haskell, was nix
<ottidmes>
I learned Haskell before C (I could read it, but never wrote any in it, only few years back with my Pebble watch is that I started using C)
iddt has quit [Quit: bye]
<petersjt014>
If you want to learn/teach an FP lang, Elixir is prob the absolute best to start with.
<ottidmes>
and I think Rust is great for learning imperative languages
<petersjt014>
no ultra-terseness like in haskell, and the ruby-ish syntax is hella easy to start with. leanred that shit in like a week and a half
<ottidmes>
petersjt014: haha, you mean stuff like this: foldr (\x -> ($) maybe (second (x :)) (\y -> first (y :)) $ f x) ([], [])
<petersjt014>
sorta yeah. I can almost mkae that out (I know foldRight, Optionals, the \val syntax, but still cant piece it together)
upsaday_ has quit [Remote host closed the connection]
<petersjt014>
although it gets crazier. I raise you one:
<ottidmes>
but I got to say, Rust has been the most pleasant new language for me to learn, was productive in it within a day, only had one unexpected thing, and one error message that was a bit confusing, but the rest was very intuitive if you already know a bunch of other languages
<ghostyy>
isnt it just main = putStrLn "hello world"
aleph- has joined #nixos
<clever>
ghostyy: it can be that simple, if you want it to be
<petersjt014>
technically it's a subset of all possible combinations of ascii characters
<ghostyy>
filter (`elem` ['A'..'Z']) "i lauGh At You BecAuse u r aLL the Same"
<petersjt014>
wut
<clever>
ghostyy: *doh*, i had filter backwards when running that in my head
<petersjt014>
ooooooooooooohhh i see it
iqubic has joined #nixos
b has quit [Ping timeout: 268 seconds]
<samueldr>
happy spheres
<pbb>
How can I merge two attribute sets recursively, so that { a = { b = 1; c = 4; }; } { a = { b = 3; d = 5; }; } becomes { a = { b = 3; c = 4; d = 5; }; } ?
<petersjt014>
hol up i stg i was just on that manual page
astrofog has quit [Remote host closed the connection]
<clever>
petersjt014: foo = haskell.lib.overrideCabal super.foo (drv: { ... }); is how overrideCabal works
<petersjt014>
not fully sure, but it seems like a boolean option/flag I can turn off
<clever>
pie___: setupHaskellDepends only works under overrideCabal
<pie___>
clever, using patches works now btw
<pie___>
but ill check out overridecabal
eadwu has quit [Quit: WeeChat 2.3]
<pie___>
yeah i dont actually need that anymore with my current variation apparently
<clever>
petersjt014: ah, that wasnt in the version i checked
<clever>
petersjt014: then you just want nix = super.nix.override { withAWS = false; };
<petersjt014>
within nixpkgs.nix.override or whatever it was?
<clever>
petersjt014: under packageOverrides
schjetne has quit [Ping timeout: 268 seconds]
<petersjt014>
I have nixpkgs.config.packageOverrides = pkgs: { nix = super.nix.override { withAWS = false; }; }; and it thinks super is a variable. Also is there a specific way to specify this with the -I flag ?
<clever>
petersjt014: you want pkgs in that case
<petersjt014>
that's better
<petersjt014>
...and suddenly I dont need to specify it in the cmd with -I. huh.
<clever>
yeah, no need for an -I now, that we have a usable override
<petersjt014>
sweet all it needs to compile now is nix and nixos-rebuild itself
drakonis has joined #nixos
<petersjt014>
might actually work this time
nikola_i has joined #nixos
<petersjt014>
thanks
gagbo has quit [Quit: I'm out !]
counting1ort has joined #nixos
aleph- has quit [Ping timeout: 246 seconds]
countingsort has quit [Ping timeout: 268 seconds]
ottidmes has quit [Ping timeout: 272 seconds]
q6AA4FD has quit [Read error: Connection reset by peer]
q6AA4FD has joined #nixos
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 272 seconds]
lassulus_ is now known as lassulus
pie__ has joined #nixos
pie___ has quit [Ping timeout: 272 seconds]
lord| has quit [Read error: Connection reset by peer]
init_6 has joined #nixos
lord| has joined #nixos
blankhart has quit [Quit: WeeChat 1.9.1]
endformationage has joined #nixos
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #55105 → mpw: point upgrade and minor cleanups → https://git.io/fhSRd
sicklorkin has joined #nixos
drakonis has quit [Quit: WeeChat 2.3]
pmahoney has joined #nixos
balsoft has joined #nixos
<pmahoney>
trying to build a package that tests filesystem xattrs during the build, but fails with ENOTSUP. outside of a build, the command "pxattr -T" succeeds (unrelated program that has built-in xattr test). inside of a build (with sandbox=true and sandbox=false in nix.conf), pxattr -T fails with ENOTSUP. wondering why that is, or how that happened? comparing /proc/self/mountinfo inside and outside the build reveals noth
<pmahoney>
ing (though i'm not sure what i'm looking for)
<clever>
pmahoney: that stuff ignores the state of the sandbox flag
<pmahoney>
thanks!
<clever>
pmahoney: oh, the nix.conf flag filter-syscalls can disable it
<clever>
but then its possible for a nix build to generate a binary, that is setuid nixbld1
<clever>
which can then be a potential security exploit
balsoft has quit [Ping timeout: 240 seconds]
brejoc has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<pmahoney>
i'm looking at https://please.build/ which seems to use xattrs... so 1) i can't build it 2) anything that requires "please" to build would be a challenge to package...
<clever>
pmahoney: can you disable its use of xattr?
<clever>
pmahoney: sounds like they sorely need an immutable store of files (*eyes /nix/store/*) and rather then do that, they hide things in xattrs where nobody knows to find it :P
<pmahoney>
i know, right...
balsoft has quit [Read error: Connection reset by peer]
<clever>
yl[m]: has this machine worked before? did you rename any keypairs in the deployment?
<yl[m]>
clever: I made a mistake and lost the deployment state. SO I manually deleted all resources (security groups + ec2 instance) and was starting over
ixxie has quit [Ping timeout: 268 seconds]
<clever>
yl[m]: did you also delete the ec2 keypair?
<yl[m]>
clever: I missed that one. I just did, going to try again
ixxie has joined #nixos
<yl[m]>
clever: 🤦♂️ never mind, it was my ssh key not present on this machine
orivej has joined #nixos
<clever>
nixops should automatically put the keypair its creating on the newly made machine
<yl[m]>
clever: true but it uses the EC2 key pair for the initial connection
<yl[m]>
I forgot to make that one available, hence the password prompt
vonfry has joined #nixos
ixxie has quit [Ping timeout: 245 seconds]
<vonfry>
I try to install a tool with cmake. It is successful in nix-shell, but failed with nix-env, because of cmake cannot find a command included in a file downing by cmake.
orivej has quit [Ping timeout: 244 seconds]
ixxie has joined #nixos
leotaku has quit [Ping timeout: 268 seconds]
leotaku_ has joined #nixos
ottidmes has joined #nixos
<clever>
vonfry: include files and gcc will only ever work inside nix-shell and nix-build
<clever>
vonfry: cmake and gcc will break if you nix-env them
<vonfry>
The file is not a head file, it is a cmake file and load in cmake
<vonfry>
I try to update fortune-mod from 1.99 to 2.6.2 on nixpkgs.
<{^_^}>
[nixpkgs] @fpletz merged pull request #55084 → compton-git: 5 -> 5.1-rc2, fix crashes and other regressions → https://git.io/fhSGf
<vonfry>
clever: I have checked the cmake file. It contains a INCLUDE command and in nix-shell, cmake can work correctly to generate a Makefile, but failed, when I use nix-env to install the packages.
<clever>
vonfry: what args are you passing to nix-env?
<vonfry>
nix-env -f <path to nixpkgs> -i <pkgs name>
<clever>
vonfry: does it also fail with nix-build <path to nixpkgs> -A pkgname?
<kenshinCH_>
For deoplete, I need neovim to use version 0.3.2 of the python package neovim (now called pynvim), but the one shipped with NixPkgs is older. I tried a package override in configuration.nix following https://nixos.org/nixpkgs/manual/#how-to-override-a-python-package-using-overlays but upon switch nothing happens
<kenshinCH_>
Glad for any suggestion :P
<pie__>
clever, thats gonna break every time i run out of disk space
<clever>
pie__: its a weird attempt to dedup git repos, by sharing a single object store for every call to fetchGit
schjetne has joined #nixos
<pie__>
clever, i kiiinda figured
Ariakenom has joined #nixos
<pie__>
clever, it doesnt sound horrible, it its gonnabreak every time i run out of disk
<pie__>
im guessing/
<pie__>
unless it was something else that brike it, inwhich case yay...
<tilpner>
Hi, I want continuous builds, but my pinning mechanism depends on IFD. Is there any way to release Hydra restrictions, or should I use a systemd timer that calls nix-build? Are there other viable options?
<tilpner>
Couldn't you add them with overrideAttrs?
<clever>
the perl bindings depend on the nix they are added to
<clever>
so it cant be an attr on the derivation itself
<clever>
has to at least be meta.passthru
m0rphism has joined #nixos
dermetfan has joined #nixos
rprije has quit [Ping timeout: 245 seconds]
flokli has quit [Quit: WeeChat 2.2]
<tilpner>
I'm not sure I understand your point about the perl-bindings. I do services.hydra.package = pkgs.nixos-18_09.override { nix = config.nix.package; };, and config.nix.package.perl-bindings seems to be version 2.2. Do you mean Hydra requires them to be version 2.1.3 and I should use nixos-18_09.nix.perl-bindings?
<jonge>
hi, i am trying to setup a nix shell env where i use jupyter with additional python libraries. does anybody know an example that does this already and that is online somewhere?
<rfold>
When using haskellPackages.mkDerivation, is it possible to include extra files in the derivation? Preferably just a shell script that gets called during building to copy files into "$out/share".
jasongrossman has quit [Ping timeout: 245 seconds]
steppentyu has left #nixos ["Leaving"]
<wedens>
steveeJ: why? let binding is for local definitions
<wedens>
you don't need to use let if you don't want something to be local
<jluttine>
Any ideas why a package derivation I've written fails to build with error: "contains a forbidden reference to /build/": https://github.com/NixOS/nixpkgs/pull/54383
<delroth>
some people put unbound in front of it for extra caching, I haven't found a use for it just yet since these are servers and pretty light on dns resolutions
<jluttine>
how can i just remove all nix-env generations? i cannot delete the current active one, but i just don't want any user environment, i just want the global environment
regulus_ has quit [Ping timeout: 268 seconds]
<clever>
jluttine: if you uninstall everything with nix-env -e, then the current generation will be empty
jasongro` has joined #nixos
<clever>
then you can delete the old generations as normal
<emily>
delroth: delroth thanks!
jasongrossman has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @Ma27 opened pull request #55121 → nixos-build-vms: pass `--option` to `nix-build` → https://git.io/fhSgZ
brejoc has joined #nixos
timor_ has joined #nixos
init_6 has joined #nixos
noqqe has quit [Ping timeout: 272 seconds]
<lassulus>
how do i evaluate release.nix? I try running `nix-build nixos/release.nix -A netboot` but I get "error (ignored): writing to file: Bad file descriptor; error: file '/home/lass/tmp/nixpkgs/vde1.ctl/.31941-00000' has an unsupported type"
<timor_>
I am having a bit of trouble with 'requireFile', because the file that has to be provided has parentheses in its name, and nix-build complains about that being an invalid name. Is there a way to tell requireFile that it should use a different name (internally)?
<Unode>
hi all, I have a dual config setup that creates intel+optimus and nvidia-only configs in grub. Both work as expected but when I load the nvidia option I get a strange sudo interaction
<Unode>
In effect, sudo stops working as expected and always asks for password even if NOPASSWD settings matching the user groups' exist.
<Unode>
the intel+optimus setup (my primary config) works as expected.
<Unode>
I build the above with: nixos-rebuild switch -p nvidia_only -I nixos-config=/etc/nixos/nvidia_only.nix
<Unode>
any suggestions on how to even debug this?
shibboleth has joined #nixos
<lassulus>
Unode: check if /etc/sudoers is different?
<Unode>
lassulus: I did, I don't see any difference
<lassulus>
maybe your groups are different?
<Unode>
lassulus: also checked, I'm still part of the group that should give NOPASSWD access
<Unode>
I even, 'newgrp nopasswdgroup' and tried sudo after, same result
<Unode>
tried running strace sudo but the job aborts
<{^_^}>
[nixpkgs] @timokau merged pull request #50234 → nixos-generate-config: account for mount points & devices with spaces & tabs in the name → https://git.io/fptFU
<{^_^}>
[nixpkgs] @timokau pushed commit from @aanderse to master « nixos-generate-config: account for mount points & devices with spaces & tabs in the name (#50234) »: https://git.io/fhSgB
brejoc has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<ottidmes>
how does versioning of Haskell packages work again in Nix? Like megaparsec is on version 6.5 at NixOS 18.09, and I know version 7.0 is available via megaparsec_7_0_0 or some such, does it remain at 6.5 just because I am on stable and I should be using nixos-unstable to get the updated versions? or what is the way to get the latest versions of packages compatible with the GHC version you are using?
lycium[m] has joined #nixos
<Unode>
ottidmes: typically, if you are on a stable nixos release, whatever packages you have will be compatible
<Unode>
if you mix different versions (unstable + else) then this is no longer guaranteed.
<Unode>
ottidmes: In a way nix does a similar testing procedure to what the people behind slack do
<symphorien>
timor_: requireFile seems to have a name argument
<Unode>
lassulus: thanks for the help though. I might ask about this on github as I can't seem to find an explanation for it.
<Unode>
unless there's something in the import machinery that breaks this somehow
<ottidmes>
Unode: sure, but is it correct that stable does not do version bumps?
<steveeJ>
how can I get the closure size of a specific nixos-container?
<Unode>
ottidmes: Not entirely sure, but I wouldn't expect versions to be frozen
<Unode>
ottidmes: that is, if you want to have a frozen set of packages, you typically 'pin' your nixpkgs to a specific commit
<ottidmes>
Unode: hmm, it could indeed just be a case where some package still require 6.5 and so the upper bound has been set at 6.5 for the set as whole, its probably just that
<timor_>
symphorien: yes it does, however that is the name of the file that is required.
shibboleth has quit [Remote host closed the connection]
<ottidmes>
Unode: anyway, thanks!
<Unode>
ottidmes: not really, it's more about if it compiles together or not. If it does, by nix standards is compatible.
<symphorien>
timor_: well the user will have to rename it...
<Unode>
ottidmes: there's some wiki page somewhere with instructions on how to pin a nixpkgs version (in case you don't know how to do this)
<{^_^}>
[nixpkgs] @elseym opened pull request #55122 → ndppd module: refactor and fix → https://git.io/fhSg2
<timor_>
symphorien: yes, that is what I have at the moment, not very convenient, because then the default message is misleading
<symphorien>
you can override the message
<{^_^}>
[nixpkgs] @Lassulus opened pull request #55123 → nixos/netboot: netboot_minimal downloads the iso and extacts it → https://git.io/fhSga
<noonien>
samueldr: hello
<noonien>
i've stumbled upon your nixos config, i've found it to be pretty well organised, and i'm modeling mine kind of the same :D
<noonien>
i was wondering, what is `zr`?
dermetfan has joined #nixos
<{^_^}>
[nixpkgs] @vbgl opened pull request #55124 → coqPackages.mathcomp-analysis: init at 0.1.0 → https://git.io/fhSgX
<{^_^}>
[nixpkgs] @zimbatm pushed to master « pkgconfig: rename to pkg-config (#55094) »: https://git.io/fhSat
endformationage has joined #nixos
timor_ has quit [Quit: Leaving]
mizu_no_oto has joined #nixos
realrokka has joined #nixos
rydnr has joined #nixos
halfbit has joined #nixos
<{^_^}>
[nixpkgs] @oxij opened pull request #55129 → all-packages.nix: move defaults to package files → https://git.io/fhSaa
griff__ has joined #nixos
griff_ has quit [Ping timeout: 240 seconds]
griff__ is now known as griff_
<{^_^}>
[nixpkgs] @Profpatsch opened pull request #55130 → sdnotify-wrapper: init at unversioned → https://git.io/fhSaK
simukis_ has joined #nixos
justanotheruser has joined #nixos
<noonien>
hmm, i'm trying to follow: https://nixos.wiki/wiki/Bluetooth and i get the following error: error: The option `hardware.pulseaudio.extraModules' defined in `/etc/nixos/modules/bluetooth.nix' does not exist.
justanotheruser has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @primeos pushed to master « wlroots: Fix the ELF binaries (rootston + examples) »: https://git.io/fhSV0
<Avaq>
Hi. I've installed NixOS on my Raspberry PI a while back, and that took some effort. It's been around a year since I've done so, and it's running nixos 18.03 with Nix 1.11.15; Now I want to upgrade, but it's giving me this when I try: "This version of Nixpkgs requires Nix >= 2.0, please upgrade". And then it goes on to explain how I upgrade.
<Avaq>
It seems to me it's telling me to upgrade before I can upgrade. I'm not sure what to do next, but I don't want to start over from scratch. :\
sicklorkin has quit [Ping timeout: 246 seconds]
<Avaq>
I'm trying with an older channel for nixos.
iqubic` is now known as iqubic
<Avaq>
That seems to do the trick, actually. :o
<sphalerite>
Avaq: yeah, you can either upgrade via an intermediate version or boot into a recent installer, mount everything and rerun nixos-install
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
orivej has joined #nixos
rfold has quit [Ping timeout: 245 seconds]
rfold has joined #nixos
<noonien>
what notification daemon do you guys run?
<gagbo>
Dunst, but I'm not on nixos so I don't know how relevant that is
<sphalerite>
I use dunst too, on nixos
<noonien>
hmm, ok, i'll give dunst a try
<noonien>
i'm running i3, and i see only dunst and xfce-notifyd as options
<noonien>
and twmn
<simpson>
There's also the option of no notifications.
ambro718 has joined #nixos
rfold has quit [Ping timeout: 246 seconds]
knupfer has joined #nixos
knupfer has quit [Remote host closed the connection]
<pie__>
clever, re: yesterday, even after deleting the nix git cache im getting the "not a tree object" issue
daifa has joined #nixos
<pie__>
could the hash be for the wrong repo or something?
<pie__>
but it cant be...i got it from the repo
jhillyerd has joined #nixos
kumikumi has joined #nixos
<samueldr>
pie__: which has, which repo, which function?
<samueldr>
which hash*
<jhillyerd>
Trying to install on a laptop with intel fake raid. The nixos install media autodetects my raid0, and I get a /dev/md126 - was able to install. I can't get the machine to boot, it gets stuck waiting for disk uuids
<pie__>
infinisil, i think theres a misunderstanding about how packages are exposed, butthen again youre still right its good to have the source
<pie__>
thats just my knee-jerk assumption
<pie__>
infinisil, i checked the package list and it didnt show it?
<infinisil>
pie__: I know path /= attrname, but in this case steamcmd actually is the attr
<andi->
jhillyerd: system.fsPackages should work if you add your mdadm tool to them
<pie__>
well ok *shrug* D:
<pie__>
my bad
sigmundv_ has joined #nixos
<kumikumi>
infinisil: there's nothing much to look at in my configuration, I have allowUnfree set to true and adding other packages such as "steam" works
<pie__>
samueldr, doh
<pie__>
samueldr, thanks
<infinisil>
kumikumi: Okay, what's `nix-shell -p nix-info --run nix-info` output? Can paste it directly in here
<andi->
jhillyerd: but those should be there already since they are part of the stage1 boot
<infinisil>
(because if you don't have any channels, then nothing else should build either, would be weird for only steamcmd to not work in that case)
<kumikumi>
I removed (commented out) steam and steamcmd and it does build (nixos-rebuild switch does work)
<infinisil>
Yeah, but when you *don't* comment out steam, only comment out steamcmd?
<samueldr>
pie__: weird, your example seems to work fine here, at least, the nixpkgs part, other parts are failing
<pie__>
clever has a goos script for this i think <jhillyerd> andi-: Do you happen to know how I can turn on more tools in initrd, so that when it fails to boot I can poke around in a shell a bit?
<jhillyerd>
samueldr: interesting. I'm using efi, but will see if I can still edit cmdline
<pie__>
i dont really have any bright ideas off the top of my head
<infinisil>
pie__: I wish nix-info would be a bit more useful, it couldn't tell me nixpkgs's version in this case
<daifa>
Hi, why could one of the build Inputs evaluate to null when looking at .drvAttrs.buildInputs form nixpkgs and evaluate correctly when copying the default.nix and evaluating it myself? Issue 54929
<kumikumi>
infinisil: alright thanks
<{^_^}>
[nixpkgs] @delroth opened pull request #55132 → glowing-bear: init at 0.7.1 → https://git.io/fhSKb
<samueldr>
jhillyerd: if you're using systemd-boot, it should also be 'e'
<infinisil>
Daifa: A null in buildInputs isn't something bad, it happens often for dependencies that aren't needed, nulls are ignored there
bpa has quit [Remote host closed the connection]
sicklorkin has joined #nixos
<daifa>
infinisil: unfortunatly this causes a basic function to be missing because the package/library was not around during the build.
<infinisil>
Daifa: Hmm, well in any case, something must be different for these two scenarios, possibly your nixpkgs version
philippD has joined #nixos
fendor_ has quit [Ping timeout: 250 seconds]
goibhniu has joined #nixos
<pie__>
is it possible to do parallel haskell builds yet?
<pie__>
i have a library that takes foreeeeever to compile :(
<daifa>
infinisil: I am wondering how. Both of the times I am installing it on the same machine, once using nix-env and once via nix-build. Running nix-info -m shows that I have no other channel for my user. (If I interpret the "" behind channel(NAME) correctly)
<infinisil>
pie__: It can only build modules in parallel, a single module has to be compiled single-cored
<pie__>
infinisil, i think thats ok?
<pie__>
infinisil, a module is like Graphics.UI.Qtah.Core.QMetaProperty right?
<pie__>
in which case that would be perfectly fine
<srhb>
pie__: It's normally an impurity such that different values do not cause a hash change.
<pie__>
srhb, i guess
<pie__>
ahh 400% cpu usage, much better
<pie__>
doesnt actually feel any faster though :thinking:
<srhb>
ghc parallel builds are generally quite bad.
switchsox has quit [Remote host closed the connection]
agander has quit [Ping timeout: 240 seconds]
<pie__>
i guess i should time it.
<snajpa>
infinisil: right, if I can get any kind of feedback on the date/location, that would be awesome :D
<pie__>
ok it seems more like it jumps in batches for this codebase
<snajpa>
but as long as it's so far ahead of us, I guess everyone can just go ahead and book it, so I could do the same about the venue - just go ahead and book it
switchsox has joined #nixos
agander has joined #nixos
daifa has quit [Quit: Page closed]
Guanin has joined #nixos
doyougnu has joined #nixos
<pie__>
does ghc compile much faster with lower optimization levels?
<pie__>
does anyone know what the default -O level is?
<infinisil>
pie__: You can look that up online or in the man pages, but iirc GHC doesn't support anything that makes it much faster/slower in regards to optimization
switchsox has quit [Remote host closed the connection]
sinner has joined #nixos
sinner is now known as Guest22848
<pie__>
ok
<pie__>
infinisil, i figured nix passes a default -O somewhere
<jhillyerd>
I'm wondering if I'm missing a kernel module. mdadm is able to auto-assemble my array while booted into the USB installer, but when I try from within initrd, I get errors about OROM
<{^_^}>
[nixpkgs] @corngood opened pull request #55136 → steam: provide pidof and lsusb for Steam VR → https://git.io/fhSiK
bbarker has quit [Remote host closed the connection]
<jhillyerd>
I wonder if this is what I'm missing: "Add /sbin/mdmon to the BINARIES section. mdmon monitors external metadata and will be automatically executed by udev rules."
<jhillyerd>
infinisil: trying to figure out what I would actually be missing... I'm combing through dmesg output from installer right now to see at what stage my array is assembled there.
<jhillyerd>
It's about 13 seconds in, looks like systemd has already taken over. I do see "asus_wmi" logging right before, but it's not clear what is actually triggering the "md126: detected capacity change" where the arraya is assembled
<jhillyerd>
looks like a couple lines later systemd reports systemd-modules-load as successful
rprije has joined #nixos
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos
simukis_ has quit [Quit: simukis_]
sicklorkin has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @oxij opened pull request #55137 → openhmd: init at 0.3.0-rc1-20181218 → https://git.io/fhSix
<pie__>
infinisil, srhb ...bloody hell thats so much faster
<infinisil>
Sonic approves
<{^_^}>
[nixpkgs] @oxij opened pull request #55138 → random cleanups and a tiny fix → https://git.io/fhSih
<benwaffle[m]>
oh its not just a hash of the source .tar.gz?
knupfer has joined #nixos
alex`` has joined #nixos
<benwaffle[m]>
should i use nix-prefetch-url
<noonien>
infinisil: were you experiencing the same issues? or different ones?
<noonien>
mine works just fine
AstroBadger has quit [Ping timeout: 252 seconds]
<noonien>
adding it during a session doesn't work, i have to start arandr to activate it (resuling in a crash), the restart (this time it's active), then setting the resolution via xrandr works just fine
<noonien>
but if i'm afk (and i guess the monitor turns off or something), i come back to a crashed laptop
<infinisil>
noonien: The thing that does the turning off is dpms, look at `man xset`, should be able to turn it off with that somehow
<noonien>
hmm, i'll try that as a workaround
<infinisil>
(I sometimes use `xset dpms force off` to make it turn off the screen before the default timeout)
<noonien>
but i want to figure out what's causing this
<pie__>
hmm, passing a list: src = [ ... ] , /almost/ works
<infinisil>
drakonis: Do you have a question or..?
<infinisil>
Nobody can help you if they don't know the problem :)
ddellacosta has joined #nixos
<pie__>
"unpacker produced multiple directories" causes a failure
agander_ has quit [Ping timeout: 244 seconds]
<drakonis>
infinisil: i'm figuring out how to get emacs to find the library headers
<ddellacosta>
I'm sure this is something basic, but I'm having a hard time understanding how to get my .profile picked up when I open a new terminal. I've tried --loginShell with urxvt and also "vanilla" termite. Is there something specific to nixos here, and if so, is it documented anywhere?
<ddellacosta>
none of the options seem to point to an obvious solution
<ToxicFrog>
ddellacosta: what shell are you using?
<ddellacosta>
ToxicFrog: bash
<ddellacosta>
ToxicFrog: I've tried .bash_profile too with no luck
<ToxicFrog>
Ok, so the issue is that urxvt or termite aren't properly honouring --loginShell
<pie__>
makes sense in hindsight but I cant read bash
<ToxicFrog>
Not knowing much about either terminal emulator I can't really help you there
<ddellacosta>
ToxicFrog: _sigh_ I was hoping it wasn't that. But okay, that's helpful. Thank you!
dejanr has joined #nixos
<ToxicFrog>
You might consider running one of them in `strace -etrace=process` to see exactly how bash is getting invoked
<ToxicFrog>
Or, alternately, see if you can get away with putting it in ~/.bashrc
<ddellacosta>
ToxicFrog: okay, I'll give those a shot
<ToxicFrog>
It might also be worth checking if ~/.bash_profile or ~/.bash_login exist, since bash will prefer those to ~/.profile if they exist, but if ~/.profile is getting read on `bash --login -i` otherwise I don't think it's that.
<ddellacosta>
yeah, I tried .bash_profile before (but not .bashrc), and that didn't get picked up either
<ToxicFrog>
The rules for bash startup scripts are kind of convoluted, but the tl;dr is
<ToxicFrog>
- login shell: /etc/profile, then whichever it finds first of (.bash_profile, .bash_login, .profile). By convention one of these will source .bashrc, but it doesn't have to.
<ToxicFrog>
- non-login interactive shell: /etc/bash.bashrc, then ~/.bashrc. Either of these may source one or more of the `profile` scripts as well, but again, are not required to.
<ToxicFrog>
- noninteractive: whatever's in $BASH_ENV
<ddellacosta>
thanks, yeah, for what I'm trying to set .profile seems ideal, but will try other avenues too if need be
rfold has quit [Quit: leaving]
<gagbo>
There's an archwiki page with a lot of this stuff too
peter2121[m] has joined #nixos
<gagbo>
but I think it's just the longer version of what ToxicFrog said
<{^_^}>
[nixpkgs] @worldofpeace pushed 4 commits to staging: https://git.io/fhSXe
<ToxicFrog>
gagbo: I mean, I'm also leaving out a bunch of weird edge cases and exceptions
<pie__>
I feel like nix code is hard to navigate for some reason
<ddellacosta>
yeah I mean, as far as the exact details of .bash_profile/.bashrc/.profile etc. I more or less know what I want and was hoping this was something nixos was doing that is non-standard, but sounds like it's just my terminals not behaving correctly :-/
<ddellacosta>
but will keep poking at it
<pie__>
i have a lot of trouble finding the original defitionins for things to figure out how/why something doesnt work
knupfer has quit [Remote host closed the connection]
<jhillyerd>
woot! Think I just figured out the intel fakeraid/mdadm issue. Needed to add 'efivars' kernel module to expose the OROM information to mdmon in initrd
<{^_^}>
[nixpkgs] @hhm0 opened pull request #55141 → rtl8821ce: init at 5.2.5_1.26055.20180108 → https://git.io/fhSXz
<iqubic>
So I have a shell script I want to run, but it requires dependecies that are usually found in /bin and /sbin, and I can't seem to make it work.
<iqubic>
Mostly just /bin.
orivej has quit [Ping timeout: 246 seconds]
<iqubic>
Basically, I have a steam game that is supposed to work on Linux, but fails because NixOS isn't expected.
<iqubic>
`SpaceChem' is the name of the game I want to run.
vk3wtf has joined #nixos
<iqubic>
And it is failing.
jackdk has joined #nixos
<andi->
iqubic: aren't you running that with steamrun?
kvda has joined #nixos
<iqubic>
I tried that and it failed.
<iqubic>
It gives me a giant error.
<srhb>
It'll fail for a better reason though :)
martinb_ has joined #nixos
<iqubic>
No it won't.
<srhb>
(within steam-run, /bin and /sbin do exist)
<srhb>
Yes it will. It's a chrootenv that sets up something akin to the FHS system expected.
<andi->
You might have to add something to steamrun if things are still missing then
<iqubic>
right... But clicking the play button from inside the Steam UI gives me the same error.
<andi->
(Never done that)
<srhb>
iqubic: If it's something that's missing from steam-run, you may want to try running the thing with strace. It might not be easy to deduce what's missing though (and I'm no expert) -- but it'll certainly be the path to the answer, unlike running it without steam-run.
<iqubic>
So steam is basically just trying to run this one liner shell script.
<iqubic>
Except that the `libnative.so' is a file in this directory.
<clever>
iqubic: does `file` say its 32bit or 64bit?
<iqubic>
clever: It's a library that is used for the SpaceChem game. I have it here in this directory.
<srhb>
Might it be te wrong arch?
<srhb>
Ah, clever is already on that..
Makaveli7 has quit [Quit: Leaving]
<srhb>
iqubic: The interpreter will report a .so as missing if it's the wrong arch, giving errors such as this, hence the suspicion.
sakalli_ has quit [Client Quit]
<iqubic>
Yes. It is a 32-bit library.
<clever>
srhb: ive also noticed, if minecraft cant load the 64bit so (due to missing rpath), it will try the 32bit so, then only report the "wrong arch" error
<srhb>
clever: How helpfully confusing. :-)
<clever>
iqubic: then you want the 32bit mono, nix-build '<nixpkgs>' -A mono --argstr system i686-linux && ./result/bin/mono ./somehting
<iqubic>
I see.
<{^_^}>
[nixpkgs] @FlorianFranzen opened pull request #55142 → thinkfan: add option for libatasmart support → https://git.io/fhSXi
<iqubic>
What is ./something?
<iqubic>
What do I do with that?
<srhb>
yourexecutable
<clever>
srhb: it assumes any error loading the 64bit one means wrong arch, and doesnt bother showing that error
<iqubic>
I just put them into two text files, and ran a diff. It is the same error.
<iqubic>
I'm really really confused here.
<srhb>
Looks like the steam fhs already has a 32 bit mono (as well as a 64 bit one)
<iqubic>
yeah. So IDK why this is failing
<srhb>
Me neither.
<iqubic>
SpaceChem isn't a weird game by any stretch of the imagination.
<srhb>
It doesn't need to be super weird to fall through some cracks..
<iqubic>
I know. Right now I'm getting pissed off.
<srhb>
Could it be getting the wrong mono executable I wonder..
<iqubic>
How could it be doing that? I've not installed any mono libraries at all. I've just been letting steam handle that.
<srhb>
Try overriding PATH to get the 32 bit one.
<clever>
iqubic: what if you run ldd on libnative.so?
<srhb>
iqubic: It's in the steam chrootenv :)
<iqubic>
not a dynamic executable
<iqubic>
That's the result.
<iqubic>
It's just a lbrary, not an executable.
<iqubic>
srhb: How would I go about doing the overriding thing?
jhillyerd has quit [Quit: WeeChat 2.2]
<srhb>
I'm not really confident it'll help, but from within a steam-run shell, you should be able to find the path to the 32 bit mono via the libraries in /lib32, then put that in front of your PATH variable or simply modify the shell script to use that directly. But I just noticed that it was using a local mono in your install, so it's unlikely to improve matters.
<srhb>
No bright ideas, basically :)
<iqubic>
How do I open a steam-run shell?
upsaday_ has quit [Remote host closed the connection]
<iqubic>
Is that just `steam-run zsh' or something?
upsaday_ has joined #nixos
<srhb>
Yeah
<iqubic>
/nix/store/bz46pmm9vpgjp4f3hjkqq5avjkw92i8s-steam-run: line 9: exec: zsh: not found
<srhb>
Yeah, unless you override the steam fhs env, it'll probably only have bash.
<srhb>
(It has an explicit list of included packages)
<iqubic>
Yeah. That's right.
cufisz has joined #nixos
<iqubic>
so now what?
<srhb>
Well, the above blurb, but like I said I no longer think it'll improve things.
<iqubic>
Yeah, it doesn't.
elgoosy has quit [Remote host closed the connection]
jhillyerd has joined #nixos
<iqubic>
Well, I'm going to stop bashing my head on this right now.
<srhb>
Try playing it through proton. :-P
<iqubic>
How does proton work?
<srhb>
essentially it's fancy wine
<iqubic>
I see.
<srhb>
Right click the game in steam, properties, force use of steam compatibility layer or somesuch
<clever>
srhb: you can force protono? :O
<srhb>
Since recently, yes :)
<clever>
nice
<srhb>
Yeah, very.
<iqubic>
Running it under regular wine fails.
<clever>
iqubic: proton has been patched to fix most of those issues
<clever>
though ive found .net games still dont work
<iqubic>
Let's see if this works.
<cufisz>
Hey all, trying to run some selenium tests using `nixos.chromium`, `nixos.chromedriver` and `nixos.python36Packages.selenium`. I am getting an error chrome chromedriver that chromium has unexpectedly exited. This is probably due to the fact that `chromium` is not the chromium executable but a wrapper script that execs `/nix/store/b1985drig5zmnk5nx7w52rhhmbvl8h9h-chromium-71.0.3578.98/libexec/chromium/chromium`. Any ideas on how to han
Synthetica has joined #nixos
<cufisz>
typo: I am getting an error from chromedriver that chromium has unexpectedly exited
sicklorkin has joined #nixos
<iqubic>
Well, the game claims to be running, but I don't see it.
<srhb>
cufisz: fwiw I just tested a basic selenium "hello world" in the following shell succesfully: nix-shell -p 'python36.withPackages (ps: with ps; [selenium])' -p chromedriver
ddellacosta has quit [Quit: WeeChat 2.2]
<Synthetica>
Does anyone have QT wayland working? Specifically Konsole
<srhb>
cufisz: Er, including chromium as well :)
ddellacosta has joined #nixos
eadwu has quit [Quit: WeeChat 2.3]
<iqubic>
Alright so I'm so pissed about this steam game thing. This pisses me off so much.
<cufisz>
srhb: tried your shell and still have the problem. I am able to use webdriver.Firefox() though which is good enough for now. Here's my python script:
<daniele->
hi there! i’m new to nixos and i’m trying to have it running in an systemd-nspawn container. so far so good and I have a running system. now i’m trying to import some system configuration but I’m a bit stock
<daniele->
the configuration i’m trying to replicate has a “let unstable-pkgs = import <unstable> {};” which does not quite work on my system
<daniele->
i get “error: file 'unstable' was not found in the Nix search path (add it using $NIX_PATH or -I), at /etc/nixos/configuration.nix:3:28”
<daniele->
where should I look to understand what that means?
<daniele->
ToxicFrog: where do I configure nix-channels?
<daniele->
i would expect it to exist a declarative way of doing that :)
<ToxicFrog>
Usually this sort of thing is because the configuration wants to use nixos stable for most of the OS but use some things from unstable, probably because they require more up to date versions than stable has.
<jasongrossman>
daniele-: Good question, but no, channels are not declarative.
<ToxicFrog>
AFAIK there is not. The channels are where it gets all the declarative stuff from.
<ToxicFrog>
Any user can use nix-channel to configure their own channels (for use with stuff like `nix-shell`); nixOS itself uses whatever channels root has configured.
mkoenig has joined #nixos
<ToxicFrog>
As root?
<daniele->
yes
<ToxicFrog>
Did you also `nix-channel --update`?
<daniele->
ah. no! running it now
* daniele-
would read the nix-channel man page but the minimal system he has does not have `man` installed