<dtzWill>
gchristensen: had good experiences with aer lingus the handful of times I've flown w/them, generally been pretty happy with international flights, esp in EU
<dtzWill>
any chance of a US-based NixCon event or meetup? O:)
<gchristensen>
cool :) my flight ended up being Lufthansa though, which I've heard good things about
<gchristensen>
dtzWill: NixCON: Central Berkshires ;)
pie__ has quit [(Ping timeout: 246 seconds)]
<dtzWill>
i'll host my own NixCon.. with blackjack.. and ....
<dtzWill>
:)
noam has joined #nixos
<gchristensen>
<3 we could do NixCON: Mohonk ... :)
python476 has quit [(Ping timeout: 240 seconds)]
* dtzWill
is in IL but I could go to NY or MA lo
<gchristensen>
disasm is in PA
<dtzWill>
taktoa is in IL, or at least he used to be :)
<taktoa>
I am indeed
<taktoa>
until the summer
<gchristensen>
hmmm
<gchristensen>
then?
<taktoa>
bay area
<taktoa>
awakesecurity.com
<gchristensen>
we should do a meetup, maybe even in Champaign, I know other nixos people there
<catern>
nixcon nyc!!
* Ankhers
*whispers* Canada...
<clever>
i'm also in Canada
<taktoa>
my family lives near NYC, I'll visit them in october
<taktoa>
plus the obsidian guys are there
<dtzWill>
taktoa: oxford comma on website please ♥
<Ankhers>
clever: You are atlantic Canada, right? I'm around Toronto.
<clever>
yeah, NB Canada
<Ankhers>
That is about 13.5 hours by car. That isn't too far to travel for a conference. I'd be down for visiting NB.
<clever>
i'm in the middle of nowhere, all the major industries in town have closed up, and they are building a new seniors home every 2-3 years, lol
glenn_ has joined #nixos
<Ankhers>
lol. Maybe Toronto would be better?
glenn has quit [(Ping timeout: 240 seconds)]
<clever>
probably
erictapen has quit [(Ping timeout: 248 seconds)]
phinxy has joined #nixos
phinxy has left #nixos []
<dtzWill>
clearly we should all move to Nixtropolis, declarative city
<clever>
:D
<Ankhers>
I mean, it would be super easy to build and maintain, right?
<dtzWill>
:D
<dash>
dtzWill: problem is that whenever a change was needed, you'd have to replace the whole city
<dtzWill>
that only seems like a problem because normal cities don't have atomic replacements
<bbarker>
but only slightly, only slightly
<Lisanna>
nixopolis-rebuild switch
<dtzWill>
^____^
<gchristensen>
garbage collection would be slow though, worms and beetles only work so fast
<bbarker>
but gc in canada always seems so nice
<bbarker>
even at fast food restaurants on the highway
griff_ has joined #nixos
<bbarker>
as an american, I can't help but be impressed
<clever>
in my area, its just one truck every week on monday, simple
<clever>
about a 1 hour drive from here, its a different truck each week, for either recyclables or garbage, and you need a cellphone app just to know when its coming next, lol
filterfish has quit [(Quit: Leaving)]
<bbarker>
at least there's an app, I guess, lol... are we talking Labrador
<clever>
nope, bathurst is the one with the more complex schedules
athan has joined #nixos
hydraz has quit [(Read error: Connection reset by peer)]
<disasm>
gchristensen: think we can discuss with Profpatsch tomorrow about me doing a brainstorming session on documentation? I'm going to submit the request soon and hopefully... it'll get approved :)
<gchristensen>
definitely do it, if you're there for hack day we don't even have to talk to profpatsch about making a specific slot for it
glenn_ has quit [(Remote host closed the connection)]
<disasm>
Sounds good! I'll get the ball rolling tomorrow. I'll definitely be around the whole time (including hack days) if I get approved to go!
hydraz has joined #nixos
hydraz has quit [(Changing host)]
hydraz has joined #nixos
mkoenig has quit [(Ping timeout: 260 seconds)]
hellrazo1 has joined #nixos
hellrazor has quit [(Ping timeout: 252 seconds)]
glenn has joined #nixos
ris has quit [(Ping timeout: 246 seconds)]
Acou_Bass has quit [(Ping timeout: 246 seconds)]
Piece_Maker has joined #nixos
Piece_Maker is now known as Acou_Bass
ison111 has quit [(Ping timeout: 255 seconds)]
<Profpatsch>
disasm: gchristensen Did I miss something?
<Profpatsch>
nixcon requests should probably go to _c_. :)
<Profpatsch>
But I can relay them as well.
<Profpatsch>
You can also join #nixcon
<gchristensen>
oh! _c_ !
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
MP2E has joined #nixos
takle has joined #nixos
mbrgm has quit [(Ping timeout: 240 seconds)]
mbrgm has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
alx741_ has quit [(Quit: alx741_)]
alx741 has joined #nixos
ison111 has joined #nixos
griff_ has quit [(Quit: griff_)]
aanderse-laptop has joined #nixos
<aanderse-laptop>
trying to compile a program but getting a missing ogl error:
<aanderse-laptop>
Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR)
<aanderse-laptop>
have an ati card
<aanderse-laptop>
what package do i need to make cmake find ogl?
<aanderse-laptop>
i tried mesa
<aanderse-laptop>
mesa_glu
<aanderse-laptop>
and mesa_noglu
<aanderse-laptop>
none of those packages make my cmake find ogl
<clever>
aanderse-laptop: did you use nix-shell?
mattops has joined #nixos
<aanderse-laptop>
tried both nix-shell and /etc/nixos/configuration.nix
<clever>
configuration.nix wont ever help with compiling things
<clever>
cmake, gcc, and pkgconfig MUST NOT be in configuration.nix
<clever>
what arguments did you give to nix-shell?
<aanderse-laptop>
on a side note completely unrelated to this... what if i put cmake and gdb in my configuration.nix file because it's really annoying having to tell kdevelop where they are all the time when they change? :\
<aanderse-laptop>
nix-shell -p mesa
<clever>
pkgconfig wont work right in that shell, so you need to at least use "nix-shell -p mesa pkgconfig cmake", that should make it work faster
<clever>
aanderse-laptop: and for that 2nd question, run kdevelop under nix-shell
mattops has quit [(Client Quit)]
<aanderse-laptop>
clever: yeah but it changes the path of gdb (ie. /nix/store/blahblahblah) sometimes and i end up having to go in and modify the path
<clever>
what if you configure kdevelop to just run "gdb", and then run kdevelop under a nix-shell that provides gdb?
<aanderse-laptop>
could be wrong, but i believe kdevelop often needs absolute paths
<clever>
gdb is one thing you could install system-wide
<clever>
but everything else, just makes building harder
<clever>
and builds must always be done within nix-shell
<aanderse-laptop>
i'm pretty sure gdb does require exact path, the others may not
<aanderse-laptop>
i'll check again at some point... after i solve my ogl issue
<clever>
is the project on github?
<aanderse-laptop>
which i'm testing what you said right now
<aanderse-laptop>
no, but the project compiles on all my other computers which don't have ati cards
<clever>
nix goes out of its way to ensure the compile doesnt care what gpu you have
<aanderse-laptop>
major difference in configuration.nix between boxes being videoDrivers = [ "nvidia" ]
<clever>
the mesa package is just generic libGL headers, and nixos will swap out the libGL.so at bootup
<aanderse-laptop>
ok
<aanderse-laptop>
yeah, so
<aanderse-laptop>
thanks
<aanderse-laptop>
:)
<aanderse-laptop>
i had added a bunch of crap (cmake, gcc, etc...) to my configuration.nix because kdevelop and the changing paths
<aanderse-laptop>
seems like that screwed things up
<aanderse-laptop>
now i'll just have to figure out what doesn't need to be absolute path in kdevelop
<clever>
and mesa is an alias left-over from the old days, you probably want to use mesa_noglu
<aanderse-laptop>
thank you
<aanderse-laptop>
next question... openscenegraph is an old version in the nix repo
<clever>
what is the version you need?
<aanderse-laptop>
easier to poke the maintainer for a version update, or add it with a version override to my configuration.nix?
<aanderse-laptop>
was hoping for the most recent stable 3.4.0
<clever>
3.4.0 is the version in nixpkgs
<aanderse-laptop>
i'm on nix stable
<aanderse-laptop>
not unstable
<clever>
you can build your package against unstable while running the os on stable
<jeaye>
I haven't seen a way, in the NixOS manual or sources, to grant my container access to /dev/urandom.
<jeaye>
Does NixOS expose this?
<xd1le>
joepie91: oh wow that seems a bit dumb, I wonder why 🤔.. But thanks, I guess for this case isString would work though.
<xd1le>
which brings me to another question, how can I just a test/run a nix expression..?
simukis has joined #nixos
<xd1le>
ah so I found nix-repl I think that would be it! (I've just always been using nix-build...)
odi has joined #nixos
simukis has quit [(Ping timeout: 240 seconds)]
xd1le has quit [(Quit: Toodaloo padawans! 👣)]
pxc has quit [(Ping timeout: 248 seconds)]
pxc has joined #nixos
freusque has quit [(Ping timeout: 255 seconds)]
<sphalerite>
xd1le: yep, nix-repl is very useful for that. For something more useful for scripting you can use nix-instantiate --eval
proteusguy has joined #nixos
anton__ has quit [(Ping timeout: 255 seconds)]
anton__ has joined #nixos
nwuensche has joined #nixos
akaWolf has joined #nixos
odi has quit [(Ping timeout: 240 seconds)]
odi has joined #nixos
sellout-1 has quit [(Quit: Leaving.)]
<nwuensche>
Hi! So I'm wrapping a script in a cups driver package right now, but it just says: .../filter/.brlpdwrapperDCP145C-wrapped: line 66: grep: command not found. I wrapped coreutils, but I still get this message. Anyone knows how to wrap grep?
hamishmack has quit [(Quit: hamishmack)]
jellowj has joined #nixos
MercurialAlchemi has joined #nixos
anton__ has quit [(Ping timeout: 246 seconds)]
phreedom has quit [(Remote host closed the connection)]
anton__ has joined #nixos
odi has quit [(Ping timeout: 255 seconds)]
<hyper_ch>
hmmm, trying to mount shares in a loop but failing
jtojnar has quit [(Read error: Connection reset by peer)]
<hyper_ch>
Shados_: I just miss some kind of looping :(
<Shados_>
it does take a while to wrap your head around higher-order functions instead of looping, but it'll feel natural after enough use
<hyper_ch>
Shados_: two problems
<hyper_ch>
I first define some tmpfs dirs
<hyper_ch>
and then adding your code just breaks at
<hyper_ch>
error: syntax error, unexpected '=', expecting ';', at /etc/nixos/configuration.nix:63:15
<Shados_>
you'll need to merge the two attribute sets then
<hyper_ch>
when I remove the tmpfs entries first, I get error: The option value `fileSystems.Audio.options' in `/etc/nixos/configuration.nix' is not a list of string (with check: non-empty)s.
<nwuensche>
Shados: Do you know a solution to my problem? I'm wrapping a script in a cups driver package right now, but it just says: .../filter/.brlpdwrapperDCP145C-wrapped: line 66: grep: command not found. I wrapped coreutils, but I still get this message
<Shados_>
hyper_ch: https://pastebin.com/a8H00XfG your function returns an attribute set (these things {}), and you are also defining the attribute set containing the tmpfs mounts, so you want the union of them by passing both the // operator. This should work, I think. Also, if you use vim, there's a vim-nix plugin with rather decent syntax highlighting and linting. Helps a lot.
<hyper_ch>
besides, the problem with looking for // is http(s)://yaddayaddayadda
<hyper_ch>
ah, thx
<Shados_>
*by passing both to the // operator
<Shados_>
derped that sentence up a bit
<hyper_ch>
Shados_: problem still remians: error: The option value `fileSystems.Audio.options' in `/etc/nixos/configuration.nix' is not a list of string (with check: non-empty)s.
Mateon3 has joined #nixos
<Taneb>
What do I need to do to set a keyboard layout in my configuration.nix? I've set i18n.consoleKeyMap and services.xserver.layout both to "uk" and I'm still on a US layout
anton__ has quit [(Ping timeout: 276 seconds)]
<Shados_>
Yeah, looks like you're using the old syntax for filesystem options. They're now a list of strings like ["noauto" "user" ] instead of the literal options string you'd use to mount it
<nwuensche>
Taneb: Use xserver.displayManager.sessionCommands
<hyper_ch>
Shados_: ah right :) yeah, tried to write that condensed a while back.. gave up and reattempting now ;)
nslqqq has joined #nixos
Shados has joined #nixos
<nwuensche>
Taneb: I had the same problems with these commands, and I think you just could use xserver.displayManager.sessionCommands =''setxkbmap eu'';
<nwuensche>
Taneb: Of course, replace eu with uk ;)
anton__ has joined #nixos
<Taneb>
Didn't seem to work :(
<nwuensche>
Taneb: Have you rebuild?
nslqqq has quit [(Ping timeout: 255 seconds)]
<Shados>
nwuensche: you're only wrapping with the coreutils bin path for that one, not the grep bin path as well
<nwuensche>
Shados: But I can't add grep to the makeBin function/
nslqqq has joined #nixos
<Taneb>
nwuensche, yeah
anton__ has quit [(Ping timeout: 255 seconds)]
<Shados>
nwuensche: Not sure what you mean?
<nwuensche>
Taneb: Could you reboot? I think nixos doesn't restart the x service when you rebuild.
freusque has joined #nixos
<Shados>
Taneb: restart the display-manager service
<nwuensche>
Shados: How can I add grep to wrapProgram?
<Shados>
rebuilds don't do that by default as it kills your X session
<Shados>
you just add the package to the list of binary paths you're prefixing PATH with for the wrapped program
aanderse_ has joined #nixos
ChongLi has joined #nixos
<Taneb>
Hmm, does it want to be gb rather than uk
<nwuensche>
Shados: Sorry, I just thought I added the gnugrep to the write script, but it was the wrong one... I thought it doesn't work with gnugrep, but it was my mistake. Thank you for that :)
<nwuensche>
brb
<Taneb>
Changed services.xserver.layout to "gb" and it seems to work now!
<hyper_ch>
if I tell nixos to rebuild, it should fetch that latest nix file and complain about sha256
anton__ has quit [(Ping timeout: 255 seconds)]
<Shados>
hyper_ch: I believe the problem in your case is that let-expressions are only syntactically valid at the beginning of a scope, so you either need to define all your variants of makeFileSystems using different names in a single let ... in at the start of the fileSytems definition, or separately wrap each attribute set you are mergining in parentheses
<sphalerite>
Shados: no, let is fine pretty much anywhere
<hyper_ch>
it tells me: output path ‘/nix/store/xians9ni7yflgnndmkrdr7j7gpiikygq-pdfForts-bd56b46’ has r:sha256 hash ‘0rpp37vm1py2haz006dwwngkv5s021i4hrha7lgh3lflj52b1gih’ when ‘1fyh56y34w2hj899mspd20ilg7mi7n0yv4zi7mlgnz81qmax3fzy’ was expected
<hyper_ch>
so I change the sha256 now in the .nix file to 0rpp37vm1py2haz006dwwngkv5s021i4hrha7lgh3lflj52b1gih
FRidh has joined #nixos
<hyper_ch>
again git add -A, git commit -am, git push
<Shados>
sphalerite: OK. Why does it refuse a let expression on the RHS of a // operator?
freusque has joined #nixos
<hyper_ch>
I run nixos rebuild again, but still same error: output path ‘/nix/store/xians9ni7yflgnndmkrdr7j7gpiikygq-pdfForts-bd56b46’ has r:sha256 hash ‘0rpp37vm1py2haz006dwwngkv5s021i4hrha7lgh3lflj52b1gih’ when ‘1fyh56y34w2hj899mspd20ilg7mi7n0yv4zi7mlgnz81qmax3fzy’ was expected
<hyper_ch>
it didn't download the latest master
<sphalerite>
Shados: try // (let … in …)
anton__ has joined #nixos
<hyper_ch>
why isn't it fetching the latest master again upon rebuild command?
<sphalerite>
right, I see the problem. My guess is that builtins.fetchurl makes some assumptions about the URL being cacheable
<hyper_ch>
sounds like a bug to me?
<Shados>
sphalerite: So the parser just isn't smart enough to pick up on let being a keyword in that position?
<hyper_ch>
Shados: sphalerite: instead of having just the "name" in the let ... in ... expression, could I assign more variables/values?
<hyper_ch>
e.g. mount point, username, password, remote address, etc?
<sphalerite>
Shados: it's not so much a matter of the parser's smartness as the language definition. I don't know the exact intricacies of it but I imagine allowing that without parentheses might introduce ambiguities
<hyper_ch>
builtIns.ListtoAttr only allows name -> value
freeman42y has quit [(Ping timeout: 240 seconds)]
endformationage has quit [(Quit: WeeChat 1.9)]
mw has left #nixos []
<hyper_ch>
with the ( Let ... In .... ) around the second let it works fine
leat has joined #nixos
<hyper_ch>
that doesn't seem to work
<hyper_ch>
still clueless how i can define where it should be mounted
krav_ has quit [(Ping timeout: 248 seconds)]
hexagoxel has quit [(Ping timeout: 252 seconds)]
<hyper_ch>
sphalerite: where should I report about that behaviour of buitins.fetchurl?
<sphalerite>
I'd say the nix repo
<sphalerite>
I'm pretty certain it's intended behaviour
<sphalerite>
just not sure if it's documented intended behaviour :p
<clever>
nix-repl> builtins.foldl' (state: item: state + "i is ${item}, ") "" [ "a" "b" "c" ]
<clever>
"i is a, i is b, i is c, "
<clever>
the function is given the current state, and an item from the list
<clever>
and "" is the initial state
<clever>
the function must then return a new state, and foldl' will re-run it on the new state and next item
<clever>
until it has run out of items
<clever>
nix-repl> builtins.foldl' (state: item: state // { ${item} = "value"; }) {} [ "a" "b" "c" ]
jtojnar has quit [(Ping timeout: 240 seconds)]
<clever>
{ a = "value"; b = "value"; c = "value"; }
<clever>
and you can use any type you want
<sphalerite>
hyper_ch: http://ix.io/zsr fixed some mistakes in it, now it evaluates successfully. You'll want to change `inherit name;` to something like `name = "/path/to/place/${name}", or maybe add another attribute for where stuff for a particular server gets mounted.
jtojnar has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to staging: https://git.io/v5soW
<NixOS_GitHub>
nixpkgs/staging 9435119 Maximilian Güntner: cpython: include test.support and test.regrtest...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh closed pull request #28540: cpython: include test.support and test.regrtest (master...python_test_support) https://git.io/v5q4d
<clever>
i need to get some sleep now, its 5am, lol
<nwuensche>
clever: Oh, ok. No problem ;)
<sphalerite>
hyper_ch: a fold is the repeated application of a function to elements of a list with some state that gets passed over from one to the next
<sphalerite>
gnight clever !
<hyper_ch>
sphalerite: thanks for the explanation but I don't really understand that
<sphalerite>
hyper_ch: if you write the loop that you want in pseudocode or python or something I can show you how to translate it into a fold
<hyper_ch>
one thing after the other
takle has quit [(Ping timeout: 264 seconds)]
<hyper_ch>
sphalerite: You'll want to change `inherit name;` to something like `name = "/path/to/place/${name}", or maybe add another attribute for where stuff for a particular server gets mounted. --> don't really understand how to rename that or how to add an option for the mount location
<sphalerite>
well, the name attribute in there is where it gets mounted
<hyper_ch>
what do you mean by name attribute?
<hyper_ch>
ah.... I think now I understand
<sphalerite>
The one that's defined by line 15, `inherit name;`
Arcaelyx_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v5sKG
<hyper_ch>
ok, next, it doesn't like that: "${localfs}/${name}";
seanparsons has quit [(Read error: Connection reset by peer)]
lukego has joined #nixos
<hyper_ch>
error: syntax error, unexpected ';', expecting '.' or '=', at /etc/nixos/configuration.nix:53:29
takle has joined #nixos
<lukego>
This seems like a ridiculous question to ask, but... How do I compile nix?
<hyper_ch>
that was the inherit line before
seanparsons has joined #nixos
<hyper_ch>
so I just did what you told me, replaced with with the mount location
<lukego>
I tired 'nix-build -A build release.nix' and 'nix-shell shell.nix' but both fail to find 'nlohmann_json' variable
<hyper_ch>
so I'm back to the question: You'll want to change `inherit name;` to something like `name = "/path/to/place/${name}", or maybe add another attribute for where stuff for a particular server gets mounted. --> what does that mean?
<sphalerite>
hyper_ch: could you paste the whole thing again? Preferably somewhere with syntax highlighting, it's not very easy to read on paste.simplylinux.ch
<hyper_ch>
syntaxhighlighting for what language?
<lukego>
'./bootstrap.sh && ./configure' fails too which I suppose is not surprising since it's in an arbitrary build env
<sphalerite>
gist.github.com has syntax highlighting for nix
<hyper_ch>
still same error
goibhniu has joined #nixos
<hyper_ch>
nah sorry, something else
garbas has joined #nixos
<hyper_ch>
sphalerite: almost there: https://paste.simplylinux.ch/view/e7a13df4 it complains that I pass an empty option for the first set becuase I don' requirey x-systemd to do anything
<hyper_ch>
ah, I could trick it
<sphalerite>
so you need to prevent the empty string from being included in options
<sphalerite>
one way to do that would be to replace the xsystem option with an extraOptions option, which is a list and is appended to the options attribute
thc202 has joined #nixos
<sphalerite>
or that
<hyper_ch>
I just put in the options "x-systemd.requires=..."
<hyper_ch>
now testing to see if reboot works ;)
<hyper_ch>
brb
<hyper_ch>
sphalerite: no luck
<hyper_ch>
ok, my mistake :)
<hyper_ch>
all mounts are like //remote/share}
<hyper_ch>
somewhere that bracket came in
hamishmack has joined #nixos
<Shados>
nwuensche: what's the prob?
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
<hyper_ch>
now something is totally broken
<nwuensche>
Shados: You're online, yay :) When I cd /nix/store/...-cups-progs and then echo "test" | sh lib/cups/filter/brlpdwrapperDCP145C, I get: /nix/store/...-mfc2j47dd0dw-cupswrapper-3.0.0-1/usr/local/Brother/Printer/dcp145c/lpd/.brdcp145cfilter-wrapped: line 3: /nix/store/...-mfc2j47dd0dw-cupswrapper-3.0.0-1/usr/local/Brother/Printer/dcp145c/lpd/.brdcp145cfilter-wrapped: No such file or directory
mudri` has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v5sXB
seanparsons has quit [(Read error: Connection reset by peer)]
<nwuensche>
Shados: I think there is a interpreter problem, but I don't really know what is going wrong there
<symphorien>
try bash -x instead of sh
seanparsons has joined #nixos
aloiscochard has joined #nixos
<pi3r>
It looks like I am quite unlucky with the stable branch recently ... I thought it would be a lucky day as the `google-chrome` issue seems fixed. But now I have got a vcsh issue ... https://github.com/NixOS/nixpkgs/issues/28630 This was working a couple of days ago.
seanparsons has quit [(Read error: Connection reset by peer)]
<pi3r>
*I have been quite unlucky* Sorry for the bad English ;-)
seanparsons has joined #nixos
erictapen has quit [(Remote host closed the connection)]
mkoenig_ has joined #nixos
bennofs has joined #nixos
erictapen has joined #nixos
mkoenig has quit [(Ping timeout: 255 seconds)]
<Shados>
nwuensche: I build a copy locally, the binary it tries to run (/nix/store/...-mfc2j47dd0dw-cupswrapper-3.0.0-1/usr/local/Brother/Printer/dcp145c/lpd/.brdcp145cfilter-wrapped) is linked against /lib/ld-linux.so.2, which of course does not exist on NixOS
<hyper_ch>
hyper@subi:~/.thunderbird$ Error: Access was denied while trying to open files in your profile directory.
<nwuensche>
Shados: So I tried to comment this line out, but I still get the same error.
<sphalerite>
hyper_ch: can this be at all related to the filesystem changes? Is your home on one of these network mounts?
<hyper_ch>
I think the variable user or password might cause problems
<Shados>
nwuensche: I don't remember enough about linking to be much help here, sorry. I vaguely remember reading some articles about packaging pre-built applications for nixos, so maybe google about for those, or look for existing examples in nixpkgs?
<sphalerite>
hyper_ch: but your home isn't on one of the network mounts afaict
<nwuensche>
Shados: Ok, thank you nevertheless
<hyper_ch>
sphalerite: it's note
<hyper_ch>
also kde not showing up any programs is weird
<sphalerite>
then surely it shouldn't affect that
<hyper_ch>
booted now in my original and that works
<sphalerite>
try diffing the output of mount in the two systems
<hyper_ch>
in two systems?
zeus_ has quit [(Remote host closed the connection)]
proteusguy has joined #nixos
nwuensche has quit [(Quit: Leaving)]
zeus_ has joined #nixos
ylwghst has joined #nixos
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
zeus_ has quit [(Ping timeout: 276 seconds)]
<hyper_ch>
sphalerite: so, using old configuration.nix I rebuilt and booted into to... cleaning out now all the old generations and then make a copy of fstab, right?
proteusguy has quit [(Remote host closed the connection)]
<sphalerite>
just boot the old, working one, `mount > working`, boot the new, broken one, `mount > broken`, then `diff working broken`
erictapen has quit [(Remote host closed the connection)]
takle has quit [(Remote host closed the connection)]
ylwghst has quit [(Ping timeout: 240 seconds)]
erictapen has joined #nixos
ThatDocsLady has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v5syv
<hyper_ch>
sphalerite: I have now this: https://paste.simplylinux.ch/view/raw/3ca8633f maybe that should be posted somewhere (outside my nixos github repo)... it could be useful for others
takle has quit [(Remote host closed the connection)]
<lewo>
Hi. I get a "couldn't resolv hostname" from nix-store --realize gzip.drv while nix-prefetc-url works fine on the failing url. I think this could be related to the fact I'm in a container which is not well initialized. Are there any particular things to do to be able to resolv names with libstore?
sigmundv has quit [(Disconnected by services)]
<sphalerite>
lewo: what sort of container?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/v5s9x
<NixOS_GitHub>
nixpkgs/master 22002cb Benjamin Staffin: xssproxy: init at 1.0.0
<hyper_ch>
sphalerite: I still think it would be good to add that example somewhere official :)
<sphalerite>
hyper_ch: sure. I don't know where the best place for that would be, but I'm sure if you open a PR/edit a wiki page/whatever nobody will mind :)
civodul has joined #nixos
<hyper_ch>
or do you think it's not good? I mean there's probably tons of people out there that need to connect to one or more remote servers
erictapen has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej opened pull request #28633: webkitgtk24x: fix build with gcc6 (master...webkitgtk24x) https://git.io/v5s71
NixOS_GitHub has left #nixos []
ahmedtd has quit [(Quit: No Ping reply in 180 seconds.)]
_ris has joined #nixos
pierron has quit [(Ping timeout: 248 seconds)]
ekleog_ has quit [(Ping timeout: 248 seconds)]
ekleog has joined #nixos
pierron has joined #nixos
ahmedtd has joined #nixos
ris has quit [(Ping timeout: 260 seconds)]
erictapen has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v5s5d
<NixOS_GitHub>
nixpkgs/master 2f5dab7 Jörg Thalheim: ansible: move out of pythonPackages...
NixOS_GitHub has left #nixos []
pie__ has quit [(Remote host closed the connection)]
kiloreux has joined #nixos
pie__ has joined #nixos
mudri` has quit [(Ping timeout: 246 seconds)]
nwuensche has quit [(Quit: Leaving)]
<kiloreux>
How can I compile a nixpkg that requires cmake to configure before make ?
<avn>
kiloreux: add cmake to nativeBuildInputs, it should work
<avn>
it detect CMakeLists in top of src dir, and run cmake
<kiloreux>
Thank you avn :D Will try that.
freeman42y[m] has joined #nixos
simukis has joined #nixos
freeman42x[m] has quit [(Ping timeout: 252 seconds)]
python476 has joined #nixos
pie__ has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 2 new commits to master: https://git.io/v5sbC
<NixOS_GitHub>
nixpkgs/master 8994b27 Robin Gloster: libvirtd module: add qemu_kvm to path
<NixOS_GitHub>
nixpkgs/master 815cffc Robin Gloster: docker-distribution: 2.6.0 -> 2.6.2
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v5sb6
Wizek has quit [(Quit: Connection closed for inactivity)]
betaboon has joined #nixos
betaboon has quit [(Changing host)]
betaboon has joined #nixos
pie__ has quit [(Ping timeout: 246 seconds)]
jellowj has joined #nixos
jtojnar has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ThomasMader opened pull request #28635: Init ldc at 1.3.0, fix bootstrap dmd build, run dmd-testsuite in checkPhase and fix Foundation framework (master...ldc) https://git.io/v5spp
<asymmetr->
gchristensen: is it pythonPackages3 or python3Packages?
<gchristensen>
d'oh, python3Packages :)
<asymmetr->
:)
<garbas>
gchristensen: i will be off meetings in 3-4h. will you be online then?
<gchristensen>
garbas: you bet
<garbas>
gchristensen: i will ping you when i'm done.
<gchristensen>
thanks!
<asymmetr->
i tried it, and the build still seems to be running tests and all that, e.g. for magic-wormhole
Ivanych has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] domenkozar pushed 8 new commits to release-17.03: https://git.io/v5GJz
<NixOS_GitHub>
nixpkgs/release-17.03 6c0b7ec Tim Steinbach: atom: 1.16.0 -> 1.17.0
<NixOS_GitHub>
nixpkgs/release-17.03 50a6f1e Tim Steinbach: atom: 1.17.0 -> 1.17.2
<NixOS_GitHub>
nixpkgs/release-17.03 6ef6aa3 Tim Steinbach: atom: 1.17.2 -> 1.18.0
NixOS_GitHub has left #nixos []
guillaum1 has joined #nixos
jtojnar has quit [(Remote host closed the connection)]
jtojnar has joined #nixos
<guillaum1>
I'm trying to patch my executable (built with nix) using patchelf to set the interpreter to the system "/lib64/ld-linux-x86-64.so.2" one. However, then, the binary execution fails with output on stdout "... @@@@@ Error XXXX" with @@@@ random garbage and XXXX a random big integer.
<gchristensen>
why are you wanting to do that?
<guillaum1>
gchristensen: deploy a binary built with nix on a plateform without nix.
jellowj has quit [(Ping timeout: 240 seconds)]
CustosLimen[m] has joined #nixos
<symphorien>
guillaum1: it is usually enough to tar/untar $(nix-store -qR $(readlink -f result))
arximboldi has joined #nixos
<Mic92>
guillaum1: you can to store it in /nix in the exact same location and also use glibc from nixpkgs instead
<Mic92>
otherwise building from source is easier
<guillaum1>
symphorien: Mic92: this will need root acces on my computer client unfortunately ;(
<Mic92>
guillaum1: you can use proot or nix-user-chroot
<Mic92>
to avoid root
jellowj has joined #nixos
<Mic92>
the latter one is preferred, if the kernel allows this
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
civodul has joined #nixos
<guillaum1>
I'll have a look at nix-user-chroot then. Thank you. Do you know how it behaves with OpenGL?
<Mic92>
guillaum1: you will have the same problem as nix on linux due missing /run/opengl-driver
<guillaum1>
(both requires some stuff on the kernel which are not available for my client... Back to step one ;)
<Mic92>
guillaum1: really old kernels then
<Mic92>
guillaum1: then I would try to compile it from source
<Mic92>
but if you are not able to create /nix it won't help you
<symphorien>
you could try to compile nix for a different stor location
<symphorien>
*store
<Mic92>
but then you have to recompile everyting
<guillaum1>
And do you know why simply changing the dynamic loader doesn't work?
<guillaum1>
(This will fixs my packageing and OpenGL issues at once)
<Mic92>
no
squidly_ has joined #nixos
<Mic92>
guillaum1: and you can ask to install a deb/rpm whatever package with you software?
<Mic92>
then you could just use fpm and package /nix
freusque has quit [(Quit: WeeChat 1.7.1)]
odi has quit [(Ping timeout: 240 seconds)]
athan has quit [(Ping timeout: 248 seconds)]
jtojnar has quit [(Remote host closed the connection)]
freusque has joined #nixos
<guillaum1>
Mic92: I may ask, yes, but the simpler the better (currently we are distributing packages wich are autonmous, I'll have a lot of issue justifying a "regression" like that...)
jtojnar has joined #nixos
athan has joined #nixos
<Mic92>
guillaum1: then I would not use nix at all for building
<Mic92>
you are only asking for trouble
<gchristensen>
the problem is they are not autonomous
<guillaum1>
Mic92: do you know any satisfaying alternative?
<guillaum1>
gchristensen: (they are not, indeed, but enough...)
<gchristensen>
they are implicitly depending on the system's linker and you can't control the system linker
tmaekawa has quit [(Quit: tmaekawa)]
<symphorien>
guillaum1: if you *only* depend on you binary and nix's linker you can ship a shell script doing "/path/to/linker.so yourbinary"
ona has quit [(Quit: ...)]
<symphorien>
s/linker/interpreter
<guillaum1>
gchristensen: I don't want to discuss that point. The nix appreach is clearly the right thing to do. However I have business constraints. We are deploying to our client since ten years with a binary which only depends on the system libGL and system linker and it works. I'm trying to modernize our build process using nix, but I don't want a "regression" in our deployment process.
<gchristensen>
aye
<guillaum1>
symphorien: I tried that solution and indeed it works, except for libGL.
<Mic92>
guillaum1: you can tell ld also, where to find libGl
<symphorien>
did you add this to LD_LIBRARY_PATH ? if I'm not mistaken, libgl, sane and a couple of other libs are not "hardcoded" in binary rpathes even on nixos
jtojnar has quit [(Remote host closed the connection)]
<symphorien>
they still depend on their path being in the environement
<Mic92>
guillaum1: ld.so --library-path ...
<guillaum1>
Mic92: and how will it work for the dependencies of libGL ?
jtojnar has joined #nixos
<squidly_>
noob question: I'm trying to install citrix receiver which is in nixpkgs, but I can't work out what I should be adding to my config file
<guillaum1>
Mic92: (on a normal system, they are found using the settings of the library loader, but using the nix loader, it only follows rpath)
<guillaum1>
(Perhaps I had an XY problem actually. Instead on focusing on changing the loader, perhaps I must focus on finding a way to correctly load libGL using the nix loader)
<Mic92>
guillaum1: the idea is to your systems ld.so, it will then also obey ldconfig etc
<symphorien>
nix loader also follows LD_LIBRARY_PATH, doesn't it ?
<Dezgeg>
doesn't using the system ld.so risk loading libraries from /usr/lib in place of the nix libraries? or does rpath take precedence?
<guillaum1>
symphorien: yes, but setting LD_LIBRARY_PATH to /usr/lib is a bit dangerous (but well, I don't have a lot of other dependencies, so the risk is not that important)
<guillaum1>
Damned, I have another XY problem, I ignored LD_LIBRARY_PATH because I did not wanted to priorize a system library instead of my local library, but actually I don't care...
<Mic92>
guillaum1: distributions like ubuntu, but the location of libgl in to /etc/ld.so.conf.d
<Mic92>
so you cannot the link-loader of nix
<symphorien>
is there a priority of rpath over LD_LIBARY_PATH ? that would solver your problems
<symphorien>
you could even ship your binary with a folder containing a symlink to /usr/lib/ligl.so and add that folder to LD_LIBRARY_PATH
<Mic92>
symphorien: the problem is, that you don't know, what you actually want to put in LD_LIBRARY_PATH, the location of libgl can be different
<guillaum1>
Mic92: it can be different AND you need a way to resolv recursive dependencies of libGL...
<squidly_>
I thought that setting allowUnfree would allow me to install it, but I still can't find it in nix-env
elurin has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
<Mic92>
squidly_: you can set it both system-wide and only for your user
<Mic92>
maybe you have only added to one of both
<squidly_>
that makes sense
gnuhurd has quit [(Ping timeout: 252 seconds)]
Ivanych has joined #nixos
gnuhurd has joined #nixos
<squidly_>
if I've set in /etc/nixos/configuration.nix, and I've added citrix-receiver to my pkg list, why would it not be installed?
<squidly_>
is there a longer path that it needs to be correctly resolved?
<Mic92>
squidly_: did you add citrix_receiver or citrix-receiver?
<Mic92>
The first one is correct
elurin has joined #nixos
<squidly_>
oh
<squidly_>
well I'll be
<squidly_>
thanks :)
<Mic92>
I can write books of UX bugs in nix
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/v5Gtv
<NixOS_GitHub>
nixpkgs/master c8bdd87 Peter Hoeg: darkhttpd: minor cleanups
NixOS_GitHub has left #nixos []
odi has joined #nixos
hotfuzz_ is now known as hotfuzz
jtojnar has quit [(Remote host closed the connection)]
jtojnar has joined #nixos
reinzelmann has quit [(Quit: Leaving)]
<shlevy>
Anyone ever run into an issue where compiled binaries don't have their rpaths set up correctly?
<viaken>
Why is 'with import <nixpkgs>...' not enough to pull in some dependencies? Specifically, trying to build displaylink and it's asking for evdi.
freeman42y[m] has joined #nixos
erictapen has quit [(Ping timeout: 255 seconds)]
freeman42x[m] has quit [(Read error: Connection reset by peer)]
<ndash>
does 'nix-build /path/to/yournixpkgs -A displaylink' work?
squidly_ has quit [(Quit: Page closed)]
<ndash>
I assume you're modifying a local checkout since the version in master is broke
<viaken>
There we go. :)
erictapen has quit [(Ping timeout: 260 seconds)]
<viaken>
segfault, but that's not Nix's fault.
<Shados>
a nixops question: If I deploy to an existing NixOS machine (https://nixos.org/nixops/manual/#sec-deploying-to-ec2, amusingly wrong section name), will the resulting configuration be the union of the existing on-target configuration.nix and the deployment config, or will the latter overwrite the former?
<gchristensen>
Shados: nixops completely ignores the target system's configuration.nix and replaces it with exactly what is defined in nixops
<ikwildrpepper>
Shados: it will solely be the configuration you specify
<ikwildrpepper>
in your nixops files
erictapen has joined #nixos
<ikwildrpepper>
what gchristensen said ;)
<gchristensen>
<3 *wave*
detran has joined #nixos
<Shados>
OK, so I'd need to define all my hardware and FS stuff in the nixops deployment configuration for it?
<gchristensen>
yep
freeman42x[m] has joined #nixos
freeman42y[m] has quit [(Read error: Connection reset by peer)]
<Shados>
OK, again relative to targeting a NixOS system setup outside of nixops, will nixops need password auth enabled on ssh initially, or can I have it pre-generate an ssh key for the system that I can seed it with?
freeman42y[m] has joined #nixos
<clever>
Shados: both work, you can use an ssh-agent i believe to allow nixops to ssh in
<clever>
Shados: nixops uses "ssh -i /tmp/foo" to load its own key, which breaks loading of the default in ~/.ssh/id_rsa, but the ssh-agent remains working
erictapen has quit [(Remote host closed the connection)]
freeman42x[m] has quit [(Ping timeout: 252 seconds)]
<Shados>
That's a little awkward, but I can work with that
DrWaste has quit [(Quit: Run away!)]
erictapen has joined #nixos
jellowj has joined #nixos
gnuhurd has quit [(Remote host closed the connection)]
Rotaerk has quit [(Quit: Leaving)]
MercurialAlchemi has quit [(Ping timeout: 240 seconds)]
cement has joined #nixos
numbdewd has joined #nixos
freeman42y[m] has quit [(Ping timeout: 264 seconds)]
gnuhurd has joined #nixos
Ivanych has quit [(Ping timeout: 248 seconds)]
odi has quit [(Ping timeout: 255 seconds)]
Wizek has joined #nixos
ylwghst has joined #nixos
Neo-- has joined #nixos
nwuensche has joined #nixos
Mateon1 has left #nixos []
<lewo>
Can hydra work without the nix deamon?
<hyper_ch>
hi clever
<hyper_ch>
clever: this works now great: https://paste.simplylinux.ch/view/raw/3ca8633f and I've been wondering: I don't think I'm the only one to mount from multiple remote shares and so it maybe should be posted somewhere as example on nixos site? but what would be a good place?
odi has joined #nixos
<Mic92>
hyper_ch: nixos.wiki
odi has quit [(Ping timeout: 240 seconds)]
<hyper_ch>
Mic92: btu where there?
pie__ has quit [(Remote host closed the connection)]
<niksnut>
lewo: probably, but then it would have to run as root
<niksnut>
or otherwise have write access to the store
<Mic92>
hyper_ch: on a Samba page maybe?
<nwuensche>
Is anyone here who helped me last week with my Brother printer and has time to help me with a problem?
<lewo>
niksnut: ok, thx.
<hyper_ch>
Mic92: how to create a new entry? and the samba page is for running a server
pie_ has joined #nixos
arximboldi has quit [(Quit: arximboldi)]
ison111 has joined #nixos
<Mic92>
hyper_ch: you need to login, github login is also available
<Mic92>
hyper_ch: well Samba can cover both cases client and server, I would at least keep a reference there.
<hyper_ch>
I gave up
seppellll has quit [(Quit: Leaving)]
LysergicDreams has quit [(Ping timeout: 260 seconds)]
ylwghst has quit [(Ping timeout: 240 seconds)]
LysergicDreams has joined #nixos
arximboldi has joined #nixos
sellout- has joined #nixos
kier has quit [(Quit: No Ping reply in 180 seconds.)]
ThatDocsLady_afk is now known as ThatDocsLady
kier has joined #nixos
nwuensche has quit [(Ping timeout: 255 seconds)]
jasom has quit [(Ping timeout: 240 seconds)]
leat has quit [(Quit: leat)]
jasom has joined #nixos
Sonarpulse has joined #nixos
nwuensche has joined #nixos
nwuensche has quit [(Ping timeout: 248 seconds)]
iyzsong has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
erasmas has joined #nixos
nwuensche has joined #nixos
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
python476 has quit [(Ping timeout: 240 seconds)]
endformationage has joined #nixos
odi has joined #nixos
pxc has quit [(Ping timeout: 240 seconds)]
<dash>
anybody got a good example of bridged networking setup for a nixos container?
<dash>
i've got two services in my configuration.nix that want to listen on port 8443, trying to figure out what to do with them; thought it'd be easiest to put one on a separate IP
<fearlessKim[m]>
I don't get why `nix-shell -p i3pystatus python35Packages.pytz python35Packages.keyring --run "python3 -c 'import i3pystatus'"` return "no module named i3pystatus" while `nix-shell -p i3pystatus --run "python3 -c 'import i3pystatus'"` works
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/v5GzX
<NixOS_GitHub>
nixpkgs/master 163b3e8 Tim Steinbach: linux: 4.13-rc6 -> 4.13-rc7
NixOS_GitHub has left #nixos []
supercynic has quit [(Ping timeout: 240 seconds)]
ison111 has quit [(Ping timeout: 240 seconds)]
Ivanych has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] cocreature closed pull request #28080: Fix GHC 7.10 config of vector and tasty-ant-xml (master...ghc-7.10) https://git.io/v71WG
<NixOS_GitHub>
[nixpkgs] orivej opened pull request #28637: synergy: fix check with gcc6 (master...synergy) https://git.io/v5G21
NixOS_GitHub has left #nixos []
<orbekk>
fearlessKim[m]: You should specify multiple packeges like this: -p package1 -p package2
digitus has joined #nixos
odi has quit [(Ping timeout: 255 seconds)]
goibhniu1 has quit [(Ping timeout: 246 seconds)]
aloiscochard has quit [(Quit: Connection closed for inactivity)]
<fearlessKim[m]>
orbekk: right seems to work, also I think I had to use python36Packages.pytz, doesn't seem available for python35. Tried to run nix-shell with -v5 but can't say the error helped much "build input 5 does not exist"
eacameron has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] nlewo opened pull request #28638: libipfix: init at 110209 (master...libipfix) https://git.io/v5Gah
NixOS_GitHub has left #nixos []
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
leat has joined #nixos
eacameron has quit [(Ping timeout: 246 seconds)]
FRidh has joined #nixos
fresheyeball has joined #nixos
eacameron has joined #nixos
erictapen has quit [(Ping timeout: 248 seconds)]
ThatDocsLady has quit [(Quit: Arma-geddin-outta-here!)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 2 new commits to master: https://git.io/v5Grr
<NixOS_GitHub>
nixpkgs/master e0010cd Vladimír Čunát: pprof: init at 2017-08-28
<NixOS_GitHub>
nixpkgs/master 3a18fa4 Vladimír Čunát: gperftools: 2.5 -> 2.6.1...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to release-17.03: https://git.io/v5Gr6
<NixOS_GitHub>
nixpkgs/release-17.03 d4d3659 Vladimír Čunát: pprof: init at 2017-08-28...
NixOS_GitHub has left #nixos []
<nwuensche>
Hi! I have a problem with my printer driver. When I cd /nix/store/...-cups-progs and then echo "test" | sh lib/cups/filter/brlpdwrapperDCP145C, I get: /nix/store/...-mfc2j47dd0dw-cupswrapper-3.0.0-1/usr/local/Brother/Printer/dcp145c/lpd/.brdcp145cfilter-wrapped: line 3: /nix/store/...-mfc2j47dd0dw-cupswrapper-3.0.0-1/usr/local/Brother/Printer/dcp145c/lpd/.brdcp145cfilter-wrapped: No such file or directory
<MoreTea>
my idea here was to 1. split the kubernetes module into smaller submodules, make it work with the existing k8s version, then bump k8s and cherry-pick from what other people have done already.
<fresheyeball>
benley: can you help me understand what my next step is? How can I test locally?
<benley>
oh man, I'm not sure I actually know what the requirements are for k8s in nixos. As for testing locally, do you know how to run nixos VM tests?
<fresheyeball>
I am on nixos
<fresheyeball>
but no, I don't know how to run the vm tests
<pxc>
you guys seen this on HN today? it's an Arch Linux-based 'usermode distro', so-to-speak. Looks like it's getting a decent number of comments: https://news.ycombinator.com/item?id=15114841
* deltasquared
reads
<pxc>
it seems like something we can almost already do pretty nicely with nix-user-chroot, but we don't have services w/ Nix alone
<pxc>
if it's a problem users are interested in seeing solved, it seems like maybe we should care, since it's a problem that Nix can solve more naturally/directly in some respects than another distro
MP2E has joined #nixos
<deltasquared>
pxc: well I dunno about not needing root, but I've installed arch arm on my android device before to access it's userspace
<benley>
fresheyeball: sorry I can't be more helpful right now, I'm pretty busy with work stuff
<fresheyeball>
all good
<fresheyeball>
I need the kubes update for work
<fresheyeball>
I'm not blocked since the PR I made already gives me kubectl updated
<fresheyeball>
but I'd like to get the PR merged
<pxc>
deltasquared: yeah, mere chroots are old news. But having convenient tooling for a usermode chroot is nice. Anyway non-privileged installation of software is one of the best features of Nix imo
<pxc>
so if the success of this other distro indicates a lot of interest in that it makes me wonder whether Nix is really owning that space as much as it should, know what I mean?
<deltasquared>
pxc: oh, most certainly. alas for my specific use case nix is kinda unsuitable as android expects some stuff in /etc (despite it being a /system/etc symlink -_-)
<deltasquared>
IIRC last time I forget to "merge" the etc folders trying to enable bluetooth got my phone stuck in a loop of "bluetooth has stopped working" messages that blocked me from using the rest of the UI :/
<deltasquared>
s/folders/folders,/
<pxc>
that sucks. Is there a way to carve out sections of `/etc` on NixOS for mutable use? I remember running into issues years ago with Vagrant, which expects to be able to edit `/etc/exports` for NFS share functionality
<pxc>
deltasquared: damn that's bad
<clever>
pxc: have you seen how nixos handles systemd in containers?
<benley>
nixos still lets you add your own files in /etc; anything that isn't a symlink into /nix/store is effectively mutable
<deltasquared>
pxc: see I did do a merge thing for a while (picking bits of both /system/etc and /data/chroot/etc to keep both worlds, but eventually I got fed up of android components silently breaking
<pxc>
deltasquared: so maybe on top of a sane distro that approach would work. Do you have any notes or blog posts or anything on what you had to do?
<deltasquared>
pxc: aww shucks, now you make me annoyed that I didn't document the process
<deltasquared>
step 1: void your phone's warranty :D
<pxc>
that's p. much step 1 to making a phone usable these days
<deltasquared>
"you don't own the device, you own a license to it"
<deltasquared>
#stallmanwasright
<clever>
pxc: this is a thing i had started ~2 months ago, similiar idea to JuNest, with the goal to make it even work under android
<VLetrmx>
he tends to be
<clever>
though i think it still needs root
<benley>
to be fair, "void the warranty" is not the same as "you are legally forbidden from doing this"
<clever>
pxc: basicaly, its a bash script that uses nsenter to setup a container, and then runs nixos stage-2, which launches systemd
<clever>
and its pre-configured to behave as a container
<benley>
sometimes I feel like I'm the only one who is happy to use an android phone _without_ rooting it, and mostly without caring that it runs linux under the hood :-P
ona has joined #nixos
<deltasquared>
sheet, internet restart nooooo
deltasquared has quit [(Quit: Leaving)]
<clever>
benley: i had to root my first android device on day 1, because the amazon app stored demanded an american billing address, for free apps
<clever>
benley: and i'm in canada
nwuensche has quit [(Quit: Leaving)]
<benley>
yuck, that's annoying
<clever>
but in amazon's defense, they refused to even ship to canada, i had to cheat the system to even get the device
<Ankhers>
Gotta love that.
<clever>
a year later, they unlocked canada, and then the appstore worked fine
<benley>
is that ... a kindle fire? those are strange devices
<clever>
yeah, kindle fire hd7
<clever>
doesnt matter how loud you yell "shut up and take my money", they wont accept it :P
<benley>
sorta like how they refuse to let you stream Amazon Video to a chromecast or an android tv, just to be dicks
<pxc>
clever: I should have known you were up to something related; seems like you're always finding bona fide new uses for Nix, hehe
<clever>
pxc: in my case, it needs root, and would be much simpler if systemd-nspawn is available on the host, but i think the start script was mostly working
<clever>
i think it only needed chroot and maybe nsenter on the host, and then it uses everything from the store
<bbarker>
Does anyone have a lovely nvidia desktop configuration.nix they wouldn't mind sharing as a template?
<pxc>
clever: awesome. I'd love an easy way to use NixOS, even for services, on non-NixOS
<clever>
pxc: there is also a runner script for nixos services, meant for testing
<clever>
pxc: this generates a perl script, that will obey ExecStart and many other flags, to run the service defined in nixos
<pxc>
clever: what have you been using the container generator for?
<clever>
pxc: i was helping soembody in #nixos with a problem a few months ago
<clever>
i think it was jake_
tmaekawa has joined #nixos
tmaekawa has quit [(Client Quit)]
MoreTea has quit [(Ping timeout: 252 seconds)]
odi has quit [(Ping timeout: 240 seconds)]
<pxc>
looks like JuNest has the same performance issues as Nix when kernel namespaces and systemd are unavailable because it uses the same mechanism (PRoot): https://news.ycombinator.com/item?id=15116164
<copumpkin>
fresheyeball: IRC etiquette suggests that pinging random folks for help isn't a favored way of getting help :)
<fresheyeball>
copumpkin: what is? I'm lost and blocked and all that...
<fresheyeball>
nix is pretty tribal knowledge heavy, so asking people directly has been the most effective for me thus far
<fresheyeball>
I understand you criticism though
<copumpkin>
asking and crossing your fingers. It's sort of a "best effort" system with no payment involved
<copumpkin>
just saying that getting a random ding while I'm concentrating on something else from someone asking me to pick up context on their problem and spend time answering it, isn't necessarily going to put me in the most helpful mood :) and I've seen far worse reactions than mine on IRC
<fresheyeball>
fair enough
<fresheyeball>
my apologies
<acertain>
i guess i fix the ld-wrapper script? advice would be helpful
<pxc>
our LiveCD doesn't have any automated install stuff, right? like if you just leave that disc in it's def not gonna install anything for you
<fresheyeball>
copumpkin: btw, I'm happy to pay for help
<copumpkin>
fresheyeball: anyway, that's more of a "FYI others can react unpleasantly and I've seen it often on IRC" than a "leave me alone". I'm guessing your issue is from some app trying to write to the store because it assumes that it can write to the CA path? I don't know what you're trying to do though
<fresheyeball>
and test/kubernetes.nix is failing with that
<copumpkin>
ah, ouch. I think offlinehacker knows best there, but I'm not sure he's online
simukis has joined #nixos
<fresheyeball>
well I'd ping him here
<fresheyeball>
but... I just got scolded for doing such things haha
<copumpkin>
well, if someone's literally put themselves in the maintainers list for a particular package you're having trouble, it's probably fine :)
<copumpkin>
the usual approach though, is to recognize things like these are purity violations and then try to debug the code that's trying to do that
<copumpkin>
to see how to convince it not to
<fresheyeball>
oh copumpkin you are making cosense today
<fresheyeball>
haha
<copumpkin>
:)
<fresheyeball>
offlinehacker[m]: hey there, I'm trying to update kubernetes.nix and could use some help if you are available to do so
<copumpkin>
the other thing you'll learn is that a large chunk of the Nix(OS) community is in europe, so many of them will be offline by this time of day
<Lisanna_>
Hi guys, I'm trying to start the docker daemon inside a NixOS container but it's not starting. My container specification is virtualisation.docker.enable = true; virtualisation.docker.enableOnBoot = true; do I need anything else in here, or is this a bug?
jtojnar has quit [(Remote host closed the connection)]
eacameron has quit [(Remote host closed the connection)]
<nliadm>
anyone working on packaging go1.9 ?
<dash>
lazynewb: ah, so you want someone to write a config for you :)
eacameron has joined #nixos
<lazynewb>
I found some configs online, I can adapt those, I was just curious if there was a spinoff distro
takle has joined #nixos
<lazynewb>
The configs posted off the wiki are nice, btw, just completely unlabeled
JosW has quit [(Quit: Konversation terminated!)]
<fresheyeball>
clever: any hope I can get the wifi working and not need the dongle?
goibhniu has joined #nixos
<clever>
fresheyeball: just configure it with wpa_supplicant or network manager
goibhniu has quit [(Changing host)]
goibhniu has joined #nixos
<clever>
fresheyeball: the error is because you havent told it what to connect to yet
<fresheyeball>
I don't know when I was supposed to
<fresheyeball>
it boots straight into that error
<clever>
fresheyeball: hit enter a few times, you should still have a shell
<dash>
lazynewb: it's pretty simple, put in "services.xserver.desktopManager.kde5 = true;" and you're done
<lazynewb>
alright, thanks.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/v5ZsJ
<NixOS_GitHub>
nixpkgs/master fdc18bc Robin Gloster: uri: 2016-09-04 -> 2017-07-16
NixOS_GitHub has left #nixos []
ertes has joined #nixos
eacameron has quit [(Ping timeout: 276 seconds)]
<rycee>
Does anybody know if there is anything preventing having `services.dbus.socketActivated = true` by default in NixOS? I'd love to see it happen so that I can be reasonably certain that `systemctl --wait` will work on a random user's system…
CrazedProgrammer has quit [(Remote host closed the connection)]
CrazedProgrammer has joined #nixos
lazynewb has quit [(Quit: Lost terminal)]
<fresheyeball>
clever: ok, so I got a command line
<fresheyeball>
what would I do to get internet and continue?
CrazedProgrammer has quit [(Remote host closed the connection)]
CrazedProgrammer has joined #nixos
CrazedProgrammer has quit [(Remote host closed the connection)]
CrazedProgrammer has joined #nixos
thaega has quit [(Read error: Connection reset by peer)]
thaega has joined #nixos
jtojnar has quit [(Read error: Connection reset by peer)]
CrazedProgrammer has quit [(Remote host closed the connection)]
jtojnar has joined #nixos
CrazedProgrammer has joined #nixos
CrazedProgrammer has quit [(Remote host closed the connection)]
CrazedProgrammer has joined #nixos
\\\\\\\\\\\ has joined #nixos
CrazedProgrammer has quit [(Remote host closed the connection)]
<fresheyeball>
how can I restart network-manager?
CrazedProgrammer has joined #nixos
Khetzal has quit [(Ping timeout: 255 seconds)]
<catern>
systemctl?
CrazedProgrammer has quit [(Remote host closed the connection)]
CrazedProgrammer has joined #nixos
<fresheyeball>
sorry, I got it
<fresheyeball>
just still can't get past this error
hamishmack has joined #nixos
<clever>
fresheyeball: id just use wpa_supplicant directly
<clever>
fresheyeball: is the wifi open, wep, or wpa?
<maurer>
I'd advise against using network-manager unless you're mostly focused on a gnome-based desktop experience, and maybe not even then
<fresheyeball>
clever: I think its wpa
<clever>
fresheyeball: run "iwlist scan", find the essid, then run "wpa_passphrase essid > /etc/wpa_supplicant.conf"
<clever>
fresheyeball: and then restart wpa_supplicant
<fresheyeball>
iwlist nout found
<fresheyeball>
not found*
<fresheyeball>
systemctl resart wpa_supplicant seemed to work
CrazedProgrammer has quit [(Remote host closed the connection)]
CrazedProgrammer has joined #nixos
hiratara has joined #nixos
<clever>
fresheyeball: then check the status with "ip link", does it say up?
<clever>
3: wlp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
botnet69 has joined #nixos
<botnet69>
so I feel like I've gotten pretty far in the install, but it always fails when trying to install the bootloader
<fresheyeball>
wlp3s0 <BROADCAST,MULTICAST>
<botnet69>
in the manual, it doesn't say to chroot or anything, but with both grub2 and systemd boot, they try to find filesystems at /boot and they don't
<botnet69>
and I'm in the live CD
<fresheyeball>
clever: how can I tell the installer to continue installing the os?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/v5ZnD
<NixOS_GitHub>
nixpkgs/master 8d6682c Robin Gloster: snake4: don't install with setuid...
NixOS_GitHub has left #nixos []
<botnet69>
I really don't want to have to wipe my disk and try again because I've done that 3 times, and each time it takes an hour to redownload everything
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus opened pull request #28660: frandom: Patch header location for uaccess (master...frandom_patch) https://git.io/v5ZnF
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/v5Zc3
<NixOS_GitHub>
nixpkgs/master 8e622d2 Franz Pletz: phpfpm service: allow netlink sockets for sendmail...