<NixOS_GitHub>
[nixpkgs] volth opened pull request #30557: vuze: init at 5750 (master...vuze-5750) https://git.io/vd7Uo
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] volth opened pull request #30558: tixati: init at 2.55 (master...tixati-2.55) https://git.io/vd7U6
NixOS_GitHub has left #nixos []
riclima has joined #nixos
scribble_ has joined #nixos
nh2 has quit [(Quit: Leaving.)]
Wizek_ has quit [(Ping timeout: 240 seconds)]
<ison111>
Does anyone know what might cause a custom derivation to appear to compile successfully but result in a completely empty directory in the store?
scribbler has quit [(Ping timeout: 248 seconds)]
<michaelpj>
ison111: is it putting anything in $out?
jb55 has joined #nixos
darlan has joined #nixos
darlan has quit [(Client Quit)]
catch22 has joined #nixos
ertesx-w has joined #nixos
ertes-w has quit [(Ping timeout: 240 seconds)]
ertesx-w is now known as ertes-w
leat has quit [(Ping timeout: 258 seconds)]
scribbler has joined #nixos
catch22_ has joined #nixos
scribble_ has quit [(Ping timeout: 240 seconds)]
catch22 has quit [(Ping timeout: 260 seconds)]
erictapen has quit [(Remote host closed the connection)]
frankqux2 has joined #nixos
Mateon1 has quit [(Ping timeout: 240 seconds)]
frankqux1 has quit [(Ping timeout: 240 seconds)]
catch22_ has quit [(Ping timeout: 260 seconds)]
jgertm has quit [(Ping timeout: 258 seconds)]
catch22 has joined #nixos
Myrl-saki has quit [(Ping timeout: 240 seconds)]
catch22 has quit [(Ping timeout: 260 seconds)]
sirkha_ has joined #nixos
sirkha has quit [(Ping timeout: 240 seconds)]
Wizek_ has joined #nixos
riclima has quit [(Quit: riclima)]
lambdamu_ has joined #nixos
hellrazo1 has joined #nixos
pie_ has quit [(Read error: Connection reset by peer)]
pie_ has joined #nixos
sigmundv has quit [(Ping timeout: 252 seconds)]
riclima has joined #nixos
lambdamu has quit [(Ping timeout: 252 seconds)]
hellrazor has quit [(Ping timeout: 240 seconds)]
<ison111>
michaelpj: I think it should be, it wasn't building at all until I set DESTDIR="$out"; which from looking at the configure file is where it should be installing
riclima has quit [(Quit: riclima)]
<ison111>
sorry, I mean from looking in the Makefile.in
mbrgm has quit [(Ping timeout: 240 seconds)]
Wizek_ has quit [(Ping timeout: 240 seconds)]
ryantrinkle has joined #nixos
contrapumpkin has quit [(Quit: My MacBook Pro has gone to sleep. ZZZzzz…)]
mbrgm has joined #nixos
contrapumpkin has joined #nixos
demego has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] earldouglas opened pull request #30559: picat: init at bff92c4 (master...dump1090) https://git.io/vd7L2
NixOS_GitHub has left #nixos []
<Li[m]1>
I haven't been able to find the 'suckless' nix tree. Anyone knows what happened to that?
<Li[m]1>
He said in there he's maintaining a different tree
<Li[m]1>
Guess I'll try him on tox
drakonis has joined #nixos
Supersonic112 has quit [(Disconnected by services)]
Wizek_ has joined #nixos
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
<Li[m]1>
If anyone knows please fill me in
<adisbladis>
No one ever did any work on that afaik.
<Li[m]1>
OK thanks
kiloreux has quit [(Ping timeout: 258 seconds)]
kiloreux_ has quit [(Ping timeout: 258 seconds)]
<adisbladis>
Li[m]1: And it would be a TON of work to get nix running without systemd, and when you finally get things to run you would lag so far behind you have to start all over again :)
<Li[m]1>
I'm getting ready to leave linux
<Li[m]1>
So systemd is just the beginning
<gchristensen>
sounds exciting :)
<Li[m]1>
Redox or fuchsia
<dhess>
Li[m]1: do you know about guix?
<Li[m]1>
With nix
<Li[m]1>
Yes I know about it
<Li[m]1>
I wonder if anyone got nix running on minix3
<dhess>
So you want Nix but not Linux?
dieggsy has quit [(Ping timeout: 255 seconds)]
sir_kha has joined #nixos
sirkha_ has quit [(Read error: Connection reset by peer)]
sirkha_ has joined #nixos
<Li[m]1>
dhess: right
abrar has joined #nixos
<dhess>
Li[m]1: You should port it to Open/FreeBSD. That would be awesome!
<Li[m]1>
Well, its a positive rather than a negative , I want a secure kernel architecture
<Li[m]1>
Not interested in that
sir_kha has quit [(Ping timeout: 248 seconds)]
<Li[m]1>
Capabilities based microkernel
<Li[m]1>
Zircon probably
taktoa has joined #nixos
<dhess>
Well in that case, I would say that lack of Nix is the least of your issues.
<drakonis>
freebsd vOv
<drakonis>
someone tried and then failed
<dhess>
Are they even POSIX-compatible?
<drakonis>
mainly because it is a different OS
<drakonis>
it is
<drakonis>
it is more posix compatible than linux
<dhess>
drakonis: Zircon is?
<drakonis>
freebsd is
<taktoa>
Li[m]1: what about seL4
<drakonis>
zircon is mildly compatible i guess?
<drakonis>
just enough
<dhess>
oh yes of course. I wasn't talking about *BSD
<drakonis>
the bsds aren't monolithic
<drakonis>
they're all different entities.
<dhess>
they're not exactly capability-based either, which is I guess what Li[m]1 is looking for.
<drakonis>
of course they're not
<dhess>
anyway I was just trying to encourage him to port Nix to one of those.
<drakonis>
go look genode
<drakonis>
look up genode
<drakonis>
someone was looking at porting nix to it
<Li[m]1>
I have a feeling itll lead to a nix fork
<drakonis>
nix comes with a whole lot of baggage by the way
<Li[m]1>
But whatever
<drakonis>
it'd be nice to have a fork
ariutta has quit [(Ping timeout: 260 seconds)]
<drakonis>
nix isn't perfect
<drakonis>
there's many flaws that could be improved through a fork
<Li[m]1>
There aren't a lot of perfect tools
<Li[m]1>
Can't even think of one
<dhess>
you crazy kids.
<Li[m]1>
Computer science is not even 100 yrs old (practical CS, not just theory)
<drakonis>
crazy kids? this is how you get better software
<simpson>
Li[m]1: Don't worry too much about it. Capability-safe tooling is one of those things that we're going to have to push on people for years while they try to make sense of things.
<Li[m]1>
Lol ppl are gonna run to et
<drakonis>
don't pretend nix isn't without flaws, the entire community mindset is entrenched in the whole "immutability" aspect that it loses sight of what more it can be
<Li[m]1>
It
<drakonis>
simpson, we already got that vOV
<drakonis>
vOv
Ralith_ has quit [(Ping timeout: 255 seconds)]
<Li[m]1>
Couldn't nix work directly with a filesystem like zfs?
<simpson>
drakonis: I mean, I don't got it yet. I think maybe in a decade we'll have it?
<drakonis>
look up cheri
<Li[m]1>
That way links aren't necessary
<ldlework>
simpson what are you up to?
demego has quit [(Quit: Leaving)]
<simpson>
ldlework: Right now? Writing slides.
<ldlework>
I mean with Nix
<simpson>
Oh, trying to get LyX to work. I think I need a reboot to appease Qt5.
<ldlework>
simpson do you run NixOS as your main workstation OS?
<simpson>
Yeah, my laptops are all NixOS.
<Li[m]1>
Is anyone using Wayland? Tried velox but my keyboard wasn't registering
<Li[m]1>
From a tty, do I have to use logind?
<drakonis>
hmm
<drakonis>
wayland?
<drakonis>
which specs do you have
demego has joined #nixos
<Li[m]1>
The touchpad worked, which is explicitly set to use libinput
<ldlework>
simpson jealous
<ldlework>
simpson any of them on a MBP?
<drakonis>
is wayland up to date on nix?
<simpson>
Nope, sorry.
<Li[m]1>
Ahh maybe I should be explicit about keyboard libinput
<ldlework>
I wonder how hard it is to dual boot NixOS on MBP
<Li[m]1>
Order a librem 5, no more laptops
demego has quit [(Remote host closed the connection)]
<Li[m]1>
:D but in a year ..maybe
demego has joined #nixos
<Li[m]1>
Since drivers in user space means porting them is trivial(relatively) then the move will happen quickly
<Li[m]1>
Especially when every bank running legacy systems gets hacked back to the stone age
<Li[m]1>
Then will be scrambling to port nix to a secure os
<Li[m]1>
The fire sale is coming
<gchristensen>
ldlework: "not hard" last I checked
drakonis has quit [(Read error: Connection reset by peer)]
<ison111>
clever: It's a very simple derivation and $out only shows up in one place so I have no idea how that could happen: https://pastebin.com/rFKCERtg
<ldlework>
clever what's the difference basically?
<adisbladis>
Li[m]1: No? Redox is posix compliant.
<clever>
ison111: and what happens when you try to build that?
<Li[m]1>
Fuchsia is more likely in the near team
<clever>
ldlework: nix will inspect the function to see what arguments it wants, and pass those values from pkgs.
<Li[m]1>
Redox is all in rust
<ison111>
clever: It says error: undefined variable ‘out’
<adisbladis>
Li[m]1: Yes the OS itself, but there are C compilers for it.
<clever>
ison111: that is refering to the nix variable out, which doesnt exist
<ldlework>
clever what if it takes more than just pkgs? but also config, and lib, etc?
<clever>
ison111: its only an environment variable, that exists at build time
<Li[m]1>
True
<clever>
ldlework: it will use pkgs.config pkgs.lib and pkgs.etc
<ldlework>
huh ok
<ldlework>
I'll give it a go
iqubic_ has joined #nixos
<ldlework>
hmm now I get infinite recusion lol
<clever>
ldlework: oh
<clever>
ldlework: thats a module, not a package
<ldlework>
yeah
<clever>
ldlework: so callPackage wont work, and giving it args will also fail
<ldlework>
hehe ok
<clever>
ldlework: you must put the result of the fetch in your list on imports
<ldlework>
so just import it
<clever>
dont import it either
<ldlework>
clever you can see that its not a typical moudle
<ldlework>
it has a module attribute where the real module is
<ldlework>
the other attributes are made available as library code
<clever>
ah
<ison111>
clever: So how do I tell it to build to $out then? If I don't set DESTDIR at all then it tries to install itself to another package in the nix store and fails
<ldlework>
clever thanks adding the import got me building again
iqubic has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] aszlig pushed 2 new commits to master: https://git.io/vd7mj
scribbler has quit [(Remote host closed the connection)]
scribbler has joined #nixos
<clever>
simpson: sounds like something is incorrectly looking in /run/current-system/sw/lib/
<clever>
when it should be looking directly in the store, at the right version
<simpson>
clever: Probably. But I have slides to write, and LyX works again now, so I'm done fighting with it for today.
S0rin has quit [(Ping timeout: 248 seconds)]
notdaniel has quit [(Ping timeout: 252 seconds)]
hamishmack has quit [(Quit: hamishmack)]
scribbler has quit [(Ping timeout: 252 seconds)]
S0rin has joined #nixos
notdaniel has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] michaelpj opened pull request #30563: tzupdate: init at 1.2.0 (+ service) (master...imp/tzupdate) https://git.io/vd7sc
NixOS_GitHub has left #nixos []
ssmike has quit [(Ping timeout: 240 seconds)]
ryantrinkle has joined #nixos
scribbler has joined #nixos
scribbler has quit [(Remote host closed the connection)]
scribbler has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] veprbl opened pull request #30564: texlive: fix after dependency update (master...texlive-icu-fix) https://git.io/vd7sX
NixOS_GitHub has left #nixos []
<vincent_vdk>
anyone here using a Thinkpad t460 with a Bluetooth headset by any chance?
<vincent_vdk>
just wondering if it works well under nixos
<Li[m]1>
never seen bluetooth work well under any circumstance
<clever>
same
<clever>
the phone profile sounded like crap
<clever>
the music profile buffered lost packets, until it had 30 seconds of latency
<Li[m]1>
connman bluetooth connection ongoing, then put the system to sleep and BAM the entire system goes under
<clever>
both of them went out of range while i was still within spitting distance
<Li[m]1>
unrecoverable
pie_ has quit [(Remote host closed the connection)]
<Li[m]1>
its just one more of those things I dont see fixed in my time horizon
<Li[m]1>
ill start by implementing a sane console
<Li[m]1>
:P
pie_ has joined #nixos
<vincent_vdk>
I'm currently on Fedora and it actually worked until recently
<iqubic>
Tomorrow I turn 17.
<vincent_vdk>
i've been thinking about moving to Nixos and was curious if it would work
<vincent_vdk>
i could at least roll back to a working config :)
<Li[m]1>
vincent_vdk: nixos is the *only* reason I put up with systemd
<adisbladis>
vincent_vdk: If it works on fedora it should also work on nix.
<vincent_vdk>
i need some days of the install and configure it
<vincent_vdk>
:)
ryantrinkle1 has joined #nixos
<adisbladis>
vincent_vdk: Btw, when I highlighted you I got an away notice. Super annoying.
<ldlework>
Can I add a specific file to nix_path?
<clever>
ldlework: what are you thinking of?
<ldlework>
clever I'm going to store all the fetchFromGithub's in a plugins.nix and have my hm wrapper just add it to the path
<clever>
ldlework: ah, you can just add /etc/nixos/plugins to the NIX_PATH
<ldlework>
?
<clever>
and then <plugins.nix> will look for a file called plugins.nix, inside /etc/nixos/plugins
<ldlework>
Oh, why /etc/nixos/plugins?
<clever>
thats how $NIX_PATH works
<clever>
just preference
<clever>
it can be anywhere
<ldlework>
ah ok
ryantrinkle has quit [(Ping timeout: 248 seconds)]
<ldlework>
On non-NixOS, I think ~/.config/nixpkgs/ is more convenient
<clever>
you can also add plugins.nix=/home/clever/something-else.nix
<clever>
and then <plugins.nix> will map to /home/clever/something-else.nix directly
<clever>
it wont even load a file called plugins.nix!
hamishmack has joined #nixos
<clever>
ldlework: you could also just use config.nix (or an overlay) to store your plugins at pkgs.your-plugins
<clever>
then they will already be loaded for everything
Wizek has quit [(Quit: Connection closed for inactivity)]
<ldlework>
Hmm, oh yeah home-manager uses an overlay itself
<ldlework>
So maybe that will work
<ldlework>
clever you've been really helpful and I appreciate that
<ldlework>
clever any documentation on overlays?
<clever>
i havent actually used them much yet
pxc has joined #nixos
<clever>
but they take a super and self argument, and then return a set of overrides
<ldlework>
what are they?
<ldlework>
oh well, doesn't seem like you need to use them
<clever>
yeah, the only real benefit i see to overlays, is that it you can only have 1 packageOverride, but you can have many overlays
<clever>
so overlays help when you want to trivialy take overrides others have made, and add them to your own
leat has joined #nixos
notdaniel has quit [(Read error: Connection reset by peer)]
Mateon2 has joined #nixos
JosW has joined #nixos
MercurialAlchemi has joined #nixos
c0ffee152 has quit [(Quit: Lost terminal)]
<ldlework>
clever the overlay is so nice
<ldlework>
it does exactly what I was wanting
<vincent_vdk>
adisbladis: sorry
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] kquick opened pull request #30565: maintainers: add Kevin Quick (master...kquick_maintainer) https://git.io/vd7nJ
NixOS_GitHub has left #nixos []
<adelbertc>
hmm rust on nixpkgs seems out of date, even on unstable
<adelbertc>
1.17.0 whereas latest is 1.21.0
<adelbertc>
do folks just use the mozilla nixpkgs overlay for rust stuff?
<MP2E>
there's PRs about this, basically newer cargo and rust don't play nice with our existing rust infrastructure and nobody has fixed it yet afaict (the PRs simply bump the versions and hashes, last I checked)
<MP2E>
i think mozilla nixpkgs overlay is used mostly yeah
<MP2E>
it would be nice to get the newest rust in..
<MP2E>
ah on another inspection it looks like work is in progress
<adelbertc>
ah i should've checked the PR list first
<adelbertc>
but good to see there's work on it
<adelbertc>
thanks!
Arcaelyx has joined #nixos
ixxie has joined #nixos
<ldlework>
clever do you think you could show me an example of simple Nix module exports a function that takes `args@{ config, pkgs, lib, ... }` and somehow merges the result of `import <plugins>` (a set) into builtins in a way where additional modules imported with `imports = [ ];` will be able to access those plugins via `builtins.plugins` ?
<ldlework>
If that's even possible
<clever>
ldlework: i think your better off at this point putting things right into imports where they belong
<clever>
ldlework: you can add custom arguments that get passed to every module
<ldlework>
The problem is passing around the various config, pkgs, lib args everywhere
<clever>
thats also how pkgs winds up in the args to begin with
hellrazor has joined #nixos
<ldlework>
Nice
<ldlework>
Could I do something like
<Li[m]1>
how would you add a 'application.desktop' manually in the application's derivation? some kind of 'writeToFile' thing? (dont know the exact name im sure it exists_
<Li[m]1>
and I heard all those helper functions arent documented in one place. is that still true?
<clever>
ldlework: package overrides are better when you want to modify the list of pkgs directly
<clever>
ldlework: which is done at nixpkgs.overlays
<ldlework>
Is that available on non-NixOS? I've never heard of that file before.
<clever>
Li[m]1: writeFile will create a new derivation
<ldlework>
Unless you mean ~/.config/nixpkgs/overlays/
<clever>
ldlework: not sure if home-manager includes that one or not
<clever>
ldlework: its a nixos option, on the page i just linked
<ldlework>
👍
hellrazo1 has quit [(Ping timeout: 248 seconds)]
Neo-- has joined #nixos
ebzzry has joined #nixos
<Li[m]1>
the application's source doesnt include such a file, I need a desktop icon. is there a standard way of adding it in the derivations build scripts?
endforma1 has quit [(Ping timeout: 260 seconds)]
<Li[m]1>
im looking through but most applications just seem to include one in the source
<clever>
Li[m]1: postInstall would be where i would usually do it
<Li[m]1>
thanks
<ldlework>
crap infinite recursion
<ldlework>
while evaluating the module argument `plugins' in "/Users/dustinlacewell/src/dotfiles/src/emacs":
reinzelmann has joined #nixos
<clever>
ldlework: can you gist the file you changed that triggered that?
<ldlework>
I'll just push up a branch so you can inspect
<ldlework>
overlays/plugins.nix is the plugin overlay, envs/osx.nix is the top-level expression, src/emacs/default.nix is where the recursion is happening
<clever>
ldlework: line 3 is a problem
<ldlework>
which file?
<clever>
ldlework: line 3 loads nixpkgs, which need overlays, which need nixpkgs, which need overlays.....
<ldlework>
changing it to pkgs.fetchFromGithub I now get: infinite recursion encountered, at undefined position
<MP2E>
yikes :(
<ldlework>
Which has got to be the worst error I've seen in a while
<ldlework>
lol
<clever>
ldlework: also, an overlay should have 2 arguments, self: super:
<clever>
your arguments on line 1 arent right
<clever>
both self and super are instances of pkgs
<clever>
self is the result after all overrides (it can cause infinite recursion)
<clever>
super is the result from applying all previous overlays (using it wrongly can lead to some overlays not appearing)
<ldlework>
Oh right, I didn't mean to put the plugins file into the overlays folder
<MichaelRaskin>
Li[m]1: adisbladis: just duct-taping together a Nix-based system with the kernel from NixPkgs and no systemd _running_ is actually quite easy.
<clever>
for fetch functions, you want to use super
<ldlework>
I don't know why I did that
<ldlework>
If you look at overlay.nix
<ldlework>
oh that doesn't exist in the repo
<ldlework>
look at home-manager/overlay.nix
<ldlework>
👍 I think I understand the problem
<Li[m]1>
MichaelRaskin: i figured it would be so. didnt clever kinda do that with notos?
ma27 has joined #nixos
<clever>
Li[m]1: yep
<MichaelRaskin>
That wasn't much of a desktop system, though.
proteusguy has quit [(Ping timeout: 252 seconds)]
<clever>
MichaelRaskin: i also applied an override to a few things, to get systemd out of the closure
<MichaelRaskin>
(I run Nixpkgs kernel on the laptop and my PID 1 is sinit)
<ldlework>
clever would `self: super: args@{ config, pkgs, lib, options, ... }:` work as the first line? The plugin packages need to be called with all of the typical module arguments manually? (I'm passing `args`)
<clever>
yeah, i have runit on mine, and it was able to work as a nix build slave, but not much more
<MichaelRaskin>
But on a desktop system I don't really hope to patchout systemd from build closure on Nixpkgs on Linux.
<clever>
ldlework: the overlays systems expects to pass 2 arguments to the overlay, and get a set back
<clever>
ldlework: so having a 3rd argument would break it
<MichaelRaskin>
Clean tree? Why not go to GuixSD instead?
<ldlework>
clever I think I need that, because I need to pass in config, pkgs, lib, and so on into the plugin module's scope, so that it can in turn pass them to the modules fetched from git
<Li[m]1>
what the advantage of doing that
<MichaelRaskin>
Not having to package everything again?
<Li[m]1>
well, thats a few dozen packages
<MichaelRaskin>
I want a bit more…
<MichaelRaskin>
Also, stdenv bootstrap is annoying.
<Li[m]1>
yea thats what is really in my mind
<Li[m]1>
changing stdenv
JosW has quit [(Quit: Konversation terminated!)]
<MichaelRaskin>
I mean, it is an inherently annoying problem.
pxc has quit [(Ping timeout: 240 seconds)]
<Li[m]1>
the lower stack has become huge in its immodularity/monolithicness - and thus annoying to deal with
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] kquick opened pull request #30566: Libabc: add new libabc package (master...libabc) https://git.io/vd7ca
NixOS_GitHub has left #nixos []
<Li[m]1>
some are still trying. im not scared to give up a lot, since everything is a transitory implementation "to show us the idea"
<Li[m]1>
burn it all down to the ground and start again
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] kquick closed pull request #27198: Add ABC verifier library in addition to the executable. (master...add_abc_library) https://git.io/vQoTt
NixOS_GitHub has left #nixos []
leat has quit [(Ping timeout: 248 seconds)]
<Li[m]1>
the ppl who designed the first transistor computers are still alive, so this is all just prototyping
JosW has joined #nixos
oahong has quit [(Ping timeout: 240 seconds)]
pxc has joined #nixos
<ldlework>
clever can overlays only provide derivations?
<ldlework>
Home Manger's overlay is defined like, home-manager = import ../home-manager { pkgs = super; };
<ldlework>
Which assigns a derivation
<hyper_ch>
Mic92: that patch still doesn't work.... the wireguard connection with domain doesn't get auto-started at boot
<clever>
ldlework: i believe the overlays must be in the form of self: super: { ... }
<ldlework>
Yeah I know, but the attributes of that set
<clever>
ldlework: but what values you assign to the attributes, dont matter, you can store anything
<ldlework>
hmm
<ldlework>
I can't figure out this recursion problem
<ldlework>
clever I reduced things down to: self: super: { plugins = { foo = "bar"; }; } in my overlay file but it says it can't find plugins in the Nix search path.
<clever>
ldlework: overlays dont add it to the search path
<ldlework>
I did `so anytime plugin's is imported, you have to` just to try it
<clever>
ldlework: that allows you to access "bar" at pkgs.plugins.foo
<ldlework>
oh right its pkgs
<ldlework>
🤦♂️
leat has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] kquick opened pull request #30568: Theft: add new theft development library (master...theft) https://git.io/vd7C0
NixOS_GitHub has left #nixos []
proteusguy has joined #nixos
jb55 has quit [(Ping timeout: 240 seconds)]
riclima has quit [(Ping timeout: 248 seconds)]
chaker has joined #nixos
<ldlework>
clever I can do `config._module.args.plugins = {foo = "bar";};` but as soon as I do `config._module.args.plugins = plugins;` I get infinite recursion.
ma27 has quit [(Quit: WeeChat 1.9.1)]
<ldlework>
Where the assigned plugins value is the result of `plugins = pkgs.plugins args`
ma27 has joined #nixos
<ldlework>
and the overlay is defined as `self: super: { plugins = import ../plugins.nix; }`
<ldlework>
and plugin.nix is defined as function
chaker has quit [(Client Quit)]
<clever>
not sure then
chaker has joined #nixos
<ldlework>
` config._module.args.plugins = import ../plugins.nix args;` works without an overlay, until I actually use the plugins argument in a module
<ldlework>
then I get infinite recursion
<ldlework>
I don't think this _module.args trick works very well
MercurialAlchemi has quit [(Ping timeout: 248 seconds)]
<ldlework>
no matter what I do, even with simple values, as soon as I use the parameter in a new module, boom
ma27 has quit [(Ping timeout: 260 seconds)]
odi_ has joined #nixos
kkini has quit [(Remote host closed the connection)]
<ldlework>
I think the problem is that I'm importing the plugin packages, and passing the module arguments to them, but then putting the plugin packages -into- the module arguments
<ldlework>
and that's where the recursion comes from
<ldlework>
so if I'm going to go that way it seems like the plugins would not be able to use any of the module arguments
ma27 has quit [(Ping timeout: 240 seconds)]
ixxie has quit [(Ping timeout: 258 seconds)]
p4cman has joined #nixos
MichaelRaskin has quit [(Quit: MichaelRaskin)]
<Li[m]1>
the exemple with 'service.acpid.handlers' in the man page doesnt work
Neo-- has quit [(Remote host closed the connection)]
Neo-- has joined #nixos
orivej has quit [(Read error: Connection reset by peer)]
scribbler has quit [(Remote host closed the connection)]
ixxie_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] flokli opened pull request #30572: twilio: init at 6.8.0 (master...twilio) https://git.io/vd7B1
NixOS_GitHub has left #nixos []
ylwghst has joined #nixos
goibhniu has joined #nixos
justanotheruser has quit [(Ping timeout: 240 seconds)]
mortum5 has joined #nixos
Arcaelyx_ has joined #nixos
Arcaelyx has quit [(Ping timeout: 252 seconds)]
<Li[m]1>
allright, amixer wasnt working because pulseaudio is running
ThatDocsLady has joined #nixos
pxc has joined #nixos
pxc has quit [(Ping timeout: 246 seconds)]
notdaniel has joined #nixos
<srhb>
Is gpg-zip hiding in some package?
<Li[m]1>
iv narrowed my problem to pulseaudio-user-related. my user can access the pulseaudio daemon, but root cant
<clever>
]$ nix-locate gpg-zip
<clever>
gnupg1orig.out 3,414 x /nix/store/6d7cs7ivz6lh9m0rji4jlbk67l3w501j-gnupg-1.4.21/bin/gpg-zip
<srhb>
Huh.
scribbler has joined #nixos
<srhb>
It's not in gnupg2 apaprently
<srhb>
Nor in gnupg1..
ison111 has quit [(Ping timeout: 255 seconds)]
<srhb>
Apparently gnupg1orig is the one.
<clever>
yep, thats what nix-locate said
<clever>
no idea what you will loose by going to such an old version
<hyper_ch>
so, during boot up, I can't enter encrypted zfs password with an attached usb keyboard... I guess I just have to load the usb modules in the initrd as well?
<clever>
hyper_ch: yeah
<clever>
check lsmod for anything hci, usb, or hid related and throw it into boot.initrd.availableKernelModules
<hyper_ch>
usbhid probably
<hyper_ch>
and there's also usbstorage
FRidh has joined #nixos
<clever>
you also need a usb driver for the controller
<clever>
which calls under hci
<hyper_ch>
will try
<hyper_ch>
hmm, I already have plenty of stuff in the availableKernelModules.... whats the different between boot.initrd.kernelModules and boot.initrd.availableKernelModules ?
<clever>
kernelModules are forcibly loaded
<clever>
availableKernelModules are just available, and udev will auto-load them as needed
<hyper_ch>
ok
ylwghst has quit [(Quit: Lost terminal)]
<srhb>
Can I merge an option value with its default?
<gilligan_>
clever, oh.. you are actually right. I have no clue why chrome is telling me `ERR_INVALID_RESPONSE` tbh
<clever>
geolocated dns replies and cloudfront mirrors
Wizek_ has joined #nixos
<gilligan_>
clever, my nix-shell invocation (of a bundix generated ruby env) is stuck with several download-from-binary-cache.pl calls and i have honestly no idea how to work around that apart from setting use-binary-caches to `false` which would require a LOT of patience then.... ;)
<ikwildrpepper>
note that you either need to be root, or your user must be in trusted-users (or https://nix-cache.s3.amazonaws.com/ must be part of trusted-binary-caches)
garbas has joined #nixos
scribbler has quit [(Ping timeout: 260 seconds)]
mortum5 has quit [(Ping timeout: 240 seconds)]
scribbler has joined #nixos
<gilligan_>
ikwildrpepper, yeah i just realized that when i tried to add the cache as trustedBinaryCache and then ran nixos-rebuild which is now trying to use nixos cache again hehe.. which fails
kiloreux_ has joined #nixos
kiloreux has joined #nixos
<gilligan_>
ikwildrpepper, but i can specify the option to nixos-rebuild.. that works
sirkha_ has quit [(Ping timeout: 260 seconds)]
<gilligan_>
ikwildrpepper, fixed my problem. Thanks alot for your help
notdaniel has quit [(Quit: Leaving)]
Svarog has joined #nixos
ThatDocsLady has quit [(Remote host closed the connection)]
ThatDocsLady has joined #nixos
<betaboon>
how can i access 'lib' in a shell.nix ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vd727
<NixOS_GitHub>
nixpkgs/master c0e00ef Vladimír Čunát: knot-dns: fix `kdig +tls` broken in 2.6.0
NixOS_GitHub has left #nixos []
MP2E has quit [(Remote host closed the connection)]
<betaboon>
nvm, got it
sigmundv has joined #nixos
FRidh has quit [(Quit: Konversation terminated!)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to release-17.09: https://git.io/vd7aO
<NixOS_GitHub>
nixpkgs/release-17.09 eeeee66 Vladimír Čunát: knot-dns: fix `kdig +tls` broken in 2.6.0...
p4cman has quit [(Quit: Connection closed for inactivity)]
scribbler has quit [(Ping timeout: 255 seconds)]
Wizek_ has joined #nixos
scribbler has joined #nixos
m0rphism has quit [(Quit: WeeChat 1.9.1)]
erictapen has joined #nixos
infinisil has quit [(Ping timeout: 240 seconds)]
civodul has joined #nixos
hlavaty has joined #nixos
<Profpatsch>
I’ve got two stages of LUKS decryption: first the root device should be decrypted, then the RAID is decrypted with a key file on the root.
<Profpatsch>
I suspect just putting everything in initrd.luks.devices won’t work, right?
<hyper_ch>
nope
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vd7wi
<NixOS_GitHub>
nixpkgs/master 0bc4216 Nikolay Amiantov: Merge branch 'staging'
NixOS_GitHub has left #nixos []
lsix_ has quit [(Ping timeout: 258 seconds)]
<Profpatsch>
hyper_ch: Should I put manual cryptsetup commands in the initrd.postDeviceCommands hook?
<hyper_ch>
Profpatsch: crypttab should do the trick no idea how to use that on nixos
<hyper_ch>
but what is the reason for the double encryption?
lsix_ has joined #nixos
<Profpatsch>
I reckon it should be possible to describe trees of luks devices to be decrypted via nix expressinos.
<Profpatsch>
hyper_ch: Because I have a bunch of RAID drives and a root device with the system.
<hyper_ch>
I guess it is
<hyper_ch>
as said, on debian I put addition drives etc in crypttab
<Profpatsch>
hyper_ch: thanks for the crypttab pointer.
<Mic92>
hyper_ch: the version with error handling was not even released back then.
<infinisil>
Whew, saved by nixos generations yet again
<hyper_ch>
infinisil: how so?
<Svarog>
when building a rust package with nixos, i'm getting an error "fatal: Not a valid branch point: '<some hash>'" - i've read this happens when there is a conflict with dependencies: https://github.com/NixOS/nixpkgs/issues/15687
<Svarog>
how does something like this get resolved? why does building a rust package create a git branch (the message immediately before the failure is that some gir branch is being created)?
<infinisil>
hyper_ch: I wanted to build my server with nixops instead of sshing,nixos-rebuild, which didn't work because the local build of the server includes /etc/nixos/hardware-configuration.nix which of course is the one from the local machine
<hyper_ch>
infinisil: you just need to do as clever does :)
<infinisil>
That is?
<hyper_ch>
some really advanced nixos-magic :)
<hyper_ch>
but now that you know the problem you can fix it :9
<infinisil>
Yeah I just need to include the hardware config in my config repo
<adisbladis>
Nixops <3 The only bad thing is I barely have to touch our nixops machines.. It's too boring :(
<infinisil>
Ohhh shit, I have zsh auto completion for files over ssh
<hyper_ch>
just noticed that qtpass works again - yey
<adisbladis>
Every upgrade works without a hitch
<infinisil>
Yeah it's really nice
<infinisil>
Alright, let's try this again, including the servers hardware config now
<hyper_ch>
go for it!
<hyper_ch>
nixops looks nice
ixxie has joined #nixos
<hyper_ch>
once I get rt-ps run on nixos, maybe I can use it for my homeserver
<hyper_ch>
infinisil: btw, using zfs?
<infinisil>
yup
<adisbladis>
hyper_ch: I'm running a 3 datacenter setup with nixops, so nice with the re-use of resources.
<hyper_ch>
:)
<hyper_ch>
Profpatsch: figured it out yet?
<infinisil>
adisbladis: I've had this idea for a while, do you think it would be useful to manage data with nixos?
<Profpatsch>
hyper_ch: Reading the module implementation of boot.initrd atm
<adisbladis>
infinisil: What kind of data?
<infinisil>
E.g. specify that this is your music library, mounted here, if you change the location, the data gets automatically moved
<adisbladis>
infinisil: Sounds pretty nifty :)
<infinisil>
Could work over multiple machines with nixops
<adisbladis>
But also.. Data is state so I don't know..
<infinisil>
Yeah I'm also unsure about that
<infinisil>
but you'd only manage the location of the state
<infinisil>
not the state itself
infinisil has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
bennofs has joined #nixos
infinisil has joined #nixos
<infinisil>
It.. worked?
<infinisil>
\o/
<infinisil>
Truly magical
<adisbladis>
infinisil: I guess. I think you are on to something. =)
<infinisil>
And if home-manager's nixos module works (rycee has made a draft of it), I could even put my home-manager's config together, then I have 1 repo and command to run for nixos-rebuilds for all machines along with ~ setup
<ertes-w>
i need to create a live-USB system that boots into a specific script of mine on VT 1, kinda like an installer… which options should i be looking at?
<adisbladis>
infinisil: Well you are going to have deployment state.
<ixxie>
infinisil: I have also been searching for a one-config-to-rule-them-all scenario, and was thinking atm to have my nixos config as a submodule of my home-manage config, so that I could clone that repo into a new machine and run a single setup script to simlink everything to place
<ertes-w>
is nixops still stateful?
<ixxie>
infinisil: but that still requires two repos and to seperately build both
<hyper_ch>
btw, how would I use wayland instead of x11?
<ixxie>
infinisil: where is your nixops stuff at?
<infinisil>
ixxie: Just added this, not yet pushed to github
dejanr has joined #nixos
<infinisil>
ixxie: should be there now
<ixxie>
right
<infinisil>
It couldn't be simpler really
<ixxie>
indeed
<infinisil>
Can I combine the 2 nixops files into 1?
<ixxie>
how does import /cfg/machines/dobby find dobby?
<ixxie>
shouldn't it be like ../machines/dobby?
fendor has joined #nixos
<infinisil>
Oh right
<ixxie>
you moved it I guess Xd
<ixxie>
xD
<infinisil>
/cfg is where the system repo is
<infinisil>
and i had the nixops files in ~/Test/nixops before
<ixxie>
yeah
<ixxie>
makes sense
<infinisil>
system config is in /cfg, home-manager config is in ~/cfg :D
scribbler has quit [(Ping timeout: 260 seconds)]
Ivanych has joined #nixos
m0rphism has joined #nixos
gilligan_ has quit [(Ping timeout: 240 seconds)]
proteusguy has quit [(Ping timeout: 240 seconds)]
<infinisil>
Ohh, I actually don't need nixos-config in NIX_PATH anymore when I'm using nixops for the local machine
<betaboon>
infinisil: how do you handle overlays in nixops ?
<infinisil>
Adding them to the system configs nixpkgs.overlays option
<infinisil>
I haven't done that, but that's how I'd do it
<adisbladis>
Yeah should be nothing special
scribbler has joined #nixos
<betaboon>
I'm currently using a shell.nix to pin nixpkgs-channel and constrain everything to a single directory. so I'm settings NIX_PATH, NIXOPS_DEPLOYMENT and NIXOPS_STATE in a shellHook. just trying to figure out how to properly set the NIX_PATH for the overlay.
<betaboon>
gchristensen: yeah that's how i do it currently on my nixos-machines. I'm using "nixpkgs.overlays = [(import <nixpkgs-overlays>)];" combined with nix.nixPath in the machine configuration.
<adisbladis>
If you both have that it would be amazing
<infinisil>
That would be interesting
<gchristensen>
betaboon: that looks fine
<betaboon>
gchristensen: now for this nixops setup i have prepared a shell.nix, that sets the NIX_PATH environment variable.
ylwghst has joined #nixos
leat has quit [(Ping timeout: 240 seconds)]
<betaboon>
now when i use the nixpkgs.overlay in a nixops machine-configuration i end up with an infinite recursion :/
<gchristensen>
what is your NIX_PATH set to?
<betaboon>
let me put up something on gist
<gchristensen>
why aree you using <nixpkgs-overlays> instead of a relative path to your actual overlay?
pikajude has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<betaboon>
because i have the overlay in a seperate git-repo and want to set it like "https://github.....tar.gz" and that was the way i found that worked for me
<betaboon>
just collecting together the best practices :) thanks to the open and sharing community :)
<gchristensen>
:) can you do the thing that caused the error? does it come with a stack trace?
<betaboon>
just started a new job and i convinced them to ditch their docker plan and go completly with nix XD
erictapen has joined #nixos
<betaboon>
let me try to find some reproducability constrains
<gchristensen>
wow! awesome :D
pxc has joined #nixos
ebzzry has quit [(Quit: WeeChat 1.9.1)]
<betaboon>
but they don't know anything about it, so i have to be very careful in educating them the right way, without building up frustration. so well structured and commented code is the way to go :)
<moredhel1>
I just updated my system, and the display-manager crashed, as well as my account being logged out. I'm currently looking through journalctl -xb. Are there any known breaking changes that have gone into master? I'm running unstable.
<moredhel1>
so it happens when I do either a nixos-rebuild switch/root
joehh has joined #nixos
<gchristensen>
hmm not familiar with anything in particular, you might need to go dig through the history and either report a bug or fix something :)
erictapen has quit [(Ping timeout: 255 seconds)]
<joehh>
If I have a nixos computer with two interfaces (so two routes out to the internet - one adsl and one 4g - two different isps), what is the best way to manage which route will get priority?
<moredhel1>
sure. I'm reading through the journal now... but at the moment my system is in a broken state. I guess I can revert my nixpkgs back to a working version
<joehh>
I'm not interested in load balancing, just having a backup option when one of the connections fails
<moredhel1>
I ran it in a vm and it works fine though... so that's weird
<gchristensen>
joehh: if I had to guess, your default route would do it
<joehh>
I could have a script/service running and checking connectivity on each route then rewrite something in /etc/nixos/ and nixos-rebuild switch each time I want to change
<gchristensen>
joehh: I don't know, though. find how to do it on Linux normally, and then we can figure out how to do it on nixos
<joehh>
but doing a rebuild switch for each change it seems a little heavy handed
ThatDocsLady has quit [(Quit: Leaving)]
<joehh>
I'll keep reading :)
<betaboon>
gchristensen: i updated the gist to include the trace and some more context
scribbler has joined #nixos
<gchristensen>
betaboon: overlay-default.nix ... is this just nixpkgs?
<sphalerite>
joehh: if you use network-manager it should default to the ADSL one I believe
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
<betaboon>
gchristensen: overlay-default.nix is the "default.nix" with is in the directory where nixpkgs-overlays= points to
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
<gchristensen>
yeah but it looks like it is a clone of nixpkgs
erictapen has joined #nixos
<sphalerite>
joehh: the way you'd manage the priority manually is using `ip route` to set the metric of the preferred one lower
<betaboon>
gchristensen: don't be confused with the path names in my overlay. i am shadowing the nixpkgs, path structure
<gchristensen>
ahh
<betaboon>
so that i can simply move packages etc from nixpkgs to my overlay
jtojnar_ has quit [(Quit: jtojnar_)]
<joehh>
sphalerite: thanks, so no probs having a service alter that "on the fly"
<betaboon>
eg when an older version of a package i rely on got removed from nixpkgs, i can simply put that expression into my overlay and everything works as before
<betaboon>
(recently had to do that when django_1_11 got removed)
S0rin has quit [(Ping timeout: 248 seconds)]
<sphalerite>
joehh: yes, or just using network-manager (assuming you want to use ADSL when available)
<joehh>
kind of feels a little unnixish, but I think the purpose kind of requires it
<joehh>
though I'm not sure nm will be able to tell, each interface is just an ethernet cable to a router, one with a 4g card, one with adsl and potentially one in the future with satellite
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to release-17.09: https://git.io/vd7y7
<NixOS_GitHub>
nixpkgs/release-17.09 5934687 Tim Steinbach: docker: add 17.10.0-ce...
NixOS_GitHub has left #nixos []
<joehh>
but from computers view, just separate ethernet networks
<joehh>
(4 nics available)
simukis has quit [(Ping timeout: 252 seconds)]
<gchristensen>
betaboon: ./pkgs/top-level/all-packages.nix <- does this not have pythonPackages it?
<betaboon>
gchristensen: no it does not
<gchristensen>
:/ I'm not sure why you're recurring
<betaboon>
what do you mean ?
ThatDocsLady has joined #nixos
<hyper_ch>
infinisil: so, used now nixops?
ma27 has joined #nixos
<infinisil>
hyper_ch: Not yet
<infinisil>
I need to allow ssh from localhost :P
S0rin has joined #nixos
<sphalerite>
joehh: aaah right. In that case I think you'd have to set up the preference manually in nm. In which case using nixos config is probably nicer since that's declarative
<hyper_ch>
you turned of ssh from localhost for security reasons?
<gchristensen>
betaboon: I don't know why this doeesn't work. try commenting out pythonxPackages
<infinisil>
hyper_ch: It's not on by default
<hyper_ch>
:)
ylwghst has quit [(Quit: Lost terminal)]
<betaboon>
gchristensen: i added all-packages.nix and python-packages.nix to the gist
<gchristensen>
betaboon: did you try commenting out pythonxPackages?
<betaboon>
gchristensen: same error with all the python-stuff commented out in overlay-default.nix
<betaboon>
(not neccesarily same trace tho)
<betaboon>
on a quick view it looks like the same trace
<infinisil>
Ohh, hmmm, I guess I can't do something like nixos-rebuild test with nixops
<gchristensen>
I'm having a hard time with this b/c I don't really know how overlays work :/
<gchristensen>
I don't think I can help, betaboon, I'm sorry
<betaboon>
gchristensen: nothing to be sorry about. thanks for being a good rubber-duck tho :)
<gchristensen>
:) good luck
<gchristensen>
try using builtin.trace around
<betaboon>
good point
<infinisil>
betaboon: can you post the gist again?
<joehh>
any problems with frequent nixos-rebuild switch?
<sphalerite>
not really, no
<betaboon>
i realy want to be able to say "dont ever put nixops in your systemPackages. only run "nix-shell" and then do "nixops XYZ" :P
<sphalerite>
You'll get a lot of system generations but they don't really take up any space unless you've got major changes between them
<joehh>
all I am aware of is need to gc relatively regularly, but I imagine we'll limit rates to prevent flapping
<joehh>
something like no more 1 change every 5-10 minutes
<sphalerite>
joehh: why?
<sphalerite>
oooh wait I see
<gchristensen>
joehh: I'd recommend making a system that does it without the nixos-rebuild switch
<sphalerite>
well that seems like a stateful thing to do, so something that shouldn't be encoded in the nixos config
<sphalerite>
^
<gchristensen>
if possible
<joehh>
I suspect that is the best option, put both/each network in nix config, but the selection of the primary route is made at run time based on situation
<gchristensen>
yeah
<sphalerite>
exactly
<joehh>
also wanting to manage via nixops (each device connecting to central network via openvpn), so not wanting nixops managed configuration.nix to get out of sync
<sphalerite>
What you want to have in your config is "prefer x over y whenever x is available", not "use x"
<joehh>
yes - exactly
ivanivan has joined #nixos
<gchristensen>
all my nixops deployment can't use nixos-rebuild
simukis has joined #nixos
<gchristensen>
I've had too many accidents doing it by mistake
<joehh>
right - so go one way or the other
<infinisil>
what's the bad thing on doing that?
<joehh>
to much risk of overwriting/losing changes?
<gchristensen>
nixops doesn't copy your config over
<gchristensen>
so if you switch, you break your server and your network and probably your user
<ivanivan>
I'm using nix on ubuntu, subscribed to the nixpkgs-unstable channel.
<ivanivan>
If I add nixos-unstable to my channels, will I be able to install/use packages from there?
<ivanivan>
I'm a little fuzzy on the distinction between those channels.
<betaboon>
that's why i want to get everything done with just git+nix-shell+nixops
<joehh>
devices will be in very remote locations collecting environmental data, breaking network would be a bad thing
<infinisil>
Ah, and I won't even have my config on the server, so I can't even rebuild there
<betaboon>
joehh: breaking network is always a bad thing xD
<betaboon>
infinisil: any thoughts on the gist ?
<gchristensen>
ivanivan: there is no difference in the package set:)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vd796
<NixOS_GitHub>
nixpkgs/master 0b409b3 Tim Steinbach: linux-copperhead: 4.13.7.a -> 4.13.8.a
NixOS_GitHub has left #nixos []
<infinisil>
betaboon: I looked at it, but there's so much stuff going on that i gave up :P
<infinisil>
Try reducing the problem to a minimum
<gchristensen>
ivanivan: the only difference is nixos-* gets more testing
<infinisil>
I can't see anything that's obviously wrong
ixxie has joined #nixos
<joehh>
:) especially if they are several thousand kms away and at best 2-3 flights + long drive
<infinisil>
What does nixops do to not break the network connection?
<betaboon>
infinisil: thanks for looking anyway. but yeah its alot to take in.
<gchristensen>
infinisil: the key part is the _config_
<infinisil>
Because it just broke the network connection for me an hour ago..
<gchristensen>
infinisil: it can break your network, sure
<infinisil>
Ah right
<joehh>
it does feel like this should be a solved problem somewhere, but everything I've managed to find seems to be solving a more complex problem (two way routing)
<gchristensen>
infinisil: but your target server has a default config, which doeesn't work
<gchristensen>
joehh: what're you doing? :)
<ivanivan>
gchristensen: Good to know, thanks! I'm asking, however, because it looks like the alacritty package is only available on nixos-unstable.
<sphalerite>
joehh: what exactly do you want to do? Just always use the best available one?
<infinisil>
joehh: I can think of doing something like `activate-configuration; if [ ! curl google.com ]; then rollback`
<moredhel1>
gchristensen (IRC): I figured it out. Not sure if it's a bug though... but I had some docker volumes setup, ran 'nixos-regenerate-config' as I had added a new mount (unrelated), then run 'nixos-rebuild switch'. It then tried to unmount then remount the docker volumes.
<joehh>
infinisil: that is pretty much the aim, I'm going to have a variety of network connections each with different costs to use and I'd like to use the best/cheapest at a time
<joehh>
ie perfer adsl when working, then 4g then satelite
<joehh>
due to remote location, not uncommon to lose one or more network options for a day+ at a time
<joehh>
satellite is pretty reliable, but have least data available
<ixxie>
betaboon: the usecase in your work scenario didn't include the need for orchestration / load balancing I guess?
<joehh>
going out on a number of jettys, sheds, towers to collect wave/tide/wind/pressure data
<gchristensen>
joehh: may I PM?
<joehh>
yes
scribbler has joined #nixos
ivanivan has quit [(Quit: WeeChat 1.9.1)]
<betaboon>
ixxie: not currently. but it will at some point.
<betaboon>
ixxie: I'm just laying the foundation for the whole new project :)
simukis has quit [(Ping timeout: 255 seconds)]
<sphalerite>
gchristensen joehh : I'm curious, would like to see what you come up with
<sphalerite>
(any particular reason to pm? Just volume?)
<ixxie>
betaboon: because I had this discussion with gchristensen and other last week, and the conclusion - unless I was mistaken - is that Nix/OS/Ops doesn't handle that orchestration stuff well
<gchristensen>
it does
<gchristensen>
just not like docker does
<ixxie>
betaboon: so I started thinking about using it in tandem with Docker/Kubernates
<ixxie>
hmm
<gchristensen>
not magically, like docker does
<ixxie>
right
<ixxie>
and I guess its even further from what Kubernates can do
<betaboon>
ixxie: to be honest, I'm juming head-first into very cold water. i haven't read up on the problems that you can run into that much. i solve the problems as i go. but I'm confident enoug to think that nix will not stand in the way. only the current state of implementation. and that is not a problem to me.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ttuegel pushed 8 new commits to master: https://git.io/vd7Q4
<infinisil>
Need cleanSource because I'm using a git checkout of nixpkgs
<ylwghst>
Hi
<ylwghst>
Why I'm not able kill xserver/gnome/shell by systemctl stop display-manager?
<infinisil>
ylwghst: what's the error?
<ylwghst>
infinisil: no error
<ylwghst>
nothing happens
<infinisil>
did you check the journal?
<hyper_ch>
infinisil: do you normally run latest kernel?
<infinisil>
hyper_ch: I'm using nixos-unstable, so probably
<hyper_ch>
nah, that's not latest
<hyper_ch>
I thought it was you who told me how to run latest
<infinisil>
ah, then not i guess
<ylwghst>
im not very familiar with journalctl yet how can i show only last messages?
<infinisil>
journalctl -u display-manager -e
<infinisil>
-e just scrolls to the bottom, -u selects the unit
<avn>
-r also useful, show last messages on top
<infinisil>
oh nice
<avn>
(in reversed order)
<ylwghst>
kool
leat has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh closed pull request #30548: tensorflow: dont include cudatoolkit unless cudaSupport is used (master...tensorflow-without-cudatoolkit) https://git.io/vdQW0
qzd has quit [(Quit: Connection closed for inactivity)]
scribbler has joined #nixos
<gchristensen>
sure enough
<ertes-w>
allow me to repeat my question from a few hours ago =)
<gchristensen>
efx[m]: haskellPackages are excluded from search, which probably breaks search for packages hoisted out of haskellPackages and in to the main pkgs attrset
<ertes-w>
i need to create a live-USB system that boots into a specific script of mine on VT 1, kinda like an installer… which configuration.nix options should i be looking at?
<ertes-w>
joehh: i'm gonna look, too… if you're faster than, i'd appreciate if you could enlighten me =)
<ertes-w>
*than me
<joehh>
for me it is a nice to get to job for next week
<Unode>
Is anyone here using libinput for touchpad control? I've enabled it and set "libinput Disable While Typing Enabled (297): 1" on the "ETPS/2 Elantech Touchpad" device yet it still doesn't disable while typing.
ylwghst has quit [(Client Quit)]
<Unode>
This worked on my old distro. The same versions of both libinput and xf86-libinput from what I could gather. Does anyone have any suggestion on what might be wrong?
pxc has quit [(Ping timeout: 240 seconds)]
ma27 has joined #nixos
hotfuzz_ is now known as hotfuzz
<warbo>
hello, is there a way I can avoid rebuilding derivations when some dependency's hash changes, but that dependency happens to produce the same output as before?
<warbo>
I can think of two ways: using `nix-store --add` in the dependency, to get a consistent hash, but the garbage collector doesn't seem to notice this dependency, and removes the added path when it should still be live
<warbo>
the other way is to import the result of the dependency, e.g. as a string, but this causes things to build at eval time, which isn't ideal
lsix_ has quit [(Ping timeout: 260 seconds)]
lsix_ has joined #nixos
<tilpner>
warbo - A fixed-output derivation may be what you want
<tilpner>
You'll need to specify what the output hashes to, but then it won't be rebuild anymore
<tilpner>
*rebuilt
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vd7pK
<NixOS_GitHub>
nixpkgs/master 0d5ff53 Nikolay Amiantov: bazel_0_4: build on Darwin
NixOS_GitHub has left #nixos []
<warbo>
hmm, I hadn't thought of that
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 8 new commits to master: https://git.io/vd7pX
<NixOS_GitHub>
nixpkgs/master bed68ed Guillaume Bouchard: Add *guibou* in maintainers
<NixOS_GitHub>
nixpkgs/master 7f83bf4 Guillaume Bouchard: ptex: init at 2.1.28
<NixOS_GitHub>
nixpkgs/master db6e674 Guillaume Bouchard: alembic: init at 1.7.4
NixOS_GitHub has left #nixos []
lsix_ has quit [(Remote host closed the connection)]
lsix_ has joined #nixos
ryantrinkle1 has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to staging: https://git.io/vd7jw
<NixOS_GitHub>
nixpkgs/staging 52350b5 Frederik Rietdijk: Merge remote-tracking branch 'upstream/master' into HEAD
<alp>
Leo[m]2, looks like there are nixos modules for at least gitlab and matrix synapse. depending on how comfortable you are changing the configuration and looking up module options etc, I'd suggest practicing a bit with simple modules (or not) before actually tackling somewhat fancy ones. For instance, https://nixos.org/nixos/manual/index.html#sec-configuration-file shows how to write and evolve some configuration for apache. and when you feel
<alp>
ready, you can head to https://nixos.org/nixos/options.html#gitlab -- add services.gitlab.enable = true; to your config and then proceed to figure out the right options for you etc.
p4cman has quit [(Quit: Connection closed for inactivity)]
<alp>
although I have no idea what nextcloud is and whether it's specific to lighttpd or not etc. but at least it should help, in case it's not usable directly.
<disasm>
lol, desc for package config param in owncloud is PostgreSQL package to use. how'd that get past review :)
<disasm>
alp: nextcloud is an open source dropbox replacement pretty much
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vd5UZ
<NixOS_GitHub>
nixpkgs/master f3d368b Nikolay Amiantov: python.pkgs.python-mapnik: 2016-08-30 -> 3.0.13
NixOS_GitHub has left #nixos []
<viaken>
I'm getting "filter failed" trying to print via hplip. Anyone experienced similar?
hlavaty has left #nixos ["ERC (IRC client for Emacs 25.1.1)"]
<viaken>
Logs tell me hpps can't find cupsext. I'm not sure what to do with that.
Neo-- has quit [(Ping timeout: 246 seconds)]
seanparsons has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
seanparsons has joined #nixos
<hodapp>
I'm still salty about ownCloud after it had a small bug which caused it to delete every single file in the share on every single device that was syncing with it.
<hodapp>
I was able to get it back when I realized that my Macbook was asleep when this happened (and had been synced recently), but still, that was shitty.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee pushed 1 new commit to master: https://git.io/vd5Ud
<Yaniel>
so you don't have to trust the server to not snoop your data (as much as normally)
<hodapp>
Yaniel: people mean different things sometimes in advertising e2e
dieggsy` has quit [(Remote host closed the connection)]
<hodapp>
sometimes they mean "it's fine, you can trust us! your data is secure! we promise(tm)!"
<Yaniel>
well, there is advertising and there are blatantly obvious lies
<hodapp>
with substantial overlap
<Yaniel>
sure
<andrewrk>
dtzWill, it looks like your llvm 5 PR didn't make it into the unstable release yet
<sphalerite>
server-end to client-end encryption!!!11
<hodapp>
sphalerite :P
dieggsy has quit [(Ping timeout: 246 seconds)]
<disasm>
Mic92: well that was a false positive, forgot I added xwayland to compare debug logs...
<disasm>
Mic92: what are your thoughts if we add xwayland as a systempackage to programs.sway?
cement has joined #nixos
<disasm>
I know it should work without xwayland... but it doesn't seem to
snikkers has joined #nixos
<guillaum1>
Do you see any potential issue with building a program inside a nix-shell AND doing the final link outside, to link with the system linker?
<Mic92>
disasm: yes, let's go for that option
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 3 new commits to master: https://git.io/vd5I3
<NixOS_GitHub>
nixpkgs/master 22de3b4 Robin Gloster: python.pkgs.colorlover: init at 0.2.1
<NixOS_GitHub>
nixpkgs/master c6adc2e Robin Gloster: python.pkgs.cufflinks: init at 0.12.0
<NixOS_GitHub>
nixpkgs/master 8f5d8f7 Frederik Rietdijk: Merge pull request #30541 from mayflower/cufflinks...
NixOS_GitHub has left #nixos []
<disasm>
Mic92: hopefully with sway 1.0 and wlroots as a base instead of wlc things will just work, lol
<andrewrk>
guillaum1, what is the motivation for doing that?
ryantrinkle has joined #nixos
civodul has quit [(Ping timeout: 248 seconds)]
<guillaum1>
andrewrk: link with the system libGL.so
<guillaum1>
andrewrk: to create a binary which can be easilly shared to another system and works with OpenGL.
<guillaum1>
andrewrk: for now, that's the only solution I found which works reliably.
<andrewrk>
aha
<andrewrk>
is opengl usually in the same place on every system?
<guillaum1>
andrewrk: no, but by assuming that it is in the linker search path, I cover all my client. On the other hand, assuming that my client have nixOS cover 0% of them.
<andrewrk>
guillaum1, so your goal is, using a nixos system, create a cross compile binary that works on other linux systems?
<andrewrk>
"cross compile" just meaning that you're going to run the binary on a different system than the one you compiled it on
<guillaum1>
oula, this is the next step. The first one is to build a binary on a non nixOS (but using nix) which runs... (with OpenGL).
<andrewrk>
guillaum1, is this a fundamental problem? or does this have something to do with nixos?
<betaboon>
so my NIX_PATH include "nixpkgs-overlays=some/path/" and i expected the "import <nixpkgs-overlays>" to only "pull in" default.nix in that directory.
<betaboon>
but it didnt
<betaboon>
and i had another broken .nix in that directory
<betaboon>
so i was looking at the wrong place for the source of the problem
<gchristensen>
betaboon: ooooooohhhhhhhhhhh :D
<andrewrk>
guillaum1, it seems to me that you could build with nixos in a nix-shell, keep the nixos rpaths, and additionally add rpaths for /usr/lib, /usr/local/lib, etc, whatever all those distros use
<betaboon>
yep. tastes like fail xD
<infinisil>
betaboon: gchristensen: Can I get some context? I don't get it
hotfuzz_ has joined #nixos
<ylwghst>
brb
<infinisil>
Oh wait, I think I remember, the overlays in nixops
<betaboon>
infinisil: yeh the overlay+nixops problem i had
<infinisil>
so the overlay imported some other nix file that referenced something else?
hotfuzz has quit [(Ping timeout: 240 seconds)]
<guillaum1>
andrewrk: yes, but the nix loader will not find the indirect dependencies of /usr/lib/libGL.so because they have no rpath.
csingley has quit [(Read error: Connection reset by peer)]
<betaboon>
infinisil: indeed.
Arcaelyx has joined #nixos
Arcaelyx_ has quit [(Ping timeout: 260 seconds)]
<infinisil>
and that something else is your nixops config?
<betaboon>
i was under the misconception that "import <nixpkgs-overlays>" would only import "nixpkgs-overlays/default.nix". which seems to be wrong as it also imported "nixpkgs-overlays/some-broken-expression.nix"
<infinisil>
Ahhhhh
<infinisil>
Yeah it's like the ~/.config/nixpkgs/overlays folder, wouldn't have thought of that either
ryantrinkle has quit [(Ping timeout: 240 seconds)]
<guillaum1>
andrewrk: what I really need is a hack of binutils/ld to add a special behavior: if the lib we are looking for is libGL.so, there look in the system path for it and for all its indirect dependencies.
scribbler has quit [(Ping timeout: 248 seconds)]
<betaboon>
infinisil: yeah. but not that i reread the documentation on that, it is very clearly stating that :P
<betaboon>
"If the path is a file, then the file is imported as a Nix expression and used as the list of overlays."
<betaboon>
"If the path is a directory, then we take the content of the directory, order it lexicographically, and attempt to interpret each as an overlay by"
<infinisil>
betaboon: Heh yeah, but sometimes you just don't think of it being a certain thing, the overlay import in your case
<infinisil>
That's like how all my debugging sprints end up
<andrewrk>
guillaum1, why don't you add the system path to the rpath? I don't see why it won't work
<Mic92>
yes, they fixed also some bugs regarding zfs encryption
betaboon has quit [(Quit: WeeChat 1.9.1)]
<guillaum1>
andrewrk: because, apparently, the indirect librarie lookup do not inherit the rpath of the parent library.
<infinisil>
I should make a partition of like 1GB or so just for testing filesystems and such
betaboon has joined #nixos
<guillaum1>
andrewrk: (at least using the nix ld)
<guillaum1>
I think I'll write a long mail to the mailing list.
<Dezgeg>
/dev/loop* should work just as fine without reserving a partition
<andrewrk>
guillaum1, it should work for other distros though. So build it in nixos the nixos way, which will make it work, and additionally add the system lib paths for the other distros
pxc has joined #nixos
<andrewrk>
hard code /usr/lib /usr/local/lib /usr/lib/x86_64-linux-gnu etc
<guillaum1>
andrewrk: I tried to replace the nix ld by my system ld and it usually fails
<andrewrk>
oh I see, there is also the question of what dynamic linker to use
scribbler has joined #nixos
<betaboon>
infinisil: but running into this problem tells me that i should set "nixpkgs-overlays=/some/path/specific-expression.nix" to make it more explicitly visible what is happening here
<infinisil>
betaboon: Yeah
<guillaum1>
andrewrk: I'll write a long mail to the mailing list, the discussing will be less fragmented. Thank you for you time.
<infinisil>
Man, a disadvantage of using #!/usr/bin/env nix-shell is that you potentially have to download dependencies when running the script
<betaboon>
infinisil: lol. you would have thought that. just tried it and the following happened: "nixpkgs-overlay/default.nix’: Not a directory" xD
<infinisil>
betaboon: Being able to use files got changed recently
<andrewrk>
guillaum1, good luck, I will read the email. As the author of a compiler trying to get cross compilation done the best way possible I'm interested in this topic
<infinisil>
do you have an non-very-recent version?
erictapen has quit [(Read error: Connection reset by peer)]
<Unode>
hi all, I've enabled libinput as: https://gist.github.com/unode/e8a52c044dcde46ae9892d76cd1eecd5 but when inspecting /etc/X11/xorg.conf.d there is only a 10-evdev.conf and no 40-libinput.conf. I can see 40-libinput.conf in the at /nix/store/...-xf86-input-libinput-0.25.1/share/X11/xorg.conf.d
ryantrinkle has joined #nixos
iyzsong has quit [(Ping timeout: 260 seconds)]
<betaboon>
infinisil: on --readonly-mode. i would have expected if you run it once without readonly everything gets build, then run with readonly. never tried tho
<betaboon>
just recently found out that you can now use #! with nix-shell
<Unode>
Is this expected or should there be a symlink in /etc/X11/xorg.conf? I'm unsure if libinput is working correctly. The double finger scrolling feature seems to be working fine but I can't get the "Disable touchpad while typing" option of have any effect. It's enabled but nothing changes.
<infinisil>
Unode: The options description: "Whether to symlink the X server configuration under /etc/X11/xorg.conf"
<Unode>
lets see if that helps
chreekat has joined #nixos
<Unode>
I suspect the issue I'm having is that the keyboard is being loaded with evdev while the touchpad is with libinput.
dbmikus has joined #nixos
<Unode>
It's my understanding evdev should be disabled for proper libinput behavior.
<infinisil>
No idea about that
<disasm>
I set environment.variables.EDITOR = "nvim"; in configuration.nix but a new terminal still shows nano if I echo $EDITOR. I ran a `git grep` for nano in /etc/nixos and no matches, what am I missing?
<betaboon>
btw. does anyone have a working solution for a bigger mouse pointer for urxvt on hidpi machines ?
<infinisil>
Is libinput the new and better thing (tm)?
<Unode>
infinisil: thanks anyway
<Unode>
trying an X refresh to see if it helps
<infinisil>
disasm: did you relog?
<Unode>
infinisil: odd, libinput .conf still doesn't show up at /etc/X11/xorg.conf.d
<disasm>
infinisil: no, though a new terminal would do it
<disasm>
infinisil: same thing with relog
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 2 new commits to release-17.09: https://git.io/vd5OV
scribbler has quit [(Remote host closed the connection)]
scribbler has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] teto opened pull request #30584: msmtp: compiles with keyring support by default (master...msmtp) https://git.io/vd5s2
NixOS_GitHub has left #nixos []
<disasm>
so overriding it in zsh (what I was originally going to do) is the correct solution in this case :)
<Guanin>
is there a way to change the permissions and the group of /etc/shadow? I asked yesterday but had instable network, so I did not bother with it anymore. I am trying to setup gogs (something like gitlab) to use PAM authentication. Sadly, I can not login if /etc/shadow is not readable by the gogs user. The SETUID helper bin drops user privileges in that scenario, so I'd guess I can fix it with the SETGID bit
erasmas has joined #nixos
demeg0 has joined #nixos
<symphorien>
I don't know if it could interfere with it but systemd-tmfiles might help
<symphorien>
*systemd-tmpfiles
<niksnut>
Guanin: that sounds like a problem with how it uses PAM. pam_unix will use a setuid helper (unix_chkpwd) to check passwords
<niksnut>
messing with the ownership of /etc/shadow sounds like a bad idea
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vd5ZC
<NixOS_GitHub>
nixpkgs/master 1923cab Vincent Laporte: ocamlPackages: default to 4.04
NixOS_GitHub has left #nixos []
guillaum1 has quit [(Ping timeout: 252 seconds)]
demeg0 has quit [(Client Quit)]
<Guanin>
but as it does not change the group id, I'd argue that the most reasonable way is to: 1) Add SETGID to unix_chkpwd, 2) Add a group (e.g. 'shadow') 3) let unix_chkpwd and /etc/shadow be owned by that group
<Guanin>
I know that it weakens the security, as the gogs instance can now be used to bruteforce the password, but as PAM allows enforcing specific password complexities, this can be compensated for (In my opinion)
<Guanin>
the other approach would be to setup ldap, but I was not able to get it running properly and in my opinion, this might be overkill
<Dezgeg>
what other distro has shadow owned by non-root gid? how does this gogs pam integration work at all?
adfaure has joined #nixos
<disasm>
Guanin: gogs is doing this stupidly, I'd open a PR for them and tag it as a security issue...
<infinisil>
hmm, gogs looks interesting
<adfaure>
Hello everybody, I have a little question. I have to copy a set of clossure to many remote computer. I want to use the nix-copy-closure mechanisme. But I would like to use it on a pkgs.buildEnv. Some has already done this before, is it possible ? Thanks !
<Guanin>
well, this is not specificly recommended by gogs, so I'd think that it is mainly targeted for other types of authentication - in the end, PAM is also designed as authentication client against other services, so you could also implement ldap authentication with PAM
<Guanin>
disasm, so I'd think that it is mostly a problem of interaction between PAM itself, gogs, and mostly pam_unix
<disasm>
infinisil: gogs is cool, been using it for a bit, but this pam suggestion in their documentation to give gogs group read access to /etc/shadow bothers me. I recently switched to gitea though, check it out: https://github.com/NixOS/nixpkgs/pull/30528
<disasm>
Guanin: their documentation for PAM says: To configure this you just need to set the ‘PAM Service Name’ to a filename in /etc/pam.d/. If you want it to work with normal Linux passwords, the user running Gogs must have read access to /etc/shadow.
<Guanin>
I'm not bound to using gogs, so it is also a possibility to switch over to other services, as long as they provide a decent web interface
<disasm>
That's a problem imho
<Guanin>
disasm, oh, you are right - this is in fact pretty wrong (I think my approach with SETGID would be harmless in comparison, then...)
<disasm>
Guanin: gitea is a community fork of gogs. buncho fthe community got pissed the owner of gogs wasn't merging their features they PR'd.
<infinisil>
disasm: I agree
<infinisil>
That sounds nice
<disasm>
imho the logo looks cooler too :)
<Guanin>
disasm, thanks for the hint, I'll consider switching
<infinisil>
well then, everything is settled
<Guanin>
infinisil, not completely - I'm not sure whether it suits my usecase
leat has joined #nixos
<disasm>
Guanin: not sure that will fix your pam issue though
<infinisil>
i meant sarcasticly that the logo being better implies it's obviously the better solution :P
<Guanin>
infinisil, ah okay - sorry, I'm a bit slow with irony
hotfuzz has joined #nixos
<infinisil>
Can somebody tell me why the hell my samba password doesn't work anymore
hellrazor has quit [(Quit: WeeChat 1.9.1)]
<infinisil>
I bet restarting fixes it for whatever stupid reason
ssmike has quit [(Remote host closed the connection)]
hotfuzz_ has quit [(Ping timeout: 240 seconds)]
<infinisil>
YUP
<Guanin>
disasm, in the end, I'm also not bound to PAM at all. My usecase is just the following: I want to setup a handful of services (like ssh, some git server, maybe some services over nginx) that I want to make available to a number of people.
ssmike has joined #nixos
<infinisil>
what the hell
<infinisil>
Guanin: Do you need a git web interface?
riclima has joined #nixos
<Guanin>
I'd prefer to
jgertm has quit [(Ping timeout: 248 seconds)]
<infinisil>
how about gitlab?
csingley has quit [(Ping timeout: 258 seconds)]
<Guanin>
would be also fine, but does it solve my authentication problem? The point is that I don't want to add users on all that services every time some new person needs access to it...
<Guanin>
thus I was thinking about ldap, but as that seems an even bigger problem to get to work, I tried it with PAM - still failing
S0rin has quit [(Ping timeout: 252 seconds)]
<tilpner>
You could torture yourself^W^Whave fun with LDAP maybe?
<tilpner>
IIRC Gogs has LDAP integration, and Gitlab definitely does
<infinisil>
Heh, couldn't nix make LDAP easy though? Via modules and stuff?
<infinisil>
And gitlab has a ton of nixos options
ajp_ has joined #nixos
<Guanin>
infinisil, I really struggled setting it up - even with some help from here - never touched LDAP before, so I failed and searched for an easier option
__k__ has joined #nixos
<disasm>
Guanin: I may be attempting to package freeipa for nixos :)
<__k__>
hey, what is the difference between package names and attribute names?
<__k__>
and how come that the attribute names for nodejs have wildcards in them (8_x, etc.)? I thought nix would somehow assure that I always get the same version
<infinisil>
__k__: A package is a derivation, every derivation has a (non-empty) name, it appears in /nix/store/<hash>-<name>
<infinisil>
an attribute name is just the name of any attribute, e.g of x = { foo = "bar"; }, x has an attribute with the name "foo"
S0rin has joined #nixos
<Unode>
oh well, libinput is half functional now on NixOS. Synaptics+syndaemon seems functional as far as the driver supports your touchpad :/
<Unode>
thanks for the help infinisil
<infinisil>
__k__: Nix doesn't put any constraints on how packages are named, and sometimes it is required to keep multiple versions for compatibility, so we just use two different names "foo" and "foo_2" or so
<infinisil>
usually "foo2" actually
<__k__>
ah
riclima has quit [(Ping timeout: 248 seconds)]
<__k__>
so the "attribute name" in the package list on the nixos website are attributes of something?
<adfaure>
Hello everybody, I have a little question. I have to copy a set of clossure to many remote computer. I want to use the nix-copy-closure mechanisme but for an envirnoment, is this possible ?
<infinisil>
__k__: Ahh
<infinisil>
Yeah that's how you get to the derivations, these attribute names are something like packages = { packageA = derivation { name = "A"; ... }; packageB = derivation { name = "B"; ... }; }
drakonis has quit [(Read error: Connection reset by peer)]
<infinisil>
when you select an attribute x from the top-level, then you pretty much do packages.x
<infinisil>
(i simplified a bit here, but that's the gist of it)
<__k__>
I see
<__k__>
so how come that some attributes have wildcards?
<infinisil>
adfaure: Define environment
jb55 has joined #nixos
<infinisil>
__k__: For example? What do you mean by wildcard?
<__k__>
there is node-8_x
<adfaure>
infinisil: a defined list of package, that I create using pkgs.buildEnv
<__k__>
I mean, nodejs-8_x
<infinisil>
__k__: That just refers to the latest 8.x version
<infinisil>
it's literally just the letter "x"
<__k__>
seemingly
<__k__>
yes! :D
<__k__>
point is
<__k__>
I thought the main idea of nix was that I get the same packages every time I run it
<__k__>
but if nodejs-8_x doesn't point to one specific version, but the "latest" version
<srhb>
(given the same inputs)
<disasm>
__k__: you can do that by pinning to a commit in nixpkgs
<__k__>
I will probably get a new version of node
moet has joined #nixos
<__k__>
every time I run this after node 8 was updated
<moet>
how can i find out what maxJobs is set to on a nix system?
<srhb>
__k__: This will happen for essentially every package in nixpkgs. Most change versions when you move your channel.
<disasm>
__k__: what some people do is maintain their own fork of nixpkgs and cherry-pick in commits they want.
<moet>
nixos* system
<__k__>
hrm
<infinisil>
adfaure: I'll have to go for now, but have a look at the --query example section in the nix-store manpage
<adfaure>
infinisil: I will thanks for the pointer
<srhb>
__k__: So pin the packages you want to ensure never move (but you lose the binary caches)
simpson has left #nixos ["WeeChat 1.0.1"]
<__k__>
"given the same inputs"
<srhb>
moet: nixos-option nix.maxJobs
<moet>
nixos always seems to try to build with two jobs, because the cpu has two cores, but that uses too much memory and goes into swap hell
<srhb>
__k__: The name attribute name is not an input.
<__k__>
does this mean, "inputs" aren't the stuff I write in my default.nix, but something different?
<srhb>
__k__: Its value is.
adfaure has quit [(Quit: Page closed)]
<__k__>
ah
<__k__>
now it makes sense, hehe
<srhb>
__k__: Subtle but important distinction :-)
<moet>
i'll try setting NIX_BUILD_CORES
<__k__>
is this mentioned somehwere? can't remember, haha
<moet>
nodice..
<srhb>
moet: nix.buildCores :)
<__k__>
so what do I need in addition to my default.nix, if I want my dev environments to keep working? :\
<srhb>
__k__: As already said, you can pin a version of nixpkgs.
<srhb>
__k__: There are many ways to do so, one is let myFrozenNixpkgs = fetchFromGitHub { ... rev = somerevision ... }
<srhb>
__k__: Then use the attributes from there.
<__k__>
ah, so the value of my attribute doesn't change?
<srhb>
Exactly. or those attributes that you care about.
<__k__>
I see, I see...
<srhb>
__k__: packageOverrides is another way, overlays is yet another, or you can copy out some derivation at some version and import that...
<srhb>
Wealth of choice :)
<__k__>
lol
<__k__>
I'm but a n00blet in want of consistent builds, what's the simplest way xD
<srhb>
I think they are equally simple.
<moet>
srhb: ah, nixos-option is new to me! i thought the only way to examine the system was through nix-repl
<srhb>
__k__: (I don't remember what rev that is, it's just an example)
<srhb>
__k__: with that, oldpkgs.firefox will be firefox at that exact revision of nixpkgs.
reinzelmann has joined #nixos
<__k__>
thank you :)
<__k__>
but won't this get out of hand rather quickly?
<srhb>
__k__: I think so, yes.
<__k__>
:(
<srhb>
__k__: To me, reproducible builds does not mean "don't upgrade anything ever lol"
sigmundv has quit [(Ping timeout: 240 seconds)]
<__k__>
sure...
<srhb>
It means at any point in time I can pick a revision of the packages at SOME point in time and get the exact same result as I did back then.
<srhb>
__k__: I often end up pinning just some packages.
<__k__>
so you're basically run it like a regular package manager and if something breaks you start to "pin"?
<srhb>
__k__: And of course, the cost I pay is to have to manually update a lot of things.
<srhb>
__k__: If I don't have time to actually upgrade things to work with newer versions, yes.
<__k__>
I see...
<moet>
srhb: so maxJobs was 2 and buildCores was 1 .. my hardware-configuration.nix had set the default! thanks for helping me figure that out
<srhb>
moet: Welcome :)
<srhb>
__k__: ymmv but my role is mainly operations, so what I care about is that the prod environment uses the same nixpkgs revision as the dev and staging environments
fendor has quit [(Ping timeout: 240 seconds)]
csingley has joined #nixos
<srhb>
__k__: I hope that makes sense. :)
<__k__>
yes
<__k__>
I wanted to use it to setup my dev environments
<__k__>
I'm doing different projects, with different nodejs versions etc.
pxc has joined #nixos
<__k__>
and I hoped I could get everything preconfigured so another dev could simply checkout the code, run nix-shell and everything would be like on my machine
<srhb>
Absolutely you can.
<srhb>
But _you_ will now be responsible for deciding when to upgrade. You can't have it both ways. :)
<__k__>
:D
ylwghst has joined #nixos
goibhniu has quit [(Ping timeout: 255 seconds)]
<srhb>
Consider this: You either have a shell.nix that sets up the dev environment with the current version of nixpkgs, or you have one that sets up the dev environment with some version of (parts of) nixpkgs.
<srhb>
That's the only difference between the two methods, and it's like only a few lines either way.
<srhb>
Or you can make it configurable whether to do one or the other.
<srhb>
Again, wealth of choice.
<__k__>
hm
<__k__>
yes, I think getting the newest stuff with fixes is often okay
<__k__>
but sometimes it would be nice to have a quick fallback to something I know works
<srhb>
Important, even, in many cases :)
<__k__>
I had this many times
<__k__>
some dev sends me a link to a repo
<__k__>
tells me "run npm install"
<__k__>
and nothing works
<srhb>
Yeah :/
<srhb>
I think that's an excellent case for pinning.
Wizek has quit [(Quit: Connection closed for inactivity)]
<__k__>
because nobody really cares about semver
ma27 has joined #nixos
<__k__>
and then you start searching for the deps that blew up
pxc has quit [(Read error: Connection reset by peer)]
pxc has joined #nixos
<infinisil>
Lol
<infinisil>
I used home-manager systemd user services for some stuff on my server
<infinisil>
sometimes they stopped working, so i checked
<infinisil>
but everytime i checked they worked again
<infinisil>
Well, user services only run when the user is logged in, and I'm not loggin in when I don't ssh into the server..
<infinisil>
So when I check if it works through ssh, it always works because I'm using ssh..
<gchristensen>
lol
<infinisil>
I should really use nixos module services though, because it both makes more sense and doesn't have this problem
Drakonis[m] has quit [(Ping timeout: 240 seconds)]
<ldlework>
I really wish the compiler could give us more information about recursion problems
hl has quit [(Ping timeout: 240 seconds)]
siel has quit [(Ping timeout: 258 seconds)]
sphalerite has quit [(Ping timeout: 255 seconds)]
copumpkin has quit [(Ping timeout: 252 seconds)]
thematter[m] has quit [(Ping timeout: 240 seconds)]
kainospur[m] has quit [(Ping timeout: 240 seconds)]
AndersonTorres[m has quit [(Ping timeout: 240 seconds)]
FRidh[m] has quit [(Ping timeout: 240 seconds)]
seif[m] has quit [(Ping timeout: 240 seconds)]
scott2 has quit [(Ping timeout: 240 seconds)]
hedning[m] has quit [(Ping timeout: 240 seconds)]
StuK[m] has quit [(Ping timeout: 240 seconds)]
mhsjlw[m] has quit [(Ping timeout: 240 seconds)]
noctuid has quit [(Ping timeout: 240 seconds)]
Geeky[m] has quit [(Ping timeout: 240 seconds)]
Obscurity[m] has quit [(Ping timeout: 240 seconds)]
sargon[m] has quit [(Ping timeout: 240 seconds)]
codyopel has quit [(Ping timeout: 240 seconds)]
baconicsynergy[m has quit [(Ping timeout: 240 seconds)]
Naughtmare[m] has quit [(Ping timeout: 240 seconds)]
offlinehacker[m] has quit [(Ping timeout: 240 seconds)]
unlmtd has quit [(Ping timeout: 240 seconds)]
davidar has quit [(Ping timeout: 240 seconds)]
cornu[m] has quit [(Ping timeout: 240 seconds)]
Barnabas[m] has quit [(Ping timeout: 240 seconds)]
efx[m] has quit [(Ping timeout: 240 seconds)]
indefini has quit [(Ping timeout: 240 seconds)]
itorres has quit [(Ping timeout: 240 seconds)]
mith[m] has quit [(Ping timeout: 240 seconds)]
corngood has quit [(Ping timeout: 240 seconds)]
primeos[m] has quit [(Ping timeout: 240 seconds)]
jack[m] has quit [(Ping timeout: 240 seconds)]
ninegua[m] has quit [(Ping timeout: 240 seconds)]
ycy[m] has quit [(Ping timeout: 240 seconds)]
EuAndreh[m] has quit [(Ping timeout: 240 seconds)]
Li[m]1 has quit [(Ping timeout: 240 seconds)]
eqyiel[m] has quit [(Ping timeout: 240 seconds)]
M-fishy has quit [(Ping timeout: 240 seconds)]
wizzup[m] has quit [(Ping timeout: 240 seconds)]
rnhmjoj[m] has quit [(Ping timeout: 240 seconds)]
peterhoeg has quit [(Ping timeout: 240 seconds)]
rycee has quit [(Ping timeout: 240 seconds)]
pvn[m] has quit [(Ping timeout: 240 seconds)]
nixo[m] has quit [(Ping timeout: 240 seconds)]
puffnfresh has quit [(Ping timeout: 240 seconds)]
viaken[m] has quit [(Ping timeout: 240 seconds)]
pierrebeaucamp[m has quit [(Ping timeout: 240 seconds)]
herzmeister[m] has quit [(Ping timeout: 240 seconds)]
bendlas has quit [(Ping timeout: 246 seconds)]
fearlessKim[m] has quit [(Ping timeout: 246 seconds)]
revoltmedia[m] has quit [(Ping timeout: 246 seconds)]
apocolocyntos[m] has quit [(Ping timeout: 246 seconds)]
mpuppe[m] has quit [(Ping timeout: 246 seconds)]
ison[m] has quit [(Ping timeout: 246 seconds)]
mgdelacroix[m] has quit [(Ping timeout: 246 seconds)]
jlle[m] has quit [(Ping timeout: 246 seconds)]
nh2[m] has quit [(Ping timeout: 246 seconds)]
Sovereign_Bleak has quit [(Ping timeout: 246 seconds)]
bhipple[m] has quit [(Ping timeout: 246 seconds)]
admin[m] has quit [(Ping timeout: 246 seconds)]
JameySharp[m] has quit [(Ping timeout: 246 seconds)]
AsherGottlieb[m] has quit [(Ping timeout: 246 seconds)]
teh[m] has quit [(Ping timeout: 246 seconds)]
yochai[m] has quit [(Ping timeout: 246 seconds)]
AmineChikhaoui[m has quit [(Ping timeout: 246 seconds)]
voobscout[m] has quit [(Ping timeout: 246 seconds)]
Johnny44[m] has quit [(Ping timeout: 246 seconds)]
octalsrc[m] has quit [(Ping timeout: 246 seconds)]
berot3[m] has quit [(Ping timeout: 246 seconds)]
mtncoder[m] has quit [(Ping timeout: 246 seconds)]
hendrik[m] has quit [(Ping timeout: 246 seconds)]
equalunique[m] has quit [(Ping timeout: 246 seconds)]
regnat[m] has quit [(Ping timeout: 246 seconds)]
Kallegro[m] has quit [(Ping timeout: 246 seconds)]
necronian has quit [(Ping timeout: 246 seconds)]
spacekitteh[m] has quit [(Ping timeout: 246 seconds)]
<infinisil>
Ohh, how about a filter for the trace
freeman42x has quit [(Ping timeout: 255 seconds)]
akavel[m] has quit [(Ping timeout: 255 seconds)]
retrry[m] has quit [(Ping timeout: 255 seconds)]
Pneumaticat has quit [(Ping timeout: 255 seconds)]
r3mfKm[m] has quit [(Ping timeout: 255 seconds)]
Leo[m]2 has quit [(Ping timeout: 246 seconds)]
DIzFer[m] has quit [(Ping timeout: 246 seconds)]
Exee7uvo[m] has quit [(Ping timeout: 246 seconds)]
Vincenzo[m] has quit [(Ping timeout: 246 seconds)]
spawnthink[m] has quit [(Ping timeout: 246 seconds)]
reactormonk[m] has quit [(Ping timeout: 246 seconds)]
trikl[m] has quit [(Ping timeout: 246 seconds)]
Phyra[m] has quit [(Ping timeout: 246 seconds)]
thomad[m] has quit [(Ping timeout: 246 seconds)]
AllanDaemon[m] has quit [(Ping timeout: 246 seconds)]
tobim[m] has quit [(Ping timeout: 246 seconds)]
Khorne[m] has quit [(Ping timeout: 246 seconds)]
adisbladis[m] has quit [(Ping timeout: 246 seconds)]
Nobabs27[m] has quit [(Ping timeout: 246 seconds)]
lecorpsnoir[m] has quit [(Ping timeout: 246 seconds)]
dalaing has quit [(Ping timeout: 246 seconds)]
dylanjust[m] has quit [(Ping timeout: 246 seconds)]
AlanPearce[m] has quit [(Ping timeout: 246 seconds)]
bachp has quit [(Ping timeout: 246 seconds)]
Ralith has quit [(Ping timeout: 246 seconds)]
florianjacob has quit [(Ping timeout: 246 seconds)]
edef[m] has quit [(Ping timeout: 246 seconds)]
M-liberdiko has quit [(Ping timeout: 246 seconds)]
gudea[m] has quit [(Ping timeout: 252 seconds)]
WinterFox[m] has quit [(Ping timeout: 252 seconds)]
krawiec[m] has quit [(Ping timeout: 252 seconds)]
smbarte2[m] has quit [(Ping timeout: 252 seconds)]
Phil[m]1 has quit [(Ping timeout: 252 seconds)]
zigschots20[m] has quit [(Ping timeout: 252 seconds)]
sirius[m] has quit [(Ping timeout: 252 seconds)]
fgaz[m] has quit [(Ping timeout: 252 seconds)]
aniketd[m] has quit [(Ping timeout: 252 seconds)]
zoya-kosova[m] has quit [(Ping timeout: 252 seconds)]
peel[m] has quit [(Ping timeout: 252 seconds)]
mrdaak[m] has quit [(Ping timeout: 252 seconds)]
qrilka[m] has quit [(Ping timeout: 252 seconds)]
M-gst has quit [(Ping timeout: 252 seconds)]
moredhel1 has quit [(Ping timeout: 252 seconds)]
chominist[m] has quit [(Ping timeout: 252 seconds)]
NickHu has quit [(Ping timeout: 252 seconds)]
timclassic has quit [(Ping timeout: 252 seconds)]
magnap has quit [(Ping timeout: 252 seconds)]
onito[m] has quit [(Ping timeout: 252 seconds)]
dtz has quit [(Ping timeout: 252 seconds)]
TimePath has quit [(Ping timeout: 259 seconds)]
xurxo[m] has quit [(Ping timeout: 259 seconds)]
sudoreboot[m] has quit [(Ping timeout: 240 seconds)]
myklam[m] has quit [(Ping timeout: 264 seconds)]
etcinit[m] has quit [(Ping timeout: 264 seconds)]
AdamSlack[m] has quit [(Ping timeout: 264 seconds)]
Dezgeg[m] has quit [(Ping timeout: 264 seconds)]
aminech[m] has quit [(Ping timeout: 264 seconds)]
tokudan[m] has quit [(Ping timeout: 264 seconds)]
Oo[m] has quit [(Ping timeout: 264 seconds)]
bennofs[m] has quit [(Ping timeout: 264 seconds)]
musicmatze[m] has quit [(Ping timeout: 264 seconds)]
M-berdario has quit [(Ping timeout: 264 seconds)]
demyan[m] has quit [(Ping timeout: 264 seconds)]
wak-work has quit [(Ping timeout: 264 seconds)]
benkolera has quit [(Ping timeout: 264 seconds)]
Wysteriary[m] has quit [(Ping timeout: 264 seconds)]
aspiwack[m] has quit [(Ping timeout: 264 seconds)]
jyp[m] has quit [(Ping timeout: 264 seconds)]
olejorgenb[m] has quit [(Ping timeout: 264 seconds)]
Yaniel has quit [(Ping timeout: 264 seconds)]
nkpart[m] has quit [(Ping timeout: 246 seconds)]
<gchristensen>
your attempt at improving recursion debugging has broken the matrix
EB[m] has quit [(Ping timeout: 255 seconds)]
ipj[m] has quit [(Ping timeout: 255 seconds)]
abbafei[m] has quit [(Ping timeout: 255 seconds)]
icetan has quit [(Ping timeout: 255 seconds)]
jsv[m] has quit [(Ping timeout: 255 seconds)]
kevincox has quit [(Ping timeout: 255 seconds)]
kitten[m] has quit [(Ping timeout: 255 seconds)]
a123123123[m] has quit [(Ping timeout: 255 seconds)]
sk23[m] has quit [(Ping timeout: 255 seconds)]
matrixkrav has quit [(Ping timeout: 255 seconds)]
Elephant454[m] has quit [(Ping timeout: 255 seconds)]
malteof[m] has quit [(Ping timeout: 255 seconds)]
mankyKitty[m] has quit [(Ping timeout: 255 seconds)]
grahamc has quit [(Ping timeout: 255 seconds)]
pstn has quit [(Ping timeout: 255 seconds)]
dash has quit [(Ping timeout: 255 seconds)]
ArdaXi[m] has quit [(Ping timeout: 255 seconds)]
sziszi[m] has quit [(Ping timeout: 276 seconds)]
Manish[m] has quit [(Ping timeout: 276 seconds)]
wmertens[m] has quit [(Ping timeout: 276 seconds)]
trevorriles[m] has quit [(Ping timeout: 276 seconds)]
the_m4ur1[m] has quit [(Ping timeout: 276 seconds)]
tommyangelo[m] has quit [(Ping timeout: 276 seconds)]
danielrf has quit [(Ping timeout: 276 seconds)]
bdimcheff has quit [(Ping timeout: 255 seconds)]
<ldlework>
apparently
<infinisil>
Often times if you use --show-trace, it prints a whole bunch of files, and a single one of those is yours in a different folder, I want it to highlight that
dibblego[m] has quit [(Ping timeout: 276 seconds)]
<infinisil>
because that's the relevant one really
erictapen has quit [(Read error: Connection reset by peer)]
<infinisil>
Some shell command could probably do that
johnw has quit [(Ping timeout: 240 seconds)]
FRidh has joined #nixos
flyx has quit [(Ping timeout: 260 seconds)]
johnw has joined #nixos
flyx has joined #nixos
<infinisil>
Ohh, I just tried to reproduce the recursion thing to make such a command
<infinisil>
let f = x: f x; in f 1
<infinisil>
But this prints "error: stack overflow (possible infinite recursion)"
warbo has quit [(Ping timeout: 255 seconds)]
pie_ has joined #nixos
ylwghst has quit [(Quit: Lost terminal)]
infinisil has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
leat has quit [(Read error: No route to host)]
infinisil has joined #nixos
ylwghst has joined #nixos
phreedom has joined #nixos
siel has joined #nixos
<infinisil>
using nixops for both the local machine and a server together sucessfully :D hyper_ch
<infinisil>
and adisbladis was interested in this too i think
p4cman has quit [(Quit: Connection closed for inactivity)]
<riclima>
What's the convention for naming the Nix expression file on my project?
<riclima>
On the tutorial and Nix pills, for GNU Hello they call it "hello.nix", but in other places they call it "Default.nix"
<riclima>
Under a folder named after the project
ylwghst has quit [(Client Quit)]
<infinisil>
riclima: When you insert it into nixpkgs, just look what other packages in that category do
<riclima>
Right, sorry I mean for local development
<srhb>
riclima: Up to you, really. nix-build will auto execute default.nix, nix-shell will auto execute shell.nix
<srhb>
riclima: It's also useful for later extending into more files, since callPackage on the directory will use the default.nix
<srhb>
and packagefoo/packagefoo.nix looks ugly to me
<riclima>
Right
<riclima>
So, on my root directory, default.nix?
<infinisil>
I use <name>.nix if it's just a small thing, and split it into multiple files under <name>/<files>.nix when i need to split it a bit
<riclima>
OK got it, so I guess I'll use shell.nix for local development
<riclima>
And when I'm ready to package it for deployment elsewhere
<riclima>
I can make a separate project with the 'projectname/default.nix'?
<infinisil>
what filestructure you use is entirely up to you, nix doesn't constrain you in any way
<riclima>
Alright, cheers
<infinisil>
You don't even need .nix extensions :P
<srhb>
riclima: If you dislike that, you are welcome to follow my Superior Sense of Aesthetics and use default.nix and shell.nix. (Not endorsed by NixOS as an organization)
<srhb>
:-)
<ldlework>
Is there any difference at all between `foo = import ./foo` and `foo = import (fetchFromGithub { ... })` ?
<ldlework>
I have a file on github and the same file locally. When I use the natural import my stuff compiles. When I use fetch from github I get infinite recursion. They are the same exact file.
<srhb>
Short of defining fetchFromGithub in foo and then scoping it, I don't see it.
<infinisil>
ldlework: fetchFromGitHub requires pkgs to be evaluated
<infinisil>
which means all overlays
<infinisil>
which means the config
<ldlework>
I see
<infinisil>
which means you have to use (import <nixpkgs> {}).fetchFromGitHub if you need it for the config
<riclima>
srhb haha you dropped this though: TM
<ldlework>
infinisil it says, attribute ‘fetchFromGithub’ missing, at /Users/dustinlacewell/.config/nixpkgs/plugins.nix:6:25
<infinisil>
GitHub
<srhb>
riclima: Woops!
leat has joined #nixos
<ldlework>
doh
<riclima>
Also, someone linked me the other day to a guide for using Nix in conjunction with Python projects but I lost it
<riclima>
Does anyone know what I'm talking about?
<infinisil>
Well that's something, why is the encoding messed up though
<infinisil>
I mean these Â's all over the place
<gchristensen>
nixpkgs docs on the website get rendered and updated every time the nixos-17.09 channel updates, if that is helpful
p4cman has joined #nixos
<LnL>
not sure what's up with the encoding, might be an issue on master
<riclima>
srhb Yeah, reading it now. It's clarifying a lot of confusion
<infinisil>
Meh, I feel like there should be a page with all the doc stuff for unstable
<dtzWill>
andrewrk: hmm it's in my unstable channel
<LnL>
infinisil: I agree :)
<dtzWill>
which I didn't update today, err
<gchristensen>
perhaps a PR to nixos-homepage is in order
<infinisil>
I'm afraid of the web
<gchristensen>
(almost) no web required, just (mostly) Makefile
<srhb>
master renders fine for me locally.
<srhb>
Must be some serving weirdness.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] earldouglas opened pull request #30588: nixos/jenkins: add an option for the package (master...jenkins-pkg) https://git.io/vd5wR
NixOS_GitHub has left #nixos []
FRidh has joined #nixos
earldouglas has joined #nixos
ma27 has joined #nixos
<andrewrk>
dtzWill, isn't there some URL you can curl to get the current unstable version?
pikajude has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<andrewrk>
cool, I just did another update and now I'm also on 00e56fbbee which has llvm 5
<MichaelRaskin>
Did you get around to _collect_ both datapoints?
pikajude has joined #nixos
<MichaelRaskin>
I guess I could quickly write you a shell script for generating a gnuplot graph and JSON for your fancy JS-only thing.
<dtzWill>
andrewrk: hooray! And I just realized that a commit date of 13days ago doesn't mean what I was using it to mean xD. Awesome that it just-happened-to-be-updated in time
<andrewrk>
dtzWill, oh, yeah, if you look at the release date on the page you linked, it's last night hours after I updated
<andrewrk>
ha
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vd5rS
<NixOS_GitHub>
nixpkgs/master b17ec54 gnidorah: pythonPackages.fontconfig: init at 0.5.1
<NixOS_GitHub>
nix/master c7af84c Shea Levy: nix-shell: Fix file name resolution in shebangs
NixOS_GitHub has left #nixos []
MichaelRaskin has joined #nixos
<srhb>
pikajude: Usually nixpkgs/lib :)
<pikajude>
ah, ok
ylwghst has joined #nixos
<pikajude>
the way builtins.filterSource works is so confusing to me
ma27 has joined #nixos
<pikajude>
it only descends into a directory if the directory passes the filter
stanibanani has quit [(Ping timeout: 246 seconds)]
<pikajude>
meaning if you use sourceFilesBySuffices, you do only get source files with the right suffix but then you also get a bunch of empty directories
<pikajude>
maybe there should be another step to filter out empty directories :/
FRidh has quit [(Ping timeout: 240 seconds)]
<pikajude>
the way it operates should really be a lot more like `find . | grep 'my-suffix$'`
zarel has joined #nixos
scribbler has quit [(Remote host closed the connection)]
<disasm>
ylwghst: yeah, that'll be the old version, and there's some security issues without setting capabilities, but the stuff Mic92 and I were working on should be backported to stable.
<ylwghst>
disasm: ok ill try it
<ylwghst>
disasm: should I add my user into group sway?
<ylwghst>
disasm: I don't understand exactly what security.wrappers.sway does
<ylwghst>
hm
<ylwghst>
i see
<ylwghst>
only root or users in sway group can start sway right?
markus1199 has quit [(Ping timeout: 258 seconds)]
markus1189 has joined #nixos
Alling has joined #nixos
MP2E has joined #nixos
<CrazedProgrammer>
disasm: awesome, any chance of making it into a module? :)
newguy has quit [(Ping timeout: 260 seconds)]
<Alling>
Yo guys! Trying to download and build mitmproxy (Python package) but curl returns 404 when it tries pypi.org/.../mitmproxy-2.0.2.tar.gz etc. Ironically, when I visit any other package, even one that doesn't exist, on Pypi, I get a green padlock and "Python Software Foundation" CA, but mitmproxy @ Pypi = no padlock.
<disasm>
CrazedProgrammer: regarding?
<CrazedProgrammer>
sway
<Alling>
So basically, this fails: src = fetchPypi { inherit pname version; sha256 = "..."; }
<CrazedProgrammer>
so you can do xserver.(or wayland).windowManagers.sway.enable = true;
<Alling>
MichaelRaskin: From my complaints you should have assumed that I was braindead. o_o
<ylwghst>
disasm: cant figure what
zarel has quit [(Quit: Leaving)]
zarel has joined #nixos
<MichaelRaskin>
Alling: braindead people generally have horribly low typing speed. It is rumored that other modes of communication are also impaired by that condition.
dhess has quit [(Ping timeout: 246 seconds)]
<gchristensen>
>.>
<gchristensen>
kragniz: "xxxx purchased your stickers!" :)
<Alling>
Well, what can I say. Worked like a charm.
jb55 has quit [(Ping timeout: 264 seconds)]
<disasm>
ylwghst: no you don't want to add yourself to the group. That group is used to isolate capabilities so other users on the system can't mess with sway.
noobly has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vd57j
<NixOS_GitHub>
nixpkgs/master 9a84b52 Nikolay Amiantov: openra: 20161019 -> 20171014...
drakonis has quit [(Read error: Connection reset by peer)]
<kragniz>
gchristensen: I ordered 500 from a uk supplier, since it seemed like stickermule wouldn't deliver them before the conference
<gchristensen>
nice :)
<gchristensen>
ok
<gchristensen>
how much?
<kragniz>
113.85 gbp
<gchristensen>
pretty good
<gchristensen>
will you be at nixcon or no? I'd love to get a few of those
gilligan_ has joined #nixos
<kragniz>
nah, I'm at freenode.live the same weekend
<kragniz>
I'll have some left over if you're around for fosdem though
riclima has quit [(Quit: riclima)]
<kragniz>
or 34c3
<gchristensen>
unfortunately not
<gchristensen>
it is okay :)
johnsonav has joined #nixos
riclima has joined #nixos
riclima has quit [(Client Quit)]
riclima has joined #nixos
ylwghst has quit [(Quit: leaving)]
ylwghst has joined #nixos
Ivanych has quit [(Ping timeout: 240 seconds)]
riclima has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #30591: musl: 1.1.16 -> 1.1.17, build with stack protector (master...update/musl-1.1.17) https://git.io/vd5p5
NixOS_GitHub has left #nixos []
steshaw has quit [(Quit: Connection closed for inactivity)]
kiloreux has quit [(Ping timeout: 240 seconds)]
kiloreux__ has quit [(Ping timeout: 252 seconds)]
ylwghst has quit [(Quit: Lost terminal)]
grumble has quit [(Quit: grumble)]
grumble has joined #nixos
kp__ has joined #nixos
kp__ has quit [(Client Quit)]
kp__ has joined #nixos
JosW has quit [(Quit: Konversation terminated!)]
<joepie91>
gchristensen: kragniz: future recommendation for sticker printing, if there's somebody involved who is in NL; I have very good experiences with drukwerkdeal.nl
<joepie91>
just the standard vinyl opaque stickers
<joepie91>
(they give shipping time guarantees, have an expedited option, and the stickers are just generally very high quality, at least the type I got)
<kragniz>
nice
<joepie91>
also, break lines :P
<kragniz>
I went with somewhere in the same city I live in in the UK
slyfox_ is now known as slyfox
<joepie91>
yeah, it's no good if you're not in NL
<joepie91>
just as a future recommendation :)
<joepie91>
I don't think they even ship internationally anyway
jcarr has joined #nixos
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
bennofs has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 2 new commits to master: https://git.io/vddvC
<NixOS_GitHub>
nixpkgs/master b28bd2a Matthew Justin Bauer: Update CODEOWNERS to use darwin-maintainers team...
<NixOS_GitHub>
[nixpkgs] Nadrieril opened pull request #30594: Update firefox.syncserver and its dependencies (master...update-ffsync) https://git.io/vddIh
NixOS_GitHub has left #nixos []
sphalerite has joined #nixos
<sphalerite>
All these people talking about Halloween events...
<sphalerite>
Screw Halloween, nixcon is better :D
ericsagnes has joined #nixos
stanibanani1 has joined #nixos
<avn>
sphalerite: will you go? ;)
riclima has joined #nixos
nixo[m] has joined #nixos
cornu[m] has joined #nixos
unlmtd has joined #nixos
dtz has joined #nixos
nkpart[m] has joined #nixos
spawnthink[m] has joined #nixos
jyp[m] has joined #nixos
Phyra[m] has joined #nixos
bdimcheff has joined #nixos
TimePath has joined #nixos
baconicsynergy[m has joined #nixos
viaken[m] has joined #nixos
moredhel1 has joined #nixos
regnat[m] has joined #nixos
mankyKitty[m] has joined #nixos
hl has joined #nixos
sirius[m] has joined #nixos
primeos[m] has joined #nixos
berot3[m] has joined #nixos
aspiwack[m] has joined #nixos
peterhoeg has joined #nixos
magnap has joined #nixos
freeman42x has joined #nixos
a123123123[m] has joined #nixos
bachp has joined #nixos
NickHu has joined #nixos
hendrik[m]1 has joined #nixos
davidar has joined #nixos
timclassic has joined #nixos
mith[m] has joined #nixos
zoya-kosova[m] has joined #nixos
the_m4ur1[m] has joined #nixos
Nobabs27[m] has joined #nixos
kitten[m] has joined #nixos
Naughtmare[m] has joined #nixos
wak-work has joined #nixos
M-liberdiko has joined #nixos
Oo[m] has joined #nixos
peel[m] has joined #nixos
rycee has joined #nixos
puffnfresh has joined #nixos
ArdaXi[m] has joined #nixos
octalsrc[m] has joined #nixos
sudoreboot[m] has joined #nixos
teh[m] has joined #nixos
matrixkrav has joined #nixos
chominist[m] has joined #nixos
olejorgenb[m] has joined #nixos
copumpkin has joined #nixos
Li[m]1 has joined #nixos
efx[m] has joined #nixos
itorres has joined #nixos
trikl[m] has joined #nixos
Elephant454[m] has joined #nixos
Exee7uvo[m] has joined #nixos
ipj[m] has joined #nixos
Geeky[m] has joined #nixos
mgdelacroix[m] has joined #nixos
Johnny44[m] has joined #nixos
tokudan[m] has joined #nixos
reactormonk[m] has joined #nixos
herzmeister[m] has joined #nixos
nh2[m] has joined #nixos
kevincox has joined #nixos
FRidh[m] has joined #nixos
AlanPearce[m] has joined #nixos
myklam[m] has joined #nixos
danielrf has joined #nixos
lecorpsnoir[m] has joined #nixos
qrilka[m] has joined #nixos
abbafei[m] has joined #nixos
thematter[m] has joined #nixos
Wysteriary[m] has joined #nixos
sargon[m] has joined #nixos
AllanDaemon[m] has joined #nixos
M-gst has joined #nixos
spacekitteh[m] has joined #nixos
florianjacob has joined #nixos
necronian has joined #nixos
joehh has quit [(Ping timeout: 240 seconds)]
aminech[m] has joined #nixos
offlinehacker[m] has joined #nixos
Obscurity[m] has joined #nixos
edef[m] has joined #nixos
retrry[m] has joined #nixos
pstn has joined #nixos
benkolera has joined #nixos
wmertens[m] has joined #nixos
akavel[m] has joined #nixos
codyopel has joined #nixos
grahamc has joined #nixos
bhipple[m] has joined #nixos
krawiec[m] has joined #nixos
bennofs[m] has joined #nixos
indefini has joined #nixos
pvn[m] has joined #nixos
WinterFox[m] has joined #nixos
revoltmedia[m] has joined #nixos
yochai[m] has joined #nixos
aniketd[m] has joined #nixos
AmineChikhaoui[m has joined #nixos
jsv[m] has joined #nixos
Sovereign_Bleak has joined #nixos
equalunique[m] has joined #nixos
Yaniel has joined #nixos
sk23[m] has joined #nixos
pierrebeaucamp[m has joined #nixos
onito[m] has joined #nixos
adisbladis[m] has joined #nixos
Dezgeg[m] has joined #nixos
ycy[m] has joined #nixos
Kallegro[m] has joined #nixos
Pneumaticat has joined #nixos
admin[m] has joined #nixos
AndersonTorres[m has joined #nixos
dash has joined #nixos
voobscout[m] has joined #nixos
trevorriles[m] has joined #nixos
mpuppe[m] has joined #nixos
seif[m] has joined #nixos
fgaz[m] has joined #nixos
Phil[m]1 has joined #nixos
mtncoder[m] has joined #nixos
malteof[m] has joined #nixos
DIzFer[m] has joined #nixos
scott1 has joined #nixos
Drakonis[m] has joined #nixos
musicmatze[m] has joined #nixos
kainospur[m] has joined #nixos
bendlas has joined #nixos
apocolocyntos[m] has joined #nixos
M-berdario has joined #nixos
tommyangelo[m] has joined #nixos
AdamSlack[m] has joined #nixos
Leo[m]1 has joined #nixos
Barnabas[m] has joined #nixos
dibblego[m] has joined #nixos
hedning[m] has joined #nixos
dalaing has joined #nixos
EuAndreh[m] has joined #nixos
dylanjust[m] has joined #nixos
demyan[m] has joined #nixos
r3mfKm[m] has joined #nixos
Vincenzo[m] has joined #nixos
noctuid has joined #nixos
wizzup[m] has joined #nixos
jack[m] has joined #nixos
stanibanani has quit [(Ping timeout: 246 seconds)]
rnhmjoj[m] has joined #nixos
StuK[m] has joined #nixos
Manish[m] has joined #nixos
Khorne[m] has joined #nixos
EB[m] has joined #nixos
fearlessKim[m] has joined #nixos
sziszi[m] has joined #nixos
corngood has joined #nixos
eqyiel[m] has joined #nixos
icetan has joined #nixos
etcinit[m] has joined #nixos
M-fishy has joined #nixos
mrdaak[m] has joined #nixos
tobim[m] has joined #nixos
ninegua[m] has joined #nixos
ison[m] has joined #nixos
AsherGottlieb[m] has joined #nixos
maralorn[m] has joined #nixos
mhsjlw[m] has joined #nixos
thomad[m] has joined #nixos
jlle[m] has joined #nixos
smbarte2[m] has joined #nixos
JameySharp[m] has joined #nixos
gudea[m] has joined #nixos
xurxo[m] has joined #nixos
<sphalerite>
Of course
<riclima>
Has anyone here packaged a Django app with Nix and deployed to a server using Phusion Passenger?
stanibanani1 has quit [(Ping timeout: 248 seconds)]
p4cman has quit [(Quit: Connection closed for inactivity)]
<iqubic>
Why does EXWM make a new init file for Emacs?
hiratara has joined #nixos
Ridout has joined #nixos
ris has joined #nixos
steshaw has joined #nixos
justin-sleep has left #nixos ["WeeChat 1.9.1"]
riclima has quit [(Quit: riclima)]
pie_ has quit [(Ping timeout: 246 seconds)]
jb55 has quit [(Ping timeout: 246 seconds)]
pie_ has joined #nixos
jcarr has joined #nixos
riclima has joined #nixos
jtojnar has joined #nixos
guest1230 has joined #nixos
<guest1230>
hi, is there a way to concat something with a potentially unset list (e.g. to add a patch to derivation)?
<guest1230>
`foo.overrideDerivation (super: { patches = super.patches ++ [ ./foo.patch ]; })` works only if `patches` is set for derivation i'm trying to override
<MichaelRaskin>
(x.patches or []) ++
<guest1230>
MichaelRaskin: thank you a lot!
mbrgm has quit [(Ping timeout: 248 seconds)]
jcarr has quit [(Remote host closed the connection)]
mbrgm has joined #nixos
guest1230 has quit [(Client Quit)]
moet has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] cransom opened pull request #30595: kisslicer: init at 1.6.2 (master...kisslicer) https://git.io/vddYL
NixOS_GitHub has left #nixos []
jb55 has joined #nixos
<Leo`>
Is it possible to write a derivation that does not have a build system at all, but still has propagatedBuildInputs?
<Leo`>
At first I had only a fetchFromGitHub at the toplevel of my package, which was fine, but I cannot add propagatedBuildInputs to that...
<MichaelRaskin>
overrideDerivation?
<Leo`>
I think the overriden thing must still first evaluation to a derivation right?
<Leo`>
I don't think it's the case if my package just contains a fetch source call.
<MichaelRaskin>
fetchers produce derivations
<MichaelRaskin>
They even have builders.
<MichaelRaskin>
Actually, you might want just to use //, as you don't want to alter the process of fetching.
<Leo`>
Interesting.
<Leo`>
So just adding a propagatedBuildInput to the result of a fetcher should work?
<MichaelRaskin>
Yes.
<Leo`>
Allright let's try that.
<MichaelRaskin>
Not sure what will happen if you use the result as src, but if you use it as a buildInput, it should work just fine.
<Leo`>
The goal is to use it in a NixOS module that defines a service.
<Leo`>
To be more precise: the package fetches a Python server program that does not need any kind of building but requires a lot of Python packages.
<Leo`>
And I need them to be present in the environment when the service is run.
<Leo`>
So I though adding them to propagatedBuildInputs would be enough... But I might be wrong.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee pushed 1 new commit to master: https://git.io/vddO6
<NixOS_GitHub>
nixpkgs/master aae32e1 James Earl Douglas: nixos/jenkins: add an option for the package...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee closed pull request #30588: nixos/jenkins: add an option for the package (master...jenkins-pkg) https://git.io/vd5wR
NixOS_GitHub has left #nixos []
<Leo`>
Ok nope that does not work lol.
<Leo`>
Any idea of how I can make the service have the Python packages in env?
joehh has joined #nixos
<MichaelRaskin>
I have a feeling that packaging it as a Python package is a better idea.
dbmikus has quit [(Ping timeout: 240 seconds)]
<Leo`>
Mh.
<Leo`>
Maybe...
dieggsy has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vdd3Z
<Leo`>
Ah there's something like python.buildEnv or python.withPackages.
<Leo`>
This seems to be what I want.
erasmas has quit [(Quit: leaving)]
markus1199 has joined #nixos
hamishmack has joined #nixos
kp__ has quit [(Quit: WeeChat 1.9.1)]
markus1189 has quit [(Ping timeout: 246 seconds)]
nh2 has quit [(Ping timeout: 240 seconds)]
hexamod has joined #nixos
riclima has quit [(Quit: riclima)]
riclima has joined #nixos
riclima has quit [(Client Quit)]
cement has quit [(Ping timeout: 248 seconds)]
thc202 has quit [(Ping timeout: 248 seconds)]
orivej has quit [(Ping timeout: 255 seconds)]
MP2E has quit [(Remote host closed the connection)]
nh2 has joined #nixos
Nobabs27 has joined #nixos
<pie_>
so im trying to use chicken scheme
<pie_>
*sigh* so im trying to have egg2nix build qt-light but its complaining about easyffi whereas it should see it fine... https://pastebin.com/raw/bnU2fRaX , here i am loading easyffi: https://pastebin.com/Qgqfybvn so that definitely works , any ideas?