<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 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)]
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?
<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?
<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
<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()
<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?
<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: 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>
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?
<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.
<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 :)
<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.
<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
<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
<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...
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
<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?
<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>
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 %)
<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
<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
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.
<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
<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”.
<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)]
<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.
<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?
<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
<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:
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
<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
<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: