gchristensen changed the topic of #nixos to: NixCon 2018 CfP is now open! https://nixcon2018.org/ || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon
<{^_^}> [nixpkgs] @basvandijk pushed to master « haskellPackages.sexpr: fix build »: https://git.io/fN6F8
<{^_^}> [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?
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/d0c868ec17c (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<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
<srk> kalbasit: you can also use https://github.com/grafted-in/nixops-manager/
<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
<kalbasit> that works as well
<clever> as for pinning the nixpkgs rev, use -I with create and/or modify
<clever> that will override the NIX_PATH uses at deploy
<srk> (but you can't pin nixops itself that way)
<clever> correct
<srk> which is also handy
<clever> and if you keep the nixops config seperate from the nixos config, you can just eval the nixos configs like this
silver has quit [Read error: Connection reset by peer]
<srk> nice :)
<kalbasit> oh I see now, it exports NIXOPS_STATE that's how it controls where the state is
<clever> then you get this
<srk> clever: exactly what I want to do - to know when it's safe to rebase / switch my systems :)
<clever> srk: yep, and i can see that extra-statsd fails to build now, so there is no point in trying to update
<clever> Setup: Encountered missing dependencies:
<clever> base ==4.10.*
<srk> hehe, just looking at that
<clever> i need to get off to bed, getting late now
<srk> same here, at least temperature is fine now
<srk> night o/
<clever> "2018-08-02 22:30:35 bedroom temp: 28.38c(83.08f), kitchen: 27.31c(81.16f), living room: 27.12c(80.83f), outdoor: 20.25c(68.45f), server: 30.75c(87.35f) VCC: over 4.5 volts portb: 00000000"
rouma7 has quit [Ping timeout: 248 seconds]
n0qqe has joined #nixos
noqqe has quit [Ping timeout: 240 seconds]
n0qqe is now known as noqqe
v0|d has quit [Remote host closed the connection]
tertle||eltret has quit [Quit: Connection closed for inactivity]
orivej has quit [Ping timeout: 265 seconds]
Supersonic has quit [Ping timeout: 255 seconds]
fresheyeball has joined #nixos
<fresheyeball> any good way to make charts in pandoc?
lassulus_ has joined #nixos
Supersonic has joined #nixos
tstat has quit [Quit: ZNC 1.6.5 - http://znc.in]
drakonis has joined #nixos
<{^_^}> [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
<joepie91> :p
<samueldr> Profpatsch worked a bit on the issue here https://github.com/NixOS/nixpkgs/pull/44110
<{^_^}> #44110 (by Profpatsch, merged): Improve lib/trivial docstrings & formatting
<samueldr> though, there's still the issue of bikeshedding docstring
sir_guy_carleton has quit [Quit: WeeChat 2.0]
sir_guy_carleton has joined #nixos
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
johnw has quit [Ping timeout: 260 seconds]
sam__ has quit [Quit: sam__]
v0|d has joined #nixos
<iqubic> Is there a way to download the latest version of emacs from here and compile it with nix:
<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?
tzemanovic has joined #nixos
<teto1> ,locate bin llc
<{^_^}> 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
<samueldr> oops
<iqubic> ,
<{^_^}> All commands: -A IFD NUR arm ask bootfull callPackage channels cloudfront context dnw error escape" escape'' escape-special fancy-uninstall github hardware haskell help home-manager library logs nix-env-r nix-info nix-repl nixGL nixcon nixeval nixpkgsVersion not-os notfound outPath overlay paste pills pinning pr profiling pure-eval python qt replaceModule runtimeDeps stateVersion stuck thesis timer todeclarative tofu unfree unstable which-channel whomade
<samueldr> exactly :)
<teto1> ^^
<samueldr> teto1: ,locate bin has a bit more guards to remove all results not inside $out/bin/
<samueldr> otherwise
<samueldr> ,locate man1
<samueldr> (that computer now hates me)
<iqubic> So, how can I get emacs26 on my NixOS machine? And how can I make sure that EXWM uses emacs25.
<{^_^}> Found in packages: R, f3, bb, bc, ed, ne, mg, and 2424 more
<iqubic> *26
tertle||eltret has joined #nixos
<tertle||eltret> whats a good remote desktop client for windows to Nixos cxonnection?
<iqubic> When will emacs26 hit Nix-Stable? When will I be able to use EXWM with Emacs26?
<iqubic> I want to have NixOS with EXWM running emacs 26
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/d0c868ec17c (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-18.03)
aarvar has joined #nixos
<iqubic> So emacs is a big package, and will be hard to update to 26.
<drakonis> but there is 26
<iqubic> In the Nix Repos?
<iqubic> Where?
<drakonis> yes
<iqubic> How do I get this?
<drakonis> it is the default
<Xal> you could always overload the package to the new version locally
<drakonis> its not on 18.03
<iqubic> Oh. Is it on unstable?
<samueldr> looks like it is
<samueldr> so, iqubic, if you don't jump on unstable meanwhile, it'll definitely be 26 in 18.09
<iqubic> samueldr: That's great.
<iqubic> I am on unstable. It's just that I am using EXWM.
<iqubic> I don't know how to tell EXWM that I'm using the emacs from unstable, instead of the emacs 25.
<iqubic> "services.xserver.exwm.enable = true" in my configuration.nix.
<drakonis> uh
<iqubic> What?
<drakonis> its just an newer emacs version?
hiroshi- has joined #nixos
<iqubic> Did you look at the exwm.nix that I linked to?
<iqubic> It seems to want to install its own version of emacs?
<drakonis> it doesn't?
<drakonis> it installs whatever's the default
<iqubic> Oh.
jperras has quit [Ping timeout: 268 seconds]
<samueldr> exwm-emacs = pkgs.emacsWithPackages packages;, this'll use emacsWithPackages = emacsPackagesNg.emacsWithPackages;
<drakonis> so if you override it
<samueldr> which in turn is emacsPackagesNg = emacs26PackagesNg;
<drakonis> it'll be a non issue
<samueldr> and then it can be followed up to emacs26
<iqubic> How do I make emacs 26 the default? Do I need to do something fancy?
<drakonis> if you override it with emacs 26, it'll be the default
<drakonis> as 25 got moved out of the default into a separate package
hiroshi has quit [Ping timeout: 240 seconds]
hiroshi- is now known as hiroshi
<iqubic> Because I'd like to avoid pulling all of my packages from unstable, and just grab this from unstable only.
<drakonis> why?
<iqubic> should I just remove my 18.03 stable branch and get all of my packages from unstable?
<samueldr> ah, so your system isn't following unstable, right?
<iqubic> samueldr: I am followin unstable, but it isn't the default.
<iqubic> termbin.com/sqxd
<iqubic> just look at the first few lines there.
<samueldr> yeah, your system is on stable, and you are using a few things from unstable, so your system doesn't really know about unstable in the end
<samueldr> (the modules system still uses `pkgs` from the stable channel)
<iqubic> Right.
<iqubic> so how hard would it be to switch to unstable for everything?
<iqubic> would I keep running into the error of "nix-daemon out of memory" when I do the rebuild?
<iqubic> Would all of my packages break?
<iqubic> Or is there a way to just override exwm.nix?
<samueldr> iqubic: untested, this overlay maybe could do it https://gist.github.com/samueldr/f98f592059302232858857fcc2a3bc08
<samueldr> ah
<iqubic> what did you discover?
<samueldr> no, I think it'd be find
<samueldr> (still untested)
<samueldr> I thought that `packages = epkgs: ...` could be trouble, but after re-reading it it shouldn't
<iqubic> So, how do I use this overlay?
<iqubic> Something about putting nixpkgs.overlays = ... into my configuration.nix?
<samueldr> exactly
<samueldr> the concept of overlays is a thing; and then there's the way overlays are configured in nixos/nixpkgs
<iqubic> And can I reference a file in there?
phreedom has quit [Remote host closed the connection]
<samueldr> so yeah, one of the way to configure overlays is to add it to `nixpkgs.overlays` in the nixos configuration
<samueldr> iqubic: what do you mean?
phreedom has joined #nixos
<iqubic> Like I have configuration.nix and exwm-overlay.nix both in /etc/nixos/ how do I reference the file?
<iqubic> samueldr: How do I do this?
<samueldr> configuration.nix has a special configuration option named `imports`
<samueldr> (give me a few secs, finding a link)
<samueldr> ah right
<samueldr> duh
<samueldr> see how it imports ./hardware-configuration.nix?
<samueldr> add a line to that list ./exwm-overlay.nix
dbmikus has joined #nixos
drakonis has quit [Remote host closed the connection]
drakonis has joined #nixos
<iqubic> And then what do I set the value of nixpkgs.overlay to?
<iqubic> Or is that all I need to do to create the overlay?
hamishmack has joined #nixos
<samueldr> those lines are all that are needed for the configuration
<samueldr> (still untested)
<iqubic> And now I get to test it.
<samueldr> adding those to your configuration.nix, verbatim, should make that overlay work
<iqubic> Let's see if it actually does.
<iqubic> And we get errors.
<samueldr> please share both your configuration.nix and exwm-overlay.nix
<samueldr> (I think I know, but not 100% positive)
<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
rouma has joined #nixos
<iqubic> it does answer to --version.
<{^_^}> [nixpkgs] @adisbladis merged pull request #44153 → nodejs: 10.6.0 -> 10.7.0 → https://git.io/fNz8X
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/fNivu
<iqubic> Still returns 25.3.1
<iqubic> Which pisses me off.
<samueldr> how did you install emacs?
<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.
<djtyml> reflex-platform/project/default.nix https://gist.github.com/7c1655dd6a31afcd1bf7bcc661f6f09f
<Myrl-saki> I'm searching Xeon Phi compilation but got nothing.
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hakujin3 has joined #nixos
rouma has quit [Ping timeout: 265 seconds]
rschm has quit []
hakujin3 has quit [Ping timeout: 276 seconds]
Tiez has joined #nixos
reinzelmann has joined #nixos
<iqubic> So trying to get nixpkg overrides to work is being a bit of a pain.
mahalel_ has quit [Remote host closed the connection]
<iqubic> Is there a way to get nix files to output text to either a file or the console, for debugging purposes?
qwerty_asdf has quit [Quit: qwerty_asdf]
Fare has quit [Ping timeout: 260 seconds]
katyucha has joined #nixos
michiel_l has joined #nixos
Wharncliffe has quit [Ping timeout: 244 seconds]
drakonis has quit [Remote host closed the connection]
kyren has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #44384 → tldr: add support for darwin → https://git.io/fN6FV
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fNifp
reinzelmann has quit [Quit: Leaving]
johnw has joined #nixos
<{^_^}> [nix] @aszlig opened pull request #2326 → Fix symlink leak in restricted eval mode → https://git.io/fNiJJ
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
johnw has quit [Ping timeout: 256 seconds]
worldofpeace has quit [Remote host closed the connection]
jasongro` has joined #nixos
<tertle||eltret> evenin fellas
worldofpeace has joined #nixos
<ekleog> Hmm… any idea why I'm getting “store path mismatch in file downloaded from […]” with `builtins.fetchTarball { url = …; sha256 = …; }`?
<ekleog> reproducer: nix-shell -E 'builtins.fetchTarball { url = https://github.com/mozilla/nixpkgs-mozilla/archive/cf7bc3ac8c482461d9df1b799b80ee79911af85b.tar.gz; sha256 = "18rqaanwsmmw81a4gsw98dvjwzbnvj27drhw5c6n6bi1xmx7x8sb"; }'
<ekleog> 'evening tertle||eltret :)
Guanin has quit [Ping timeout: 248 seconds]
otti has quit [Ping timeout: 276 seconds]
katyucha has quit [Ping timeout: 240 seconds]
vmandela has joined #nixos
Guanin has joined #nixos
<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?
CcxWrk has quit [Quit: ZNC 1.7.1 - https://znc.in]
hamishmack has joined #nixos
CcxWrk has joined #nixos
<iqubic> Where can I see the derivations for the packages in this branch? https://nixos.org/channels/nixos-unstable
<ekleog> Myrl-saki: it's also used for `when` / `assert`, though :p
<ekleog> s/when/with/
<Myrl-saki> ekleog: Right, and `with`
<Myrl-saki> ekleog: Oh. :P
<ekleog> heh ^^
<Myrl-saki> I was about to open up nix repl to see what "when" is for.
<ekleog> just a brain fart
<{^_^}> [nixpkgs] @peti merged pull request #44380 → Add missing dependencies for swi-prolog → https://git.io/fN6Vt
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/fNiIU
thc202 has joined #nixos
FRidh has joined #nixos
<iqubic> So according to the official nixpkgs repo, if I'm pulling things from nixpkgs-unstable, I should be pulling emacs 26.1
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:
ThatDocsLady has joined #nixos
<etu> FRidh: fetchurl?
johnw has joined #nixos
<iqubic> That trace statement claims that the emacs being pulled from the unstable branch is actually 25.1? What the heack???
CcxWrk has quit [Excess Flood]
CcxWrk has joined #nixos
orivej has joined #nixos
alexherbo2 has joined #nixos
johnw has quit [Ping timeout: 265 seconds]
<FRidh> etu: important aspect: in this case I don't want to use a hash
<FRidh> etu: ah nevermind, builtins.fetchurl doesn't need it. Perfect :)
<ekleog> Hmm… any idea why I'm getting “store path mismatch in file downloaded from […]” with `builtins.fetchTarball { url = …; sha256 = …; }`?
<ekleog> reproducer: nix-shell -E 'builtins.fetchTarball { url = https://github.com/mozilla/nixpkgs-mozilla/archive/cf7bc3ac8c482461d9df1b799b80ee79911af85b.tar.gz; sha256 = "18rqaanwsmmw81a4gsw98dvjwzbnvj27drhw5c6n6bi1xmx7x8sb"; }'
igo95862 has quit [Quit: igo95862]
djtyml has quit [Remote host closed the connection]
<Myrl-saki> Does nix-copy-closure --to use the nix daemon?
<etu> FRidh: Didn't know that aspect of use or that it didn't need a hash. TIL and perfect for you :)
Ariakenom has joined #nixos
<srhb> ekleog: Because the hash is wrong?
<iqubic> Alright... I am confused as all heck.
<iqubic> `nix-env -f "<nixos-unstable>" -iA emacs` installs emacs 25.3
<Myrl-saki> How do I test if I'm a trusted user?
<iqubic> Why is that??
<srhb> iqubic: Presumably your nixos-unstable channel is not updated?
<iqubic> That github link clearly shows that the version of emacs in the unstable branch is 26.1
<srhb> iqubic: Yes, that's correct.
<iqubic> How do I update my channel?
<srhb> nix-channel --update channelname
alexherbo2 has quit [Ping timeout: 265 seconds]
<iqubic> srhb: Thank you for trying to help me.
<srhb> iqubic: Sure, no problem. :)
<iqubic> And that fixed my issue.
<srhb> Easy one, nice to start the day with. ^^
<iqubic> And that solved my issue.
<iqubic> And I was able to fix my overlay that was also broken too.
<iqubic> It was because of this issue that my overlay was broken.
schjetne has joined #nixos
<srhb> Double win. :)
<{^_^}> [nixpkgs] @jfrankenau opened pull request #44387 → bcal: 1.8 -> 1.9 → https://git.io/fNiL4
<iqubic> yeah. Basically I wrote an overlay to tell the EXWM.nix file that I wanted to pull emacs from unstable, and not from the stable branch.
<srhb> Right.
periklis` has joined #nixos
<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
<srhb> (But if you inline all your overlays in configuration.nix that's probably not a huge win)
<iqubic> I didn't actually inline that.
<iqubic> I put that in a different file and just placed it in the imports list at the top of my configuration.nix
<srhb> Right.. :)
<iqubic> But I'm not sure what you are saying about an overlay that only adds unstable to the tree.
alexherbo2 has joined #nixos
<srhb> I mean, right now you have to let unstable = import .. for every overlay where you want to use an unstable package
<iqubic> I'm suprised that the overlay worked at all.
periklis has quit [Ping timeout: 260 seconds]
mkaito_ has quit [Read error: Connection reset by peer]
<iqubic> srhb: That is right.
<srhb> But you could add an unstable attribute to your regular nixpkgs by using an overlay
<srhb> eg (self: super: { unstable = import ... };
jimby8 has joined #nixos
<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/
<jimby8> Read what IRC investigative journalists have uncovered on the freenode pedophilia scandal https://encyclopediadramatica.rs/Freenodegate
jimby8 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<srhb> Now every other overlay can refer to that unstable attribute
mkaito_ has joined #nixos
dvim has joined #nixos
<Profpatsch> iqubic: There’s basically just two places where you can find general nix functions: The `builtins` section of the manual and nixpkgs/lib
<srhb> iqubic: Makes sense?
<iqubic> I should do that.
<Profpatsch> And it’s small enough that you can skim them all in 30 minutes.
<iqubic> srhb: Yeah. That makes a lot of sense.
mariatsji has quit [Ping timeout: 260 seconds]
<Profpatsch> iqubic: Please open issues if the docstrings are confusing for functions, and tag me.
<iqubic> See, the only way I'm installing emacs is by saying that I want EXWM and letting nix figure out the deps.
<iqubic> One of the deps of EXWM is emacs. I don't explicitly put emacs into my systemPackages.
<iqubic> Hence why I'm suprised to even have emacs 26.1 installed at all.
tertle||eltret has quit [Quit: Connection closed for inactivity]
<srhb> iqubic: The exwm NixOS module adds: environment.systemPackages = [ exwm-emacs ];
<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
<Myrl-saki> Um
<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.
ihar has joined #nixos
palo has quit [Ping timeout: 256 seconds]
<Myrl-saki> Oh, WTF
<Myrl-saki> Since when
<Myrl-saki> Ah, June 14.
mariatsji has joined #nixos
<iqubic> So how can I fix my syntax errors?
<srhb> Myrl-saki: Since not yet, unfortunately.
<srhb> Myrl-saki: (I don't think that's in 2.0.4)
<Myrl-saki> srhb: Ah. :/
<srhb> Might want to check though
<srhb> iqubic: I can't see any syntax error in your paste
palo has joined #nixos
palo has quit [Changing host]
palo has joined #nixos
<Myrl-saki> What alternative should I use to push drvs to s3 instead?
<srhb> Myrl-saki: If you find out, I'd like to know. :)
<srhb> I think nix copy can copy drvs _to_ but not drvs _from_ ?
<Myrl-saki> My internet is slow enough that even drvs push slowly to my remote builds. Lmao
<Myrl-saki> srhb: Maybe. Let me check our bucket.
<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: ...
<{^_^}> nix#1639 (by LnL7, closed): nix copy doesn't work for drv files
<Myrl-saki> srhb: Maybe not.
<srhb> iqubic: Not as far as I can see?
<srhb> iqubic: Yours: {...}: nixpkgs.overlays ... -- mine: {...}: { nixpkgs.overlays ...
<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
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNiqP
nikki93 has joined #nixos
<srhb> iqubic: I forget which one is exwm.nix
<iqubic> srhb: It doesn't matter.
<nikki93> hey all so i accidentally forgot to enable wpa_supplicant while installing new system
<rain1> i solved it by sourceing etc profile.d nix.sh
<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.
<rain1> export NIX_PATH=/home/rain1/Programming/nixpkgs
<srhb> iqubic: You could read it and ask qualifying questions here (and maybe even take notes so we can improve the docs?) :)
<srhb> rain1: You probably want export NIX_PATH=nixpkgs=/home/rain1/Programming/nixpkgs
<nikki93> yas it worked srhb ur the best
<srhb> There's some support for "bare lookups" in which case you should just have reffered to Programming, not Programming/nixpkgs
<srhb> nikki93: Woo :) 10 points for Hufflepuff.
<nikki93> i should make a wall where i write the names of all the people that helped me on IRC
<nikki93> lol
<nikki93> i ran linux 2007 to 2014, then mac for a while. excited to do linux as laptop train again
<nikki93> mostly was doing arch and debian before
<srhb> nikki93: Nice :) I had a stint with OS X around 2010 I think.
<srhb> It's good to be back.
<Myrl-saki> I swear
<Myrl-saki> My internet is slow enough that nix-copy-closure on drvs suffer.
fiddlerwoaroof has quit [Read error: Connection reset by peer]
goibhniu has joined #nixos
<rain1> it seems like I have to use nixos
<rain1> this isn't working well on arch
<Myrl-saki> Okay...
<Myrl-saki> myrl@myrl:~/Dev/skynet[nixops-nix-build••]$ nix-store -qR $(nix-instantiate ./jobs) | xargs du -chs | grep total
<Myrl-saki> warning: you did not specify '--add-root'; the result might be removed by the garbage collector
<Myrl-saki> 2.9M total
<{^_^}> [nixpkgs] @Mic92 merged pull request #44387 → bcal: 1.8 -> 1.9 → https://git.io/fNiL4
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNimZ
<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
fiddlerwoaroof has joined #nixos
<rain1> just for asingle user
<nikki93> fixed
alexherbo2 has joined #nixos
<Myrl-saki> Oh wow.
<Myrl-saki> 561232 bytes (561 kB, 548 KiB) copied, 0.0949799 s, 5.9 MB/s
<Myrl-saki> 2097288 bytes (2.1 MB, 2.0 MiB) copied, 0.0620268 s, 33.8 MB/s
<Myrl-saki> The top one is --export | gzip
<Myrl-saki> That's pretty amazing.
<srhb> rain1: Later in the day gchristensen might be around, he knows a lot about the installation process, if no one else has an idea.
<rain1> thanks
alexherbo2 has quit [Client Quit]
<Myrl-saki> I think the overall speedup came from the .sh files, not the .drv?
alex`` has joined #nixos
<iqubic> srhb: What is your question. I seem to have missed it.
gspia has joined #nixos
<srhb> Aside from "what is the meaning of everything" I don't think I have any questions currently.
patrl has joined #nixos
<Myrl-saki> srhb: 42?
<iqubic> rain1: Sorry. Meant to mention you. What is your question about the installation?
<srhb> Myrl-saki: :)
<iqubic> srhb: wrong person.
<rain1> well I just built nix from source and im having some problems using it
<rain1> i wonder ifI did the configure flags wrong
<iqubic> Are you using NixOS?
<rain1> no, arch linux
Tiez has quit [Quit: WeeChat 2.2]
<iqubic> What problems are you running into.
<rain1> i was able to build "hello"
<iqubic> Good.
<nikki93> srhb: do you just run nixos nix commands as normal user prefixed with sudo when needed
<rain1> but i can't figure out how to get an environment where i can run it
<rain1> i can run it manually
<iqubic> Ah
<rain1> this is one of my attempts
<srhb> nikki93: Hmm. I think the only things I ever need sudo for is nixos-rebuild switch/boot and nix-collect-garbage --delete-older-than 7d
<nikki93> nix-channel --list seemed to need it
Dagger has joined #nixos
<iqubic> rain1: what does "echo $PATH" return?
<srhb> nikki93: Right, it's a good idea to only have channels on one user (root)
<srhb> nikki93: I don't use channels though, so I don't remember that clearly :-)
<nikki93> ic
<rain1> in path ive got /home/rain1/nix/bin
<rain1> thats why i can use the nix, nix-env tool and stuff
<sphalerite> nikki93: you shouldn't need to set the user shell manually unlessy ou want zsh or something. Make sure to set isNormalUser to true
<iqubic> rain1: What is the output of "ls /nix"?
<rain1> well /nix doest exist but ~/nix i have all the hashes in there + bin I guess
Ross has quit [Quit: ZNC - http://znc.in]
<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> ./configure --prefix=/home/rain1/nix --with-store-dir=/home/rain1/nix --localstatedir=/home/rain1/nix/var --enable-gc
<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.
<srhb> Sounds horrible. xD
<rain1> GEN doc/manual/manual.is-valid
<rain1> I/O error : Attempt to load network entity http://docbook.org/xml/5.0/rng/docbook.rng
<rain1> I get that build fail again when not passing the other configure flags
hakujin3 has quit [Ping timeout: 260 seconds]
<Myrl-saki> What would be nice is if you can add environment.systemPackages = [ /nix/store/foo ];
<srhb> Myrl-saki: :|
<srhb> Myrl-saki: How is that nice
<Myrl-saki> srhb: Just in the case of --export/--import.
<srhb> Myrl-saki: environment.pathsToLink in that case...
kiloreux has joined #nixos
<srhb> Well, almost.
<srhb> Might be better to just manipulate the path directly..
<srhb> Or buildEnv something that contains them
<Myrl-saki> srhb: Want to hear something more disgusting? Having a `default.nix` in the store path exactly so that you can do that. :P
<kiloreux> Hey, How can I make a package always re-installed ? Even if it's already installed. Is there a way to force it or anything similar ?
<Myrl-saki> srhb: Probably has something like `runCommand "ln -s ./. $out"`
knupfer has quit [Ping timeout: 240 seconds]
<Myrl-saki> AAAAA I'm disgusted with my own self now.
<adisbladis[m]> kiloreux: Why would you want to?
<kiloreux> adisbladis[m], basically my package is a hack that I want it to run everytime. Not really a package.
<srhb> Myrl-saki: Good, we won't need to get immediate help for you then. :-)
<adisbladis[m]> kiloreux: With the purity nix provides you wouldn't gain anything from "reinstalling" each time
<srhb> (I do something like that, but I'm deluded)
<Myrl-saki> srhb: :D
magnetophon has joined #nixos
<kiloreux> Like I said it's just a dirty hack that operates outside /nix/store. And I have formed it to a package, is there a way to make it not ?
<kiloreux> Removing it re-installing is one idea but doesn't seem too clean for me
<kiloreux> So I was looking if there's a clean nix way to force reinstall everytime
Lycurgus has joined #nixos
<Lycurgus> wow 823
<Lycurgus> i remember when it was like 40
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<srhb> Lycurgus: 2018 year of NixOS
<srhb> :)
<Lycurgus> yeah, i was referring to c. 2010
Coyin has joined #nixos
Selfsigned26 has joined #nixos
<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.
joehh has joined #nixos
<sphalerite> kiloreux: passing --leq to nix-env
<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
<kiloreux> Does that mean if I have any postInstall script inside the package it will run again ?
<sphalerite> kiloreux: no, postInstall is part of building
<sphalerite> kiloreux: you can't do that
<kiloreux> I didn't know that thank you sphalerite . What part of the phases will run when I trigger '-i' option ?
<Lycurgus> 42 docker pkgs, that's nice, always like to see that numerology thing
<srhb> kiloreux: None.
<sphalerite> kiloreux: none
<kiloreux> Ahhh :(
<sphalerite> kiloreux: they're all just part of the build. Packages don't get rebuilt on install.
<sphalerite> You'll want something completely different.
<sphalerite> Not nix, probably.
<sphalerite> Maybe home-manager
johnw has joined #nixos
<kiloreux> Thank you very much sphalerite
<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.
<sphalerite> nvidia always finds a way
<nikki93> but it's not in the stable version i have
<nikki93> i was thinking then maybe i could just directly reference this package in my config? from github?
<sphalerite> nikki93: you can do nix-env -f channel:nixos-unstable -iA luakit to just install it in your profile
sigmundv has joined #nixos
<nikki93> how does that work if i were to put it in my configuration.nix tho
<sphalerite> to refer to it in your config you could do something like (import <nixos-unstable> {}).luakit)
<sphalerite> and add the nixos-unstable channel using sudo nix-channel --add https://nixos.org/channels/nixos-unstable
<Myrl-saki> myrl@myrl:~/Dev/foo[nixops-nix-build••]$ nix-store --generate-binary-cache-key arstarst arstarst arstarstartras
<Myrl-saki> me testing if it outputs to stdout
<Myrl-saki> lol
<nikki93> sphalerite: i think that switched me to the unstable channel
<sphalerite> nikki93: sudo nix-channel --list
<nikki93> the only entry
<sphalerite> huh
<nikki93> the command i ran tha tyou mentioned had no alias on the end
<nikki93> it's ok, just thinking no w how to return the stable one and add this as new :)
<sphalerite> ok try the same again with nixos-18.03 instead of unstable, and then again but with nixos-unstable added on the end :)
<nikki93> :)
mmercier has joined #nixos
<sphalerite> Ugh. The memory consumption bug is really annoying.
aarvar has quit [Ping timeout: 248 seconds]
<Myrl-saki> sphalerite: ++. Nixops fails on a t2.nano instance, on an empty configuration.
<sphalerite> I think nixUnstable fixes it? But "unstable" is scary :p
<nikki93> sphalerite: ok that all worked -- quick q -- so now i do (import <nixos-unstable> {}).luakit -- how could i add to its buildInputs?
<nikki93> it turn sout it's skipping a library that would be useful (enables HTTPS)
<Myrl-saki> Seems like nix copy isn't pushing again if I sign after the initial copy. :/
<sphalerite> nikki93: using overrideAttrs. But that sounds like a change that would be good to put in nixpkgs upstream as well!
<sphalerite> nikki93: would you be willing to make the change and PR it?
<nikki93> def -- gonna just test it tho
<sphalerite> Myrl-saki: there's nix copy-sigs I think
<sphalerite> yep
<Myrl-saki> Oh, I thought that was like ssh copy-id. Lol
smolboye has joined #nixos
<sphalerite> nikki93: in that case it's probably easiest to just make the change in a nixpkgs checkout and test it from there
<nikki93> sphalerite: does overrideAttrs add to a list or override the list
<sphalerite> nikki93: git clone -b nixos-unstable https://github.com/nixos/nixpkgs-channels nixpkgs
<Myrl-saki> Welps, still doesn't work, maybe I'm doing something wrong.
<nikki93> cool
<sphalerite> nikki93: luakit.overrideAttrs (orig: { buildInputs = orig.buildInputs ++ [foo]; })
<Myrl-saki> sphalerite: FWIW, it says "from"
<sphalerite> nikki93: then you can build your system with it by passing -I nixos-unstable=path/to/nixpkgs to nixos-rebuild
<sphalerite> Myrl-saki: try nix copy-sigs --store file:///your-binary-cache -s local
<Myrl-saki> Nope. :/
<Myrl-saki> It's also already on s3, btw.
<{^_^}> [nixpkgs] @dotlambda opened pull request #44390 → python.pkgs.keras: 2.2.0 -> 2.2.2 → https://git.io/fNicF
<sphalerite> Myrl-saki: nope how?
<Myrl-saki> sphalerite: Still says cannot add path due to lack of signature.
<Myrl-saki> Wait, let me try --all
<sphalerite> Myrl-saki: what about nix path-info --store s3:///… -s --all ?
<sphalerite> this might also be a caching issue, I'm never sure
<Myrl-saki> sphalerite: Is that supposed to show if a sig exists?
<sphalerite> Myrl-saki: oops, s/-s/--sigs/
<Myrl-saki> Ah.
<Myrl-saki> Found the problem.
<Myrl-saki> It has a different pubkey.
<Myrl-saki> I md5summed the privkeys.
<Myrl-saki> And it's correct.
manny has left #nixos ["return 0;"]
<Myrl-saki> sphalerite: Oh wait, what does --sigs show?
tzemanovic has joined #nixos
<sphalerite> Myrl-saki: the signatures
<Myrl-saki> Right, not the pubkey.
TweyIII has joined #nixos
<Myrl-saki> Hm. Seems like I need to fix something on my side.
<Myrl-saki> sphalerite: You're right.
TweyII has quit [Ping timeout: 268 seconds]
<Myrl-saki> How do I force redownload?
fendor has joined #nixos
simukis has joined #nixos
<Myrl-saki> rm ~/.cache/nix/binary-cache-v5.sqlite
<sphalerite> yeah
<Myrl-saki> Wtf. Still doesn't work with the sigs added.
fendor has quit [Remote host closed the connection]
<Myrl-saki> Oh wat jk
fendor has joined #nixos
alex`` has quit [Ping timeout: 260 seconds]
<Myrl-saki> Yay, works.
<Myrl-saki> sphalerite: Thanksies.
<sphalerite> \o/
abueide has quit [Ping timeout: 248 seconds]
ericsagnes has quit [Ping timeout: 265 seconds]
<mpickering> Has anyone tried using `language:nix` on travis?
<mpickering> It seems very slow compared with the normal way of doing Haskell ci
f0i has joined #nixos
MP2E has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Anton-Latukha closed pull request #43145 → del mesa-darwin: fossil (2012 version) → https://git.io/fNvBv
Coyin has quit [Ping timeout: 268 seconds]
Coyin has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #43127 → polkit: 0.113 -> 0.115 → https://git.io/fNeQL
<{^_^}> [nixpkgs] @xeji pushed 3 commits to staging: https://git.io/fNilk
patrl has quit [Ping timeout: 248 seconds]
Coyin has quit [Ping timeout: 248 seconds]
Coyin has joined #nixos
alex`` has joined #nixos
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
deepfire has joined #nixos
philippD has joined #nixos
apeyroux has quit [Ping timeout: 240 seconds]
patrl has joined #nixos
Orbstheorem[m] has left #nixos ["User left"]
fendor has quit [Ping timeout: 244 seconds]
<gchristensen> whats up rain1?
<rain1> I got this build error with nix
<rain1> it cant load a documentation file or something
<{^_^}> [nixpkgs] @gebner pushed 2 commits to master: https://git.io/fNi8p
<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
NightTrain has joined #nixos
<Lycurgus> #gf is not
<Taneb> It's seemed to slow down
nly has joined #nixos
alex`` has left #nixos ["WeeChat 2.2"]
nly has quit [Quit: Leaving]
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
vmandela has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @primeos pushed to master « signal-desktop: 1.14.4 -> 1.15.0 »: https://git.io/fNiB5
init_6 has joined #nixos
<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.
<{^_^}> [nixpkgs] @xeji pushed to master « pythonPackages.shippai: fix eval (typo) »: https://git.io/fNiRB
<goibhniu> yeah, I meant the python package lxml
<toppler> Ah, could try that.
carlosdagos has quit [Quit: Connection closed for inactivity]
TweyIV has joined #nixos
<{^_^}> [nixpkgs] @WilliButz opened pull request #44394 → nixos/prometheus-exporters: use nixos-fw chain → https://git.io/fNiRN
<rain1> anyone able to reproduce this problem?
TweyIII has quit [Ping timeout: 260 seconds]
TweyIV has quit [Ping timeout: 244 seconds]
TweyIV has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to master « androidStudioPackages.{dev,canary}: 3.3.0.2 -> 3.3.0.3 »: https://git.io/fNi0B
arahael1 has joined #nixos
arahael1 is now known as ArahaelPi
patrl has quit [Ping timeout: 240 seconds]
<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
<{^_^}> [nixpkgs] @xeji merged pull request #44391 → reaper: init at 5.93 → https://git.io/fNiBT
<{^_^}> [nixpkgs] @xeji pushed commit from @jfrankenau to master « reaper: init at 5.93 (#44391) »: https://git.io/fNi0H
<rain1> grep -r 'dockbook.org' . shows nothing
silver has joined #nixos
<sphalerite> rain1: one k less
<rain1> oops typo
<sphalerite> docbook
xy2_ has joined #nixos
<ajs124> rain1, it literally says "I/O error : Attempt to load network entity" in your bpaste
<toppler> goibhniu: Hey. Here's what I'm trying: https://pastebin.com/Xfz22SWG
<goibhniu> toppler: and what happens?
<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]
mariatsji has quit [Ping timeout: 240 seconds]
jasongrossman has joined #nixos
palo has quit [Quit: ZNC 1.6.5 - http://znc.in]
patrl has quit [Ping timeout: 244 seconds]
palo has joined #nixos
freeman42x]NixOS has joined #nixos
<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
<Myrl-saki> buffer 22
<rizary> `sudo mount.cifs //RIZYWIN/nixos ~/nixosUserFolder -o user=rizy,uid=$(id -u),gid=$(id -g),forceuid,forcegid`
<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
<sphalerite> astronavt: oh the mounting works
<sphalerite> err wrong highlight sorry
<rizary> when doin `nix-build -A project`
<Mic92> Looks like we don't need systemd's new offline feature at all in nixos: https://www.freedesktop.org/software/systemd/man/systemd.offline-updates.html#
<sphalerite> rizary: that's because SMB doesn't support symlinks.
<Mic92> *offline-update
<sphalerite> rizary: so you can't have output links in your share
<rizary> so what is the best way to do that? build it outside the shared folder?
<sphalerite> Mic92: lol nice
<sphalerite> rizary: yep
<rizary> nice, thanks!
johnw has quit [Ping timeout: 256 seconds]
<sphalerite> Mic92: so this will bring boot loops to regular linux? Quality
<sphalerite> because as far as I can tell a system update that consistently fails will just have it rebooting over and over again
<sphalerite> lol
<jasongrossman> Ouch!
<Mic92> sphalerite: This was probably required for desktops like kde anyway.
<Dezgeg> I guess it'd just revert to the earlier snapshot
<Mic92> even on nixos.
<Mic92> (at least logging out)
afics has quit [Quit: afics]
<sphalerite> Mic92: yeah that is fair enough, but this doesn't seem like such a great solution AFAICT
<Mic92> for some reason nixos-rebuild seems to ignore both `nixpkgs.config.allowUnfree` and `system.nixos.stateVersion`
<Mic92> I suspect it evaluates twice somehow
<infinisil> How does it ignore them? Unfree packages give an error?
<Mic92> yes.
Denommus has joined #nixos
<Mic92> also I am not sure how elasticsearch got into my system.
<infinisil> Huh
<sphalerite> Mic92: nix why-depends to the rescue/
<sphalerite> ? *
<Mic92> interesting, evaluation fails if an unfree package is used in an service by default, even it is not enabled?
<LnL> modules are strict
<Mic92> oh, then we have a problem with respect to https://github.com/NixOS/nixpkgs/pull/44389
<gchristensen> oh?
<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
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fNiyf
<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
<{^_^}> [nixpkgs] @xeji merged pull request #44346 → protonmail-bridge: init at 1.0.5-1 → https://git.io/fNK0u
Sonarpulse has joined #nixos
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/fNiyw
abueide has joined #nixos
<thoughtpolice> Taneb: https://gist.github.com/thoughtpolice/ac5ecc46a922b4b886e03b9548f194bb <- here's a real example of what I mean
<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
Ariakenom has quit [Ping timeout: 248 seconds]
wpcarro has joined #nixos
deepfire has joined #nixos
jperras has joined #nixos
xeji has joined #nixos
erasmas has joined #nixos
deepfire has quit [Ping timeout: 265 seconds]
abueide has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #44170 → parity: 1.10.8 -> 1.11.8; parity-beta: init at 2.0.1 → https://git.io/fNgkU
<{^_^}> [nixpkgs] @xeji pushed commit from @akru to master « parity: 1.10.8 -> 1.11.8; parity-beta: init at 2.0.1 (#44170) »: https://git.io/fNi93
ThatDocsLady_ has joined #nixos
deepfire has joined #nixos
<Taneb> thoughtpolice: thanks, lib.writeFile was the piece I was missing
jabranham has joined #nixos
<{^_^}> [nixpkgs] @copumpkin merged pull request #44397 → pinentry: fix patch file url → https://git.io/fNiKM
<{^_^}> [nixpkgs] @copumpkin pushed 2 commits to release-18.03: https://git.io/fNi9z
wpcarro has quit [Remote host closed the connection]
ThatDocsLady has quit [Remote host closed the connection]
wpcarro has joined #nixos
<{^_^}> [nix] @edolstra merged pull request #2323 → Allows selectively adding environment variables to pure shells. → https://git.io/fNojm
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/fNi9r
<Mic92> so pure shells are not pure anymore? :)
<{^_^}> [nixpkgs] @Infinisil merged pull request #43610 → nixos/display-managers: fix loading of module-x11-publish → https://git.io/fNOGD
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fNi9H
init_6 has quit [Ping timeout: 240 seconds]
<samueldr> Mic92: selectively :)
<samueldr> 🎉 it got merged
<Mic92> samueldr: is `keep` forbidden for untrusted user?
* samueldr has no idea
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/fNi9F
<{^_^}> [nix] @edolstra merged pull request #2326 → Fix symlink leak in restricted eval mode → https://git.io/fNiJJ
<{^_^}> [nixpkgs] @alyssais opened pull request #44404 → bundler: 1.16.2 -> 1.16.3 → https://git.io/fNi9b
<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.))]
<{^_^}> [nix] @edolstra pushed to master « Add Nix 2.1 release notes »: https://git.io/fNiHY
<samueldr> ooooh, 2018-08-??
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
<{^_^}> [nixpkgs] @copumpkin pushed to release-18.03 « bazaar: fix broken patch URL »: https://git.io/fNiQ2
<{^_^}> [nixpkgs] @copumpkin closed pull request #44396 → bazaar: add patch file to the repo → https://git.io/fNiKz
johanot has joined #nixos
<samueldr> Mic92: coult it be because I never used anything else than sandboxed build that I don't understand the issue?
Coyin has quit [Quit: Leaving]
<Denommus> is there any nixos module for a chat similar to slack, discord or rocket.chat?
<{^_^}> [nixpkgs] @xeji merged pull request #44385 → run-scaled: init at 2018-06-03 → https://git.io/fN6Av
<{^_^}> [nixpkgs] @xeji pushed commit from @snaar to master « run-scaled: init at 2018-06-03 (#44385) »: https://git.io/fNiQ7
<{^_^}> [nixpkgs] @Infinisil merged pull request #44353 → graphql-cli: init at 2.16.5 → https://git.io/fNKrz
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fNiQ5
<Denommus> I'm trying to make a rocket.chat module, but it's getting harder than I antecipated
<samueldr> Denommus: maybe mattermost?
<samueldr> <nixpkgs/nixos/modules/services/web-apps/mattermost.nix>
<samueldr> (aww, the functionality went away completely it looks like)
<infinisil> ,find mattermost.nix
<infinisil> People were complaining about it being confusing with Nix' <> syntax
<samueldr> infinisil: yeah, when partial :)
<LnL> what about only resolving <nixpkgs/...>
<Denommus> I'll check, thanks
<LnL> that's valid
<infinisil> LnL: I personally can't be bothered to type the full path all the time
<infinisil> But it being inline was convenient I have to say..
<iqubic> samueldr: When I was debugging my issues I learned how to use the trace function, as well as placing variables into strings.
rouma has joined #nixos
<iqubic> emacsWithPackages = builtins.trace "${emacs}" unstable.emacsWithPackages
<iqubic> Trace is really helpful.
drakonis has joined #nixos
<samueldr> useful to gather actual evidence of what's happening
abueide has joined #nixos
<iqubic> yeah.
<TonyTheLion> does anyone know how to update the ruby version in nix 2.0?
<TonyTheLion> its running ruby2.4.4 and I would like to have it run ruby2.5
daisy_ has joined #nixos
<samueldr> TonyTheLion: any reason you said "in nix 2.0"? how would you do it in nix 1.11 that doesn't work with 2.0?
fendor has joined #nixos
<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)]
<{^_^}> [nix] @edolstra merged pull request #2327 → 2.1 release notes: Add note about s3-compatible stores → https://git.io/fNiHr
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/fNi57
qwerty_asdf has joined #nixos
<smolboye> anyone here use soulseek on nixos?
<infinisil> Mic92: You can inspect pretty much everything via `nix-instantiate --eval '<nixpkgs/nixos>' -A options....`
<infinisil> E.g. options.systemd.package.{definitions,highestPrio,...}
<infinisil> (tab completion ftw)
<Taneb> thoughtpolice: I can't find lib.writeFile
jabranham has joined #nixos
<clever> Taneb: its in pkgs
<thoughtpolice> Taneb: it's writeTextFile actually, my bad
nlyy has joined #nixos
<smolboye> can someone try installing soulseek-qt
<smolboye> cause i cant seem to be able to log into my account
<thoughtpolice> Let me try that bot,
<clever> > pkgs.writeText "name" "body"
<{^_^}> "<derivation /nix/store/6yxj9i8gx1p74y57w0j1c507frifci0y-name>"
<thoughtpolice> ,find trivial-builders.nix
<thoughtpolice> Taneb: ^
<clever> > pkgs.writeTextFile { name = "name"; text = "body"; }
<{^_^}> "<derivation /nix/store/6yxj9i8gx1p74y57w0j1c507frifci0y-name>"
<thoughtpolice> clever: Ah, you're right, too. The issue was in my snippet (which I did not test) I wrote lib.writeFile
<thoughtpolice> Which I gave to Taneb earlier.
<clever> there is also writeScript, writeScriptBin, and writeShellScriptBin
wpcarro has quit [Remote host closed the connection]
<clever> oh, and there is a new writeCBin
wpcarro has joined #nixos
<{^_^}> [nixpkgs] @dotlambda opened pull request #44409 → adb-sync: use python3 → https://git.io/fNidn
<clever> > writeCBin "name" "int main(int argc, char **argv) { return 42; }"
<{^_^}> "<derivation /nix/store/b0lw14vf2cq1ln004g46nninqyxvl18k-name>"
<clever> thoughtpolice: this could come in handy
<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
revtintin has joined #nixos
<{^_^}> [nixpkgs] @FRidh merged pull request #44390 → python.pkgs.Keras: 2.2.0 -> 2.2.2 → https://git.io/fNicF
<{^_^}> [nixpkgs] @FRidh pushed 4 commits to master: https://git.io/fNiFH
<daisy_> Does anybody use btrfs filesystem compression with Nixos?
<{^_^}> [nixpkgs] @Mic92 pushed to master « dino: 2018-06-03 -> 2018-07-08 »: https://git.io/fNiFF
<{^_^}> [nixpkgs] @Infinisil merged pull request #44406 → certmgr: init at 1.6.1 → https://git.io/fNiHw
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fNiFx
<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
wpcarro has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @copumpkin pushed to release-18.03 « bazaar: actually fix patch »: https://git.io/fNibg
<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
<Mic92> WilliamGHatch[m]: system-getty.slice -> getty@
<clever> WilliamGHatch[m]: nixos is using @ services, mainly in containers@
dmc has joined #nixos
<Mic92> WilliamGHatch[m]: you can create multiple instances by creating multiple services in nixos.
<{^_^}> [nixpkgs] @Infinisil merged pull request #43792 → Update: easyjson, hydron, meguca, nodePackages: meguca; Improve: quicktemplate → https://git.io/fNnvI
<{^_^}> [nixpkgs] @Infinisil pushed 8 commits to master: https://git.io/fNiN0
<Mic92> just by iterating over a list for example
<WilliamGHatch[m]> Mic92: Hmm, I guess I'll make a service using a list. Thanks.
<WilliamGHatch[m]> clever: I'm having a hard time seeing how that gets set up. Can you point me to any particular file that has an example?
sbdchd has quit [Ping timeout: 260 seconds]
<Mic92> WilliamGHatch[m]: also has the advantage that typos are catched.
<{^_^}> [nixpkgs] @Infinisil merged pull request #44405 → EmptyEpsilon: use python3 → https://git.io/fNiH2
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fNiNa
TweyIV has quit [Ping timeout: 248 seconds]
<Mic92> WilliamGHatch[m]: I think you can create those service files, but they are not started by default.
<Mic92> I think the reason is that our upgrade process must now all services.
<Mic92> so it uses a .target as a workaround?
<{^_^}> [nixpkgs] @dotlambda opened pull request #44412 → ams-lv2: use python3 → https://git.io/fNiNx
<Mic92> s/now/know/
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/fNiNp
<{^_^}> [nixpkgs] @7c6f434c merged pull request #44410 → afflib: use python3 → https://git.io/fNiFh
johanot has joined #nixos
jperras has quit [Quit: WeeChat 2.2]
drakonis has joined #nixos
<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
johanot has quit [Quit: Lost terminal]
phreedom_ has joined #nixos
katyucha has joined #nixos
phreedom has quit [Ping timeout: 250 seconds]
CcxWrk has quit [Quit: ZNC 1.7.1 - https://znc.in]
CcxWrk has joined #nixos
sigmundv has quit [Ping timeout: 240 seconds]
agjacome has joined #nixos
primeos_ has quit [Quit: WeeChat 1.4]
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
hakujin1 has joined #nixos
primeos has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #44415 → pius: introduce perl as buildInput → https://git.io/fNipl
<{^_^}> [nixpkgs] @xeji pushed commit from @erictapen to release-18.03 « pius: introduce perl as buildInput (#44415) »: https://git.io/fNijJ
hakujin has quit [Ping timeout: 276 seconds]
Judson has joined #nixos
<{^_^}> [nixpkgs] @dotlambda opened pull request #44416 → antlr2: explicitly use python2 → https://git.io/fNijI
wpcarro has joined #nixos
wpcarro has quit [Read error: Connection reset by peer]
Judson is now known as Guest57761
wpcarro has joined #nixos
katyucha has quit [Ping timeout: 248 seconds]
wpcarro has quit [Ping timeout: 268 seconds]
wpcarro has joined #nixos
<{^_^}> [nixpkgs] @dotlambda opened pull request #44417 → apt-offline: 1.3 -> 1.8.1 → https://git.io/fNijF
<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.
nlyy has joined #nixos
<nlyy> can you build blender on nixos-unstable?
<nlyy> # nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version' --> "18.09pre147772.d1ae60cbad7"
<nlyy> can't build blender or openscad
Thra11 has joined #nixos
jperras has joined #nixos
<clever> nix-instantiate '<nixpkgs>' -A lib.version --eval
<clever> "18.09pre145679.dae9cf6106d"
<clever> nlyy: you can also make use of nix loading files for you
<dhess> My ntpd's die after about 1 hour or less and I'm hoping this fixes it
<clever> dhess: was waiting on ntp upstream to merge the PR first
<nlyy> clever i don't understand
<dhess> clever: ohh cool
<{^_^}> ntp-project/ntp#27 (by cleverca22, open): fix the seccomp filter to include a few previously missed syscalls
<dhess> clever: any idea why this is only affecting NixOS? Surely it can't be prevalent on other distros or else it'd have been fixed already
<clever> dhess: i had also opened a pr to nixpkgs, and before i noticed the typo (it only effects 32bit ntp), it got merged!
<dhess> err... only 32-bit ?
<clever> dhess: i suspect it might be due to nixos enabling the drift file
<dhess> If it's only affecting 32-bit then this can't be my issue.
<clever> dhess: i made a typo in the patch, because it has a seperate syscall list for 32bit and 64bit
<clever> dhess: so my fix only fixes 32bit ntp
<dhess> ohh
<dhess> got it
<clever> when i filed the pr to nixpkgs
<dhess> glad I asked
<clever> i need to file another PR to nixpkgs to fix it fully
<clever> gchristensen: when is the next stable fork happening?, so i can get it in before then
<gchristensen> ~27 days
<clever> ah, plenty of time
<dhess> clever: ohh...... this is already in nixpkgs then?
<{^_^}> [nixpkgs] @Infinisil merged pull request #44411 → almonds: use python3 → https://git.io/fNibd
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fNPvD
<nlyy> got it
<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 :)
Thra11 has quit [Quit: WeeChat 1.4]
robstrr has quit [Ping timeout: 252 seconds]
<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.
katyucha has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #44409 → adb-sync: use python3 → https://git.io/fNidn
<{^_^}> [nixpkgs] @dotlambda pushed to master « adb-sync: use python3 (#44409) »: https://git.io/fNPJU
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
nlyy has quit [Remote host closed the connection]
<dhess> clever: are you running not-os in any "production" environments? like, around the house or whatever?
drakonis has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @dotlambda opened pull request #44420 → awslogs: use python3Packages → https://git.io/fNPJR
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
fendor has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #44408 → *diag: use python3 and toPythonApplication → https://git.io/fNi5q
<{^_^}> [nixpkgs] @dotlambda pushed 6 commits to master: https://git.io/fNPJ5
<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?
rouma has quit [Ping timeout: 256 seconds]
<dhess> ohh it PXE boots
<dhess> right
<clever> yeah, one min
<clever> nix-env -p /nix/var/nix/profiles/per-user/root/rpi3-netboot -f not-os/release.nix -A rpi_image -I nixpkgs=./nixpkgs/ --set
<dhess> that could be very cool. I have a little device that I use to control some outdoor stuff and it definitely doesn't need a full NixOS image
<clever> dhess: this builds the entire image, and updates the rpi3-netboot symlink
<clever> and then the tftp server shares whatever that symlink points to
<dhess> yeah cool
<clever> and i have full rollback support
<clever> so i can just do `nix-env -p /nix/var/nix/profiles/per-user/root/rpi3-netboot --rollback` to unbrick it
<dhess> I need to update the device sometime soon. Maybe I'll look into not-os for this
<clever> the main problem with this pxe boot, is that the rpi just hangs at bootin, blinking status 7 times
<clever> and it doesnt retry the boot on its own
<clever> reflashing the sd card would be a lot more stable
<clever> and if you have ssh, you can remotely reflash it
<dhess> hmm that sucks. Which model RPi is this?
<clever> one of the newer ones with wifi&bluetooth
<clever> with a few tweaks to stage-1, it can still copy the squashfs to ram, so it wont care what you do to the card after booting
<samueldr> clever: any experience with usb boot? the one where you burn a fuse to activate
<clever> samueldr: pxe boot also relies on the same fuses
<clever> i could try that on mine
<dhess> I wonder if the RPi3 B+ PoE hat is shipping in volume yet
<TonyTheLion> does anyone know of a static webpage generator that will work with nix and can be used to generate pages with gitlab ci from markdown?
aarvar has joined #nixos
lord| has quit [Ping timeout: 248 seconds]
qwerty_asdf has quit [Quit: qwerty_asdf]
lord| has joined #nixos
<{^_^}> [nixpkgs] @volth opened pull request #44421 → perl: 5.24.4 -> 5.28.0 → https://git.io/fNPTk
fresheyeball has joined #nixos
<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?
<fresheyeball> That works btw
<fresheyeball> but I find the ${./images} thing to be ugly
<clever> you almost never want to use builder
<clever> it just makes things harder on yourself
<clever> use buildPhase
v0|d has quit [Read error: Connection reset by peer]
<fresheyeball> clever: this is just the way I have always done it
<fresheyeball> want to gist me a refactor?
jmmm has joined #nixos
<fresheyeball> clever: oh, we still have ${./images} isn't src = ./. supposed to take care of that?
<clever> yeah
<clever> and the mkdir on line 26 is likely going to break
<clever> updated more
<clever> but you could also do src = ./images;
<fresheyeball> well that is not the whole source
<fresheyeball> cp -r images/* images is a noop no?
<clever> oh
<clever> didnt fully read it, lol
<clever> and the template thing, can just be inlined
<clever> updated it again
nly has quit [Read error: Connection reset by peer]
<clever> $out doesnt even need to be a directory
<clever> you could just name = "foo.pdf" and tell pandoc to write to $out itself
<fresheyeball> clever: I don't understand what you mean by `name = "foo.pdf"`
<{^_^}> [nixpkgs] @xeji merged pull request #44266 → qgis: 2.18.20 -> 2.18.22 → https://git.io/fNwZC
<{^_^}> [nixpkgs] @xeji pushed commit from @lsix to master « qgis: 2.18.20 -> 2.18.22 (#44266) »: https://git.io/fNPkX
<clever> fresheyeball: change `name = "proposal";` to `name = "proposal.pdf";` and then use `-o $out` for pandoc
<clever> then you just get a naked /nix/store/hash-proposal.pdf in the store with no directory
xy2_ has quit [Quit: WeeChat 1.9.1]
justbeingglad has joined #nixos
johnw has joined #nixos
xy2_ has joined #nixos
<{^_^}> [nixpkgs] @xeji pushed commit from @erictapen to master « pius: introduce perl as buildInput (#44415) »: https://git.io/fNPkh
justbeingglad has left #nixos [#nixos]
mariatsji has joined #nixos
jmmm has quit [Quit: Quit]
mariatsji has quit [Remote host closed the connection]
<fresheyeball> mkdir: cannot create directory '/nix/store/z9ardbpf3abf9c4i90z2vszavnz8aacx-proposal.pdf': File exists
<fresheyeball> clever: I am not doing mkdir $out
softinio has joined #nixos
<rain1> Any thoughts on my build problem of nix trying load a docbook URL and failing?
fiddlerwoaroof has quit [Ping timeout: 264 seconds]
astronavt_ has joined #nixos
<{^_^}> [nixpkgs] @FRidh merged pull request #44381 → tensorflow: workaround tensorboard collision due to upstream pip hack → https://git.io/fN6rY
<{^_^}> [nixpkgs] @FRidh pushed 2 commits to master: https://git.io/fNPIw
<samueldr> rain1: nixos' own doc uses `--nonet` not sure if the only flag required
<samueldr> hmm wait, that's xsltproc
<{^_^}> [nixpkgs] @FRidh merged pull request #44416 → antlr: explicitly use python2 → https://git.io/fNijI
<{^_^}> [nixpkgs] @FRidh pushed 2 commits to master: https://git.io/fNPIX
<dhess> Is the NixOS Hydra doing any cross builds?
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #44083 → Allow postgresql to cross compile → https://git.io/fNRWH
<{^_^}> [nixpkgs] @Ericson2314 pushed 16 commits to master: https://git.io/fNPIx
wpcarro has quit [Remote host closed the connection]
astronavt__ has joined #nixos
<fresheyeball> make: *** No rule to make target 'install'. Stop.
<nikki93> anyone use fractional scaling in their nixos?
<fresheyeball> what the heck
wpcarro has joined #nixos
astronavt has quit [Read error: Connection reset by peer]
<clever> fresheyeball: skipping the mkdir is also optional
<fresheyeball> clever: well now make: *** No rule to make target 'install'. Stop.
<fresheyeball> is stopping everything
<fresheyeball> and I can't seem to escape it
humanoyd has quit [Quit: WeeChat 2.2]
<{^_^}> [systemd] @fpletz pushed 1633 commits to nixos-v239: https://git.io/fNPL1
<clever> fresheyeball: add dontInstall = true; to the derivation
<rain1> it seems like few people use nix outside of nixos!
<{^_^}> [systemd] @fpletz closed pull request #21 → systemd: 238 -> 239 → https://git.io/fNrVx
jmmm has joined #nixos
astronavt_ has quit [Ping timeout: 244 seconds]
<fresheyeball> clever: there we go!
<fresheyeball> vunderbar!
wpcarro has quit [Ping timeout: 248 seconds]
<infinisil> Huh, I didn't know NixOS was using a systemd fork
wpcarro has joined #nixos
<FRidh> I doubt any distro uses a vanilla systemd
rouma7 has quit [Remote host closed the connection]
rouma7 has joined #nixos
astronavt__ is now known as astronavt
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fNPtD
<{^_^}> [nixpkgs] @Infinisil merged pull request #44404 → bundler: 1.16.2 -> 1.16.3 → https://git.io/fNi9b
jmmm has quit [Quit: Quit]
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
hakujin3 has joined #nixos
jabranham has quit [Quit: ERC (IRC client for Emacs 26.1)]
<{^_^}> [nixpkgs] @mstarzyk opened pull request #44422 → obnam: removed → https://git.io/fNPqF
hakujin2 has quit [Ping timeout: 255 seconds]
xy2_ has quit [Ping timeout: 240 seconds]
<dhess> Any Nix Haskell folks around?
dvim has quit [Quit: WeeChat 2.2]
xy2_ has joined #nixos
<infinisil> What's the question?
<dhess> so I'd like to figure out how to tell the builder to disable parallel builds but just for aarch64
FRidh has quit [Quit: Konversation terminated!]
<dhess> and I'm trying to figure out the plumbing to make that happen
<dhess> so maybe the easiest way is to make sure that, for aarch64 builds, enableParallelBuilding is false
<dhess> hmm maybe it's already false for ghc 8.4.3 ?
<dhess> actually it looks like it's set to true for all of the GHC builds.
__monty__ has joined #nixos
<dhess> I can start there
astronavt_ has joined #nixos
astronavt has quit [Read error: Connection reset by peer]
<Thra11> dhess: Interesting. I'm currently have GHC 8.4.3 on aarch64. Would be cool to fix the random segfaults.
kyren has joined #nixos
kyren has quit [Client Quit]
xy2_ has quit [Ping timeout: 265 seconds]
<{^_^}> [nix] @edolstra pushed 6 commits to master: https://git.io/fNPYj
astronavt has joined #nixos
astronavt_ has quit [Read error: Connection reset by peer]
v0|d has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #43778 → xfce4-13: backport panel plugins and icon themes from xfce4-12 → https://git.io/fNZA3
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/fNPOR
MP2E has joined #nixos
hakujin4 has joined #nixos
hakujin3 has quit [Ping timeout: 260 seconds]
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
xy2_ has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #44422 → obnam: removed → https://git.io/fNPqF
<{^_^}> [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> azazel: any phase you want
<clever> buildPhase maybe
alex`` has joined #nixos
<petersjt014[m]> samueldr: would that be similar for the [arm](https://nixos.wiki/wiki/NixOS_on_ARM/Raspberry_Pi) version though?
<petersjt014[m]> I mean I'm def going to prefer 64
<samueldr> petersjt014[m]: IIRC the armv6 version uses a custom kernel build, the armv7 (rpi2 only?) uses the mainline defconfig kernel
<petersjt014[m]> but still, might be useful to kno
<samueldr> I'm not sure what's the status of armv7 on rpi3
<clever> some of the rpi2's (without wifi/bluetooth) are now using the aarch64 capable cpu from the rpi3
<clever> cheaper to just make the new cpu in bulk, then to make 2 types
<{^_^}> [nixpkgs] @dhess opened pull request #44424 → haskell-modules: add callCabal2nixWithOptions. → https://git.io/fNPGo
<samueldr> clever: can they boot aarch64?
<clever> samueldr: yeah
<{^_^}> [nixpkgs] @xeji merged pull request #43934 → mpd: add nfs and smb support → https://git.io/fNWNW
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/fNPG1
hakujin has joined #nixos
<samueldr> :/ they changed the hardware without doing something like tacking a + to the name?
neeasade has joined #nixos
<petersjt014[m]> what? 3b+ is the newest
<clever> samueldr: i think it does have a rev mark on it, cant remember the exact name
<samueldr> from that picture, probably 1.2 / a22042?
<samueldr> petersjt014[m]: I don't follow, yeah it should be the newest
<clever> the one i mentioned is a new rev of an old model
<clever> for those who are too cheap to get the wifi+bluetooth model
<{^_^}> [nixpkgs] @svanderburg pushed to master « nixos/disnix: fix broken service because of rename »: https://git.io/fNPGx
<{^_^}> [nixpkgs] @xeji merged pull request #44421 → perl: 5.24.4 -> 5.28.0 → https://git.io/fNPTk
<{^_^}> [nixpkgs] @xeji pushed 3 commits to staging: https://git.io/fNPGp
katyucha has quit [Ping timeout: 240 seconds]
<petersjt014[m]> there's also the zero w
hakujin4 has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #42659 → [staging] perlPackages -> perl{522,524,526,528}Packages → https://git.io/f4dIc
<petersjt014[m]> which I tried to get nixos running on
<petersjt014[m]> didnt work :|
<samueldr> if there was any certainty to get the 1.2, I'd look into it
<petersjt014[m]> still not sure why
igo95862 has joined #nixos
<samueldr> oh neat, the revision code seems to encode everything useful
<petersjt014[m]> quick other question tho: are there any rpi0-specific error blink codes?
wpcarro has joined #nixos
<petersjt014[m]> one I got I couldn't find documentation on
<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 joined #nixos
Aexoden has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @pSub pushed to master « pdf2djvu: 0.9.9 -> 0.9.10 »: https://git.io/fNPnU
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)
<maurer> then build baz-foo-bar using baz-baz-foo
<infinisil> Whoa
<infinisil> That's genius
<maurer> https://nixos.org/nixpkgs/manual/#idm140737317754624 is the official documentation
<maurer> but it's a bit dense
<maurer> But yeah, you never need more than the triple
kyren has joined #nixos
hakujin1 has joined #nixos
<infinisil> Neat
<infinisil> maurer: Thanks for the great explanation!
fresheyeball has quit [Quit: WeeChat 2.0]
<maurer> np
* samueldr added a link to the discussion to the nixos wiki Cross Compiling page
hakujin has quit [Ping timeout: 240 seconds]
<infinisil> maurer++
<{^_^}> maurer's karma got increased to 2
<iqubic> how does one check their own karma?
<samueldr> minding about one's karma is vanity :)
<iqubic> ,karma
<{^_^}> iqubic: Did you mean arm?
<Dezgeg> you can do yourownnick++ to definitely know what it is
<samueldr> what it was*
<iqubic> yes, but Dezgeg That lowers my karma by one.
<iqubic> And I'm fairly certain I have negative karma right now.
<infinisil> ;P
<iqubic> I can't easily check this though.
<ldlework> ldlework++
<{^_^}> ldlework's karma got decreased to 0
<ldlework> lmao
<iqubic> it was 1. No it is 0
<iqubic> ldlework++
<{^_^}> ldlework's karma got increased to 1
joehh has joined #nixos
<dhess> I disabled parallel Haskell builds on aarch64 in a nixpkgs fork, and am testing with some of my own packages now. Let's see how this goes.
igo95862 has left #nixos ["Good Bye"]
drakonis has joined #nixos
__monty__ has quit [Quit: leaving]
<dhess> Being able to do this declaratively in Hydra with just a few extra lines is so. cool.
xeji has quit [Ping timeout: 260 seconds]
pie_ has joined #nixos
astronavt has quit [Read error: Connection reset by peer]
astronavt has joined #nixos
astronavt_ has joined #nixos
astronavt_ has quit [Client Quit]
wpcarro has joined #nixos
astronavt has quit [Ping timeout: 248 seconds]
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
<{^_^}> [nixpkgs] @aswan89 opened pull request #44425 → Hangups 0.4.5 → https://git.io/fNP8R
das_j has quit [Quit: WeeChat 2.0]
wpcarro has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @dasJ opened pull request #44427 → smarty3: Init at 3.1.32 → https://git.io/fNP8j
Ariakenom has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<{^_^}> [nixpkgs] @dasJ opened pull request #44428 → prototypejs: Init at 1.7.3.0 → https://git.io/fNP4a
wpcarro has joined #nixos
wpcarro has quit [Read error: Connection reset by peer]
<drakonis> is there a way to check if a package was built?
<{^_^}> [nixpkgs] @dasJ opened pull request #44429 → scriptaculous: Init at 1.9.0 → https://git.io/fNP4x
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/2be0d9cc9b8 (from 14 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<drakonis> apparently elixir is already on 1.7.0 but it isn't built
Ariakenom has joined #nixos
wpcarro has joined #nixos
Denommus has quit [Remote host closed the connection]
<drakonis> got some interpreter troubles
davenpcm has quit [Quit: Textual IRC Client: www.textualapp.com]
<drakonis> getting this when building it
<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
<drakonis> oic
<drakonis> i'll setup the environment then check that out
<clever> you can also insert ls and pwd into the patchPhase to look around and see where things are
<drakonis> gonna update some packages not covered by autoupdates
<drakonis> ie: sourceforge
NightTrain has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #44423 → treewide: All configureFlags are lists → https://git.io/fNPso
<{^_^}> [nixpkgs] @Ericson2314 pushed 13 commits to staging: https://git.io/fNPRq
UnAmazing has joined #nixos
alex`` has quit [Quit: WeeChat 2.2]
<{^_^}> [nixpkgs] @fpletz pushed commit from @WilliButz to release-18.03 « nixos/prometheus-exporters: use nixos-fw chain »: https://git.io/fNPRr
<dhess> fpletz: around?
pie_ has quit [Remote host closed the connection]
pie__ has joined #nixos
<dhess> Running 4.14.59 on x86_64 and just added an Intel 9260 WiFi adapter. Getting this at boot: https://gist.github.com/dhess/a2320b553edc5f1579eedce85b188822
<dhess> anyone have experience with that adapter in NixOS?
<clever> dhess: do any of those files exist in your nix store?
<dhess> oh uhh.. yeah I just looked myself
<dhess> looks like I don't have any firmware at all on here
<clever> [root@amd-nixos:~]# ls /run/booted-system/firmware/iwlwifi-9260-th-b0-jf-b0-3* -lhL
<{^_^}> [nixpkgs] @flokli opened pull request #44430 → terraform: update providers → https://git.io/fNPRx
<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
<samueldr> it's an either or
<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
erasmas has quit [Quit: leaving]
<{^_^}> [nixpkgs] @jfrankenau opened pull request #44431 → nginxMainline: 1.15.1 -> 1.15.2 → https://git.io/fNPu3
EXCEPTS has joined #nixos
<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.
<{^_^}> [nixpkgs] @Mic92 opened pull request #44432 → nixos/rename: fix evaluation → https://git.io/fNPuy
Sonarpulse has quit [Ping timeout: 248 seconds]
HeinzBoettjer has joined #nixos
<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?
<{^_^}> [nixpkgs] @Mic92 merged pull request #44417 → apt-offline: 1.3 -> 1.8.1 → https://git.io/fNijF
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNPz6
wpcarro has quit [Ping timeout: 240 seconds]
ptx00 has joined #nixos
<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.))]
<{^_^}> [nixpkgs] @Mic92 merged pull request #44402 → doitlive: use python3Packages → https://git.io/fNiPh
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNPzp
<{^_^}> [nixpkgs] @Mic92 merged pull request #44403 → bashplotlib: use python3Packages → https://git.io/fNiXb
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNPgq
<{^_^}> [nixpkgs] @Mic92 merged pull request #44400 → pdf-redact-tools: explicitly use python2Packages → https://git.io/fNiii
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fNPgl
init_6 has joined #nixos
<dhess> clever: what am I looking at here?
<clever> dhess: oops, that was for d1rewolf
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