Lisanna2 has quit [(Read error: Connection reset by peer)]
iyzsong has joined #nixos
c0ntrapumpkin is now known as contrapumpkin
otherjrolfs has quit [(Ping timeout: 256 seconds)]
jrolfs has quit [(Ping timeout: 256 seconds)]
Sonarpulse has quit [(Remote host closed the connection)]
FRidh has quit [(Quit: Konversation terminated!)]
FRidh has joined #nixos
dieggsy has quit [(Remote host closed the connection)]
dieggsy has joined #nixos
simukis has quit [(Quit: simukis)]
dan_b has quit [(Ping timeout: 256 seconds)]
otherjrolfs has joined #nixos
jrolfs has joined #nixos
<Wizek>
Can I build haskell projects with nix that are fully statically linked?
<Wizek>
At the moment when I try to send binaries to some other people I get `open("/nix/store/mqglc3zkqwk3gchdp1hmlkx3ql9a5qyn-glibc-2.25-49/lib/ld-linux-x86-64.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)` and similar errors.
otherjrolfs has quit [(Ping timeout: 248 seconds)]
jrolfs has quit [(Ping timeout: 252 seconds)]
<catern>
Wizek: Yes, it is possible to do that
dan_b has joined #nixos
<catern>
I don't know how admittedly, check the Haskell section in nixpkgs manual maybe :)
<Wizek>
however, it writes: "It’s important to realize, however, that most system libraries in Nix are built as shared libraries only, i.e. there is just no static library available that Cabal could link!"
<Wizek>
catern: Would you know perhaps what this means?
<MP2E>
might be in release, I've been on unstable for a while so I know for sure it's in unstable, but Haskell packages are statically linked by default, in terms of their Haskell dependencies
<Wizek>
No cache?
<MP2E>
I just checked an xmonad binary I have locally and it confirms this, the only shared objects it references are all C libraries
<MP2E>
not sure how to make those static, though
<Wizek>
MP2E: But making those static is important if one ever wants to release the built binaries for people who don't use nix, right?
FRidh has quit [(Quit: Konversation terminated!)]
FRidh has joined #nixos
otherjrolfs has joined #nixos
<MP2E>
yeah, I agree, just not something I'm familiar with doing. A way that would work would be to override each dependency with 'dontDisableStatic = true; configureFlags = "--disable-shared --enable-static"', but that could be tedious to apply to each dependency, so there may be a better way that i'm not aware of
<dtz>
there's some stdenvAdapter's that do that IIRC, but nothing as automagic (or tested) as one might hope
otherjrolfs has quit [(Ping timeout: 248 seconds)]
<dtz>
in general it's not trivial to build a stack of software in each of the possible {static,shared} styles for all dependencies
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] bhipple opened pull request #1758: Add CentOS 7.4 builds to release.nix (1.11-maintenance...build-1.11-centos74-rpm) https://git.io/vbHih
NixOS_GitHub has left #nixos []
<dtz>
by it's not trivial I mean it's sometimes so difficult as to not be possible
<dtz>
due to differences in how build systems deal with each, differences in how symbols/etc are resolved (nevermind more complicated linker behavior), differences in how transitive dependencies are managed
<dtz>
weeeeeeee
<dtz>
so Nix mostly says we do shared for all the things and you can try to make some derivations static and hope downstream works properly but .... YMMV
<dtz>
and that's not a Nix limitation, it's a limitation of linux/software in nixpkgs
moet has joined #nixos
<Wizek>
That sounds a bit depressing. I might as well just go back to using stack then.
<moet>
i found the answer to my question from earlier, using the env's overrideAttrs function
<Wizek>
No matter where the limitation lies: linux/nix, if the end result is that I can't release and distribute my software thats a pretty major dealbreaker
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] flokli opened pull request #32994: ubootTools: include kwboot (master...uboot-tools) https://git.io/vbHPm
NixOS_GitHub has left #nixos []
jsgrant has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] yegortimoshenko created yegortimoshenko-patch-1 (+1 new commit): https://git.io/vbHP3
<Wizek>
As a last ditch effort I might try with a similar approach as this: `nix-shell -p '((haskell.packages.ghc821.extend (self: super: {mkDerivation = expr: super.mkDerivation (expr // { enableLibraryProfiling = true; });})).ghcWithPackages) (p: with p; [text hspec lens])' --run ghci`
<gchristensen>
you can, and you don't need nix
<gchristensen>
you can just hand over the /nix/store paths and have them extract it to /nix/store
jrolfs has joined #nixos
MP2E has quit [(Ping timeout: 248 seconds)]
<Wizek>
gchristensen: how do you mean? How could I extract all the relevant nix store paths programmatically?
<dtz>
Lots of Linux software can't be built fully static out of the box, for... Reasons. lol. It's a bit remarkable really. Anyway don't give up!
<dtz>
Oh if you're building only Haskell dependencies you might be able to make them all static
FRidh has joined #nixos
<dtz>
A given language often has plumbing to kinda make that sort of thing work
otherjrolfs has joined #nixos
<dtz>
But like... Gnome? Good luck ;)
<dtz>
Might be a command to pack all those up for you, too
<moet>
`nix-shell -p haskellPackages.proto-lens-protobuf-types` fails because the package depends on protoc being installed from `nixos.protobuf` ... how can i override `haskellPackages.proto-lens-protobuf-types` in my project's default.nix?
<dtz>
Also, there's... nix-bundle although I haven't tried it :)
m0rphism has joined #nixos
<moet>
trying to wrap my head around using packageOverrides for this, but it seems more related to global configurations
otherjrolfs has quit [(Ping timeout: 252 seconds)]
jrolfs has quit [(Ping timeout: 260 seconds)]
<dtz>
Lol we really just need a nix run variant that does some quick mounts or something. Nix is so goooood but no one wants to ask folks to install it lol
ogle has joined #nixos
<ogle>
does anyone have a build expression for freeipa?
<moet>
how do i cons to a list?
<ogle>
[1] ++ [2 3 4]
<moet>
ty
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej pushed 2 new commits to master: https://git.io/vbHPa
<moet>
random: where do all you experienced nix-folks learn about it?
<moet>
just the manual, or are you using it your school or research?
<ogle>
I purely learn from necessity. Often there isn't a build expression for something I need so I have to just figure it out. I mostly use the existing nixpkgs as a reference
jrolfs has joined #nixos
nuncanada has quit [(Ping timeout: 248 seconds)]
otherjrolfs has joined #nixos
<dtz>
good strategy-- nix is pretty great b/c you can always chase it down to something you can modify O:)
<moet>
ok, learning from necessity in: [ ] personal projects, [ ] work ?
<moet>
b/c i don't use it at work
<moet>
and work consumes all my time :P
<moet>
btw, this fixes the broken package i mentioned above: nix-shell -p 'haskellPackages.proto-lens-protobuf-types.overrideAttrs (old: { buildInputs = old.buildInputs ++ [pkgs.protobuf3_3]; })'
<Wizek>
dtz: I'm trying to use nix-bundle, but it would seem that it only supports bundling attributes that are part of nixpkgs. Can I bundle based on a local default.nix for a project?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej pushed 1 new commit to release-17.09: https://git.io/vbHP7
<NixOS_GitHub>
nixpkgs/release-17.09 9b59ab7 Raymond Gauthier: skypeforlinux: 5.5.0.1 -> 8.11.0.4...
<moet>
k, i think i got the package overriding piece.. i need to use `config = { packageOverrides = ...; };` and then inject that in the nixpkgs used by my derivation
<samueldr>
unstable doesn't have a nice options listing
<samueldr>
s/a nice/that nice/
<hyper_ch>
it should have
<samueldr>
yes!
<hyper_ch>
that seems to work
otherjrolfs has quit [(Ping timeout: 248 seconds)]
jrolfs has quit [(Ping timeout: 256 seconds)]
Mateon3 has joined #nixos
<hyper_ch>
samueldr: just pushed new configuration.nix to my git repo
Mateon1 has quit [(Ping timeout: 264 seconds)]
Mateon3 is now known as Mateon1
FRidh has quit [(Quit: Konversation terminated!)]
FRidh has joined #nixos
jrolfs has joined #nixos
otherjrolfs has joined #nixos
jrolfs has quit [(Ping timeout: 252 seconds)]
otherjrolfs has quit [(Ping timeout: 240 seconds)]
dieggsy has quit [(Read error: Connection reset by peer)]
FRidh has quit [(Quit: Konversation terminated!)]
FRidh has joined #nixos
otherjrolfs has joined #nixos
jrolfs has joined #nixos
justanotheruser has quit [(Ping timeout: 265 seconds)]
FRidh has quit [(Quit: Konversation terminated!)]
FRidh has joined #nixos
otherjrolfs has quit [(Ping timeout: 252 seconds)]
jrolfs has quit [(Ping timeout: 248 seconds)]
jrolfs has joined #nixos
otherjrolfs has joined #nixos
<disasm>
Dezgeg: trying the aarch64 image on raspberry pi 3 right now. Hanging on starting kernel.
otherjrolfs has quit [(Ping timeout: 252 seconds)]
jrolfs has quit [(Ping timeout: 252 seconds)]
justanotheruser has joined #nixos
<samueldr>
disasm: via serial?
<samueldr>
via serial, it will appear to hang if `console=ttyS0,115200n8` is not added to the kernel parameter
<disasm>
samueldr: hdmi
<samueldr>
and IIRC, thee more recent aarch64 builds don't have that parameter by default
<samueldr>
which kernel version, do you know?
FRidh has quit [(Quit: Konversation terminated!)]
<disasm>
4.14.5
<samueldr>
ah, yeah
FRidh has joined #nixos
<disasm>
and it does show console=ttys0,115200n8
<samueldr>
known issue, should be fixed in the next kernel version, andi- fixed it
FRidh has quit [(Client Quit)]
FRidh has joined #nixos
<samueldr>
[02:45:12] <andi-> next 4.14 release will boot on RPi3 again: https://www.spinics.net/lists/stable/msg206087.html figured why nobody else runs into this.. debian just does't enable that kernel module at all.. not sure if that is more intelligent or if they just haven't updated their configuration
<disasm>
oh :) samueldr you have a link to a working image I can flash?
<samueldr>
if you haven't collected your 4.9 generations, you can still boot them
<samueldr>
last time I checked (maybe a week ago) 4.9 was still the default kernel for the aarch64 image
otherjrolfs has quit [(Ping timeout: 264 seconds)]
<disasm>
I also got one of these to hack on that I figured it might be useful for: https://wiki.openwrt.org/toh/meraki/mr18 who knows, might try to revive nixos on mips :)
<samueldr>
I'm using that exact cable, the adafruit #954
<disasm>
cool, I'll order it after christmas :)
<disasm>
samueldr: I'm going to be here soon, want to send me a link when that build is done and I'll download it tomorrow?
mizu_no_oto has quit [(Ping timeout: 272 seconds)]
justanotheruser has quit [(Ping timeout: 252 seconds)]
<disasm>
err to bed :)
<samueldr>
lookng at it
<samueldr>
ping me when you wake up, it'll take a small while to upload
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
hiroshi has quit [(Ping timeout: 256 seconds)]
FRidh has quit [(Quit: Konversation terminated!)]
FRidh has joined #nixos
hiroshi has joined #nixos
jrolfs has joined #nixos
Kristjan has joined #nixos
jrolfs has quit [(Ping timeout: 264 seconds)]
bennofs has joined #nixos
<Isorkin>
how to create custom jobs on hydra?
thblt` has joined #nixos
thc202 has joined #nixos
thblt has quit [(Ping timeout: 272 seconds)]
<Kristjan>
My name is Kristjan. I am in urgent need for money. Please send me bitcoins. My bitcoin address: 167D9oFBSnyNSRoBNcscNDQb7KdK2BhfKg. You can also send to my paypal account
taktoa has quit [(Remote host closed the connection)]
<mbrock>
the pijul in nixpkgs doesn't seem to really do anything for me
<mbrock>
I wanted to try to fix GitHub branch URLs in Carnix, the new Cargo build replacement, but when I `pijul clone` its repository, it finishes instantly and then I have an empty repository
<avn>
hyper_ch: actually it should depends on packages as well (I think)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] grahamc opened pull request #33006: Revert "nixos: doc: implement related packages in the manual" (master...revert-32424-nixos/related-packages) https://git.io/vbHhn
NixOS_GitHub has left #nixos []
joelpet has quit [(Ping timeout: 248 seconds)]
joelpet has joined #nixos
jrolfs has joined #nixos
lejonet has joined #nixos
jrolfs has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] grahamc closed pull request #33006: Revert "nixos: doc: implement related packages in the manual" (master...revert-32424-nixos/related-packages) https://git.io/vbHhn
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] grahamc created revert-33006-revert-32424-nixos/related-packages (+1 new commit): https://git.io/vbHhS
<NixOS_GitHub>
nixpkgs/revert-33006-revert-32424-nixos/related-packages 3d89342 Graham Christensen: Revert "Revert "nixos: doc: implement related packages in the manual""
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] grahamc opened pull request #33007: Revert "Revert "nixos: doc: implement related packages in the manual"" (master...revert-33006-revert-32424-nixos/related-packages) https://git.io/vbHhH
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jtojnar closed pull request #32975: Added a gstreamer in dependencies (master...patch-1) https://git.io/vb91F
NixOS_GitHub has left #nixos []
FRidh has quit [(Read error: Connection reset by peer)]
<seccus>
Hi there
<seccus>
Question
<seccus>
I have installed python36Packages.setuptools, but python can't find setuptools
ottidmes has joined #nixos
<seccus>
I can't `import setuptools`, and any installation with pip says it can't find setuptools
<srhb>
seccus: What are you trying to achieve? Usually you would not install that into your environment
<seccus>
Oh
<seccus>
I have a project that's setup with pipenv
<seccus>
Trying to install `pipenv`
<ottidmes>
Can you also use colon with the -I option, or do I have to supply multiple -I arguments?
<srhb>
In general you'd setup separate shell environments for each project.
<srhb>
ottidmes: I believe multiple -I marguments
<seccus>
Yeah, in a `nix-shell -p python36Packages.setuptools` it can't import setuptools either
<seccus>
What's the correct way?
<ottidmes>
srhb: Thanks, then I will assume that, too bad you cannot supply the -I option to nix-instantiate
<srhb>
seccus: Depending on your workflow you might want something like nix-shell -p 'python3.withPackages (ps: with ps; [ setuptools ])'
<srhb>
seccus: Which builds a python interpreter that knows about the packages (from ps) in that list
<srhb>
Where ps is the python packageset of that version of python
<srhb>
ottidmes: I guess you can set NIX_PATH manually then?
<seccus>
srhb: Okay. Is there any documentation about this somewhere?
<ottidmes>
srhb: I could, but I want to know the behavior of -I specifically. I am trying to fix nixos-install, which does not behave well with NIX_PATH and -I
<mbrock>
so the new Rust Nix stuff is kept in a repo in a novel source control system Pijul which is also written in Rust, and the Nixpkgs version of Pijul silently fails to clone that repository because it is too old
<mbrock>
now I try to install Pijul with Cargo, but that fails in a nondeterministic way because of some horrific mysterious unresolved bug in Cargo related to "jobserver tokens"
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] primeos pushed 1 new commit to master: https://git.io/vbHj9
<srhb>
Is it OK to add a "stub" nixos test that essentially just starts the systemd service? I realize it doesn't catch a lot of errors, but it will catch some.
jrolfs has joined #nixos
<mbrock>
Rust building is my nemesis, I swear
<srhb>
and perhaps people will be more inclined to extend it if it's there in a stub form.
ogle has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee pushed 1 new commit to master: https://git.io/vbHj5
<NixOS_GitHub>
nixpkgs/master 35b2e4c Robert Helgesson: eclipse-plugin-checkstyle: 8.0.0 -> 8.5.1
NixOS_GitHub has left #nixos []
jrolfs has quit [(Ping timeout: 248 seconds)]
ogle has quit [(Ping timeout: 256 seconds)]
jb55 has joined #nixos
zzamboni has joined #nixos
phdoerfler has joined #nixos
i-am-the-slime has quit [(Ping timeout: 252 seconds)]
jrolfs has joined #nixos
<phdoerfler>
Hi! How do I make a nanorc in nixos that does syntax highlighting?
<phdoerfler>
I'm asking because to do that you normally include the syntax highlighting files but those are in some random path in /nix/store and I don't want to hard code these paths
<phdoerfler>
oh nvm there's an option for syntax highlighting in nixos, haha
<FRidh2>
you could install those files in your profile, and refer to those
<FRidh2>
so in ~/.nix-profile
jrolfs has quit [(Ping timeout: 248 seconds)]
ylwghst has joined #nixos
<srhb>
Hmm. Am I interpreting the current nixos:trunk-combined:tested failures related to squashfs correctly as impurities somewhere causing corrupt store path permissions? I can't reproduce the errors locally at least.
<NixOS_GitHub>
nixpkgs/master 23773a6 Joachim F: Merge pull request #32859 from dywedir/rust-bindgen...
NixOS_GitHub has left #nixos []
typetetris has joined #nixos
<typetetris>
Hi there. Im getting a little bit frustrated with nixos. Trying to install a minimal gcc and compile a hello world programm and I get 'cannot find crt1.o' and such linker errors. Would really appreciate some hints.
[0x4A6F] has joined #nixos
<disasm>
typetetris: nix-shell -p stdenv.cc
<disasm>
you typically don't want to install compilers into system packages or the environment. you can use nix-shell for using it interactively or write a nix file for defining your build.
<disasm>
nix pills are a great source for the latter
Itkovian has joined #nixos
uptime is now known as christmastime
iyzsong-x has quit [(Ping timeout: 264 seconds)]
<typetetris>
Actually I want a compiler as a system packages, but even installing gcc-wrapper-something didn't help. Your nix-shell command helped. But It would be cumbersome to do it all the time.
<disasm>
typetetris: yeah, nix really isn't designed to put gcc in your system packages. The environment needs updated the way the linker works so the packages no where libraries are
<disasm>
most folks that use linux add a default.nix to any packages they want to build that list all the dependencies
<disasm>
use nix, lol
<disasm>
then you can just nix-build or nix-shell for an interactive environment in the build.
<srhb>
Yeah, attempting to use NixOS as a fhs-like linux distro is quite painful and usually not worthwhile :)
<srhb>
You lose a lot of the advantages and gain a lot of problems.
<disasm>
even if you did have gcc in your build env, you wouldn't have any other libraries as you build things more complex than hello world programs
<disasm>
by build env, I meant system packages, my brain isn't talking to my fingers today
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Itkovian has joined #nixos
<typetetris>
Hmm, so nixos isn't suited as a desktop linux distribution?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to staging: https://git.io/vbQI8
<NixOS_GitHub>
nixpkgs/staging 98ef3b8 Tuomas Tynkkynen: Merge remote-tracking branch 'upstream/master' into staging
NixOS_GitHub has left #nixos []
<disasm>
typetetris: on the contrary, it's a great desktop system :) it just has a bit of a learning curve for a development system, but once you get used to it, you wonder why everything isn't like nix :)
marsam has joined #nixos
ottidmes has quit [(Quit: WeeChat 1.9.1)]
isidore has joined #nixos
<typetetris>
I get the impression, that I need somebody explaining it to me in person :) lol. I am a little bit dumb at times.
stanibanani has joined #nixos
<srhb>
typetetris: It's a big jump. It took me a looot of reading and experimenting.
moet has joined #nixos
<srhb>
typetetris: So don't think yourself dumb! (Or at least, you're not alone ;))
<typetetris>
Okay. Honest question: Is It really worthwhile If I only use it for my personal laptop and a few hobbyist projects?
<srhb>
No one but you can know.
<srhb>
It is for me.
<gchristensen>
it is to me too
<gchristensen>
it is so great not being afraid of updates breaking my system, and no fear to experiment even in scary deep dark places like stage-1
<srhb>
The overhead of having per-project setups the nix-like way is negative, in my opinion (as in, it's actually cheaper and a lot easier than the usual approach with libraries all lumped together, in the case of C dependencies)
<srhb>
The learning curve is a one time investment, but it's not trivial.
<srhb>
... I justify my tech choices too much. :-)
otherjrolfs has joined #nixos
jrolfs has joined #nixos
moet has quit [(Ping timeout: 256 seconds)]
<disasm>
me three :)
<typetetris>
For example I try to build xmonad with stack and now it complains about missing X library, but I did nix-shell -p stdenv.cc and nix-env -i libX11 inside that ..
<gchristensen>
nix-env doesn't doo what you're thinking inside nix-shell
<typetetris>
yeah, I noticed :)
<typetetris>
But what does it do?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee pushed 1 new commit to master: https://git.io/vbQLI
<NixOS_GitHub>
nixpkgs/master b13217b Robert Helgesson: perl-HTTP-Message: 6.11 -> 6.14
NixOS_GitHub has left #nixos []
<gchristensen>
it installs libX11 in to your user profile, as if you weren't in a nix-shell at all
isidore has quit [(Quit: WeeChat 2.0.1)]
<gchristensen>
nix-shell -p libX11 -p stdenv.cc
<typetetris>
yields undefined variable 'libX11'
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 opened pull request #33010: cacert: add hook that sets SSL_CERT_FILE (master...cacert-hook) https://git.io/vbQLO
NixOS_GitHub has left #nixos []
<gchristensen>
I shouldn't have stepped in, I can't help too much right now, sorry -- disasm, srhb can y'all take back over? you were both doing great :P
<Isorkin>
How to write text - 'param1= test \ echo ${param1}' to file with pkgs.writeText ? Error undefined variable ‘param1’ at
jrolfs has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej pushed 1 new commit to release-17.09: https://git.io/vbQq6
<NixOS_GitHub>
nixpkgs/release-17.09 67de94a Orivej Desh: darwin.Libsystem: fix build on 10.13.2...
NixOS_GitHub has left #nixos []
<LnL>
for a double quoted string you can use \${foo} and for a multiline string ''${foo}
cmiles74 has quit [(Quit: WeeChat 2.0)]
cmiles74 has joined #nixos
marsam has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] shlevy opened pull request #33012: hslib: Function to extract the haskell build inputs of a package. (master...hslib-haskell-build-inputs) https://git.io/vbQq7
<tokudan[m]>
grahamc: grafana allows guests to be assigned to an organisation in the config. they can then see all dashboards of that organisation. be careful with your data source though, it should be set to proxy mode and the login you store for the public org should only allow read access, as grafana will basically forward all queries to your database
<tokudan[m]>
grahamc: meaning you will have to setup a new organisation for that read-only access
<gchristensen>
tokudan[m]: will they be able to see metrics I haven't exposed through a dashboard?
<tokudan[m]>
gchristensen: not easily, unless you assign guests to a role that allows them to modify dashboards. but if you know how, they will still be able to send the relevant queries to your database to extract everything
<gchristensen>
so a determined user will be able to?
<tokudan[m]>
yes
<gchristensen>
ok, I should decide then if there is any sensitive information then :)
<tokudan[m]>
so make sure that user in the data source for the organisation has as little access as possible
jrolfs has joined #nixos
drakonis has joined #nixos
<gchristensen>
I wish I could have something like the Snapshot feature, but perpetual :)
<tokudan[m]>
oh, just providing a pic? that works as well
<tokudan[m]>
grahamc: the graph (Clientstatistik / Verbundene Clients) on https://map.hamburg.freifunk.net/#!v:m;n:f81a67a6029c is generated by the grafana instance
<tokudan[m]>
ah... interactive, i don't know how to do that
jrolfs has quit [(Ping timeout: 248 seconds)]
pie__ has joined #nixos
<acarrico>
Hey everyone. I booted off the NixOS Live CD. Some sites don't work. For example, I can ping archlinux.org fine, but "Network is unreachable" for wiki.archlinux.org. Others "name or service not known". Something funky with DNS?
nil has quit [(Ping timeout: 248 seconds)]
<gchristensen>
ok, well I'll take a look at the guest role and see how that goes, thank you a lot for the suggestions
nil has joined #nixos
<acarrico>
This is on a plain wired ethernet connection.
mizu_no_oto has quit [(Ping timeout: 265 seconds)]
<acarrico>
The name server listed in /etc/resolv.conf works fine on other machines on the same network.
<AntonLatukha[m]>
acarrico: Yes.
<AntonLatukha[m]>
This should not happen 8)
<AntonLatukha[m]>
Are you have DNS setup through DHCP on gateway, or you want local setup?
<acarrico>
It is pointing getting the name server from a DSL router (192.168.1.254), which goes through to the local ISP dns, I believe.
pie_ has quit [(Ping timeout: 252 seconds)]
<acarrico>
AntonLatukha[m]: and yes, through dhcp.
<acarrico>
I don't know if I want a local setup ultimately, for now it would be nice if the Live CD was working for the install.
<acarrico>
But in any case, haven't seen any trouble with this DNS on Arch/Debian/Windows/Android/WebOS/whatever else is on this network/
<gchristensen>
any hint the issue might be related to ipv6?
jrolfs has joined #nixos
nil has quit [(Ping timeout: 240 seconds)]
<acarrico>
I saw some weird post about upstream routers getting confused when hearing both ipv4 and ipv6 in a nix bug report, so yes maybe.
<AntonLatukha[m]>
Oh. You are on Live CD. I thought you have fresh setup )
<AntonLatukha[m]>
Yeah. Recently Linux networking also started to resolve `localhost` to IPv6.
<AntonLatukha[m]>
That can probably be in that direction. To IPv6.
nil has joined #nixos
jrolfs has quit [(Ping timeout: 260 seconds)]
Neo-- has joined #nixos
<AntonLatukha[m]>
We had a funky situation, when after Hydra update Hydra's webserver (Perl module "starman") - could not resolve `localhost`, because `localhost` now resolves to `::1`. So I've changed to request 127.0.0.1 directly.
mizu_no_oto has joined #nixos
mt has quit [(Remote host closed the connection)]
ylwghst has quit [(Remote host closed the connection)]
<AntonLatukha[m]>
Who knows, what have happened in systems that they started to use IPv6 more? I can not find info or news regarding this. But this sure happened, we had several cases in last 30 days.
<samueldr>
progress?
Maxdamantus has quit [(Quit: Back in about a month)]
asuryawanshi has joined #nixos
mt has joined #nixos
jrolfs has joined #nixos
asuryawanshi has quit [(Ping timeout: 248 seconds)]
<acarrico>
samueldr: me?
<samueldr>
a snarky remark to "what have happened in systems that they started to use IPv6 more"
<acarrico>
ping -4 wiki.archlinux.org # ping: wiki.archlinux.org: Name or service not known
<acarrico>
ping -6 wiki.archlinux.org # connect: Network is unreachable
<acarrico>
samueldr: more of a programmer than an admin, but the getent ahostsv6 lookups seem to work fine on those boxes... trying the v6/v4 pings now.
<samueldr>
afaik, you can resolve ipv6 addresses, but not necessarily access them
lejonet has quit [(Quit: lejonet)]
lejonet has joined #nixos
thblt` is now known as thblt
<acarrico>
samueldr: Seems correct. I can't access v6, but can do lookups.
<samueldr>
nothing stops me from doing an AAAA query over IPv4, thus getting an IPv6 address back
jrolfs has joined #nixos
<acarrico>
samueldr: Ok, so I guess I need to either figure out why ipv6 is broken or tell it not to try ipv6?
<AntonLatukha[m]>
acarrico: If you would see somewhere `fe80::/10` type addresses - than look at what is link-local IPv6 address.
<AntonLatukha[m]>
If you taking response to access IPv6 address, but your interfaces/routes have `fe80::/10`
<AntonLatukha[m]>
- that mean they are not configured, and that Ips autoset.
<LnL>
jtojnar: probably to make sure impure stuff doesn't influence the build when sandboxing is not enabled
ylwghst has joined #nixos
<jtojnar>
LnL: oh that makes sense
<jtojnar>
why is not /etc replaced as well though?
delta3 has quit [(Remote host closed the connection)]
delta3 has joined #nixos
mizu_no_oto has quit [(Ping timeout: 256 seconds)]
nil has quit [(Ping timeout: 264 seconds)]
jrolfs has joined #nixos
nil has joined #nixos
ylwghst has quit [(Ping timeout: 248 seconds)]
<acarrico>
AntonLatukha[m]: not sure I understand you. In "route -6" I see "Destination fe80::/64 Next Hop [::] If eno1". I'll have to read a little about IPv6 to understand much of this.
jrolfs has quit [(Ping timeout: 248 seconds)]
nil has quit [(Ping timeout: 248 seconds)]
nil has joined #nixos
thblt has quit [(Ping timeout: 256 seconds)]
<LnL>
isn't that the localhost address?
ambro718 has joined #nixos
ylwghst has joined #nixos
<acarrico>
There is also "ff00::/8 [::] eno1"
<AntonLatukha[m]>
`fe80::` is equivalent of old `169.254.0.0/16`, or APIPA in Windows terms.
<AntonLatukha[m]>
That addresses mean that IPv^ was enabled there, but not configured. So default fallback triggered.
<AntonLatukha[m]>
Also important to mention that link-local addresses do not get routed on routers, they are only for direct link, single-hop access if get used.
<AntonLatukha[m]>
`fe80::/64 [::] U 256 0 0 <interface>` is normal default route, it caches that link-local IPs, if they happen.
<AntonLatukha[m]>
*catches
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] aneeshusa opened pull request #33014: General ruby improvements for vagrant from source (master...general-ruby-improvements-for-vagrant-from-source) https://git.io/vbQGZ
NixOS_GitHub has left #nixos []
zzamboni has quit [(Quit: Leaving.)]
zzamboni has joined #nixos
phdoerfler has quit [(Quit: Leaving.)]
zzamboni has quit [(Client Quit)]
zzamboni has joined #nixos
<AntonLatukha[m]>
It is just info that going to help you understand what is happening on your host.
<AntonLatukha[m]>
I probably can say that release managers can be interested in knowing your issue.
<acarrico>
AntonLatukha[m]: Got you. Thanks. I'm guessing that the real issue is that my DSL modem, or my ISP is not routing ipv6, and something in the LiveCD network config depends on ipv6 routing.
<acarrico>
AntonLatukha[m]: Right. I could see your two long messages via a link at matrix.org
jb55 has joined #nixos
nil has joined #nixos
yegortimoshenko has joined #nixos
stanibanani has quit [(Ping timeout: 248 seconds)]
<acarrico>
I'm going to take a break, but I'll work on this problem later (feel free to comment here if you have any ideas). AntonLatukha[m] says release managers might be interested in the issue, so I'll try to open an issue (on the github issue page?)
Neo-- has quit [(Ping timeout: 252 seconds)]
<acarrico>
I guess I should search there to see if anyone else had this trouble.
<AntonLatukha[m]>
I ment, if you find a solution, or if you tried and not found what is going on - they probably should know, because it is directly in Live CD )
<AntonLatukha[m]>
acarrico: ⬆
nil has quit [(Ping timeout: 260 seconds)]
nil has joined #nixos
[0x4A6F] has quit [(Quit: [0x4A6F])]
<acarrico>
AntonLatukha[m]: agreed.
jb55 has quit [(Ping timeout: 268 seconds)]
jrolfs has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/vbQZh
<NixOS_GitHub>
nixpkgs/master fac4de6 Michael Raskin: perl526: init at 5.26.1
<NixOS_GitHub>
nixpkgs/master 428708f Michael Raskin: scowl: init at 2017.08.24
NixOS_GitHub has left #nixos []
<LnL>
AntonLatukha[m]: your default route isn't ipv6 right?
moet has quit [(Ping timeout: 240 seconds)]
jrolfs has quit [(Ping timeout: 256 seconds)]
<AntonLatukha[m]>
LnL: If destination IP is IPv4 default route of IPv4 used. If destination IP is IPv6 default route of IPv6 used. This is true to every networking system.
<AntonLatukha[m]>
LnL: So we all have two default routes, IPv4 and IPv6 ones.
<LnL>
right, never really did more than play with it
<AntonLatukha[m]>
LnL: To be more professional - IPv4 and IPv6 is two separate routing subsystems inside networking system. They both exist in networking system but they are completely separate. And have their rules and IPs, routing&caching tables and etc.
<LnL>
sure, but something has to decide what to use when both are available :)
nil has quit [(Ping timeout: 265 seconds)]
nil has joined #nixos
<AntonLatukha[m]>
LnL: Input pint is destination IP. If it is IPv6 - IPv6 subsystem. And source IP would be IPv6 IP of interface that would send a packet.
justanotheruser has quit [(Ping timeout: 272 seconds)]
<AntonLatukha[m]>
LnL: *point
zzamboni has quit [(Read error: Connection reset by peer)]
<AntonLatukha[m]>
LnL: Destination IP is what is set, while source IP is dynamically populated, basing on through what packet went. So things that provide IP info (DHCP, DNS and other) can influence IPv6 usage.
<LnL>
I'm talking about dns -> ip in this case
home-manager-use has joined #nixos
<home-manager-use>
hey folks, any of you able to help me with a simple question that pertains to nixpkgs and home-manager? i'm trying to specify a URL where a path is expected, for something like `home.file."path/to/whatever".source = https://...;`. can I use fetchurl for this, or am I Doing It Wrong because it would break referential transparency?
jrolfs has joined #nixos
justanotheruser has joined #nixos
sigmundv has joined #nixos
jrolfs has quit [(Ping timeout: 260 seconds)]
nil has quit [(Ping timeout: 252 seconds)]
mog has quit [(Ping timeout: 264 seconds)]
nil has joined #nixos
<yegortimoshenko>
rycee: ^
<rycee>
home-manager-use: Should be fine to use fetchurl.
<rycee>
You are providing a hash for the fetchurl anyway so it should yield the same result.
contrapumpkin has joined #nixos
sigmundv has quit [(Quit: Leaving)]
<home-manager-use>
thanks so much! need to say I appreciate the prompt advice, for the really great tool that I use all the time!
<rycee>
yegortimoshenko: Thanks for the ping :-)
<rycee>
home-manager-use: No problems. Glad you like it :-)
concatime has joined #nixos
<AntonLatukha[m]>
acarrico: IPv6 is probably not the issue. `ping -4 wiki.archlinux.org # ping: wiki.archlinux.org: Name or service not known` is one. What direct: `dig @192.168.1.254 wiki.archlinux.org`, `dig @8.8.8.8 wiki.archlinux.org` would say to you. Maybe somehow DNS can not resolve `wiki.archlinux.org` and other host have it cached. Or backwards, `wiki.archlinux.org` IP changed, and you getting old IP.
leothrix has quit [(Ping timeout: 256 seconds)]
<concatime>
From Manjaro to NixOS :)
<concatime>
I have a simple question. How to install latest package?
<AntonLatukha[m]>
concatime Because less people use <unstable> on NixOS that Arch users use rolling Arch itself - you would catch a more weird stuff with full <unstable> NixOS.
<hyper_ch>
you said you wanted to use unstable by default
nil has quit [(Ping timeout: 240 seconds)]
<hyper_ch>
switch channel
nil has joined #nixos
<concatime>
Perfect. I will give it a shot.
<hyper_ch>
concatime: since it's atomic updates you can easlily roll back or boot into earlier generation
<hyper_ch>
if it doesn't work it will not add a new generation anyway
<hyper_ch>
switch channel and then: nixos-rebuild boot --upgrade (wouldn't use switch from stable to unstable)
<LnL>
I personally use the release for my system but pick a few packages from unstable that I want more recent versions of
<hyper_ch>
because of atomic upgrades I go with unstable
ma27 has quit [(Ping timeout: 272 seconds)]
<hyper_ch>
or rather unstable small... few days ago it did compile LO though on my computer
nil has quit [(Ping timeout: 240 seconds)]
<hyper_ch>
time for some k-drama and then bed
ma27 has joined #nixos
<concatime>
It's 3:23 here in Montreal ;)
nil has joined #nixos
<hyper_ch>
if I didn't know better I'd assume that's in the morning
<samueldr>
that's 15:23 for international peeps, concatime
<samueldr>
:)
<concatime>
Oh, sorry guys.
<hyper_ch>
not everyone can count to 24
<hyper_ch>
and if we'd all use utc, we'd all have the same time :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] primeos opened pull request #33015: nixos/sway: Extend the descriptions and examples (master...nixos-sway) https://git.io/vbQWz
NixOS_GitHub has left #nixos []
<hyper_ch>
concatime: good luck with unstable if you're gonna try it
<hyper_ch>
works good for me
<concatime>
Thank you. But the fact that I can go back from inside systemd-boot is quite nice!
mizu_no_oto has joined #nixos
sigmundv has joined #nixos
ma27 has quit [(Ping timeout: 265 seconds)]
verite has joined #nixos
Phlogistique has quit [(Ping timeout: 255 seconds)]
nil has quit [(Ping timeout: 252 seconds)]
asdf_uiop has joined #nixos
Phlogistique has joined #nixos
jrolfs has joined #nixos
mizu_no_oto has quit [(Ping timeout: 264 seconds)]
nil has joined #nixos
<asdf_uiop>
Hi, can anyone help me? I am curious about configuring an additional DNS server within my local network.
<asdf_uiop>
What configuration options should I consider? There are many choices in the manual's list of configuration options
rogue_koder has quit [(Ping timeout: 252 seconds)]
sary has joined #nixos
ashkitten has left #nixos ["User left"]
jb55 has joined #nixos
ma27 has joined #nixos
jrolfs has joined #nixos
ylwghst has quit [(Ping timeout: 272 seconds)]
jtojnar has quit [(Ping timeout: 268 seconds)]
jrolfs has quit [(Ping timeout: 248 seconds)]
sary has quit [(Ping timeout: 256 seconds)]
<acarrico>
AntonLatukha[m]: dig @8.8.8.8 and @192.168.1.254 resolve mostly the same (although this case @8.8.8.8 shows a CNAME record which points to an A record). Meanwhile "getent hosts/ahostsv4/ahostsv5" not getting any addresses for some v4 (and/or v6) hostnames (versus old/wrong addresses).
erictapen has joined #nixos
ma27 has quit [(Ping timeout: 265 seconds)]
<acarrico>
I noticed that /etc/resolv.conf has "options edns0".
roberth has quit [(Ping timeout: 260 seconds)]
<AntonLatukha[m]>
acarrico: `getent` understanding is not my plane so far. "options edns0" everyone seems also have. I helped as I could.
<acarrico>
I'm guessing "dig" and "host" are going direct to servers, "getent" is going through the resolver setup on the OS (but not sure about that). Thanks for the help AntonLatukha[m].
leothrix has joined #nixos
sary has joined #nixos
ottidmes has joined #nixos
<ottidmes>
I just set up a Samba Domain Controller, it seems to work, but I see that connections are refused in my Samba server logs, the IPs are correct and the ports are in the range of the Dynamic RPC Ports as specified here: https://wiki.samba.org/index.php/Samba_AD_DC_Port_Usage
<ottidmes>
I indeed had not added those to my allowed ports in my firewall configuration, but when I tried to do so with allowedTCPPortRanges = [ { from = 49152; to = 65535; } ]; it still gives me rejected connection
<acarrico>
ottidmes: no idea, but is samba using tcp?
nil has quit [(Ping timeout: 264 seconds)]
nil has joined #nixos
<Dezgeg>
isn't that trying to connect to port 1024?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dylex opened pull request #33016: pycuda: fix boost_python3 link (master...pycuda) https://git.io/vbQ8V
NixOS_GitHub has left #nixos []
jmeredith has quit [(Quit: Connection closed for inactivity)]
<ottidmes>
Dezgeg: Yeah... I assumed it to be about that range, because it matched the only ports I had not opened, but you are right, SPT should be the source port and DPT the destination port
jtojnar has quit [(Ping timeout: 240 seconds)]
jrolfs has joined #nixos
<ottidmes>
Dezgeg: Thanks! I got it, it is actually mentioned on the page I linked: Samba versions before 4.7 used the TCP ports 1024 to 1300 instead
jrolfs has quit [(Ping timeout: 248 seconds)]
rmarantz has joined #nixos
roberth has joined #nixos
<rmarantz>
anyone have an idea what I need to get printing for gnumeric working? I get an error saying: (/run/current-system/sw/bin/gnumeric:23056): dconf-WARNING **: failed to commit changes to dconf: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ca.desrt.dconf was not provided by any .service files
<rmarantz>
so maybe this needs some gnome or other service I don't have installed. IDK
<Guest52592>
Can I use detached LUKS headers for decrypting the / and other disks in NixOS? I wanted to know how NixOS generates the initramfs file but I couldn't find an answer. I know that it can be done in Arch but can it be done in NixOS?
<acarrico>
AntonLatukha[m]: Solved-- following your "dig" suggestions, I changed the nameserver in resolv.conf to 8.8.8.8, and networking worked properly. Next I changed it back to 192.168.1.254 and my problems were back.
<acarrico>
Finally I rebooted 192.168.1.254, and networking issues are solved. Strange that the dns was working with dig/nslookup/etc., but not ping/etc.
<samueldr>
(though, I don't know about your actual question, detached luks header)
<samueldr>
noted, next time someone has weirdness with dns, [reboot network | switch nameserver] at least as a test
otherjrolfs has quit [(Ping timeout: 256 seconds)]
nil has quit [(Ping timeout: 256 seconds)]
nil has joined #nixos
<ottidmes>
Guest52592: I am not quite sure what you are doing, but can't you just use boot.initrd.preLVMCommands to write your own initrd stuff for LUKS, that is what I am using
<ottidmes>
Guest52592: Yeah, I use it to unlock my LUKS with my own script, because it did not fit the default unlock script provided as a module in NixOS
ambro718 has quit [(Quit: Konversation terminated!)]
otherjrolfs has joined #nixos
jrolfs has joined #nixos
chreekat has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] pbogdan opened pull request #33020: flashtool: mark as broken (master...flashtool-broken) https://git.io/vbQEm
NixOS_GitHub has left #nixos []
otherjrolfs has quit [(Ping timeout: 252 seconds)]
jrolfs has quit [(Ping timeout: 260 seconds)]
jtojnar has quit [(Read error: Connection reset by peer)]
jb55 has quit [(Ping timeout: 265 seconds)]
jb55 has joined #nixos
jrolfs has joined #nixos
Mateon1 has quit [(Remote host closed the connection)]
jrolfs has quit [(Ping timeout: 240 seconds)]
Mateon1 has joined #nixos
sigmundv has joined #nixos
hotfuzz has quit [(Ping timeout: 248 seconds)]
hamishmack has joined #nixos
moet has joined #nixos
moet has quit [(Client Quit)]
otherjrolfs has joined #nixos
hotfuzz has joined #nixos
sigmundv has quit [(Ping timeout: 272 seconds)]
pkill9 has quit [(Quit: WeeChat 2.0)]
hamishmack has quit [(Quit: hamishmack)]
aarvar has joined #nixos
otherjrolfs has quit [(Ping timeout: 248 seconds)]
mbock has joined #nixos
mbock is now known as mull
berce has quit [(Ping timeout: 260 seconds)]
jrolfs has joined #nixos
jtojnar has joined #nixos
otherjrolfs has joined #nixos
<mull>
hi! I used to have `services.xserver.displayManager.xmonad` set to `true`. Now that I have a custom build of Xmonad, how can I set it as the default displayManager.. I remeber there was sth. extremely simple, but.. I just cannot find it...
<mull>
> jeaye: no, worries.. yegortimoshenko, pointed to the right direction...
<mull>
(shit, sorry for the spam)
concatime has quit [(Ping timeout: 260 seconds)]
<gchristensen>
mistakes happen :)
<yegortimoshenko>
don't worry
i-am-the-slime has joined #nixos
otherjrolfs has joined #nixos
jrolfs has joined #nixos
<jeaye>
Be worried.
<yegortimoshenko>
one more thing: you'll need to replace ${xmonad} with your custom xmonad, i'm not sure whether you have it in overlay or how it's set up...
<mull>
yegortimoshenko: I actually tried to just use the direct config (as in the git link you send)
<mull>
however, I'm getting the error: `value is a list while a set was expected`