<pie__>
might just be the default hungarian keyboard heh
<pie__>
it has stuff like key <AD12> { [ uacute, Uacute, multiply ] }; though so looks like there should be a way to use the names
<infinisil>
pie__: Yeah that's defined in keysymdef.h
schjetne has joined #nixos
<infinisil>
These names i mean
<infinisil>
And yes, that file you linked is xkb/symbols/hu :)
<pie__>
oh i can just use it! dont need to import anything or whatever
shabius has quit [Ping timeout: 256 seconds]
blast_hardcheese has joined #nixos
<pie__>
.... its choking on ae10 for some reason in " key <AE10> { [ 0, ), odiaresis, Odiaresis ] };
<pie__>
"
<pie__>
nevermind i think it was the 0
<pie__>
but.... 1-9 works so this should too??
<pie__>
ok so its not the number itself thats the issue. im lost.
<pie__>
(1-9 dont work either)
<pie__>
*facepalm* it was the rparen
simukis has quit [Ping timeout: 265 seconds]
jmc has joined #nixos
<blast_hardcheese>
Are there notes about bumping haskell packages somewhere? I found hackage-to-nix, but it just says it's run by hydra and shouldn't need to be run manually
<pie__>
infinisil, ok this compiles but it doesnt actually seem to do anything when i run xkbcomp pls $DISPLAY https://bpaste.net/show/aabc91efae03
<blast_hardcheese>
1.2.0 was released a few weeks ago; I tried (and failed) to create a local package override pointing at the new version as I'm still mainly fumbling around here.
<blast_hardcheese>
s/[()]//
<jtojnar>
do we have a combinator for inverting a patch? I would like to do invert (fetchpatch { ... })
jmc has quit [Quit: WeeChat 2.0]
<infinisil>
pie__: Just check it in the keysymdef.h file :)
<infinisil>
pie__: Does the layout not work?
<pie__>
everything stays the same, the additional definitions i added dont do anything
<infinisil>
No warnings?
<infinisil>
Or other output?
<pie__>
if i drop the $DISPLAY argument i get warnigs about no symbols defined for some <...>
<pie__>
example: Warning: No symbols defined for <FK19> (keycode 197)
<infinisil>
Yeah I get that too, but with the $DISPLAY argument
<infinisil>
But the layout works fine nevertheless
cmd is now known as cd
<gchristensen>
my server's bonded NIC configuration works under 17.03 but not 18.03 :'(
<Dezgeg>
maybe if you run gnome or something like that it overrides the keyboard configuration
<pie__>
infinisil, ok i changed ALGR back to RALT
<infinisil>
pie__: What I'm usually doing is just `setxkbmap -print` to get an initial file, verify that it works with xkbcomp file.xkb $DISPLAY, then modify that to suit your needs by adding stuff in the sections
<infinisil>
pie__: Oh, could it be because of the filename not having the .xkb extension?
<infinisil>
I think I remember something like that
<pie__>
infinisil, ugh seriously? what is this, freakin windows?
<infinisil>
:P
<pie__>
ok luckily it seems like it wasnt that
<infinisil>
Phew
<justanotheruser>
is there a way I can reduce the number of processes nixbld can use in the middle of a build?
<pie__>
infinisil, maybe im not paplying the xkb_symbols section to anything?
<pie__>
*applying
<infinisil>
Not sure, I'd try with an initial file from setxkbmap -print and go from that
<pie__>
well i just concatenated this to that and it doesnt like it xD
<infinisil>
It might only allow 1 xkb_symbols section
<infinisil>
And the same for the others
<pie__>
ok yeah it complaine about those, deleted them. now its complaining about other stuff. ill gogole around a bit :/ just want to modigy the xisting system layout
<rotaerk>
hmm looks like, after upgrading, when I configured it to use kernel 4.9.104 instead of the latest, the nvidia driver's version remained upgraded to 390.48 (instead of what I had before, 375.66)
<rotaerk>
is there a way to configure nixos to use an older driver version
<pie__>
which is seems like it should do by default *shrug*
<rotaerk>
hrm, if I attempt to run nix-repl as non-root, I get: error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied
<clever>
rotaerk: you need to either run `nix repl` now, or `NIX_REMOTE=daemon nix-repl`
<clever>
rotaerk: nix-repl links to nix1, which cant auto-detect NIX_REMOTE
<rotaerk>
I see; so there's now a nix command
<clever>
yeah
marusich has joined #nixos
<clever>
the new `nix repl` has history, so you can re-run things after closing and opening, but it also has trouble tab-completing things with -'s
matthewbauer has joined #nixos
<rotaerk>
I'm gonna try to override the nvidia driver version in my nixos config, to test whether that's the cause of my vulkan issue
schjetne has joined #nixos
<gchristensen>
vaibhavsagar: ping
thc202 has quit [Ping timeout: 240 seconds]
newhoggy has joined #nixos
matthewbauer has quit [Ping timeout: 260 seconds]
b has quit [Remote host closed the connection]
b has joined #nixos
matthewbauer has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
newhoggy has quit [Ping timeout: 260 seconds]
Supersonic112 is now known as Supersonic
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
matthewbauer has quit [Remote host closed the connection]
matthewbauer has joined #nixos
TheAceOfHearts has quit [Quit: TheAceOfHearts]
TacNuke has quit [Ping timeout: 240 seconds]
oltoAltn has joined #nixos
olto has quit [Ping timeout: 256 seconds]
lassulus_ has joined #nixos
cloud-maingo has quit [Quit: Connection closed for inactivity]
lassulus has quit [Ping timeout: 260 seconds]
lassulus_ is now known as lassulus
TheAceOfHearts has joined #nixos
sorixelle has joined #nixos
schjetne has quit [Ping timeout: 240 seconds]
<sorixelle>
Hey, new Nix(OS) user here. Trying to understand Nixpkgs' depencency system, but I can't seem to wrap my head around it at all
<infinisil>
,nix-repl = To use nix-repl with Nix 2.0, either use the new `nix repl` or `NIX_REMOTE=daemon nix-repl`. Just using `nix-repl` gives an error because it is linked to Nix 1.x which requires NIX-REMOTE to be set correctly, while Nix 2.0 doesn't (and unfortunately it wasn't kept for backwards compatibility)
<{^_^}>
nix-repl defined
<sorixelle>
Is there a simple explanation for all these dependency types? The manual's descriptions make no sense at all to me :P
iyzsong has joined #nixos
<ldlework>
infinisil: do you have an example config that showcases how to do multiple users?
<infinisil>
ldlework: you mean the users.users option?
matthewbauer has quit [Ping timeout: 260 seconds]
<infinisil>
sorixelle: What dependency types do you mean?
newhoggy has joined #nixos
TheAceOfHearts has quit [Quit: TheAceOfHearts]
<rotaerk>
https://ptpb.pw/K1TT see anything wrong with the package overrides here?
<rotaerk>
this is my /etc/nixos config
<rotaerk>
it failed to build, when I did the nixos-rebuild...
<rotaerk>
a bunch of dependencies couldn't be built
newhoggy has quit [Ping timeout: 240 seconds]
<sorixelle>
infinisil: I'm talking about things like buildInputs, nativeBuildInputs
<sorixelle>
Basically Chaper 3.3 of the Nixpkgs manual
<infinisil>
sorixelle: Ah, so buildInputs are dependencies to be used when the result is used, e.g. libraries that need to be linked
<ldlework>
infinisil: no for your znc enhancements
<infinisil>
sorixelle: And nativeBuildInputs is for stuff that's needed at compile time
TheAceOfHearts has joined #nixos
<infinisil>
sorixelle: The others with propagated* I don't fully understand myself, and they aren't really relevant for 95% of things, so I wouldn't bother trying to understand them
emerson has joined #nixos
<infinisil>
ldlework: Ah, it should just be `services.znc.config.User = { paul = { ... }; simon = { ... }; };`
<ldlework>
showing your age there a bit
<infinisil>
Haha that I don't understand
<ldlework>
Paul Simon?
<{^_^}>
[nix] @nh2 opened pull request #2206 → importPaths: Don't copy imported NAR into memory. → https://git.io/vhW5D
<sorixelle>
Ah, so buildInputs is runtime deps, and nativeBuildInputs is compile-time deps
<sorixelle>
That makes a lot more sense :P Thanks!
matthewbauer has joined #nixos
<infinisil>
sorixelle: hmm.. not entirely, buildInputs are compile-time dependencies used at runtime
<infinisil>
ldlework: I'm 22 :P
<ldlework>
I'm impressed everytime you tell me that.
<infinisil>
I really need to sleep now though, gotta get up somewhat early today
<sorixelle>
Ah, and then having the package in the function parameters for the derivation would be kind of a "runtime" dependency
<rotaerk>
oh, dammit... used the wrong architecture
<infinisil>
sorixelle: not really either, i put this together though:
<infinisil>
,runtimeDeps
<{^_^}>
In order of preference: Patch source OR ((if it uses PATH -> wrap with new $PATH) AND (if it uses dlopen, (patchelf --set-rpath in postFixup OR wrap with new LD_LIBRARY_PATH)))
<sorixelle>
Well, yeah, but in terms of just getting them pulled down as a dependency, function parameters is the way to go about it, right?
<infinisil>
sorixelle examples: cmake, pkgconfig is usually in nativeBuildInputs; zlib, libssl is usually in buildInputs. And if the binary searches for some binary in PATH at runtime, you'd wrap the binary with a prefixed PATH which adds the needed binary runtime dependency
<infinisil>
sorixelle: in the nix sense of a dependency, yes :)
<samueldr>
I'm unsure what the best pattern would be for a default.nix that's both `nix-build`able, `nix-env -if`able and `callPackage`able
<infinisil>
And btw I unfortunately don't know of a good overview of these things
<infinisil>
samueldr: i prefer making default.nix nix-buildable (or have buildable attrs), and making a separate callPackageable file <pkgname>.nix
<samueldr>
yeah, that's what it looks like would be the easiest
<samueldr>
though I like being able to callPackage ./path/to/folder
<ldlework>
at some point infinisil is gonna get a blog or youtube channel
<infinisil>
Heh
<infinisil>
Eventually probably
<samueldr>
don't forget to nix that bell when you nix-env -iA infinisil.subscribe
* samueldr
threw up a little
<infinisil>
Lol
<pie__>
infinisil, ok i think you were right about it needing to be in an xkb_keymap
<pie__>
infinisil, but then how do i do a partial override of stuff?
<ldlework>
samueldr: heh
<infinisil>
There ain't no overriding
<pie__>
oh
<pie__>
man fuuuuuck this :'(
<infinisil>
pie__: you can only import from other definitions
<infinisil>
Which pretty much is overriding i think
<pie__>
any idea how to fix Internal error: Could not resolve keysym udiaresis
<infinisil>
Does it exist in keysymdef.h?
<pie__>
i havent been able to find anything that looks like definition for uh...let me check
<mog>
rnhmjoj[m], thanks for your work on qutebrowser
<infinisil>
What i do in my layout is make the LSGG key behave as an additional Ctrl
<infinisil>
I'm not even sure what you're trying to do with that modifier thing
TheAceOfHearts has joined #nixos
<pie__>
im trying to add an aditional letter to some of the keys
sbdchd has quit [Remote host closed the connection]
<pie__>
basically just [a, A] -> [ a, A, aacute, Aacute ]
<pie__>
thats all i want to do ;_;
<pie__>
and have altgr be aacute and altgr+shift be Aacute
<infinisil>
And not messing with the modifiers makes it ignore those two?
<ldlework>
infinisil: I am having a strange blocking of motivation working on my NixOS configuration knowing that there is a good znc module where I could improve my configuration once it is in
<infinisil>
Because I thought 4 level with alt/altgr was the defaul
<infinisil>
t
<ldlework>
Like I can't think about any other part of my configuration.
<ldlework>
I wonder if there is a market for doing things in that vein merely because the complexity of one's infrastructure is more simple and easy to maintain and improve.
<infinisil>
Well you can use a mutable znc config or provide the zncConfig option, which is pretty flexible
<pie__>
infinisil, ok it works if i import us(altgr-intl), but now i have have weird symbols all over the rest of my kb which i dont want...
<pie__>
will try to look at what the expanded version looks like...
<infinisil>
pie__: explore the xkb directories, they have all the answers and a ton of examples
jperras has quit [Ping timeout: 240 seconds]
<infinisil>
E.g. us(altgr-intl) comes from the altgr-intl section in xkb/symbols/us
<ldlework>
infinisil: easier to just copy the config and deploy a new server with nixops lol
<ldlework>
as far as I can tell... aws t2.micro's are free..
<rotaerk>
finally got it to work ... if I override the version of the driver *and* the kernel
<rotaerk>
now I don't get the vulkan error anymore ... will need to pinpoint the precise driver version that breaks it
<infinisil>
rotaerk: nice!
* infinisil
signing off for like 10 hours
<rotaerk>
weren't you gonna do that like .. 2 hours ago
<rotaerk>
lol
<rotaerk>
anyway, cya
iyzsong has quit [Ping timeout: 265 seconds]
<infinisil>
Just went away for a shower and some anime then :3
rauno has joined #nixos
dbmikus has joined #nixos
michalrus has joined #nixos
Aexoden has quit [Quit: No Ping reply in 180 seconds.]
schjetne has quit [Ping timeout: 260 seconds]
sigmundv_ has quit [Ping timeout: 276 seconds]
Aexoden has joined #nixos
b has quit [Quit: Lost terminal]
<pie__>
infinisil, well, xev seems to show the correct events with this setup but the output is still gibberish for some reason... https://bpaste.net/show/b43fdf996798
<pie__>
state 0x88, keycode 38 (keysym 0xe1, aacute), same_screen YES,
<pie__>
XLookupString gives 2 bytes: (c3 a1) "á"
<pie__>
i guess i can try comparing to the input of a working layout
<pie__>
its the same...
<pie__>
oh i think its probably still accepting RALT as a modifier maybe,...
<pie__>
yeah looks like thats it
iyzsong has joined #nixos
schoppenhauer has quit [Ping timeout: 260 seconds]
<crystalgamma[m]>
hi, I'm building gcc-7.3.0 to get the bootstrapping binaries for my architecture (ppc64le), but I'm getting a reference cycle between the main output and the libraries … I've checked all the symlinks in those output directories, but none of them refer to the other … any ideas how to find out what the problem is?
<rotaerk>
wonder if this will turn out to be a driver issue, or some kind of compatibility issue that starts with that version
newhoggy has joined #nixos
robstr has joined #nixos
newhoggy has quit [Ping timeout: 256 seconds]
rauno has joined #nixos
schjetne has quit [Ping timeout: 265 seconds]
dbmikus has joined #nixos
dbmikus has quit [Ping timeout: 276 seconds]
endformationage has quit [Quit: WeeChat 1.9.1]
newhoggy has joined #nixos
rain1 has quit [Remote host closed the connection]
rain1 has joined #nixos
steell has joined #nixos
<iqubic>
What do people think of Microsoft's new business proposition? They are considering buying GitHub.
<jD91mZM2>
oh god
<jD91mZM2>
Let's have the creators of the worlds largest propietary and expensive operating system buy the largest open source foundation! What could possibly go wrong?
<iqubic>
Right, I see.
newhoggy has quit [Remote host closed the connection]
<iqubic>
What are we going to do with Nixpkgs?
newhoggy has joined #nixos
<papika>
GitLab?
<papika>
iqubic: never trust a closed source site to host open source projects lol
newhoggy has quit [Remote host closed the connection]
shabius_ has joined #nixos
shabius_ has quit [Remote host closed the connection]
shabius_ has joined #nixos
shabius has quit [Ping timeout: 268 seconds]
schjetne has joined #nixos
Have-Quick has joined #nixos
newhoggy has joined #nixos
<{^_^}>
[nixpkgs] @dywedir opened pull request #41402 → synapse-bt: init at 2018-06-04 → https://git.io/vhWAd
schjetne has quit [Ping timeout: 248 seconds]
<colemickens>
jD91mZM2: Windows is a rapidly diminishing part of Microsoft's business. Azure is exploding and Azure has a lot of OSS code. Microsfot is the largest corporate user of GitHub. They are a high level donor and sitting member of he Linux Foundation.
<colemickens>
Azure makes money on Linux. They contribute to the kernel. OSS is as core to Azure as it is in any large corp like that and certainly more than most.
<colemickens>
I really don't even know what the implication is that they're going to do. It's not like kernel dev is done on GH anyway.
leat has quit [Ping timeout: 248 seconds]
<colemickens>
I'm wary, but for other reasons. They don't always handle acquisitions well, both from a "taking over product roadmap" and a "taking over existing code/proj".
<colemickens>
Anyway, I hope it results in an explosion of alt hosting sites and implementations. Maybe free-er than GitLab, Pagure, Gogs/Gitea, Kallithea are all interesting to. (Pagure supports pull requests from non-local remotes too)
<colemickens>
And I'm really off topic and rambling, sorry.
orivej has joined #nixos
seafood has joined #nixos
aszlig has quit [Quit: Kerneling down for reboot NOW!]
<jD91mZM2>
colemickens: Good points! I don't really keep up with what Microsoft are doing nowadays
aszlig has joined #nixos
<jD91mZM2>
All I know is that they own Skype and Skype sucks. They own Word and libreoffice is just as good anyway. Etc.
<Yaniel>
hey, skype used to be great
<jD91mZM2>
Oh?
<Yaniel>
back when it was p2p
<Yaniel>
and actually supported linux
<clever>
jD91mZM2: from what ive heard, msn sucked and skype was good, then M$ just bought skype, and turned it into msn, without changing the name
<clever>
jD91mZM2: and people still think "skype is good" so they use it
<clever>
they wanted the name, not the product
<Yaniel>
pretty much
<jD91mZM2>
Recent versions though were basically just crash machines. Start a call? Crash. Send a message? Crash crash
<jD91mZM2>
"Ok so let's try this new and exciting version Win10 version of Skype instead"
<jD91mZM2>
crash
<clever>
also, my windows 10 VM is now getting telemarketer calls over my skype land#
<clever>
skype isnt even running...
<clever>
there is no off switch that i can find
<jD91mZM2>
So yeah let's hope that doesn't happen to GitHub if they buy it
YaZko has quit [Quit: YaZko]
simukis has joined #nixos
<sphalerite>
jD91mZM2: by "just as good" you mean "still terrible" right?
<jD91mZM2>
Basically. The solution is to use vim or emacs. No fancy word editing software ew
<jD91mZM2>
Oh BTW funny story: When switching language in word it also changes the keybinds
<jD91mZM2>
And since I live in Sweden I had to press Ctrl+F to make bold text on school computers
<sphalerite>
yes
<sphalerite>
oh wow
<jD91mZM2>
It was pain, I tell ya
<etu>
jD91mZM2: You know that MS has translated their Excel macro names as well? :)
<jD91mZM2>
Never used excel
<etu>
Well. Now you know.
<sphalerite>
actually, re: "no fancy word editing software" I hear org mode is fancy and really good
<etu>
org-mode is awesome
<sphalerite>
still haven't tried it myself, but one day I will
<etu>
I use it every day
<jD91mZM2>
Still, emacs is terminal, you can't embed images and other useless crap that you shouldn't embed anyway
<etu>
jD91mZM2: uh?
<etu>
you can
<jD91mZM2>
Oh no
<etu>
Yes
<jD91mZM2>
Please no
<etu>
by having separate files and reference to them
<jD91mZM2>
Oh okay good
<etu>
and running emacs in gtk-mode
<etu>
or whichever graphical mode you want
<etu>
you can skip gtk and still have it graphical :D
<sphalerite>
there are very valid uses for embedding images.
<jD91mZM2>
I'm used to people abusing MS Word for resizing and printing images lol
* etu
has used org-mode to render graphs
<etu>
and show them inline in emacs
<etu>
Based on data in an org-mode table that used org-mode-table-formulas to calculate some additional datas :)
<sphalerite>
ugh, I did something similar (not quite as bad) a while back because printing stuff is insane
<sphalerite>
I had a flyer that I wanted to print 4 of per page, and for the life of me I couldn't get the printing settings to print it right. Ended up editing the original document to make it that way
* etu
also has an org-mode file with the calculations he did for buying this apartment (that I'm sitting in), like interest, living costs etc
leat has joined #nixos
marusich has quit [Quit: Leaving]
<jD91mZM2>
Solution: Keep everything virtual and never print anything :)
<sphalerite>
believe it or not, handing out information to strangers in meatspace is quite difficult to do digitally.
tertle||eltret has quit [Quit: Connection closed for inactivity]
<etu>
sphalerite: email? :D
<etu>
yeah, no
<sphalerite>
etu: GDPR! :p
<etu>
paper is kinda good at that
<jD91mZM2>
BTW what's your opinions on GDPR?
<etu>
In the computer club I'm in we register our members on papers
<sphalerite>
but yeah, printers are nightmare boxes filled with black magic.
<etu>
And store in a locker
<etu>
mostly because of GDPR
<sphalerite>
huh, does that make compliance easier?
* sphalerite
doesn't really know enough about GDPR to comment
<etu>
yes, otherwise it would be in a computer file
<sphalerite>
(it's on my todo list)
* jD91mZM2
neither but comments anyways
<jD91mZM2>
(and therefor makes invalid comments all the time)
<etu>
If it was in a file we would need backups
<etu>
and we would need to sync things
<etu>
probably through a cloud
<etu>
and then we would need DPA's
<etu>
With these providers
<sphalerite>
well, syncthing doesn't need cloud stuff
<etu>
sphalerite: Is it easy to revoke access to that?
<sphalerite>
it's terrible in that its only UI is a web-based GUI, but in terms of what it does it's great
<etu>
Is it easy to get a list of who opened which file?
JasonGrossman has joined #nixos
<sphalerite>
ah :/
<etu>
I mean, we don't want a paper per member really
<etu>
But we decided on this because we didn't find another way at that point :)
<etu>
This is a bit OT as well, but channel seems to be unused otherwise :p
<etu>
But we have until newyears to come up with a better system so we can put it in our privacy policy for next year :p
<etu>
Because this year it's papers :p
schjetne has joined #nixos
shikiryogy has joined #nixos
JasonGrossman has quit [Ping timeout: 240 seconds]
<mjrosenb>
I'm trying to write a package for a binary distributed program on OSX. Is there any guidelines about which .dylib references need to be patched? (is it 'everything'?)
sorixelle has joined #nixos
sbdchd has quit [Ping timeout: 256 seconds]
<LnL>
depends, you don't need to patch system stuff like libc or frameworks since unlike nixos we have an impure base system
<mjrosenb>
impure base system soudns :-(
xy2_ has joined #nixos
<mjrosenb>
also, makes sense, I was super surprised when something asked me to install xcode.
<LnL>
we don't depend on xcode or the clt
<sorixelle>
Does pkgs in configuration.nix contain packages from overlays? If not, how do I reference one in environment.systemPackages?
<LnL>
only things like frameworks (not opensource) and some system stuff that's also not available and tried to the kernel
<mjrosenb>
I tried to install iterm2, and it asked to install xcode. then after that, it got further, but died to to some linking issue.
<LnL>
like things in /usr/lib/system
<jD91mZM2>
sorixelle: Do you mean a local user's overlays or system overlays?
<LnL>
mjrosenb: ah, iterm2 is broken afaik :(
<sorixelle>
I've added the overlay through nixpkgs.overlays, and added it into nix.nixPath in the same configuration
shikiryogy has quit [Remote host closed the connection]
<jD91mZM2>
sorixelle: Have you tried simply accessing overlays by name?
<sorixelle>
I have, it doesn't seem to see it
<sorixelle>
Which is odd, because nix-env -qa can find it
<jD91mZM2>
Since environment.systemPackages takes expressions you can just pop your custom package directly in there
<jD91mZM2>
(pkgs.some-package.overrideAttrs(oldAttrs: { /* thing here */ }))
<sorixelle>
True, but I wanted to go for an overlay to keep things a little neater
<jD91mZM2>
You can use a let..in statement to add it to both overlays and systemPackages
<jD91mZM2>
Oh, okay. Then I don't know, sorry
JasonGrossman has joined #nixos
<mjrosenb>
LnL: my plan was to find everything in the output of otool -L which has a file that exists in /nix, then depend on that package, and then relink all such references.
newhoggy has quit [Quit: Leaving...]
<mjrosenb>
does anything sound wrong with this plan? (the finding in /nix is a manual step, I'm going to hardocde the transforms that I get from that list into the .nix file.
<LnL>
mjrosenb: yeah, you can install_name_tool everything that's not part os itself
<LnL>
mjrosenb: take a look at nix-index it allows you to locate packages based on their files
Ariakenom has quit [Read error: Connection reset by peer]
Thra11 has joined #nixos
Ariakenom has joined #nixos
sorixelle has joined #nixos
alex`` has quit [Ping timeout: 256 seconds]
alex`` has joined #nixos
iyzsong has quit [Ping timeout: 260 seconds]
knupfer has joined #nixos
[Leary] has joined #nixos
Lears has quit [Ping timeout: 240 seconds]
iyzsong has joined #nixos
<phry>
has someone here a hetzner host and could share his networking information with me? they describe a pointopoint setup in their debian documentation, but I have no idea what that would be on NixOs :/
<LnL>
binary?
<elvishjerricco>
LnL: Must've been safari. When I open the log in safari, it shows a bunch of binary garbage. Seems fine in firefox
<LnL>
ah, it's compressed with brotli
<jophish>
I've got a strange error when booting on a rpi3B+, I have a kernel,init,systemConfig triple which works, however when I try to boot the same kernel with a different init+systemConfig it fails
<jophish>
however, the interesting part is that it hangs at "starting kernel..."
<jophish>
I would expect some more output
owickstrom has quit [Ping timeout: 248 seconds]
<jophish>
I'm not entirely sure how to debug this, as there's not really much to go on
<jophish>
I could try with the working init and the failing systemConfig, but I'm not sure of that really teaches me anything
b has joined #nixos
<jophish>
I've got loglevel=7 too
<{^_^}>
[nixpkgs] @ElvishJerricco opened pull request #41411 → Fix GHCJS 8.4/8.2 in sandboxed builds → https://git.io/vhlUc
<jophish>
hmm, is the nix/store filesystem there supposed to be there?
<Dezgeg>
yeah, I wonder what that does
<Dezgeg>
or rather, why it's there
<gchristensen>
jophish: odd, since its running ...
<jophish>
not a huge problem, had to spend 50c for a different machine :)
schjetne has joined #nixos
<elvishjerricco>
Dezgeg: While you're here, I'm experimenting with cross compiling NixOS to aarch64 using shlevy's work from a while ago. So I've got the system configuration built, and would like to try it in qemu. How can I create an image with that system installed?
tzemanovic has quit [Ping timeout: 265 seconds]
tzemanovic has joined #nixos
<Dezgeg>
I guess you could try the entire sd image + U-Boot
<ij>
should nixos firewall block docker ports also? or would it make more sense for docker to get around it?
<elvishjerricco>
Dezgeg: What do you mean by that?
aarvar has quit [Ping timeout: 260 seconds]
<jophish>
Dezgeg: sadly that doesn't seem to have done it
Neo-- has quit [Ping timeout: 256 seconds]
<Dezgeg>
nixos/modules/installer/cd-dvd/sd-image-aarch64.nix in the tree (instructions in the comment of the file) + U-Boot on QEMU which should be documented in the wiki IIRC
<Dezgeg>
jophish: I guess you can check /var/log/journal of the card on a PC to really see if it's a boot problem or a not-getting-graphics-up problem
<Dezgeg>
at least I have merged some patch from Ben Gamari (a2215da9a1f8edecdbd92d8e05f012524f1e06fb) which touches that stuff, so I do presume it could work
<{^_^}>
[nixpkgs] @orivej pushed commit from @bhipple to staging « lz4: 131 -> v1.8.2 (#41293) »: https://git.io/vhlT8
<{^_^}>
[nixpkgs] @orivej merged pull request #40687 → [RDY] cmake: don't override cmakeDir when set → https://git.io/vpNAL
<{^_^}>
[nixpkgs] @orivej pushed commit from @teto to staging « cmake: don't override cmakeDir when set (#40687) »: https://git.io/vhlT7
i-am-the-slime has quit [Remote host closed the connection]
JasonGrossman has joined #nixos
<gchristensen>
jophish: we're back!
<{^_^}>
[nixpkgs] @Mic92 pushed 20 commits to release-18.03: https://git.io/vhlkU
<ij>
How do I update gems when using bundix?
<Mic92>
first update the Gemfile.lock and then run bundix again
schjetne has quit [Ping timeout: 276 seconds]
<ij>
Well, the problem is that "bundle update"'s trying to access the lock file somewhere inside nix store.
<ij>
Mic92, ^
<Mic92>
Do you run it on the checked out source code?
<ij>
yeah, I'm in the git directory with my Gemfile{,.lock} and this happens on "bundle update rails": Errno::EROFS: Read-only file system @ rb_sysopen - /nix/store/7bnnkbxis8dds8j0x505j8m2wzk66w2d-railsproject-gems/lib/ruby/gems/2.4.0/bundler.lock
winem_ has quit [Quit: No Ping reply in 180 seconds.]
<nico202>
anybody using drone.io? I just set up it, and I want to cache /nix/store to improve build time
MichaelRaskin has quit [Remote host closed the connection]
<gchristensen>
usually what I do (though I can't help much, have to leave soon) is `nix-store --export` the paths, cache that, then `nix-store --import` from the cache
<__monty__>
nico202: Maybe look at cachix, sounds related at least.
<gchristensen>
yes! cachix should make that easier
<nico202>
sphalerite: how do you import it then? with a volume?
stanibanani has joined #nixos
<sphalerite>
what do you mean, with a volume?
stanibanani has left #nixos [#nixos]
<nico202>
You are just copying the store to arm-binary-cache, but then in the CI you need to have access to that folder, right?
<obadz>
do I really have to go dep by dep on crates.io to get the latest version of each dependnecy? is there no automation for this?
<sphalerite>
nico202: oh right, yeah. It's published via HTTP, and I have https://lugn.sphalerite.org/cache in my substituters list and the appropriate keys in trusted-public-keys
<nico202>
sphalerite: yeah hosting it is feasible, but I hoped there was some nice solution. drone.ci has volumes (you can mount a local dir basically) but a repository to use it must be trusted. If only hercules-ci was a thing
jperras has joined #nixos
* obadz
found cargo-edit
<nico202>
maybe I'll try again with hydra
<obadz>
damn just realized I'm on the wrong channel…
<tfc[m]>
hey there. i just started using stack2nix. this is great. are there any public binary caches that cache some LTS package versions?
steell has joined #nixos
seafood has quit [Quit: seafood]
<sphalerite>
nico202: you can use file:// similarly to HTTP binary caches.
Mateon3 has joined #nixos
<LnL>
do we have something to apply patches to a subtree?
karlguy has joined #nixos
Mateon1 has quit [Ping timeout: 255 seconds]
Mateon3 is now known as Mateon1
schjetne has quit [Ping timeout: 256 seconds]
iyzsong has quit [Ping timeout: 240 seconds]
jperras has quit [Ping timeout: 260 seconds]
<norfumpit>
do i understand nixops functioning for deployment to other nixos machines? I have to specify the full configuration.nix for the remote machine, along with hardware-configuration.nix?
<norfumpit>
so after installing a nixos instance on my vultr vps
<norfumpit>
i pull the generated configuration
mekeor has joined #nixos
<norfumpit>
stick it in my nixops folder
<norfumpit>
and deploy thus?
<norfumpit>
that seems to be how it goes, what confuses me is after deploy on the remote host /etc/nixos/ configurations remain unchanged
<norfumpit>
so if i were to rebuild on remote host directly
<norfumpit>
it would regress?
<norfumpit>
i would have expected my changes to appear there
<tfc[m]>
obadz: but it does not store the stackage LTSs, or does it?
knupfer has quit [Ping timeout: 265 seconds]
<norfumpit>
phry: that's what i figured. good to be sure. some kind of warning would be nice, like issue suggests
zecho has quit [Client Quit]
Xal has joined #nixos
steell has quit [Ping timeout: 268 seconds]
<infinisil>
LnL: ah nice
<infinisil>
Oh
<infinisil>
Yeah no i don't get it, nvm
<obadz>
tfc[m]: LTS 11.10 seems to be the default?
<obadz>
tfc[m]: but the haskell infra keeps changing so maybe I'm wrong…
<tfc[m]>
obadz: i just read the discussion on the nix mailing list that took part some time ago. and that was about dropping stackage lts stuff.
<tfc[m]>
obadz: this is of course no problem, because you can generate your own pinned LTS package lists and so on, but then the question of caching arises
<obadz>
I think even then hydra didn't build everything
<obadz>
too expensive
<LnL>
infinisil: I need to patch something in a submodule, but didn't want to commit it as a file just because it's not in the main repo
<obadz>
I'm not sure what the latest state of things is but I suspect if hydra doesn't build it, you probably won't find it anywhere else either…
shikiryogy has quit [Read error: Connection reset by peer]
<das_j>
Hey just a short question, how can I get the target of a link in /etc? I'd like to get the path in the nix store of environment.etc."exim.conf", what is the proper attribute?
<das_j>
-> I'd like to add it to the unit's restart triggers, because otherwise, the unit won't restart
logzet has joined #nixos
<elvishjerricco>
how do you get nixos to not build the manual? `services.nixosManual.enable = false;` doesn't seem to do it
<jD91mZM2>
Heh I really need to get around to resizing my boot partition... Or redoing my whole partition table. After fixing some crappy windows dual boot issues I had to garbage collect in order to regenerate NixOS onto it :P
steell has joined #nixos
<obadz>
jD91mZM2: nixos is so flexible with these things. You could just nixos-install from your current partition into another. And then there's lustrate, grow fs at boot, etc.
knupfer has joined #nixos
<jD91mZM2>
obadz: NixOS is really flexible, yep. Sadly, partitions are not. Resize one and you need to shrink one and move 5 others
<jD91mZM2>
And my home partition is so large doing one single move operation takes 20 mins :P
<jD91mZM2>
Perhaps I could get away with just shrinking though :)
nico202 has quit [Quit: Leaving]
endformationage has joined #nixos
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos
<obadz>
jD91mZM2: there was LVM for that. didn't really catch on…
<obadz>
but you couldn't have discontiguous partitions, straddle different disk, and move a partition while using it r/w at the same time…
periklis has joined #nixos
steell has quit [Ping timeout: 260 seconds]
schjetne has joined #nixos
<jD91mZM2>
obadz: Ah, right. I think ZFS allows one to do that sort of thing for multiple mountpoints though?
<obadz>
s/couldn't/could/
<obadz>
not sure about ZFS
<jD91mZM2>
As in I'd create one ZFS partition that mounted both / and /home, and then it wouldn't really care about the size of either. You could set a cap, but that cap could be changed later... I think
rauno has joined #nixos
<jD91mZM2>
I should get around to trying ZFS too sometime. Perhaps I'll reformat my drive and do both at once
<obadz>
yeah LVM did some similar things but the underlying filesystems needed to have fixed sizes (they thought they were on a physical partition)
<infinisil>
Yes ZFS can do that
<infinisil>
Can recommend
<jD91mZM2>
(Writes down infinisil to the list of people I know who use ZFS)
<__monty__>
Or give btrfs a shot : )
<jD91mZM2>
I believe adisbladis[m] had some opinion on zfs vs btrfs? Can't remember
<__monty__>
Would I recommend it for really valuable data? Not necessarily. Have I had any issues running it on my day to day box? No. Am I a filesystem power user? Also no.
<jD91mZM2>
Nice, thanks! I'll add it to the list of things I want but will probably never have the courage to try :P
<jD91mZM2>
want to*
dbmikus has joined #nixos
npmccallum has joined #nixos
npmccallum has left #nixos ["Good Bye"]
npmccallum has joined #nixos
<obadz>
last I checked neither ZFS nor BRFS had file level encryption on Linux. Has that changed?
<npmccallum>
is there a mechanism to create a file with specified contents during nixos-rebuild?
sbdchd has quit [Remote host closed the connection]
<ij>
If I bundle update into vendor and then create a shell that creates all the gems in /nix/store, is the building and downloading done twice?
ramses_ has joined #nixos
<ramses_>
I'm in the process of converting an existing ubuntu server running on Azure into a nixos system using lustrate. Does anyone have experience with this? Can I expect any troubles when rebooting into nixos?
<justanotheruser>
When I try to start mpv, I get this traceback https://hastebin.com/raw/otibehunuh "i965: Failed to submit batchbuffer: Input/output error"
<justanotheruser>
some other programs give me that error as well
<justanotheruser>
seems to be opengl related, however beyond that google hasn't been very helpful
<alexteves>
is there a way to get the currently active config (or at least the active substituters) ?
<alexteves>
on mac, `nix show-config` seems to output nix.conf directly, since I still need to restart the daemon for new substituters to be used
<fresheyeball>
anyone have thoughts on task running?
<fresheyeball>
lets say I have a task that styles code
<fresheyeball>
shell script? makeFile? Is there a nix way?
<andi->
whatever fits the language you are writing it in?
simukis has quit [Read error: Connection reset by peer]
orivej has joined #nixos
simukis has joined #nixos
<fresheyeball>
andi-: I think that is a bad idea, to make it platform specific
<andi->
Well if you write a python program you'll probably use some kind of python code formatter. If you use ruby same story. Ruby would probaly prefer a rake target?
<andi->
if you write C++ write a Makefile target?
sigmundv__ has joined #nixos
<adisbladis[m]>
I do my formatting in an emacs hook
<adisbladis[m]>
There is no good generic answer, it will be dependent on your workflow/language
<andi->
if it is some foreign code that you format over-and-over again: write nix-shell script that includes all the Dependencies needed for formatting?
foldingcookie has quit [Ping timeout: 260 seconds]
xy2_ has joined #nixos
<fresheyeball>
andi-: ok, that sounds right
<fresheyeball>
what is a nix-shell script?
<fresheyeball>
does nix-shell have task running abilities?
<fresheyeball>
is the idea we put a command in nix-shell as a derivation?
<fresheyeball>
and let the shebangs take care of the rest
<fresheyeball>
right?
<elvishjerricco>
yep
cloud-maingo has joined #nixos
<fresheyeball>
elvishjerricco: Hi WILL!
<elvishjerricco>
Hi Isaac :P
<samueldr>
if you want to try something dumb, set the shebang as `#!/usr/bin/env cat`
foldingcookie has joined #nixos
<infinisil>
samueldr: nice, simplest quine ever
<fresheyeball>
makes sense
<samueldr>
it'S an easy way to grok how shebangs work
<fresheyeball>
it sounds like the community is doing task running via shell scripts, and those scripts have nix managed deps via shebang. Is that fair/advisable?
simukis has quit [Ping timeout: 248 seconds]
<samueldr>
it has much lover overhead to understand and use
<samueldr>
(simply install nix and ./that_script)
<samueldr>
I found out that nix-shell, though, has a considerable startup time
<samueldr>
I found that out the hard way within a script that I was using to query the battery status for my WM
<infinisil>
Haha same samueldr
<infinisil>
Exactly the same, a battery script that was run 10 times a second but it used nix-shell :)
<samueldr>
oof, running way less often mine was still causing spikes where I could feel the computer being used :)
<samueldr>
(on a celeron c720p chromebook)
periklis has joined #nixos
<infinisil>
I didn't feel any slowdown, but I noticed it when my journalctl was littered with nix connection accepted messages
<samueldr>
I didn't feel any slowdowns on my main laptop, but I thought something was *up* with the chromebook or it was the meltdown patches causing that dreaded slowdown
<fresheyeball>
samueldr: yeah, its sounds nice, just asking.
<samueldr>
fwiw, I'm using the nix-shell shebangs for management scripts with the client I work with
<fresheyeball>
samueldr: sounds good. Lots of things have "task runners" built into their build or package ecosystem. like npm scripts, or makefiles, This feels right for nix for me.
<samueldr>
infinisil: I went a bit, but stumbled into limitations of my approach
<SagnikS>
The /boot is on a RAID.
<samueldr>
hmmm, sorry, never used raid
<andi->
SagnikS: please don't spam that.. I've had a look at the paste already. Maybe some more context would help. When does that happen? how does the configuration.nix look like?
<ldlework>
Emacs' nix-mode is not great either.
<samueldr>
your machine boots using UEFI, right?
<SagnikS>
Yes, UEFI
<samueldr>
good, at least you're using something that should work (and not e.g. uefi loader on legacy)
<andi->
anyone else having issues with the pycharm-professional pkg? Retrieving a 403 since a few days :/
endformationage has joined #nixos
acarrico has joined #nixos
avn has quit [Ping timeout: 244 seconds]
avn has joined #nixos
bara has quit [Ping timeout: 256 seconds]
bara has joined #nixos
schjetne has quit [Ping timeout: 265 seconds]
agile has quit [Quit: v]
agile has joined #nixos
<{^_^}>
[nixpkgs] @orivej merged pull request #41386 → libevent: Pull in patches to support LibreSSL 2.7. → https://git.io/vhWnD
<{^_^}>
[nixpkgs] @orivej pushed commit from @qolii to staging « libevent: add patches to support LibreSSL 2.7 (#41386) »: https://git.io/vhllG
agile has quit [Remote host closed the connection]
agile has joined #nixos
<SagnikS>
File system "/boot" has wrong type for an EFI System Partition (ESP).
<SagnikS>
Still same :/
dbmikus has quit [Ping timeout: 265 seconds]
acarrico has quit [Ping timeout: 265 seconds]
<{^_^}>
[nixpkgs] @dasJ opened pull request #41424 → schema2ldif: Init at 1.3 → https://git.io/vhlla
Drakonis[m] has quit [Changing host]
Drakonis[m] has joined #nixos
Drakonis[m] has joined #nixos
<cocreature>
hey, is there a way to temporarily change TMPDIR when using nix in daemon mode? I tried "TMPDIR=… nix-shell -p …" but it’s still building in /tmp
<elvishjerricco>
cocreature: You probably have to change the environment variable as the nix-daemon process sees it
<cocreature>
elvishjerricco: hm ok, I was hoping that there is a convenient way to just change it for one build but I guess there isn’t
<elvishjerricco>
`sandbox-build-dir The build directory inside the sandbox.` I'm guessing that's not what you want
<cocreature>
I
<cocreature>
*I’m not entirely sure what that does but it do what I would like it to do :)
<cocreature>
I’ll just restart the daemon
<sphalerite>
cocreature: you might also be able to set it on a per-build basis, if you're running nix as a trusted user, by just passing --sandbox-build-dir /path/to/alternative on the commandline
nuncanada has joined #nixos
tmaekawa has joined #nixos
alexteves_ has quit [Remote host closed the connection]
tmaekawa has quit [Client Quit]
<buhman>
how do I view the full xserver log?
<buhman>
I think some configuration is conflicting with mine, but I don't know how to examine the automatically generated configuration
woodson has quit [Ping timeout: 256 seconds]
woodson_ has quit [Ping timeout: 268 seconds]
aarvar has joined #nixos
phreedom has quit [Remote host closed the connection]
<rain1>
can i easily istall nix on arch linux or would there be problems?
jD91mZM2 has quit [Quit: WeeChat 2.0]
phreedom has joined #nixos
nuncanada has quit [Quit: Leaving]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<samueldr>
buhman: `journalctl --unit=display-manager` and you may want to add -b0; additionally, you could need sudo
<samueldr>
rain1: I don't think there should be any problems
<buhman>
samueldr: that shows what seems like a very incomplete log
<samueldr>
by default it uses less as a pager
<buhman>
i realize this, the log content is still incomplete
<samueldr>
what's missing?
c00kiemon5ter has joined #nixos
aarvar has quit [Ping timeout: 265 seconds]
SagnikS has quit [Ping timeout: 260 seconds]
<buhman>
it doesn't show driver initialization messages, for example
<samueldr>
also, for xorg.conf, you could use services.xserver.exportConfiguration
<buhman>
yeah I just saw that
nschoe has quit [Quit: Program. Terminated.]
<samueldr>
buhman: you're in the `systemd-journal` group or used sudo, right?
<buhman>
yes
<samueldr>
oh, and I'm assuming you're using a display-manager
<samueldr>
AFAIK all display-managers on nixos should log in there, but I haven't verified
<buhman>
well, for debugging this sort of stuff I usually use xinit, but I've read that's broken on nixos
fragamus has joined #nixos
<buhman>
so yeah, I'm using display-manager
<samueldr>
:/ at least with sddm the X server messages are there
<samueldr>
though, thinking back, it may be that with lightdm they are somewhere under /var/log
<buhman>
https://ptpb.pw/bMfC I think the main problem is I'm attempting to specify a serverlayout, and this conflicts with the one that some other thing generated
<samueldr>
oh, yeah
<samueldr>
buhman: I may have a workaround
<samueldr>
(give me a bit, I need to find it in my history)
<buhman>
one I figure this out what I really want to do is make this not suck for everyone
<elvishjerricco>
Dezgeg: I will say that for some reason the kernel build yields a kernel file named `Image` instead of `bzImage`. Not sure why, or if it's relevant
<Dezgeg>
it's normal
matthewbauer has joined #nixos
<gchristensen>
is there some sort of systemd magic that starts a service only if a argument is present in /proc/cmdline?
YaZko has joined #nixos
aarvar has joined #nixos
<steveeJ>
gchristensen: you could use a service that greps for the argument, and another one that depends on it. grep will simply fail if it's not found
<elvishjerricco>
Dezgeg: Is it not finding the partition with the kernel?
Thra11 has quit [Ping timeout: 248 seconds]
<Dezgeg>
yeah, something wrong with the disk I presume
<elvishjerricco>
Dezgeg: Alright. I'll start looking there later. Gtg for now though.
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nixos
<Dezgeg>
oh, there is ConditionKernelCommandLine= also
<elvishjerricco>
Dezgeg: What's that?
fragamus has joined #nixos
<gchristensen>
oohh
<buhman>
how do I change the DPI for the display manager?
<tilpner>
ixxie - I already commented on your last try, what happened to adopting that one? About these new ones: I don't find any of the middle symbols intuitive, except for nixpkgs
<{^_^}>
[nixpkgs] @orivej pushed to master « freeimage: fix build with glibc 2.27 »: https://git.io/vhl0O
c00kiemon5ter has left #nixos [#nixos]
<{^_^}>
[nixpkgs] @lopsided98 opened pull request #41429 → cc-wrapper, bintools-wrapper: unbreak include/link paths when cross-compiling → https://git.io/vhl0s
<{^_^}>
[nixpkgs] @orivej opened pull request #41433 → ninja: build manual with docbook → https://git.io/vhlgZ
SagnikS has joined #nixos
<SagnikS>
Please send help. I had an encrypted home directory and it can't boot
<SagnikS>
:/
lingeeal has joined #nixos
marusich has joined #nixos
<SagnikS>
Anyone?
<lingeeal>
hi, i've just installed nixos on asus laptop for the first time, and getting very weird behaviour. displayManager does not appear, booting the nixos stops with login prompt. However, I deleted the files in home dir .XAuth*, .ICe and was able to see lightdm display manager as well as gnome3 when logged in. After rebooting the again, the same bad thing and just see black login prompt and never display manager. Also wh
<lingeeal>
en rebooting I see the message "A stop job is running to x11". Also, having a look at journal and dont see any errors.
matthewbauer has joined #nixos
<samueldr>
lingeeal: next time, switch to a console (CTRL+ALT+F1), login and `sudo systemctl restart display-manager`
<buhman>
I think my 3d configuration is mysteriously broken
mkoenig has quit [Ping timeout: 256 seconds]
<buhman>
glxinfo looks sane, but any 3d application including glxgears just flickers
thc202 has quit [Ping timeout: 260 seconds]
mkoenig has joined #nixos
<lingeeal>
samueldr: thanks, `sudo systemctl restart display-manager` just hangs and does not output a thing. :/ This is shit..Is there some startx at least to try to force the x11 to appear. Cannot find anything about this :(
schjetne has joined #nixos
tzemanovic has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @orivej pushed to staging « ninja: support cross compilation »: https://git.io/vhl23
silver has quit [Quit: rakede]
silver has joined #nixos
kerrhau has quit [Ping timeout: 265 seconds]
silver has quit [Quit: rakede]
silver has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]