<mwelt>
where is the path pkgs/top-level/all-packages.nix supposed to be?
stigo has joined #nixos
<clever>
mwelt: in <nixpkgs>
swflint has quit [Ping timeout: 276 seconds]
<mwelt>
clever: and this can be found where on an default installation of nix?
<clever>
mwelt: $NIX_PATH
<clever>
mwelt: which is usually managed by nix-channel
ericsagnes has joined #nixos
freeman42xx has quit [Ping timeout: 246 seconds]
swflint has joined #nixos
<mwelt>
clever: thx
toppler has quit [Ping timeout: 246 seconds]
nwspk has joined #nixos
<mwelt>
am I really supposed to add / edit all-packages.nix managed by channel?
<mwelt>
to add an additional self written package?
toppler has joined #nixos
<simpson>
Technically, no. There are ways to add packages to your environment without modifying nixpkgs. Here's an example of a package, qbe, that isn't in nixpkgs but that I needed in a development shell: https://gist.github.com/a1984d555c0ccec2e86bb5eb2189eb6d
<mwelt>
simpson: and how do you build / install it? Does this run just with nix-build shell.nix?
selfsymmetric-mu has joined #nixos
br_ has joined #nixos
<simpson>
mwelt: I would incant nix-shell, getting an interactive shell with the environment's packages made available.
<mwelt>
hmm thats not directly what I need. I need this package to be available in my standard nix-env.
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Je8oS
toppler has quit [Ping timeout: 240 seconds]
br_ has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @matthuszagh opened pull request #71153 → perlPackage.RPCEPCService: Init at 0.0.11 → https://git.io/Je8o9
andi- has quit [Remote host closed the connection]
<inkbottle>
So simple, and yet so awesome: you can run a python script, depending on additional packages; the script does produce the expected output; and yet no packages are installed on your computer (none that interfere)
<inkbottle>
I want to execute "nix-env -i hello", but inside a "nix-shell", in order to have an unchanged environment once I exit from "nix-shell".
<cransom>
if that was a question, nix-shell -p hello
Heirlung has joined #nixos
<inkbottle>
cransom: but is it possible to do it in 2 different movements: 1st open the nix-shell; then, do nix-env -i, in the nix-shell?
toppler has joined #nixos
<cransom>
i'm not sure what your goal is to do that in 2 steps
<inkbottle>
so when I encounter commands, on the web, that do not use nix-shell, I can put them in a nix-shell
br_ has joined #nixos
<inkbottle>
nix-env -i hello, is from nix pills; and I'd like to type it exactly like in the manual
andgate has joined #nixos
<andgate>
has anyone gotten a logitech webcam working on 19.03?
dycan has joined #nixos
<inkbottle>
cransom: OK, every time I encounter "nix-env -i" I replace it with "nix-shell -p", and I end up with nested "nix-shell", instead of one environment with everything in it
<inkbottle>
quite easy, thanks
<cransom>
inkbottle: pills are a starting point. nix-env -i is an option, though once comfortable, you'll always use nix-env -iA nixpkgs.hello as it's quicker. but one step beyond that, i rarely also use nix-env to manage packages in my environment. direnv is a great option, and shell.nix with nix-shell to make a custom shell is how i do all my work if i don't have it in systempackages
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
toppler has quit [Ping timeout: 268 seconds]
<dycan>
hi all, can nixos successfully install virtualbox guest addition now? I have virtualisation.virtualbox.guest.enable = true; in configuration. But I still can't copy and past bidirectionally.
wfranzini has quit [Remote host closed the connection]
br_ has quit [Ping timeout: 268 seconds]
wfranzini has joined #nixos
<inkbottle>
cransom: That's what I figured out; however I have to install npm packages like BuckleScript... And I have a very hard time doing that. So I decided that if I read the basics, I might find why installing BuckleScript... in a nix-shell with npm, fails in the first place
fusion809 has quit [Remote host closed the connection]
toppler has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @jerith666 opened pull request #71160 → nox: add missing 'setuptools' to propagatedBuildInputs → https://git.io/Je86q
andgate has quit [Remote host closed the connection]
toppler has joined #nixos
br_ has joined #nixos
wedens has joined #nixos
noogie has joined #nixos
<{^_^}>
[nixpkgs] @marsam opened pull request #71162 → swiProlog: fix build on darwin → https://git.io/Je86s
br_ has quit [Ping timeout: 268 seconds]
wormwood has joined #nixos
<wormwood>
greetings, new to nixos and wanted to know if its better to work with package managers of a specific language or try to use nixpkgs whenever possible?
<jackdk>
I generally try to use nixpkgs wherever I can. There are various foo2nix projects that work to greater/lesser extent.
<wormwood>
jackdk: thanks
toppler has quit [Ping timeout: 268 seconds]
<wormwood>
was trying to avoid mixing and matching methods
<jackdk>
line20 is the error. the inherit is like writing R-with-my-packages = R-with-my-packages; in the set, which is not an argument to the function returned by callCabal2nix. I would manually cabal2nix that package to see what args it's expecting
<Squarism>
jackdk, but line 19 is similar and works as expected?
enemeth79 has joined #nixos
<wedens>
I vaguely remember some tool or probably some hydra page to find which version was in which nixpkgs revision :/
<jackdk>
Squarism: probably because whatever is generated by that callCabal2nix actually expects an argument called servant-client-ghcjs
<Squarism>
right, that seems logical thanks
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
nick_h has joined #nixos
<Squarism>
jackdk, what im after is making the making the R-... stuff available system wide during compilation and also running of my resulting executables
<jophish>
Is there a better way of writing an attrset to a file than "fromJSON '' ${toJSON myattrset} ''
<jackdk>
Squarism: I think what you need to do is override the derivation to add your R stuff to buildInputs, but I think there are colleagues here who might have done something very similar in the recent past
<infinisil>
jophish: Depends on what it represents, what is it and what do you need it for?
<infinisil>
Oh wait
<jophish>
Infinisil, a set of strings a bool values, specifically its config.nix. I'm trying to get home-manager to write it
<jophish>
Their is __tostring
<jophish>
But I'm not interested in writing that myself for such a simple case
<infinisil>
Nix doesn't really work well for serializing itself
br_ has joined #nixos
<jophish>
Yeah, I realise this is a bit of an antipattern :)
<infinisil>
jophish: How about making config.nix a symlink to a file that evaluates the config in home-manager?
Okinan has joined #nixos
<Squarism>
jackdk, please tell me if you see one of them around =D
<{^_^}>
rycee/home-manager#871 (by expipiplus1, 1 day ago, open): An alternative method of reflecting on nixpkgs.config and nixpkgs.overlays
<iqubic>
Well, steam is crashing on me.
<jophish>
But I relying on <home-manager> broke some things :)
<infinisil>
jophish: programs.home-manager.path?
<jophish>
I guess I could bake that in at build time though
<jophish>
Exactly :)
dansho has quit [Ping timeout: 276 seconds]
<jophish>
Thanks!
<infinisil>
Yeah, that seems like a decent solution
<jophish>
I worry it'll be slow though
Neo-- has joined #nixos
<jophish>
Already takes dozens of seconds to home-manager switch
toppler has joined #nixos
<infinisil>
jophish: What would be slow?
<nick_h>
Squarism: I cannot see anything immediately wrong with your R stuff; I'll have a deeper look into it and get back to you after a meeting.
<infinisil>
jophish: Just evaluating programs.home-manager.path should be rather fast
<nick_h>
We had a bit of trouble making the R packages available, but our use case was inside a docker image with nix, so that complicated it.
dansho has joined #nixos
<Squarism>
nick_h, thanks. Appreciate it!
<jophish>
Infinisil, yeah, I should benchmark properly before making claims ;l
toppler has quit [Ping timeout: 265 seconds]
<wedens>
so, I've found ghc864 build on hydra https://hydra.nixos.org/build/103010172#tabs-summary. If I go to inputs tab, there is nixpkgs revision. If I use this nixpkgs revision, I'll get ghc864 from the cache, right?
Havvy has quit [Ping timeout: 268 seconds]
mexisme_ has quit [Ping timeout: 240 seconds]
<jackdk>
there's an easy way to find out - try and build it and if you see stuff configuring it hasn't hit the cache
toppler has joined #nixos
br_ has joined #nixos
<wedens>
I think there was a command to check if substituter will be used
Havvy has joined #nixos
strobelight has joined #nixos
endformationage has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @strager opened pull request #71165 → python38: fix build on macOS → https://git.io/Je86N
<kandinski>
I know this is not a strictly NixOS question, but at the same time I don't know whether permissions for real time execution should be granted to the executable or to the user, and then what's the NixOS way to do it? jackd2 can't run with --realtime switch: "Cannot use real-time scheduling (RR/5)(1: Operation not permitted)"
<pbb>
> [21:55] <talyz> pbb: well, it looks like you're on ee, which is what I'm running too.. I guess it could be something in the state directory leftover from an old release causing this..
<{^_^}>
error: syntax error, unexpected ':', at (string):269:4
<pbb>
Yes I tried resetting the state directory and that fixes it
chr15 has quit [Ping timeout: 240 seconds]
toppler has quit [Ping timeout: 240 seconds]
schjetne has quit [Ping timeout: 240 seconds]
Zer0xp has quit [Ping timeout: 268 seconds]
Zer0xp has joined #nixos
chr15 has joined #nixos
toppler has joined #nixos
strobelight has joined #nixos
rsa has quit [Ping timeout: 265 seconds]
strobelight has quit [Ping timeout: 246 seconds]
schjetne has joined #nixos
toppler has quit [Ping timeout: 245 seconds]
<Izorkin>
How to correct fix this code - NF_TABLES_BRIDGE = if whenBetween "4.19" "5.3" then yes else whenAtLeast "5.3" module;
evils has quit [Remote host closed the connection]
kaba00 has joined #nixos
<kaba00>
Hi, I vaguely remember some site or GitHub repo or something which listed packages not yet available in nixos but in other more mainstream distros. I would like to help package some of them, could someone please help where can I find such a list?
<Zer0xp>
Hey so I updated to 19.09 but while updating, something went wrong I guess cause whenever I restart the system, during the boot, it says that the NTP sync service didn't start
<sphalerite>
Zer0xp: did you read the release notes?
<Zer0xp>
Nope
<sphalerite>
ah damn, the manual doesn't say to do so in the upgrading section…
<sphalerite>
That needs a fix :p anyway, you need to have system.stateVersion set correctly when upgrading
<sphalerite>
So in your case set system.stateVersion = "19.03";
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<evils>
infinisil: that looks about like what i have, except i've got multiple monitors configured, and that doesn't work for some reason, https://pastebin.com/0JCFf8km
<Mic92>
ryantm: can I use your tool just to update a particular package?
orivej has joined #nixos
<infinisil>
evils: You might want to make sure that you're setting valid Option keys with `man xorg`
schjetne has quit [Ping timeout: 250 seconds]
gila has joined #nixos
<evils>
infinisil: this is a translation from the xrandr command i'm currently using
toppler has quit [Ping timeout: 250 seconds]
<infinisil>
evils: Doesn't mean that xorg config file options are named exactly the same
<pbb>
should "nix-build --system i686 -A netboot nixos/release.nix" work?
<pbb>
(it doesn't)
strobelight has joined #nixos
<evils>
FYI, i think i'm getting a kernel panic on shutdown when using boot.kernelPackages = pkgs.linuxPackages_latest; from the unstable channel
toppler has joined #nixos
Animal_Farming has quit [Remote host closed the connection]
schjetne has joined #nixos
<infinisil>
pbb: Well there seems to be `nix-build nixos/release.nix -A netboot.x86_64-linux`
<infinisil>
Maybe you need to add `i686-linux` to the forMatchingSystems call the netboot attribute uses
<infinisil>
So you can -A netboot.i686-linux
<duairc>
I have a bunch of projects that will all use the same shell.nix and default.nix. But if I symlink them, to the same place, they break, because ./. doesn't refer to the current directory, but the directory that the real (non-symlink) default.nix/shell.nix lives in. Do I just need to copy it everywhere? Is there any way I can observe the symlink or current directory?
toppler has quit [Ping timeout: 264 seconds]
veske2 has joined #nixos
<pbb>
hmmm it's compiling some stuff
<pbb>
at least it seems to be cross-compiling
ThatDocsLady_ has quit [Remote host closed the connection]
<{^_^}>
nix#2109 (by Infinisil, 1 year ago, open): imports don't resolve symlinks absolutely, leading to unexpected behaviour
toppler has joined #nixos
is_null has joined #nixos
kaba00 has quit [Ping timeout: 240 seconds]
kaba00 has joined #nixos
<tetdim>
Ericson2314, around?
drakonis_ has joined #nixos
domogled has joined #nixos
ng0 has quit [Quit: Alexa, when is the end of world?]
Jackneill has quit [Ping timeout: 265 seconds]
toppler has quit [Ping timeout: 250 seconds]
drakonis has quit [Ping timeout: 268 seconds]
<duairc>
infinisil: Ah, not exactly, but something like that. Anyway I figured out I can use builtins.getEnv "PWD" to disambiguate which project to build
bahamas has joined #nixos
<duairc>
Hmmm, that will work for nix-shell but maybe not for nix-build which clears environment variables
<bahamas>
how do you folks handle .env files? do you write them to /run/foo or something?
dycan has joined #nixos
toppler has joined #nixos
<bahamas>
I'm asking because I'm assuming that I can't write a file to my package in the store or can I?
<infinisil>
duairc: You could define the files as `import ../default.nix`
<infinisil>
So it's like a symlink in a way, but on the nix level
<ggp0647>
uit
Jackneill has joined #nixos
toppler has quit [Ping timeout: 265 seconds]
<duairc>
infinisil: Yeah, something like that probably seems to be the best bet.
<bahamas>
wedens: does that mean that attribute values should have one of str, path, package or the set should be empty?
drakonis_ has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
<bahamas>
btw, I think the error message could be better, like saying what the actual type is: "error: The option value `systemd.services.mowitigis.environment' in `/MowitiGIS/service.nix' is not of type `attribute set of null or string or path or packages'."
veske2 has quit [Quit: This computer has gone to sleep]
<{^_^}>
[nixpkgs] @flokli pushed 3 commits to release-19.09: https://git.io/Je89w
<jophish>
Why don't we run *everything* in locked down containers? Isn't it banannas that I run heaps of (mostly unverified) code with permissions to access everything my user can access?
Jackneill has joined #nixos
toppler has quit [Ping timeout: 268 seconds]
<jophish>
It would be great if it were trivial to spin up a little container every time I wanted to run vim, with just access to vim's store paths and the project/file I'm editing
<jophish>
and run my web browser where it can't store any files visible to any other application
<wedens>
you might be interested in qubeos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jophish>
this seems like something nix is well positioned to do
<jophish>
or at least better positioned
<jophish>
thanks wedens, I'll check it out!
<clever>
jophish: thats basically what android does
<jophish>
clever: exactly!
<clever>
old android did it purely with unix permissions
<clever>
each app in its own uid
<clever>
modern android uses containers and namespacing
<clever>
which means my `top` like app no loner works, it cant see other processes!
<wedens>
firejail and bubblewrap provide some sandboxing
<qyliss>
jophish: there is, although i haven't written it up for the website yet for fear of committing
<qyliss>
but my funding lasts a year, and a release is expected in that time
ddellacosta has joined #nixos
leotaku has joined #nixos
<HappyEnt[m]>
Anybody here using cura from latest unstable channel? I can't get slicing to work with the new update, it always fails because the cura frontend is missing an option from the backend.
drakonis_ has joined #nixos
<Ericson2314>
tetdim: hi
<Ericson2314>
free for the next 30 minutes
inkbottle has quit [Ping timeout: 268 seconds]
toppler has joined #nixos
inkbottle has joined #nixos
is_null has quit [Ping timeout: 252 seconds]
gxt has joined #nixos
drakonis has quit [Ping timeout: 276 seconds]
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Makaveli7 has quit [Quit: WeeChat 2.6]
bahamas has quit [Quit: leaving]
<evils>
HappyEnt[m]: seems to be working here, though i'm slicing something rather big, i'll let you know if it fails to finish
drakonis_ has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
gila has joined #nixos
sellout-1 has joined #nixos
<HappyEnt[m]>
@evils alright thank you :)
<evils>
HappyEnt[m]: how did your failure present itself?
toppler has quit [Ping timeout: 250 seconds]
is_null has joined #nixos
knupfer has joined #nixos
drakonis_ has quit [Read error: Connection reset by peer]
sellout- has quit [Ping timeout: 240 seconds]
oscarvarto has joined #nixos
drakonis_ has joined #nixos
Ariakenom has joined #nixos
oscarvarto has quit [Client Quit]
drakonis_ has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
rtjure_ has joined #nixos
<HappyEnt[m]>
evils: slicing fails and CuraEngine logs that it can't find a value for the key 'machine_heated_build_volume'
justanotheruser has quit [Ping timeout: 240 seconds]
is_null has quit [Read error: Connection reset by peer]
toppler has joined #nixos
<evils>
just tried something smaller, it gets stuck at 1/4 of the progress bar as well
<evils>
HappyEnt[m]: i'm seeing that error well, eventually getting `CuraEngineBackend.CuraEngineBackend._onBackendQuit [806]: Backend quit with return code 2. Resetting process and socket.`
<evils>
HappyEnt[m]: no error from the GUI though
<Ariakenom>
I tried activating the weechat service in configuration.nix but I get Access to session denied when running screen -x weechat/weechat-screen
<Ariakenom>
please advice
<HappyEnt[m]>
evils: Yes, sorry about that, the slicing progress bar just gets stuck for me on the frontend side aswell
<HappyEnt[m]>
evils: so do you get the missing machine_heated_build_volume error aswell?
asymptotically has joined #nixos
<evils>
HappyEnt[m]: jup
<HappyEnt[m]>
evils: Okay, I will open an Issue than :) I have no idea what the problem could be. From looking at the Cura frontend source, the option should be all there. Also nobody upstream seems to have that problem
<{^_^}>
[nixpkgs] @c0bw3b merged pull request #70775 → Fix typos in the Nixpkgs Manual. → https://git.io/JeWl1
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @PyroLagus to master « Fix typos in the Nixpkgs Manual. (#70775) »: https://git.io/Je8Ho
<nakkle>
Hi! I'm trying to set up a remote builder for a hydra server, but it doesn't work. hydra-queue-runner puts out these messages: "possibly transient failure building ‘/nix/store/pcr3nyhv3265ilgv7m9vnwqy6dvgciv8-RPi.GPIO-0.6.5.tar.gz.drv’ on ‘user@build-slave’: unexpected end-of-file". Does anyone know what's the problem here?
<clever>
nakkle: are you reading the jorunal for hydra-queue-runner?
<nakkle>
clever: yes, that's where I found the messages
<clever>
nakkle: any other errors nearby?
toppler has joined #nixos
<nakkle>
clever: no, only log messages telling me it's disabling the machine for some time, and when it will retry the job
<clever>
nakkle: what happens if you manually run `ssh user@build-slave nix-store --version` ?
<nakkle>
clever: "nix-store (Nix) 2.3"
<clever>
then its not PATH issues
<aanderse>
maybe i'm having a bad grep-fu day... but can anyone tell me where in nixos /etc/security/access.conf is generated? :\
<niksnut>
afaik we don't have that file in NixOS
schjetne has quit [Ping timeout: 246 seconds]
<gchristensen>
$ file /etc/security
<gchristensen>
/etc/security: cannot open `/etc/security' (No such file or directory)
<aanderse>
oh... ignore me then. nevermind.
ixxie has quit [Ping timeout: 265 seconds]
<aanderse>
so at some point in the long distant past i'm guessing i made that directory to play around with some ldap stuff
<aanderse>
and nixos didn't make it
<aanderse>
thanks
<aanderse>
>_<
<gchristensen>
<3 erasing / on every boot, for these very reasons :)
<nakkle>
clever: oh, interesting, when I manually try to build that remotely, I get the same error. So it's not about hydra, but about that derivation I guess
ixxie has joined #nixos
<aanderse>
gchristensen: mhm mm
<aanderse>
** mhm mhm
toppler has quit [Ping timeout: 265 seconds]
<nakkle>
clever: ooooh "error: you are not privileged to build derivations", gotta add `user@build-slave` to the trusted users, I guess
<clever>
nakkle: by default, all users can build things
<exarkun>
Anyone know about keybase's fuse stuff on nixos? keybase-gui wants kbfsfuse but I don't see that w/ nix search and it doesn't seem to be part of keybase or keybase-gui packages
<nakkle>
clever: according to https://github.com/NixOS/hydra/issues/584 I need to execute it as a trusted user, as far as I understand it, because "building a derivation" is different from "building something else", but I haven't learned yet what exactly the difference is
<{^_^}>
hydra#584 (by clojurians-org, 1 year ago, open): you are not privileged to build derivations
gentauro has quit [Read error: Connection reset by peer]
toppler has joined #nixos
<tetdim>
Ericson2314, sorry in a meeting
gentauro has joined #nixos
<tetdim>
still around? :D
<clever>
nakkle: remote builders typically also need hydra to push inputs the remote end lacks, and pushing those inputs needs trust or signing
<clever>
gchristensen: nice, can clearly see how long it took to build, shutdown, and boot up again
<nakkle>
clever: yeah, makes sense. so, what I learned: remote building users need to be trusted. Nice :D
is_null has joined #nixos
<clever>
nakkle: if things are signed by a key the remote end trusts, then you dont need to be a trusted user, but signing can be more tricky to configure
<iqubic>
I use startx and not any sort of display manager like lightDM.
<iqubic>
I'm running NixOS here.
toppler has joined #nixos
<duairc>
I want to use the output of a nix expression in a shell script. I have a nix eval command that does what I want, it produces a bunch of paths. However, when I run nix eval with --json, it converts all the paths to /nix/store paths, which is not what I want. Is there anyway to get nix-eval --json to not turn them into /nix/store paths?
<ajs124>
clever: I think your qemu-user(-arm) stuff doesn't build on 19.09, because glib doesn't compile. Did you also run into that?
knupfer has quit [Quit: knupfer]
<AmandaC>
ajs124: change `--default-library both` to `-Ddefault_library=both` and it'll work
<clever>
2019-10-11 20:36:37 <@clever_> 2019-10-11 20:35:15 < AmandaC> clever: ... I may have stumbled upon how to make your qemu stuff work again. I did the wrong flag when I did the `-D...` change -- it wants `-Ddefault_library` instead of `-Ddefault-library` -- it seems to
<AmandaC>
As a band-aid anyway, clever is working on a proper fix. AIUI
toppler has joined #nixos
is_null has quit [Ping timeout: 265 seconds]
<ajs124>
Will try. Thanks AmandaC, clever.
<AmandaC>
Note the underscore, that was what had me confused at first
is_null has joined #nixos
risson has quit [Remote host closed the connection]
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<Squarism>
does nix, when running provide a "clean" environment? I mean if I have global install of something, will it use that during build/execution - even if not specified in the "nix-scripts"
zupo_ has joined #nixos
erasmas has joined #nixos
zupo has quit [Ping timeout: 268 seconds]
<jophish>
Squarism: nix-build should not use external dependencies
<jophish>
if you want that behaviour with nix-shell you can pass --pure
<{^_^}>
[nixpkgs] @flokli merged pull request #71186 → strongswan: fix build with enableNetworkManager set to true → https://git.io/Je8QT
<wucke13>
iqubic: Because gnome is not one package. It is a desktop environment. Actually, there is a collection of packages, being called gnome3. Checkout whats inside of it: `nix search gnome3.`
<wucke13>
Oh, well I did that with kde, and it worked. I would be supprised if it doesn't work with gnome.
<wucke13>
The exportConfiguration thing is important, otherwise no input devices work and one is trapped in a completely useless Xorg :D
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever>
wucke13: usually, xorg will suicide if it cant find any input devices
<wucke13>
Well, give it a shot without exportConfiguration = true;
toppler has joined #nixos
<clever>
wucke13: then it will just hard fail, rather then leaving you in a trap
<iqubic>
clever: perhaps you can help me.
is_null has quit [Ping timeout: 240 seconds]
<iqubic>
See, I don't use a Display Manager or anything like it. I just use startx and my .xinitrc.
<clever>
iqubic: try what wucke13 gave you first
Zer0xp has quit [Ping timeout: 240 seconds]
<wucke13>
clever: I most go AFK for an hour or so, but I will investigate and notify you
dsx has joined #nixos
Zer0xp has joined #nixos
<iqubic>
I want to be in a state where I can change the last line of my .xinitrc from `exec xmonad` to `exec gnome` and have that launch GNOME3 for me.
lukash_ is now known as lukash_|away
Soo_Slow has joined #nixos
<clever>
iqubic: you mus still set services.xserver.desktopManager.gnome3.enable=true; to install all of gnome3
<iqubic>
Is that all I need to do?
zupo has joined #nixos
<clever>
iqubic: try it!
<iqubic>
I thought I also needed to set `services.xserver.autorun = false; services.xserver.exportConfiguration = true;`
Zer0xp_ has quit [Ping timeout: 250 seconds]
toppler has quit [Ping timeout: 265 seconds]
justanotheruser has joined #nixos
<clever>
iqubic: things tend to break if you dont enable xserver, but do enable a desktop manager
* emily
sighs
is_null has joined #nixos
<emily>
iqubic: you would get your problems solved a lot faster if you (a) actually tried the things people suggested before asking more questions, and (b) actually tried searching the manuals and option help before asking
Zer0xp has quit [Ping timeout: 265 seconds]
wfranzini has quit [Remote host closed the connection]
Zer0xp has joined #nixos
sigmundv has quit [Ping timeout: 246 seconds]
kleisli has quit [Remote host closed the connection]
<niso>
just by chance: did anyone manage to setup Qt+cmake+android ?
kleisli has joined #nixos
Zer0xp_ has joined #nixos
toppler has joined #nixos
is_null has quit [Ping timeout: 240 seconds]
Zer0xp_ has quit [Ping timeout: 265 seconds]
justanotheruser has quit [Ping timeout: 276 seconds]
byrn has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Squarism>
jophish, Sorry for my lack of nix-knowhow, but in the example you sent - you dont send in any extra packages other than the overriden haskellPackages? If you wanted those would go : extraEnvPackages = with haskellPackages; [ <HERE> ]; ?
<Squarism>
Also, can you pass environment (as in non haskell packages) to both build and executable this way?
schjetne has joined #nixos
is_null has quit [Ping timeout: 240 seconds]
toppler has quit [Ping timeout: 240 seconds]
Ariakenom has quit [Quit: WeeChat 2.6]
Zer0xp has joined #nixos
<kaliumxyz>
why does virtualbox always need to be recompiled?
<iqubic>
But why don't I have gnome-session installed already?
<wucke13>
clever: this https://pastebin.com/kKhJ3Akh starts a session for me, in which the xserver does not suicide itself, yet I canot use any input device.
<wucke13>
iqubic: Yes, but's not in your user path, so it is not available.
<wucke13>
iqubic: This works for me:
gxt has joined #nixos
<iqubic>
I'm running "which gnome-session" as root.
<qyliss>
Because whoever wrote the module thought you wouldn't want to run it manually
toppler has joined #nixos
<iqubic>
And I do.
<wucke13>
iqubic: Please inform yourself on the distro you use. Seriously, one of the fundamental design aproaches of NixOS ist the reason for that
<qyliss>
You're welcome to open a pull request to change it, then.
rossabaker has joined #nixos
jgeerds has joined #nixos
<wucke13>
The idea is to seperate everthing from each other, and use the PATH to make evreything just see what it should see. Installing a module will not necessarly change what is in your users PATH, as qyliss pointed out.
<simpson>
iqubic: FWIW, when I've written modules in the past, I've been asked to *not* introduce extra stuff into global environments if it's not strictly necessary.
<clever>
iqubic: this shows the flow from one program to another, when things are configured normally
<wucke13>
btw, clever, would please confirm wether you can use any inputs in x started by `startx` with my paste, when `exportConfiguration = false`?
<clever>
Option "AllowMouseOpenFail" "boolean"
<clever>
This tells the mousedrv(4) and vmmouse(4) drivers to not report failure if the mouse device can't be opened/initialised. It has no effect on the evdev(4) or other drivers. Default: false.
<clever>
wucke13: i think this is the main option that would prevent such failures
<wucke13>
Well, it's not a problem, as exportConfiguration = true; solves the issue. But thank you for educating me on why things happen. I often have a hard time tracking down the cause of those things :D
jgeerds has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @c0bw3b pushed 2 commits to release-19.09: https://git.io/Je8NE
<clever>
wucke13: unlike iqubic, i devour man pages for breakfast, and even a decade later, little options i never use (like AllowMouseOpenFail), stick around, lol
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
toppler has quit [Ping timeout: 264 seconds]
<clever>
Option "DontZap" "boolean"
<clever>
This disallows the use of the Ctrl+Alt+Keypad-Plus and Ctrl+Alt+Keypad-Minus sequences. These sequences allows you to switch between video modes. When this option is enabled, those key
<clever>
sequences have no special meaning and are passed to clients. Default: off.
<clever>
wucke13: nixos has an option to toggle this, but hard-codes AllowMouseOpenFail to on
<wucke13>
Sort of not so nice?
<AmandaC>
I kinda envy people who can read large blocks of text like man pages / most documentation. My brain simply doesn't have the RAM to process that kind of text
<wucke13>
iqubic: have you got it to work with my paste?
<clever>
wucke13: yeah, it would be nice to be able to toggle those options
<wucke13>
AmandaC: same. Skimming FTW
<{^_^}>
[nixpkgs] @c0bw3b pushed 2 commits to release-19.09: https://git.io/Je8Nz
<clever>
AmandaC: what confused me though, is the nix man pages, it looks like several man pages just got mushed together, and so i skim the first page for cmd line args
<qyliss>
man pages in most cases aren't meant to be read all at once, I think
<clever>
AmandaC: and i dont expect cmdline args on the 10th and 15th pages
<wucke13>
But it's a total waste of time to tweak the XServer, as wayland is the future and will soon replace X \s
<clever>
wucke13: ..... i memorized the xorg.conf options, before wayland was even an idea, lol
<clever>
back when xinerama was still new and not the default!
<wucke13>
That's not fair, back then I wasn't even invested in linux
<AmandaC>
is xinerama even the default anywhere? ISTR it was so different from what came before it it kinda got shoved into the "niche box" and never escaped?
<clever>
AmandaC: xinerama is what lets you drag a window between 2 different monitors
<tokudan>
i'm trying to figure out why my laptop takes more than a minute to boot with 19.09. it appears that it's my encrypted swap: mkswap-dev-disk-byx2did-nvmex2dSamsung_SSD_970_EVO_2TB_S464NB0M401994Dx2dpart2.service (1min 528ms) which is setup like this: { device = "/dev/disk/by-id/nvme-Samsung_SSD_970_EVO_2TB_S464NB0M401994D-part2"; randomEncryption.enable = true; randomEncryption.source = "/dev/random"; }. it worked fine and fast in 19.03 and the nixos
<tokudan>
module hasn't changed since 2017. any idea what could be causing this issue?
<AmandaC>
ah, I thought it took over the power of whatever xrandr talks to
<clever>
AmandaC: there are 2 parts to xinerama
<AmandaC>
or was xrandr just patched to speak xinerama as well?
<clever>
AmandaC: first, xorg treats all monitors as a single x11 display (just :0.0, no :0.1)
<clever>
AmandaC: second, an application must use xinerama api's, to learn where the monitors are within :0.0
<samueldr>
tokudan: wild guess, /dev/random blocking due to lack of entropy&
<clever>
AmandaC: a window manager typically needs xinerama, to maximize to a single window
<tokudan>
samueldr, i thought about that, but that wasn't an issue on 19.03
<clever>
AmandaC: i heavily suspect chromium is built without xinerama, because it cant share 1 monitor, it likely doesnt know where a monitor starts&ends
<samueldr>
things did change between 19.09 and 19.03, even if the default kernel didn't; maybe something exhausts the pool or fills it at a different time?
toppler has joined #nixos
<AmandaC>
clever: I just recall in the mid '00s xinerama was a contentious option for some things, back when I was starting out with linux VMs on my win XP boxen as a youngling
literon has joined #nixos
<wucke13>
tokudan: Try enabling haveged
<samueldr>
I would at least try /dev/urandom to see, tokudan,
<clever>
AmandaC: with xinerama off, you have :0.0, :0.1, :0.2 and so on
byrn has quit [Quit: WeeChat 2.6]
<wucke13>
That can help troubleshooting the entropy issue
<clever>
AmandaC: and you must mess with $DISPLAY to change which window an app opens on
gxt has quit [Ping timeout: 260 seconds]
<tokudan>
true... i'll see what the result is
<clever>
AmandaC: you have no way to move a window between monitors, and little way to run an app on 2 monitors at once!
<literon>
Hi guys! Question - can I filter the deep directory content with builtins.path?
<clever>
literon: use builtins.filterSource instead
<AmandaC>
That reminds me, I wonder if X11's advanced enough to support USB displays yet, I remember that was a nightmare on fedora, I'd plug it in and the fscking thing would launch another login session on it!
<{^_^}>
#71181 (by robinp, 5 hours ago, open): Puppeteer headless test have slightly different result depending on how nixos kvm test is triggered.
<clever>
Option "AutoAddGPU" "boolean"
<clever>
If this option is disabled, then no GPU devices will be added from the udev backend. Enabled by default. (May need to be disabled to setup Xinerama).
<clever>
AmandaC: ^^^
<literon>
And unfortunately I want to apply in my root dir, which differs on CI where it is from a git checkout.
<samueldr>
AmandaC: I assume not eDP over type-c connector, but usb like displaylink; if so it's still very YMMV
<AmandaC>
heh
<samueldr>
but eDP over type-c in my experience generally works
<AmandaC>
displaylink! That's what it was called
<literon>
^_^: heh, that was me :/
<clever>
literon: a: move that directory to a subdir of your repo, so the name is stable
<clever>
literon: b: change ci to use a predictable name
<samueldr>
there's *at least* another display over usb protocol thing that is not displaylink that also is extremely YMMV
<AmandaC>
I've got a displaylink device I got ages ago, barely supports USB2 IIRC
<samueldr>
the one I have that's not displaylink (though was advertised as displaylink) doesn't have an internal framebuffer; the computer **must** shoot a full framebuffer to it every refresh or else it blacks out :/
<clever>
literon: c: builtins.path accepts a filter= argument!
<tokudan>
samueldr, you were right, it's apparently blocking on entropy. urandom is booting instantly
<AmandaC>
samueldr: jeez. I futzed around with the libdisplaylink library at some point with it, but it's just been collecting dust for a couple years now, unused because I've not tested it again yet.
<Squarism>
How does one append to PATH?
<{^_^}>
[nixpkgs] @lavoiesl opened pull request #71200 → Add support for libgda on darwin → https://git.io/Je8NX
<AmandaC>
clever of the lake, any ideas on what I can poke to see if I can get X11 to notice when I detach a HDMI <-> DVI adapter? :P Seems to be sporradic on if it'll get noticed.
<clever>
AmandaC: for my amd gpu, simply unplugging a monitor from the card causes the entire machine to crash, hard
<AmandaC>
oh dear
<clever>
yeah
<wucke13>
tokudan: Maybe there is a kernel module, which lets you fill up the entropy fast from the TPM?
<simpson>
clever: But you *were* notified~
literon has quit [Ping timeout: 260 seconds]
toppler has quit [Ping timeout: 240 seconds]
<wucke13>
clever: What card do you got in there? Like for my RX580, everything works fine
<{^_^}>
[nixpkgs] @c0bw3b pushed 2 commits to release-19.03: https://git.io/Je8N9
<simpson>
AmandaC: Does it vary by adapter? Usually it's a feature of the GPU, for HDMI.
<AmandaC>
clever: simpson: I was mostly being fastecious, but I suspect it's a regression in the intel drivers, since it used to work / worked better under Pop!_OS before I switched to NixOS again
<tokudan>
wucke13, maybe... on the other hand the swap is not critical for boot. even during normal use I don't expect to use it. so i might just change the implementation to move it out of the critical path. going to think about that a bit
<tokudan>
wucke13, anyway the kernel should be able to source random numbers from the cpu if required. that apparently hasn't happened fast enough
<simpson>
AmandaC: Could be. Intel drivers have a nasty habit of regressing from release to release, too, so that it could be an *extremely* specific version that does/doesn't work.
<clever>
simpson: when i first switched to nixos, the amd drivers had horid performance
<clever>
simpson: there was a module in xorg, that had since be merged into another
<clever>
simpson: but the xorg stuff in nixos, just blindly grabs every tar, and uses them all!
<clever>
so a deprecated fork of that module was still in use
<wucke13>
tokudan: Yes, but /dev/random only serves good quality entropy. I guess a pseudo rng on the cpu doesn't count
anderslundstedt has joined #nixos
<clever>
which resulted in 2d performance being horid, if 3d accel was enabled
kleisli has quit [Ping timeout: 246 seconds]
qubasa has quit [Read error: Connection reset by peer]
<simpson>
clever: Yep, that'll happen. I remember a decade ago with the Radeon drivers having the same sort of situation.
<tokudan>
wucke13, yes, which is the point of the rng in the kernel. it uses multiple sources to combine them so a single compromised/faulty source does not cause issues
<{^_^}>
[nixpkgs] @liff closed pull request #71112 → pythonPackages.ansible: add support for hcloud → https://git.io/Je8C1
<tokudan>
wucke13, and the pseudo rng in the cpu isn't pseudo - at least that's what intel claims
qubasa has joined #nixos
<wucke13>
I gone let this chance to yell at intel for security pass away.
toppler has joined #nixos
<wucke13>
tokudan: I get around 1.6MiB/s from /dev/random, and about 170Mib/s from /dev/urandom. How about your device?
<tetdim>
Ericson2314, hello we're debugging youre just in time
<Ericson2314>
debugging issue at run time not build time?
<tokudan>
wucke13, cryptsetup still only takes a couple bytes of randomness
m15k has quit [Ping timeout: 260 seconds]
<tetdim>
Ericson2314, my port now builds fully, sans tests, installs stuff, runs the shell and now im just trying to get nix-env and nix-chaannel working
<wucke13>
But it may be not the only thing fighting for that random bytes. I remember softly that there was an issue with either systemd or some display manager using a lot of entropy, which potentially slowed the system boot time by minutes
mexisme_ has quit [Read error: Connection reset by peer]
mexisme_ has joined #nixos
dbmikus__ has joined #nixos
isHavvyGhosting has quit [Ping timeout: 250 seconds]
selfsymmetric-pa has quit [Ping timeout: 240 seconds]
lunik1 has quit [Ping timeout: 240 seconds]
Havvy has joined #nixos
fendor_ has joined #nixos
fendor_ has quit [Remote host closed the connection]
lunik1 has joined #nixos
fendor_ has joined #nixos
<clever>
tokudan: is this on baremetal or a vm?
Zer0xp has joined #nixos
<tokudan>
clever, baremetal, it's my laptop
romildo has joined #nixos
literon has quit [Remote host closed the connection]
<Interstitial>
Anyone else having problems with qscintilla? Packaged marked as broken, and when I specify that it's alright to build broken packages, everything else breaks
klntsky has quit [Remote host closed the connection]
klntsky has joined #nixos
<lassulus>
whoah I'm completly flashed by the Evaluator Performance Report
<lassulus>
gchristensen++
<{^_^}>
gchristensen's karma got increased to 161
lunik1 has joined #nixos
byrn has joined #nixos
<clever>
,stateVersion
<{^_^}>
Setting stateVersion to the latest release doesn't upgrade anything and can only break your setup at best. To actually upgrade NixOS see https://nixos.org/nixos/manual/#sec-upgrading. If you want to update the stateVersion option regardless, Ctrl-F for "stateVersion" in https://nixos.org/nixos/manual/release-notes.html to see things that need to be manually migrated with the new value.
<clever>
rossabaker: nixos pam doesnt support @include, only debian based pam does
<clever>
rossabaker: so all pam based programs in nixpkgs will fail
<clever>
rossabaker: blame debian for running a fork of pam that isnt compatible
<gchristensen>
lassulus: :)
<rossabaker>
clever: Got it. I found the @include lines in Debian's /etc/pam.d/login and tried getting rid of them, but got the same error. I can't figure out how nix's i3lock's PAM is seeing them.
<clever>
rossabaker: it reads everything in /etc/pam.d
<rossabaker>
clever: Okay. Sounds like my choices are NixOS (which I'd love, but is unsupported by an agent I'll need), rewrite Debian's PAM configs, or use Debian's lock package.
<clever>
rossabaker: or patch nixpkgs, to obey the debian pam configs
<rossabaker>
I'd have to learn a lot more than I already know about PAM, but that would be the best of all if I can find time.
gila has joined #nixos
<rossabaker>
This is the first rough edge I've hit on $OTHER_DISTRO + nix.
<clever>
rossabaker: pam stuff usually also needs to be setuid root, most of the time, and nix cant easily do that on its own
<scoates>
FRidh: in case it's helpful: I ran into https://github.com/NixOS/nixpkgs/issues/71178 on my own (I found the bug after finding the problem), so it's affecting regular people, I think.
<{^_^}>
#71178 (by mawis, 8 hours ago, open): Difficulty using pip in a venv
<scoates>
s/bug/issue/
tertl3_ has joined #nixos
knupfer has joined #nixos
Soo_Slow has quit [Remote host closed the connection]
<mgdm>
Hello. I'm having a bit of trouble packaging a cmake-based build. It builds fine but then keeps trying to write into the store, and I don't know cmake well enough to know how to get around that. Anyone have any pointers? Derivation and build output are at https://gist.github.com/mgdm/fe418c773c16ee7bdc40b4059278845e
<gchristensen>
mgdm: off the bat, I wonder if you could use cmakeFlags = [ "-DCMAKE_INSTALL_PREFIX=$out" ]; instead of the export
<mgdm>
ta, trying
<mgdm>
does the way I'm building it (in build-procedure.sh on that gist) look right btw?
alex``` has quit [Remote host closed the connection]
toppler has joined #nixos
<gchristensen>
ehhh what happens if you nix-build it? I'm not sure how $out should work with nix-shell
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #71208 → networkmanager: use modify_system=true → https://git.io/Je8jU
alex```82 has joined #nixos
<wormwood>
Greetings all, I installed virtualbox and added the recommended lines here: https://nixos.wiki/wiki/Virtualbox to configuration.nix and rebooted. However, when I run VirtualBox it says it can't find the kernel drivers. When I run it as root, it works, so it seems like a permissions issue
<wormwood>
Anyone have a similar issue? Is vboxusers still the correct group?
<wormwood>
clever: I know this is hard to tell (command history was wiped), but this happened because I accidentally installed with the sudo command prefix?
<clever>
wormwood: it looks more like you just installed it with nix-env, without sudo
toppler has quit [Ping timeout: 276 seconds]
selfsymmetric-mu has quit [Remote host closed the connection]
toppler has joined #nixos
<duairc>
If I'm making a nix derivation for a library, some of the calls of which are implemented by calling an executable, is the correct thing to do to add that executable to buildInputs and patch the source of the library so that it calls the absolute /nix/store path of the executable in question?
chr15 has quit [Quit: WeeChat 2.4]
Zer0xp_ has quit [Quit: Bye!]
<clever>
duairc: that would be the best option i find
<clever>
duairc: most of the wrapProgram based things are problematic, because you have to force any program linking into your lib, to wrapProgram properly
<lunik1>
I am trying to switch to the latest kernel on nixos. I have set boot.kernelPackages = pkgs.linux_latest in my configuration.nix but I get "error: attribute 'extend' missing".
<ajs124>
lunik1: use linuxPackages_latest
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]