<{^_^}>
[nixpkgs] @carlosdagos opened pull request #44384 → tldr: add support for darwin → https://git.io/fN6FV
hakujin3 has joined #nixos
igo95862_ has joined #nixos
v0|d has joined #nixos
igo95862 has quit [Ping timeout: 248 seconds]
igo95862_ is now known as igo95862
<v0|d>
hello, I have this FHSUserEnv for a while, now it needs python3 w/ pyusb package. I did add pkgs.python3Full and pkgs.pythonPackages.pyusb to targetPkgs yet python3 says no pyusb. Not a python person I'm afraid. any ideas?
<symphorien>
Did you try python.withPackages(ps: with ps; [pyusb]) ?
worldofpeace has quit [Quit: worldofpeace]
<v0|d>
symphorien: error: cannot convert a function to JSON
<v0|d>
<clever>
v0|d: wrap it with ( and )
<symphorien>
Wrap it in extra pare s ?
<symphorien>
*parens
hamishmack has quit [Ping timeout: 260 seconds]
worldofpeace has joined #nixos
<v0|d>
Ok, it did work. Thnx clever & symphorien.
Fare has joined #nixos
ng0 has quit [Quit: Alexa, when is the end of world?]
thc202 has quit [Ping timeout: 265 seconds]
Fare has quit [Ping timeout: 244 seconds]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fN6Nc
patrl has quit [Ping timeout: 240 seconds]
hakujin3 has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @snaar opened pull request #44385 → run-scaled: init at 2018-06-03 → https://git.io/fN6Av
igo95862 has quit [Quit: igo95862]
igo95862 has joined #nixos
hakujin3 has joined #nixos
<kalbasit>
I'm following the NixOPS simple starter https://nixos.org/nixops/ I'm getting an error when I run `nixops deploy -d simple`: `error: The option `services.httpd.adminAddr' is used but not defined.`. first time trying nixops, how to debug this error?
hakujin3 has quit [Ping timeout: 265 seconds]
rouma7 has quit [Ping timeout: 244 seconds]
<srk>
kalbasit: it means something is trying to use that option but you didn't provide it
<srk>
(means adminAddr is required)
hakujin3 has joined #nixos
<kalbasit>
I see, that's odd considering I copied/pasted from the nixops page. Maybe because I'm using nixpkgs at master
<clever>
and thats more of a nixos issue, enabling httpd requires you to also set an adminAddr
<kalbasit>
oh nice
<clever>
but id recomend nginx over httpd
<kalbasit>
clever: oh I'm just learning nixops, not using httpd :)
<clever>
removing httpd.enable should also solve the error
rouma7 has joined #nixos
<kalbasit>
I added an email, it looks to be working
<kalbasit>
that's great
sigmundv has quit [Ping timeout: 264 seconds]
ericsagnes has joined #nixos
johnw has joined #nixos
<kalbasit>
clever: where is the state stored? For instance if I do `nixops create -d ec2_deployment ...`, how can I send the state to my coworkers so they can access the state and make changes?
<clever>
kalbasit: ~/.nixops is the nixops state
<clever>
but any virtualbox images it makes will exist within the normal virtualbox paths
<kalbasit>
clever: I'm trying to use it to create EC2 instances
<kalbasit>
and I need to store the state in some repo where we can all nixops ...
<srk>
^^
<kalbasit>
srk: oh, let me check that out :)
<clever>
kalbasit: its generally recomended to just have a central ec2 instance you run nixops on and keep the state in
<srk>
it instructs nixops to store state in separate file which can be encrypted with git-crypt
<srk>
also pins nixpkgs and nixops to specific version
<kalbasit>
clever: that might work, well until the machine loses a disk or something :) I like git controlled stuff
<kalbasit>
srk: nice! I hate git-crypt BTW because I rely heavily on git-worktree and it does not work with git-crypt. I use keybase for all encrypted repos
<clever>
kalbasit: one machine i'm working on uses tarsnap to backup the state file at regular intervals
<{^_^}>
[nixpkgs] @srdqty opened pull request #44386 → mlton: refactor and adds mlton20180207Binary mlton20180207 mltonHEAD → https://git.io/fN6p9
Dedalo has joined #nixos
Dedalo has left #nixos [#nixos]
lassulus has quit [Ping timeout: 256 seconds]
lassulus_ is now known as lassulus
djtyml has joined #nixos
hakujin3 has quit [Ping timeout: 260 seconds]
<iqubic>
Is there a nix expression language function documentation online I can read, and see all the function we have avalible?
<dhess>
ugh, why does atlas-3.10.3 keep rebuilding? It takes forever :(
djtyml has quit [Remote host closed the connection]
sir_guy_carleton has joined #nixos
sam__ has joined #nixos
phreedom has quit [Ping timeout: 250 seconds]
phreedom has joined #nixos
<joepie91>
iqubic: not yet
fresheyeball has quit [Quit: WeeChat 2.0]
<iqubic>
joepie91: Is there one in the works?
<iqubic>
Something like hoogle for haskell.
<joepie91>
iqubic: iirc gchristensen was working on at least *writing* documentation for them
<joepie91>
like, the problem with there not being such documentation isn't so much the lack of tooling/search, but rather that no written documentation exists for many of the functions in the first place
<iqubic>
I don't really know how to write a nix derivation to compile that.
garbas has quit [Quit: WeeChat 2.1]
<iqubic>
And specifically I want to also have "services.xserver.windowMnager.exwm.enable" set to true. Or I at least want to have some way to tell X to start emacs.
pie_ has joined #nixos
pie__ has quit [Remote host closed the connection]
johnw has joined #nixos
rschm has joined #nixos
<teto1>
is there like a public recording of nix-index results on master ? (asking because nix-index fails locally with error: fetching the file listing for store path '/nix/store/53r9szszr2fh4mgixyaixi5f957dc1y1-happy-1.19.5' failed)
johnw has quit [Ping timeout: 260 seconds]
<teto1>
My endgoal is to be able to use lcc binary from clang but nix-locate doesn't find the llc binary in my nixos-unstable nixpkgs (it could find that binary in the outdated index though :/)
<samueldr>
not that I know of, but {^_^} has nix-locate functionality
<samueldr>
,locate bin lcc
<samueldr>
,locate
<{^_^}>
Use ,locate <filename> to find packages containing such a file. Powered by nix-index (local installation recommended).
<{^_^}>
Couldn't find any packages
<samueldr>
oh :/
<iqubic>
So how long will it be until emacs 26 is added to NixOS stable?
<iqubic>
And when can I expect to run EXWM with emacs 26?
<{^_^}>
Found in packages: llvm_4, emscriptenfastcomp
<teto1>
samueldr: ty. where can we see a list of ,<commands> ,help ?
<teto1>
,help
<samueldr>
,help
<{^_^}>
Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<{^_^}>
Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<iqubic>
If you need line numbers, I can put this on a different site.
<samueldr>
ah, right, so line 1, replace with {...}:
<samueldr>
I wanted you to focus on the lines inside the attribute set, so skipped making the parameters "right"
<samueldr>
sorry
<samueldr>
(you know how configuration.nix is a basically a function returning an attribute set, right?)
<iqubic>
Alright, well, that works.
djtyml has joined #nixos
<iqubic>
And it is building emacs26.
<iqubic>
Overlays are cool.
<samueldr>
> ({}: {}) {config = "";}
<{^_^}>
anonymous function at (string):164:2 called with unexpected argument 'config', at (string):164:1
<samueldr>
> ({...}: {}) {config = "";}
<{^_^}>
{ }
<iqubic>
And it now has to re-fetch exwm, and its deps.
<samueldr>
good sign since it fetches exwm and deps
<iqubic>
How do I check if it downloaded emacs 26?
<samueldr>
not sure what's the best way, sorry
<iqubic>
Oh... That's fine.
<samueldr>
once the system is rebuilt and switched/booted, you'll probably be able to do something like emacs --version (if it answers to --version) or readlink -f $(which emacs)
<samueldr>
that is, assuming the emacs in your PATH is from the system profile
<samueldr>
or is it because of exwm being enabled that it is available in your PATH?
<iqubic>
The only way I have ever installed emacs on this machine is by setting "services.xserver.windowManage.exwm.enable" to true and letting NixOS pull down emacs.
<samueldr>
if `which emacs` is `/run/current-system/sw/bin/emacs` it's been installed in the system, if the overlay worked properly it would have been emacs 26 :/
<samueldr>
ah right
<iqubic>
`which emacs` is `/run/current-system/sw/bin/emacs`
<iqubic>
So...
<samueldr>
:/ sorry, maybe I got something wrong with the overlay
<samueldr>
and sorry, I got to go
tzemanovic has quit []
<iqubic>
I think the issue is that the exwm.nix file is calling pkgs.emacsWithPackages, which is defaulting to emacs version 25.
tzemanovic has joined #nixos
<iqubic>
I wish there was a way to have nix expressions echo values to the console.
<djtyml>
hi all~ I would like to ask a question here... How to add curl library into my default.nix that import reflex-dom that import its own nixpkgs which don't have curl?
<djtyml>
configure: error: curl libraries not found, so curl package cannot be built
<Myrl-saki>
Imagine NixOS in a Xeon Phi.
Fare has joined #nixos
<iqubic>
djtyml: Change the second line of you default.nix to this: (import ./reflex-platform {}).project ({ pkgs, curl, ... }: {
<iqubic>
Note, that it might not work.
<djtyml>
:iqubic I see. Let me try this. Thanks.
Mateon3 has joined #nixos
aarvar has quit [Quit: Leaving.]
aarvar has joined #nixos
Mateon1 has quit [Ping timeout: 268 seconds]
Mateon3 is now known as Mateon1
<djtyml>
:iqubic No. No luck. error: anonymous function at /home/demo/test/myproject/default.nix:2:40 called without required argument 'curl', at /home/demo/test/myproject/reflex-platform/default.nix:746:42
dbmikus has quit [Quit: WeeChat 2.2]
<Myrl-saki>
djtyml: Try pkgs.curl
kyren has joined #nixos
<Myrl-saki>
Oh wait.
<djtyml>
:Myrl-saki error: duplicate formal function argument 'pkgs' at /home/demo/test/myproject/default.nix:2:42
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<djtyml>
:Myrl-saki maybe because I didn't import nixpkgs in my default.nix.. And I found it has a shelltooloverride in ./project. maybe this work.
<Myrl-saki>
these paths will be fetched (1969.24 MiB download, 9671.16 MiB unpacked):
<Myrl-saki>
nice.
<ekleog>
pretty impressive
<Myrl-saki>
(nixos-rebuild)
<ekleog>
oh, mass-rebuild I guess, then? :)
<Myrl-saki>
ekleog: Yep, moved my target.
<Myrl-saki>
(Still 18.03 to 18.03 though)
<Myrl-saki>
18.09 when
igo95862 has quit [Remote host closed the connection]
igo95862 has joined #nixos
otti has joined #nixos
<iqubic>
So are there ways to have nix files print information to either the terminal or some file somewhere. I'm trying to debug somethings that aren't working
<Myrl-saki>
iqubic: trce.
<Myrl-saki>
trace.
<worldofpeace>
Anyone using virtualbox and notice that 3d aceleration is not available?
igo95862 has quit [Quit: igo95862]
igo95862 has joined #nixos
Ariakenom has joined #nixos
mariatsji has joined #nixos
mariatsji has quit [Remote host closed the connection]
mariatsji has joined #nixos
pie_ has quit [Ping timeout: 248 seconds]
kyren has joined #nixos
aarvar has quit [Remote host closed the connection]
reinzelmann has joined #nixos
aarvar has joined #nixos
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has quit [Ping timeout: 240 seconds]
periklis has joined #nixos
mariatsji has quit [Ping timeout: 240 seconds]
Ariakenom has quit [Quit: Leaving]
mariatsji has joined #nixos
GDiaX has joined #nixos
<GDiaX>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
<GDiaX>
I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
GDiaX has quit [Killed (Sigyn (Spam is off topic on freenode.))]
chalcedony has joined #nixos
<chalcedony>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
chalcedony has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<iqubic>
How does the trace function work?
Mr_Keyser_Soze has joined #nixos
Mr_Keyser_Soze has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @xeji pushed to master « somatic-sniper: disable parallel building »: https://git.io/fNiks
wigust- has joined #nixos
tzemanovic has quit []
wigust has quit [Ping timeout: 240 seconds]
<iqubic>
> let a = 10 in "${a}"
<{^_^}>
error: syntax error, unexpected IN, expecting ';', at (string):164:12
<iqubic>
> let a = 10; in "${a}";
<{^_^}>
error: syntax error, unexpected ';', expecting ')', at (string):164:22
<iqubic>
> let a = 10; in { "${a}"; }
<{^_^}>
error: syntax error, unexpected ';', expecting '.' or '=', at (string):164:24
<Myrl-saki>
Err
<Myrl-saki>
iqubic: Ping
<Myrl-saki>
> let a = 10; in "${a}"
<{^_^}>
cannot coerce an integer to a string, at (string):164:17
<Myrl-saki>
> let a = 10; in "${toString a}"
<{^_^}>
"10"
<Myrl-saki>
iqubic: ; is only used for the let body, and in {}.
* Myrl-saki
hides before the language grammar spec author kills me
cross has quit [Quit: Lost terminal]
<joepie91>
Myrl-saki: what grammar spec :D
<Myrl-saki>
joepie91: Oh, even better. :P
<iqubic>
Alright... I'm kinda confused here.
<iqubic>
Is emacs 26 available in the unstable branch of nixos?
dhess has quit [Remote host closed the connection]
philippD has joined #nixos
<FRidh>
Anyone knows of a way to fetch a Nix or JSON file? I'm familiar with fetchTarball and fetchGit but here I would like to fetch the text file directly.
dhess has joined #nixos
<iqubic>
However, when I use this overlay, the trace statement returns the wrong value:
<srhb>
iqubic: You could add an overlay that only adds unstable to the nixpkgs tree, say, pkgs-unstable = ... and then all of your overlays could refer to self.pkgs-unstable.foo
<jimby8>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
<jimby8>
I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
<srhb>
Where exwm-emacs = exwm-emacs = pkgs.emacsWithPackages packages;
<iqubic>
Right.
<srhb>
woops
<srhb>
and packages is a list of packages that includes exwm
<iqubic>
So it is reading the values from my overlay.
<srhb>
Mentally you should think that you have replaced the values of emacs and emacsWithPackages in "pkgs"
<srhb>
It's always getting them from "pkgs"
<iqubic>
I understand.
<iqubic>
I didn't before, but now I do.
<ekleog>
<srhb> ekleog: Because the hash is wrong? <-- that's the hash I'm getting from nix-prefetch-url :/
<srhb>
ekleog: I would recommend against using that
<srhb>
ekleog: But you need --unpack in this case
<srhb>
ekleog: Always just use the "try with wrong hash" model :)
<ekleog>
oh.
<ekleog>
yeah, I don't like try with wrong hash, because it doesn't check https validity :)
<iqubic>
Alright... something isn't working here.
<ekleog>
anyway, thanks!
<srhb>
ekleog: You really should. We have a lot of broken packages in nixpkgs because people used it wrong and put the wrong hash in but it "works for them" :D
<srhb>
You can always do the "try wrong first" first and then check https with prefetch
<iqubic>
error: syntax error, unexpected '=', expecting $end, at /etc/nixos/exwm-overlay.nix:2:18
<Myrl-saki>
How do I nix-copy-closure to S3? lol.
<iqubic>
exwm-overlay is the shorter of the two files linked.
<ekleog>
well, if nix is changed to verify that https certificates are valid I'll change my behaviour :p (with ofborg I'm reasonably sure I can't get an error-ful derivation into nixpkgs, though :))
<srhb>
ekleog: harumpf. :)
<iqubic>
So I don't know why my issues exist. Everything looks fine.
<Myrl-saki>
Can I even have .drvs in a remote store?
<Myrl-saki>
I think I have to use nix-push or something.
<srhb>
iqubic: Oh... It's a regular nixos module import?
<srhb>
iqubic: In that case it's {...}: { nixpkgs.overlays ...
<srhb>
Yeah of course. I see it now. :D
<iqubic>
srhb: That is what I did.
<srhb>
iqubic: If you set the nix path key nixpkgs-overlays to eg /etc/nixos/overlays you can have files in there that simply look like: self: super: ...
<srhb>
foo = bar is not a valid anything. { foo = bar; } is a valid attrset
<iqubic>
Should I change the way that I do my overlays?
<Myrl-saki>
Well.
<Myrl-saki>
Time to use Nix-1 lol
<srhb>
iqubic: That was just an aside.
<iqubic>
Myrl-saki: need the code to make that work?
garbas has joined #nixos
<iqubic>
nix.package = pkgs.nix1;
<Myrl-saki>
I was thinking of just using nix run, since I don't want to globally install it.
<srhb>
iqubic: I'm not sure whether you understood my explanation of the error...?
<Myrl-saki>
srhb: My version says
<Myrl-saki>
nix (Nix) 2.1pre6338_45bcf541
<srhb>
Myrl-saki: Oh, you're on unstable
<Myrl-saki>
I'm on 18.0f
<Myrl-saki>
18.03
<Myrl-saki>
Oh wait.
<Myrl-saki>
srhb: Yeah, I just realized what happened.
<srhb>
Myrl-saki: I mean for nix specifically
<iqubic>
srhb: I do indeed understand that error description.
<srhb>
iqubic: Good :)
<Myrl-saki>
srhb: Okay, hm. Maybe I should just use nix unstable for my nixops too.
<Myrl-saki>
No wonder it worked.
<srhb>
Myrl-saki: I'm tempted to do the same, but I've been too scared.
<Myrl-saki>
Why is there a discussion about removing drvs anyway?
<iqubic>
srhb: I'm still running into the same errors/
<Myrl-saki>
I'd rather pass around drvs than git commit hashes.
<srhb>
iqubic: Show me how your exwm overlay looks now
<iqubic>
Oh, wait... I'm getting a different error.
<srhb>
ah.
<srhb>
unstable vs. self.unstable ?
<iqubic>
unstable is not defined.
<srhb>
Right. :)
<iqubic>
But I defined it in an overlay I inlined in my configuration.nix
<srhb>
It's defined in the context of "pkgs"
<iqubic>
I'm not using self, except as an input name.
<srhb>
So it's in self and super, but not just magically as a value in your overlays
<srhb>
self refers to pkgs
<srhb>
You've defined "self.unstable"
<iqubic>
I see.
<srhb>
(And super.unstable, but that's irrelevant in this case)
<Myrl-saki>
Yep. path-info works with --store.
<iqubic>
What makes the value of emacs different?
<srhb>
iqubic: I don't understand the question.
<Myrl-saki>
What URIs are supported so far?
KellerFuchs23 has joined #nixos
<KellerFuchs23>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
KellerFuchs23 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<srhb>
Myrl-saki: I think the ones defined in the store abstraction section
<Myrl-saki>
Yeah, found it. http, ssh{,-ng}, s3
<Myrl-saki>
And file.
<iqubic>
why doesn't exwm.nix need to use self when referencing the value of emacs that I set in my overlay?
<Myrl-saki>
Wait, wtf.
<rain1>
when I run nix-env -qa I got error: getting information about '/home/rain1/.nix-defexpr': No such file or directory
<{^_^}>
[nixpkgs] @Mic92 merged pull request #44368 → mpv: Fix mpv 0.29.0 on macOS and disable OpenAL → https://git.io/fN6Ut
<nikki93>
i booted back into installer, and mounted the disk to /mnt
<nikki93>
can i install wpa_supplicant to there and reboot -- i don't have internet without it
<nikki93>
(i don't want to do 'all' the installation steps, just install wpa_supplicant in)
<iqubic>
How is that file able to access the values set in my overlays without any qualifications?
<srhb>
nikki93: You can just alter the configuration and run nixos-install once you have everything mounted
<nikki93>
oh :o
<srhb>
nikki93: The marvel of immutable configuration. :)
<nikki93>
i was worried it would repeat some EFI boot config stuff
<srhb>
iqubic: Because in there, "pkgs" is equivalent to "self" in your overlays
<iqubic>
Ah. I see.
<srhb>
iqubic: In overlays, pkgs is split into two values: self for the result of the overlay, and super for pkgs before the overlay
<srhb>
Normally, we just have pkgs
<srhb>
nikki93: If it worked before I'm pretty sure it will work now without any qualifications.
<nikki93>
wonderful
<nikki93>
this is great
<srhb>
Mind, you do need to have _everything_ mounted, including /mnt/boot
<iqubic>
but overlays are different for some reason that I don't fully understand.
<nikki93>
oh ok
<srhb>
iqubic: Have you read the nixpkgs manual section on overlays? They're quite clever.
knupfer has joined #nixos
alexherbo2 has quit [Ping timeout: 244 seconds]
<rain1>
I set NIX_PATH to my git clone of nixpkgs, nix-build -A hello shows the hash but nix-env -qa shows nothing... nix-shell gives a weird error
<srhb>
nikki93: I have a feeling you could probably also do this with nixos-enter (which is essentially "chroot into my installation") but I haven't used that yet, so I don't feel comfortable recommending that route.
Dedalo has joined #nixos
<iqubic>
srhb: no. I haven't read through that.
<srhb>
iqubic: I recommend it :)
<srhb>
rain1: Can you show your NIX_PATH?
<iqubic>
Last time I looked at that section, I didn't understand it.
<srhb>
rain1: It certainly can... Is this a non-root installation?
<rain1>
yeah
<Myrl-saki>
Seems like I might have better luck doing --export | --import
<srhb>
rain1: I don't have much experience with those. I think the store should only be ~/nix/store not ~/nix/*
<nikki93>
srhb: how do you config extra users usually
<Myrl-saki>
Lol. That finished almost immediately.
<rain1>
maybe i did ./configure with bad flags
<srhb>
nikki93: With users.users
<nikki93>
i have the create a user step from https://chris-martin.org/2015/installing-nixos and then passwd'd it but when i try to switch from root with su <username> i get "this account is currently not available"
<nikki93>
i see
<srhb>
nikki93: That should still work
<srhb>
users.extraUsers is just an alias of users.users
<srhb>
(so far...)
<nikki93>
i need to set a shell i think
<srhb>
nikki93: Yes. :)
<nikki93>
i removed that line lulz
<nikki93>
will fix
<srhb>
The default is pkgs.nologin
<srhb>
(Which, as you might guess, does not allow login) :-)
<rain1>
what command line flags should be used to build nix without root
<srhb>
sphalerite: Perhaps you know something about rain1's problem? They have nix installed with a root of ~/nix but it seems to think that ~/nix/var/nix/profiles/... is in the nix store, so it's refusing to create gc roots there
Dagger has quit [Excess Flood]
<srhb>
I've never done non-root, so it's unknown territory to me
<srhb>
But it seems weird
<sphalerite>
rain1: so ~/nix contains all the store paths directly, they're not in ~/nix/store ?
<iqubic>
srhb: they're also using nix on arch-linux
<rain1>
yeah
<srhb>
ooooh
<srhb>
OK, I missed that. :-)
<iqubic>
That is a key part of the discussion.
<srhb>
I meant the part where /nix/ *is* the actual store, not just the nix root
<srhb>
er, ~/nix
Dagger has joined #nixos
<sphalerite>
well then ~/nix/var/nix is in the actual store
<srhb>
Indeed.
<sphalerite>
it should probably be rearranged to have ~/nix/store
<sphalerite>
either that or use a different directory for NIX_STATE_DIR
<srhb>
But there's still an oddness going on since it considers ~/nix/var/nix/profiles instead of like ~/var/nix/profiles
<srhb>
Right
<sphalerite>
rain1: how did you set it up to use ~/nix?
<iqubic>
rain1: What command(s) did you use to install nix on your arch linux machine?
<rain1>
I guess I should have done --with-store-dir=/home/rain1/nix/store
<rain1>
or maybe prefix is enough and i don't need those other flags
<Myrl-saki>
rain1: Are you aware you can't use the bincache with that?
<rain1>
no
<Myrl-saki>
rain1: The bincache executables link against /nix/store/*, so the outputs will have different hashes.
<srhb>
Myrl-saki: You actually can using it as a chroot store
<srhb>
As long as there's proot support on the system
<Myrl-saki>
Yeah, but he overrode it with --with-store-dir.
<iqubic>
Are you aware that we haven't solved the actual problem?
<rain1>
well maybe ill just use the root thing
<srhb>
Does that matter? I don't think nix itself is in the closure of most things?
<srhb>
I agree that it's finicky though :)
<Myrl-saki>
srhb: Ah, I think I misunderstood some things.
Dedalo has quit [Ping timeout: 268 seconds]
<Myrl-saki>
Hm. I'm actually not sure now. Lol.
hakujin3 has joined #nixos
<Myrl-saki>
rain1: You can also use namespaces.
<Myrl-saki>
rain1: Oh yeah, have you already gotten it to build though?
<srhb>
If you have root access I strongly suggest using a regular /nix root install
<srhb>
It'll be a much more pleasant experience in general.
<Myrl-saki>
srhb: ++
<{^_^}>
srhb:'s karma got increased to 1
<Myrl-saki>
srhb: Even if he doesn't have root access, namespace/proot would still be a good thing.
<sphalerite>
rain1: yeah you'd need to do --with-store-dir=/home/rain1/nix/store instead. But in 99% of cases you don't want to use an alternative store dir
<Myrl-saki>
And he could use --export/--import to distribute software.
<rain1>
alright thanks
<srhb>
Myrl-saki: Right. We mostly lack a bit of tooling. We have most of the primitives in place to make it work almost-out-of-the-box but a lot of resources online implicitly assume root install. It'll be decidedly non-smooth...
<Myrl-saki>
Hm. This might actually be interesting.
<Myrl-saki>
--export/--import to distribute software, I mean.
<Selfsigned26>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
Selfsigned26 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<srhb>
kiloreux: I would say it's against the interests of Nix to have a "nice way" to do that, since it essentially breaks the core model of Nix. So I hope not. :)
<Lycurgus>
looks like that got caught in mid spam
<srhb>
Lycurgus: Yeah, it's getting better.. Not perfect though.
<srhb>
Last few days have been horrible spam-wise.
<Myrl-saki>
Hm
<Myrl-saki>
nix-build --option trusted-substituters ... doesn't seem to work for me.
<Lycurgus>
i only saw one channel where they were ignoring it, grammatical framework's
philippD has joined #nixos
<Lycurgus>
i think freenode is using a bot called frigg to intercept it
<srhb>
Lycurgus: Right, and most of the time that's enough, but this attack was bad enough that we had to restrict the channel to registered users and redirect people to #nixos-unregistered yesterday
Anton-Latukha has joined #nixos
<Lycurgus>
i've only used registered tls for quite a while now
<Myrl-saki>
Even though I'm trusted.
<Lycurgus>
is anything really new in nix in the last 3-4 years?
<srhb>
Lycurgus: nix 2. overlays.
<srhb>
Nothing else I think...
<Lycurgus>
(besides a lot more people, which ought to have improved the ports)
<srhb>
"ports" :-)
<srhb>
bsd is leaking.
* Lycurgus
checks out nix 2
* Lycurgus
meant the nix pkg ports
<srhb>
Yeah :)
<srhb>
I understood, just never hear that term.
<srhb>
I'm sure the amount of packages is pretty huge now.
<srhb>
One reason is probably that we've so good infrastructure for a number of package "hubs" (like hackage for haskell packages)
<srhb>
We're actually topping repology these days.
<sphalerite>
kiloreux: or use -i like when you originally reinstalling it
<kiloreux>
sphalerite, using -i doesn't do the trick. It will just say it's installed and move on. Nothing forced.
<kiloreux>
I will try your first option
<Lycurgus>
srhb, I never heard of repology, looking at what's new in nix 2. I meant the quality of the nix pkgs which in general was sketchy in a lot places of yore
<srhb>
Lycurgus: Right. I mean, there's still more or less unmaintained things, but in general it's pretty high quality I feel.
<srhb>
I think part of the reason is that it's so easy to contribute, which i see as a good thing, even if some sketchy things are around.
<Lycurgus>
in particular for stuff where it collided with the things native pkg mgr
<Lycurgus>
srhb, that would be an expected effect of more people/eyes
<Lycurgus>
repology doesn't seem to have any actual quality/CI metric
<Lycurgus>
ah problems
periklis` has quit [Ping timeout: 276 seconds]
<Myrl-saki>
warning: substituter 's3://---.cache' does not have a valid signature for path '/nix/store/fymkdka02m6xlnjn777k0ahvsxg15408-python3.6-jobs-nix-0.1'
<Myrl-saki>
That's from nix-build
<Myrl-saki>
How do I nix-build not check for signature
johnw has quit [Ping timeout: 248 seconds]
<nikki93>
w00t, nix install is working
<nikki93>
talking to y'all from my nix setup now
JSharp13 has joined #nixos
<JSharp13>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
JSharp13 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<Lycurgus>
macports is ahead of brew confirming my judgment there
<Myrl-saki>
Ah --option require-sigs false
jasongro` has quit [Remote host closed the connection]
<sphalerite>
Myrl-saki: or shorter --no-require-sigs
<sphalerite>
Myrl-saki: although setting up signing is better :p
<srhb>
nikki93: Grats :)
humanoyd has joined #nixos
xy2_ has joined #nixos
<nikki93>
is there a command line command to search for options
<Myrl-saki>
sphalerite: Oh, crap. I thought it was --no-check-sigs
<Myrl-saki>
sphalerite: Thanks.
<Myrl-saki>
sphalerite: Welps, I already committed it!
<Myrl-saki>
Oh, still haven't pushed it yet though. P
<Myrl-saki>
sphalerite: It'd be nice if you can disable sig checking for specific substituters though. :/
<{^_^}>
[nixpkgs] @Mic92 opened pull request #44389 → elasticsearch: use 6.x as default version, remove unsupported releases → https://git.io/fNiGY
periklis` has joined #nixos
vmandela has quit [Ping timeout: 240 seconds]
vmandela has joined #nixos
<sphalerite>
nikki93: man configuration.nix is searchable
jasongrossman has joined #nixos
<nikki93>
kewl
<adisbladis[m]>
Also `nixos-option` is pretty useful
<sphalerite>
other than that, not that I know of. You could hack something together from options.json (nix build -f '<nixpkgs/nixos>' config.system.build.manual.optionsJSON) and jq and fzf :D
<sphalerite>
oh yeah nixos-option
smolboye_ has quit [Ping timeout: 240 seconds]
<Myrl-saki>
Great, my nix repl is broken.
<sphalerite>
Myrl-saki: how?
<aminechikhaoui>
Myrl-saki: I think there is probably a workaround for having some substituters signed and others not, see the commit that closed https://github.com/NixOS/nix/issues/1819
<{^_^}>
nix#1819 (by AmineChikhaoui, closed): How to handle a list of binary caches where some are signed and others aren't
__Sander__ has joined #nixos
TweyII has joined #nixos
<Myrl-saki>
sphalerite: The prompt disappears.
<Myrl-saki>
nix-repl>
<Myrl-saki>
Blinks
<Myrl-saki>
Wait, actually, the whole line disappears.
<Myrl-saki>
Might be the NVidia driver update though, since every UI is broken.
<sphalerite>
Myrl-saki: whoopee!
<sphalerite>
aminechikhaoui: oooh, good to know!
yrashk_ is now known as yrashk
<Myrl-saki>
sphalerite: The best part is that I haven't done a system/X11 reboot, yet NVidia still found a way to break the driver.
<gchristensen>
is this what srhb wanted you to ask me, or is this a general question?
<rain1>
no
mmercier has quit [Quit: mmercier]
rprije has joined #nixos
johnw has joined #nixos
f0i has quit [Ping timeout: 268 seconds]
xy2_ has quit [Ping timeout: 248 seconds]
freeman42]NixOS has quit [Ping timeout: 260 seconds]
pieter has joined #nixos
pieter has left #nixos [#nixos]
johnw has quit [Ping timeout: 240 seconds]
<srhb>
gchristensen: I think sphalerite sorted out the earlier issue, sorry for the noise :)
<gchristensen>
ah cool :) no worries!
supercool27 has joined #nixos
<supercool27>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
supercool27 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<gchristensen>
sigh
<srhb>
Yeah, wonder if Freenode will recover from this...
<gchristensen>
I'm sure it will
<Lycurgus>
this is the only place I'm seeing it right now
<gchristensen>
are you in other large channels?
<{^_^}>
[nixpkgs] @jfrankenau opened pull request #44391 → reaper: init at 5.93 → https://git.io/fNiBT
<Lycurgus>
yes. I am seeing it in another client in the grammatical framework channel but I don't think they care, it's not high traffic
<Lycurgus>
whois will show you the channels I'm in
<gchristensen>
whois only shows the set of channels I am in which you are also in
<Lycurgus>
oh
<{^_^}>
[nixpkgs] @basvandijk opened pull request #44392 → graphite: make systemd create /run directory for us → https://git.io/fNiBc
<Lycurgus>
well #haskell,#lisp,#nixos,#matrix,and #wikipedia-en are all relatively high traffic
<toppler>
I'm trying to build a virtualenv for a python requirements.txt containing just lxml, but it appears to be having path issues with the libxml2 include.
<goibhniu>
hi toppler, have you tried using a nix-shell that already has lxml, or do you want to compile it?
<toppler>
I'm in a shell with libxml2, and I can see the include directory in my path.
<ajs124>
rain1, looks like the build is trying to download the xml scheme from the web, but can't because nix does not allow that. just replace the schemes with local copies from the docbook package with sed
<toppler>
I get "/run/user/1000/xmlXPathInitaya22mw5.c:1:10: fatal error: libxml/xpath.h: No such file or directory"
{^_^} has quit [Remote host closed the connection]
<goibhniu>
toppler: maybe the requirements.txt pins a different version of lxml?
<toppler>
Hmm...yeah. I'll see what happens if I pick whatever lxml I pull into the shell.nix.
<rain1>
so it nix supposed to not build without editing files?
patrl has joined #nixos
NightTrain has quit [Quit: Lost terminal]
<Lycurgus>
you mean touching them don't you
<Lycurgus>
anyway matrix-dev did have some of the spammer about an hour ago
* Lycurgus
thought it was Saturday, yay a whole day!
fendor has joined #nixos
patrl has quit [Ping timeout: 264 seconds]
<toppler>
goibhniu: Okay, that works. I seem to be all good now. Cheers
<toppler>
!
<goibhniu>
excellent!
patrl has joined #nixos
fendor has quit [Ping timeout: 260 seconds]
Adluc has quit [Excess Flood]
periklis` has quit [Ping timeout: 244 seconds]
xy2_ has quit [Ping timeout: 260 seconds]
hakujin3 has joined #nixos
xy2_ has joined #nixos
fendor has joined #nixos
reinzelmann has quit [Quit: Leaving]
hakujin3 has quit [Ping timeout: 245 seconds]
Dagger has quit [Excess Flood]
davenpcm has joined #nixos
robstrr has joined #nixos
<robstrr>
Hey, I'm entering my haskell project with something like `(import ./release.nix {}).app.env` - is there an easy way to add more system libraries to the shell ? ie, adding a tool to the env?
rprije has quit [Ping timeout: 260 seconds]
fendor has quit [Ping timeout: 245 seconds]
silver_ has joined #nixos
<ivan>
to answer my question from yesterday about viewing nixpkgs commits: TIG_DIFF_OPTS=--first-parent tig --first-parent -m
silver has quit [Ping timeout: 240 seconds]
f0i has joined #nixos
Lycurgus has quit [Ping timeout: 240 seconds]
<rain1>
I don't know where to get this docbook.rng file
<rain1>
the packages docbook-xml and -xsl don't have it
nbathum has joined #nixos
nly has joined #nixos
stanibanani has joined #nixos
<cocreature>
robstrr: you can overrideDerivation and modify buildInputs
Dagger has joined #nixos
<cocreature>
robstrr: or you can use the mkShell function instead of .env which lets you pass those arguments directly
<cocreature>
and also has other nice advantages like working properly for multipackage projects and easy hoogle support
johnw has joined #nixos
johnw has quit [Ping timeout: 260 seconds]
<robstrr>
cocreature: thank you
Fare has joined #nixos
oida has joined #nixos
ollieB has joined #nixos
jasongrossman has quit [Remote host closed the connection]
<nly>
Is it alright to set neworking.firewall.allowedTCPPorts twice in my configuration? nginx.nix contains 'networking.firewall.allow... [80];' and another unbound.nix contains 'networking... [53];', both commands are same I am just at typing.
<gchristensen>
nly: yes, the nixos module system will merge the two lists
<thoughtpolice>
nly: Yep, that's fine. When you have the same options in two different modules like that, the options will get 'merged together' when you finally build the whole thing.
<thoughtpolice>
Lists are very obvious to merge: just append all of them together!
<nly>
Strings are also lists
<nly>
Would it merge on a newline?
patrl has joined #nixos
<gchristensen>
where?
<gchristensen>
strings aren't lists
<nly>
I have privoxy.nix containing 'extraConfig ="something";' then I have another caching-server.nix with 'extraConfig ="extra options";'
<gchristensen>
ah this is where it gets super confusing :P
<gchristensen>
that is of type types.strings, which just gets smushed together separated by newlines yeah
<nly>
Yes this is super horrible agrred
<nly>
I should use nixpkgs style append text if var = true
<nly>
Ty gchristensen thoughtpolice
<gchristensen>
the module system uses some magic to make the merges happen
<thoughtpolice>
Yeah, and it's *only* the module system that does that. In practice that's fine, but occasionally you might do something like, import a .nix file directly and merge attrsets
<thoughtpolice>
Which will result in conflicting definitions of the same thing. A thing to keep in mind.
astronavt has joined #nixos
<nly>
Yep and besides it's bad when you run into problems and have to diagnose the issue
<nly>
Ty
<nly>
How do I check failed boot logs?
stanibanani has left #nixos [#nixos]
f0i has quit [Ping timeout: 244 seconds]
<gchristensen>
journalctl 's -x argument (see the man page)
<astronavt>
hi nixos - i'm thinking about trying out the distro specifically for data science work. this would entail using lots of packages that are almost certainly not in an official package repository (e.g. a python package associated with a research paper). would packaging these things correctly be difficult for someone new to nix? typically they don't have complicated build requirements/procedures, and usually only a couple library dependencies
<nly>
No how does it work? Logs are global?
<astronavt>
(full disclosure: im evaluating guix as well)
<gchristensen>
nly: sorry?
jperras has joined #nixos
<gchristensen>
astronavt: shouldn't be so complicated, but you'll likely need a bit of help getting started :)
<cocreature>
luckily there are usually quite a few people in this channel that are willing to help :)
<sphalerite>
yep that
<sphalerite>
but guix might be more suitable because it has that fancy pip import stuff
<astronavt>
thanks all. i was planning on starting w/ the nixos manual to set up a basic sandbox environment and working off there
<gchristensen>
astronavt: definitely recommended!
<astronavt>
sphalerite ok, i know almost nothing about guix and was about to ask a similar question in #guix . thanks for the tip
<astronavt>
actually i have one practical question -- does nix typically require a little more HD space than other distros? e.g. i might have 2 or 3 versions of a library installed at once
<Myrl-saki>
Okay, curious.
johnw has joined #nixos
<sphalerite>
astronavt: yes
<gchristensen>
astronavt: commonly referred to as trading disk space for sanity :)
<rizary>
hi, I have shared folder with my windows 10 using this command:
<sphalerite>
astronavt: you can get rid of old stuff to free up space, but then you lose the ability to roll back
<astronavt>
makes sense sphalerite . and gchristensen it's still better than C:\Windows taking 50 GB
<rizary>
i got `operation not supported`
<rizary>
`error: creating symlink from '/home/rizy/nixosUserFolder/project/frontend/result.tmp-51159-359624644' to '/nix/store/81qc7h4c2xxz6v1wfclc14q2s9r7zn3l-project': Operation not supported`
<sphalerite>
astronavt: I'm not 100% sure but I think putting boot.supportedFileSystems = ["cifs"]; in your config and booting into the new config might help
<Mic92>
does this mean we also do not have any modules for unfree packages in nixos?
<sphalerite>
Mic92: minecraft-server comes to mind
<Dezgeg>
maybe it's only problem if the manual references the package
<sphalerite>
yeah I think so
<Mic92>
we have elasticsearch.package
<Dezgeg>
in which case using defaultText for options that refer to an unfree package would fix it
<Mic92>
there is a defaultText also
selfsymmetric-mu has joined #nixos
<Dezgeg>
maybe it's the builtins.compareVersions (builtins.parseDrvName cfg.package.name).version
<Mic92>
this is rigged.
<Dezgeg>
though I'd suppose that shouldn't get evaluated either if the module isn't enabled
<Mic92>
maybe we can evaluate the oss variant to get the version
<Dezgeg>
or maybe only the 'name' attribute is "poisoned"
schjetne has quit [Remote host closed the connection]
<Dezgeg>
so cfg.package.version could work (if it has a version attribute)
<Mic92>
it has
<Dezgeg>
yes, that seems to work in nix-repl
<Mic92>
the version was even externalized into elk6Version for some reason
<gchristensen>
Mic92: looks like that PR needs a changelog, too
<Mic92>
gchristensen: the elk maintainer already wrote one
<Mic92>
Dezgeg: that seemed to wrok
<Taneb>
Can I make a nix derivation that makes another nix derivation and immediately builds it?
patrl has quit [Ping timeout: 268 seconds]
<sphalerite>
Taneb: yes
<sphalerite>
,ifd
<sphalerite>
it's called IFD (import-from-derivation) and it works, but isn't allowed in nixpkgs
<infinisil>
,IFD
<infinisil>
,
<srhb>
Bot is sad :(
<infinisil>
:(
<srhb>
Is it the spam prevention?
hakujin3 has joined #nixos
<infinisil>
,IFD
TweyIV has quit [Ping timeout: 248 seconds]
<Taneb>
...I should probably spend a little time working out what I actually want to do here
<infinisil>
,IFD
<infinisil>
Um, gchristensen, my bot's not getting any messages from this channel, but #bottest works :/
<Taneb>
Because I definitely don't need to do this
jperras has quit [Quit: WeeChat 2.2]
TweyIV has joined #nixos
hakujin3 has quit [Ping timeout: 248 seconds]
{^_^} has joined #nixos
{^_^} has joined #nixos
{^_^} has quit [Changing host]
<gchristensen>
,IFD
<{^_^}>
import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2
TonyTheLion has quit [Ping timeout: 244 seconds]
<infinisil>
gchristensen: Thanks, do you know what the problem was?
<infinisil>
+r?
<Taneb>
OK, yeah, I was overcomplicating things
patrl has joined #nixos
<gchristensen>
yea
<Taneb>
Nice to know IFD exists but I don't need it at all
<sphalerite>
even better! :D
<Taneb>
What I'm doing is generating a C++ file in nix, then compiling it
TonyTheLion has joined #nixos
<Mic92>
Taneb: are you trying to use nix as a make replacement?
<Taneb>
Not intentionally, although I may be underestimating the utility of make
<srhb>
No, that's not possible...
patrl has quit [Quit: WeeChat 2.0]
<Taneb>
I've got, essentially, a bunch of little pieces in 5 different shapes, and with one of each shape I get a whole program, and all the pieces are described in nix files
ThatDocsLady has quit [Remote host closed the connection]
<Taneb>
So I want something that takes arguments specifying which pieces to use, and put them all together and compile them
ThatDocsLady has joined #nixos
qwerty_asdf has joined #nixos
<Taneb>
...this probably sounds a bit "why would you ever want that" at best
<Mic92>
Like conditional compiling?
<Taneb>
Mic92: yeah, but like, more
<Taneb>
These pieces also have different build dependencies, for example, which I wanted nix to take into account
qwerty_asdf has quit [Quit: qwerty_asdf]
<thoughtpolice>
So what you really want is: "I want to select the different components when I run `nix-build`and get an artifact of their composition". This means you're looking for a function, first off, since you want to vary the arguments. So maybe what you want is something like, have each component described in a Nix file, and import them based off the arguments.
deepfire has quit [Read error: Connection reset by peer]
deepfire has joined #nixos
<thoughtpolice>
For example, you might have like, a set of tires and you want to pick one. So you'd have a set of files, ./tires/{big,small,truck}.nix. Then you can have your ./default.nix do something like `{ tire-shape ? null }: let tires = import ./tires/"${tire-shape}.nix"; in ...`
<{^_^}>
[nixpkgs] @Infinisil merged pull request #44127 → nixos/cfssl: Add new module for cfssl → https://git.io/fNEXz
<Taneb>
thoughtpolice: yes, then I want to concatenate them and write to a file
ericsagnes has joined #nixos
<thoughtpolice>
Right, so now move it to C++. Let's say `tires` actually gives you a fragment of a file. It can do this using something like builtins.readFile
joehh has quit [Ping timeout: 240 seconds]
<thoughtpolice>
(For example, it may read a particular C++ header file)
<thoughtpolice>
You can just concatenate them all and write it to a file using pkgs.lib.writeFile
<thoughtpolice>
Then, in buildPhase, do something like `cc -o $out/bin/app ${pkgs.lib.writeFile "source.cc" sourceText}`
<thoughtpolice>
Basically, have each choice actually read/build the fragment you need. You can take each fragment and then just use writeFile. The resulting writeFile path can be used as an input to another expression -- one that runs the C++ compiler
<thoughtpolice>
(That might not actually work but I think it illustrates the idea)
deepfire has quit [Ping timeout: 265 seconds]
<thoughtpolice>
Taneb: So, just get creative with how 'source' is built up -- for example, that source code fragment may not be a string literal. You can build it out of other strings, of course
<samueldr>
Mic92: while I'm good with nixpkgs, some of the nix internals I'm not good with
<samueldr>
are nix-shell different with trusted and untrested users?
wchresta has joined #nixos
<samueldr>
btw, one use case is something like --keep SSH_AUTH_SOCK while keeping things as pure as possible
<Mic92>
samueldr: I think some options are intentionally not allowed for untrusted users.
<Mic92>
because build-impurities could end up in the system closures
SailorHaumea24 has joined #nixos
<SailorHaumea24>
<+SP9002_@efnet> so, he wants the win. so we're just gonna get lunch or something, then hes gonna push me to the ground and tap my ass with his foot so he can claim he "kicked my ass" tbh im going along with it becase I dont wanna lose any teeth
<SailorHaumea24>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
SailorHaumea24 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
wpcarro has quit [Remote host closed the connection]
<Mic92>
so with fromToml nixpkgs-mozilla becomes more sane?
<Mic92>
might be also a nice alternative to json
<samueldr>
Mic92: assume I'm thick, and explain how build-impurities could end up in the system closures from nix-shell with --keep
wpcarro has joined #nixos
Lycurgus has joined #nixos
<{^_^}>
[nix] @grahamc pushed to grahamc-patch-1 « 2.1 release notes: Add note about s3-compatible stores »: https://git.io/fNiHz
sir_guy_carleton has joined #nixos
<{^_^}>
[nixpkgs] @dotlambda opened pull request #44405 → EmptyEpsilon: use python3 → https://git.io/fNiH2
<{^_^}>
[nixpkgs] @johanot opened pull request #44406 → certmgr: init at 1.6.1 → https://git.io/fNiHw
<{^_^}>
[nix] @grahamc opened pull request #2327 → 2.1 release notes: Add note about s3-compatible stores → https://git.io/fNiHr
<iqubic>
samueldr: I fixed up the emacs overlay you gave me.
<samueldr>
iqubic: what needed to be done?
<iqubic>
Nothing actually.
<{^_^}>
[nixpkgs] @dotlambda opened pull request #44407 → MMA: use python3 → https://git.io/fNiHH
<iqubic>
The main issue was that I kept downloading emacs 25.3.1
<iqubic>
but srhb helped me troubleshoot my issues.
<iqubic>
Turns out I needed to update the unstable channel on my system.
<samueldr>
oh, not much then
<srhb>
#channeltroubles
<Mic92>
samueldr: Let's say you are building a package locally as an untrusted user. If that user can build a package and you have build system that can be configured by environment variables (for example it takes an executable path). Then an unprivileged user could place a binary in /run/user/<uid> or /tmp.
<Mic92>
And that binary could be used at runtime only instead of build time
<Mic92>
nixos-rebuild switch would then reuse this packgae
<iqubic>
TonyTheLion: Go ahead and download "ruby_2_5"
wpcarro has quit [Remote host closed the connection]
<iqubic>
And remove the old ruby too, I think.
<Mic92>
samueldr: nevermind, I mixed up the builder with nix-shell.
<samueldr>
Mic92: whew, I actually thought I missed something
wpcarro has joined #nixos
<{^_^}>
[nixpkgs] @dotlambda opened pull request #44408 → actdiag: move out of pythonPackages → https://git.io/fNi5q
<samueldr>
ryantm: error: 'mkHomepage' at /nix/store/kzah1l6dcmc0ci49bk2cpa0b2pjhi4m8-nixexprs.tar.xz/pkgs/development/r-modules/default.nix:54:18 called with unexpected argument 'biocVersion', at /nix/store/kzah1l6dcmc0ci49bk2cpa0b2pjhi4m8-nixexprs.tar.xz/pkgs/development/r-modules/default.nix:35:21
<TonyTheLion>
samueldr: my nix 1.11 runs the correct version of bundler and ruby and the 2.0 doesn't
<TonyTheLion>
two different machine that have different nix versions on them
<samueldr>
ryantm: it seems something broke the build
<samueldr>
ryantm: git clone nixos-homepage; nix-shell; make nixpkgs/packages-unstable.json.gz
<samueldr>
this approximates to a high level what's happening for it
fendor has quit [Ping timeout: 240 seconds]
<TonyTheLion>
iqubic: I did 'nix-env -i ruby_2_5' but when I try to run 'nix-shell -p bundler' it reverts to looking at ruby 2.4
<samueldr>
TonyTheLion: ah, what could be going on is that you are following different channels, or have a different configuration
<ryantm>
samueldr: Okay, is the homepage being automatically built somewhere that is publically visible? Like hydra?
<samueldr>
ryantm: not publicly visible AFAIK
__Sander__ has quit [Quit: Konversation terminated!]
<samueldr>
ryantm: but the process is publicly available in the configurations repos
<samueldr>
TonyTheLion: the version of `nix` does not related directly to the software available
<samueldr>
TonyTheLion: nix is the package manager, and it can make use of channels, channels are a bit like repositories would be in debian and ubuntu
<samueldr>
TonyTheLion: both nix 1.11 and 2.0 (for now) can follow and use the same channels
<TonyTheLion>
channels are the same on both versions
<Mic92>
there is still something weired going on in my system evaluation. I set config.systemd.package in my configuration.nix but the evaluation has still the default value in some places.
hakujin3 has joined #nixos
<samueldr>
TonyTheLion: and updated?
jabranham has quit [Quit: ERC (IRC client for Emacs 26.1)]
<Mic92>
infinisil: the weired thing is: nix-instiantiate shows me the correct value, at some point the correct value is that because the booted systemd is the new version.
nlyy has quit [Remote host closed the connection]
rouma has quit [Remote host closed the connection]
<Mic92>
but some derivations use the wrong value, which I can see in the path they are using also they clearly referencing config.systemd.package.
ThatDocsLady_ has quit [Quit: Leaving]
rouma has joined #nixos
<thoughtpolice>
clever: Oh, that is a nice one
wpcarro has quit [Ping timeout: 256 seconds]
igo95862 has joined #nixos
orivej has quit [Ping timeout: 265 seconds]
dmc has quit [Quit: WeeChat 2.2]
<iqubic>
How does Nix get away with packaging games that cost money?
dmc has joined #nixos
<Taneb>
Is there a way to get a trace in nix-repl
<Taneb>
iqubic: I don't think nix does do that
<iqubic>
yes it does.
<Taneb>
iqubic: whicj?
<Taneb>
*which
<iqubic>
I see packages for factoria in the repos.
<Taneb>
That packages a headless Factorio server, I think, iirc, which is freely distributable
<Taneb>
(freely as in beer at least)
wpcarro has joined #nixos
<Taneb>
Oh, huh, I am wrong
Ariakenom has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
<Mic92>
iqubic: is it not marked as unfree?
<Yaniel>
looks like it requires you to provide a username and password for the download
<WilliamGHatch[m]>
Hi, I'm trying to make one of those `@` systemd services, specifically for syncthing. Looking through nixpkgs at other systems (eg. agetty.nix) that provide @ services, I don't see them doing anything special besides simply naming their service with an @ on the end. When I try to make a `syncthing@` service, it launches a `syncthing@multi-user` instance, and if I set `enable = false` then it just links in an empty
<WilliamGHatch[m]>
file. Can someone point me in the right direction?
johanot has quit [Ping timeout: 248 seconds]
<{^_^}>
[nixpkgs] @dotlambda opened pull request #44410 → afflib: use python3 → https://git.io/fNiFh
<clever>
WilliamGHatch[m]: i think you need to start syncthing@name
<Mic92>
WilliamGHatch[m]: are creating a user service?
hakujin4 has joined #nixos
<Mic92>
otherwise name it syncthing-name.
<Mic92>
We do not support @-services in nixos
daisy_ has quit [Quit: Page closed]
<Mic92>
at least not if you plan to enable them
<Mic92>
you can create a dedicated unit for all instances you need
dmc has quit [Quit: WeeChat 2.2]
ihar has quit [Quit: WeeChat 2.0]
hakujin3 has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @dotlambda opened pull request #44411 → almonds: use python3 → https://git.io/fNibd
<WilliamGHatch[m]>
Mic92: I want it to be a system service, but be configurable to different/multiple users. Other OSes (eg Debian, Arch) have this set up, and I've just switched from them to Nixos and I'm trying to recreate my config.
<WilliamGHatch[m]>
Mic92: I've defined it as `syncthing-name@` and I get the same thing.
sbdchd has joined #nixos
<WilliamGHatch[m]>
Mic92: Ah, why doesn't nix support @-services? And why do `getty@` and friends work?
<Mic92>
WilliamGHatch[m]: no i mean syncthing-name instead of syncthing@name
<Mic92>
WilliamGHatch[m]: getty@ is started by systemd itself afaik
<WilliamGHatch[m]>
clever: Hmm, I see where it's doing it, but I don't see what I'm doing that is materially different... but I may need to brush up on the nix language a bit before I completely understand it (eg. I don't remember what // does)... I'll look into it and see if I can figure it out. Thanks.
<clever>
WilliamGHatch[m]: // will merge 2 sets and overwrite when keys conflict
<samueldr>
> { a = "a"; b = "b"; } // { b = "x"; c = "c"; }
Lycurgus has quit [Quit: Exeunt]
<{^_^}>
{ a = "a"; b = "x"; c = "c"; }
<WilliamGHatch[m]>
On an unrelated note, I sometimes hack on a project (Racket) that needs to dynamically find `libcrypto.so` from openssl. If I use a nix-shell with Racket's dependencies it works fine, but I would really rather just have a `libcrypto.so` in the current-environment that it can find dynamically. Is there a way I can get that short of rewriting the openssl package, or a rationale as to why it's not there?
<gchristensen>
,libraries WilliamGHatch[m]
<{^_^}>
gchristensen: Did you mean library?
<{^_^}>
WilliamGHatch[m]: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
stanibanani has joined #nixos
stanibanani has left #nixos [#nixos]
<{^_^}>
[nixpkgs] @dotlambda opened pull request #44413 → ansible-lint: explicitly use python2Packages → https://git.io/fNixg
<WilliamGHatch[m]>
gchristensen: Hmm... that's what I was afraid of. I find using nix-shell every time I want to hack on something a pain... Is there no way to have stuff you are building in your home directory more dynamic with less of a hard-line stance on reproducibility and purity?
hakujin has joined #nixos
hakujin4 has quit [Ping timeout: 255 seconds]
shlevy has quit [Ping timeout: 255 seconds]
shlevy has joined #nixos
<{^_^}>
[nixpkgs] @dotlambda opened pull request #44414 → antfs-cli: use python3Packages → https://git.io/fNipf
<{^_^}>
[nixpkgs] @erictapen opened pull request #44415 → pius: introduce perl as buildInput → https://git.io/fNipl
Ralith_ has quit [Remote host closed the connection]
<gchristensen>
WilliamGHatch[m]: not sure why you'd be afraid of it, the nix-shell is a great tool to set up and manage different development environments
<WilliamGHatch[m]>
gchristensen: I wouldn't say I'm afraid of it as much as I would rather not add one more step to my development workflow. But I guess it's not so bad, and it will probably be good all in all to force myself to always build things in a pure environment. Anyway, I guess I'll just get used to it. Thanks.
<cocreature>
WilliamGHatch[m]: maybe something like direnv would help you? although I have admittedly not used it myself so I can’t comment on how well it works
igo95862 has quit [Quit: igo95862]
<WilliamGHatch[m]>
cocreature: Thanks, maybe I will do something like that.
<clever>
dhess: half of the fix, the typo means it only fixes on 32bit ntp
<nlyy>
clever i wanna rollback to your nixos-version
<dhess>
ok I think I got it. Sorry for the confusion and thanks for the clarification
<nlyy>
"18.09pre145775.1539167d215" is the earliest channel i've got
orivej has joined #nixos
<dhess>
clever: to be clear, the upstream patch at ntp-project fixes it for all builds?
<clever>
nlyy: nixos-rebuild test -I nixpkgs=https://github.com/nixos/nixpkgs/archive/dae9cf6106d.tar.gz would run the version i have
<clever>
dhess: i believe it does, let me check it
<clever>
dhess: yeah, that one does both 32 and 64bit
<dhess>
perfect, thank you
<dhess>
so I guess there's some weird interaction happening where seccomp kills ntpd when it goes outside its sandbox and then the systemd service isn't restarting it properly, and that's how it ends up defunct?
<clever>
dhess: for an unknown reason, when it uses openat() (which the sandbox doesnt allow), it kills the process without actually killing it
<clever>
dhess: so the pid goes defunct, and the parent is never notified that the proccess has died
<clever>
and then systemd never tries to restart it
<dhess>
huh
<clever>
exactly
<dhess>
this has been driving me nuts. So glad I found your patch.
<dhess>
I was getting ready to install openntpd instead :)
<clever>
dhess: the above file will fetch the patch directly from my PR, and apply it
Thra11 has joined #nixos
<nlyy>
ty srhb, clever
<dhess>
clever: cool thanks, was just about to write that myself
<clever>
it will also overwrite any other patches nixpkgs was adding
<dhess>
right
ris has joined #nixos
<{^_^}>
[nixpkgs] @dotlambda opened pull request #44418 → aws_shell: use python3 and buildPythonApplication → https://git.io/fNPfS
kiloreux has quit [Ping timeout: 240 seconds]
<WilliamGHatch[m]>
clever: after looking into it more, I found that the syncthing service as it exists *does* add `syncthing@.service`, which is installed without starting the default single user if you specify `services.syncthing.systemService = false`, and it works if I add it through `systemd.target.multi-user.wants`. Thanks for your help.
<clever>
dhess: ive got a netboot based not-os on my rpi that i sometimes use as an arm build slave
<clever>
dhess: but the rpi firmware is fighting back, and it doesnt even start the linux kernel half the time
rouma7 has joined #nixos
<srk>
dhess: I'm quite happy with chronyd
<dhess>
srk: interesting, hadn't heard of it, or at least, had forgotten about it. I actually like OpenNTPD except for the fact that it's not quite RFC-compliant.
fendor has quit [Ping timeout: 244 seconds]
<dhess>
clever: how do you deploy updates to not-os? Are you expected to just write a new SD card image or whatever?
<fresheyeball>
is there a way I can stop nix-build from querying remote caches?
<fresheyeball>
remote caches are slow sometimes and I just want to rebuild quickly
<clever>
fresheyeball: --option substituters ""
<fresheyeball>
right querying takes longer than building
hakujin2 has joined #nixos
<infinisil>
Maybe there could be an option to both query the substituters, but at the same time start building and use whatever finishes first
<{^_^}>
[nixpkgs] @xeji merged pull request #43968 → mfcl8690cdw: init lpdr and cupswrapper at 1.0.2/1.0.3 → https://git.io/fNlmG
<{^_^}>
[nixpkgs] @xeji pushed commit from @fuzzy-id to master « mfcl8690cdw: init lpdr and cupswrapper at 1.0.2/1.0.3 (#43968) »: https://git.io/fNPTB
<clever>
infinisil: then it will always start building the gcc bootstrap
galaxite has quit [Ping timeout: 265 seconds]
<infinisil>
clever: Well it can't start building it when the cache hasn't responded
<infinisil>
clever: So maybe it'll work if the cache queries have to be done in order or so
<infinisil>
(so it has to receive a 404 for the build result before it can start to query the dependencies)
<clever>
ah, so build the stuff not in the cache, while still quering more cache things
<infinisil>
Yeah something like that
<infinisil>
Maybe could even make it default behaviour
hakujin1 has quit [Ping timeout: 276 seconds]
<fresheyeball>
in mkDerivation is there a way I can have all the source available in builder.sh?
<clever>
fresheyeball: all of the source?
<fresheyeball>
clever: yeah, like source = ./.; does not actually put those files in the build directory at build time
<clever>
you want src = ./.;
<clever>
and thats handled by the unpackPhase in the default builder
<fresheyeball>
gotcha, I mistyped it
revtintin has quit [Quit: WeeChat 1.9.1]
<fresheyeball>
eh, that didn't work
<clever>
fresheyeball: can you gist your nix derivation?
<{^_^}>
[nixpkgs] @xeji pushed commit from @mstarzyk to master « obnam: removed (#44422) »: https://git.io/fNP35
wpcarro has quit [Ping timeout: 268 seconds]
<petersjt014[m]>
hi:
<petersjt014[m]>
are any of the versions of the rpi3 supported better than any others? I saw that the [3b+](https://nixos.wiki/wiki/NixOS_on_ARM/Raspberry_Pi) has some extra instructions but I was wondering if there was anything besides that
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #44423 → treewide: All configureFlags are lists → https://git.io/fNPso
<azazel>
so if my bash script uses at runtime the executable foo from package bar, what's the best way to replace all the occurrences of foo with its path from store?
<clever>
azazel: substituteInPlace and use @foo@ in the bash code, thats one option
<samueldr>
petersjt014[m]: the support will be equivalent to the mainline kernel support, mostly; so support for newer raspberry pies always lags a bit behind
<samueldr>
the main reason being (IIRC) that the raspberry pi foundation's supported architecture is armv7 while NixOS targets aarch64
<azazel>
clever: in which phase? the default fixupPhase does the shebang replacement
<clever>
petersjt014[m]: dont know if the 0 has special patterns, but these are the ones i found
<petersjt014[m]>
I got something roughly like `long blink - brief pause - quick blink - longer pause`
<petersjt014[m]>
in a cycle
fiddlerwoaroof has joined #nixos
<petersjt014[m]>
* shrug * 1000 *
wpcarro has quit [Ping timeout: 240 seconds]
<dhess>
in the new cross stuff, hostPlatform is where the build is being done, right?
<dhess>
oh maybe that's buildPlatform
<maurer>
dhess: I'm pretty sure it follows the old convention:
<maurer>
There are three system names that the build knows about: the machine you are building on (build), the machine that you are building for (host), and the machine that GCC will produce code for (target). When you configure GCC, you specify these with --build=, --host=, and --target=.
<dhess>
right, thanks
<infinisil>
maurer: Why are target and host different?
<maurer>
Say that I am building gcc on my desktop, for use on my laptop, and the version on my laptop should be able to build targeting my rpi
<maurer>
My desktop is build
<maurer>
My laptop is host
<maurer>
My rpi is target
<maurer>
I build gcc on my desktop
<maurer>
On my laptop, I run gcc to produce a binary
<maurer>
which should then be able to run on my rpi
knupfer has quit [Remote host closed the connection]
<infinisil>
maurer: Oh, but why is this decided at gcc build time what it's going to produce code for?
<infinisil>
Shouldn't gcc decide this at runtime and support all kinds of targets?
<maurer>
GCC doesn't have a modular code generator like LLVM does
<maurer>
Many other dev/compilation tools don't either
<maurer>
Same goes for some tools that interact with object formats
<maurer>
e.g. if I replace "rpi" there with "macbook"
<maurer>
then I suddenly need to make mach-o's
<maurer>
thus the need for platform info
<maurer>
You could definitely argue that "target" should be runtime, because it can
<maurer>
but that requires extra engineering work that hasn't been done on a lot of tools
das_j has joined #nixos
<infinisil>
Hmm I see, so in theory I could build a "master" gcc that targeted all kinds of arches, by compiling gcc lots of times for all those arches and combining them somehow?
<maurer>
Not without rewriting a lot of gcc, or just making a binary that was several gccs right next to each other
<maurer>
There is nothing fundamental that stops you from making a compiler that could handle this though
<maurer>
clang does it fine
<infinisil>
Alright, yeah only theoretically
<maurer>
The other benefit of the "target" portion of the tuple is that it allows you to validate that the output tool will support at least that arch
<maurer>
In the runtime model you're suggesting, if the foo compiler only supports x86 and arm as output, and I set the target to mips
Aexoden has joined #nixos
<maurer>
I'll get an error when I ask for a mips outputting compiler, rather than not getting the error until build time
<maurer>
or runtime, depending on how you view it
<infinisil>
What if I build a gcc that will compile another compiler that can target even another arch? Would that be called the target-target? :P
<maurer>
No, that's not included in the build-host-target model, and with good reason
<maurer>
If you look at nix, this is where it starts doing the "shifts"
<maurer>
Like, say you wanted a compiler that ran on platform foo, and outputs on bar at the end
<infinisil>
Oh, I guess this target-target doesn't really concern gcc, as the other compiler will have to support it
<maurer>
Yeah, that's a _separate_ package
<maurer>
You are on a host baz, and have a compiler that outputs baz (the common case)
<maurer>
Nix would look to build baz-foo-bar
<maurer>
However, it can't output foo at the moment, so it can't do that
<maurer>
so first it would shift and build baz-baz-foo using baz-baz-baz (which we assume it has a priori)
<drakonis>
/nix/store/dkh7l9a4sx7zqh8riqbj3z21sz25p8xy-bash-4.4-p23/bin/bash: /build/source/lib/elixir/generate_app.escript: /usr/bin/env: bad interpreter: No such file or directory
<drakonis>
not sure how to plunge into the depths of the build
wpcarro has quit [Ping timeout: 240 seconds]
<clever>
drakonis: /usr/bin/env doesnt exist in the nix sandbox, you need to run patchShebangs over all shell scripts
<drakonis>
hmm, how do i do that/
<drakonis>
first time doing anything complex with packaging ;v
<clever>
-r--r--r-- 1 root root 2.6M Dec 31 1969 /run/booted-system/firmware/iwlwifi-9260-th-b0-jf-b0-33.ucode
<clever>
-r--r--r-- 1 root root 2.6M Dec 31 1969 /run/booted-system/firmware/iwlwifi-9260-th-b0-jf-b0-34.ucode
<clever>
dhess: ive got 2 versions within the range your driver supports
<samueldr>
pretty sure dhess you only need hardware.enableRedistributableFirmware
<dhess>
yeah. I was confused by the kernel message. I thought that meant it had found the firmware and failed to load it. I think it just means it's not there
<samueldr>
they're part of firmwareLinuxNonfree
<dhess>
samueldr: thanks
<clever>
or maybe hardware.enableAllFirmware
<clever>
try one at a time, and check current-system before you reboot
<dhess>
yeah does enableAllFirmware encompass that?
<clever>
clever@c2d ~ $ perror 2
<clever>
OS error code 2: No such file or directory
<clever>
dhess: the -2 at the end means not found
<clever>
and lines 9/10 mean the kernel half supports versions 30 thru 34
<clever>
they change the device<->kernel api with every version
<samueldr>
uh, or
<dhess>
looks like they're more or less the same
<dhess>
clever: ahh good point
<samueldr>
clever: looks like allFirmware only adds broadcom-bt-firmware for 18.03
blankhart has joined #nixos
<samueldr>
still the same on master, good to know
wchresta has quit [Remote host closed the connection]
joehh has quit [Ping timeout: 265 seconds]
<dhess>
been a loooong time since I messed with Linux WiFi. I'm probably going to regret this.
<samueldr>
:)
<samueldr>
I feel I have been lucky all my life with this
<clever>
ive had the fun of trying to connect to wpa for the first time with zero warning and not having wpa_supplicant installed :P
<dhess>
hostapd is what everyone is using for creating APs with NixOS, right?
<clever>
yeah
<dhess>
clever: have you tried it with multiple SSIDs?
<dhess>
ESSIDs, whatever
klntsky has quit [Ping timeout: 250 seconds]
<clever>
dhess: once wpa_supplicant is installed, its trivial to have multiple networks and priorities
<clever>
my laptop will prefer the cellphone hotspot, even if its already on the home wifi
<dhess>
clever: I mean as an AP
<clever>
dhess: not yet
<dhess>
ok thanks
<clever>
i dont run my AP's from linux currently
<dhess>
me neither, just contemplating it.
<dhess>
clever: are you using Ubiquiti stuff by any chance?
<clever>
dhess: a old as crap dlink router with the dhcp server disabled :P
<clever>
g band only
<mdash>
ubnt kit is so nice.
klntsky has joined #nixos
<dhess>
hehe
jperras has quit [Quit: WeeChat 2.2]
<dhess>
cool, BT and 802.11 firmware now loaded. Thanks all!
<clever>
dhess: i have also had the fun of getting firmware loading in the initrd, without udev
xy2_ has quit [Ping timeout: 240 seconds]
<fpletz>
dhess: nice
<dhess>
fpletz: sorry for the false summoning :)
pie_ has joined #nixos
<dhess>
clever: oi, don't even want to think about it. Messing with initrd is never fun
<fpletz>
samueldr: that's weird, maybe we should add an enable option for the linux nonfree firmware? most people need it anyway
<clever>
dhess: at the time, i was making new initrd's every week :P
<fpletz>
and it' easier to find
<clever>
dhess: doing fun things like copying the entire os to ram at boot, over wifi
<fpletz>
dh
<fpletz>
dhess: no problem :)
<dhess>
so I bought an PC Engines apu3c4 and I'm now running NixOS on it. I'm tempted to use it to replace my OpenWRT travel router. It's quite a bit larger but still small enough to fit in the backpack.
<samueldr>
fpletz: it's in addition to all redistributable, not sure if having *only* non-redistributable active makes sense
<adamCS>
Hey all. I'm using nix (2.0.4) on OS X (10.13.6) and running nix-shell. I have a different machine with the same versions and things there are working. The error is "builder for '/nix/store/XXX-nixpkgs-YYY-src.drv/' failed due to signal 4..." and I'm not sure how to debug further. Any ideas would be most helpful!
<dhess>
it would be so much nicer just to `nixos-rebuild switch` when I want to configure it for a new network, rather than using the LuCI UI
<clever>
dhess: i have turned my laptop into a wifi router before, when the hotel didnt have wifi, only an ethernet jack
simukis has quit [Ping timeout: 276 seconds]
<samueldr>
fpletz: most users desiring that would instead cherry-pick the exact package into hardware.firmware imho
<dhess>
clever: yeah that kind of stuff is fun :)
<clever>
dhess: and i was insane then, i did the entire setup imperatively, just manually typing in iptables commands and setting static ip's at both ends
<clever>
the kind of junk that is lost at a simple reboot! :P
pie__ has quit [Ping timeout: 240 seconds]
<dhess>
clever hehehe... reckless youth
<clever>
and thats when i ran gentoo
softinio has quit [Quit: Connection closed for inactivity]
sir_guy_carleton has quit [Ping timeout: 264 seconds]
<dhess>
clever: that seccomp fix for ntp seems to have done the trick. ntpd has been running for a few hours now with no issues. Before that patch it would crash within about 45 min.
<clever>
dhess: the crash happens once it has computed the drift rate and it tries to update the drift file on-disk
<EXCEPTS>
This channel has been hacked by Australia's #1 hacker Simon 'eVestigator' Smith https://evestigatorsucks.com/
<EXCEPTS>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
<EXCEPTS>
I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
EXCEPTS has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<dhess>
you must be really desperate for customers if you're spamming irc.
<HeinzBoettjer>
This channel has been hacked by Australia's #1 hacker Simon 'eVestigator' Smith https://evestigatorsucks.com/
<HeinzBoettjer>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
HeinzBoettjer has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<{^_^}>
[nixpkgs] @LnL7 pushed to master « Revert "nixos/disnix: fix broken service because of rename" »: https://git.io/fNPzT
UnAmazing has quit [Ping timeout: 276 seconds]
wpcarro has joined #nixos
sbdchd has joined #nixos
grumble216 has joined #nixos
<grumble216>
This channel has been hacked by Australia's #1 hacker Simon 'eVestigator' Smith https://evestigatorsucks.com/
<grumble216>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
<grumble216>
I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
grumble216 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<d1rewolf>
someone recently shared a nix nixops file to quickly launch a nixos instance in ec2. anyone have one like that to share?
<ptx00>
This channel has been hacked by Australia's #1 hacker Simon 'eVestigator' Smith https://evestigatorsucks.com/
<ptx00>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
<ptx00>
I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
ptx00 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<d1rewolf>
clever: that's it. Thanks!
Guest41575 has joined #nixos
<Guest41575>
This channel has been hacked by Australia's #1 hacker Simon 'eVestigator' Smith https://evestigatorsucks.com/
Guest41575 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Ping timeout: 244 seconds]
ghasshee has quit [Remote host closed the connection]
Kim has quit [Quit: WeeChat 2.1]
Kim has joined #nixos
Anton-Latukha has quit [Quit: Leaving.]
kyren_ has joined #nixos
kyren has quit [Ping timeout: 245 seconds]
<jasongrossman>
Hi all. My system has started crashing during nixos-rebuild switch! Is there a known bug that has that symptom? If not, I'll post my config.
<iqubic>
jasongrossman: What error did you get?
<iqubic>
Post the exact error, and not the config.
<jasongrossman>
iqubic: The exact error is a sudden reboot (which doesn't complete successfully, but that's not surprising).
<iqubic>
Why did it reboot? Did you ever tell it to reboot?
<jasongrossman>
No.
<iqubic>
nixos-rebuild switch should *NEVER* reboot ever.
<clever>
did it actually reboot, or did the screen just go blank?
<infinisil>
It can happen when filesystems aren't set up correctly
<jasongrossman>
clever: It showed the green systemd message list that you get during startup ... or part of it.
<jasongrossman>
infinisil: I'm using ZFS, FWIW.
<clever>
that could just have been it switching to text mode because X quit
<jasongrossman>
clever: Ah, yes, very good.
<clever>
a common problem is that it restarts dbus which crashes your gui session
<iqubic>
jasongrossman: Try running "uptime"
<jasongrossman>
clever: Cool. Progress. :-)
<jasongrossman>
iqubic: Will do.
<iqubic>
Just see if it actually rebooted recently.
<jasongrossman>
clever: However, it ALSO hangs (it's just that I thought that was a secondary symptom).
<clever>
jasongrossman: i have had it hang on one of my recent updates also
<jasongrossman>
clever: I haven't tried accessing it from a separate tty yet.
<jasongrossman>
clever: Ah. Interesting.
<jasongrossman>
clever: Maybe I'll try stable with the same config file.
<clever>
it tends to only ever happen when changing versions
<{^_^}>
[nixpkgs] @kyrias opened pull request #44433 → inter-ui: init at 2.5 → https://git.io/fNPa9
<jasongrossman>
clever: That's good.
<jasongrossman>
clever: That gives me something to work on. I'll report back later. :-)
<jasongrossman>
clever: Also a bunch of updates to unstable have come in very recently, so I'll see whether installing those helps.
<mikky>
hi, trying to install NixOS to another partition from Arch but keep getting "error: while setting up the build environment: getting attributes of path '': No such file or directory". Apparently I'm not the only one with this problem, people seem to have the same issue at least with Debian.
iqubic has quit [Quit: leaving]
<clever>
mikky: and is there a reason you cant boot the liveusb?
<mikky>
yes, clever, there is.
<clever>
what is that reason?
<mikky>
is it important?
<clever>
mikky: nixos-install just works better when ran from another nixos machine
<mikky>
well, no, I don't have physical access to the box
<clever>
ahh
<clever>
server in a datacenter?
<mikky>
something like that, yes
Guest57761 has quit [Ping timeout: 268 seconds]
<clever>
mikky: exactly the kind of use-case i wrote my kexec tools for
<clever>
this allows you to upload a tar file to the system, run a few shell commands, and then nixos is running entirely from ram, no need for physical access
<clever>
then you just continue as-if you had started the liveusb
jasongrossman has quit [Ping timeout: 240 seconds]
sbdchd has quit [Remote host closed the connection]
jasongrossman has joined #nixos
<mikky>
Interesting. Trying to wrap my head around what you mean by kexec.
<clever>
modern linux systems support kexec, which lets you just execute a new kernel + initrd and replace the currently running OS
<mikky>
so it does replace the current kernel
<jasongrossman>
rebuild-switch still crashes after those updates. At least I understand that it's not rebooting, now. The first error message relates to Apache httpd, so I'll try removing that from my config. And if that doesn't work then I'll try switching my channel to stable.
<clever>
and the scripts in that git repo will generate a kernel+initrd for nixos, with the full rootfs inside the initrd