servator has joined #nixos
ahmad has quit [(Quit: Page closed)]
dejanr has quit [(Ping timeout: 240 seconds)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f575062f97 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
dejanr has joined #nixos
nekroze has joined #nixos
<nekroze> has anyone recently had any success with installing nix of freebsd? It is mentioned in various places that it should work but it seems dated.
ambro718 has quit [(Ping timeout: 248 seconds)]
<gchristensen> we used to have people maintaining nix/nixpkgs on freebsd, but that was before my time
<nekroze> thats a shame, now that nixops support alternate vm types I wanted to try run nixops with libvirt+bhyve
simukis has quit [(Ping timeout: 248 seconds)]
nekroze has quit [(Quit: Lost terminal)]
hellrazo1 has joined #nixos
hellrazor has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lukeadams opened pull request #31546: dolphinEmuMaster: Enable Darwin building (master...dolphin-master-darwin-enable) https://git.io/vFw02
NixOS_GitHub has left #nixos []
zzamboni has quit [(Quit: Leaving.)]
servator has quit [(Ping timeout: 248 seconds)]
thc202 has quit [(Ping timeout: 240 seconds)]
servator has joined #nixos
fresheyeball has joined #nixos
<fresheyeball> I am looking for a quick one liner that serves a directory so I can load a static site in my browser
<fresheyeball> I used to use http-server from npm
<fresheyeball> but I can't get that on nixos easily
<fresheyeball> I tried editing my nginx service in configuration.nix
<fresheyeball> but I can't get it to serve a folder inside my users home folder, 403 over and over
<fresheyeball> anyone out there have an easy answer for this?
<gchristensen> python3 -m http.server
<fresheyeball> gchristensen: how can I get `python3` on my path?
<gchristensen> nix-shell -p python I guess
asuryawanshi has joined #nixos
<cransom> nix-shell -p python --run "python -m SimpleHTTPServer" is an alias i use from time to time
Mateon3 has joined #nixos
<fresheyeball> yay!
<fresheyeball> that worked
Mateon1 has quit [(Ping timeout: 240 seconds)]
Mateon3 is now known as Mateon1
asuryawanshi has quit [(Ping timeout: 240 seconds)]
<samueldr> for anyone having 403 issue when serving from home folder (or elsewhere)
<samueldr> all folders from root to folder served needs to be +x
<samueldr> +x effective for the process serving
<samueldr> by default, nixos seems to create the user's folders as rwx------
fresheyeball has quit [(Quit: WeeChat 1.9.1)]
<samueldr> or maybe not
<samueldr> (looked two machines, one is one isn't, but the other I might have changed)
servator has quit [(Quit: Lost terminal)]
mekeor has quit [(Ping timeout: 250 seconds)]
acarrico has quit [(Ping timeout: 248 seconds)]
hellrazor has joined #nixos
sigmundv has joined #nixos
patrl has joined #nixos
patrl has quit [(Client Quit)]
hellrazo1 has quit [(Ping timeout: 268 seconds)]
acarrico has joined #nixos
acarrico has quit [(Quit: Leaving.)]
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
lambdamu_ has joined #nixos
erictapen has joined #nixos
dhess has joined #nixos
lambdamu has quit [(Ping timeout: 240 seconds)]
dhess has quit [(Remote host closed the connection)]
Neo-- has joined #nixos
mbrgm has quit [(Ping timeout: 268 seconds)]
mbrgm_ has joined #nixos
mbrgm_ is now known as mbrgm
jsgrant has quit [(Remote host closed the connection)]
ryanartecona has joined #nixos
asuryawanshi has joined #nixos
<viaken> Can anyone explain to me how to get acme, nginx, and a php webapp (specifically, ttrss) to actually work together? I'm not sure where to put what configs.
<viaken> I got as far as a blank HTTP 200 with my current config. The last iteration was getting a cert erro.r
asuryawanshi has quit [(Ping timeout: 248 seconds)]
axel_parolta has joined #nixos
<axel_parolta> Hi, I am new to nixos, so far the documentation helped me a lot to get up and running. I have most of my setup completed. However, I struggle with samba configuration. I found some examples online but I keep getting the message: Failed to start Samba Service Daemon nmbd. To be honest, I have no clue on how to get more information about what's wrong. Any help would be appreciated :)
moet has joined #nixos
<moet> are there alternative alias paths for the haskell compiler packages? i would like to make a shell.nix which defaults to "ghcWithHoogle" (not a specific compiler version), but the path to ghcWithHoogle is different from the typical compiler path
<clever> viaken: when using the acme modules in nixos, you have to restart nginx manualy after the cert is setup
<moet> nixpkgs.pkgs.haskellPackages.ghcWithHoogle vs nixpkgs.pkgs.haskell.packages.${compiler}.ghcWithHoogle
drakonis has quit [(Quit: Leaving)]
Wizek_ has quit [(Ping timeout: 248 seconds)]
marusich has joined #nixos
erictapen has quit [(Ping timeout: 240 seconds)]
data has joined #nixos
data is now known as Guest64238
ryanartecona has quit [(Quit: ryanartecona)]
ericsagnes has joined #nixos
orivej has quit [(Remote host closed the connection)]
orivej has joined #nixos
<moet> hmm...
<rnhmjoj[m]> axel_parolta: never used samba but you should find more information on the error in the journal: try `journalctl | grep nmbd`
moet has quit [(Quit: later.)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej opened pull request #31550: make-dbus-conf: prefer local build (master...dbus-1) https://git.io/vFwVb
NixOS_GitHub has left #nixos []
Neo-- has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] disassembler pushed 2 new commits to master: https://git.io/vFwwZ
<NixOS_GitHub> nixpkgs/master d2724f1 Renaud: lftp: 4.8.2 -> 4.8.3
<NixOS_GitHub> nixpkgs/master 65424ea Samuel Leathers: Merge pull request #31542 from c0bw3b/pkg/lftp...
NixOS_GitHub has left #nixos []
orivej_ has joined #nixos
jtojnar has quit [(Remote host closed the connection)]
orivej has quit [(Read error: Connection reset by peer)]
jb55 has joined #nixos
jtojnar has joined #nixos
theseriousadult has joined #nixos
hellrazor has quit [(Ping timeout: 240 seconds)]
schoppenhauer has quit [(Ping timeout: 268 seconds)]
schoppenhauer has joined #nixos
iyzsong has joined #nixos
jb55 has quit [(Ping timeout: 240 seconds)]
Arcaelyx_ is now known as Arcaelyx
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lukeadams opened pull request #31551: cudnn*_cudatoolkit*: use public NVIDIA mirror (master...cudnn_links) https://git.io/vFww7
NixOS_GitHub has left #nixos []
ericsagnes has quit [(Quit: WeeChat 1.9)]
jmc_fr has joined #nixos
ericsagnes has joined #nixos
asuryawanshi has joined #nixos
hellrazor has joined #nixos
ryanartecona has joined #nixos
p4cman has joined #nixos
asuryawanshi has quit [(Ping timeout: 240 seconds)]
marusich has quit [(Ping timeout: 240 seconds)]
jonasschnelli has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
ryanartecona has joined #nixos
Wizek has quit [(Quit: Connection closed for inactivity)]
hellrazo1 has joined #nixos
hellrazor has quit [(Ping timeout: 240 seconds)]
sigmundv has quit [(Ping timeout: 240 seconds)]
Guest64238 has quit [(Quit: nite nite)]
ylwghst-nix has joined #nixos
jmc_fr has quit [(Ping timeout: 240 seconds)]
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] taku0 opened pull request #31552: oraclejdk: remove JCE option (master...jdk9-remove-jce) https://git.io/vFwow
NixOS_GitHub has left #nixos []
rct has quit [(Quit: WeeChat 1.9.1)]
scribbler has quit [(Remote host closed the connection)]
scribbler has joined #nixos
rtjure has quit [(Ping timeout: 240 seconds)]
ryanartecona has quit [(Quit: ryanartecona)]
scribbler has quit [(Ping timeout: 248 seconds)]
scribbler has joined #nixos
rct has joined #nixos
scribbler has quit [(Remote host closed the connection)]
rtjure has joined #nixos
tnks has joined #nixos
<tnks> so some people informed me that Nixpkgs might not be aligned with Stackage LTS. I'd assumed that the cabal2nix auto-generation was Stackage overlaid on top of Hackage.
<tnks> Maybe with some customizations per-package as needed.
<tnks> but there's confusion of how best to describe what's in Nixpkgs, for those of use talking about it.
<tnks> (sorry, this is a Haskell infrastructure question).
<clever> tnks: when using just plain cabal2nix, it just expects the packages to already be in pkgs.haskellPackages, and uses whatever version nixpkgs contains
<clever> tnks: so it will depend on your nixpkgs revision, and what peti last commited when converting the hackage db into nixpkgs
<vaibhavsagar> tnks: your initial description sounds correct to me
<clever> via hackage2nix
<clever> tnks: there is also a stack2nix program, which will take your stack file, and generate a new haskellPackages set around that
<vaibhavsagar> there are three things here: all-cabal-hashes, the stackage LTS that haskellPackages is based on, and package-specific customisations
<vaibhavsagar> AIUI
<srhb> Yes, the right description is "sort of stackage LTS..."
<vaibhavsagar> tnks: which aspect of the haskell infra do you want help understanding?
scribbler has joined #nixos
ylwghst-nix has quit [(Remote host closed the connection)]
orivej_ has quit [(Ping timeout: 240 seconds)]
ryanartecona has joined #nixos
<srhb> Is the "test blocking channel" mechanism somewhere in the nixpkgs repo? More concretely, how do I make a new test block a channel upgrade?
<clever> srhb: http://howoldis.herokuapp.com/ links to the special test jobs
<srhb> clever: So the configuration is on Hydra?
<clever> srhb: ah, the comments here, and this job: https://github.com/NixOS/nixpkgs/blob/master/nixos/release-combined.nix#L41
<clever> lines 1-3, and 41
<srhb> Aha, I see
<srhb> Thanks!
asuryawanshi has joined #nixos
<tnks> vaibhavsagar: if my understanding of peti's work is right, that's good.
<tnks> it's just a bit of looking at code and version numbers to figure out the precise algorithm
asuryawanshi has quit [(Ping timeout: 268 seconds)]
seanparsons has quit [(Ping timeout: 268 seconds)]
<drp> how do I run a service as a specific user?
<srhb> drp: A NixOS service? I don't think there's infrastructure to support that.
<srhb> There's systemd.user.services for general systemd stuff.
asuryawanshi has joined #nixos
<drp> so I can't do say services.program.asuser = user ?
<drp> as an example
<drp> srhb, thanks for the answer
<srhb> drp: Oh, if you just want to override the user that runs the job, that should be possible
<srhb> Let me just check...
<drp> thanks, but bbl approx I've just been called out ;_;
<srhb> systemd.services.name.serviceConfig.User = "runuser"; I think
vcunat has joined #nixos
seanparsons has joined #nixos
asuryawanshi has quit [(Ping timeout: 240 seconds)]
nixos1022 has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/65424eac66 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
<srhb> Hmm.
<srhb> nox-review is failing on https://github.com/NixOS/nixpkgs/pull/31526 because it touches a lot of tests. Can't quite figure out why.
asuryawanshi has joined #nixos
<srhb> (nox-review wip --against 7ebacd1a43d7112c75555414d968be9fc4c564a4) where the against commit is current nixos-unstable
asuryawanshi has quit [(Ping timeout: 248 seconds)]
ma27 has joined #nixos
ma27 has quit [(Client Quit)]
ryanartecona has quit [(Quit: ryanartecona)]
asuryawanshi has joined #nixos
erictapen has joined #nixos
ma27 has joined #nixos
ma27 has quit [(Client Quit)]
playX has joined #nixos
<playX> I get this problem https://pastebin.com/NmtzsCP8 when launching minecraft with launcher, what i need to do to fix this problem?
<clever> playX: MC works fine when ran under multimc, which is packaged in nixpkgs
asuryawanshi has quit [(Ping timeout: 250 seconds)]
<playX> clever: but i'm launching from server launcher, how i can fix that problem? I think from multimc i can't login to my account in server
<clever> playX: multimc needs an Xorg session to run
<clever> playX: the library giving the failure is also X related, so i dont see that version working as a server
marusich has joined #nixos
<playX> but i'm launching in my xfce-session
playX_ has joined #nixos
<playX_> so i installed multimc, how i can launch it?
<clever> playX: then multimc should just work
<clever> playX: run MultiMC
<playX_> multimc: command not found
<clever> case sensitive
p4cman has quit [(Quit: Connection closed for inactivity)]
<playX_> but how i can launch my game from launcher, maybe i can fix problem with that file? https://imgur.com/a/XgqBn
playX has quit [(Ping timeout: 260 seconds)]
<clever> playX_: sounds like you will need to patch that launcher the same way multimc was patched
<playX_> add nixpkg of that launcher?
asuryawanshi has joined #nixos
asuryawanshi has quit [(Remote host closed the connection)]
patrl has joined #nixos
asuryawanshi has joined #nixos
patrl has quit [(Client Quit)]
patrl has joined #nixos
<cmcdragonkai> what's the best globalrc example for integrating gnu global with universal ctags and python pygments?
<playX_> clever: i need to make nixpkg of that launcher, right?
<clever> playX_: yeah
<playX_> clever: so i have RedServer.jar what i need to do with it, i look at default.nix of multimc but i don't know how to use jar file in nixpkg?
<playX_> clever: thanks for help
<playX_> clever: and how i can add src of jar file? I just need to use that nixpkg in directory with that jar?
jensbin has joined #nixos
teej has quit [(Quit: Connection closed for inactivity)]
jensbin has quit [(Client Quit)]
<clever> playX_: change the src= line
<playX_> i changed, but how that nix file find jar file?
<clever> all relative paths are relative to the file that contains them
<clever> so if you do ./foo.jar; it will look for foo.jar in the same directory as the nix file
<playX_> okay,thanks
<playX_> so i edited file, how i can launch it?
<hyper_ch> hi clever
patrl has quit [(Quit: WeeChat 1.9.1)]
<clever> playX_: load it with callPackage in a normal packageOverride
patrl has joined #nixos
<drp> srhb: Thanks!
<playX_> clever: i need .nix or .nixpkg format of file?
<playX_> clever: i created pkg, all good in that file? https://pastebin.com/afZgYUVn
patrl has quit [(Quit: WeeChat 1.9.1)]
<clever> playX_: lines 19 and 29 refer to different files
<clever> playX_: and in config.nix under packageOverrides, you need to do RedServer = pkgs.callPackage ./redserver.nix {};
<clever> packageOverrides are described in the nixpkgs manual
<playX_> configuration.nix or i need to create config.nix
<clever> depends on if you want to install it with nix-env or systemPackages
<srhb> Is there a description of #nixos-dev somewhere? It's not mentioned on nixos.org as far as I can see.
<playX_> clever: what i need to write in line 19?
<clever> playX_: the same path needs to be on both 19 and 29
<playX_> clever: and how i can launch it?
asuryawa_ has joined #nixos
<clever> playX_: after putting it into your packageOverrides, it can be installed like normal, the command you run is the name you gave it on 19/29
<playX_> no, no how i can lauch config.nix with callPackage?
<clever> nixpkgs loads config.nix
<clever> playX_: have you looked at the nixpkgs manual, the section on package overrides?
ambro718 has joined #nixos
<playX_> looked, and don't understand anything
asuryawanshi has quit [(Ping timeout: 240 seconds)]
<clever> playX_: you need to create a config.nix that contains the following
<playX_> created
<clever> { packageOverrides = pkgs: { RedServer = pkgs.callPackage ./redserver.nix {}; } }
<playX_> now i installing nix-package to lauch that file
<clever> and config.nix goes in ~/.config/nixpkgs/config.nix
asuryawa_ has quit [(Ping timeout: 268 seconds)]
<clever> then you can just nix-env -iA nixos.RedServer
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gebner pushed 1 new commit to master: https://git.io/vFwPe
<NixOS_GitHub> nixpkgs/master b7490c9 Gabriel Ebner: racket: fix build by using gcc7...
NixOS_GitHub has left #nixos []
<playX_> in home directory?
<clever> yeah
justbeingglad has joined #nixos
justbeingglad has left #nixos []
<playX_> if i don't have .config directory i need to create it?
<srhb> playX_: Yup.
patrl has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jensbin opened pull request #31553: pidginsipe: 1.22.1 -> 1.23.0 (master...pidginsipe) https://git.io/vFwPT
NixOS_GitHub has left #nixos []
<playX_> clever: what's wrong? https://imgur.com/a/9ffKM
<clever> playX_: oops, that should end with }; }
<clever> i missed a ; in my example
patrl has quit [(Client Quit)]
<playX_> where i need to put ; i putted at end, but not help
<clever> between the } and the }
<clever> { packageOverrides = pkgs: { RedServer = pkgs.callPackage ./redserver.nix {}; }; }
<playX_> ok, thanks
<playX_> hhh, another problem https://imgur.com/a/V46tm
<clever> you have 2 sets in the same file
<clever> { allowUnfree = true; packageOverrides = pkgs: { RedServer = pkgs.callPackage ./redserver.nix {}; }; }
<clever> you have to merge them correctly
Arcaelyx has quit [(Ping timeout: 240 seconds)]
<playX_> thanks for help, it's installed!
erictapen has quit [(Ping timeout: 260 seconds)]
playX has joined #nixos
<playX> clever: it's installed but i can't launch it:(
<playX> .redserver command not found
<clever> dont start the filename with a .
<clever> you may need to also remove that . in the nix exression and re-install
playX_ has quit [(Ping timeout: 260 seconds)]
<playX> re-installed, now $redserver command not found
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 2 new commits to gcc-7: https://git.io/vFwP2
<NixOS_GitHub> nixpkgs/gcc-7 16af748 Vladimír Čunát: libsepol: fixup build with gcc-7...
<NixOS_GitHub> nixpkgs/gcc-7 80e8e55 Vladimír Čunát: SDL2: disable parallel building...
NixOS_GitHub has left #nixos []
playX has quit [(Client Quit)]
<clever> playX: why did you put a $ in the name?, thats even more special then .
playX has joined #nixos
<playX> clever: typed in terminal redserver and command not found
<clever> according to line 19 of https://pastebin.com/afZgYUVn
<clever> you called the command RedServerV3
<playX> hmm, no i called redserver https://pastebin.com/vfZNkhc2
<clever> can you take a screenshot of it failing to run redserver?
<clever> did you reinstall it with nix-env after changing the name in the nix file?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] xvapx opened pull request #31554: pythonPackages.libnacl: 1.6.0 -> 1.6.1 (master...libnacl) https://git.io/vFwP1
NixOS_GitHub has left #nixos []
<playX> i typed nix-env --uninstall nixos.RedServer
<playX> clever: and then nix-env -iA nixos.RedServer
<sphalerite> Is there a good way to set up a binary cache via SFTP? nix copy with ssh only seems to be able to add to the actual store on the destination system, and sshfs is too unreliable
<clever> sphalerite: 2017-09-19 22:00:01< nh2> clever: do you know if there's a nix.* option for ssh-subsituter-hosts? Can't find anything on https://nixos.org/nixos/options.html. Or can I give ssh:// for the normal binary cache setting?
c0bw3b has joined #nixos
<clever> sphalerite: cant find a concrete example skimming over the logs
<clever> playX: what are the contents of the .nix file
<c0bw3b> Mic92 : Hello, is jackpot1136 just spamming and trolling on PR comments? I saw you deleted some of his messages
ma27 has joined #nixos
<playX> config.nix or reds.nix?
<clever> playX: redserver
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 2 new commits to master: https://git.io/vFwX8
<NixOS_GitHub> nixpkgs/master 88389f4 Vincent Laporte: ocamlPackages.containers: remove spurious dependency on oasis
<NixOS_GitHub> nixpkgs/master 27d2eef Vincent Laporte: ocamlPackages.gen: 0.4.0.1 -> 0.5
NixOS_GitHub has left #nixos []
simukis has joined #nixos
<clever> playX: what is the output of "ls -lh ~/.nix-profile/bin/" ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to python-unstable: https://git.io/vFwX4
<NixOS_GitHub> nixpkgs/python-unstable 05e62be Frederik Rietdijk: fixup
NixOS_GitHub has left #nixos []
FRidh has joined #nixos
<clever> playX: and nix-env -q ?
<playX> git-minimal-2.15.0 go-1.9.2 multimc-0.5.1 neofetch-3.3.0 redserver
<Mic92> c0bw3b: It looked like unrelated non-sense or gibberish. I looks like some kind of bot
<clever> playX: what is the output of "nix-build '<nixpkgs>' -A redserver"
<c0bw3b> Mic92 yes exactly.. I will diregard his comments on other PRs then. thanks
<clever> playX: you need to take out both the " at the start and the " at the end
<sphalerite> clever: I meant to upload to a binary cache
<clever> sphalerite: ah, only nix-copy-closure can upload over ssh
<clever> and nothing in nix is really meant to automate pushing, only pulling (hydra)
<playX> clever: error: attribute ‘redserver’ in selection path ‘redserver’ not found
<sphalerite> clever: but I don't want to upload to the remote store, I want to upload to a flat file binary cache that can be served directly via HTTPS
<clever> playX: oops, its called RedServer in that namespace
<clever> sphalerite: ahh, then you want nix-push + scp, i see where your problem is
<playX> clever: /nix/store/71x7z5m4l1cp0mh04b7b6j5s9srzi2i0-redserver
<sphalerite> But I don't have the space locally to create a copy of everything I want to push
<clever> playX: now run ls -lh on that path
<clever> sphalerite: yeah, i see the issue
<playX> clever: итого 4,0K dr-xr-xr-x 2 root root 4,0K янв 1 1970 bin
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to python-unstable: https://git.io/vFwXH
<NixOS_GitHub> nixpkgs/python-unstable 507e326 Frederik Rietdijk: fixup
NixOS_GitHub has left #nixos []
<clever> playX: and add /bin/ at the end
<playX> clever: /nix/store/71x7z5m4l1cp0mh04b7b6j5s9srzi2i0-redserver/bin: итого 0
<playX> итого it's total
<clever> sounds like something didnt work right when building
<playX> but all go right when building
<playX> i didn't see any errors
<clever> also, line 22 is wrong in here: https://imgur.com/a/GJQ8K
<clever> line 22 and 23 should be one line, line 24
<clever> fix that, then re-run the previous nix-build and paste its output to a pastebin
<hyper_ch> fpletz: Mic92: is it possible to bump zfs unstable to latest master?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] yegortimoshenko opened pull request #31555: python3.buildEnv: pick outputs correctly, refactor (master...python-buildenv/dev-nightmare) https://git.io/vFwXN
NixOS_GitHub has left #nixos []
<playX> clever: like this? https://pastebin.com/TSJxMwSd
ma27 has quit [(Quit: WeeChat 1.9.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gebner opened pull request #31556: racket: reenable docs by default (master...racket_docs) https://git.io/vFw1f
NixOS_GitHub has left #nixos []
ma27 has joined #nixos
<playX> clever: now all good? https://pastebin.com/Um1qaHZg
<clever> playX: you still merged 2 of the lines that shouldnt have been merged
ma27 has quit [(Client Quit)]
<clever> infact, you merged 3 of them together now
ma27 has joined #nixos
<clever> playX: it should be like this: https://pastebin.com/8d3vpQ0g
proteus-guy has quit [(Remote host closed the connection)]
<clever> yeah, that looks right
<playX> just nix-env -iA redserverv3 yes?
<playX> i changed name
<playX> and destination in config.nix
<clever> nixos.redserverv3
<srhb> globin: ping
<playX> clever: error: attribute ‘redserverv3’ in selection path ‘nixos.redserverv3’ not found
<playX> don't know what's wrong
<clever> you must use the name you used in config.nix
<playX> clever: i forgot, that laucher can't use openjdk
<playX> how i can use oraclejdk?
<clever> change the openjdk to oraclejdk
<playX> without number 8?
<clever> without any number
<playX> clever: oh thanks, launcher launched, waiting for client download
<playX> Yay, it's work!
<playX> clever: than you very much
<clever> yep
ma27 has quit [(Quit: WeeChat 1.9.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh force-pushed python-unstable from 507e326 to 2b6152e: https://git.io/v5aIf
<NixOS_GitHub> nixpkgs/python-unstable 12b98b0 Frederik Rietdijk: Python: pythonModule...
<NixOS_GitHub> nixpkgs/python-unstable ef933e4 Frederik Rietdijk: python.pkgs: use toPythonModule for packages defined outside python-packages.nix
<NixOS_GitHub> nixpkgs/python-unstable e1a1d61 Frederik Rietdijk: system-config-printer: recurse into python dependencies...
NixOS_GitHub has left #nixos []
ma27 has joined #nixos
asuryawanshi has joined #nixos
hellrazo1 has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vFw11
<NixOS_GitHub> nixpkgs/master 86ffe92 Marti Serra: pythonPackages.libnacl: 1.6.0 -> 1.6.1
<NixOS_GitHub> nixpkgs/master 74c92a3 Frederik Rietdijk: Merge pull request #31554 from xvapx/libnacl...
NixOS_GitHub has left #nixos []
jacob has joined #nixos
ssmike has joined #nixos
asuryawanshi has quit [(Ping timeout: 268 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh force-pushed python-unstable from 2b6152e to cb79639: https://git.io/v5aIf
<NixOS_GitHub> nixpkgs/python-unstable 29e29e5 Frederik Rietdijk: Python: the pythonModule attribute...
<NixOS_GitHub> nixpkgs/python-unstable 37a5774 Frederik Rietdijk: python.pkgs: use toPythonModule for packages defined outside python-packages.nix
<NixOS_GitHub> nixpkgs/python-unstable 630029c Frederik Rietdijk: system-config-printer: recurse into python dependencies...
NixOS_GitHub has left #nixos []
thc202 has joined #nixos
scribbler has quit [(Ping timeout: 240 seconds)]
marusich has quit [(Ping timeout: 268 seconds)]
scribbler has joined #nixos
<mbrgm> can I declare a value in a nixos module, in order for this value to be used in some other place?
<mbrgm> hmm, that was not very clear...
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
tmaekawa has joined #nixos
<mbrgm> what I want to do: when a module I'm authoring is enabled, then there should be some attributes available from config.services.<module>.<somevalue> to be used somewhere else, but I don't want that attribute to be configurable
<mbrgm> i.e. a read-only config option, which is derived from the rest of the module options
<srhb> mbrgm: Naively I'd expect it to be possible by just setting the value to whatever without use of mkOption or friends.
<srhb> mbrgm: Have you tried that?
<mbrgm> srhb: nope, I'll try it.
<srhb> Otherwise I guess you can hack it together with a check that disallows any value but yours.
<mbrgm> srhb: can't just set it :-/
<srhb> Or enum.
<srhb> In fact, enum should just Do That.
<taaperotassu> I am using i3wm and lxappearance for other appearance setup.. wondering if this has occured to u guys too? Most of the icon themes are like .. not working
nh2 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh force-pushed python-unstable from cb79639 to fe7ee2e: https://git.io/v5aIf
<NixOS_GitHub> nixpkgs/python-unstable ff47c02 Harmen: go: use absolute dir in getGoDirs()
<NixOS_GitHub> nixpkgs/python-unstable eb07515 Pallav Agarwal: sdcv: 0.4.2 -> 0.5.2
<NixOS_GitHub> nixpkgs/python-unstable 8b49bbf Mekeor Melire: st: add description and use https for homepage.
NixOS_GitHub has left #nixos []
tmaekawa has quit [(Quit: tmaekawa)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh force-pushed python-unstable from fe7ee2e to 23761be: https://git.io/v5aIf
<NixOS_GitHub> nixpkgs/python-unstable 0a2ce19 Frederik Rietdijk: Python: the pythonModule attribute...
<NixOS_GitHub> nixpkgs/python-unstable 4940b05 Frederik Rietdijk: python.pkgs: use toPythonModule for packages defined outside python-packages.nix
<NixOS_GitHub> nixpkgs/python-unstable 269fa19 Frederik Rietdijk: system-config-printer: recurse into python dependencies...
NixOS_GitHub has left #nixos []
<srhb> Can I somehow rewrite the entire nix store? I originally mistakenly had dedup on the zfs pool, and I want to get rid of it.
ShalokShalom_ has joined #nixos
<adisbladis> Hmpfh :/ I really don't like bluetooth.
<srhb> Maybe repair will do it..
<adisbladis> For no reason what so ever my bt keyboard is not being detected.
<vcunat> srhb: copy everything out and then rewrite it back?
<srhb> vcunat: You mean mounting it writable by hand?
ShalokShalom has quit [(Ping timeout: 240 seconds)]
<vcunat> yes, remount as writable
<srhb> Sounds fun! I'll try that. :P
<vcunat> (it will only be writable by root, so relatively safe)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 3 new commits to master: https://git.io/vFwDH
<NixOS_GitHub> nixpkgs/master 45431be Vincent Laporte: ocamlPackages.ocaml_gettext: 0.3.5 -> 0.3.7
<NixOS_GitHub> nixpkgs/master d9dd542 Vincent Laporte: ocamlPackages.angstrom: remove spurious dependency on oasis
<NixOS_GitHub> nixpkgs/master dd1a9fa Vincent Laporte: ocamlPackages.nocrypto: remove spurious dependency on oasis
NixOS_GitHub has left #nixos []
<vcunat> I've been running in that mode because I wanted to periodically btrfs defrag /nix/store (non-recursively)
<srhb> Right :)
<vcunat> It still appears that most filesystems don't optimize for huge directories, by default
<vcunat> I'm on 1/4 million entries ATM
nh2 has quit [(Ping timeout: 268 seconds)]
<srhb> Yeah, it's a little painful.
<toppler> I'm getting the same issue as MPE in http://lpaste.net/359954. I'm not using c2hs, but hand-rolled Haskell bindings to ALSA.
<toppler> *MP2E
<srhb> toppler: Someone rolled an override in this channel earlier to fix that.
<toppler> Cool.
<toppler> (nvm comment about hand-rolled bindings. I thought c2hs was one of the binding generators)
<srhb> toppler: It was averell. Do you have scrollback enough to find it?
<toppler> No lol. I was right after all. Mine are hand-rolled.
<toppler> srhb: Yep. Cheers.
<srhb> Cool. :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 2 new commits to gcc-7: https://git.io/vFwy3
<NixOS_GitHub> nixpkgs/gcc-7 f52bafe Vladimír Čunát: aspell: fix build with gcc-7 via upstream patch
<NixOS_GitHub> nixpkgs/gcc-7 4efdd7e Vladimír Čunát: libjack2: fix build with gcc-7 via upstream patch
NixOS_GitHub has left #nixos []
<Yaniel> is steam broken on nixos-unstable for anyone else?
<vcunat> Yaniel: broken in what way?
<srhb> Protip: Do NOT cp -rf /nix/store2/* /nix/store/
<srhb> Systemd took the kernel down in a glorious panic.
<vcunat> :-)
<clever> srhb: a: it will probably overload the argv limit, b: its not atomic, it will delete a directory, then slowly re-populate it
<Yaniel> vcunat: "you are missing the following 32-bit libraries..." and then it fails to load steamoverlay.so and dies
<srhb> yep.. :P
<clever> srhb: if you add this module, you can boot into a recovery env, then make the changes with nixos "off"
ma27 has quit [(Ping timeout: 258 seconds)]
takle has quit [()]
<srhb> clever: That's really nice.
<clever> Yaniel: did you set hardware.opengl.driSupport32Bit = true; ?
<clever> srhb: i recently used that module to split /nix/ out of my / dataset and make a new /nix/ dataset
<clever> srhb: so snapshots didnt try go save everything i GC'd
<adisbladis> Gah... Anyone with experience debugging bluez?
<vcunat> Yaniel: steam fails to update for me :-(
<srhb> clever: Useful! I'll try enabling it right away.
<Yaniel> yes, and it still worked yesterday
<vcunat> (the part when it runs and re-downloads itself)
<adisbladis> clever: Huh?
<clever> adisbladis: ive had a lot of trouble before with getting bluetooth to work
<clever> adisbladis: placing all bluetooth dongles into a 55 galon drum of gas "solves" the problem :P
playX has quit [(Ping timeout: 260 seconds)]
<adisbladis> clever: I don't even know what questions to ask.. And a lot of the bluez tooling I have used in the past is now deprecated.
<adisbladis> clever: But if I _want_ my bluetooth to work? ;)
<srhb> adisbladis: There's an old version of bluez with the tools handy if you need them desperately
<srhb> I'm not sure they really have any replacements at all
<flokli> rycee: is there a home-manager-specific channel, or is it fine to just ask here?
<srhb> flokli: Here is just fine in general :)
<flokli> srhb: okay, great :-)
<srhb> clever: What's that $drive1 thing?
<srhb> Something is trying to write to /boot (which I don't have. I do have /boot1 and /boot2 though)
<clever> srhb: thats a path that the existing grub config sets up
<flokli> I added sane using hardware.sane.enable=true and added an additional backend using hardware.sane.extraBackends (hplip) in my system configuration. However, if I now add an application which needs sane (like simple-scan) to my home environment, a second sane gets pulled in (without the extraBackend), so my scanner doesn't get find.
<srhb> clever: Hm..
<clever> srhb: are you using grub or systemd-boot?
<flokli> Any ideas how to use the system-wide sane (without moving simple-scan to the system environment)?
<srhb> clever: I'm using grub, with mirroredBoots
<clever> srhb: ah, i dont think boot.loader.grub.extraFiles supports mirroredBoots
<srhb> Ah, that explains.
<clever> srhb: try symlinking /boot to /boot1/
<clever> and then manualy copy the 2 rescue files to /boot2
<srhb> clever: Yep, that works. Thanks. :)
* clever heads to bed
<toppler> srhb: Ack. Sorry, I'm new to the overlays system. I've got my own alsa package that I add in nixpkgs.config.haskellPackageOverrides in my configuration.nix, and which is then pulled in by windowManager.xmonad.extraPackages. I'm not sure where to put that overlay in my configuration.nix. I've tried adding it as nixpkgs.overlays but to no effect.
<srhb> toppler: nixpkgs.overlays is right, what did you write?
hellrazor has joined #nixos
joehh has joined #nixos
<clever> toppler: line 4 just leaves a stray attribute in the middle of the nixpkgs config, that will never be read by anything
<clever> toppler: and line 26 sets the nixpkgs attribute of the config, which is also never read
<clever> if that indent is right...
<clever> ah no, 26 is seperate
<toppler> Yeah, I should have moved that first { onto the previous line.
<clever> 4 is still of no use
<clever> oh, and 31 is also of no use
<clever> that is applying an override to pkgs.language-c
<clever> not haskellPackages.language-c
<toppler> The block at line 4 is definitely evaluated.
<toppler> If I comment it out, it complains that it can't find PhiledAlsa.
<clever> how are you refering to PhiledAlsa?
<toppler> But that haskellPackages thing might be my problem.
<toppler> With pkgs.PhiledAlsa
<clever> strange
ma27 has joined #nixos
<clever> anyways, its now 7am
<clever> i should have gotten to bed long ago
<flokli> :-D
<toppler> clever: Cheers anyway. Will keep trying!
FRidh has quit [(Read error: Connection reset by peer)]
FRidh has joined #nixos
<srhb> toppler: Sorry, I was away for a while.
capisce_ has joined #nixos
<srhb> toppler: The overlay is supposed to override haskellPackages
<srhb> toppler: If you scrollback to the conversation with averell you will also find that correction.
capisce has quit [(Ping timeout: 240 seconds)]
<rycee> flokli: Yeah, I think here is ok.
<flokli> rycee: srhb already told me to just ask. Did you read about the sane thing and have an idea?
<srhb> flokli: Is your user using the same channel as the system one?
<srhb> Just a sanity check :)
<toppler> srhb: Cheers. I'm still having difficulty though, since this is going in my configuration.nix, and I don't have a super for super.haskellPackages.extend.
<flokli> srhb: I call both home-manager and nixos-rebuild with -I to my custom checkout of nixpkgs
<Yaniel> vcunat: the update seems to succeed here, but after that it fails to start
<flokli> srhb: Is that enough?
<rycee> flokli: Hmm, I don't know much about such things. If you are using `home.packages` then that is basically the same as using `nix-env -iA` so its a bit out of HMs control.
<srhb> toppler: (self: super: haskellPackages = super.haskellPackages.extend (selfHS: SuperHS: { language-c = ...
<vcunat> hmm, strange
<srhb> flokli: Yeah, should be.
<srhb> toppler: Please fix my strange capitalization :P
<toppler> Hooray!
<toppler> Thanks for the help!
romildo has joined #nixos
<gleber_> I am playing with nixos tests. Trying to write a test which verifies `nixos-rebuild` does a thing correctly. Looks like test machine does not have necessary env setup for it to work. Did anyone look into this before?
joehh has quit [(Ping timeout: 240 seconds)]
<rycee> flokli: Maybe simple-scan brings in the sane package just to use the library? The library then uses the system sane setup?
<srhb> toppler: I would also suggest using either overlays or packageOverrides, but it's not essential. :P
<toppler> srhb: In preference to nixpkgs.config.haskellPackageOverrides?
<rycee> flokli: I'm not sure why they'd use a different sane package though.
joehh has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to gcc-7: https://git.io/vFw9G
<NixOS_GitHub> nixpkgs/gcc-7 c65c1f6 Vladimír Čunát: dhcp: fixup build with gcc-7 (ignore warning)...
NixOS_GitHub has left #nixos []
<srhb> toppler: Yes. At least, I'd prefer having them both in overlays.
<romildo> I need help squashing the commits from https://github.com/NixOS/nixpkgs/pull/31532#pullrequestreview-75948989.
romildo has left #nixos []
romildo has joined #nixos
<srhb> romildo: What's the issue? :)
<rycee> flokli: Did you log out and back in after changing the extraBackends setting?
<flokli> rycee: let me check.
<romildo> srhb, I am getting the following output from git:
<romildo> $ git push origin upd.enlightenment
<romildo> To github.com:romildo/nixpkgs.git
<romildo> ! [rejected] upd.enlightenment -> upd.enlightenment (non-fast-forward)
<romildo> error: failed to push some refs to 'git@github.com:romildo/nixpkgs.git'
<romildo> hint: Updates were rejected because the tip of your current branch is behind
<romildo> hint: its remote counterpart. Integrate the remote changes (e.g.
<romildo> hint: 'git pull ...') before pushing again.
<romildo> hint: See the 'Note about fast-forwards' in 'git push --help' for details.
<srhb> romildo: If you already squashed the commits that were upstream, you have to force push your changes.
<srhb> (Since it now has some commits that don't exist in your local branch)
<romildo> srhb, then I should try adding the --force option on the push command, right?
capisce_ has quit [(Read error: Connection reset by peer)]
<srhb> romildo: That's right.
<flokli> rycee: it seems like this was fixed by logging in out and back in :-)
<rycee> flokli: Cool :-)
<flokli> rycee: next question, wanted to fix something in home-manager, but it seems like I don't understand the docs correctly about specifying a custom checkout of the home-manager repo
joehh has quit [(Ping timeout: 240 seconds)]
Wizek_ has joined #nixos
<flokli> i did set programs.home-manager.path in home.nix, but home-manager complains "error: The option `programs.home-manager.path' defined in `<unknown-file>' does not exist"
<romildo> srhb, yes, that workded. Thanks.
<flokli> and --show-trace also doesn't get passed through btw
<srhb> romildo: You're welcome! :)
Wizek has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to gcc-7: https://git.io/vFw9u
<NixOS_GitHub> nixpkgs/gcc-7 9e7021c Vladimír Čunát: json-c*: fixup build with gcc-7 (ignore warning)
NixOS_GitHub has left #nixos []
<rycee> flokli: Hmm, do you have an old version of home manager?
<rycee> flokli: I have `programs.home-manager.path = "$HOME/devel/home-manager";` in my configuration.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 pushed 1 new commit to release-17.09: https://git.io/vFw96
<NixOS_GitHub> nixpkgs/release-17.09 f56945b Tor Hedin Brønner: nix-zsh-completions: 0.3.1 -> 0.3.2...
NixOS_GitHub has left #nixos []
<flokli> rycee: yes, seems I still had an old version installed. works now. thanks :-)
<rycee> flokli: Np :-)
asuryawanshi has joined #nixos
orivej has joined #nixos
asuryawanshi has quit [(Ping timeout: 268 seconds)]
hexamod has joined #nixos
<srhb> Can I un-optimize the store? What happens if I delete /nix/store/.links ?
<Dezgeg> it doesn't get unoptimized since the hard links still exist in the actual store paths
<srhb> What does it do then?
<srhb> Tracks what is already hard linked?
<Dezgeg> yes
<srhb> I see, okay.
capisce has joined #nixos
ma27 has quit [(Ping timeout: 252 seconds)]
adamt has joined #nixos
ma27 has joined #nixos
joehh has joined #nixos
<gfixler> copumpkin: when you were helping me understand compiling vim with overrides the other day...
<gfixler> copumpkin: should that have been installing vim in the nix path for me?
<gfixler> copumpkin: I'm playing with settings and recompiling, but vim doesn't seem to change
<srhb> gfixler: Where are you installing it? And check "which vim"
<gfixler> srhb: which vim gives me /home/gfixler/.nix-profile/bin/vim
<srhb> gfixler: So I'm assuming you nix-env -iA'ed it?
<gfixler> srhb: no I'm building a vim.overrides in nix.repl
<srhb> Oh!
<gfixler> srhb: is there still an install step after that?
<srhb> That's entirely transient, yes.
<gfixler> e.g.
<gfixler> :b vim.overrideAttrs (orig: { configureFlags = orig.configureFlags ++ [ "--with-features=huge" "--enable-pythoninterp=yes" "--with-python-config-dir=${python}/lib/python2.7/config-x86_64-linux-gnu/" "--enable-clipboard=yes" ]; })
<srhb> You'll want to save that expression as an overlay or packageOverrides in your ~/.config/nixpkgs
<gfixler> srhb: most of that is by copumpkin
<gfixler> srhb: okay, not quite to the "where do I put these .nix files?" step yet :)
<gfixler> srhb: it's making sense now - the vims I've been building aren't the one I installed
<gfixler> srhb: that one I now recall I got via nix-env -i vim
<gfixler> wow, I don't have a ~/.config/nixpkgs yet
<srhb> gfixler: No, it doesn't get auto created :)
<gfixler> srhb: so I passed in the argument "--enable-clipboard=yes" to the override here
<gfixler> srhb: and it told me it created this out -> /nix/store/kplmdi6zaw0gischd6nvyla1vspk7z07-vim-8.0.1257
<gfixler> srhb: and when I run /nix/store/kplmdi6zaw0gischd6nvyla1vspk7z07-vim-8.0.1257/bin/vim - it's -clipboard
<gfixler> when does gc happen? making a lot of vims here :)
<srhb> gfixler: Whenever you run nix-collect-garbage
<srhb> gfixler: There's also https://nixos.org/nixos/options.html#nix.gc
<gfixler> srhb: wow, 11248 store paths deleted, 407.04 MiB freed
<srhb> gfixler: That's nothing! I just had a 30G gc :P
<srhb> But I do like to keep things around...
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
<gfixler> srhb: I always seem to be fighting for space
erictapen has joined #nixos
ma27 has quit [(Ping timeout: 240 seconds)]
<gfixler> it occurred to me the other day that Nix really needed drives to become cheap before it could be a thing
<srhb> gfixler: Do you have compression on on your /nix/store ? and auto optimisation?
<srhb> The latter you can try with nix-store --optimize
<gfixler> srhb: not there yet, but I'm fine for now
<srhb> Ok :) It just hard links identical files.
<gfixler> srhb: sweet! That was also a thing I was preaching before someone said "You're talking about NixOS, look it up." :)
<srhb> Hehe!
bennofs has joined #nixos
joehh has quit [(Ping timeout: 268 seconds)]
<srhb> gfixler: This is a learning project, right? We have a vim configurable as well.
<srhb> But it's not as simple to get your feet wet with.
<gfixler> srhb: yes, I'm a first-principles guy, trying to really grok it all
<gchristensen> gfixler: yes, nix uses extra space to provide extra sanity :)
<gfixler> gchristensen: that's how I feel about Haskell
<gfixler> gchristensen: I hear you can write really tight stuff in C++, but... no thanks.
ma27 has joined #nixos
<gfixler> srhb: I'll want to learn about vim configurable at some point, of course
<srhb> gfixler: Yeah, just making sure. OK, so here's what you need
<srhb> gfixler: The build inputs require (as far as I can see) libX11, libXtst and libXt in order for --enable-clipboard to work
<srhb> They're in the xorg attribute.
<gfixler> srhb: ah, of course
<srhb> So something like...
<srhb> buildInputs = orig.buildInputs ++ (with self.xorg; [ libX11 libXtst libXt ]);
<gfixler> srhb: had just been thinking about that, too, looking at all the "make sure you have the following" in the non-nix install scripts
erictapen has quit [(Ping timeout: 240 seconds)]
<srhb> I think it's rather derp that the configure script doesn't just fail when they're not available.
<gfixler> srhb: that answers that question - just didn't have all the deps
<srhb> But there you go...
<gfixler> it is derp
<srhb> And because I like prettyness, here's an example ~/.config/nixpkgs/overlays/gfixlervim.nix http://nixpaste.lbr.uno/NG3boRzH?nix
<srhb> Which you can launch easily with nix-shell --pure -p gfixler
<srhb> (Well, a shell in which it's in scope)
<srhb> (super is nixpkgs before the overlay, and self is nixpkgs after the overlay, the fix point)
<gfixler> srhb: the thing I never hear is how you went about determining that you needed libX11, etc
<srhb> gfixler: Why, I'm very smart, of course. (Stackoverflow.)
<gfixler> e.g. I only just learned about ./configure --help to find compile options
<gfixler> srhb: ah, okay - was hoping there was a command
<srhb> Sorry. :-P
<gfixler> srhb: no worries - it's a lot better than mystery
<srhb> If the configure script were sane I'd have had it fail until it told me all the missing libraries.
<srhb> Alas...
<gfixler> srhb: it's all so messy
<srhb> Software... Who can live with it?
<gfixler> srhb: "--with-python-config-dir=${self.python}/lib/python2.7/config-x86_64-linux-gnu/"
<gfixler> srhb: that line from copumpkin had /config/ at the end
<srhb> gfixler: Uh, not sure how I mangled that.
<gfixler> srhb: I guessed maybe it wasn't working as I have /config-x86.../ in my own pc
<gfixler> srhb: but I don't know - maybe in nix it's config/
<srhb> easy to see..
<gfixler> srhb: howso?
<srhb> ls $(nix-build '<nixpkgs>' -A python)
<srhb> Uh, that will leave a result in your cwd. Might want --no-out-link for nix-build to prevent that
theseriousadult has quit [(Ping timeout: 240 seconds)]
<betaboon> LnL: i tried to adopt your nix-daemon.plist, but i don't think it has any effect as i havent seen any network-traffic on the network-interface with the build-virtualmachine.
<gfixler> srhb: lol, bin include lib nix-support share
<gfixler> srhb: no config dir
<srhb> gfixler: It was in lib. :)
<srhb> /nix/store/f6pmgza1hha574hm76p98mc2s6gsn3y8-python-2.7.14/lib/python2.7/config/ on my system
<betaboon> as i cant run docker on this macbook, i am using the demo-virtualbox, enabled ssh and made sure root can do passwordless ssh into that virtual machine using the name in /etc/nix/machines.
<gfixler> srhb: ah, there it is
<betaboon> a description (including the plist etc) can be found here: https://gist.github.com/betaboon/b239ce3730d0ba99e6c0b60bdaab8977
<betaboon> i would be happy for any ideas
<betaboon> for anyone else: i
<betaboon> I'm talking about the macos+nix+nixops+buildvm issue
tgunb has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/f56945bfc4 (from 77 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
<axel_parolta> Hi, I am new to nixos, so far the documentation helped me a lot to get up and running. I have most of my setup completed. However, I struggle with samba configuration. I found some examples online but I keep getting the message: Failed to start Samba Service Daemon nmbd. To be honest, I have no clue on how to get more information about what's wrong. Any help would be appreciated :)
magnetophon has joined #nixos
<axel_parolta> I tried https://nixos.wiki/wiki/Samba
<Yaniel> https://nixos.org/nixos/options.html#samba I recommend checking this, should be more up to date than the wiki
<srhb> axel_parolta: and journalctl -u nmbd might help
<srhb> Or is it -u samba
<srhb> One of those :)
simukis has quit [(Ping timeout: 248 seconds)]
jtojnar has quit [(Ping timeout: 248 seconds)]
ma27 has quit [(Ping timeout: 264 seconds)]
jtojnar has joined #nixos
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<axel_parolta> srhb: there's nothin in the journalctl -u nmbd. The only error message I got is during the config switch..Nov 11 22:30:05 axel-parolta-desktop systemd[1]: Starting Samba Service Daemon nmbd...
<axel_parolta> Nov 11 22:30:05 axel-parolta-desktop systemd[1]: samba-nmbd.service: Main process exited, code=exited, status=1/FAILURE
<axel_parolta> Nov 11 22:30:05 axel-parolta-desktop systemd[1]: Failed to start Samba Service Daemon nmbd.
<axel_parolta> Nov 11 22:30:05 axel-parolta-desktop systemd[1]: samba-nmbd.service: Unit entered failed state.
<axel_parolta> Nov 11 22:30:05 axel-parolta-desktop systemd[1]: samba-nmbd.service: Failed with result 'exit-code'.
<srhb> Helpful.
hexamod has joined #nixos
<LnL> betaboon: did you reload the daemon service?
<gfixler> srhb: tried nix-shelling that nixpaste
ThatDocsLady has joined #nixos
<gfixler> srhb: got error on missing # include <Xm/Xm.h>
<betaboon> LnL: i used `sudo launchctl unload /....nix-daemon.plist` and load -w
<srhb> gfixler: Huh, odd.
<gfixler> srhb: but I'll track it down later
ixxie has joined #nixos
<LnL> betaboon: does this include the variables? sudo launchctl print system/org.nixos.nix-daemon
<betaboon> LnL: just to clarify I'm still running nix-1.11.15
<adisbladis> srhb: It turns out putting the dongle in gasoline _does_ solve the problem =)
<srhb> adisbladis: Wasn't my suggestion! But I approve.
<axel_parolta> srhb: Yeah, I have no clue how to find the issue with that useless log..
<adisbladis> Ahh mixing up :)
<adisbladis> clever: ^
python476 has joined #nixos
<betaboon> LnL: it does
<adisbladis> It turns out the problem was the hardware all along.
<LnL> betaboon: that's fine, you need to use build-remote.pl instead of build-remote then but you did that
<LnL> betaboon: did you create the NIX_CURRENT_LOAD directory?
<betaboon> LnL: i did
jtojnar has quit [(Remote host closed the connection)]
tgunb has quit [(Ping timeout: 248 seconds)]
<LnL> does sudo ssh -i /var/root/.ssh/id_rsa nix-vbox-build-slave -- uname -a work?
mkbucc has joined #nixos
<axel_parolta> srhb: would you have a known to work config that I could try?
<srhb> axel_parolta: I'm afraid I don't use samba.
<mkbucc> hi all
<mkbucc> new nix user with a basic question ...
jtojnar has joined #nixos
tgunb has joined #nixos
<mkbucc> I am setting up a server where I'll be upgrading an app regularly. Not 100% sure of difference between putting app in /etc configuration or using nix env.
<srhb> mkbucc: Non-NixOS?
<mkbucc> As best I can figure, with nix-env I can rollback to previous version if I need to. Not so (or harder to do with /etc/nix/Configuration).
seppellll has joined #nixos
<srhb> It's a tradeoff of course. I like to have my deployments in the global config because I also tend to set up systemd services and such for them.
<mkbucc> ic
<srhb> I meant, is the server a NixOS server or some other distribution?
<mkbucc> nixos server
<srhb> Well.. It's a matter of taste, but I'd use the system wide config. :)
<mkbucc> if in global config, how do you rollback? just revert config file and nixos-rebuild switch?
<srhb> I don't think rollbacks are really harder.
<srhb> nixos-rebuild --rollback
ed-packet has joined #nixos
<gchristensen> oh hi, ed-packet!
<ed-packet> oh hi, gchristensen !
<gchristensen> I was just writing y'all an email =)
<betaboon> LnL: yes uname via ssh works.
<axel_parolta> srhb: It seems that I found the issue. For some reason securityType = "share" make it fails, if I switch to securityType = "user" it works..
<ed-packet> was just thinking about nixos on arm64 and was wondering if it was time to give it a go again
<srhb> axel_parolta: Okay, nice that you found it :)
<gchristensen> ed-packet: yeah, Jacob mentioned someone at packet might be able to help out?
<vcunat> Sigh, I suspect cache.nixos.org started to rate-limit my downloads.
<srhb> mkbucc: But really I tend to use nixops to manage my servers.
<ed-packet> what sort of help do you need? (thinking of who that right person might be)
<axel_parolta> srhb: Just wondering what's wrong with the "share" value as it is in the documentation example..
<gchristensen> vcunat: it ... shouldn't? we pay good money for them to distribute stuff
<srhb> axel_parolta: On the wiki? All the information there isn't accurate, but you can perhaps open an issue on the topic.
<gchristensen> ed-packet: jacob said on 2017-11-06 that there is a new person who could help, but I was out on a 2week vacation at the time :)
<axel_parolta> srhb: well it on nixos.org/nixos/options.html#samba
<LnL> betaboon: oh wait you have /root/.ssh in the machine config
<ed-packet> ah yes, the new person is avi, he'd be ideal for system wrangling
<vcunat> gchristensen: I don't have much experience with these services.
<gchristensen> nice
seppellll has quit [(Ping timeout: 240 seconds)]
<srhb> gchristensen: Can grahamcofborg build nixos tests?
<gchristensen> vcunat: what are you seeing?
<jluttine> how can i disable internet connection in configuration.nix? i'd like to have a setup which doesn't have possibility for internet connections
<axel_parolta> srhb: where should I open the issue? On github?
<gchristensen> srhb: hmm... no ... but it could .... what would you like to say to it, for it to build the test?
<ed-packet> and also we have enough type 2a inventory now that a spot market works for machines
<srhb> axel_parolta: Yeah :)
zzamboni has joined #nixos
<vcunat> gchristensen: download from it dropped to approximately constant rate of ~200 KB/s
<gchristensen> ed-packet: ooh nice
<srhb> gchristensen: build test name ?
<srhb> gchristensen: And then it'd grab from release?
<axel_parolta> srhb: Will do, thanks for your time. I really appreciate :)
<gchristensen> srhb: and `name` would be ./nixos/tests/<name>.nix?
jtojnar has quit [(Remote host closed the connection)]
<srhb> Oh if it's just going by path I'd prefer to feed it the path itself :)
<srhb> As in, build nixos/tests/name.nix
<gchristensen> oh I see
<mkbucc> srhb: i'll read up on nixops. thanks.
<srhb> mkbucc: You're welcome. :)
<srhb> axel_parolta: Thanks for contributing! :-)
<gchristensen> ed-packet: let's do a group chat, you, me, avi, perhaps jacob, and a couple people from nixos who are more directly experienced with nixos-on-arm (cc Dezgeg, clever, sphalerite) and see what to do?
ixxie has quit [(Ping timeout: 248 seconds)]
jtojnar has joined #nixos
<ed-packet> sounds good. if you can send an email over I'll reply with avi's details and we can sort out a best time for a convo considering everyone's time zone
<gchristensen> ed-packet: to be honest, w.r.t. arm, I'm more of a facilitator than anything else :) I don't actually know too much about compiler toolchains and architectures
<gchristensen> great, I'll PM some people here and get the info. could you all meet on IRC? that'll be easiest for the other people here
<ed-packet> gchristensen: i don't really either, but I suspect that we can nibble away at packages one at a time and assess degree of difficulty on the way
<gchristensen> :D
<gchristensen> one moment ...
<ed-packet> an irc meeting would be fine,
<gchristensen> ed-packet: I made #nixos-aarch64 to gather in
tgunb has quit [(Ping timeout: 268 seconds)]
p4cman has joined #nixos
<LnL> betaboon: /root doesn't exist it's /var/root
pie_ has quit [(Ping timeout: 248 seconds)]
<ij> How do I start a nix-shell based on the env attribute of the resulting set of a default.nix's evaluation?
rogue_koder has quit [(Ping timeout: 248 seconds)]
<betaboon> LnL: meh. overlooked that. after changing the machines-file, do i have to reload the nix-daemon?
seppellll has joined #nixos
<vcunat> betaboon: no, in my experience you don't need to
<vcunat> (but I'm Linux/NixOS)
<LnL> that should be neccecary, only for the daemon and nix.conf
<LnL> shouldn't
<vcunat> :-)
<gleber_> Anyone knows how to create a test machine via `nixpkgs/nixos/tests` where `nixos-rebuild` would work? My only idea is to do it via installing Nixos on that machine the same way `nixpkgs/nixos/tests/installer.nix` does it
<betaboon> hm. still no network traffic on the build-vm
tgunb has joined #nixos
<infinisil> ij: Maybe nix-shell -p '(import ./.).env' or nix-shell -E '(import ./.).env'
<infinisil> something like that
<betaboon> LnL: speaking of nix.conf. should build-max-jobs be 1 to prevent nix to attempt to build locally ?
ma27 has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
zzamboni has joined #nixos
<infinisil> betaboon: 0 would do that I think, because well, with 1 max job you can still run a job.
<srhb> betaboon: 0, I assume
<betaboon> so i should set it to 0 ?
<betaboon> why 0? in order to prevent the local nix to build at all ?
<ij> infinisil, Okay, this worked. nix-shell -E '((import <nixpkgs> {}).callPackage ./default.nix {})'
<srhb> betaboon: Yes, wasn't that the goal?
<infinisil> ij: oh you have a callpackage callable default.nix, i see
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mankarse opened pull request #31559: glog: 0.3.4 -> 0.3.5 (master...glog-v0.3.5) https://git.io/vFwFU
NixOS_GitHub has left #nixos []
<ij> Is it always verbose like this?
<ij> infinisil, Also yeah, I did the callPackage pattern. Should I have done that?
<LnL> you can set it to 0, but you're trying to build for another platform so doesn't really matter
<betaboon> srhb: the question was, if changing build-max-jobs is required in order to get distributed build to work correctly
<srhb> Oh, it's not.
<infinisil> ij: Doesn't matter really, callPackage pattern integrates better with nixpkgs and let's you override stuff easily
romildo has left #nixos ["Leaving"]
rogue_koder has joined #nixos
<betaboon> argh strace on macos is marked as broken ? :(
ericsagnes has quit [(Ping timeout: 268 seconds)]
<LnL> use dtruss
<betaboon> LnL: is that in nixpkgs ?
<LnL> you'll want the system one, needs to be signed to work
<betaboon> ah its on macos by default... stupid me
<ij> Okay, I've got rails in my $PATH now. :)
<infinisil> ij: Oh and there is a tiny script in nixpkgs/maintainers/scripts/nix-call-package which does callPackage for you
<infinisil> ~/src/nixpkgs/maintainers/scripts/nix-call-package path/to/your/default.nix
<ij> Cool!
ma27 has quit [(Ping timeout: 250 seconds)]
<ij> Can I do a nix-shell with that?
<infinisil> oh, you can't, whoops
<ij> :P
asuryawanshi has joined #nixos
ThatDocsLady has quit [(Quit: Leaving)]
<betaboon> LnL: `sudo dtruss -p $(pgrep nix-daemon)` and then running `nixops deploy` doesnt reveal alot of information. i guess all the heavy-lifting is done in the forked thread ?
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<LnL> yeah -f should include that
<infinisil> ij: Probably the best thing would be to make a top-level nix expression which declares all packages like packagename = callPackage ./path/default.nix {}
<infinisil> then nix-shell -A packagename
hexamod has joined #nixos
<infinisil> hmm but with just 1 package this doesn't seem optimal
asuryawanshi has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to gcc-7: https://git.io/vFwFu
<NixOS_GitHub> nixpkgs/gcc-7 24f2e73 Vladimír Čunát: llvm-{4,5}: fix build by using older gcc on i686-linux...
NixOS_GitHub has left #nixos []
axel_parolta has quit [(Remote host closed the connection)]
<betaboon> i don't know. i'm lost
Itkovian has joined #nixos
ma27 has joined #nixos
peacememories has joined #nixos
peacememories has quit [(Read error: Connection reset by peer)]
peacememories has joined #nixos
Itkovian has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ThomasMader opened pull request #31560: tzdata: Keep the standard directories and links (master...tzdata) https://git.io/vFwFb
NixOS_GitHub has left #nixos []
ericsagnes has joined #nixos
Itkovian has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mdorman opened pull request #31561: pdf-tools: 0.70 -> 0.80 (master...emacs-pdf-tools) https://git.io/vFwbm
NixOS_GitHub has left #nixos []
michiel_l has quit [(Ping timeout: 240 seconds)]
michiel_l has joined #nixos
bennofs1 has joined #nixos
<nixos1022> Is there some stable solution to manage my userspace configfiles? There seem to be so many small ones around but none seems to have gotten far. It would be nice to have some overview on it
<hyper_ch> home-manager
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #31562: braincurses: init at 1.1.0 (master...braincurses) https://git.io/vFwbB
NixOS_GitHub has left #nixos []
<nixos1022> does it have a documentation, guide or some overview what packages are available in homemanager? Is it somewhat stable?
<hyper_ch> depends on how you define stable
ilyaigpetrov has joined #nixos
<nixos1022> well will it foreseeably undergo some bigger changes
<nixos1022> like if i start using it now, will I have to rebuild everything at some point?
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<hyper_ch> no idea
amfl has quit [(Read error: Connection reset by peer)]
amfl has joined #nixos
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<fearlessKim[m]> nixos1022: home-manager evolves fast so it is bound to break a few things (recently how it was installed) but this is the most practical solution so far. You just have to be careful when you update it
zzamboni has quit [(Quit: Leaving.)]
<rycee> nixos1022: I'm trying to avoid breaking things and when I do I try to give a month warning using the builtin "news" system.
<rycee> I think the old ways of installing should mostly still work (except the oldest way of installing ;-)
seppellll has quit [(Ping timeout: 260 seconds)]
zzamboni has joined #nixos
cnu- has joined #nixos
hexamod has joined #nixos
ed-packet has quit [(Ping timeout: 248 seconds)]
zzamboni has quit [(Quit: Leaving.)]
<orivej> Are nix.buildMachines recursive? If my host chooses a build machine for a build, and that machine has its own list of build machines, may it perform the build on one of those?
zzamboni has joined #nixos
zzamboni has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej closed pull request #31562: braincurses: init at 1.1.0 (master...braincurses) https://git.io/vFwbB
NixOS_GitHub has left #nixos []
<betaboon> LnL: do you have any other idea? to me it seems the build_hook isnt even executed. as if none of the environmentvariables in the plist are respected
<fearlessKim[m]> nix-env -K keeps the /tmp folder but the folder in /nix/store seems to disappear ? is there a way to keep it ?
<gchristensen> fearlessKim[m]: no
<fearlessKim[m]> gchristen thanks for sharing the harsh truth with me
<gchristensen> :)
<LnL> betaboon: not sure, you'r not still running into the assertion error right?
<gchristensen> things should build in the tmp dir and only when everytthing is good move it to $out
<Dezgeg> I thought it stays even until you re-start that same build
dywedir- has quit [(Remote host closed the connection)]
<fearlessKim[m]> i suppose it's bound to create problems if we leave noncomplete stuff in store
<Dezgeg> I definitely recall debugging those 'cycle detected in outputs of paths ...' problems by grepping the un-finished build outputs
<gchristensen> hmm
<LnL> yes, the outputs won't get deleted either
<gchristensen> oh I thought they did :O
<LnL> otherwise it would just be impossible to debug output cycles
<betaboon> LnL: i'm still running in the assertion error
<LnL> oh, then it's not even trying to build linux stuff
<fearlessKim[m]> well in my case $out disappears
<betaboon> exactly
<betaboon> it seems like i am missing a piece in the puzzle
<vaibhavsagar> hey, is there some nix-instantiate magic I can do to look at the output of a service file?
Mateon1 has quit [(Quit: Mateon1)]
<vcunat> The outputs don't get deleted for me.
<vcunat> The cycle debugging was one of my use cases as well :-)
<LnL> betaboon: I don't see the --argstr flags in the nix-build command
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
bennofs1 has quit [(Read error: Connection reset by peer)]
<LnL> betaboon: you could use nix-build -E 'with import <nixpkgs> { system = "x86_64-linux"; }; runCommand "foo" {} "touch $out"' to check the distributed builds
<fearlessKim[m]> gchristensen: I would like to build first in /tmp but fetchzip with stripRoot does 'mv "$unpackDir" "$out"' during the unpackPhase so the archive I am supposed to build is already in $out
bennofs1 has joined #nixos
mkbucc has quit [()]
<betaboon> LnL: i ran `nixops set-args --argstr system x86_64-linux` once. i thought that would apply to the deployment ? or do i have to include that in every `nixops deploy` run ?
<mbrock> I'm so confused by `nix-shell -E` -- I give it a derivation expression but nothing appears in my $PATH
hexamod has joined #nixos
<mbrock> oh, I guess the -E option just puts me in the build environment for that derivation
<betaboon> LnL: the last command you shared works. output mentions "building ...-foo.drv' on 'nix-vbox-build-slave' :)
<LnL> betaboon: don't know much about nixops, but I thought set-args would be saved
<LnL> ok so that means the linux build stuff is setup correctly
<LnL> but nixops is trying to build the packages for you current system instead of linux
<mbrock> oh that's why the man page uses `runCommand "dummy"` in the `nix-shell -E` example (ugh)
<betaboon> yeah. thanks for that command. now i know how to verify if the remote-build part works :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #31034: WIP: mutable user eval test (master...mutable-user-test) https://git.io/vFmaR
NixOS_GitHub has left #nixos []
zzamboni has joined #nixos
<LnL> I remember seeing somebody talk about multi platform support in nixops, maybe that's causing issues?
<betaboon> LnL: the set-args did get saved. nixops info clearly states "system = x86_64-linux"
<betaboon> LnL: i initially started of with a macos+nixops blog post from years back. so it seems to have worked at some point
<LnL> maybe it's a bug, I would expect to see the flags in the failed nix-build build error
<betaboon> LnL: what would you expect to see there? "--argstr system x86_64-linux" ?
primeos has quit [(Ping timeout: 240 seconds)]
primeos has joined #nixos
<LnL> yeah, can you run it with --show-trace?
<betaboon> sure
ed-packet has joined #nixos
<nixos1022> rycee: is there some documentation what options are usable with homemanager? only thing I've found is the github readme
<LnL> that's an assert stdenv.isLinux, that would true with system = "x86_64-linux"
SuprDewd has joined #nixos
tgunb has quit [(Ping timeout: 268 seconds)]
teej has joined #nixos
<LnL> either you're supposed to set the system in some other way or it's a bug
zzamboni has quit [(Quit: Leaving.)]
<FRidh> orivej: I've been wondering about the same thing. If you have an answer, let me know!
ixxie has joined #nixos
<betaboon> LnL: i will take a look later. gonna take a break. thanks to you i finaly made some progress. thank you very much for taking the time
<orivej> FRidh: I expect that if I make it so that "ssh machine sh -c 'echo $NIX_BUILD_HOOK'" returns a path to the build hook just like with the interactive login, the build will be distributed further; but have yet to figure out how to do this %)
pie_ has joined #nixos
k2s has joined #nixos
<orivej> FRidh: it seems my guess was wrong
joncfoo has quit [(Ping timeout: 248 seconds)]
Wizek__ has joined #nixos
ryanartecona has joined #nixos
Wizek_ has quit [(Ping timeout: 248 seconds)]
Wizek_ has joined #nixos
asuryawanshi has joined #nixos
Wizek__ has quit [(Ping timeout: 248 seconds)]
Wizek_ has quit [(Ping timeout: 248 seconds)]
ed-packet_ has joined #nixos
ed-packet has quit [(Quit: leaving)]
ed-packet_ is now known as ed-packet
asuryawanshi has quit [(Ping timeout: 258 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ttuegel pushed 9 new commits to staging: https://git.io/vFreT
<NixOS_GitHub> nixpkgs/staging 91b362c Thomas Tuegel: qt56.qtwebkit: fix build with ICU 59
<NixOS_GitHub> nixpkgs/staging 9e05d61 Thomas Tuegel: qt56: remove unused obsolete expressions
<NixOS_GitHub> nixpkgs/staging 4f72831 Thomas Tuegel: qt56.qtbase: replace `type` with `command` for POSIX compatibility
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ttuegel closed pull request #31462: Qt 5.6 fixes (master...qt-5.6) https://git.io/vFgp3
NixOS_GitHub has left #nixos []
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/5e698100b7 (from 84 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
ixxie has quit [(Quit: Lost terminal)]
joncfoo has joined #nixos
fendor has joined #nixos
dejanr has quit [()]
agjacome has joined #nixos
k2s has quit [(Ping timeout: 240 seconds)]
ixxie has joined #nixos
zzamboni has joined #nixos
jb55 has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
fusion809 has joined #nixos
<ixxie> jtojnar: I've built it, see my pms
drakonis has joined #nixos
<fusion809> I've installed Nix on my Fedora system using a RPM package I've built. I've added the nixpkgs-unstable channel and running `sudo nix-channel --update` (sudo necessary as otherwise it whinges of insufficient permissions) and it gives the error 'error: unable to download ‘https://d3g5gsiof5omrk.cloudfront.net/nixpkgs/nixpkgs-18.03pre119383.eafd703a63/nixexprs.tar.xz’: Problem with the SSL CA cert (path? access rights?) (77)'
<fusion809> I've followed the Manual https://nixos.org/nix/manual/ up to chapter 8 where it says to run nix-channel --update
<fusion809> Nvm I uninstalled it using the package manager and installed using the install script provided in the manual and everything is workin' fine
fusion809 has quit [(Quit: Leaving)]
yegortimoshenko has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] c0bw3b closed pull request #16857: Add Novena platform support (master...RFC_novena) https://git.io/vKZYX
NixOS_GitHub has left #nixos []
hotfuzz has quit [(Read error: Connection reset by peer)]
hotfuzz has joined #nixos
proteus-guy has joined #nixos
ma27 has quit [(Ping timeout: 246 seconds)]
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
simukis has joined #nixos
pie__ has joined #nixos
pie_ has quit [(Remote host closed the connection)]
Turion has joined #nixos
ma27 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 2 new commits to master: https://git.io/vFrJq
<NixOS_GitHub> nixpkgs/master fb8d552 Orivej Desh: make-dbus-conf: prefer local build
<NixOS_GitHub> nixpkgs/master 228dd9d Orivej Desh: Merge pull request #31550 from orivej/dbus-1...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej created hydra (+2 new commits): https://git.io/vFrJO
<NixOS_GitHub> nixpkgs/hydra ff809e4 Orivej Desh: hydra: 2017-09-14 -> 2017-10-26...
<NixOS_GitHub> nixpkgs/hydra 9b43c21 Orivej Desh: Merge branch 'master' into hydra...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] c0bw3b closed pull request #17022: Emacspeak add at 44 (master...emacspeak-add-at-44) https://git.io/vKgIj
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mounium opened pull request #31564: aliza: 1.29.2->1.36.3 (master...aliza) https://git.io/vFrJw
NixOS_GitHub has left #nixos []
mekeor has joined #nixos
iyzsong has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej opened pull request #31565: hydra: 2017-09-14 -> 2017-10-26 (hydra...hydra) https://git.io/vFrJA
NixOS_GitHub has left #nixos []
<Turion> How do I find out which kernels I can install? nix-env -qa '.*linuxPackages.*' doesn't do it.
<bennofs1> Turion: grep "\blinuxPackagesFor " /code/nixpkgs/pkgs/top-level/all-packages.nix maybe?
hexamod has joined #nixos
endformationage has joined #nixos
p4cman has quit [(Quit: Connection closed for inactivity)]
<Turion> bennofs1: Interesting idea ;) I wonder where my /nixpkgs is actually located (in a vanilla install)
<bennofs1> Turion: nix-instantiate --eval --expr '<nixpkgs>'
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh force-pushed python-unstable from 23761be to 81f8d73: https://git.io/v5aIf
<NixOS_GitHub> nixpkgs/python-unstable c1b0573 Frederik Rietdijk: Python: the pythonModule attribute...
<NixOS_GitHub> nixpkgs/python-unstable 3bcd2cf Frederik Rietdijk: python.pkgs: use toPythonModule for packages defined outside python-packages.nix
<NixOS_GitHub> nixpkgs/python-unstable 62a255e Frederik Rietdijk: system-config-printer: recurse into python dependencies...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] c0bw3b closed pull request #20149: minted: 2.2.1 -> 2.4.1 (WIP) (master...minted) https://git.io/vXWf3
NixOS_GitHub has left #nixos []
scribbler has quit [()]
<Turion> bennofs1: Thanks!
<Turion> Now I understand what the issue was. nix-env -qa searches for the package name, not the attribute name
<ixxie> how does nixos-in-place compare with nixos-infect?
ryanartecona has quit [(Quit: ryanartecona)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<Turion> How do I install exactly the 4.1 kernel? It seems there is no nixos.linuxPackages_4_1.kernel attribute
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jwiegley pushed 1 new commit to master: https://git.io/vFrTs
<NixOS_GitHub> nixpkgs/master dcab51c John Wiegley: coqPackages.QuickChick: Update build for Coq 8.6 and 8.7
NixOS_GitHub has left #nixos []
Arcaelyx has joined #nixos
<mekeor> how can i make `javac` find the java-library which i am writing a nix-package for?
ixxie has quit [(Quit: Lost terminal)]
<mekeor> is it enough to copy the JARs to $out/share/java?
ssmike has quit [(Ping timeout: 240 seconds)]
<rycee> nixos1022: If you have HM installed then you can run `man home-configuration.nix` for a listing of all options with descriptions and such.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to python-unstable: https://git.io/vFrkf
<NixOS_GitHub> nixpkgs/python-unstable 2fb511d Frederik Rietdijk: python.pkgs.setuptools: 36.4.0/36.6.0 -> 36.7.1
NixOS_GitHub has left #nixos []
kp__ has joined #nixos
<rycee> Just like the NixOS configuration.nix man page. It even says "NixOS system configuration specification" at the top for maximum familiarity ;-)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jwiegley pushed 2 new commits to master: https://git.io/vFrkI
<NixOS_GitHub> nixpkgs/master 7d6d4af John Wiegley: Add missing default.nix for coqPackages.equations
<NixOS_GitHub> nixpkgs/master bb03828 John Wiegley: coqPackages.metalib: New expression
NixOS_GitHub has left #nixos []
jsgrant has joined #nixos
<vcunat> Turion: 4.1 was removed
<vcunat> I'm not sure why
<Turion> vcunat, oh strange! I'll try and find out whether the commit message says anything
<Turion> I think I want to symlink the system wide nixpkgs to my modified fork from github. 1. Is this sane? 2. Which path exactly do I have to symlink?
<vcunat> Commit 37f7470269f
jmc_fr has joined #nixos
<Turion> vcunat, ah thanks! It seems they were just removed because official support is running out soon.
<Turion> (Or has already run out)
<Dezgeg> 4.1 seems to have it's lifetime extended since though, so it could be reinstated
<vcunat> I suspected that, but I didn't remember.
asuryawanshi has joined #nixos
<Turion> vcunat: Haha thanks :)
Arcaelyx has quit [(Read error: Connection reset by peer)]
Arcaelyx has joined #nixos
<vcunat> And 3.16 has planned EOL in further, in 2020
ixxie has joined #nixos
asuryawanshi has quit [(Ping timeout: 248 seconds)]
tgunb has joined #nixos
<vcunat> Turion: you certainly can nixos-rebuild -I nixpkgs=/path/to/nixpkgs ....
jmc_fr has quit [(Ping timeout: 240 seconds)]
<vcunat> (that won't affect the nixpkgs that nix-env sees by default, but one can specify that as well)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] c0bw3b pushed 2 new commits to master: https://git.io/vFrI4
<NixOS_GitHub> nixpkgs/master b7ed72d Ricardo Ardissone: cataclysm-dda-git: init at 2017-07-12
<NixOS_GitHub> nixpkgs/master 90ffccf Renaud: Merge pull request #16683 from rardiol/cataclysm-dda-git2...
NixOS_GitHub has left #nixos []
<srhb> Turion: Symlink what exactly?
<srhb> Turion: (Why not just specify the path to your fork on nix.nixPath?)
<Turion> srhb, because I want to install a new kernel
<Turion> I'm not so sure myself, but my understanding is that to install a different kernel, just modifying ~/.nix-defexpr isn't enough
<vcunat> Oh, I didn't know nix.nixPath :-)
<vcunat> ~/.nix-defexpr is only for nix-env AFAIK
<Turion> Right, I need to modify the thing that nix-rebuild --switch works on
<vcunat> for one-time override I'd use the -I parameter to nixos-rebuild
<vcunat> (and then nix.nixPath, probably)
<Turion> vcunat, ah ok I'll try that first maybe
<Turion> Basically, I have a copy of the 17.03 tree in my home directory, with the commit reverted that deletes the 4.1 kernel. Now I want to change /etc/configuration.nix to specify the 4.1 kernel. Then I want all my future nixos-rebuild to start the 4.1 kernel.
<symphorien> let mypkgs=import /path/to/checkout {}; in ........ boot.kernelPackage = mypkgs.linux_4_1,
<symphorien> something like that
<Turion> symphorien, ah! That makes sense
<vcunat> Turion: I wouldn't base on 17.03, as that's EOLd
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jwiegley pushed 1 new commit to master: https://git.io/vFrIS
<NixOS_GitHub> nixpkgs/master a41478c John Wiegley: coqPackages.CoLoR: 1.3.0 -> 1.4.0, which now supports Coq 8.7
NixOS_GitHub has left #nixos []
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vFrLJ
<NixOS_GitHub> nixpkgs/master ab1859e Vladimír Čunát: Merge branch 'staging'...
NixOS_GitHub has left #nixos []
<Turion> vcunat, ah yes, will merge 17.09 soon ;)
<vcunat> OK
nh2 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej closed pull request #31537: lkl: 2017-10-18 -> 2017-11-10, make-disk-image: do not fake time for cptofs (master...lkl) https://git.io/vFwsO
NixOS_GitHub has left #nixos []
zraexy has quit [(Ping timeout: 268 seconds)]
rogue_koder has quit [(Quit: Konversation terminated!)]
stanibanani has joined #nixos
nh2 has quit [(Ping timeout: 248 seconds)]
elasticdog has quit [(Quit: WeeChat 1.8)]
lhart has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jwiegley pushed 1 new commit to master: https://git.io/vFrtU
<NixOS_GitHub> nixpkgs/master 9ea242c John Wiegley: coqPackages.interval: Add bignums, now a required dependency
NixOS_GitHub has left #nixos []
<lhart> Hello! Currently trying to use linuxPackages_custom, i have a little question. I just need to change src but not the kernel config file. What expression can I use for the configfile parameter to get a generic nixos config? Thanks,
ixxie has quit [(Quit: Lost terminal)]
zarel has joined #nixos
<srhb> lhart: can you get it from linuxPackages.kernel.configfile ?
<srhb> lhart: or linux.configfile
stanibanani has quit [(Ping timeout: 240 seconds)]
jb55 has quit [(Ping timeout: 240 seconds)]
zzamboni has quit [(Quit: Leaving.)]
joko has quit [(Ping timeout: 255 seconds)]
<lhart> srhb: Yes! Thank you, it seems to work! Simple and nice solution.
<srhb> lhart: If you end up with option mismatches you'll have to look at the generic builder for linux. But yeah, that should work as long as the changes aren't huge :)
hariel has quit [(Ping timeout: 240 seconds)]
alhariel has quit [(Ping timeout: 268 seconds)]
hariel has joined #nixos
alhariel has joined #nixos
wolfcub has quit [(Ping timeout: 268 seconds)]
b has joined #nixos
b has quit [(Changing host)]
b has joined #nixos
wolfcub has joined #nixos
zarel has quit [(Ping timeout: 240 seconds)]
davidak has joined #nixos
rogue_koder has joined #nixos
fusion809 has joined #nixos
<lhart> srhb: yeah I tried but I couldn't get to make it work. Maybe for later or just for information, how would you invoke it?
b has quit [(Client Quit)]
<fusion809> OK this is odd. I rebooted and even though Nix was installed using the shell script installer given at nixos.org I'm getting this error again: 'error: unable to download ‘https://d3g5gsiof5omrk.cloudfront.net/nixpkgs/nixpkgs-18.03pre119383.eafd703a63/nixexprs.tar.xz’: Problem with the SSL CA cert (path? access rights?) (77)'. Any ideas about a solution? On Arch I don't get this problem
b has joined #nixos
<fusion809> The nix daemon is running if you're wondering. I followed the manual, which contributes to how surprising this error is.
<c0bw3b> bennofs bennofs1 ping?
<fusion809> Before that error line is the line 'downloading ‘https://d3g5gsiof5omrk.cloudfront.net/nixpkgs/nixpkgs-18.03pre119383.eafd703a63/nixexprs.tar.xz’... [0/0 KiB, 0.0 KiB/s]'
<fusion809> if that helps.
<fusion809> The error is coming from nix-channel --update
<gleber_> https://github.com/NixOS/nixpkgs/issues/21913 - this seems like to be answered and can be closed
<srhb> lhart: recurseIntoAttrs (linuxPackagesFor (... your expression akin to linux_4_4 in top-level/all-packages.nix)
<srhb> lhart: Skipping the custom thing entirely, admittedly :)
Isorkin_ has quit [(Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org)]
<c0bw3b> gleber_ thanks for pointing it out, will close :)
<gleber_> c0bw3b: I've subscribed to Code Triagers and trying to go through 3 issues per day to help the project a bit :)
tmaekawa has joined #nixos
<c0bw3b> Neat!
<bennofs1> c0bw3b: pong?
<c0bw3b> bennofs1: hello :) what was your magic trick to delete a subdir after fetching a src archive in order to keep the hash stable?
<c0bw3b> bennofs1 it's been lost in battle in PR 26920
<c0bw3b> i remember postFetch = "do something ; then rm"
tmaekawa has quit [(Client Quit)]
<bennofs1> c0bw3b: oh, I think it was deleting the directory with test data?
ixxie has joined #nixos
bennofs has quit [(Ping timeout: 240 seconds)]
<c0bw3b> bennofs1: yes the 'testdir' subdir needs to be deleted becuase it contains japanese/korean/hebrew/russian named dirs
<c0bw3b> bennofs1: and apparently these changed the output hash on darwin... though I dont understand why :/
<bennofs1> c0bw3b: because darwin applies unicode normalization to paths
<yegortimoshenko> not anymore, fortunately
<yegortimoshenko> (i think APFS doesn't have it)
<bennofs1> yegortimoshenko: does that mean, not all the time anymore? so now it only does it *sometimes*? depending on version?
<yegortimoshenko> bennofs1: well, until the older versions get phased out
<c0bw3b> it will be a while though..
<yegortimoshenko> in darwin world, older macOS versions get phased out pretty quickly, most are on the latest version
<yegortimoshenko> ... or at least it's their marketing ploy :-)
<c0bw3b> is the APFS conversion not optional during high sierra upgrade?
<yegortimoshenko> not optional
<yegortimoshenko> no way to opt out, at all.
<c0bw3b> (why this does not even suprise me :p )
<yegortimoshenko> it still reads HFS+ filesystems though, but the root file system will be converted no matter what
<c0bw3b> hey please beta test my own ZFS-like unstable FS will you?! :p
<yegortimoshenko> btrfs alpha
<c0bw3b> ^^
<yegortimoshenko> recently fixed some software written in clojure (on JVM) to support APFS...
<yegortimoshenko> they managed to break my assumptions about filesystems that i thought were portable
<yegortimoshenko> the only offender so far
sigmundv__ has joined #nixos
<Dezgeg> what was the assumption?
<c0bw3b> humm how come this software had to be aware of the underlying FS used?
<yegortimoshenko> Dezgeg: that clojure.java.io.file-seq is sorted alphabetically, it's not on APFS
<Dezgeg> the list of files in a directory you mean?
<yegortimoshenko> more like find, i.e. including the parent directory
<Dezgeg> that's strange if you hit that only now, that shouldn't hold for e.g. ext4
<yegortimoshenko> it works fine on ext4
<Dezgeg> maybe you're getting lucky ;)
<yegortimoshenko> perhaps JVM abstracts that away
<yegortimoshenko> it should
<Dezgeg> well, it'd mean a performance hit on listing big directories
jensens has joined #nixos
jb55 has joined #nixos
<lhart> srhb: Thank you! :) I would have never found alone.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 4 new commits to release-17.09: https://git.io/vFrmr
<NixOS_GitHub> nixpkgs/release-17.09 f3298b3 Orivej Desh: make-disk-image: clean up...
<NixOS_GitHub> nixpkgs/release-17.09 d78534d Joachim Fasting: lkl: 2017-08-09 -> 2017-10-18...
<NixOS_GitHub> nixpkgs/release-17.09 b05c039 Orivej Desh: lkl: 2017-10-18 -> 2017-11-10...
NixOS_GitHub has left #nixos []
<yegortimoshenko> Dezgeg: indeed, it isn't guaranteed to appear in specific order: https://docs.oracle.com/javase/7/docs/api/java/io/File.html#listFiles()
<yegortimoshenko> clojure's file-seq is just a wrapper around that. probably would make sense to improve docs a little bit.
<yegortimoshenko> (but certainly my fault)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FireyFly opened pull request #31567: Pkgs/hexd and pixd (master...pkgs/hexd-and-pixd) https://git.io/vFrmd
NixOS_GitHub has left #nixos []
<gchristensen> vcunat: do you think #31045 is going to go anywhere positive? (should we lock-and-close it?)
<c0bw3b> bennofs1: I wonder if doing postUnpack = "rm -r $sourceRoot/testdir"; would be enough? or is too late for the hash evaluation?
<vcunat> gchristensen: I'm not sure if any result will get out of it. But it doesn't feel worth locking ATM.
<vcunat> (Though perhaps not worth replying from our side either, until moving to some other course.)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] primeos pushed 2 new commits to master: https://git.io/vFrYI
<NixOS_GitHub> nixpkgs/master 46bcc0d Michael Weiss: pythonPackages.pyqt5: Add optional qtwebsockets support...
<NixOS_GitHub> nixpkgs/master 6aed80f Michael Weiss: gns3Packages.{server,gui}Stable: 2.0.3 -> 2.1.0
NixOS_GitHub has left #nixos []
<gchristensen> ok. reviewing the other issues they're involved in, they're generally abrasive and not constructive, I'm personally in favor of a ban if they continue being rude
<gchristensen> (but not yet)
joko has joined #nixos
<hyper_ch> https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md --> submitting changes.... not really sure what is meant by "Format the commits the ollowing way:" is that the commit message?
stanibanani has joined #nixos
FireFly has joined #nixos
<mudri> Anyone know what BeautifulSoup is, and why there's been a change recently in nixpkgs?
<hydraz> the python HTML parser?
<mudri> Sounds plausible.
<ben> seconding 'html parser", and there's lots of changes in nixpkgs all the time
<gchristensen> what happened that you're noticing?
<gchristensen> cc adisbladis
<joko> Hello, I've just started using home-manager and was wondering how to put its packages to my Hydra server. I am thinking of using the pkgs attribute from eval-config.nix, but this expects a set (sth like { inherit (pkgs) chromium irssi; };) and I have "with pkgs; [chromium irssi]; Am I thinking it right so far?
<mudri> gchristensen: (if that was directed to me), anki fails to run with “ImportError: No module named BeautifulSoup”.
hariel has quit [(Ping timeout: 248 seconds)]
alhariel has quit [(Ping timeout: 248 seconds)]
wolfcub has quit [(Ping timeout: 260 seconds)]
alhariel has joined #nixos
hariel has joined #nixos
<mudri> Full error message: http://lpaste.net/360005
wolfcub has joined #nixos
<mudri> Doing the obvious thing and reverting https://github.com/NixOS/nixpkgs-channels/commit/e87ffaefc6207ffec6ec4a6b1aeb5e9d255d4fb6#diff-427d03e6e9235a5908b7370d6afb0917 gives “error: attribute ‘beautifulsoup’ missing” from Nix.
<gchristensen> try also reverting bb50ae9807be1ca06e801502c3449864ff6bf82a
Mateon1 has joined #nixos
Dr8128 has joined #nixos
HTTP_____GK1wmSU has joined #nixos
HTTP_____GK1wmSU has quit [(K-Lined)]
wolfcub has quit [(Ping timeout: 240 seconds)]
hariel has quit [(Ping timeout: 260 seconds)]
alhariel has quit [(Ping timeout: 260 seconds)]
alhariel has joined #nixos
wolfcub has joined #nixos
hariel has joined #nixos
jensens has quit [(Ping timeout: 264 seconds)]
b has quit [(Remote host closed the connection)]
rogue_koder has quit [(Quit: Konversation terminated!)]
<Turion> For someone coming from Gentoo, what's the closest thing to "eselect news read" in nixos?
b has joined #nixos
Arcaelyx has quit [(Read error: Connection reset by peer)]
slack1256 has joined #nixos
<yegortimoshenko> Turion: https://nixos.org/news.html
Arcaelyx has joined #nixos
<gchristensen> I think we don't -really- have that. what exactly does eselect news read do?
<yegortimoshenko> release notes, in console
zzamboni has joined #nixos
<yegortimoshenko> when something changes, it usually goes in there
<ben> notification about breaking changes that require action during updates, iirc
<mudri> gchristensen: Thanks. Reverting e87ffaefc6207ffec6ec4a6b1aeb5e9d255d4fb6, bb50ae9807be1ca06e801502c3449864ff6bf82a, and also 33b0b5ed1dab27514e2b211508b710a8df16d764 gives a working anki.
<gchristensen> we don't really have that for unstable, we put big change notes in to the release notes
<ben> clearly its not necessary because wed never have breaking changes.
<mudri> (The other one is a hash change.)
<yegortimoshenko> and you can always roll back.
<gchristensen> lol ben
* ben maintains a straight face
<Turion> yegortimoshenko: Thanks!
asuryawanshi has joined #nixos
magnetophon has quit [(Remote host closed the connection)]
asuryawanshi has quit [(Ping timeout: 240 seconds)]
roberth has joined #nixos
Arcaelyx_ has joined #nixos
Arcaelyx has quit [(Ping timeout: 248 seconds)]
lhart has quit [(Quit: Page closed)]
<gleber_> gchristensen: damn, I've missed your PR :(
<gchristensen> gleber_: :/ I worked on it a bit and then forgot it existed until I saw your opened PR
<gleber_> gchristensen: no worries, I am doing this primarily to learn - I've already "profited". What do you think is the best way forward with these PRs?
data has joined #nixos
<gchristensen> hmm I'm not sure, it'd be nice to integrate https://github.com/NixOS/nixpkgs/pull/31034/files to be run by hydra: they're a lot faster than the VM tests, since they only teest evaluation
data is now known as Guest77268
<gchristensen> but I'm not really sure how to do that, maybe you could take that on? :)
<gleber_> gchristensen: I have no idea how hydra works internally. The learning curve will be very steep for me. I'd be surprised if I get to finish it with my current time availability / motivation
<gleber_> gchristensen: so far our PRs actually do not overlap. The test I've added tests if side-effects of users.mutableUsers actually are applied to a VM
<gchristensen> ooh cool
civodul has joined #nixos
<gchristensen> ah, another thing could be adding more test cases to the evaluation tests, it is a very complicated set of logic :/
<gleber_> gchristensen: your PR focuses on assertions in the nixpkgs evaluation. I was about to start this part, but you've done most of the job
<gchristensen> it'd be worth reviewing the logic to make sure it is right ...
jsgrant has quit [(Ping timeout: 268 seconds)]
<gchristensen> I'm sorry to spoil a good learning exercise
<gleber_> gchristensen: no worries, there are plenty of issues and PRs to work on :)
<gleber_> gchristensen: I can help with additional tests for your PR and/or reviewing it
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
<betaboon> LnL: i just came back. removed the container from the deployment.nix. created a new nixops deployment, did not setargs, hit nixops deploy. and it seems to work... (... on 'root@nix-vbox-build-slave')
ssmike has joined #nixos
<LnL> same version of nixops?
<gleber_> gchristensen: what would be the best way to coordinate this tests coverage / quality work?
<gchristensen> no idea :o I'd appreciate your ideas as comments on that PR
<gchristensen> gleber_: stepping out for a while :)
jensens has joined #nixos
<betaboon> LnL: i didn't do anything in the meantime
adamt has quit [(Ping timeout: 268 seconds)]
<betaboon> when it is done deploying (pretty slow because the vm is small) I'll try to add the container again and see if the old problem is back.
<betaboon> i will guide a colleague through the same setup in the coming days. if everything works out we might be able to provide a how to
MinceR has quit [(Ping timeout: 268 seconds)]
<betaboon> LnL: i can confirm: deploying a virtualbox-vm with nixops on macos works using the demo-vmdk as a build-slave works. as described in the gist above. thank you very much for helping out.
MinceR has joined #nixos
<LnL> cool, I wonder what the issue was
<betaboon> LnL: i can confirm as well: adding a container to the deployment, that is deployed into the vm causes the assertion error.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 1 new commit to master: https://git.io/vFrZT
<NixOS_GitHub> nixpkgs/master 5f6b88c Michael Raskin: genext2fs: fix handling of symlinks of length exactly 60...
NixOS_GitHub has left #nixos []
<LnL> ah
<NickHu> How can I use a non-LTS version of a Haskell package? In particular, I'm trying to use pandoc 2
<betaboon> so look at the deployment.nix in the gist. without container -> works. with container -> breaks
jb55 has quit [(Read error: Connection reset by peer)]
jb55 has joined #nixos
<betaboon> LnL: do you know if there is a way to explicitly set the system="x86_64-linux" for the container ? oO
<LnL> not sure, you should have to
yegortimoshenko has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] tadfisher opened pull request #31571: sonarr: 2.0.0.4949 -> 2.0.0.5054 (master...bump/sonarr) https://git.io/vFrZ9
NixOS_GitHub has left #nixos []
<gleber_> gchristensen: currently #31034 performs tests purely based on the state of configuration, without access to actual disk. This means it won't be able to work accurately for #4990 if a `users.extraUsers.<name>.passwordFile` is pointing to a path which is a symlink. I think it means that a VM-based test for #4990 still brings value.
yegortimoshenko has joined #nixos
jsgrant has joined #nixos
qwasdhjku has joined #nixos
qwasdhjku has left #nixos []
python476 has quit [(Ping timeout: 248 seconds)]
simukis has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] c0bw3b closed pull request #31564: aliza: 1.29.2->1.36.3 (master...aliza) https://git.io/vFrJw
NixOS_GitHub has left #nixos []
<c0bw3b> Can we blacklist someone for some time on github?
<c0bw3b> jackpot1136 is polluting PRs with random gibberish and multiple approvals
<yegortimoshenko> oh yeah, he's funny
jb55 has quit [(Ping timeout: 260 seconds)]
adamt has joined #nixos
adamt has quit [(Changing host)]
adamt has joined #nixos
<yegortimoshenko> i don't think it's possible without a ban, has anyone said him to stop?
jsgrant has quit [(Ping timeout: 252 seconds)]
<clever> betaboon: if you dont set the system param for a build, it will default to the same system that nix-build was compiled for
<gchristensen> gleber_: sounds good :)
<gleber_> which packages has `strings` binary?
<gchristensen> yegortimoshenko, c0bw3b: I'll pm them
<vcunat> gleber_: $ command-not-found strings
<vcunat> The program ‘strings’ is currently not installed. It is provided by
<vcunat> several packages. You can install it by typing one of the following:
<vcunat>  nix-env -iA nixos.binutils
<vcunat>  nix-env -iA nixos.binutils-raw
<vcunat>  nix-env -iA nixos.binutils_nogold
<vcunat>  nix-env -iA nixos.busybox
thblt has joined #nixos
nixos1022 has quit [(Ping timeout: 240 seconds)]
<betaboon> clever: how would you explicitly set the system-parameter ?
yegortimoshenko has quit [(Remote host closed the connection)]
<makefu> gleber_: there is also "nix-locate bin/strings"
<gleber_> vcunat: makefu: ah, good tricks! thanks
<clever> betaboon: nixpkgs.system in configuration modules
<ben> where do i get nix-locate?
<ben> bootstrapping problem
<vcunat> ben: command-not-found nix-locate
<vcunat> :-)
<manveru> command not found: command-not-found :P
Guest77268 has quit [(Quit: nite nite)]
<vcunat> NixOS should have the command-not-found hook installed by default, so just typing the missing command fires the output
<vcunat> my favorite: `command-not-found nix-env`
<betaboon> clever: i already tried that. adding nixpkgs.system = "x86_64-linux" to both machines defined in deployment.nix as seen in the gist-link
<manveru> not sure why it doesn't work for me, even if i try to execute it directly
<c0bw3b> gchristensen ok thanks
<makefu> vcunat: does the current command-not-found still require the channel db?
<ben> what does nix-index do?
<manveru> makefu: it needs some programs.sqlite
<vcunat> yes
<betaboon> clever: i just looked at the nixops backends. i have a feeling the problem is rooted in the way the container-backend calls nix-build. compare virtualbox-backend vs container-backend: https://github.com/NixOS/nixops/blob/master/nixops/backends/virtualbox.py#L280 https://github.com/NixOS/nixops/blob/master/nixops/backends/container.py#L140
<vcunat> maybe my knowledge is outdated and channels no longer provide programs.sqlite
<LnL> ben: it's like locate bot for nixpkgs
<manveru> i have /nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite but it doesn't work still
<makefu> vcunat: because this would assume that everybody uses channels (which i am not for example). i remember refactoring the module and i kept it "enabled" by default ( https://github.com/makefu/nixpkgs/blob/master/nixos/modules/programs/command-not-found/command-not-found.nix#L30 )
<ben> Ah so it's not like command-not-found, ok
<c0bw3b> yegortimoshenko pretty sure we are facing a bot though :/
<vcunat> makefu: I don't really use channels myself
<vcunat> but the location of commands tend not to change much
<ben> dont really get all the hate for channels
<manveru> hate?
<LnL> ben: no but there's a command-not-found script in the repo that uses the nix-index db
<makefu> there is no hate, really.
<clever> betaboon: what error is it giving when building?
<sphalerite> just no like either :D
<ben> lots of people seem to feel inconvenienced by them
<sphalerite> nah they're convenient for a certain set of use cases. Just not all of them
<manveru> ah... because i overwrite the interactiveShellInit
Itkovian has joined #nixos
<betaboon> LnL: maybe you can see some obvious problem in the linked location of the nixops-backends way to call nix-build ?
FRidh has quit [(Quit: Konversation terminated!)]
ryanartecona has joined #nixos
<clever> betaboon: interesting, i havent seen the container backend used like that before
<clever> betaboon: nixos also supports containers directly, and you dont need to define the machine at the nixops level
<betaboon> the goal is to have a reproducable setup for nixos, linux and macos users to deploy a service-architecture into a locally run virtualbox for development purposes
<FreakingOut1987> joepie91, I know you use BTC and NixOS, what wallet do you recommend?
<joepie91> FreakingOut1987: I use Electrum personally
<betaboon> clever: on my local nixos machine i can do: deploy local containers. deploy containers into a locally running virtualbox.
<joepie91> FreakingOut1987: (it's in nixpkgs)
<betaboon> on macos you cant use containers. hence the approach to deploy the containers into a single virtualbox.
<ben> are you a docker-machine refugee
data has joined #nixos
<betaboon> ben: i have never realy used docker. qemu, lxc and now nixos-containers.
data is now known as Guest15326
<ben> docker-machine is apparently some wrappers that run a virtualbox vm on your mac so you can run docker commands, sounds similar to your plans here
<clever> betaboon: try also setting boot.isContainer = true;
Itkovian has quit [(Quit: Textual IRC Client signing off)]
<ben> im mildly surprised that nixops cant create a virtualbox vm
<betaboon> on macos you can use a docker-image as a linux-build-slave to use with nixops (which i havent successfully tested yet). or you can run a virtualbox-build-slave. which i have to do on my macbook-pro-2010 as it does not have required hardwaresupport for docker-for-mac.
<FreakingOut1987> joepie91, thanks! Also that reminded me, do you use the electron framework? I use it and have had trouble making Electron work like it did in other distros due to how nix stores its pacakges
<betaboon> clever: same result
Turion has left #nixos []
<joepie91> FreakingOut1987: more a runtime than a framework, and I do use it for some things, but you'll want to use the nixpkgs-packaged one if at all possible
fusion809 has quit [(Quit: Leaving)]
<joepie91> FreakingOut1987: if you need a specific version, a quick-and-dirty solution is to write your own 'package' for it based on a pre-built generic Electron binary, using patchelf to make it link to the correct deps on NixOS
<edef> ben: it… can?
<joepie91> FreakingOut1987: I don't think there's any way to make it work with stuff like electron-prebuilt yet, though
<edef> ben: like that's literally one of its core features
stanibanani has quit [(Ping timeout: 250 seconds)]
<FreakingOut1987> okay thanks for the suggestion joepie91 i'll look into it. I think maybe the nix Atom package would be a good start. Cheers :)
<ben> edef: i was reacting to the single line "the script is not able to fully create a nixos-virtualbox using nixops." from the above gist out of context, before even looking at the script
<edef> ah
<joepie91> FreakingOut1987: there's a separate Electron package in nixpkgs :)
<joepie91> FreakingOut1987: try `nix-shell -p electron` and then you can just do `electron /path/to/your/app` to see it in action
ixxie has quit [(Quit: Lost terminal)]
<ij> To get a shell in the ruby dev environment, do I need to rebuild/nix-build each time I add a gem?
<manveru> ij: i use direnv for that... but yeah
<ben> can i get an env with ruby gems in it with nix-shell -p somehow?
<manveru> no
<manveru> gems aren't in nixpkgs
jacob has quit [(Quit: Lost terminal)]
hiratara has quit [(Ping timeout: 240 seconds)]
<alphor> just making sure this is right: does callPackage use the name of the arguments of a function to determine what to pass it? ie if I s/fetchurl/graburl/g, that breaks the package, right?
<manveru> alphor: exactly
<manveru> you'd have to callPackage ./foo { graburl = fetchurl; }
<alphor> aha, that was my next question :)
<alphor> thanks!
hiratara has joined #nixos
<alphor> in particular if there is ambiguity what happens? I imagine with something like a package in both python2 and python3
<ij> manveru, Do… each time you "cd" to project or each time gemset's changed?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] c0bw3b opened pull request #31573: opencryptoki, pkcs11-helper, simple-tpm-pk11 (master...pkg/pkcs11) https://git.io/vFrWB
NixOS_GitHub has left #nixos []
<manveru> well, when you change the Gemfile
<manveru> it also runs every time i go into the project
<ij> Ah, so whenever Gemfile's newer
<ij> ?
<manveru> bundix checks if your Gemfile is newer
<ij> Ah, so every time, but bundix does nothing sometimes!
joehh has joined #nixos
<manveru> exactly
<manveru> it tries to be as fast as possible :)
<ij> I remember talking to you half a year ago and I knew nothing. Now I've booted rails!
ssmike has quit [(Ping timeout: 264 seconds)]
<manveru> nice
Sonarpulse has joined #nixos
Itkovian has joined #nixos
<FreakingOut1987> joepie91, It worked out nicely in the end. thank you! I have another problem though, how would I edit XFCE's menu? Other distros included menulibre or alts and i'm not particularly interested in attempting to write a nixpkgs atm. Adding it in the traditional manual way mean messing with my .nixprofile which will not be atomic. Are there any standard ways to add your own menu icons?
<FreakingOut1987> atomic as in post-reboot :)
agjacome has quit [(Quit: leaving)]
mbrgm has quit [(Ping timeout: 248 seconds)]
michiel_l has quit [(Remote host closed the connection)]
mbrgm has joined #nixos
jensens has quit [(Ping timeout: 264 seconds)]
fusion809 has joined #nixos
<betaboon> LnL: clever: i got the solution :D
ditadi has joined #nixos
<fusion809> Anyone know how to fix my 'Problem with the SSL CA cert' error I get with nix-channel --update? ca-certificates is installed on the host. I've tried install curl with nix-env -i curl but it won't work without root privileges as it gives a permission denied error, while if I run as root I get an error that ~/.nix-defexpr doesn't exist.
<joepie91> FreakingOut1987: hmm, I have no idea actually - you'd want to look into some way to generate .desktop files I suppose
<joepie91> FreakingOut1987: there might be a module option for it?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] WilliButz opened pull request #31574: pythonPackages.gixy: init at 0.1.8 (master...add-gixy) https://git.io/vFrlK
NixOS_GitHub has left #nixos []
ditadi has quit [(Quit: WeeChat 1.9.1)]
ditadi has joined #nixos
* bhipple[m] sent a long message: bhipple[m]_2017-11-12_22:14:42.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/UhsbFCNHGPnysumIpeUyjCJZ>
fendor has quit [(Read error: Connection reset by peer)]
<FreakingOut1987> yup https://github.com/NixOS/nixpkgs/blob/a80cacd3ec8582bf3236fcd5031b0715358b3c82/pkgs/build-support/make-desktopitem/default.nix :) joepie91 thanks again for pointing me in the right direction.
<bhipple[m]> I'm a little confused on how I could do something like this without creating circular dependencies. Essentially, coreutils needs sssd to function, so I'd like to pull sssd into stdenv or a coreutils dependency (?)
joncfoo has quit [(Ping timeout: 268 seconds)]
Guest15326 has quit [(Quit: nite nite)]
<Dezgeg> how does coreutils require sssd?
<bhipple[m]> coreutils -> glibc -> getpwnam() -> /etc/nsswitch.conf -> which tells it to load the sss shared object and resolve users/groups through it
<Dezgeg> in nixos we use nscd to break that loop
<bhipple[m]> (To be clear, it only requires sssd if you have sss enabled in your nsswitch.conf)
<joepie91> today in joepie91's NixOS adventures: installing a long-EOL Node.js version that is no longer in nixpkgs and that doesn't compile with current gcc
<joepie91> (0.10.x)
<bhipple[m]> Yeah I was trying to get inspiration from how NixOS packages it. It looks like this apply attribute propagates an LD_LIBRARY_PATH with all of the modules that it puts into nsswitch:
<bhipple[m]> I'm not sure how/where apply is called though
ssmike has joined #nixos
jensens has joined #nixos
<Dezgeg> it's the LD_LIBRARY_PATH of the nscd service
joehh has quit [(Ping timeout: 240 seconds)]
<bhipple[m]> Weird, I have it and nscd enabled on my NixOS box but `$ echo LD_LIBRARY_PATH` doesn't return anything related to it
<Dezgeg> try this: sudo cat /proc/$(pidof nscd)/environ | tr '\0' '\n' | grep LD_LIBRARY_PATH
ma27 has quit [(Ping timeout: 246 seconds)]
<bhipple[m]> Ah yeah there it is.
hiratara has quit [(Quit: ZNC - http://znc.in)]
<bhipple[m]> At any rate I'm wondering if there's some idiomatic way to do the equivalent for a NixPkgs environment on RHEL?
hiratara has joined #nixos
fusion809_ has joined #nixos
data has joined #nixos
data is now known as Guest29722
ditadi has quit [(Quit: WeeChat 1.9.1)]
fusion809 has quit [(Ping timeout: 258 seconds)]
<vcunat> bhipple[m]: BTW, note that nixos-unstable now won't support kernels < 3.2, and RHEL 6 defaults to 2.6.32
ditadi has joined #nixos
<vcunat> (it's due to glibc upstream dropping the support)
<vcunat> 17.09 should work on 2.6.32
<vcunat> but we plan to EOL it in half a year
jb55 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor pushed 3 new commits to master: https://git.io/vFr8D
<NixOS_GitHub> nixpkgs/master 416d5cf Jonas Höglund: maintainers: add FireyFly
<NixOS_GitHub> nixpkgs/master 636c9b5 Jonas Höglund: hexd: init at 1.0.0
<NixOS_GitHub> nixpkgs/master bdce932 Jonas Höglund: pixd: init at 1.0.0
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor closed pull request #31567: Package hexd and pixd (master...pkgs/hexd-and-pixd) https://git.io/vFrmd
NixOS_GitHub has left #nixos []
<bhipple[m]> Good to know. I'm targeting RHEL7 with 3.10 and just want to install multi-user NixPkgs via nixpkgs-unstable, so I should be OK right?
roberth has quit [(Ping timeout: 248 seconds)]
<vcunat> yes
ryanartecona has quit [(Quit: ryanartecona)]
<vcunat> I don't think glibc will require kernel beyond 3.10 anytime soon
jmeredith has joined #nixos
* bhipple[m] sent a long message: bhipple[m]_2017-11-12_22:44:26.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/iCnyuZbfBzQGAtnMFUGqLhgy>
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
<vcunat> joepie91: I sometimes use old nixpkgs versions for that typically the latest channel versions of old stable releases, but you'll get all the old vulnerabilities in dependencies by that. Even the binaries are still served (I'm not sure how far behind).
joncfoo has joined #nixos
Neo-- has joined #nixos
<joepie91> vcunat: yeah, familiar with the vulns issue, moreso because Node 0.10 no longer gets (security) updates
<joepie91> vcunat: in this case it's just for an emergency dev job on an embedded system
<bhipple[m]> (The issue is that when I try to build Nix itself, it runs test cases on coreutils that make sure id, whoami, etc. work, but of course they won't work until I provide it with an sssd so)
<joepie91> once that's sorted, I can work on getting it to run on newer Node
<joepie91> and then my 0.10 goes in the bin again
<joepie91> :p
jb55 has quit [(Ping timeout: 248 seconds)]
vcunat has quit [(Quit: Leaving.)]
joehh has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 4z3 opened pull request #31575: update skarnet.org packages (master...skarnet) https://git.io/vFr40
NixOS_GitHub has left #nixos []
<fusion809_> Ah turns out that Nix packages are not entirely independent on the host system's files. The curl package seems to depend on /etc/ssl/certs/ca-certificates.crt, so I had to create it with sudo ln -sf /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem /etc/ssl/certs/ca-certificates.crt
python476 has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
jb55 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] c0bw3b opened pull request #31576: fdupes: 20150902 -> 1.6.1 (master...pkg/fdupes) https://git.io/vFr4N
NixOS_GitHub has left #nixos []
<bhipple[m]> Indeed, the Nix tool tries to find it and set it for you automatically, but if you have certs in a location it doesn't expect it will fail to do so:
Mateon1 has quit [(Ping timeout: 248 seconds)]
Mateon3 has joined #nixos
mbucc_ has joined #nixos
mbucc_ has quit [(Client Quit)]
<joepie91> perhaps a stupid question
<joepie91> but how do I package a proprietary *library*?
slack1256 has quit [(Remote host closed the connection)]
<joepie91> (I didn't know those were a thing either :P)
Mateon3 is now known as Mateon1
matthewbauer has joined #nixos
jsgrant has joined #nixos
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
thblt has quit [(Ping timeout: 248 seconds)]
phreedom has quit [(Ping timeout: 240 seconds)]
bennofs1 has quit [(Ping timeout: 264 seconds)]
contrapumpkin has quit [(Quit: My MacBook Pro has gone to sleep. ZZZzzz…)]
contrapumpkin has joined #nixos
andymandias has quit [(Ping timeout: 255 seconds)]
phreedom has joined #nixos
fusion809_ has quit [(Quit: Leaving)]
c0bw3b has left #nixos []
Guest29722 has quit [(Read error: Connection reset by peer)]
nix-gsc-io`bot has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/bdce9327a1 (from 69 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
erictapen has quit [(Ping timeout: 248 seconds)]
ssmike has quit [(Ping timeout: 240 seconds)]
joehh has quit [(Ping timeout: 240 seconds)]
joehh has joined #nixos
phreedom has quit [(Remote host closed the connection)]
ambro718 has quit [(Ping timeout: 240 seconds)]