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
<nh2> my aeson build complains: `can't load .so/.DLL for: libHSprimitive-0.6.3.0-9BHPmR1c3jBGsNX8V107zp.so (libHSprimitive-0.6.3.0-9BHPmR1c3jBGsNX8V107zp.so: cannot open shared object file: No such file or directory)`
<nh2> this is with `pkgsMusl`
goibhniu has joined #nixos
<infinisil> iqubic: Then you should be able to use `environment.variables.PATH` or `environment.sessionVariables.PATH`
<nh2> dtz: I'm quite sure this happens at TH evaluation time when compiling Data.Aeson.Types.ToJSON
<iqubic> infinisil: I'll try that.
telent has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @Mic92 opened pull request #43504 → go_1_10: remove cache artificates (closure size reduction) → https://git.io/fNm3p
<infinisil> Not sure if installing stuff via npm has some problems though
<infinisil> I'd use nix packaged npm packages if possible
<clever> infinisil: id expect it to break when you GC
<infinisil> Ah yeah that might be the case iqubic ^^
<kalbasit> clever: I'm trying to add a new test, not sure if it will make it to master but the gist is, the current `build-support/bazel` is unusable with any of the `bazelbuild/rules_*` such as `bazelbuild/rules_nodejs`. So I want to start a test that will assert bazel and file it as a PR. Is there any documentation on how to add a new test?
<infinisil> Usually you don't need to add anything to PATH on NixOS which is why I asked
<clever> kalbasit: that sounds more like a nixpkgs test, rather then a nixos test, so it should be in the pkgs/top-level/release.nix i think, and the derivation should just fail if the test fails
<iqubic> I'm trying to use npm to install some executabls globally.
<iqubic> Really I just need the p5-manager installed globally.
<clever> iqubic: nix doesnt know about those executables, and will GC away the deps, and break them
<iqubic> clever: I know.
<kalbasit> clever: oh I see, let me give that a try. Thx!
<clever> iqubic: you need to build it with nix, and then install it with nix-env
<iqubic> How hard is that?
stepcut has joined #nixos
<iqubic> I actually want to use node2nix.
<nh2> dtz: just found your PR at my repo, that's super awesome, thanks! I suspect you're not running into the aeson issue because you use ghc843 instead of the 821 I used
<{^_^}> [nixpkgs] @nicknovitski closed pull request #41191 → yarn2nix: add yarnPostBuild hook → https://git.io/vhOkN
<dtz> nh2: only here briefly, but fwiw: "hopefully" you are seeing that with ghc821Binary? If so that's expected, for "reasons"... Shouldn't happen if use ghc822 or 843 or 641; the point is the binary bootstrap is kludged (on glibc too) into being good enough to build the others but not extensively used itself. (AFAICT). LMK if that is/isn't what you're seeing, very curious either way.
<{^_^}> [nixpkgs] @nicknovitski closed pull request #39992 → yarn2nix error handling improvements → https://git.io/vpw4c
<iqubic> Basically I want to install this as a global executable.
<dtz> If you need ghc821 we can easily build a proper version
<spring322[m]> Sorry if this is stupid, but I can't find any docs about `.extend`. Anybody can tell me what it is and how does it compare to `.override` ?
wpcarro has joined #nixos
<infinisil> spring322[m]: I can, so..
<nh2> dtz: OK all clear I'll try with 843 then. Should I still use https://cache.allvm.org or remove that and switch to the cachix you mentioned somewhere?
ajs124 has left #nixos ["Stream closed by us: Timed out waiting for stream resumption (connection-timeout)"]
ajs124 has joined #nixos
<nh2> spring322[m]: apparently the story of `.extend` vs `.override` is difficult, at least for Haskell packages: https://github.com/NixOS/nixpkgs/issues/26561#issuecomment-397350884
<infinisil> spring322[m]: callPackage usage: create file default.nix with contents `{ lib, foo }: ...`, use `callPackage ./default.nix { foo = 1; }` to pass default arguments (e.g. lib) if possible. This produces a result you can `.override` to pass different arguments
phreedom has quit [Ping timeout: 250 seconds]
<infinisil> spring322[m]: .extend is used for adding an overlay, with self: and super:
<{^_^}> [nixpkgs] @IvanMalison opened pull request #43505 → gitter: init at v4.1.0 → https://git.io/fNmsa
<infinisil> > v1 = lib.makeExtensible (self: { bar = self.foo; })
<{^_^}> v1 defined
phreedom has joined #nixos
<kalbasit> clever: I see a file at `pkgs/test/default.nix` which calls `callPackage`, but how to build this default.nix? I tried `nix-build`, `nix-build '<nixpkgs>'` no luck
<kalbasit> and `nix-build -A test` as well
<infinisil> > v2 = v1.extend (self: super: { foo = 10; baz = super.bar + 2; })
<{^_^}> v2 defined
wpcarro has quit [Ping timeout: 244 seconds]
<clever> kalbasit: `nix repl nixpkgs/pkgs/top-level/release.nix` and then eval tests
<infinisil> > p v2
<{^_^}> "{ __unfix__ = lambda; bar = 10; baz = 12; extend = lambda; foo = 10; }"
<kalbasit> I see
<clever> kalbasit: and once you find the attr path, nix-build nixpkgs/pkgs/top-level/release.nix -A tests.cc-wrapper.x86_64-linux
<iqubic> So how hard is it to use node2nix to install p5-manager?
<infinisil> spring322[m]: They are similar, but the .extend one is more powerful, because it supports the "self" argument, whereas .override only has an (optional) super argument
<kalbasit> oh I see, let me try that
<gchristensen> Lears: do you have your config?
<infinisil> (I didn't do a very good job at explaining that didn't I :))
<kalbasit> clever: I see what you mean by eval now, it worked, thx!!
<infinisil> (And I should remember that self: super: example, very neat)
cacatoes has quit [Ping timeout: 240 seconds]
goibhniu has quit [Ping timeout: 260 seconds]
realrokka has quit [Quit: rip]
realrokka has joined #nixos
alex``` has quit [Ping timeout: 240 seconds]
sk8forether has quit [Quit: Connection closed for inactivity]
<Lears> gchristensen: This is all I have in my config related to chrome or the firewall: http://nixpaste.lbr.uno/ar3taRr7?nix ... but I honestly can't remember if those allowed ports are something I figured out for the cast or if they're unrelated, and I think I installed the chromium casting extension impurely because I couldn't find an ID for it.
orivej has quit [Ping timeout: 244 seconds]
<gchristensen> weird :? thanks Lears
orivej has joined #nixos
thc202 has quit [Ping timeout: 240 seconds]
sir_guy_carleton has joined #nixos
<spring322[m]> @infinisil thank you very much!
sir_guy_carleton has quit [Ping timeout: 252 seconds]
sir_guy_carleton has joined #nixos
<iqubic> So I'm having trouble figuring out how to use node2nix to install an npm executable on nix.
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 240 seconds]
Mateon3 is now known as Mateon1
<iqubic> Can I get some help installing p5-manager?
<iqubic> normally I
<iqubic> normally I'd do "npm install -g p5-manager" but that doesn't seem to work with Nix.
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<iqubic> Wait, is this what I want?
zopsi has quit [Quit: Oops]
ntqz has quit []
zopsi has joined #nixos
shabius has quit [Quit: Leaving]
<nh2> anybody got an idea why `dontStrip` might not work for Haskell packages?
<{^_^}> #43506 (by nh2, open): dontStrip has no effect on Haskell packages
shabius has joined #nixos
shabius has quit [Max SendQ exceeded]
shabius has joined #nixos
shabius has quit [Remote host closed the connection]
shabius has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
stepcut has quit [Read error: Connection reset by peer]
<iqubic> Alright... why isn't node2nix in nixpkgs?
rsa has joined #nixos
<iqubic> So it does exist, but it is under nodePackages.node2nix
<{^_^}> [nixpkgs] @kalbasit opened pull request #43507 → bazel: test a real-world workspace that uses rules_go and rules_nodejs → https://git.io/fNmZi
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
alexteves has quit [Remote host closed the connection]
<iqubic> Why the heck is the list of nodePackages found through this: nix-env -qaPA 'nixos.nodePackages' not a complete list of all the node packages that exist?
<iqubic> Like all of hackage is availble via haskellPackages.foo
<iqubic> But not all of Node.
<kalbasit> shouldn't `deoplete-go` list `pkgs.gocode` as a dependency? It crashes if gocode is not installed. https://github.com/NixOS/nixpkgs/blob/d73fac6b102ae6a77d0e07647f87f00e09d100b9/pkgs/misc/vim-plugins/default.nix#L3285-L3300
andymandias has quit [Ping timeout: 240 seconds]
<manveru> iqubic: well, there's about a magnitude more packages on npm than on hackage
zopsi has quit [Quit: Oops]
<manveru> hackage has 12k, while npm has over 700k
<{^_^}> [nixpkgs] @Mic92 merged pull request #43504 → go_1_10: remove cache artificates (closure size reduction) → https://git.io/fNm3p
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fNmnf
zopsi has joined #nixos
<iqubic> manveru: How hard is it to install something like p5-manager via nix?
blankhart has joined #nixos
<manveru> hmm
<{^_^}> [nixpkgs] @Mic92 pushed to release-18.03 « go_1_10: remove cache artifacts from package »: https://git.io/fNmnk
<manveru> i don't think it's that hard, given that it's not even using electron?
andymandias has joined #nixos
<iqubic> manveru: do you think you could help me do that?
<{^_^}> [nixpkgs] @nh2 opened pull request #43508 → haskell: Pass `dontStrip` to cabal. Fixes #43506 → https://git.io/fNmnq
lostman has joined #nixos
<manveru> well, i can try :)
<iqubic> Thanks.
<lostman> hi all. how can I get the build directory in nix derivation?
<manveru> yeah, got a package for it
<lostman> I mean, there's `$src` and `$out` and so on
<iqubic> manveru: How did you do that so fast?
<samueldr> lostman: it should be $PWD
<manveru> clone and run `nix build`
<manveru> then you can do `nix-env -iA ./result` or run `./result/bin/p5` directly
<manveru> i cheated and used yarn2nix instead ;P
<lostman> @samueldr but I'd like to set an environment variable in `mkDerivation` that uses the build directory. There `$PWD` doesn't make sense, right?
<iqubic> but I want to have the executable on my path so that I can just directly use p5 on the command line.
<manveru> then do the nix-env
<lostman> `mkDerivation { ... FOO="$PWD/some/path"; }`
<manveru> lostman: it's always /build
<lostman> @manveru I mean `/tmp/nix-build-derivation-name.drv-XYZ/source`
<manveru> ah
<samueldr> manveru: isn't that only for sandboxed builds on linux?
<lostman> I'm trying to setup ccache and I need to give it CCACHE_BASEDIR or otherwise it won't cache anything between builds
<manveru> samueldr: possibly, yeah
<samueldr> lostman: in prePatch export it maybe?
<manveru> lostman: so you disabled sandboxing?
<samueldr> prePatch=''FOO="$PWD/some/path";''
<lostman> it's not full nixos but nix on ubuntu I'm working on
<lostman> @samueldr but then if I drop to `nix-shell` it won't work, right?
<samueldr> if you run the patchphase it will, I think
<samueldr> (I'm not good with continuing builds using nix-shell)
<lostman> I'll try it out!
<manveru> oh damn, it's like 4am...
<iqubic> How long should nix build take?
<manveru> took maybe a minute here
<manveru> i'd make you a proper derivation, but i really need some sleep
<iqubic> So the nix-env isn't working.
<iqubic> error: empty attribute name in selection path './result'
<gchristensen> go to bed, manveru! its time for the weekend to start!
<manveru> iqubic: sorry, it was `nix-env -i ./result`
<manveru> there's no attribute name indeed
<manveru> lemme know how it goes, cu :)
<iqubic> Nice. I did it.
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<iqubic> What should I do when updates to p5-manager come out?
markus1189 has quit [Ping timeout: 264 seconds]
erickomoto has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
erickomoto has joined #nixos
erickomoto has quit [Client Quit]
Leira has joined #nixos
<Leira> guys, is there a way to add a comment on each nixos-rebuild, just like git?
<Lisanna> wat... I have a build sitting in my hydra binary cache, but when I try to nix-build it it starts fetching build dependencies for it (from the same binary cache!) rather than the actual finished build. Never seen this before.
<Lisanna> I verified that the .narinfo file for the thing I want exists and is accessible
<Lisanna> on the binary cache
<rotaerk> hmm, why isn't this override of nixpkgs's binutils package not working? https://ptpb.pw/kjFe
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rotaerk> when I import this file and, in nix repl, I type myexpr.pkgs.binutils, it gives me the 2.30 version's derivation
<rotaerk> as though the override didn't happen
<rotaerk> why is *
hamishmack has joined #nixos
wpcarro has joined #nixos
<tenten8401> Is there an acceptable way to modify the display-manager service so that I can get a smooth plymouth -> sddm transition?
<tenten8401> I think I just need to add to the After= and Wants= section
<Lisanna> ugh I wish nix explained *why* it makes its decisions
<gchristensen> what service do you want to modify, tenten8401?
stepcut has joined #nixos
<tenten8401> gchristensen: display-manager.service
<Lisanna> rotaerk does the name of the package change?
<gchristensen> Lisanna: it should if you pass enough -v's :)
tll has joined #nixos
<rotaerk> yeah, I gave it a new name, but when I do: myexpr.pkgs.binutils.name, it still shows the old one
<gchristensen> tenten8401: systemd.services.display-manager.Wants = [ ... ]
<Lisanna> gchristensen ah, I needed 3
<tenten8401> ah, that's it?
<gchristensen> yep
<tenten8401> huh. Thanks!
<Lisanna> rotaerk I'm looking at the derivation for binutils and it seems to be doing some tricky shenanigans with its src
<Lisanna> notice how the arguments to stdenv.mkDerivation don't include "src"
wpcarro has quit [Ping timeout: 260 seconds]
<rotaerk> hrm
<tll> Hiya all! I've seen a little bit of development on declarative userland configurations and have heard little about home-manager and NixUp. Is there any sort of consensus on which one of these to use? Is anyone here using either of them?
<rotaerk> so I'm overriding the wrong thing
<tenten8401> tll: From what I see on PR #9250, home-manager looks to be more well maintained
<{^_^}> https://github.com/NixOS/nixpkgs/pull/9250 (by ts468, open): nixuser: declarative user environments
<tenten8401> (disclaimer: I skimmed the thread)
igo95862 has joined #nixos
<Lisanna> very strange. The path clearly exists, and all of its requisites also exist. But nix is saying that it can't find a substituter for it.
<Lisanna> but it can find the substituter for other derivations
zopsi has quit [Quit: Oops]
<Lisanna> *desperately tries more -v flags*
Henrycrutcher has joined #nixos
<Lisanna> ...wtf
<Lisanna> it just magically fixed itself
<Lisanna> wtf nix
<Henrycrutcher> How does one do pythonwithpackages with a debug python, as might be created with enableDebugging
graphene has quit [Remote host closed the connection]
<Lisanna> or should I be blaming hydra here
lassulus_ has joined #nixos
graphene has joined #nixos
<tenten8401> Lisanna: it must've been scared of verbose output
zopsi has joined #nixos
<Lisanna> this is the second time I've seen nix do something that I just utterly cannot explain or account for
<Lisanna> just hope it doesn't happen again I guess
<Lisanna> seems to be temporary at least, whatever it is
graphene has quit [Remote host closed the connection]
takeda has joined #nixos
mounty has quit [Ping timeout: 256 seconds]
graphene has joined #nixos
lassulus has quit [Ping timeout: 264 seconds]
lassulus_ is now known as lassulus
mounty has joined #nixos
Leira has quit [Quit: Page closed]
<takeda> Hi, I have problem with using channels on OS X, basically I want to have nixpkgs that contains Python 3.7 but no matter what I do nix seems to use the nixpkgs that came preinstalled, am I doing somethin wrong? Here is how I added it:
<takeda> $ nix-channel --list
<rotaerk> screw it, can't figure out how to override binutils
<rotaerk> I'll just see if my fix to the latest version of it works
<adisbladis[m]> takeda: Your user inherits the root channels
<adisbladis[m]> It's not very intuitive :/
<takeda> adisbladis[m]: so root user configuration takes precedence? I'm not sure I understand
<adisbladis[m]> takeda: No. Your user has the channels added as your user AND as the root user
<tenten8401> Anyone have any ideas why KDE desktop themes randomly refuse to install? it seems like some of them do and some of them don't
<adisbladis[m]> takeda: Also: Did you update your channel?
<adisbladis[m]> `nix-channel --update`
<tenten8401> if I want to install Breeze Alphablack it'll just fail silently and act like it was never installed in the first place
<takeda> yes
<adisbladis[m]> takeda: I'm always a bit confused by this behaviour, my solution is to remove all channels from the root user
pie_ has quit [Ping timeout: 248 seconds]
<takeda> hmm, I just checked with root, and it only has the entry that I added:
<takeda> # nix-channel --list
<takeda> on OS X with default installation nix-channels --list returns nothing
tenten8401 has quit [Quit: Konversation terminated!]
<takeda> $ nix-channel --update
<takeda> unpacking channels...
<takeda> created 2 symlinks in user environment
<takeda> $ nix-shell -p python37
<takeda> error: undefined variable 'python37' at (string):1:94
<takeda> (use '--show-trace' to show detailed location information)
<Henrycrutcher> How do I make a python env with a custom python in nixos https://stackoverflow.com/questions/51333232/get-a-python-with-debug-info-included-with-packages
graphene has quit [Read error: Connection reset by peer]
graphene has joined #nixos
hiroshi- has joined #nixos
<iqubic> Henrycrutcher: do you understand how shell.nix works?
hiroshi has quit [Ping timeout: 240 seconds]
hiroshi- is now known as hiroshi
<iqubic> either way I recommend this: "python.withPackages (ps: [ ps.lib1 ps.lib2 ])"
<iqubic> either put that in a shell.nix or, to install globally, put it into your systemPackages in configuration.nix
<iqubic> note that the "ps." bit is needed for this to work correctly.
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
hxrts_ has joined #nixos
iyzsong has joined #nixos
pie_ has joined #nixos
<rotaerk> shlevy, if I'm understanding this correctly, a bug was introduced when you upgraded to binutils 2.30
<rotaerk> I'm working on testing my hypothesis
graphene has quit [Remote host closed the connection]
<Henrycrutcher> Shell.nix? Where do I find docs on that?
graphene has joined #nixos
<rotaerk> shlevy, particularly, there is a patch used by that derivation, called new-dtags.patch, and this no longer is doing what it was intended to do, with version 2.30
<Henrycrutcher> Actually I did that. See so question
<rotaerk> I'm gonna submit a PR for this if no one else is
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/d22cb7a6192 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
zgrep has quit [Quit: This is me *really* leaving.]
tenten8401 has joined #nixos
<rotaerk> as soon as I can find a commit I can branch from that isn't broken for some *other* reason >_>
zgrep has joined #nixos
blankhart has quit [Quit: WeeChat 1.9.1]
<tenten8401> Anyone here know how I'd allow for a smoother transition between plymouth and sddm? I tried adding after = [ "plymouth-quit.service" ] to my display-manager.service and my system was rendered unusable, with an error message about deleting display-manager to break an ordering cycle with plymouth-quit
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
srl295 has quit [Quit: Connection closed for inactivity]
graphene has quit [Remote host closed the connection]
zopsi has quit [Quit: Oops]
graphene has joined #nixos
zopsi has joined #nixos
<tenten8401> It seems that plymouth-deactivate.service is missing, and I'm not sure what "deactivate" does compared to "quit"
<tenten8401> the man page isn't helpful at all
imalison_ has joined #nixos
<imalison_> does anyone here just do away with the channel mechanism and build their system configuration from a git branch?
<imalison_> I feel like I've been accumulating a lot of custom derivations
<imalison_> and its annoying to have to apply them manually
<samueldr> imalison_: while I use a git repo, I don't add custom things to the nixpkgs git checkout
<imalison_> I'm also kind of confused about why the channel mechanism isn't something as simple as a git branch
<samueldr> maybe I'm lucky, but everything I want to add I can do it through overlays
<imalison_> samueldr: I CAN do everything I want with a mixture of overlays and overrideAttrs
<imalison_> but some of those things are just changes that have been submitted to nixpkgs
<samueldr> imalison_: there is a git repo with git branches that is synchronized with with channels → https://github.com/NixOS/nixpkgs-channels
<samueldr> as for why channels aren't simply this? I don't know, but it probably has to do with how a git repo is more complex and can grow to much larger size (as with nixpkgs) thane a simple tarball
<samueldr> and probably related to the fact that nixpkgs didn't always live in a git repo
<samueldr> (all conjecture, I have no sources or citations)
tenten8401 has quit [Remote host closed the connection]
zopsi has quit [Quit: Oops]
markus1189 has joined #nixos
zopsi has joined #nixos
<{^_^}> [nixpkgs] @adisbladis pushed 3 commits to master: https://git.io/fNmW8
tenten8401 has joined #nixos
<tenten8401> alright, I give up on having a smoother transition between plymouth and sddm
<tenten8401> systemd keeps deleting my tasks because of the changes I've made
<tenten8401> and nixos tries to reload the systemd services since there were changes made and fails since they only get called during boot
<tenten8401> resulting in a failed rebuild every time
sbdchd has quit [Remote host closed the connection]
drakonis has quit [Read error: Connection reset by peer]
orivej has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #43509 → hpc-coveralls: patch to fix build (for Cabal 2.2) → https://git.io/fNmWN
iyzsong has quit [Read error: Connection reset by peer]
<ghasshee> In nix-shell, I typed, `opam install labltk` and they say : cannot create directory /nix/store/xph***/lib/ocaml/4.04.2/site-lib/labltk
<ghasshee> Does anyone know how to fix this ?
wpcarro has joined #nixos
stepcut has quit [Remote host closed the connection]
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
igo95862 has quit [Quit: igo95862]
Ariakenom_ has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.0]
wpcarro has quit [Ping timeout: 244 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nixos
wpcarro has joined #nixos
wpcarro has quit [Ping timeout: 264 seconds]
wpcarro has joined #nixos
gspia has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg merged pull request #43463 → mkvtoolnix: 24.0.0 -> 25.0.0 → https://git.io/fNt5e
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/fNmlo
endformationage has quit [Quit: WeeChat 1.9.1]
alex``` has joined #nixos
FRidh has joined #nixos
hxrts_ has quit [Ping timeout: 276 seconds]
wpcarro has quit [Ping timeout: 244 seconds]
Yaniel has joined #nixos
iyzsong has joined #nixos
manny has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg closed pull request #30323 → snapcast: init at 0.11.1 → https://git.io/vdoKx
<{^_^}> [nixpkgs] @peterhoeg opened pull request #43511 → firejail: add nixos module → https://git.io/fNmlh
wpcarro has joined #nixos
wpcarro has quit [Ping timeout: 244 seconds]
rihards has joined #nixos
Lisanna has quit [Quit: Lisanna]
lostman has quit [Quit: Connection closed for inactivity]
andreabedini has quit [Quit: Textual IRC Client: www.textualapp.com]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/5457be89fe6 (from 11 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
Mateon1 has quit [Ping timeout: 244 seconds]
Mateon1 has joined #nixos
Khetzal has quit [Ping timeout: 240 seconds]
Xiro` has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
wgas has joined #nixos
Khetzal has joined #nixos
wgas has left #nixos [#nixos]
ydlr has quit [Quit: Leaving]
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 244 seconds]
Mateon3 is now known as Mateon1
clacke has joined #nixos
Mateon3 has joined #nixos
<clacke> I'm setting up a build slave to our hydra, and I'm getting this:
<clacke> > error: cannot add path '/nix/store/2s3sbffs1vfi4g5l6j44wyga917m0nsw-pixman-0.34.0' because it lacks a valid signature
<{^_^}> error: syntax error, unexpected $undefined, expecting ')', at (string):156:24
Mateon1 has quit [Ping timeout: 264 seconds]
Mateon3 is now known as Mateon1
<clacke> The hydra master successfully pulls down all dependencies, then starts copying them to the slave.
<clacke> Then after the first copy, I get this.
<clacke> The path should have either the cache.nixos.org signature or the hydra machine signature, and the slave trusts both.
<clacke> So I don't get what step I'm missing.
<clacke> https://sandervanderburg.blogspot.com/2013/04/ doesn't mention any special measures being necessary.
winem_ has joined #nixos
mariatsji has joined #nixos
wpcarro has joined #nixos
Ariakenom_ has quit [Quit: Leaving]
wpcarro has quit [Ping timeout: 244 seconds]
winem_ has quit [Ping timeout: 265 seconds]
wucke13 has quit [Quit: WeeChat 2.0]
wpcarro has joined #nixos
Jason_Grossman has joined #nixos
coot_ has joined #nixos
wpcarro has quit [Ping timeout: 268 seconds]
andymandias has quit [Ping timeout: 240 seconds]
<Myrl-saki> What line signifies that a .drv is done?
<sphalerite> Myrl-saki: what line of what?
<Myrl-saki> nix-build / nix-store --realise
andymandias has joined #nixos
<sphalerite> I don't think there is one
takeda has quit [Quit: leaving]
rihards has quit [Quit: rihards]
mariatsji has quit [Remote host closed the connection]
palo has quit [Ping timeout: 240 seconds]
palo has joined #nixos
palo has quit [Changing host]
palo has joined #nixos
<{^_^}> [nixpkgs] @dywedir opened pull request #43513 → gutenberg: 0.3.1 -> 0.3.4 → https://git.io/fNmBl
ixxie has joined #nixos
NightTrain has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @adisbladis merged pull request #43033 → Plasma5 & KdeApplications bugfix releases → https://git.io/fbpZh
<{^_^}> [nixpkgs] @adisbladis pushed 3 commits to release-18.03: https://git.io/fNmBr
simukis has joined #nixos
<sphalerite> What's the cause for "Error in reading or end of file" when building a kernel config file through nixpkgs again?
fendor has joined #nixos
<sphalerite> oh I see, "repeated question", having provided an invalid answer to one of the questions
Jason_Grossman has quit [Ping timeout: 240 seconds]
wpcarro has joined #nixos
<{^_^}> [nixpkgs] @jtojnar merged pull request #43480 → bubblewrap: 0.2.1 -> 0.3.0 → https://git.io/fNqOi
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/fNmBF
wpcarro has quit [Ping timeout: 244 seconds]
<sphalerite> Myrl-saki: yep, even with -v it doesn't print anything in particular when a realisation is completed
<{^_^}> [nixpkgs] @dywedir opened pull request #43514 → mdbook: 0.1.7 -> 0.1.8 → https://git.io/fNmBj
clacke has quit [Ping timeout: 252 seconds]
robogoat has quit [Ping timeout: 244 seconds]
robogoat has joined #nixos
<Myrl-saki> sphalerite: Ah. :
<Myrl-saki> :/
<sphalerite> I'm trying to get a kernel config built, I'm using the expression http://nixpaste.lbr.uno/0hCNxYjv (on ARMv7) and getting http://nixpaste.lbr.uno/74XAZY7P
<sphalerite> note MFD_CROS_EC [=m] even though I put `MFD_CROS_EC y` in the config…
<sphalerite> Anyone know what's going on here?
<sphalerite> clever: you're a kernel wizard right? :D
ixxie has quit [Ping timeout: 268 seconds]
<Myrl-saki> TIL, nixpaste. Who owns that?
<sphalerite> Myrl-saki: lethalman aka lbruno
orivej has joined #nixos
<Myrl-saki> Huh. `videoDrivers = [ "nvidia" ];` requires me to build stuff.
<Myrl-saki> Oh, I'm stupid. I set substituters ''
<sphalerite> it does require building stuff anyway though
<sphalerite> the kernel module is nonfree and thus not built by hydra
<sphalerite> either that or some GPL noncompliance stuff
* sphalerite grumbles about nvidia
<Myrl-saki> Yeah, it actually does.
<buzzmaster[m]> I just deactivated the graphics card on my laptop, because of Optimus
<Myrl-saki> It's not fetching the final derivation.
<buzzmaster[m]> I don't need a GPU anyway
<Myrl-saki> Does nouveau support the 10 series?
<sphalerite> not really
<sphalerite> something something crypto driver verification crap
<Myrl-saki> sphalerite: Wtf? Like, the binary should be verified?
<sphalerite> I seem to remember something along those lines
<Myrl-saki> How disappointing. :/
<Myrl-saki> Maybe I should have just saved my $90. ; ~ ;
vasiliy_san has joined #nixos
<sphalerite> can't find any docs on it, so I may be wrong
<sphalerite> but yes you should have :/
wpcarro has joined #nixos
<Myrl-saki> sphalerite: Phoronix has a slide about it on twitter. https://twitter.com/phoronix/status/911618227473666048
<{^_^}> [nixpkgs] @herberteuler opened pull request #43515 → nethack: add support for qt4 on linux → https://git.io/fNmRp
<sphalerite> basically nvidia sucks
<Myrl-saki> Yep. My friend actually went "hey dude, you wanna buy a graphics card? oh wait, you don't want nvidia"
<Myrl-saki> But then it was $90, and I needed a graphics card for an upcoming Ryzen build. :/
<manveru> is there some way to use `nix build -o something` for all attrs in a default.nix?
<sphalerite> manveru: it will build all attrs and name them something-{1..n} like that. As for giving each attr its own output name, I don't think so
<manveru> ok
<manveru> yeah, it'll be result-{1..n}
<leotaku> Is there a way to easily check if a specific nixpkgs commit has already reached some channel?
<sphalerite> manveru: you could add an `all` derivation which makes a dir of symlinks to each one
wpcarro has quit [Ping timeout: 256 seconds]
<Myrl-saki> sphalerite: I wanted to try using CUDA too, but now that I'm experiencing this. It's not worth it.
<manveru> sphalerite: i'm basically trying to hack together my own hydra :)
<sphalerite> Myrl-saki: yep that's the conclusion I've reached too
<manveru> i guess `nix-build` is still superior in most things :|
xy2_ has joined #nixos
Jason_Grossman has joined #nixos
tzemanovic has joined #nixos
<{^_^}> [nixpkgs] @jensbin opened pull request #43516 → terraform-provider-ibm: 0.11.0 -> 0.11.1 → https://git.io/fNm0X
<leotaku> What is Nixos:Staging for?
<sphalerite> leotaku: changes that result in large amoutns of rebuilds get pushed to the staging branch before master so that master doesn't get blocked by them
<sphalerite> it's only relevant to development, not to regular use of nixos/nixpkgs
<leotaku> sphalerite: Ok, and how can you know if something added to stanging reaches unstable? Is that visible in the pull request or does one have to check the commit messages?
kyren has quit [Ping timeout: 276 seconds]
andymandias_ has joined #nixos
andymandias has quit [Ping timeout: 244 seconds]
xy2_ has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @adisbladis merged pull request #43502 → charles: init at 4.2.6 → https://git.io/fNmYH
<{^_^}> [nixpkgs] @adisbladis pushed 8 commits to master: https://git.io/fNmER
iyzsong has quit [Quit: ZNC 1.7.0 - https://znc.in]
iyzsong has joined #nixos
<sphalerite> leotaku: yeah git log --grep is probably the easiest way
iyzsong has quit [Client Quit]
<sphalerite> although I think staging usually gets merged directly into master, not rebased first, so you should be able ot use the commit ids as well
<Myrl-saki> And of course, NVidia is not showing up in xrandr.
<Myrl-saki> [ 10.695] (EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found)
<Myrl-saki> I'm using a multi GPU setup
<Myrl-saki> I guess I need modesetting
<sphalerite> or windows
<Myrl-saki> Oh god no
<Myrl-saki> Hell no
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/d73fac6b102 (from 11 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<Myrl-saki> Having NVidia on my system is bad enough.
zgrep has quit [Quit: This is me *really* leaving.]
zgrep has joined #nixos
dramforever has joined #nixos
iyzsong has joined #nixos
thc202 has joined #nixos
<sphalerite> well your nvidia stuff will work with it :^)
regulus_ has quit [Ping timeout: 244 seconds]
<Myrl-saki> Oh crap.
<Myrl-saki> The NVidia card doesn't work on boot. I think that's already throwing red flags on my BIOS lmao
<Myrl-saki> Wait, brb.
<sphalerite> try it in windows to rule out hardware problems
regulus_ has joined #nixos
<Myrl-saki> sphalerite: I actually don't have Windows at all lmao
<Myrl-saki> Anyways, it works now. I just don't know how to multi GPU
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/e8ec91bb595 (from 44 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<Myrl-saki> Well, I got it working now.
<Myrl-saki> Oh lmao. I already said that.
sigmundv has joined #nixos
rardiol1 has joined #nixos
dramforever has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @peterhoeg opened pull request #43519 → libebml: 1.3.5 -> 1.3.6 and libmatroska: 1.4.8 -> 1.4.9 [WIP] → https://git.io/fNmzI
<{^_^}> [nixpkgs] @volth opened pull request #43520 → xfce.xfce4-hardware-monitor-plugin: 1.5.0 -> 1.6.0 → https://git.io/fNmzs
<sphalerite> What causes "option not set correctly" on nixpkgs kernel configs?
<{^_^}> [nixpkgs] @vbgl merged pull request #43310 → jbuilder: 1.0+beta20 -> 1.0.0 → https://git.io/fNTAU
<{^_^}> [nixpkgs] @vbgl pushed commit from @marsam to master « jbuilder: 1.0+beta20 -> 1.0.0 »: https://git.io/fNmz6
<{^_^}> [nixpkgs] @dotlambda merged pull request #43483 → pythonPackages.scikitlearn: apply `max_iter` patch from scikitlearn master → https://git.io/fNqZ2
<{^_^}> [nixpkgs] @dotlambda pushed commit from @Ma27 to master « pythonPackages.scikitlearn: apply `max_iter` patch from scikitlearn master (#43483) »: https://git.io/fNmgk
Neo-- has joined #nixos
Mateon1 has quit [Ping timeout: 260 seconds]
Mateon1 has joined #nixos
Jason_Grossman has quit [Ping timeout: 260 seconds]
Neo-- has quit [Ping timeout: 256 seconds]
Jason_Grossman has joined #nixos
cacatoes has joined #nixos
sir_guy_carleton has joined #nixos
stanibanani has joined #nixos
alex``` has quit [Ping timeout: 260 seconds]
<joepie91> iqubic: npm always observes the ~/.npmrc regardless of when it is running in a nix-shell; the only case in which this would *not* work is if you were in a shell for another user where the npm prefix is not set
alex``` has joined #nixos
<joepie91> iqubic: that having been said; if you are `npm install`ing a thing that depends on / links against a particular nix-shell-provided thing, it may be possible for the dependency to get garbage-collected since the `npm install` happens outside of Nix' purview
<{^_^}> [nixpkgs] @dotlambda pushed 5 commits to master: https://git.io/fNmg9
fendor has quit [Ping timeout: 240 seconds]
xy2_ has joined #nixos
User_ has joined #nixos
andymandias_ has quit [Ping timeout: 244 seconds]
sigmundv has quit [Ping timeout: 248 seconds]
orzo has quit [Ping timeout: 244 seconds]
User_ has quit [Remote host closed the connection]
jtojnar has quit [Read error: Connection reset by peer]
jtojnar_ has joined #nixos
coot_ has quit [Quit: coot_]
jtojnar_ is now known as jtojnar
User_ has joined #nixos
User_ has quit [Remote host closed the connection]
andymandias has joined #nixos
coot_ has joined #nixos
coot_ has quit [Remote host closed the connection]
b has joined #nixos
<{^_^}> [nixpkgs] @bendlas merged pull request #42419 → Emacs cask version update and wrapper → https://git.io/f4SeR
<{^_^}> [nixpkgs] @bendlas pushed 2 commits to master: https://git.io/fNm2g
xy2_ has quit [Ping timeout: 244 seconds]
stanibanani has quit [Ping timeout: 240 seconds]
Khetzal has quit [Ping timeout: 240 seconds]
pluplog has joined #nixos
<{^_^}> [nixpkgs] @bendlas pushed to master « Revert "cask: init" »: https://git.io/fNm25
orzo has joined #nixos
xy2_ has joined #nixos
<ghasshee> Why does not nixpkgs have the manual of OCaml ? Does anyone know ?
<{^_^}> [nixpkgs] @volth opened pull request #43522 → orage: "/usr/share/zoneinfo" -> "${tzdata}/share/zoneinfo" → https://git.io/fNmae
<{^_^}> [nixpkgs] @bendlas pushed 4 commits to master: https://git.io/fNmaT
manny has quit [Remote host closed the connection]
stanibanani has joined #nixos
alex``` has quit [Ping timeout: 260 seconds]
dmc has quit [Remote host closed the connection]
stanibanani has quit [Ping timeout: 240 seconds]
dmc has joined #nixos
Khetzal has joined #nixos
<{^_^}> [nixpkgs] @Enzime opened pull request #43523 → Fix Synergy building on macOS → https://git.io/fNmao
<{^_^}> [nixpkgs] @shlevy opened pull request #43524 → ncurses: Fix static build. → https://git.io/fNmaX
knupfer has joined #nixos
wpcarro has joined #nixos
crmlt has quit [Remote host closed the connection]
<sphalerite> ghasshee: the manpages are there, but I don't know much about ocaml so idk if you're looking for something else maybe
ambro718 has joined #nixos
wpcarro has quit [Ping timeout: 244 seconds]
Thra11 has quit [Ping timeout: 244 seconds]
sam__ has joined #nixos
iyzsong has quit [Ping timeout: 240 seconds]
Jason_Grossman has quit [Ping timeout: 260 seconds]
humanoyd has joined #nixos
Jason_Grossman has joined #nixos
<{^_^}> [nixpkgs] @zgrannan opened pull request #43525 → markdown-pp: init at 1.3 → https://git.io/fNmVZ
<{^_^}> [nixpkgs] @shlevy pushed to staging « ncurses: Fix static build. »: https://git.io/fNmVW
<{^_^}> [nixpkgs] @shlevy merged pull request #43524 → ncurses: Fix static build. → https://git.io/fNmaX
<{^_^}> [nixpkgs] @peterhoeg merged pull request #43511 → firejail: add nixos module → https://git.io/fNmlh
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/fNmVu
<Dezgeg> sphalerite: the nixos kernel config wanted to set e.g. CONFIG_FOO=y but it ended up not y for some reason, perhaps that a dependency of CONFIG_FOO wasn't satisfied
phreedom has quit [Ping timeout: 250 seconds]
<sphalerite> Dezgeg: right, how can I work out what that dependency might be?
phreedom has joined #nixos
<Dezgeg> read the Kconfig files in kernel source or with menuconfig
<sphalerite> I tried that actually, couldn't work it out though :/
<sphalerite> GOT: PCI support (PCI) [Y/?] y
<sphalerite> I don't actually want PCI support, so I put `PCI n` in the kernel config thing, but it doesn't actually affect the setting
hexa- has quit [Quit: WeeChat 2.1]
<sphalerite> I'm guessing I'd be looking for a `select PCI` in the Kconfig for that?
<Dezgeg> on x86? I doubt you can disable that
<sphalerite> but there's a lot of that :/
<sphalerite> nope, ARM
<Dezgeg> menuconfig should tell if something selects it
<sphalerite> I want a faster kernel build for my chromebook and I figured that by disabling PCI I'd disable a huge amount of drivers I won't be using anyway and get faster builds
<sphalerite> Well the trouble is I want to keep this within nixpkgs so I can't really use menuconfig for that. AFAIU.
<Dezgeg> yes but you can use it for debugging
sbdchd has joined #nixos
<Dezgeg> it will tell e.g. Selected by [y]: ARCH_ALPINE [=y] && ARCH_MULTI_V7 [=y]
sam__ has quit [Ping timeout: 244 seconds]
wpcarro has joined #nixos
phreedom has quit [Ping timeout: 250 seconds]
Copenhagen_Bram has quit [Read error: Connection reset by peer]
wpcarro has quit [Ping timeout: 248 seconds]
hexa- has joined #nixos
drakonis has joined #nixos
<worldofpeace> Do you need 'hardware.opengl.enable = true;' like ever if you're using a DE?
xy2_ has quit [Ping timeout: 256 seconds]
<Dezgeg> I think it's set to true by default if X11 is enabled
stepcut has joined #nixos
Jason_Grossman has quit [Ping timeout: 240 seconds]
graphene has quit [Remote host closed the connection]
Henrycrutcher has quit [Ping timeout: 252 seconds]
graphene has joined #nixos
MinceR has quit [Ping timeout: 260 seconds]
civodul has joined #nixos
MinceR has joined #nixos
blankhart has joined #nixos
<{^_^}> [nixpkgs] @jtojnar pushed 4 commits to master: https://git.io/fNmwN
fendor has joined #nixos
knupfer has quit [Remote host closed the connection]
<Myrl-saki> Nothing says true friendship than cancelling a 12-hour nix-build since they wanna play a game with you.
coot_ has joined #nixos
<sphalerite> <_<
<Myrl-saki> sphalerite: Yep. It was gfortran *and* llvm that were ongoing.
<sphalerite> the joys…
aarvar has quit [Ping timeout: 264 seconds]
<Enzime> Myrl-saki: C-z + hibernate? :)
<Enzime> although a bit late for that now...
jtojnar has quit [Ping timeout: 260 seconds]
knupfer has joined #nixos
mariatsji has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg merged pull request #43519 → libebml: 1.3.5 -> 1.3.6 and libmatroska: 1.4.8 -> 1.4.9 → https://git.io/fNmzI
<{^_^}> [nixpkgs] @peterhoeg pushed 3 commits to master: https://git.io/fNmrK
hxrts_ has joined #nixos
ambro718 has quit [Quit: Konversation terminated!]
<Myrl-saki> Enzime: Huh, true. I'm stupid.
wpcarro has joined #nixos
alex``` has joined #nixos
<Myrl-saki> Enzime: Why the fuck did I not do that
<Myrl-saki> omg
<Enzime> Myrl-saki: just do it next time
<Enzime> :)
<sphalerite> rstudio fails to start in a fresh installation with everyone's favourite xcb plugin error. Installing konsole in the user env makes it work. How do I fix this "properly"?
<sphalerite> I don't think ctrl-z will actually stop the build
<sphalerite> just the output from it
<Myrl-saki> THat's C-s
<sphalerite> no, because the build process isn't usually a child of the nix-build process
<Enzime> sphalerite: the hibernate should be enough to stop the build :)
<Myrl-saki> True.
<sphalerite> so nix-build will stop but the actual build continues
<Myrl-saki> Enzime: hibernate?
<sphalerite> yes, just hibernating should do it :D
<Myrl-saki> C-z, hibernate ,restart?
<Enzime> well if sphalerite is right, C-z is totally unnecessary
<sphalerite> hibernate will shut the machine down
<Myrl-saki> Right.
<sphalerite> you need swap for hibernating to work though
<sphalerite> swap that isn't ephemerally encrypted for that matter
sbdchd has quit [Remote host closed the connection]
justbeingglad1 has joined #nixos
justbeingglad1 has left #nixos [#nixos]
<Myrl-saki> Wait, I feel like I'm missing something. How do I get the machine up to play the game?
<sphalerite> I think Enzime was assuming the build stoppage was for rebooting into windows
<manveru> why would you play on windows? :P
<Myrl-saki> Fair assumption. :P
<Myrl-saki> manveru: I don'\t.
<sphalerite> then why did you stop the build?
<sphalerite> to free up system resources?
graphene has quit [Remote host closed the connection]
<Enzime> sphalerite: probably lags out the game
<manveru> can't you nice it?
<sphalerite> You could just SIGSTOP the `make` process or whatever
<Myrl-saki> sphalerite: Load ave was at 9.
<Myrl-saki> On a quad core
<sphalerite> then SIGCONT it when you're done playing
<sphalerite> I've done that often for other reasons
<manveru> that's neat
<Myrl-saki> I'm uh... not smart.
graphene has joined #nixos
<sphalerite> `pkill -STOP -G nixbld` to stop all nix build processes :p
<manveru> my mother used to say, your legs make up for what your brain lacks :)
<sphalerite> although typically stopping make or hwatever is nicer,because then gcc (or whatever) can finish and give up the RAM it was using
<Myrl-saki> manveru: I have thick thighs if anything.
wpcarro has quit [Ping timeout: 244 seconds]
<Myrl-saki> But I'm a guy
<Myrl-saki> Soooo
<manveru> well, legs in this case is time
<sphalerite> I think legs is meant in the sense of physical effort in this idiom... :p
<sphalerite> or more generally hard work
<manveru> yeah
<manveru> worked out for me so far ;)
<infinisil> manveru: Heh yeah, here too, but in swiss german, smth like "Those without brain have legs"
mariatsji has quit [Remote host closed the connection]
<infinisil> "Wer kei bei het, het füess"
<sphalerite> Is there a convenient way to build nixos VM images for use outside nixos?
<sphalerite> i.e. I want to build a nixos config into an image that I can just plonk into virtualbox on my mum's mac
stepcut has quit [Remote host closed the connection]
<manveru> well, you can use the same function nixos uses to build its vbox image
<sphalerite> ah ok so <nixpkgs/nixos/modules/installer/virtualbox-demo.nix> and build config.system.build.virtualBoxOVA?
<LnL> nix-build '<nixpkgs/nixos>' -A vm -I nixos-config=configuration.nix
<manveru> aye :)
<manveru> i used that ages ago and it was pretty neat
<LnL> and yeah the special configs like cd-image or ova add an attribute in config.system.build
sbdchd has joined #nixos
<{^_^}> [nixpkgs] @marsam opened pull request #43526 → z3: fix darwin build → https://git.io/fNmKz
<buckley310> what is the best way to add "~/.local/bin" to my PATH? just drop it in .bashrc, or is there a more "correct" place to put it?
stepcut has joined #nixos
rardiol1 has left #nixos [#nixos]
<infinisil> buckley310: That's one possibility, another one is to use the nixos option environment.variables.PATH or environment.sessionVariables.PATH, or alternatively, try to install things via Nix instead
<infinisil> The last of which is the preferred one if possible
gspia has quit [Quit: Leaving]
<infinisil> Or services.xserver.displayManager.sessionCommands
gspia has joined #nixos
<sphalerite> LnL: hm, I ran the script and it's stopped after saying "mke2fs 1.44.1 (24-Mar-2018)"
<sphalerite> as in I've just got a flashing cursor and no further output
<buckley310> yeah, i did try installing via nix first but unfortunately there are some missing packages :(
<buckley310> but pip to the rescue
ambro718 has joined #nixos
<{^_^}> [nixpkgs] @volth opened pull request #43527 → processing3: fix crash under XFCE → https://git.io/fNmK1
<LnL> sphalerite: as in the run-vm script?
manny has joined #nixos
<{^_^}> [nixpkgs] @volth opened pull request #43528 → mucommander: fix crash under XFCE → https://git.io/fNmKS
<tenten8401> is there a way for me to set up sddm to run on tty1 instead of 7?
<tenten8401> would I just have to use the extraConfig block?
<sphalerite> tenten8401: I think it just uses the first available tty. If you disable the getty service for it (systemd.services.getty@tty1.enable = false;) I think it should use tty1
<sphalerite> not sure though.
<tenten8401> ah alright, I'll have to try that
<sphalerite> oh you might need to quote "getty@tty1". Not sure how nix feels about @s in identifiers.
<tenten8401> also, is there a way I can set the tty greeting line to something like fortune run through lolcat
<tenten8401> I know you can set it to text but I'm not sure if you can do commands
<infinisil> tenten8401: services.mingetty.greetingLine
<infinisil> Ah
<infinisil> commands..
<sphalerite> this doesn't seem to be an option offered by mingetty
andymandias has quit [Ping timeout: 276 seconds]
pluplog has quit [Read error: Connection reset by peer]
<tenten8401> so I really couldn't do a command.. hmm.
<sphalerite> you could use something other than mingetty if you really want it that badly
<infinisil> tenten8401: It would be possible to override the ExecStart command of the getty services to run a command first and pass the result to the actual getty command
<infinisil> See <agetty.nix>
<tenten8401> oh that might work
graphene has quit [Remote host closed the connection]
<tenten8401> didn't think about doing it that way
mariatsji has joined #nixos
<tenten8401> and it'd be the same across all ttys, which is what I was hoping for
graphene has joined #nixos
<infinisil> Yeah, maybe you could even PR that :O
alexteves has joined #nixos
andymandias has joined #nixos
<infinisil> Oh wait, it's passed via a file in /etc :/
<tenten8401> ah hm
<infinisil> Ah, --issue-file <file>
<infinisil> Damnit {^_^}
<infinisil> tenten8401: See man agetty
xy2_ has joined #nixos
logzet has joined #nixos
<tenten8401> hmm.
<sphalerite> LnL: yes the run-nixos-vm script
wpcarro has joined #nixos
<neonfuz> Hey
freeman42x]NixOS has quit [Ping timeout: 260 seconds]
<neonfuz> what's up with channels_root? I've never noticed it before, is it new?
<sphalerite> nope it's been around for a long time
knupfer has quit [Ping timeout: 240 seconds]
<neonfuz> that is, ~/.nix-defexpr/channels_root
<sphalerite> it's how root's channels end up being searched by nix-env as other users
alexteves has quit [Quit: Leaving]
<neonfuz> I think my old install never had that :/
alexteves has joined #nixos
<sphalerite> how old is old?
<tenten8401> doesn't really look like there's a good alternative to agetty
alexteves has quit [Remote host closed the connection]
<infinisil> tenten8401: What's not good about it?
alexteves has joined #nixos
<tenten8401> can't run commands for the /etc/issue
<tenten8401> I wanna have a fortune piped through lolcat and I'm not sure if there's a good way to do it
wpcarro has quit [Ping timeout: 244 seconds]
<infinisil> Does what I proposed not work?
<neonfuz> sphalerit: only like 6 months I think
<sphalerite> neonfuz: then it should have had that
<tenten8401> I mean, in theory it would, but I'd like a way to pass it without writing to a file every time
<infinisil> tenten8401: Just use bash file descriptors
<infinisil> tenten8401: --issue-file <(echo foobar)
<tenten8401> that's a thing?
<infinisil> That is indeed a thing
<sphalerite> I bet getty will try to close and reopen it though :p
<neonfuz> sphalerite: even if I use a different channel for root and the user?
<neonfuz> or the same?
<infinisil> sphalerite: Well that's what all programs use to read files, it should also work with getty
<sphalerite> neonfuz: user vs root channels is a pain
<tenten8401> I'll give it a shot
<neonfuz> mostly I just came here to see what's recommended / normal
<sphalerite> infinisil: no, some programs assume you're passing a regular file and try to do stupid stuff like getting its size
<neonfuz> but right now I'm using nixpkgs-unstable for my user, and nixos-unstable for my os, is this okay?
<infinisil> Ah I see, haven't seen that
<tenten8401> is there a way to set custom getty arguments without redoing the ExecStart command?
<neonfuz> but now when I search packages it says 2 are found every time
<sphalerite> infinisil: I've often tried to do git diff <(sort a) <(sort b) only to be disappointed
<neonfuz> how would I make it always use nixpkgs instead of nixos?
<sphalerite> because it just interprets them as symlinks rather than reading from them
<sphalerite> neonfuz: it should be safe to remove ~/.nix-defexpr/channels_root
<neonfuz> okay
<tenten8401> or, y'know... maybe I could have a systemd reboot service write to /etc/issue or something
<tenten8401> idk
rcshm has joined #nixos
<neonfuz> also, should my main package channel be named nixpkgs or nixos?
<neonfuz> (user packages that is)
<infinisil> tenten8401: Just <( should be simpler if it works (and it probably works)
<neonfuz> (asking opinion / suggestions / what you guys do if nothing else)
<sphalerite> infinisil: oh yeah and seeking doesn't work on /dev/fd/*
<sphalerite> for obvious reasons
* infinisil doesn't get the obvious reason
<sphalerite> it's a stream
<sphalerite> it's not seekable in the same way as stdin
<infinisil> But like, you can still read byte-by-byte until you reached a certain index (by counting)
<tenten8401> infinisil: do you know if there's a way to take advantage of the ${extraArgs} in the getty file, or would I have to redo the ExecStart line completely
<infinisil> Only forwards though, I guess
<sphalerite> yes but that's not seeking. ANd you can't go back
<infinisil> tenten8401: If you want to do it from configuration.nix you'll have to redo it
<sphalerite> i.e. you can't use the lseek syscall on them
<tenten8401> ah alright
<infinisil> tenten8401: But you can also use a nixpkgs checkout to modify the file directly and add an option for it
<infinisil> Which I would do
<infinisil> Also, if the <( thing doesn't work, you can just use a temporary file, with mktemp
<sphalerite> what's everyone's favourite way to get a temporary http server, serving the cwd or something?
<sphalerite> I'd like to avoid writing any annoying config files
alex``` has quit [Ping timeout: 276 seconds]
<rotaerk> I tested it for my project, but I'm not really sure how to regression test...
<rotaerk> should I rebase to staging or master?
mariatsji has quit [Remote host closed the connection]
<infinisil> rotaerk: I'd say staging
<rotaerk> k
<sphalerite> yep since binutils is a mass rebuild staging is the way to go
<LnL> sphalerite: I forgot that does some special stuff 9p to use store paths from the host, the ova or iso should definitively work
<sphalerite> as for tests, hydra will run them
<sphalerite> LnL: the ova and iso do not lend themselves to testing quickly :(
<ambro718> How do I save a build nixops deployment and deploy it later?
<rotaerk> this bug has been around since february; I wonder how no one noticed until now
<infinisil> ambro718: As long as you don't do a nix gc, the built products won't be deleted
<ambro718> infinisil: so how do I deploy a built configuration
<infinisil> ambro718: Just deploy like normal, nix will know that it was built already
<ambro718> assuming I lost the nixpkgs / configuration source
<infinisil> Oh
<ambro718> infinisil: that's the whole point. I may not be keeping an exact source nixpkgs / config.
<ambro718> but I can keep (e.g. via a reference) the built output, so how do I deploy it?
<infinisil> So you just have a /nix/store/...nixops-machines file and want to deploy that?
<infinisil> I don't think that's possible, you need the nix files
<ambro718> yes, I want to have a way to reliably reverse to a previous deployment even if I lost the sources
ixxie has joined #nixos
<ambro718> seems like a big oversight, since reliable rollback is a major selling point
<infinisil> The Nix files are the most important thing, if you should back up anything it's them
<infinisil> Keep them in git too
<LnL> sphalerite: yeah, should be possible to make an equivalent that works on any machine with qemu but I'm not aware of something like that
<ambro718> infinisil: this is unrealistic. It means I would need to keep accurate tags of both my config and nixpkgs repos and some correspondence between them.
<infinisil> ambro718: Wait, maybe nixops has some rollback thing on it's own *goes checking*
<ambro718> infinisil: it has an undocumented rollback command that takes a GENERATION
<sphalerite> LnL: well I was hoping I could just iterate my VM using run-nixos-vm then when I've got that all done as I want build the ova
<sphalerite> buuuuut run-nixos-vm won't boot :(
<ambro718> no idea what do do with it. Especially since nix-collect-garbage --delete-old (that I often do) happily deletes old generations of nixops profiles.
<LnL> sphalerite: what about vmWithBootLoader
<ambro718> so I want to do a GC root do a build output and then tell nixops to deploy that
<infinisil> ambro718: Well you can't restore anything when you delete everything..
<ambro718> yeah ^^
<ambro718> infinisil: I want to mark a specific build to be preserved.
<infinisil> But the generation rollback command would be what you need
<ambro718> infinisil: how if I only have a GC root?
graphene has quit [Remote host closed the connection]
<ambro718> mess with /nix/var/nix/profiles/per-user/USER/nixops/ manually?
FRidh has quit [Quit: Konversation terminated!]
<infinisil> You just need to add the resulting nixops build as a gc root, then it won't get deleted. And then you should be able to give this generation to the rollback command you mentioned
graphene has joined #nixos
<infinisil> Or the generation yeah
<ambro718> infinisil: nix-collect-garbage might have deleted the profile link in the directory I mentioned
<ambro718> so presumably nixops rollback wouldn't know what to deply
<infinisil> ambro718: Check out `nix-store`, the --add-root and --indirect flags
<infinisil> I don't know the rollback command you mentioned, but presumably it should be able to do the whole deploy from a nixops build
<{^_^}> [nixpkgs] @teto opened pull request #43529 → lib.debug: fix traceValSeqFn → https://git.io/fNmiw
stepcut has quit [Remote host closed the connection]
<ambro718> infinisil: Sure, that will give me a link that will keep the build result alive, but I don't think I can use it to keep the provile link in /nix/var/nix/profiles/per-user/USER/nixops/ alive!
<clever> ambro718: correct
<ambro718> I would need to manually create a symlink in that directory in case it got deleted
<ambro718> I mean with --add-root
<clever> the roots in profiles can just be made with ln
<ambro718> ok looks it could kinda work, though it would be nice if rollback also supported giving a build directoy
<clever> this is also why i avoid nix-collect-garbage -d
<sphalerite> nixos-rebuild switch -I nixos-config=http://192.168.1.123/config.tar # woooooooo
<infinisil> sphalerite: Whoa..
vasiliy_san has quit [Quit: Connection closed for inactivity]
<clever> i believe that will load the default.nix in that file
<sphalerite> clever: indeed
<infinisil> I mean it's obvious why it works but I never though of that
<clever> i have thought of doing it with github archive tars before
<sphalerite> I tried http://192.168.1.123/configuration.nix first, but that didn't work because nix will only accept tars
<tenten8401> so I'm trying to the getty service and no matter whay I seem to set for systemd.services."getty@".script, it just seems to give me a "Value is a string with context while a list was expected"... and I thought it was supposed to be a string
<clever> tenten8401: can you gist your configuration.nix file and the exact error?
wpcarro has joined #nixos
<tenten8401> Line 44 is what I'm working on
stepcut has joined #nixos
<clever> tenten8401: i also get that error, even without your config
ixxie has quit [Ping timeout: 240 seconds]
<clever> tenten8401: something within the nixos modules has set an invalid option on that
wpcarro has quit [Ping timeout: 240 seconds]
<elvishjerricco> Is it possible to get the ld wrapper to echo the final arguments to stderr?
<tenten8401> uhg
<clever> i'm not sure how it works at all
<{^_^}> [nixpkgs] @mboes opened pull request #43530 → bazel: Set a sensible strict action environment. → https://git.io/fNmiA
<ambro718> How would one disable all graphics drivers so that the system would remain in the VGA console?
<sphalerite> elvishjerricco: I think NIX_DEBUG=7 should get it to show it *somewhere*
<elvishjerricco> Oh good :P
endformationage has joined #nixos
<tenten8401> think I'll just have to live without it for now
<sphalerite> ambro718: you mean disabling fbcon?
<ambro718> I suspect loading the graphics stuff on my computer causes the system to crash and freeze if there is no monitor connected on boot.
<ambro718> sphalerite: I mean disabling as much of the graphics drivers as possible
<neonfuz> huh, running nix-channel --update re-created channels_root
<sphalerite> ambro718: you could try blacklisting the relevant drm modules
<neonfuz> weird that my old install didn't have that...
<ambro718> yeah I will do that, I taught maybe there could be a simple option
<clever> tenten8401: oh wait, line 71! its a list
<clever> tenten8401: setting .script will try to set ExecStart to a string, and 71 already sets it to a list
<neonfuz> oh, apparently I was using nixos-unstable for all my packages on my old install too
<sphalerite> ambro718: the kernel option nomodeset might also be worht trying
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<tenten8401> clever: is there a way to addon to that list or do I have to override it completely?
<ambro718> maybe. For now I'll just try blacklisting stuff. I have no use for graphics, this is a router computer.
<{^_^}> [nixpkgs] @Rotaerk opened pull request #43531 → binutils: Enable new dtags in a way that works with binutils 2.30. → https://git.io/fNmPG
<clever> tenten8401: i believe you have to override it, .serviceConfig = mkForce { ExecStart = ...; };
<clever> tenten8401: or disable the entire module
<rotaerk> can someone take a look at that PR?
<tenten8401> ah that sucks
<clever> disabledModules = [ "services/networking/ntpd.nix" ];
<clever> tenten8401: if you put something like this into configuration.nix, the entire ntpd.nix stops working
<clever> tenten8401: you can then put a copy of it into imports, and freely edit that copy
<tenten8401> was going to try appending the already existing list to the list
<tenten8401> but that apparently causes infinite recursion
stepcut has quit [Remote host closed the connection]
<mkaito> where in the nixpkgs pkgs tree should I put a support application for a certain game? in pkgs/games/gamename/appname for example?
stepcut has joined #nixos
rcshm has quit [Remote host closed the connection]
stepcut has quit [Remote host closed the connection]
gspia has quit [Quit: Leaving]
igo95862 has joined #nixos
rcshm has joined #nixos
__monty__ has joined #nixos
<mkaito> or pkgs/applications/misc
mariatsji has joined #nixos
ambro718 has quit [Quit: Konversation terminated!]
timon37 has joined #nixos
rcshm has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @vcunat pushed to staging-next « Merge branch 'master' into staging-next »: https://git.io/fNmXB
vcunat has joined #nixos
worldofpeace has quit [Remote host closed the connection]
mariatsji has quit [Ping timeout: 244 seconds]
<tenten8401> so overriding the command and using --issue-file <(${pkgs.fortune}/bin/fortune) doesn't seem to do anything
<tenten8401> just seems to leave a blank tty with a login screen
<tenten8401> would it be possible to use a command inside of my .nix file to write to a file with? as in if I wanted to just "figlet test" into /etc/issue?
<sphalerite> you could just run `figlet test > /etc/issue` independelty of the nixos config
<sphalerite> -typos
timon37 has quit []
<gchristensen> if you use nixos, you can define the contents of /etc/issue in your configuration.nix, of course
<tenten8401> I could define the contents of /etc/issue, but I want to generate that from the output of a command
<tenten8401> I am using NixOS
<gchristensen> sure, you can do that
<sphalerite> switching to a configuration seems to create any missing home directories; but where are they created from? Are they initialised to just be empty?
<tenten8401> gchristensen: how would I go about referencing the command inside of a string?
<clever> gchristensen: the issue, is that the contents have to be different every time you login
<gchristensen> environment.etc.issue.source = pkgs.runCommand "figlet-test" { buildInputs = [ pkgs.figlet ]; } "figlet hi > $out";
<gchristensen> oh I see
<clever> gchristensen: fortune is designed to produce a random quote from a DB
<gchristensen> yes I know what fortune is
<tenten8401> I've settled on just not using fortune
coot_ has quit [Quit: coot_]
<gchristensen> anyway, 16:21 <tenten8401> would it be possible to use a command inside of my .nix file to write to a file with? as in if I wanted to just "figlet test" into /etc/issue?
<gchristensen> is solved by my sample
andi- has quit [Remote host closed the connection]
<tenten8401> I think that's what I'm looking for
<tenten8401> it isn't of type string apparently, and converting it to a string just spits out the path to the /nix/store/whatever-figlet-test
<clever> tenten8401: wrap it in "${....}"; to convert it to a string
<{^_^}> [nixpkgs] @fpletz merged pull request #41745 → nixos: Add more ssh-keygen params → https://git.io/vh2ZU
<{^_^}> [nixpkgs] @fpletz pushed 3 commits to master: https://git.io/fNmXA
worldofpeace has joined #nixos
<tenten8401> still seems to be doing the same thing, one sec
<sphalerite> having stopped display-manager, can I run nixos-rebuild switch *without* it being started again (but also withotu disabling it)
<gchristensen> tenten8401: hmmm I think you have an error somewhere else, because I don't get that
<clever> tenten8401: thats how all derivations work
<gchristensen> (I do get a different error, though, one sec)
<clever> sphalerite: i think there was a related bug, where it restarts something like dbus, which causes your session to crash
<tenten8401> this is what I'm working with: https://hastebin.com/eqegumopul.bash
<tenten8401> and it just sets the greeting to the nix store path
<clever> tenten8401: you have to set .source, check gchristensen's example again
<tenten8401> ah I completely missed that
<gchristensen> hmm I'm getting mismatched duplicate entry /nix/store/52m92g9draawiyhl3b4dr1x9w0a4p1xw-figlet-test <-> /nix/store/02wp1iqmgs1i35mb16hqjq62j9ym60ja-issue
andi- has joined #nixos
<gchristensen> with etc.issue = lib.mkForce { source = pkgs.runCommand "figlet-test" { buildInputs = [ pkgs.figlet ]; } "figlet hi > $out"; }
<clever> gchristensen: it may need an mkForce
<clever> on .source itself i think
<gchristensen> I tried that too
ambro718 has joined #nixos
<tenten8401> now it's complaining about it not being a string again, after setting services.mingetty.greetingLine.source = ''${pkgs.runCommand ... }'';
<ambro718> Is it possible to replace a nixos module with a local modified version_
<clever> ambro718: yes
<clever> ambro718: disabledModules = [ "services/networking/ntpd.nix" ];
<gchristensen> tenten8401: delete that code, and see if you still have the error
<ambro718> clever: thanks
<gchristensen> tenten8401: I think you have a different problem with the string.
<infinisil> tenten8401: The problem with your <(fortune was probably that you set that directly as an argument, which won't work, because bash won't interpret that
<infinisil> tenten8401: You need to create a bash script and call that as the ExecStart
<tenten8401> ah hmm.
<gchristensen> many people all with different directions
<gchristensen> you can't set greetingLine.source, it isn't an option
igo95862 has quit [Quit: igo95862]
Thra11 has joined #nixos
igo95862 has joined #nixos
logzet has quit [Remote host closed the connection]
<ambro718> can the default value of a nixos option depend on other options?
<clever> ambro718: yes
<illegalprime[m]> how do you add config options to dbus? `environment.etc."dbus-1/system.d/ofono.conf"` gives me an error (`duplicate entry dbus-1`) and I don't see any useful options in `services.dbus`.
<clever> ambro718: buildUsers will always be big enough to support maxJobs
<ambro718> clever: I don't get it, I should put mkDefault into default = ?
<clever> ambro718: into the config section
<ambro718> clever: and set no default in the mkOption?
<infinisil> It should also work with default in the mkOption
<infinisil> (but then without mkDefault)
<tenten8401> alright, so I got the script sorted with pkgs.writeScript, but now I've got /dev/agetty: cannot open as standard input: No such file or directory
<infinisil> But the mkDefault way not in mkOption might be preferable
<tenten8401> which I'm pretty sure unfortunately means it's not gonna work with the bash command input
<ambro718> infinisil: default = cfg.something; ?
<clever> illegalprime[m]: it looks like you can only impact it by setting .packages, and then line 13 will generate the config
<infinisil> Yea
<ambro718> okay thanks
tertle||eltret has joined #nixos
<infinisil> tenten8401: Your code?
alex``` has joined #nixos
<sphalerite> is there a particular reason why unit script derivations *all* have the name unit-script, rather than more useful names?
<illegalprime[m]> clever: thank you! so I should make a package first that outputs one config file?
<infinisil> tenten8401: Try the mktemp way maybe
logzet has joined #nixos
<clever> illegalprime[m]: probably, and i think it should be in a subdir of share, like it would be on other distros
<gchristensen> sphalerite: I've wondered that too :)
<sphalerite> I'll make a PR and find out :p
flexw has joined #nixos
<clever> illegalprime[m]: /nix/store/d7vyx94x2alqq027v5f2d0ipyn7hnjh6-dconf-0.28.0/share/dbus-1/services/ca.desrt.dconf.service
<tenten8401> infinisil: as in just pipe fortune into mktemp?
<infinisil> Nah
mariatsji has joined #nixos
<infinisil> tenten8401: tmp=$(mktemp); fortune >> $tmp; --issue-file $tmp
<illegalprime[m]> clever: ah OK, so I don't even need to make a package, I can just point this at a dir
<tenten8401> ah that might work
srl295 has joined #nixos
<gchristensen> here is an idea
<tenten8401> gchristensen: you have to put "" infront of it to override the previous ones set I think
<gchristensen> that doesn't make sense
<tenten8401> but it works
<gchristensen> use a PreStart directive on Getty to update an issue file
<tenten8401> hmm
<gchristensen> tenten8401: I'm not sure it is doing what you think it is doing ... but it might work?
<flexw> hello, what is in nixos the proper way to configure iptables? There is a firewall option but I want to manage iptables completely by myself. Is there any possiblity to this in the configuration.nix file?
igo95862 has quit [Quit: igo95862]
<clever> flexw: this is how i customize the firewall: https://github.com/cleverca22/nixos-configs/blob/master/router.nat.nix#L19-L36
kyren has joined #nixos
<mupf> collision between `/nix/store/29vz8gi9m6i3b32800vsvwicy54z30fs-android-sdk-25.2.5/libexec/tools/lib/monitor-x86_64/monitor' and `/nix/store/gzrhh4r4kcdayx3mmim4cs30d2izqj6w-android-sdk-25.2.5/libexec/tools/lib/monitor-x86_64/monitor
<mupf> Can anyone tell me how to fix collisions?
<clever> mupf: youve installed 2 versions of the package
<{^_^}> [nixpkgs] @qoelet opened pull request #43533 → gnu-pw-mgr: 2.3.2 -> 2.3.3 → https://git.io/fNm1D
<mupf> I havn't explicitly installed android-sdk, but it is in my ~/.nixpkgs/config.nix
<clever> mupf: what does nix-env -q say?
<flexw> clever: thank you
<mupf> clever
<mupf> 2243 micha ~ % nix-env -q
<mupf> ertes-base
imalison_ has quit [Remote host closed the connection]
<mupf> ertes-dev
<mupf> ertes-gui
<mupf> nix-index-0.1.0
<mupf> stdenv
<mupf> weechat
<clever> mupf: why is the stdenv and a -dev package installed?, those shouldnt be there
<mupf> clever: tbh I do not know
<clever> mupf: nix-env -e stdenv ; nix-env -e ertes-dev
<mupf> Can I safely remove them? Any why shouldn't thesse packages be there?
iyzsong has joined #nixos
<clever> mupf: yeah, those should be perfectly safe to remove
<mupf> clever: ertes-dev are my dev related packages
<mupf> what is nix-index-0.1.0?
<clever> mupf: nix-index and nix-locate
<tenten8401> I still seem to be getting that stupid cannot open as standard input issue
blankhart has quit [Quit: WeeChat 1.9.1]
jmiven has quit [Ping timeout: 264 seconds]
<illegalprime[m]> clever: so I have `./dbus/etc/dbus-1/system.d/ofono.conf` and `services.dbus.packages = [ ./dbus ]`, `nixos-rebuild switch` runs but I don't see the new file in `/etc/dbus-1`. Am I using this right?
<mupf> thanks, I might have an idea regarding the conflicting package now
<clever> illegalprime[m]: it has to be in share/dbus-1/services/ca.desrt.dconf.service
ixxie has joined #nixos
<illegalprime[m]> clever: but I don't want to include a service file, I just want to add a policy change (to allow root to own `org.ofono`)
iyzsong has quit [Ping timeout: 248 seconds]
<clever> illegalprime[m]: then we ned to check the source of makeDBusConf
<clever> /home/clever/apps/nixpkgs/pkgs/top-level/all-packages.nix: makeDBusConf = { suidHelper, serviceDirectories }:
<clever> /home/clever/apps/nixpkgs/pkgs/top-level/all-packages.nix- callPackage ../development/libraries/dbus/make-dbus-conf.nix {
pluplog has joined #nixos
init_6 has quit [Ping timeout: 260 seconds]
<clever> illegalprime[m]: not sure if it has any way to change the policy files, but you could use a packageOverride on makeDBusConf, to customize it
imalison has joined #nixos
<{^_^}> [nixpkgs] @lheckemann opened pull request #43534 → systemd: improve unit script drv naming → https://git.io/fNmMn
<sphalerite> gchristensen: ^ since I think it would make sense to run all the nixos tests for this, should I get ofborg to do that? Or maybe just run a small random sample?
<gchristensen> you'd have to call it by hand
<sphalerite> Yeah that's fine, just wondering if it's appropriate to get it to run all of them or not
<gchristensen> I wouldn't do _all_ of them, but go for it -- run several :)
xy2_ has quit [Ping timeout: 244 seconds]
<ambro718> is it possible to configure a service but not start automatically but only on explicit request by user or program?
<clever> ambro718: set .enable = false;
<sphalerite> ambro718: yes, that's the default in fact. Just don't add wantedBy = [ "multi-user.target" ];
<clever> oh that
<sphalerite> clever: no, that masks it, making it impossible to start
<clever> or that*
<clever> ah
<ambro718> the nixos module adds the wantedBy when enable = true
<clever> ambro718: mkForce, one sec
<ambro718> no way without modifying the nixos module then?
<sphalerite> oh it does? I didn't know that. In that case use mkForce = []
<sphalerite> err
<sphalerite> wantedBy = mkForce []
<ambro718> thanks
<illegalprime[m]> clever: thanks for your help! It turns out putting it in `./dbus/etc/...` was working, but my config syntax was wrong. I also got disconnected because network manager depends on dbus haha
<clever> illegalprime[m]: ah
wpcarro has joined #nixos
<ambro718> so what I am trying to do is that I have custom software which managed networking and I need the service to run only when the software says it should (software generates events that the service may run / should stop). Is there a preferred approach? I'm thinking to just make the software run systemctl start/stop.
wpcarro has quit [Ping timeout: 244 seconds]
wpcarro has joined #nixos
jmiven has joined #nixos
jmiven has quit [Client Quit]
ambro718 has quit [Quit: Konversation terminated!]
jmiven has joined #nixos
wpcarro has quit [Ping timeout: 244 seconds]
alex``` has quit [Ping timeout: 276 seconds]
<manveru> thoughtpolice: is https://github.com/NixOS/nixpkgs/pull/38698 actually something one can use yet?
<{^_^}> #38698 (by thoughtpolice, open): Overhaul PostgreSQL packaging, native extensions, and NixOS support
<tenten8401> So I'm trying a different approach to the getty greeting, and I seem to be getting a mismatched duplicate entry error with my code... https://hastebin.com/gaxusajara.bash -- I'm assuming that means that the contents of both files are the same, but I'm not sure if there's a good way to go about fixing that while still using pkgs.runCommand
<manveru> i just tried using timescaledb, and the build fails with lines like `rm: cannot remove '/nix/store/m1d7d49myqz40vv0rx1j6cl5pbv775xl-postgresql-and-plugins-10.3/bin/pg_config': Permission denied`
lonokhov has joined #nixos
<gchristensen> weird to see in my nixos rebuild :P
sbdchd has quit [Remote host closed the connection]
<samueldr> fonts?
<thoughtpolice> manveru: That's a separate bug.
<thoughtpolice> Fixing it requires an annoying bit of code duplication.
sbdchd has joined #nixos
<thoughtpolice> manveru: The quick fix is to enable 'postgis' as well as timescale. Then that will go away.
<joepie91> gchristensen: clearly that's because you enabled autoUpdate :D
<manveru> uh... ok
<{^_^}> #22653 (by spinus, open): Postgresql extraPlugins require /bin dir to exist in extension directory
<thoughtpolice> Maybe what I should just do instead is touch a `bin/` directory under timescale
<thoughtpolice> That might work better.
<thoughtpolice> At least for now... I'd ideally not like to duplicate code between the NixOS module and the Postgres expressions. I can maybe take another stab at this before I go to the show later tonight
<manveru> that'd nice :)
<thoughtpolice> manveru: Anyway sorry about that. I've been meaning to push this but, otherwise -- yes, I've been happily running Postgresql on my Ryzen machine since April with that patchset.
gchristensen has quit [Quit: WeeChat 2.0]
<manveru> there's also an upgrade for timescaledb still unmerged
<thoughtpolice> (To be fair, this exact problem existed beforehand like I said, so working around it better would be nice)
<thoughtpolice> manveru: Yeah I saw they released 0.10 recently
mariatsji has quit [Remote host closed the connection]
<{^_^}> #42947 (by r-ryantm, open): timescaledb: 0.9.2 -> 0.10.0
gchristensen has joined #nixos
gchristensen has quit [Changing host]
gchristensen has joined #nixos
<thoughtpolice> They already have a 0.10.1 as well: https://github.com/timescale/timescaledb/releases
<manveru> ah
<manveru> well, i can build postgis for now, but it seems like a waste
<thoughtpolice> Yeah, it is. Also postgis has very weird dependencies right now
<{^_^}> #38698 (by thoughtpolice, open): Overhaul PostgreSQL packaging, native extensions, and NixOS support
<infinisil> Oh damn, I haven't handled that case of the pr linking..
<thoughtpolice> So like if you enable Postgresql 10 and then install Postgis into it, you actually have to also install the postgresql 9 libraries, meaning 10 becomes dependent on 9. lol
sbdchd has quit [Ping timeout: 256 seconds]
* infinisil goes to fix that
knupfer has joined #nixos
mariatsji has joined #nixos
<iqubic> What do people do for developing JS on Nixos?
<iqubic> nodePackages.httpServer isn't a thing in the repos.
<thoughtpolice> manveru: I've confirmed this fix works.
mekeor has joined #nixos
<thoughtpolice> Ugh. Maybe I should do a mix-in postInstall or something to always create $out/bin for now as a workaround... Otherwise you have to make sure *every* extension does this.
<thoughtpolice> But really I should fix it properly.
<iqubic> err.. nodePackages.http-server.
<rotaerk> ryantm, that git bisect strategy worked, for diagnosing the cause of RPATH being used instead of RUNPATH worked. I created PR #43531
<{^_^}> https://github.com/NixOS/nixpkgs/pull/43531 (by Rotaerk, open): binutils: Enable new dtags in a way that works with binutils 2.30.
<manveru> we don't have _that_ many extensions :)
<iqubic> What do people use to run their local web servers to do JavaScript testing on NixOS?
<rotaerk> it only took a week to fully bisect it
<joepie91> [19:44] <iqubic> What do people do for developing JS on Nixos?
<joepie91> npm for development, node2nix for deployment
<{^_^}> [nixpkgs] @vbgl opened pull request #43535 → ocamlPackages.js_of_ocaml: 3.1.0 -> 3.2.0 → https://git.io/fNmDg
<joepie91> also, normally the webserver is a part of your application?
<iqubic> And how do you get the local server up and running?
<manveru> iqubic: node, yarn, and yarn2nix
<tenten8401> Anyone have an idea on how I'd avoid a mismatched duplicate entry error with this code? https://hastebin.com/ehifubaqox.bash -- I'm simply trying to run the hostname through figlet and set it as my /etc/issue.
<iqubic> joepie91: what do you mean?
<tenten8401> can I run pkgs.runCommand anonymously without a name?
<joepie91> iqubic: wait, are you talking about developing something with Node.js, or writing client-side JS for an application written in something else?
<manveru> thoughtpolice: the postgis trick worked, looking forward to a real one :)
<manveru> *real fix, i mean
<infinisil> tenten8401: You cannot
<infinisil> tenten8401: You might just have to override the nixos module
<infinisil> Either via nixpkgs checkout or disabling that module
marcinkuzminski has quit [Quit: ZNC - http://znc.in]
<tenten8401> so there's really no way I can write the output of a command to a file?
<infinisil> That's exactly what that thing does you're using
<iqubic> manveru: You use haskellPackage.yarn2nix?
<infinisil> But apparently source can't be set twice
<gchristensen> I can't figure out why I couldn't get it to mkForce environment.etc.issue
<manveru> iqubic: no
<infinisil> gchristensen: The type might be wrong
<manveru> it's ... complicated
<tenten8401> that's kind've annoying
<{^_^}> [nixpkgs] @thoughtpolice pushed 2 commits to master: https://git.io/fNmD6
<thoughtpolice> I'll rebase that PR shortly to contain that fix as well
<tilpner> tenten8401 - I have it working, minus the colors
<gchristensen> infinisil: oh?
<iqubic> joepie91: I'm writting client-side code that I'm trying to test with Firefox. Hence the need for a local server.
<manveru> thoughtpolice: thanks man
<tilpner> tenten8401 - https://tx0.co/1s
<infinisil> gchristensen: Hmm just checked, the types seem fine..
<iqubic> manveru: how does that work? Do you fetch the repo from there when you want to use yarn2nix?
<tenten8401> tilpner: link seems to be dead
flexw has quit [Quit: leaving]
<infinisil> gchristensen: (I previously fixed an issue where the wrong type would disallow overriding, specifically with types.unspecified)
<manveru> iqubic: no, it's in nixpkgs
<iqubic> Under what name?
<manveru> iqubic: yarn2nix
<tilpner> tenten8401 - Try again
<manveru> without the haskellPackages
fendor_ has joined #nixos
<tenten8401> got it
<joepie91> iqubic: right, but what is the client-side code being used for? normally, it's served up by whatever application/setup you have for the rest of the application, whether that be something like a Node.js or Python application with built-in webserver, or something like nginx when doing PHP
<manveru> but i think it's only in nixpkgs-unstable, not 18.03
<iqubic> oh..
<iqubic> error: undefined variable 'yarn2nix' at /home/avi/tfjs/linearRegression/shell.nix:7:5
<iqubic> yeah.
<tilpner> tenten8401 - Are you sure color codes are a thing at that level?
<clever> iqubic: line 4-7 of the file i linked
<{^_^}> [nixpkgs] @thoughtpolice pushed to master « timescaledb: 0.9.2 -> 0.10.1 »: https://git.io/fNmDS
<thoughtpolice> manveru: also that ^^
<manveru> w007
<manveru> thoughtpolice++
<{^_^}> thoughtpolice's karma got increased to 1
<tenten8401> tilpner: intersting, thanks! Let me know if you figure out the colors somehow, I think it may be falling back to a non-color terminal
<rotaerk> rotaerk++--
<rotaerk> "undefined behavior"
<tilpner> tenten8401 - Nevermind, I have colors
<tilpner> tenten8401 - Add -f
<tenten8401> lolcat -f?
<tilpner> Yup
<iqubic> can I just tell my shell.nix to pull it from the unstable branch?
<tenten8401> sweet, thanks!
<iqubic> How do I look at what branches of nixpkgs I have?
fendor has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @samueldr opened pull request #43536 → WIP!: lightdm-web-greeter (3.0.0rc2) → https://git.io/fNmDQ
<tilpner> iqubic - nix-channel --list, possibly with sudo
<{^_^}> [nixpkgs] @thoughtpolice closed pull request #42947 → timescaledb: 0.9.2 -> 0.10.0 → https://git.io/fdCB4
<tenten8401> I think figlet may need some adjusting but
<thoughtpolice> manveru: I've also rebased my refactoring branch and I've confirmed it works with nothing but a single 'timescaledb' in `.plugins`
<thoughtpolice> So you can just pull it and get all of that
<iqubic> Is it possible to tell my shell.nix to pull stuff from the unstable branch?
<manveru> iqubic: clever just showed you above
ixxie has quit [Ping timeout: 248 seconds]
silver has joined #nixos
<iqubic> I was wondering if there was a more elegent way to do it.
<tilpner> tenten8401 - Make sure to pass "-S 42" to lolcat to keep a clean conscience
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
wpcarro has joined #nixos
<iqubic> Why can't I do this: http://termbin.com/u4kc
<iqubic> error: syntax error, unexpected WITH, at /home/avi/tfjs/linearRegression/shell.nix:5:1
<manveru> remove the line 5
mariatsji has quit [Remote host closed the connection]
<iqubic> The mkShell line?
<samueldr> (and as for syntax, the with statement(?) needs to end with a semi-colon)
mariatsji has joined #nixos
<manveru> like this
<manveru> uhm
<manveru> ah, sorry, i didn't read your buildInputs
<{^_^}> [nixpkgs] @dtzWill closed pull request #43497 → ncurses: fix enableStatic option to do what it says → https://git.io/fNmJX
<manveru> but it won't hurt either way :)
<samueldr> oh, and the with statement cannot be inside the attrset
<iqubic> Where do I put the with statement?
<manveru> updated the paste
<samueldr> (but it's probably best not to use a with expression)
<manveru> for his first nix-shell i think it's fine
<iqubic> At this point it might be better to just use clever's sloution.
gchristensen has quit [Quit: WeeChat 2.0]
<samueldr> manveru: yeah, just a note :)
<iqubic> I'm just trying to get it to pull one thing from unstable
<iqubic> how do I do this without the with statement?
gchristensen has joined #nixos
gchristensen has quit [Changing host]
gchristensen has joined #nixos
<manveru> like this
erickomoto has joined #nixos
<samueldr> (oh, I read the issue backwards, I thought everything had to come from nixpkgs-unstable)
mariatsji has quit [Ping timeout: 260 seconds]
<iqubic> No I just want the one thing to come from nixpkgs-unstable.
<{^_^}> [nixpkgs] @ttuegel merged pull request #42910 → services.plasma5: Update start menu with an activationScript → https://git.io/fHSb0
<{^_^}> [nixpkgs] @ttuegel pushed 2 commits to master: https://git.io/fNmyz
<manveru> does it work?
<iqubic> no
<iqubic> error: attribute 'yarn2nix' missing, at /home/avi/tfjs/linearRegression/shell.nix:10:7
<iqubic> nixos-unstable is the name of my unstable branch.
<manveru> i think i wrote <nixos-unstable> instead of <nixpkgs-unstable>
<manveru> oh
<iqubic> You didn't, but I changed it.
<iqubic> It still doesn't work the way I want it to.
<iqubic> So I'm highly baffled here.
wpcarro has quit [Ping timeout: 244 seconds]
<manveru> i use this one
<{^_^}> [nixpkgs] @ttuegel merged pull request #43243 → sddm: use tmpfiles.d to wipe QML cache → https://git.io/fNfzx
<{^_^}> [nixpkgs] @ttuegel pushed 2 commits to master: https://git.io/fNmyr
knupfer has quit [Remote host closed the connection]
gchristensen has quit [Quit: WeeChat 2.0]
<iqubic> You don't try to import the branch directly from what "nix-channel --list" shows?
gchristensen has joined #nixos
gchristensen has quit [Changing host]
gchristensen has joined #nixos
<manveru> no
<iqubic> And is it possible have just yarn2nix come from unstable and everything else from stable?
<manveru> i use channels for my OS, but not for my projects
<iqubic> manveru: That makes sense.
<manveru> mostly because i want the latest for my projects, but a stable OS :)
mariatsji has joined #nixos
<iqubic> Yeah, I should do that.
<iqubic> Is it bad form to use a with statement there?
<manveru> also i usually specify something like /archive/1423512345345.tar.gz to point to the right revision
<gchristensen> I don't like `with`
<samueldr> iqubic: not necessarily, but you have to know what the with expression (looked it up, it's an expression) means
<samueldr> but yeah, `with` causes issues in understanding where stuff comes from
<manveru> true
<iqubic> I don't know what it means. I'm going to just use it.
<samueldr> when I use it, I try to use it as localized as possible
<gchristensen> like in a single list context
<samueldr> e.g. `buildInputs = with pkgs; [...];`
<manveru> i use `with builtins` sometimes :)
<samueldr> iqubic: with-expressions: https://nixos.org/nix/manual/#idm140737317923968
<tenten8401> tilpner: you wouldn't know how to overcome getty trying to use
<iqubic> Not quite working.
<tenten8401> ah, hit enter too soon
<iqubic> error: syntax error, unexpected '}', expecting ';', at /home/avi/tfjs/linearRegression/shell.nix:3:1
alex``` has joined #nixos
<iqubic> How do I fix that?
<tenten8401> how to overcome getty trying to use \ as an escape code and garbling up the text
<manveru> well, it expects a semicolon on line 3
<samueldr> your with-expression seems to be missing its semi-colon
<manveru> also line 2
<iqubic> What's up with line 2
<manveru> everything but the last expression must have them
<samueldr> an attribute/value pair needs a semi-colon at the end, too
<manveru> you need a `;` after the url
<tilpner> tenten8401 - Not really. You could probably escape every backslash, but that's annoying
<iqubic> Works now.
<iqubic> I have to go now. Sorry.
<tilpner> tenten8401 - But I guess you could try a font that doesn't use backslashes. univers looks good
<iqubic> Well, I have errors still, but I don't have time to diagnose them now.
<tenten8401> it doesn't seem to be the font, when showing it in the getty greeter it's all garbled, but if I log into getty and cat /etc/issue it looks fine
<samueldr> tenten8401: running it through a sed may work?
<tenten8401> I was just getting ready to try a sed
<samueldr> figlet test | sed -e 's/\\/\\\\/g
wpcarro has joined #nixos
<samueldr> escaping those is easy, I think unescaping those would be hell :)
<samueldr> (safely)
<tenten8401> there we go, now it looks normal
<tenten8401> you do have to escape the backslashes
<samueldr> yeah
<tenten8401> looks all garbled when I cat it now but the problem is solved where I was needing it to be
<tilpner> tenten8401 - Now figure out how to have 24bit colors in agetty c.c
<tenten8401> lol
wpcarro has quit [Ping timeout: 248 seconds]
tll has quit [Quit: tll]
<{^_^}> [nixpkgs] @xeji merged pull request #43513 → gutenberg: 0.3.1 -> 0.3.4 → https://git.io/fNmBl
<{^_^}> [nixpkgs] @xeji pushed commit from @dywedir to master « gutenberg: 0.3.1 -> 0.3.4 (#43513) »: https://git.io/fNmyj
<{^_^}> [nixpkgs] @xeji merged pull request #43514 → mdbook: 0.1.7 -> 0.1.8 → https://git.io/fNmBj
<{^_^}> [nixpkgs] @xeji pushed commit from @dywedir to master « mdbook: 0.1.7 -> 0.1.8 (#43514) »: https://git.io/fNmSJ
ashkitten has quit [Quit: WeeChat 2.0.1]
phreedom has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
ashkitten has joined #nixos
sbdchd has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to master « signal-desktop: 1.14.0 -> 1.14.1 »: https://git.io/fNmSO
<tenten8401> I wonder if you can use powerline fonts in getty...
gchristensen has quit [Quit: WeeChat 2.0]
gchristensen has joined #nixos
gchristensen has quit [Changing host]
gchristensen has joined #nixos
mariatsji has quit [Remote host closed the connection]
<samueldr> tenten8401: do you mean the fbcon consoles from the kernel?
<samueldr> IIRC it's limited by the number of glyphs?
<samueldr> [citation needed]
sbdchd has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #43174 → mate.mate-calc: 1.20.2 -> 1.21.0 → https://git.io/fNvXx
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « mate.mate-calc: 1.20.2 -> 1.21.0 (#43174) »: https://git.io/fNmSC
<tenten8401> whatever shows up when I press CTRL ALT F1-F6
<tenten8401> might be
<{^_^}> [nixpkgs] @xeji merged pull request #43180 → mate.mate-terminal: 1.20.1 -> 1.21.0 → https://git.io/fNv1l
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « mate.mate-terminal: 1.20.1 -> 1.21.0 (#43180) »: https://git.io/fNmSi
<tenten8401> Looks like I can set the font but I don't know if it'd work with powerline or not
phreedom has quit [Remote host closed the connection]
mariatsji has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #43187 → mate.mate-system-monitor: 1.20.1 -> 1.21.0 → https://git.io/fNvMO
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « mate.mate-system-monitor: 1.20.1 -> 1.21.0 (#43187) »: https://git.io/fNmS1
<tenten8401> doubt it
phreedom has joined #nixos
wpcarro has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #43185 → mate.mate-sensors-applet: 1.20.2 -> 1.21.0 → https://git.io/fNvMf
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « mate.mate-sensors-applet: 1.20.2 -> 1.21.0 (#43185) »: https://git.io/fNmSS
<manveru> i think they have to be bitmap fonts
<{^_^}> [nixpkgs] @xeji merged pull request #43182 → mate.mate-power-manager: 1.20.2 -> 1.21.0 → https://git.io/fNv1w
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « mate.mate-power-manager: 1.20.2 -> 1.21.0 (#43182) »: https://git.io/fNmSb
<{^_^}> [nixpkgs] @xeji merged pull request #43177 → mate.mate-settings-daemon: 1.20.3 -> 1.21.0 → https://git.io/fNv1s
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « mate.mate-settings-daemon: 1.20.3 -> 1.21.0 (#43177) »: https://git.io/fNmSA
<{^_^}> [nixpkgs] @xeji merged pull request #43176 → mate.mate-applets: 1.20.2 -> 1.21.0 → https://git.io/fNv1I
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « mate.mate-applets: 1.20.2 -> 1.21.0 (#43176) »: https://git.io/fNmSp
<{^_^}> [nixpkgs] @xeji merged pull request #43183 → mate.mate-menus: 1.20.1 -> 1.21.0 → https://git.io/fNv1M
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « mate.mate-menus: 1.20.1 -> 1.21.0 (#43183) »: https://git.io/fNmSj
mariatsji has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #43175 → mate.marco: 1.20.2 -> 1.21.0 → https://git.io/fNv1e
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « mate.marco: 1.20.2 -> 1.21.0 (#43175) »: https://git.io/fNm9J
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « mate.libmatekbd: 1.20.2 -> 1.21.0 (#43193) »: https://git.io/fNm9T
<{^_^}> [nixpkgs] @xeji merged pull request #43193 → mate.libmatekbd: 1.20.2 -> 1.21.0 → https://git.io/fNvDP
<{^_^}> [nixpkgs] @xeji merged pull request #43192 → mate.libmatemixer: 1.20.1 -> 1.21.0 → https://git.io/fNvMp
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « mate.libmatemixer: 1.20.1 -> 1.21.0 (#43192) »: https://git.io/fNm9I
tertle||eltret has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @xeji merged pull request #43191 → mate.libmateweather: 1.20.1 -> 1.21.0 → https://git.io/fNvMQ
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « mate.libmateweather: 1.20.1 -> 1.21.0 (#43191) »: https://git.io/fNm9t
phreedom has quit [Ping timeout: 250 seconds]
wpcarro has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #43338 → mate.mate-utils: 1.20.1 -> 1.21.0 → https://git.io/fNkWL
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « mate.mate-utils: 1.20.1 -> 1.21.0 (#43338) »: https://git.io/fNm9l
<{^_^}> [nixpkgs] @xeji merged pull request #43373 → adapta-gtk-theme: 3.93.1.28 -> 3.94.0.1 → https://git.io/fNIOp
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « adapta-gtk-theme: 3.93.1.28 -> 3.94.0.1 (#43373) »: https://git.io/fNm9B
<illegalprime[m]> How should I build packages with `/etc` output and systemd services? I don't see `etc` or `lib/systemd/...` in the output of the package
imalison has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
imalison has joined #nixos
tenten8401 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @xeji merged pull request #43516 → terraform-provider-ibm: 0.11.0 -> 0.11.1 → https://git.io/fNm0X
<{^_^}> [nixpkgs] @xeji pushed commit from @jensbin to master « terraform-provider-ibm: 0.11.0 -> 0.11.1 (#43516) »: https://git.io/fNm9i
<manveru> illegalprime[m]: they go into nixos modules
timon37 has joined #nixos
<illegalprime[m]> manveru: so I should have nix generate it and not use the upstream?
<manveru> pretty much
wpcarro has joined #nixos
<illegalprime[m]> OK cool
<infinisil> illegalprime[m]: $out/etc and $out/share/systemd/services or so get linked to /run/current-system/sw/{etc,systemd} or so i think
<Ankhers> gleber_: ping
<illegalprime[m]> infinisil: I don't see that output, what did you run to get `result`?
<infinisil> illegalprime[m]: It's what the autorandr derivation contains
<{^_^}> [nixpkgs] @xeji merged pull request #43533 → gnu-pw-mgr: 2.3.2 -> 2.3.3 → https://git.io/fNm1D
<{^_^}> [nixpkgs] @xeji pushed commit from @qoelet to master « gnu-pw-mgr: 2.3.2 -> 2.3.3 (#43533) »: https://git.io/fNm9N
wpcarro has quit [Ping timeout: 244 seconds]
ambro718 has joined #nixos
<illegalprime[m]> so something like `nix-build -A autorandr`?
<infinisil> Yeah
<ambro718> Can nix(ops) automagically build stuff for different CPU using qemu?
cacatoes has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #43430 → rebar3: 3.4.3 -> 3.6.1 → https://git.io/fNtsS
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/fNm9j
<infinisil> illegalprime[m]: And then nixos has the systemd.packages option which puts all included packages lib/systemd/ services into the system
<infinisil> But a nixos module is recommended if you want it to be more flexible
<{^_^}> [nixpkgs] @xeji merged pull request #43520 → xfce.xfce4-hardware-monitor-plugin: 1.5.0 -> 1.6.0 → https://git.io/fNmzs
<{^_^}> [nixpkgs] @xeji pushed commit from @volth to master « xfce.xfce4-hardware-monitor-plugin: 1.5.0 -> 1.6.0 (#43520) »: https://git.io/fNmHJ
<illegalprime[m]> infinisil: so does this mean my derivation isn't outputing to `etc` and `lib`? Or do I have to specify something special for nix to keep those directories in the output?
<infinisil> illegalprime[m]: Well if you can't see them in the result then it's obviously not outputting those dirs
<infinisil> illegalprime[m]: Nix won't delete anything from $out without you telling it to (e.g. via multiple outputs)
<illegalprime[m]> Oh that makes sense, I think its my string interpolation, how can I get `$out` to expand to the outdir and not be `\$out`
<infinisil> $out should work in phases
manny has quit [Quit: bye]
<ambro718> note that the out dir path cannot be a part of the definition of a package (derivation), due to theoretical reasons
<ambro718> (out path is calculated *based on* the definition of a derivation)
<infinisil> ambro718: It can actually
<illegalprime[m]> I have mine in `configureFlags`
<ambro718> infinisil: whaaaat?
<illegalprime[m]> and I see `install -c -m 644 plugins/phonesim.conf 'ut/etc/ofono'` so somehow `$out` is being chopped into `ut`
<infinisil> ambro718: Either `let drv = mkDerivation { somePhase = "echo ${drv.outPath}"; ... }; in drv
<infinisil> ambro718: Or with Nix 2.0 you can use `mkDerivation { somePhase = "echo ${placeholder "$out"}"; }`
<ambro718> infinisil: interesting, I'm sure I was asking about that before and the answer was it's impossible.
<infinisil> (Oh and it's ${placeholder "out"})
<infinisil> Hmm..
<{^_^}> [nixpkgs] @xeji merged pull request #43352 → e2fsprogs: 1.44.2 -> 1.44.3 → https://git.io/fNkiP
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to staging « e2fsprogs: 1.44.2 -> 1.44.3 (#43352) »: https://git.io/fNmH4
GiGa has joined #nixos
GiGa has quit [Changing host]
GiGa has joined #nixos
<ambro718> infinisil: how does it work? Is the expansion of outPath magically not done for the purpose of determining the out hash?
<infinisil> It might be
<GiGa> evening all. Anyone else using Gnome3 having a problem where it crashes and has to recover the desktop? This can happen multiple times a session before recovery is no longer possible and instead you're returned to the GDM login screen.
<infinisil> Oh yeah, I think it first calculates the derivation output by giving it a "fake" $out (aka placeholder), and then runs the build with the newly calculated one set to $out
<infinisil> ambro718: ^
<GiGa> Looking at the trace in journalctl -xe, it looks like it's this bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=887082
<infinisil> That's about 40% speculation, just a guess
<ambro718> infinisil: yeah that's how I'd do it :)
humanoyd has quit [Quit: WeeChat 2.1]
<GiGa> I'm not sure what version of Gnome3 I'm running, as "About" just says 3.0. I'm on NixOS unstablep
<infinisil> That's probably something clever knows more about
<illegalprime[m]> infinisil: it worked with your `${placeholder "out"}"` tip! thanks!
<ambro718> ok now what I had actually been asking about back then was stuff like that: let drv = mkDerivation { installPhase = writeFile "something with ${drv.outPath}"; };
igo95862 has joined #nixos
<clever> ambro718: installPhase can just be a string, it doesnt have to be a file
<infinisil> illegalprime[m]: Note that you can't make a PR to nixpkgs using placeholder, as nixpkgs still has to be Nix 1.x compatible
<illegalprime[m]> :(
<infinisil> illegalprime[m]: But there's ways not not have to use placeholder of course
<ambro718> oops I meant: let drv = mkDerivation { installPhase = "echo ${writeFile "something with ${drv.outPath}"}"; };
vcunat has quit [Quit: Leaving.]
<illegalprime[m]> I don't super understand the nix 1.0 version, how do you define the derivation and then use it?
<ambro718> in other words, a dependency derivation of drv includes the out path of drv somehow
graphene has quit [Read error: Connection reset by peer]
Lisanna has joined #nixos
<sphalerite> illegalprime[m]: you may want to have a look at the nix pills
<sphalerite> !pills
<{^_^}> [nixpkgs] @xeji merged pull request #43031 → elfutils: 0.172 -> 0.173 → https://git.io/fbpZy
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « elfutils: 0.172 -> 0.173 (#43031) »: https://git.io/fNmHz
<sphalerite> ambro718 likewise
graphene has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #43325 → sshguard: 2.1.0 -> 2.2.0 → https://git.io/fNkIe
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « sshguard: 2.1.0 -> 2.2.0 (#43325) »: https://git.io/fNmHa
GiGa has quit [Remote host closed the connection]
GiGa has joined #nixos
GiGa has quit [Changing host]
GiGa has joined #nixos
<GiGa> that would be it failing to recover :(
d1rewolf has joined #nixos
<{^_^}> [nixpkgs] @tarigo opened pull request #43537 → Update Qt Creator to version 4.6.2 → https://git.io/fNmHo
bara1 has joined #nixos
<ambro718> is there a function in nixpkgs to escape a string for passing to a shell command?
Lisanna has quit [Quit: Lisanna]
<ambro718> never mind, escapeShellArg
<{^_^}> [nixpkgs] @xeji closed pull request #43414 → mosquitto: 1.4.5 -> 1.5 → https://git.io/fNLwZ
bara has quit [Ping timeout: 260 seconds]
dsx has quit [Quit: dsx]
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<infinisil> > lib.escapeShellArg "'"
<{^_^}> "''\\'''"
<infinisil> Gotta love the escaping :)
wpcarro has joined #nixos
<infinisil> > lib.escapeShellArg ''''\'''
<{^_^}> "''\\'''"
justan0theruser has quit [Quit: WeeChat 2.0]
justanotheruser has joined #nixos
<sphalerite> > lib.escapeShellArgs ["escaping 'multiple' args" "can be *useful* too"]
<{^_^}> "'escaping '\\''multiple'\\'' args' 'can be *useful* too'"
erickomoto has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sphalerite> > lib.escapeShellArg "foo"
<{^_^}> "'foo'"
<sphalerite> hm ok
wpcarro has quit [Ping timeout: 240 seconds]
erickomoto has joined #nixos
<{^_^}> [nixpkgs] @xeji pushed commit from @marsam to master « z3: fix darwin build (#43526) »: https://git.io/fNmQk
<{^_^}> [nixpkgs] @xeji merged pull request #43526 → z3: fix darwin build → https://git.io/fNmKz
<{^_^}> [nixpkgs] @xeji merged pull request #41934 → pythonPackages.cmd2: 0.8.0 -> 0.9.1 → https://git.io/vhK9p
<{^_^}> [nixpkgs] @xeji pushed 4 commits to master: https://git.io/fNmQt
<rotaerk> bleh, so I fixed the bug causing binutils/ld to build with RPATH instead of RUNPATH, which causes binaries to now look at LD_LIBRARY_PATH
andymandias_ has joined #nixos
<rotaerk> but it seems that ghci just pulls from whatever would go into RUNPATH or RPATH, and ignores LD_LIBRARY_PATH (some different linker mechanism)
<{^_^}> [nixpkgs] @xeji merged pull request #43331 → mlt: 6.8.0 -> 6.10.0 → https://git.io/fNkGJ
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « mlt: 6.8.0 -> 6.10.0 (#43331) »: https://git.io/fNmQm
andymandias has quit [Ping timeout: 244 seconds]
<rotaerk> which means that I now *also* need to figure out why the libGL version specified in the RUNPATH isn't working
<rotaerk> evenn when the RPATH bug was introduced, libGL still worked because the one specified in RPATH (and overriding LD_LIBRARY_PATH) worked just fine
<rotaerk> but then later the libGL version pointed at by RPATH was changed to one that didn't work
sbdchd has joined #nixos
erickomoto has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
erickomoto has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<__monty__> If I specify substituters in nix.conf do I need to add cache.nixos.org or is that always included?
<{^_^}> [nixpkgs] @xeji merged pull request #43159 → renderdoc: 0.91 -> 1.0 → https://git.io/fNvKR
<{^_^}> [nixpkgs] @xeji pushed commit from @Ralith to master « renderdoc: 0.91 -> 1.0 (#43159) »: https://git.io/fNmQR
lezed1 has joined #nixos
GiGa has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #43528 → mucommander: fix crash under XFCE → https://git.io/fNmKS
<{^_^}> [nixpkgs] @xeji pushed commit from @volth to master « mucommander: fix crash under XFCE (#43528) »: https://git.io/fNmQo
<lezed1> Is there a way to use `nix-build` to build a list of derivations?
talin has joined #nixos
andymandias_ has quit [Ping timeout: 240 seconds]
<cocreature> __monty__: you need to add it. otherwise you end up building binutils or whatever like I did a few days ago :)
<{^_^}> [nixpkgs] @xeji merged pull request #43379 → electron: add gtk2 dependency → https://git.io/fNIlY
<{^_^}> [nixpkgs] @xeji pushed commit from @gnidorah to master « electron: add gtk2 dependency (#43379) »: https://git.io/fNmQQ
<{^_^}> [nixpkgs] @timokau opened pull request #43538 → fetchpatch: quote excludes → https://git.io/fNmQ7
<__monty__> cocreature: Do I also need to specify a trusted key then? Currently I have my ssh-substituter in the list but it's not working because it doesn't have a valid signature.
blankhart has joined #nixos
<__monty__> I may have skipped a step of reasoning, this is what I thought: I'll add it but I have to specify trusted-keys too because it's not working without one so does that mean I'll have to add one for the nixos cache as well?
manny has joined #nixos
<sphalerite> Dezgeg: menuconfig was fiddly to get to, but it did help! Thanks!
<cocreature> __monty__: right you need both
andymandias has joined #nixos
<sphalerite> __monty__: you need to add it, although I think you can use extra-substituters instead if you don't want to
<__monty__> Or I just go with extra-substituters I guess?
wpcarro has joined #nixos
<__monty__> Ah, let's take the easy way out for now : ) Then I won't have to specify anything for the nixos cache : )
<infinisil> lezed1: I think it does that already if the expression evaluates to a list
<infinisil> lezed1: Or multiple -A arguments work too if that's all you need
erickomoto has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
manny has quit [Client Quit]
<__monty__> Oh, I still need the trusted key with extra-substituters?
pie_ has quit [Ping timeout: 240 seconds]
<sphalerite> yeah
<lezed1> infinisil: Yep, looks like it supports list. I think my expression just had an error and evals to a list of errors instead. Thanks for the quick help!
<{^_^}> [nixpkgs] @YorikSar opened pull request #43539 → chromium: 67.0.3396.87 -> 67.0.3396.99 → https://git.io/fNm7e
<infinisil> :)
wpcarro has quit [Ping timeout: 244 seconds]
andymandias_ has joined #nixos
andymandias has quit [Ping timeout: 260 seconds]
talin has left #nixos [#nixos]
Jason_Grossman has joined #nixos
<ambro718> has anyone tried using systemd network access control with IPAddressAllow?
<ambro718> I want to limit a certain service to operate only on specific network interfaces. Doesn't seem like the right kind of limit though since it deals with addresses not interfaces.
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
erickomoto has joined #nixos
pluplog has quit [Read error: Connection reset by peer]
<sphalerite> kernel config question: https://sphalerite.org/dump/kconfig-dvb-core.png how can I disable this, or why can't I?
Jason_Grossman has quit [Ping timeout: 248 seconds]
warbo has joined #nixos
graphene has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @joachifm merged pull request #43426 → zoom-us: fix runtime qt environment → https://git.io/fNtm0
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to master: https://git.io/fNm7X
graphene has joined #nixos
<warbo> hi has anyone encountered cabal2nix giving "UnsupportedTarEntry (Entry {entryTarPath = "././@LongLink", entryContent = OtherEntryType 'L' ..." for the 00-index.tar file?
<mekeor> sphalerite: i'm a noob but i'd guess you can put "dvb_core" into boot.blacklistedKernelModules in your nixos-configuration
<samueldr> sphalerite: check VIDEO_V4L2 which can be set (I think) to DVB_CORE ?
<samueldr> mekeor: sphalerite wants to make a kernel build minimal, as in the least amount of compiling to do
<samueldr> (iirc)
pie_ has joined #nixos
<sphalerite> samueldr: it's also set to m without any information as to what's selecting it, nor the ability for me to set it to something else…
<sphalerite> and yes, that is correct :)
<clever> sphalerite: and if you set it to n ?
<samueldr> (armv7 is hard)
xorkle has joined #nixos
<sphalerite> clever: I *can't* set it to n
<sphalerite> like in the screenshot for the DVB_CORE option, there's no way for me to actually access the option
<sphalerite> but it's also not shown to be "selected by" anything else…
<clever> sphalerite: ah
<clever> sphalerite: id grep the KConfig files in the source to see where it appears
coot_ has joined #nixos
<samueldr> clever: I'm not sure with kconfig, but would "depends" lock an option? if so, there's a multitude of options, but otherwise, I think it's only VIDEO_V4L2 which can be set to DVB_CORE that may be locking it?
<sphalerite> clever: there's a bunch of stuff that depends on it, but that should just mean that the other stuff gets deactivated by deactivating DVB_CORE, right?
<Dezgeg> it's not an user-configurable option
<Dezgeg> but I guess if you disable its dependencies it goes away
<samueldr> Dezgeg: how do you see it's user-configurable or not?
<sphalerite> so I need to go through all the things that depend on it and disable them? >_>
<Dezgeg> if it lacks a description it's not user-configurable
sbdchd has quit [Remote host closed the connection]
<sphalerite> or is there maybe an option lower down that I can disable to get rid of all the DVB stuff?
<Dezgeg> no you just disable MEDIA_SUPPORT and/or MEDIA_DIGITAL_TV_SUPPORT as it says
<{^_^}> [nixpkgs] @dtzWill opened pull request #43540 → bloaty: 2018-05-22 -> 2018-06-15 → https://git.io/fNm5e
<sphalerite> oooooooooooh
<sphalerite> I feel vaguely enlightened. Like, it's dawned on me, but I feel like I should really have been able to come up with that myself.
<sphalerite> thanks Dezgeg !
knupfer has joined #nixos
aarvar has joined #nixos
<Dezgeg> kconfig is not the most documented thing
manny__ has joined #nixos
manny__ has quit [Read error: Connection reset by peer]
<sphalerite> still, not coming up with "disable one of the dependencies" is a bit of a thinko :p
warbo has quit [Ping timeout: 244 seconds]
Rusty1_ has joined #nixos
<{^_^}> [nixpkgs] @joachifm pushed to master « tor: 0.3.3.8 -> 0.3.3.9 »: https://git.io/fNm5O
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<Dezgeg> I guess it's also quite a rare case of a symbol
<Dezgeg> usually it's either totally user-configurable or a library symbol that's just selected by stuff, but this is something different
manny has joined #nixos
<{^_^}> [nixpkgs] @jfrankenau opened pull request #43541 → cura: 3.3.1 -> 3.4.1 → https://git.io/fNm52
<{^_^}> [nixpkgs] @xeji merged pull request #43198 → hdf4: 4.2.13 -> 4.2.14 → https://git.io/fNvyz
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « hdf4: 4.2.13 -> 4.2.14 (#43198) »: https://git.io/fNm51
ambro718 has quit [Quit: Konversation terminated!]
igo95862 has quit [Quit: igo95862]
warbo has joined #nixos
<__monty__> What order does nix-copy-closure operate in? It looks completely random.
phreedom has joined #nixos
<clever> __monty__: all dependencies of a path must exist before the path itself can be copied
<sphalerite> __monty__: I think it might be toposorted then alphabetical
<clever> and it probably appears random, because that alphabetical is sorting by hash
Rusty1_ has quit [Quit: Konversation terminated!]
orivej has quit [Ping timeout: 260 seconds]
<__monty__> clever: I was looking at the hashes, no sense, anywhere.
<{^_^}> [nixpkgs] @xeji merged pull request #43540 → bloaty: 2018-05-22 -> 2018-06-15 → https://git.io/fNm5e
<{^_^}> [nixpkgs] @xeji pushed commit from @dtzWill to master « bloaty: 2018-05-22 -> 2018-06-15 (#43540) »: https://git.io/fNmdv
<clever> __monty__: the toposort has priority
graphene has quit [Remote host closed the connection]
<__monty__> I figured it was topo but GHC was copied so much earlier than all these packages, maybe that makes sense though.
<clever> ghc is probably a dependency of a lot of ghc libs
graphene has joined #nixos
<__monty__> Dhall for example appears in a fairly random sequence of http and x509 things.
graphene has quit [Remote host closed the connection]
phreedom has quit [Ping timeout: 250 seconds]
<__monty__> Oh, it was dhall-doc, now it's dhall.
graphene has joined #nixos
wpcarro has joined #nixos
wpcarro has quit [Ping timeout: 260 seconds]
sbdchd has joined #nixos
<Orbstheorem> Hi, how can I get the hash to use in src.sha256sum in a file imported via `nix add-to-store`?
<Orbstheorem> I'm using `nix-prefetch-url --type sha256 file://$(pwd)/$(tmux showb)`, but seems hacky :P
<clever> !tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<clever> Orbstheorem: or use the right args to nix-hash i believe
<Orbstheorem> clever: I tried tofu, but since it's requireFile...
<clever> Orbstheorem: nix-hash --type sha256 --base32 --flat
telent has joined #nixos
<clever> that one best matches nix-prefetch-url
<Orbstheorem> Yay, thanks! :)
Thra11 has quit [Ping timeout: 240 seconds]
__monty__ has quit [Quit: leaving]
<{^_^}> [nixpkgs] @jfrankenau opened pull request #43542 → mergerfs-tools: init at 20171221 → https://git.io/fNmdN
graphene has quit [Remote host closed the connection]
<Orbstheorem> How can I disable the unpackPhase? by setting an empty `unpackCmd`?
<clever> Orbstheorem: unpackPhase = ":";
graphene has joined #nixos
<clever> you can also set buildCommand to replace all phases, or just use runCommand
phreedom has joined #nixos
Thra11 has joined #nixos
worldofpeace has quit [Quit: worldofpeace]
<infinisil> I've recently done a rather extensive review of #42748 which is now ready, if anybody here uses neo4j, please check it out
<{^_^}> https://github.com/NixOS/nixpkgs/pull/42748 (by patternspandemic, open): nixos/neo4j: Update module, make compatible with neo4j 3.4
<infinisil> It's a rather big and complicated module
<{^_^}> [nixpkgs] @jfrankenau opened pull request #43543 → gurobi: init at 8.0.1 → https://git.io/fNmbY
telent has quit [Ping timeout: 244 seconds]
hxrts_ has quit [Ping timeout: 276 seconds]
simukis has quit [Ping timeout: 240 seconds]
<YegorTimoshenko[> is there a way to check if `nix-build` will be served from nix store or built?
<clever> YegorTimoshenko[: i think you can run it with --dry-run to get that info
<gchristensen> or -j0 I think
warbo has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
<YegorTimoshenko[> clever, gchristensen: thank you! will use `-j0` because it's nicer in context i'd like to use it in (returns exit code 1 when build is required, 0 otherwise)
imalison has quit [Remote host closed the connection]
Cale has quit [Ping timeout: 245 seconds]
knupfer has quit [Ping timeout: 240 seconds]
<erickomoto> Hi, I am trying to package a git repository (hosted on github) with submodules. The `fetchFromGithub` function has a `fetchSubmodules` attribute that I have set to true. I am not sure where to find `fetchFromGithub`'s source (github's code search is pretty bad). I am looking to find whether `fetchSubmodules = true` is equivalent to git clone --recursive
emily has joined #nixos
andymandias_ has quit [Ping timeout: 240 seconds]
tertle||eltret has joined #nixos
<erickomoto> Thanks gchristensen
wpcarro has joined #nixos
<gchristensen> I love good code search :)
coot_ has quit [Quit: coot_]
Cale has joined #nixos
wpcarro has quit [Ping timeout: 244 seconds]
andymandias has joined #nixos
lonokhov has quit [Ping timeout: 256 seconds]
<emily> is it possible to disable a module's assertions / stop it from turning certain options on? (I'm happy to accept "oh god why, just modify it in nixpkgs/make a local copy/etc.")
<gchristensen> pretty much have to modify nixpkgs :)
bmikedesk_ has left #nixos [#nixos]
<infinisil> ,disableModule emily
<infinisil> ,disableModules
<infinisil> C,
<infinisil> ,
<{^_^}> All commands: -A IFD MCVE NUR ask bootfull callPackage channels cloudfront context dnw error escape" escape'' escape-special github hardware help home-manager karma library locate logs magic nix-env-r nix-info nix-repl nixGL nixcon nixeval nixpkgsVersion not-os notfound outPath overlay override paste pills ping pinning pr profiling pure-eval replaceModule runtimeDeps stateVersion stuck tell timer tofu unfree unstable whomademe
<infinisil> ,replaceModule emily
<gchristensen> you're going to have to paginate that `,` cmd soon, infinisil :)
<infinisil> :P
<emily> infinisil: ah, thank you, I hadn't managed to find that in the manual :/
<emily> (fwiw, the X to the Y here is "I want to use connman with iwd instead of wpa_supplicant")
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 240 seconds]
Mateon3 is now known as Mateon1
sbdchd has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #43169 → Fixes `stripDirs` use after signature change → https://git.io/fNviA
<{^_^}> [nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/fNmx8
ajs124 has left #nixos ["Stream closed by us: Timed out waiting for stream resumption (connection-timeout)"]
lezed1 has quit [Quit: Connection closed for inactivity]
hphat^ has joined #nixos
hphat^ has quit [Max SendQ exceeded]
hphat^ has joined #nixos
hphat^ has quit [Max SendQ exceeded]
hphat^ has joined #nixos
hphat^ has quit [Max SendQ exceeded]
hphat^ has joined #nixos
hphat^ has quit [Max SendQ exceeded]
hphat^ has joined #nixos
hphat^ has quit [Max SendQ exceeded]
hphat^ has joined #nixos
hphat^ has quit [Max SendQ exceeded]
wpcarro has joined #nixos
wpcarro has quit [Ping timeout: 240 seconds]
jluttine has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @dotlambda opened pull request #43544 → python.pkgs.backports_ssl_match_hostname_3_4_0_2: remove → https://git.io/fNmxb
roderick has joined #nixos
jluttine has joined #nixos
logzet has quit [Remote host closed the connection]
<tobiasBora> Hello,
erickomoto has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tobiasBora> Because nixops does not fit my needs, I'm deploying my configuration using a simple 2 lines script that basically rsync a folder with my servers, and then run remotely the script.
<tobiasBora> However, I can see that the configuration file is read only.
<tobiasBora> So if I rsync everything in read only mode, is it enough, or do I need to take care of other specifications?
<maurer> tobiasBora: If you don't need to worry about provisioning or migration that should be sufficient
<maurer> A lot of the hard stuff in NixOps has to do with making it able to take a network description and autoprovision it on the cloud
<maurer> or adjust provisioning if necessary
<maurer> Probably what you want to do if you want to avoid nixops for whatever reason is to scp/rsync a configuration.nix to the target server
<maurer> and then run nixos-rebuild switch
<maurer> Consider https://github.com/square/mssh or a similar project if you have a large number of hosts
<gchristensen> or you can use `nixos-rebuild --build-host yourremoteserver --target-host yourremoteserver -I nixos-config=./the-config.nix switch`
<gchristensen> that should do it
<tobiasBora> gchristensen: I need to be on a nixos device to do that no?
<gchristensen> ohhh right :)
<tobiasBora> maurer: what does provisioning means?
<maurer> tobiasBora: For example, requesting additional IP addresses for the machine, assigning or resizing block devices
<maurer> tobiasBora: Defining network topoloties
<maurer> *topologies
<maurer> Also, even if you're not going to end up using nixops, I'd suggest you send them a note explaining why they aren't suitable for you so they can improve :)
<tobiasBora> I see. The main reason I can't/don't want to use nixops is in discution here: https://github.com/NixOS/nixops/issues/976
<{^_^}> nixops#976 (by tobiasBora, open): Add a way not to use the user's computer as a cache
stepcut has joined #nixos
<maurer> One moment while I read that to understand your concerns
sbdchd has joined #nixos
fendor_ has quit [Remote host closed the connection]
fendor_ has joined #nixos
<maurer> So, I'm not certain, but I think that if you employ https://nixos.wiki/wiki/Distributed_build on your RPi pointed at your beefy machine
<maurer> And then use nixops
<maurer> it will build everything remotely
<maurer> I think it will still try to store it all locally though, which may be a dealbreaker
jtojnar has joined #nixos
fendor_ has quit [Remote host closed the connection]
fendor_ has joined #nixos
<maurer> As far as your concerns about secrets, I would strongly suggest that you not attempt to distribute secrets through nix or nixops
sbdchd has quit [Remote host closed the connection]
<maurer> The store and build system are explicitly not designed to protect them
sbdchd has joined #nixos
<maurer> If you want to think of it as a devops story, nixops/nixos is great at deploying and managing software
fendor_ has quit [Remote host closed the connection]
<maurer> Neither of them have a data story - that is currently out of scope for them, and you will have to manage it yourself somehow
fendor_ has joined #nixos
<maurer> The credentials would come under the data story
<gchristensen> nixops has a secrets story!
<maurer> My mssh + nix-build solution should build everything remotely though, and I think will work in your use case
<maurer> gchristensen: Oh! My bad, that's new to me
fendor_ has quit [Remote host closed the connection]
<tobiasBora> maurer: oh, so you are also using the same trick as me and you avoid nixops? ^^
fendor_ has joined #nixos
<tobiasBora> "<maurer> I think it will still try to store it all locally though, which may be a dealbreaker" ==> yes that's the point, I don't want to store anything locally, except for the configuration
<maurer> tobiasBora: I am using nixops in practice, my work environment was willing to get me a pretty baller laptop
<maurer> and I deploy from there
<tobiasBora> I dont even understand why we need to store anything locally, and can't ask to the server to do the job alone
<tobiasBora> (a server is usually faster than a client anyway)
fendor_ has quit [Remote host closed the connection]
fendor_ has joined #nixos
<maurer> I think the reason is that their expected use case involves, for example, deploying 10 servers with configuration X
<maurer> and as a result, it makes more sense to get one server with configuration X
<maurer> and ship it to all 10 server
<maurer> rather than having all 10 servers load hydra, or load their CPUs
spear2 has joined #nixos