<azazel>
ah, so, what's the final entry you have used?
<azazel>
i.e. what's the text of the entry you have tested?
<clever>
of note, you can just tab-complete the kernel and initrd commands in the grub shell
ryantrinkle has joined #nixos
<clever>
and it will complete as you would expect tab-completion to work
trh_ has joined #nixos
<clever>
and once you find commands that work, paste those into the nixos config
<aswanson>
anyone running multimonitor setups? From what I can tell in `man configuration.nix` I should be able to just put in the two monitor outputs ordered left to right in `services.xserver.xrandrHeads` but the monitors are still in the wrong order
<clever>
aswanson: i just didnt configure the monitors in configuration.nix
<clever>
aswanson: at bootup, the login screen is somewhat mirrored, then when i do login, xfce takes over and fixes the config
<clever>
aswanson: and then i just configure it in xfce, plain drag&drop of the monitors to lay them out right
stepcut has quit [Remote host closed the connection]
<alexozer>
do you think we'll ever be able to install a debian package for example into some container and bundle it as a nixos package
<alexozer>
like for compatibility
<alexozer>
that was a huge bottleneck when I wanted to use NixOS in a situation where most needs were covered by existing packaging but packaging all the rest was taking a while
<clever>
alexozer: thats basically what steam does
drakonis has joined #nixos
<clever>
(the nixpkgs steam package)
<simpson>
alexozer: Hopefully that would only be a temporary solution for anything in Debian's free repository. Which packages did you have in mind?
<sheeldotme>
I think clang 8 is missing a dependency for darwin: apple-lib-xpc. Is there a way for me to manually edit the derivation on my local machine to see if it resolves the issue?
<jackdk>
I particularly like the use of #!/usr/bin/make -f in debian/rules. That's a cute trick.
cyphase has quit [Ping timeout: 244 seconds]
palo has quit [Ping timeout: 250 seconds]
palo1 is now known as palo
grumble has joined #nixos
<teto>
ee1943: like cmakeFlags ?
<ee1943>
I've narrowed down my question. I would just like to override the unpackPhase for clang_8, to keep it from pulling down the clang-extra-tools and breaking my build
<ee1943>
teto: ^
<{^_^}>
[nixpkgs] @lilyball opened pull request #59252 → init: cocoapods-beta at 1.7.0.beta.3 → https://git.io/fjqf0
<teto>
ee1943: you can set unpackPhase=":"
<teto>
or not running it if you are in a nix-shell
<{^_^}>
[nixpkgs] @worldofpeace pushed 5 commits to master: https://git.io/fjqfu
alex_giusi_tiri has left #nixos [#nixos]
<ee1943>
teto: Could you please provide an example? I'm quite new to the whole nix ecosystem. My derivation.nix looks like: https://pastebin.com/raw/LDB5vfVL
<teto>
ee1943: maybe you could use clangStdenv.mkDerivation instead. What's docgen homepage ?
<ee1943>
teto: it's a project of my own, not hosted publicly anywhere yet :)
<ee1943>
Have you got a link you can point me to with an example of its use? I don't want to bother the chat too much
<teto>
ee1943: it can be hardcore at the beginning but a good way is to just grep a clone of nixpkgs
<ee1943>
Also, clang is a runtime dependency, not a buildtime dependency, so I'm not sure if modifying the stdenv is the right thing to do
<ee1943>
Yeah I thought about doing that but it would make sharing the config between machines cumbersome, each would need the custom nixpkgs or a patch
<teto>
I meant to look for examples
<teto>
do you need it for libclang ?
lovesegfault has quit [Ping timeout: 259 seconds]
<ee1943>
Yes, it depends on libtooling (similar to libclang)
slack1256 has joined #nixos
<teto>
ee1943: maybe you could just save the path ${llvmPackages.clang.cc.lib} instead of adding it to buildInputs, see clang_complete
lovesegfault has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #59253 → Get Android cross working again → https://git.io/fjqfV
<{^_^}>
[nixpkgs] @worldofpeace pushed 5 commits to release-19.03: https://git.io/fjqfr
<ee1943>
teto: mmm not sure if that's going to work, I need more than just libclang.dylib/so. Eg. libclangAST, libclangTooling, etc
jackdk has quit [Ping timeout: 268 seconds]
cyphase has joined #nixos
<teto>
ee1943: I remember dealing with libclang was kind of tricky at some point so I am afraid I won't be of much help. Why pulling clang-extra-tools breaks the build in the first place ?
<andi->
MiloIgnis[m]: I got rid of the font issue by sanboxing firefox further.. It probably can't read the systems font configuration anymore and now falls back to a proper font for the menu :/
<{^_^}>
#59241 (by sheeldotme, 4 hours ago, open): Clang 8 fails to build on MacOS Mojave
trh_ has quit [Quit: Lost terminal]
<ee1943>
teto: yep, that's exactly what I'm experiencing. I had looked for related issues earlier but didn't find anything. Thanks for the link, I'll comment on it.
cdepillabout has joined #nixos
kyren has quit [Remote host closed the connection]
linarcx has quit [Ping timeout: 246 seconds]
<cdepillabout>
I'm seeing `nix-build` fail to build our local project at work when it can't reach one of the substituters (our company-wide nix cache is down right now). Is there a way to tell `nix-build` to ignore the substituters and just build locally?
Anton-Latukha has joined #nixos
linarcx has joined #nixos
<srhb>
cdepillabout: --fallback
kyren has joined #nixos
<cdepillabout>
@srhb, Thanks!
goibhniu1 has joined #nixos
cdepillabout has quit [Quit: Leaving]
crmlt has joined #nixos
Tucky has joined #nixos
logzet has joined #nixos
slack1256 has quit [Remote host closed the connection]
kreetx has joined #nixos
shibboleth has joined #nixos
dnlkrgr has joined #nixos
sam_ has quit [Remote host closed the connection]
myme has joined #nixos
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #59255 → python3Packages.WazeRouteCalculator: 0.7.2 -> 0.9.0 and pyupdate: 1.3.5 -> 1.3.6 → https://git.io/fjqJ7
<jluttine>
i have shell.nix for my python package so that it resembles "pip install -e". however, the executables of the propagatedBuildInputs aren't in PATH.. why not? am i doing something wrong? how to fix?
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #59256 → quaternion-git: init at 0.0.9.4-rc2 → https://git.io/fjqJd
kyren has quit [Remote host closed the connection]
crmlt has quit [Ping timeout: 246 seconds]
ee1943 has quit [Client Quit]
ee1943 has joined #nixos
sb0 has joined #nixos
m0rphism has joined #nixos
kyren has joined #nixos
<jluttine>
that is, how should i add packages as inputs so that when i nix-shell to the build environment, the executables of those packages would be available?
Makaveli7 has joined #nixos
<teto>
jluttine: i usually do nix-shell -A python3Packages.myPackage ~/nixpkgs from the source of myPackage
<teto>
nix-shell detects the setup.py and switches to develop mode I think
orivej has joined #nixos
npmccallum has quit [Quit: npmccallum]
<jluttine>
teto: yes, but the executables of the build inputs aren't in PATH in that case
<jluttine>
teto: i tried `nix-shell '<nixpkgs>' -A python3Packages.jupyterlab` but jupyterlab doesn't seem to available in that environment, so it's not installed as `pip install -e`.
<jluttine>
i opened python and ran `import jupyterlab` and got import error
<teto>
jluttine: yes, but running just "nix-shell" will pickup the default,nix or shell.nix in current folder
<jluttine>
that shouldn't happen if jupyterlab was installed as `pip install -e`
zupo has joined #nixos
arjen-jonathan has quit [Ping timeout: 250 seconds]
ckauhaus has joined #nixos
<teto>
jluttine: are you running the python from the generated environment ? I use the python develop mode everyday and it works fine. One caveat is not to override shellHook see pkgs/development/interpreters/python/build-python-package-setuptools.nix
<teto>
if it detects a setup.py then it runs in develop mode
dnlkrgr has quit [Ping timeout: 245 seconds]
kyren has joined #nixos
kisik21 has joined #nixos
<kisik21>
nix run nixpkgs.android-studio - Android Studio glitches out because Gradle can start because seemingly something changes the PATH to /run/wrappers/bin:/usr/bin:/bin and it can't find Java and a lot of other things!
<kisik21>
And as there is seemingly no way to use Android SDK in NixOS aside from installing Android Studio...
<kisik21>
At least when I check the in-built terminal which should probably inherit the PATH, it says that the PATH is crippled
<jluttine>
teto: even weirder.. i have exactly the same files (only setup.py and shell.nix) on two different locations. the other adds executables to PATH but the other doesn't.. somehow this nix-shell for src=./. isn't pure i suppose? something weird going on..
<mabel>
simple question, but what trickery does the nixos module system use to make things like systemd.service.foo.enable = true; work, where foo hasn't been defined?
ixxie has quit [Ping timeout: 246 seconds]
nschoe has joined #nixos
<mabel>
or etc."x/y".mode = 0777;
ixxie has joined #nixos
sam_ has joined #nixos
<teto>
jluttine: same envionrments ? PATH etc ? same computers ?
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
linarcx has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @dotlambda merged pull request #59178 → pythonPackages.cntk: mark as broken with python 3.7 → https://git.io/fjtBZ
<jluttine>
teto: different computers, both using nixos-unstable (might be a bit different commit though)
<jluttine>
i copied the folder with setup.py and shell.nix to a different machine. ran nix-shell on both machines. one of them has build input executables on PATH, the other doesn't
InFlames has quit [Ping timeout: 246 seconds]
<teto>
jluttine: run nix-shell with verbose output -vv and see what differs
InFlames has joined #nixos
shibboleth has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @zimbatm pushed commit from @andrew-d to master « aws-vault: 4.3.0 -> 4.5.1 (#59254) »: https://git.io/fjqkB
<jluttine>
teto: didn't spot anything obvious, but they did have differences in store paths etc. maybe need to have a much closer look. but anyway i opened an issue: https://github.com/NixOS/nixpkgs/issues/59257
<{^_^}>
#59257 (by jluttine, 48 seconds ago, open): Python package build input executables not in PATH in development mode shell
knupfer has quit [Ping timeout: 268 seconds]
awygle has quit [Quit: No Ping reply in 180 seconds.]
<jluttine>
can i somehow point my system nixpkgs in nixos to a specific commit in github nixpkgs repo?
ixxie has quit [Ping timeout: 250 seconds]
<nakkle>
Hey guys, I have a stack project which needs to be compiled with `-threaded`. When I translate the project into a nix derivation with `stack2nix`, that flag is ignored, whether I put it into the stack.yaml or the project.cabal file. I'd have to manually overwrite the derivation with `buildFlags = [ "--ghc-option=-threaded" ]` for it to compile correctly. Does anyone know whether there's a better way than such a manual override?
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « c-blosc: 1.14.4 -> 1.16.2 (#56605) »: https://git.io/fjqIf
<teto>
jluttine: there are some tutorials, you can google "nixpkgs pinning"
<teto>
nakkle: you can do the override on the command line if you don't want to add it to a file. I would add the override to either an overlay or pkgs/development/haskell-modules/configuration-common.nix
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nakkle>
teto: Thanks for your suggestion, but I was rather thinking of a solution that does not involve overriding these attributes. If I want to add compiler flags I'd rather do it in the stack.yaml or in the project.cabal. Probably best to file a bug report on stack2nix for that though.
<jluttine>
teto: yeah, thanks. i just don't quite understand how to apply that system wide used by configuration.nix and wherever <nixpkgs> is used..
<pie_>
yeah so i had a weird problem because i accidentally overrode TMPDIR in the environment i was running nix-build in and thought something was breaking in my sanbox which didnt make sense, it was just that the directory didnt exist and nix was trying to create its temporary build directory there
<teto>
nakkle: I think the stack2nix is not very reliable. I believe adding the flags to the .cabal file should be ok though but not 100% sure
<nakkle>
teto: cabal2nix doesn't seem to take these flags into account either
<nakkle>
so I'll have to add it to some nix override anyways
<teto>
jluttine: you can modify you NIX_PATH to contain nixpkgs=https://github.com/nixos/nixpkgs-channels/archive/nixos-unstable.tar.gz (replace the url)
<teto>
nakkle: I see so yes you may file an issue to cabal2nix
dave_uy has quit [Quit: Ping timeout (120 seconds)]
<romildo>
The PR have two commits from different people. The second one is a fixup.
dave_uy has joined #nixos
<romildo>
Is it ok to "Squash and merge"?
pxc has quit [Ping timeout: 255 seconds]
<romildo>
Maybe @worldofpeace can tell me that.
fendor has quit [Ping timeout: 250 seconds]
<qyliss^work>
Does GH let you edit the commit message when you squash merge?
<qyliss^work>
If so, I'd squash merge and remove worldofpeace's message. Otherwise, I'd squash locally and then just push to master.
Makaveli7 has quit [Quit: WeeChat 2.4]
<thblt>
Is there an explanation of how home-manager works somewhere? I'm interested on the project but I don't understand how it fits the rest of the Nix system. Dous it just create an environment like nix-env then symlinks stuff into ~?
<srhb>
thblt: That's basically it, yes.
<srhb>
thblt: But it's more like how nix-env works behind the scenes with /run/current-system
<srhb>
thblt: Like, the system profile.
<srhb>
thblt: Essentially that, but for your homedir.
<thblt>
srhb: thanks!
<romildo>
qyliss^work, yes GH does that.
mounty has joined #nixos
<qyliss^work>
Squash merge then IMO
Makaveli7 has joined #nixos
<eyJhb>
srhb: what is the best way to mark a package broken? Cannot seem to get matplotlib to work on Python 2.7 on NixOS Stable
<qyliss^work>
eyJhb: set metadata.broken
<eyJhb>
But should I get someone to test it beforehand, or just.. Me?
<qyliss^work>
If it doesn't work for you, it's unlikely to work for anybody else
sam___ has joined #nixos
<qyliss^work>
Nothing wrong with a sanity check though
<eyJhb>
qyliss^work: you up for a sanity check? ;)
Jetien_ has quit [Ping timeout: 244 seconds]
<qyliss^work>
already on it :)
<{^_^}>
[nixpkgs] @domenkozar opened pull request #59260 → python37: get it to build again on darwin → https://git.io/fjqIh
sam_ has quit [Remote host closed the connection]
<eyJhb>
Weird, it seems to work using nix-shell -p python27Packages.matplotlib
<eyJhb>
Reading the output, it says it is having a collision - collision between `/nix/store/qgv9ddrnmxvb7jk66lnbky1s7lzbw021-python2.7-backports.ssl_match_hostname-3.5.0.1/lib/python2.7/site-packages/backports/__init__.pyc' and `/nix/store/ic1mx25c4a8ghjxd74crb140ym4470a2-python2.7-backports.functools_lru_cache-1.5/lib/python2.7/site-packages/backports/__init__.pyc'
<srhb>
I also think they're all a bit.. Flaky. :-P But I guess "best" is relative.
<gour>
ta
<gchristensen>
I like i3, but I'm just an i3 kind of person
* srhb
made a distinction between DE and WM, if it wasn't clear
<gchristensen>
right. right. srhb++
<{^_^}>
srhb's karma got increased to 51
Erasmus has quit [Quit: END-AUMF]
<tokudan[m]>
I've got a strange phenomen with firefox recently: I cannot enter the character "q" anywhere in any text box on any website. Q works perfectly fine, but if I hit the key for q, it's just ignored. This does not affect the url or the search bar, or any other "native firefox" text box.
<gchristensen>
do you have a vim keybinding thing setup?
<tokudan[m]>
no addon with vim in the name anywhere
<tokudan[m]>
this also affects more than a single computer... it's on my private laptop and also on my work desktop (both nixos 18.09)
<srhb>
grischeg: Completely arbitrary (but recent) evaluation though
<srhb>
grischeg: So no guarantees about safety :-)
<grischeg>
srhb: it is good enough for me :)
<srhb>
grischeg: fwiw it's pretty easy to install an arbitrary version of nixos from any other arbitrary installer cd, usually..
<srhb>
OK! :)
<MiloIgnis[m]>
andi-: That could totally be the bug, good find. Hmm, that font solution makes sense in a way
uranther has joined #nixos
<pie_>
is it possible to use the nix sandbox but allow network connections?
linarcx has quit [Quit: WeeChat 2.4]
<{^_^}>
[nixops] @AmineChikhaoui merged pull request #1125 → EC2: Return allocation ID for ec2 elastic ip resource id → https://git.io/fjLYn
<{^_^}>
[nixops] @AmineChikhaoui pushed 2 commits to master: https://git.io/fjqm1
<andi->
MiloIgnis[m]: I'll probably setup a Fedora box to see how Firefox behaves there. This morning I found an issue with EGL on e.g. maps.google.com; must still verify if that is of something missing in the sandbox or another wayland thing
<pie_>
symphorien, what im trying to do is i run some java stuff in the sandbox and i want to connect the debugger to do some stuff but it needs networking for that
<symphorien>
for debugging, maybe use breakPointHook ?
<pie_>
not sure I could fixed-output that? well I guess I dont need the output anyway so I could just have it fail
<pie_>
symphorien, will that get me networking to the inner jvm though?
<symphorien>
ah right this could work
init_6 has quit []
<pie_>
symphorien, oh right, so, fixed outputs can connect out, but what if i want to connect in?
<symphorien>
pie_: I have never used breakPointHook, but it advertises itself as a way to enter the sandbox
<symphorien>
I think they have no network namespace at all, so it may work
abathur has joined #nixos
<Yaniel>
how long does it take for channels to update after their tests finish?
thblt has left #nixos ["ERC (IRC client for Emacs 26.1)"]
<Taneb>
We have an IRC bot that does but I don't know how to use it
knupfer has joined #nixos
<qyliss^work>
,locate bin convert
<{^_^}>
Found in packages: imagemagick, imagemagick7, imagemagickBig, imagemagick_light, imagemagick7_light, graphicsmagick-imagemagick-compat
<qyliss^work>
^ like that
<grischeg>
,locate bin sgdisk
<{^_^}>
Found in packages: gptfdisk
<qyliss^work>
(you can also PM the bot. I do that several times a day)
<grischeg>
Taneb: thanks though, it's nice to have
johanot has joined #nixos
<grischeg>
qyliss^work: will do, thanks
<pie_>
symphorien, i guess ill have to test if breakpointhook works while the build is still running or only once it fails
<pie_>
symphorien, not sure how that would get me what i want though
<pie_>
symphorien, i have an eclipse running in my normal environment and i want to attach it as the debugger
dhkl has joined #nixos
<symphorien>
ah you would have to run eclipse in the shell breakpointHook gives you
ee1943 has quit [Ping timeout: 246 seconds]
ee1943 has joined #nixos
<symphorien>
or do a complicated socat-based danse
<pie_>
the socat based dance is probably fine as long as i can make nix handle it for me
<symphorien>
well breakpoint hook gives you a bidirectionnal channel between your computer and the sandbox: the pty of the shell. So you can connect a port to this pty with socat outside the sandbox, and then connect the pty to the port within the sandbox with socat again, I imagine.
<symphorien>
But this won't be automatic
<hlolli_>
what's the logic with the versioning of gcc. This is a nix-shell command, but im having this problem as well in a build. $ nix-shell -p gcc48 --pure $ gcc --version & gcc (GCC) 7.4.0
<symphorien>
you need to use a different stdenv
winem_ has joined #nixos
<symphorien>
this implies using a shell.nix and not -p
<hlolli_>
I use stdenvNoCC.mkDerivation
<symphorien>
use (overrideCC stdenv gcc48) instead of stdenv
knupfer has quit [Remote host closed the connection]
winem_ has quit [Remote host closed the connection]
<hlolli_>
and as buildInput gcc48, but my stacktraces go to gcc 7.4.0
<hlolli_>
ok I try that with the shell
<symphorien>
it won't work with nix-shell -p
<symphorien>
you have to use a shell.nix
<hlolli_>
ah I got you !
<hlolli_>
thanks!
<hlolli_>
symphorien++ (test)
<{^_^}>
symphorien's karma got increased to 17
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #59265 → repology: fix homepage for a few packages - nothing else → https://git.io/fjqYu
<pie_>
symphorien, maybe i could do some networking hackery with a fixed output derivation thats expected to fail
<pie_>
so i make a connect-out that pipes stuff back in
Erasmus has joined #nixos
<pie_>
is there really no sane way to do this lol
<symphorien>
become a trusted user and add --option sandbox false ?
knupfer has joined #nixos
<pie_>
symphorien, that stops me from having filesystem sandboxing though and i dont want crap dumped all over my fs (a bit of an overstatement)
<gchristensen>
you can set sandbox mode to relaxed and then __usechroot (iirc, check the nix manual) to turn it off sometimes
<pie_>
also i think i tried that but i still didnt see the port, i can try again though
<pie_>
^ @ disabling sandbox
<immae>
__noChroot
infinee has quit [Ping timeout: 255 seconds]
<gchristensen>
what are you trying to do?
<gchristensen>
this sounds bad
drakonis has joined #nixos
<pie_>
im using nix to run some stuff and i want to debug the stuff im running sometimes
<pie_>
said stuff is java and i want to attach a debugger
<disasm>
I should say I switched jobs when they made it clear they didn't want to use nixos :)
<pie_>
if i want to google for how this stuff works, its network namespaces?
Makaveli7 has quit [Quit: WeeChat 2.4]
wolfman154 has joined #nixos
<monotux>
so, I'm building a go package but would like to copy some files from git folder of the go package. I think postInstall is a good place to do this from, but what's my path at that stage? I know the layout of the git repo and tried just copying the relevant folder but it didn't seem that I was in the right directory (files in git root not found)
<gchristensen>
disasm: what did you give up on?
<immae>
monotux: just after unpack you have a "cd $src"
<gchristensen>
I think I had to play with rfkill the first time
<Yaniel>
so what's the deal with the wiki and the manual now
<monotux>
immae & disasm that did the trick!
kreisys has joined #nixos
<Yaniel>
wasn't the wiki deprecated
<gchristensen>
wiki.nixos.com was, nixos.wiki popped up as an "unofficial" wiki and has been really good
<Yaniel>
I see
<infinisil>
I wish we had an option like `system.batteriesIncluded = true;`, which would set stuff like pulseaudioFull, and include other things not set by default
<disasm>
Yaniel: did you run scan on?
<Yaniel>
yes and pairing works
<Yaniel>
it just fails to connect after that
<hlolli_>
symphorien, this overrideCC works, and `gcc --version` returns the right number. But for some reason, a c code that I compile with clang always looks at gcc-7.4.0/include directories. Would I need to override clang to prevent this?
<disasm>
yeah, I've had that before too. I had to stop the service rmmod the module and remodprobe then start it back up again. Would happen randomly.
<symphorien>
hlolli_: the nix clang toolchain uses libstd++ and not libc++
<symphorien>
I don't know how to tell it to use an older libstdc++
<symphorien>
why do you want this ?
knupfer has quit [Ping timeout: 246 seconds]
npmccallum has joined #nixos
<hlolli_>
this is my stacktrace https://pastebin.com/G0RdEMES this sulong llvm isn't suppose to work with gcc above 4.8, so 7.4.0 is far I would assume. Just ruling out the causes of this frustrating error.
domogled has quit [Ping timeout: 255 seconds]
<symphorien>
hlolli_: try using libcxxStdenv maybe ?
<symphorien>
it should not have anything to do with gcc
dhkl has joined #nixos
<pie_>
symphorien, i dont suppose its possible to bidirectionally communicate over a pipe
<hlolli_>
ok I'll try. I can't reproduce this error when I write similar code. It's somehow trying to write its own core files. I did try clangstdenv and libcxxstdenv. Trying everything to see how the error message change :-)
<{^_^}>
[nixpkgs] @bendlas pushed commit from @FlexW to master « cask: init at 0.8.4 »: https://git.io/fjqOt
<pie_>
oh boy fifo screwery time
<monotux>
oh wait. the go package I've built seems to create two folders in nix store, one with suffix -bin and one without -bin. the folder without -bin seems to be the $out folder (to which I've copied files), but the other folder is in PATH, so trying to copy files from the $out folder points to -bin. wtf?
abathur has joined #nixos
fusion809 has joined #nixos
domogled has joined #nixos
<{^_^}>
[nixpkgs] @matthiasbeyer opened pull request #59268 → linux: kernel: Add kernels with rt patchset → https://git.io/fjqOG
abathur has quit [Ping timeout: 255 seconds]
jabranham has joined #nixos
<musicmatze>
The effort in https://discourse.nixos.org/t/prs-already-reviewed/2617 is really nice,... but is it really necessary to tell people "hey I reviewed this and that" in the topic? I mean... we already have the "approved" or "requested changes" in github, why also mentioning it in discourse? Is there any benefit at all?
abathur has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<symphorien>
sometimes I review things I know nothing about, and I just check that they don't segfault at startup, but someone else could have checked that they really work.
<timokau[m]>
musicmatze: my motivation behind this is to call attention to a specific kind of review, e.g. ones I'd be willing to merge. Hence the list of hard requirements.
sam__ has joined #nixos
<timokau[m]>
Also helps to give it a bit more visibility as a signal to all users "hey, you can review PRs just as well even if you don't have commit access"
<musicmatze>
Yes, the intention is perfect and I don't argue! Someone mentioned that I reviewed 10% of the PRs in the last few days (50 out of 500) ... what I am asking is why people are writing down "hey I reviewed this PR" ... which does not make any sense to me because you can already see it in github
<musicmatze>
no need to write it down in discourse because who goes to discourse to check for reviewed PRs? Nobody!
sam_ has quit [Ping timeout: 255 seconds]
<timokau[m]>
What they are really writing is "hey I reviewed this PR according to the instructions in this discourse post"
<musicmatze>
btw can someone link me to the statistics who reviewed how many PRs?
<musicmatze>
Yeah, but what lilyball said: I am mostly reviewing simple package-version bump PRs, so I am not that awesome, actually! :-)
jabranham has quit [Ping timeout: 245 seconds]
<timokau[m]>
musicmatze: Nothing wrong with that. It makes sense to clear those PRs first
joehh has quit [Ping timeout: 245 seconds]
<timokau[m]>
(Actually now rereading the latest stats it seems like "Merges of already reviewed PRs" is not quite right, no way 111 of @xesjis PRs were already reviewed
<timokau[m]>
)
<musicmatze>
This weekend I will start working on an RFC to improve the whole process. I hope I can get it done before May... lets just hope PRs do not explode until then! :-) And of course lets hope that it gets approved and implemented then :-)
<timokau[m]>
I didn't push any further because currently only committers can set labels. That may be resolved by ofBorg, but I didn't have the time / feel comfortable to hack on that. It could also be resolved by GitHub itself and they have shown some interest: https://github.com/isaacs/github/issues/148#issuecomment-472856684
<musicmatze>
I'm in the middle of reading, but so far this looks good. My RFC would redesign the whole workflow with branches and stuff... so its scope is different ... but I won't say too much about it this time... after the weekend maybe, I have a first draft...
iyzsong has quit [Ping timeout: 252 seconds]
kisik21 has joined #nixos
<pie_>
symphorien, almost got this to run, it complains about wrong number of parameters for some reason though :/ socat EXEC:"sudo cntr attach -t command cntr-/nix/store/w9rk4mk0n6ah3js38hrdwys0xpnb32z3-ghidra-sample-result-mount socat STDIO TCP4:localhost:18001" TCP4-LISTEN:8888
<musicmatze>
I guess I could also remove it and it may work. I do not have a machine to test this though...
<manveru>
infinisil: is there a proposal to fix that performance issue yet?
<infinisil>
manveru: I wish there was, I've been trying to come up with something that would solve it, but nothing promising yet. See https://github.com/NixOS/nixpkgs/issues/57477 as well
<manveru>
infinisil: wouldn't a system where you do `imports = [ <nixos/modules/foo> <nixos/modules/bar> ]` fix that?
<manveru>
i mean, at the cost of convenience...
rjmill has quit [Ping timeout: 240 seconds]
<infinisil>
manveru: Yeah, but that requires changes to *every* users configuration.nix, and one of the main selling points of nixos is that you can just set `foo.enable = true;` and you have it running
<worldofpeace>
system-wide pulseaudio is pretty dangerous afaik
<worldofpeace>
gchristensen tell that to the gui install iso :P
<gchristensen>
well that shouldn't be root at all
Erasmus has joined #nixos
<chaker>
Hey, is there a way to update grub options in NixOS without rebuild the configuration?
abathur has quit [Ping timeout: 246 seconds]
<srhb>
chaker: Why do you want to do this? It's probably not a good idea.
sam_ has quit []
ryantrinkle has joined #nixos
<chaker>
The goal is to support hibernation in EC2. I need to set some offset to point to a swap file. However since grub.conf is located at the Nix store. This isn't straightforward
<srhb>
chaker: Isn't that a kernel command line param?
<b1000101>
binutils-2.31.1/bin/ld: /nix/store/-monero-0.14.d.sl/lib/libwallet_merged.a(transport.cpp.o): undefined reference to symbol 'libusb_release_interface'
<b1000101>
[output ommited] libusb-1.0.22/lib/libusb-1.0.so.0: error adding symbols: DSO missing from command line
<b1000101>
Hi guys, any help would be appreciated. I'm trying to build https://github.com/1000101/nixpkgs/blob/master/pkgs/applications/altcoins/monero-gui/default.nix and I've managed to fix most of the errors but now I'm stuck at binutils-2.31.1/bin/ld: /nix/store/qyckqrrxpszr1g7y3wxr85z7l1i26pq9-libusb-1.0.22/lib/libusb-1.0.so.0: error adding symbols: DSO missing from command line - any ideas?
shabius has quit [Quit: Leaving]
shabius has joined #nixos
jasongrossman has quit [Ping timeout: 255 seconds]
cyphase has joined #nixos
_Geeko_ has joined #nixos
<_Geeko_>
hi guys
<_Geeko_>
which DE's are you guys using on nixos? :D
<clever>
i prefer xfce
<_Geeko_>
clever which displaymanager do you use for xfce?
lovesegfault has quit [Ping timeout: 246 seconds]
<clever>
_Geeko_: slim
<_Geeko_>
clever would you mind to share your nix config?
<infinisil>
clever: Well yeah, but I wouldn't suggest slim for new users
lovesegfault has joined #nixos
<infinisil>
"The SliM project has been abandoned (last release was 2013, the project homepage is down), and is not fully compatible with systemd, including logind sessions."
nD5Xjz has quit [Ping timeout: 246 seconds]
b1000101 has quit [Ping timeout: 256 seconds]
crmlt has quit [Ping timeout: 250 seconds]
nD5Xjz has joined #nixos
gagbo has joined #nixos
<clever>
infinisil: ive been thinking about reviving hsdm as well, have you seen that project?
<clever>
though i dont see it in services.xserver.displayManager
<samueldr>
I don't think it i
nomeata has joined #nixos
<infinisil>
We should be able to do `services.xserver.displayManager = pkgs.ly`, pkgs.ly could have some passthru attributes that define itself as a DM
<nomeata>
If I were to write a tool that modifies nix expressions, what are my options? I see that hnix (Haskell) has a parser and a printer, I and already got them to work, but I don't see much in terms of additional language support (in particular a function to calculate free variables)
<nomeata>
If I were to write a tool that modifies nix expressions, what are my options? I see that hnix (Haskell) has a parser and a printer, I and already got them to work, but I don't see much in terms of additional language support (in particular a function to calculate the set of free variables of an expression)
<nomeata>
sorry for the double post, too much Slack use these days…
<infinisil>
nomeata: I actually PR'd a free variables function to hnix :)
<nomeata>
ah, neat
<infinisil>
Well, one existed beforehand, but it didn't work right
<__monty__>
I've been considering just dropping the display manager altogether tbh.
<gchristensen>
then sway is for you! =)
<__monty__>
No point if you're the only user and you only use one session.
<disasm>
love sway :)
<infinisil>
I should also give it a try
<gchristensen>
it is easier to setup than I expected
<samueldr>
one (albeit fixable) point is that the DM will not leave a session in a VT which can be hijacked
<samueldr>
and the X initialization happens in a different order with regards to profiles/rc files
<samueldr>
(but that's not a point)
<__monty__>
I guess I'll try it when I switch to NixOS. Not usually one to experiment with DM/WM/DE though so switching underlying graphics protocol isn't something I look forward to.
<nomeata>
infinisil: Ok, this is in 0.6.0, which doesn’t build (when using just cabal/hackage) at the moment, due to https://github.com/haskell-nix/hnix/issues/493. So thanks, I’ll get that working somehow (or wait for it to be fixed)
<{^_^}>
haskell-nix/hnix#493 (by Profpatsch, 1 week ago, open): nix-store-core is missing an export symbol
Mithror has joined #nixos
<__monty__>
samueldr: I hadn't even considered that problem. Thanks for pointing it out.
<infinisil>
I can't update to latest nixos-unstable because the 4.20 kernel is not supported anymore (only 4.19 and 5.0), but 5.0 is not supported by zfs unstable, and 4.19 seems to not work with the nvidia driver I need (nouveau seems to have problems for me)
<infinisil>
:(
<infinisil>
I could probably switch away from ZFS unstable, but that would be a >2GB data shuffle
<samueldr>
it's among my personal reasons not to use zfs :/ out of tree stuff spooks me; though at least adding the 4.20 kernel in an overlay should be trivial
silver has joined #nixos
<infinisil>
trivial?
<gchristensen>
eh? 5.0 should supported just fine by zfs stable and unstable, infinisil
<infinisil>
stable supports 5.0, but unstable only up to 4.20
<__monty__>
Then what's the benefit of unstable?
<jD91mZM2>
gchristensen: Ahahah that exists, amazing
<infinisil>
__monty__: The features of unstable, which includes most prominently encryption. I enabled this once to try it out, but now I can't switch back xD
domogled has quit [Ping timeout: 255 seconds]
<__monty__>
samueldr: Btrfs ftw!? : )
wfranzini has quit [Remote host closed the connection]
<samueldr>
ext4 from inertia
wfranzini has joined #nixos
<gchristensen>
infinisil: ah yeah that is a thing
<infinisil>
It is a bit odd..
<gchristensen>
infinisil: part of why I decided against using ZFS's encryption.
<infinisil>
gchristensen: The fact that it's not yet stable?
<gchristensen>
right, and ties you in to fewer options
<infinisil>
Well it's just that once you enable some features for a pool, you can't revert that. I could've created a different pool for trying out encryption and then the original one could still be used by an older zfs version
<clever>
for some features, you can turn them off if you delete all data using them
<infinisil>
gchristensen: Or what do you mean by "ties you into fewer options" exactly?
<clever>
i believe the zpool man page says which ones
<infinisil>
Ah right, I don't think encryption is one of those though unfortunately
* infinisil
checks
<clever>
`man zpool-features`
<clever>
Once the feature is active, it will remain in that state until the pool is destroyed.
<clever>
Existing pools where this feature is active can be imported.
<clever>
This feature is active while there are any filesystems, volumes, or snapshots which were created after enabling this feature.
<infinisil>
Guess I could probably turn it off :o
<clever>
the last one implies you can disable the feature if you simply destroy the datasets in question
<gchristensen>
infinisil: well so since I don't use any unstable features I can use stable or unstable, which ever works for the kernel I want
<clever>
send|recv could likely shuffle the data around within the pool, and de-feature it
<gchristensen>
buying in to unstableu stuff means I can only usu that
<clever>
encryption is not in my man page
<infinisil>
Ah yeah
<infinisil>
clever: Well then you're probably not using unstable :)
<jD91mZM2>
nomeata: Like they mentioned, my rnix project is a possibility, but beware it is also just a parser and a printer, and all logic is up to either you or some helper library
<clever>
embedded_data looks like a handy feature for dealing with a lot of small files
<gchristensen>
infinisil: you could bump zfs-unstable to a version from git probably
<clever>
and its already active
<gchristensen>
that seems extra spooky to me, but eh
<infinisil>
Yeah I won't do that, too spoopy
<clever>
ahh yeah
<clever>
action: Enable all features using 'zpool upgrade'. Once this is done,
<gchristensen>
infinisil: or, "just" apply the 5.0 patches to 8.0
<nomeata>
jD91mZM2: thanks. Might be an excuse to get deepter into rust :-)
nomeata has quit [Remote host closed the connection]
<gchristensen>
infinisil: cautious though, zfs unstable apparently used to / may will again point to arbitrary git commits
polman has quit [Read error: Connection reset by peer]
freeman42x has quit [Read error: Connection reset by peer]
equivrel has quit [Read error: Connection reset by peer]
<infinisil>
clever: Wait but what if you have different passwords?
<clever>
infinisil: if the previous one fails to unlock the device, it will just prompt again
<samueldr>
it tries to
freeman42x has joined #nixos
growpotkin_ has joined #nixos
growpotkin has quit [Read error: Connection reset by peer]
<infinisil>
growpotkin: Not really. What you need to do can vary a lot
<infinisil>
-.-
<infinisil>
(they left a second before I replied)
<gchristensen>
Peer reset their connection. that jerk.
equivrel has joined #nixos
PC_ has quit [Ping timeout: 255 seconds]
alexozer has joined #nixos
<growpotkin_>
Infinisil: okay, I’ll get crafty. I imagined it might be dead simple. JFC i wrote the default.nox myself such that it performs the install, its not like an “unknown expression”.
<growpotkin_>
.nix**
<infinisil>
gchristensen: xD
Mithror has quit [Ping timeout: 252 seconds]
_Geeko_ has joined #nixos
<gchristensen>
growpotkin_: right, but it isn't (exactly) about being trusted or not, but a limitation of the build system: IFD is prohibited
<gchristensen>
,IFD
<{^_^}>
import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2. This is sometimes problematic because it requires evaluating some, building some, and then evaluating the build result.
<infinisil>
growpotkin_: I see. If it's the standard `with import <nixpkgs> {}` at the top, then you can replace that with `{ stdenv, cmake, <whathaveyounot> }:` and callPackage that
<_Geeko_>
mmmh i have a weird issue changed to xfce DE and know i can't find my nvidia folder anymore seems the driver is just not installed anymore
basvandijk has quit [Ping timeout: 245 seconds]
<_Geeko_>
now*
<growpotkin_>
Gotcha now that i consider it this makes sense; i suppose we want to keep package installation definitions in `nixpkgs` rather than leave them up to any random dev on GitHub.
Glider_IRC_ has quit [Quit: Leaving]
ddellacosta has joined #nixos
Jonathan_ has joined #nixos
<clever>
This feature enables the use of the Edon-R hash algorithm for checksum, including for nopwrite (if compression is also enabled, an overwrite of a block whose checksum matches the data being writ‐
<clever>
infinisil: :O, i could see that helping performance in some cases
<_Geeko_>
what is wrong that he does not find the videodrivers?
<_Geeko_>
there is no error
<myme>
Hi fine folks. Just jumped into NixOS and had no large trouble with the setup. My first roadblock has been to figure out how to setup a dev env for working on our main Python/JavaScript codebase. As the only dev on Nix I don't want to be too invasive on the others (aka impose too many changes to the codebase). A few of our deps use compiled code (Pillow, lxml, paramiko, ...). What's been the least amount of
<myme>
An obvious challenge then is e.g. editor integration. I've been using emacs with pyls and lsp-mode for language integration. Would be great not to have to specify *all* of this in the env as well (as in, have it running on the outside).
<ninjin>
Okay, now I am supremely confused. Containers are supposed to have their own network interfaces, no? Yet my vanilla container does not have an interface and has network access without me enabling NAT.
<clever>
ninjin: what does `ifconfig -a` show inside the container?
<ninjin>
clever: Exactly the same thing that it shows outside the container.
equivrel has joined #nixos
<clever>
ninjin: then its likely not using a network namespace
<ninjin>
I used `root-login`, but surely that should not matter.
<gchristensen>
ninjin: how did you set it up?
<gchristensen>
they don't necessarily use their own interface
<gchristensen>
containers.<name>.privateNetwork
<ninjin>
gchristensen: Declaratively in my configuration, I can paste it. What is our pastebin of choice around here?
<gchristensen>
infinisil: you know what'd be coooool? ,option containers.<name>.privateNetwork => {^_^}: containers.<name>.privateNetwork: Whether to give the container its own private virtual Ethernet interface. The interface is called eth0, and is hooked up to the interface ve-container-name on the host. If this option is not set, then the container shares the network interfaces of the host, and can bind to any port on any
<ninjin>
Did I read the manual wrong perhaps, `privateNetwork` is clearly `false` by default.
<eyJhb>
Is there any good and easy way to e.g. block/override 1000 hosts?
<eyJhb>
(or if anybody already have a hostfile for blocking FB)
<gchristensen>
ninjin: right, meaning that your container is not on a private network
<infinisil>
gchristensen: That would be pretty cool
<ninjin>
“When you create a container using nixos-container create, it gets it own private IPv4 address in the range 10.233.0.0/16.”, I guess it differs if it is declarative or not. My bad, thank you guys.
ingenieroariel has joined #nixos
* ninjin
is trying to force an application to go through a tunnel by putting it in a container.
ingenieroariel is now known as Guest6217
cantstanya has quit [Remote host closed the connection]
<gchristensen>
nice
<gchristensen>
I've been doing some clever container playing
<ninjin>
FYI, the way I found out that they were not separate was by nuking the routes inside the container and being forced to reboot. '^^
<gchristensen>
LOL :D
alexozer has quit [Ping timeout: 255 seconds]
<ninjin>
There were a few curses, yes. ;P
aanderse-work has quit []
<NemesisD>
this is probably a long shot but is there any way to tell how many packages in my dependencies are marked broken without having to build the whole thing? i'm willing to fork and fix a few but if its gonna be dozens i'll have to figure something else out
alexozer has joined #nixos
wolfman154 has joined #nixos
kleisli has quit [Ping timeout: 268 seconds]
<wolfman154>
Should I do: { config, pkgs, lib, ... }:
<wolfman154>
}
<wolfman154>
with pkgs.lib;
<wolfman154>
{ config, pkgs, ... }:
<wolfman154>
Or
<wolfman154>
At the top of home.nix(does it even matter?)
<wolfman154>
}
<clever>
wolfman154: i prefer { config, pkgs, lib, ... }:
<wolfman154>
clever: thanks, but do they mean the same thing?
<gchristensen>
config, pkgs, lib are parameters. if you don't use lib, you can leave it out
<clever>
i think { lib, ... }: gets it by directly importing lib/default.nix
<clever>
so it wont directly depend on the pkgs
<clever>
oh, but i'm basing that on nixos, home-manager may do it differently
<clever>
the difference comes into play if you start using lib to mutate pkgs in drastic ways
<clever>
it may need lib to compute pkgs.lib, and then infinite recursion
<clever>
but { pkgs, lib, ... }: allows the lib to be isolated from pkgs
pxc has joined #nixos
<wolfman154>
clever: yes, I’m using home-manager, I’ll try your way, if it does not work, I’ll try the with pkgs.lib;
<wolfman154>
home
<clever>
you can also do { pkgs, lib }: without the ..., to see what other arguments are available to you
mconstant has quit [Ping timeout: 255 seconds]
mconstant has joined #nixos
<wolfman154>
home-manager is overriding setxkbmap, so my custom keyboard layout is not loading when I reboot, so hopefully this will stop xmodmap changes from getting reset after a rebuild switch
nD5Xjz_ has quit [Ping timeout: 255 seconds]
silverluke[m] has joined #nixos
nD5Xjz has joined #nixos
_Geeko_ has joined #nixos
<_Geeko_>
clever it was builded already without me knowing XD
<_Geeko_>
clever you know where themes are stored by default?
<{^_^}>
[nixpkgs] @xeji pushed commit from @StillerHarpo to master « lolcat: 99.9.19 -> 99.9.96 (#59271) »: https://git.io/fjqWZ
growpotkin_ has joined #nixos
kleisli has joined #nixos
Guest6217 has quit [Quit: Page closed]
<_Geeko_>
clever seems i can't mv themes to that folder
growpotkin_ has quit [Read error: Connection reset by peer]
pmiddend has quit [Quit: WeeChat 2.4]
<_Geeko_>
they have only a read permission
growpotkin_ has joined #nixos
<clever>
_Geeko_: you must configure that in configuration.nix
<clever>
_Geeko_: packages containing themes have to be added to environment.systemPackages
<_Geeko_>
ic
dnlkrgr has joined #nixos
<clever>
which could be as simple as environment.systemPackages = [ ./foo ];, and then create a foo/share/themes
lovesegfault has joined #nixos
growpotkin__ has joined #nixos
growpotkin_ has quit [Read error: Connection reset by peer]
<_Geeko_>
clever any example somewhere?
<ninjin>
Hmm… Minor progress, `privateNetwork` has an effect. However, the following trivial config https://pastebin.com/cWs89BMP gives me a single loop-back interface – no eth0 as was promised.
growpotkin__ has quit [Client Quit]
<clever>
_Geeko_: just make a directory like /etc/nixos/foo/share/themes, drop some themes into it, and then add ./foo to your systemPackages in configuration.nix
<_Geeko_>
sorry for me being a noob :D
leotaku has quit [Ping timeout: 250 seconds]
<_Geeko_>
thanks
<Yaniel>
how do I get systemd to see service files of things I installed in with nix-env?
<Yaniel>
so I can autorun them with systemctl --user
<Jonathan_>
I am working on switching to using NixOS from Arch. I use Sway as my window manager. The latest version on nixpkgs though apparently is the old `0.15`. I found this post in the forum `https://discourse.nixos.org/t/overlay-for-sway-and-other-wayland-wms-tools/1282`. But I cannot figure out how to use it. What is meant by overlay? Is this even the right way to go about it?
mounty has quit [Ping timeout: 245 seconds]
<AlexRice[m]>
Jonathan_: Version 1.0 is in unstable and I believe that overlay only works with unstable anyway
<Jonathan_>
So `nixos.org/nixos/packages.html` only search stable?
xkapastel has quit [Quit: Connection closed for inactivity]
<AlexRice[m]>
Jonathan_: I think so
<adisbladis>
Jonathan_: Yes
<Jonathan_>
Oh, well that explains it.
<Jonathan_>
Is their a good "unstable" alternative?
<Jonathan_>
*there
<AlexRice[m]>
Jonathan_: I just search the nixpkgs repository but there is likely a better way
<adisbladis>
Jonathan_: You can use `nix search` from the command line
<AlexRice[m]>
Jonathan_: nix-env -qa sway seems to work aswell
<{^_^}>
[nixpkgs] @xeji pushed commit from @marsam to master « gotop: 2.0.1 -> 3.0.0 (#58615) »: https://git.io/fjqWi
<averell>
another weird problem, maybe someone has seen: my dhcpcd service is broken. i increased logging in the systemd script, every line is printed in duplicate, with the same pid (if that's what it is). then it forks, and the second fork overwrites the first pid file, so it never completes starting. anyone know what that is?
<{^_^}>
[nixpkgs] @veprbl opened pull request #59278 → netbsd.mkDerivation: fix darwin build → https://git.io/fjqlc
<_Geeko_>
clever thanks for your help it works now!
<_Geeko_>
this community is so nice!
<gchristensen>
<3 yay!
<_Geeko_>
will be soon in top 100 on distrowatch for sure
<gchristensen>
I didn't know people still used distrowatch :X
Jonathan_ has joined #nixos
<averell>
we are top 100. i was just about to switch away... :)
<NemesisD>
what causes haskell packages in nix to be labeled broken? i set allowBroken = false and packages that were marked as broken seem to be compiling fine
<gchristensen>
I find it likely distrowatch's stats are gamed :)
<ninjin>
“…definite elitism in some of the interactions I've had with NixOS users and likely devs”, hehe.
markus1189 has joined #nixos
<ninjin>
I have to disagree with that one, everyone has been friendly so far.
<averell>
big GNU is paying for reviews
<ninjin>
That commenter can head over to OpenBSD misc to get some perspective.
Thra11 has quit [Ping timeout: 245 seconds]
<gchristensen>
I want us to be friendly, not just friendly relative to other distros ;)
tmaekawa has joined #nixos
pie_ has joined #nixos
<enteee>
hi, when i build and run a vm with nixos-rebuild build-vm && result/bin/run* everything works fine, but when I then restart the same vm again the installed packages in the user environment do no longer exist. Is this expected?
<ninjin>
Friendly comes in many flavours, not expecting people to due dilligence before asking is not being friendly for example, that is allowing yourself to be exploited and will hurt everyone in the long run.
<gchristensen>
sure, though that too can be handled in a friendly supportive way
<ninjin>
Giving up on my container adventures for today, I need to wrap my head around how and how not things are updated. I managed to get the devices to appear with a lot of starting and stopping, but it is too magical at this point.
<_Geeko_>
clever same way for icons?
arjen-jonathan has quit [Ping timeout: 246 seconds]
<ninjin>
One thing I have loved about NixOS so far, not much magic at all. So clearly I need to figure out what I am missing.
<clever>
_Geeko_: could probably just add them to the same directory
<ninjin>
gchristensen: Indeed, manners above all.
<_Geeko_>
clever seems not too work :/
<_Geeko_>
must be too easy
<clever>
_Geeko_: what path would the icons normally be installed to?
mconstant has joined #nixos
<_Geeko_>
to the folder icons?
<clever>
_Geeko_: looks like share/icons, what happens if you drop them into /etc/nixos/foo/share/icons and nixos-rebuild?
<_Geeko_>
rip me i did not rebuild
Jonathan_ has quit [Ping timeout: 256 seconds]
Neo--- has quit [Ping timeout: 255 seconds]
<emilsp>
So I know there's support for luks/dmcrypt, I know there's support for zfs, but has has anyone really been far even as decided to use even go want to do zfs on top of luks for the root drive on nix?
<clever>
emilsp: my laptop has zfs on lvm on luks
<emilsp>
clever: is it stable?
<clever>
emilsp: yep
<emilsp>
This is incredibly tempting now.
<clever>
emilsp: the lvm i used is no longer needed, that was just to support encrypted swap
<_Geeko_>
clever rebuild did it! :D
<emilsp>
What is your solution for encrypted swap now?
<_Geeko_>
clever thanks for your time bro!
<clever>
emilsp: just put the swap on its own luks partition
<clever>
emilsp: nixos will now reuse the password if both devices share the same one
<emilsp>
yeah, I guess that works. what about suspending to disk?
<clever>
emilsp: i dont think hibernation works with zfs
<clever>
suspend still works fine though, as i discovered by accident!
<emilsp>
well, I never had it in my current setup, so I'll live with plain old suspension to memory
<clever>
i was using a voice chat on the laptop, while servicing the desktop, and the lcd panel got in the way, so i just closed the lid
<clever>
and it put itself to sleep, lol
<emilsp>
heh
alexozer has left #nixos ["WeeChat 2.4"]
<clever>
opened the lid, and it instantly woke up, like nothing happened!
Makaveli7 has quit [Quit: WeeChat 2.4]
<emilsp>
I'd hope it would've locked itself at the very least :>
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<clever>
not by default, and i havent looked into that
<chrisaw>
Can anyone tell me how I can enable the javaws plugin for oracle jdk?
<AlexRice[m]>
bit of a long shot but does anyone know what causes this
<chrisaw>
I see there's a flag in the package but I'm not sure how to set it
<AlexRice[m]>
the only things I can find online are github issues saying it was fixes 3 years ago
<clever>
AlexRice[m]: usb device?
<AlexRice[m]>
clever: What do you mean? I am trying to boot from the install iso which is on a usb stick
<clever>
AlexRice[m]: it could be that the usb stick is damaged or just loose
<clever>
chrisaw: it appears to be tied to the pluginSupport flag, which is true by default
silverluke[m] has left #nixos ["User left"]
<AlexRice[m]>
clever: I've tried with a couple of different usb sticks and a couple of different ports
Jonathan_ has joined #nixos
<clever>
AlexRice[m]: weird
obadz has joined #nixos
<averell>
did you remove other usb devices? could be a hub, cable, usb-motherboard-cable too.
<chrisaw>
clever: I did see that but I'm a bit mystified - looks like it checks to see if pluginSupport is set and if not - it removes javaws. The problem I'm having is - javaws isn't getting installed despite not tinkering with that flag.
<AlexRice[m]>
averell: I haven't tried that, will try now
Ariakenom has quit [Quit: Leaving]
basvandijk has quit [Ping timeout: 245 seconds]
tmaekawa has quit [Quit: tmaekawa]
<AlexRice[m]>
exactly the same thing happens with everything removed
<{^_^}>
[nixpkgs] @costrouc opened pull request #59279 → python3Packages.nixpkgs-pytools: init at 1.0.0 → https://git.io/fjq8m
drakonis has joined #nixos
fendor_ has joined #nixos
wfranzini has quit [Remote host closed the connection]
nD5Xjz has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixpkgs] @bobvanderlinden opened pull request #59280 → mkchromecast: init at 5872a246 → https://git.io/fjq8s
<AlexRice[m]>
averell: when you say usb-motherboard-cable do you mean an internal one in the computer?
nD5Xjz has joined #nixos
fendor_ has quit [Client Quit]
<averell>
yes. if you have front and back ones on a desktop for example, you should try the other one respectively. i'm just guessing though, it's not super likely.
fendor_ has joined #nixos
fendor has quit [Ping timeout: 255 seconds]
stepcut has joined #nixos
<AlexRice[m]>
interestingly it failed with a different error when plugged into the back
work_ has joined #nixos
ryantrinkle has quit [Ping timeout: 246 seconds]
joehh has quit [Ping timeout: 246 seconds]
<pie_>
symphorien, i got your amazing socat idea to work
<pie_>
"thanks i hate it"
<pie_>
um
<pie_>
or at least i thought i did
<{^_^}>
[nixpkgs] @markuskowa opened pull request #59281 → hpl: init at 2.3 → https://git.io/fjq8C
basvandijk has joined #nixos
stepcut has quit [Remote host closed the connection]
<duairc>
buildInputs is for stuff a derivation needs for building, right? What about if a the resulting program depends on a command-line executable provided by another package (but doesn't need it to build or otherwise link against it)? Where does that go?
<infinisil>
,runtimeDeps duairc
<{^_^}>
duairc: In order of preference: Patch source OR ((if it uses PATH -> wrap with new $PATH) AND (if it uses dlopen, (patchelf --set-rpath in postFixup OR wrap with new LD_LIBRARY_PATH)))
dhkl has joined #nixos
<duairc>
Also, relatedly (though this probably belongs in #haskell), does anyone know if it's possible in a cabal file to say that your Haskell library depends on a particular binary? Preferably something cabal2nix understands so that you could hook it up with the right binary with nix
<duairc>
infinisil: Thanks
wolfman154 has joined #nixos
<{^_^}>
[nixpkgs] @timokau merged pull request #56809 → Zotero: Fix to use patchelf instead of FHS Env. → https://git.io/fhxZN
<infinisil>
duairc: Wondering about that too, haven't seen anything like that, and I suspect there isn't one
iceypoi has joined #nixos
wolfman154 has quit [Client Quit]
wolfman154 has joined #nixos
rcshm has quit [Ping timeout: 250 seconds]
<duairc>
infinisil: That's a pity. I have a Haskell library that, among other things, uses wkhtmltopdf to make PDFs from HTML, but the version in nixpkgs builds against qt5 instead of the patched qt4 that you need for a full featured wkhtmltopdf, so I've made my own derivation that does, it would be great to somehow automatically tie that in with my Haskell library
<duairc>
I guess wkhtmltopdf has a C library as well, maybe I could write Haskell bindings for it rather than calling the binary
<infinisil>
Can't you just make the correct binary available with nix?
<duairc>
Ultimately, yes
<infinisil>
So, where's the problem?
doyougnu has quit [Ping timeout: 255 seconds]
<duairc>
There isn't exactly a problem, it'd just be nice if the derivations for the Haskell library (that cabal2nix makes) could have the dependency on the binary encoded in them, but yeah I can also just make sure that it's in the environment whenever I run it, put it in my shell.nix or whatever
<clever>
fresheyeball: when you copy things from /nix/store, the directories are read-only
gagbo has quit [Ping timeout: 245 seconds]
<fresheyeball>
clever: oh!
<Qubasa>
tilpmer: Alright thanks! So I can just say systemd.service.<name> = { add this attribute } or does this completly overwrite the service?
<clever>
qubasa: nixos will merge things
<Qubasa>
Sweet!
ryantrinkle has quit [Ping timeout: 268 seconds]
jasongrossman has joined #nixos
jluttine has quit [Ping timeout: 245 seconds]
iceypoi has quit [Quit: WeeChat 2.4]
m0rphism has quit [Ping timeout: 244 seconds]
jackdk has joined #nixos
rjmill has joined #nixos
<mog>
where can you see the nixos_label in a running system
<mog>
nix-info doesnt seem to dump it
<mog>
i see it in /boot/grub.cfg
<gchristensen>
/etc/os_release's VERSION_ID?
dhkl has quit [Ping timeout: 244 seconds]
<mog>
export NIXOS_LABEL="$(nix-info -m|grep channels\(root|cut -f2 -d'"'|cut -f2 -d'-')_$(git rev-parse --short HEAD)" is what im using. i put my /etc/nixos into a gjt repo so trying to have the version id be the version from nixpkgs and version of config
nD5Xjz has quit [Ping timeout: 245 seconds]
<mog>
version_id seems to be just the version of nixos
<gchristensen>
wait so what is your goal exactly?
<mog>
my goal is when i do a nixos-rebuild, that somewhere i can see the version of nixos im running and version of my config files
<gchristensen>
got it
<gchristensen>
you could make a file in /etc contain it easily