sphalerite changed the topic of #nixos to: NixOS stable: 19.03 \o/ https://discourse.nixos.org/t/nixos-19-03-release/2652 || 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 ... nixcon videos: https://tinyurl.com/nixcon2018
<{^_^}> [nixpkgs] @worldofpeace merged pull request #61542 → [19.03] pythonPackages.rednose: disable test suite → https://git.io/fjlRh
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to release-19.03: https://git.io/fjli8
<avn> clever: I feel I take few more attempts on shrink chromium (both size and build time -- it pretty annoying)
<clever> avn: ive also been trying to build electron with nix, and ran into gclient
<{^_^}> [nixpkgs] @dtzWill opened pull request #61573 → librsvg: 2.44.13 -> 2.44.14 → https://git.io/fjli4
<avn> clever: electron is almost same chromium. ;)
<avn> I feel splitting out angle, skia and few other third_party/ residents to own derivations help a lot.
<clever> avn: i think the chromium derivation is cheating with a release tarball, that has the result of running gclient, then stripping all .git's
<avn> yes
<clever> but i havent found one for electron yet
<avn> but even tarball have file with gclient' tags/hashes, so we can pull components from own repos
<clever> and i'm debugging a bug in the electron event loop
<avn> probably electron' maintainers just do gclient updates, then commit whole trees (less accurate then googlers do)
<clever> electron just has a DEPS file, and they expect you to run gclient to fetch the rest
<clever> if i'm reading the docs right
<avn> But hell, chromium builds 6-7 hours
sooperdooper_ has joined #nixos
<clever> i eventually gave up on doing the initial testing on nixos
<clever> and built it on ubuntu, under virtualbox :P
<{^_^}> [nixpkgs] @worldofpeace merged pull request #61567 → vte: 0.56.2 -> 0.56.3 → https://git.io/fjl6O
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjliR
<{^_^}> [nixpkgs] @nh2 opened pull request #61574 → audit: Fix build with pkgsMusl. → https://git.io/fjliu
tertl3_ has quit [Quit: Connection closed for inactivity]
mexisme_ has joined #nixos
sooperdooper_ has quit [Quit: The Lounge - https://thelounge.chat]
Matthieu_ has quit [Ping timeout: 255 seconds]
jluttine has joined #nixos
acarrico has quit [Ping timeout: 258 seconds]
mexisme_ has quit [Ping timeout: 246 seconds]
_ris has quit [Ping timeout: 255 seconds]
<nh2> matthewbauer dtz Ericson2314: so I got quite far updating static-haskell-nix to the latest nixpkgs master. I now maintain 2 modes: One using pkgsMusl (as before), and one using pkgsStatic. The former remains the default, because with pkgsStatic still a lot more stuff fails to build. But pkgsStatic can also already build a lot of stuff now. I hope that is useful for somebody, with its cross-compilation abilities.
<Ericson2314> nh2: awesome!
<Ericson2314> I'm actually getting somewhere with multi-target GHC btw
<Ericson2314> so I hope a lot of these experiments will become earlier
thc202 has quit [Ping timeout: 252 seconds]
<Ericson2314> *easier
<nh2> Ericson2314: that is really cool
<avn> clever: I usually use docker to builds like this ;)
<nh2> The sickest part of this work was getting this Cabal patch that adds `--enable-executable-static` into all the right places. That eats an enormous, unnecessary amount of time. I wish it had just been merged much faster, so that it would long be in GHC 8.6.
buffet_ has joined #nixos
buffet has quit [Ping timeout: 258 seconds]
<dtz> :D
<dtz> \o/
<avn> clever: backing to chromium, I know how to split components (well, have ideas), but idk how to build remains using splitted parts built as .so
<nh2> The `pkgsStatic` support added a whole new level of complexity to it, I can't wait to get rid of that patch.
mexisme_ has joined #nixos
<Ericson2314> yeah cabal needs to learn about cross too
<Ericson2314> I think i will do that after
jluttine has quit [Ping timeout: 255 seconds]
<Ericson2314> GHC is in decent shape
<Ericson2314> because so much of Cabal is hacking around GHC
<clever> avn: the problem is that building electron under docker results in a binary that relies on /usr/lib, and i then need x11 working to run that binary
goibhniu1 has quit [Ping timeout: 268 seconds]
<nh2> Now I'm working on getting the last newly-failing 10 Stackage exes to work (though some of them might also simply be new so they may not have failed before).
<nh2> Also `language-bash-0.8.0` and `HPDF-1.4.10` are marked as broken in nixpkgs now, so I lost support for building `aura` and `tttool` statically, but in turn `xmonad` now builds statically.
<Ericson2314> oo!
Matthieu_ has joined #nixos
<nh2> matthewbauer Ericson2314 dtz: From my perspective the biggest request is that we change from `pkgsStatic` being an overlay that *disables* `.so` files to having an overlay that simply has both `.so` and `.a` files everywhere. Because that's what I need for `pkgsMusl`, to link people's stuff statically right now. What's now `pkgsStatic` should IMO be another overlay on top that then disables `.so`.
<avn> clever: steam-run! ;)
selfsymmetric-mu has joined #nixos
<nh2> e.g. pkgsStatic <- pkgsStaticOnly or so
<nh2> or better:
<nh2> pkgsMusl <- pkgsStatic <- pkgsStaticOnly
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Client Quit]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjliw
erictapen has joined #nixos
___laika has quit [Ping timeout: 246 seconds]
<nh2> I have filed the abvoe idea as https://github.com/NixOS/nixpkgs/issues/61575
<{^_^}> #61575 (by nh2, 27 seconds ago, open): Provide middle-ground overlay between pkgsMusl and pkgsStatic
Synthetica has quit [Quit: Connection closed for inactivity]
UltraPhil has joined #nixos
erictapen has quit [Ping timeout: 246 seconds]
UltraPhil has quit [Read error: Connection reset by peer]
acarrico has joined #nixos
silver has quit [Read error: Connection reset by peer]
Irenes has quit [Quit: WeeChat 2.4]
<{^_^}> [nixpkgs] @aanderse merged pull request #61363 → miniupnpc_2: 2.1 -> 2.1.20190408, miniupnpd: 2.1 -> 2.1.20190502 → https://git.io/fjWm2
<{^_^}> [nixpkgs] @aanderse pushed 4 commits to master: https://git.io/fjliM
jluttine has joined #nixos
acarrico has quit [Ping timeout: 255 seconds]
acarrico has joined #nixos
ddellacosta has quit [Ping timeout: 246 seconds]
Rusty1 has joined #nixos
Rusty1 has quit [Quit: Konversation terminated!]
o1lo01ol1o has joined #nixos
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/c21f08bfedd (from 75 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
Rusty1 has joined #nixos
drakonis has joined #nixos
<{^_^}> [nixpkgs] @dmjio closed pull request #25041 → WIP - Init Solo5 → https://git.io/vShXB
o1lo01ol1o has quit []
drakonis_ has joined #nixos
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @hyperfekt closed pull request #49506 → nixos/pam: add defaults option → https://git.io/fxF6x
drakonis has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @worldofpeace opened pull request #61576 → Gnome/3.32.2 → https://git.io/fjlip
_e has quit [Quit: WeeChat 2.4]
_e has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace opened pull request #61577 → libsoup: 2.66.1 -> 2.66.2 → https://git.io/fjlPk
o1lo01ol1o has quit [Ping timeout: 246 seconds]
esmerelda has quit [Ping timeout: 252 seconds]
aveltras has quit [Quit: Connection closed for inactivity]
mexisme_ has quit [Ping timeout: 258 seconds]
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/c21f08bfedd (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @nh2 opened pull request #61579 → libjpeg_turbo: Fix tests with musl. → https://git.io/fjlP8
toppler`` has quit [Ping timeout: 246 seconds]
esmerelda has joined #nixos
<{^_^}> [nixpkgs] @aanderse merged pull request #61344 → g2o: init at 2019-04-07 → https://git.io/fjWIs
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/fjlPV
toppler`` has joined #nixos
drakonis has joined #nixos
acarrico has quit [Ping timeout: 252 seconds]
Matthieu_ has quit [Ping timeout: 255 seconds]
<{^_^}> [nix] @matthewbauer opened pull request #2812 → Sync NIX_PROFILES between single-user and multi-user modes → https://git.io/fjlPP
pareidolia_ has quit [Ping timeout: 252 seconds]
mexisme_ has joined #nixos
mexisme_ has quit [Ping timeout: 245 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @samueldr merged pull request #61566 → dbeaver: 6.0.3 -> 6.0.4 → https://git.io/fjl6T
<{^_^}> [nixpkgs] @samueldr pushed 2 commits to master: https://git.io/fjlPQ
<{^_^}> [nixos-weekly] @domenkozar pushed to master « fix macOS min requirement »: https://git.io/fjlPj
<{^_^}> [nixos-weekly] @domenkozar pushed to production « fix macOS min requirement »: https://git.io/fjlXe
pareidolia has joined #nixos
o1lo01ol1o has quit []
mexisme_ has joined #nixos
tmaekawa has joined #nixos
tmaekawa has quit [Client Quit]
tmaekawa has joined #nixos
<nh2> matthewbauer: obscenely, `postgresql-simple` and all apps that use it fail to build because it depends on `libpq`, which in nixpkgs is just `postgresql`, which depends on `systemd`, which doesn't build with musl. I guess that's why many distros ship libpq as a separate pckage
o1lo01ol1o has joined #nixos
sigmundv has quit [Ping timeout: 246 seconds]
mkoenig has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @tadeokondrak closed pull request #61524 → vapoursynth: restructure and add plugins → https://git.io/fjlO9
<{^_^}> #61580 (by nh2, 12 seconds ago, open): Make a libpq package
dansho has joined #nixos
<tobiasBora> Hello,
orivej has quit [Ping timeout: 248 seconds]
<tobiasBora> I'm trying to setup ldap and I'm not sure how to manage the packages:
<tobiasBora> passwords*
<tobiasBora> indeed, if I load the password of the rootpw with import, then the password is stored into a .nix file
<{^_^}> [nixpkgs] @nh2 opened pull request #61581 → postgresql: Make systemd support configurable → https://git.io/fjlXO
tmaekawa has quit [Remote host closed the connection]
<tobiasBora> but the problem is that I can't find a way to simply read a file from nix "bitwise", so I can't use this same file to provite to PAM
Elon_Satoshi has quit [Quit: So long, and thanks for all the fish! 2.4 Weechat is best Weechat]
<tobiasBora> indeed, users.ldap.bind.passwordFile waits for... a password file.
<tobiasBora> Oh, maybe I have an idea
<ryantm> tobiasBora: Are you using NixOS?
<tobiasBora> environment.etc."ldap"."bind.password" = "${mypassword}" ==> but I'm not sure how to settup the user
<tobiasBora> ryantm: yes
Copenhagen_Bram has joined #nixos
<tobiasBora> *setup the permission
<{^_^}> [nixpkgs] @marsam merged pull request #61265 → cargo-make: init at 0.19.1 → https://git.io/fjCSM
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/fjlX3
<ryantm> If you use nixos configurations to set up the password file it will always be world readable in the nix store. You can have a passwordFile point at a place you manually set up like in /var/lib/ldap or somewhere like that.
<tobiasBora> ryantm: oh I see
<tobiasBora> damn
<ryantm> tobiasBora: NixOps has a feature to pass secret files out of band of the NixOS configuration
<tobiasBora> ryantm: what's this secret feature :)
<ryantm> deployment.keys
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<tobiasBora> ryantm: does that mean that I need to use nixops?
<tobiasBora> and also I really don't like the "Keys from deployment.keys are stored under /run/ on a temporary filesystem and will not persist across a reboot"
<tobiasBora> if my server shutdowns, I'll simply lost ssh access if I have an LDAP authentication that requires a password
<tobiasBora> (ok I can always keep a pure ssh connection)
<ryantm> the /run/ thing is optional, you can put the deployment keys wherever you want.
<tobiasBora> but the main problem is that I'm not always available when the server shutdowns and I don't want it to be unaccessible until I pick my laptop
<ryantm> If you want to use the deployment keys feature, you have to use nixops, yes.
<tobiasBora> and how do you avoid to put things in /run/?
<ryantm> I never put my deployment keys in /run/ for the similar reasons.
o1lo01ol1o has quit [Ping timeout: 268 seconds]
<tobiasBora> and so how do you change the default path of the deployment.keys?
___laika has joined #nixos
<tobiasBora> and I'm not yet sure to see how it can help me in all possible ways.
<tobiasBora> for example in the ldap case if I want to use the rootpwFile I need to have a file that looks like:
<ryantm> tobiasBora: I think it's just deployment.keys.my-secret.path = "/var/lib/my-secret";
<tobiasBora> rootpw mysecurepassword
o1lo01ol1o has joined #nixos
<tobiasBora> which is not directly "mysecurepassword"
<tobiasBora> hum...
<tobiasBora> does that mean that I need two differents deployment.keys.my-secret, one for rootpwFile, and one for the normal password?
<ryantm> I would just manually prepare the "mysecurepassword" file and have it available when you need to deploy your server.
freeman42x has joined #nixos
drakonis has quit [Quit: WeeChat 2.4]
<ryantm> tobiasBora: Or put the text content of it into the .text attribute
<tobiasBora> ryantm: well I need two files, one with "mysecurepassword", and one with "rootpw mysecurepassword" right?
o1lo01ol1o has quit [Ping timeout: 258 seconds]
<ryantm> If you need two files, you need to have two deployment keys. Is two files a requirement of LDAP?
<tobiasBora> I think so yes, one must start with rootpw. But i think two files should be fine
<tobiasBora> the big question I have is the following:
Glider_IRC has joined #nixos
<tobiasBora> what happens if a program does not/cannot accept a file as argument?
<tobiasBora> to give an explicit example, in my ldap configuration I have declarativeContents =
<tobiasBora> ops
<tobiasBora> yes
ddellacosta has joined #nixos
<tobiasBora> declarativeContents = ''' ... userPassword: ${users_pw.mypasswd} '''
<tobiasBora> (that is used to declaratively setup the database)
<ryantm> Either you have to make the whole file into a deployment key, or look to see if the file supports things like imports
<clever> tobiasBora: the only way to deal with such config, is to rewrite the nixos module, to take a path, and run set at pre-start, to generate the real cfg
balsoft has joined #nixos
<tobiasBora> ryantm: I'm not sure to see what you mean by support imports
<tobiasBora> clever: hum... what is "run set at pre-start"? Do you have an example?
<clever> tobiasBora: you would have to modify the ldap service, to run a sed command before starting the service
<clever> using systemd prestart
<tobiasBora> and for example, rootpwFile option appeard less that one month ago, does that mean that LDAP use was insecure on nixos until that time?? https://github.com/NixOS/nixpkgs/commit/d43dc68db3f414a527cad632a3f1fb868fc1c902
<clever> tobiasBora: depends on if others can read your /nix/store/
<tobiasBora> clever: ouu this is tricky ^^
alex``` has quit [Ping timeout: 252 seconds]
alex```8 has joined #nixos
slack1256 has joined #nixos
<tobiasBora> clever: well everybody needs to have right permission on the nix store if they want to do things as simple as login?
<tobiasBora> read permission*
<clever> tobiasBora: yeah, but how many machines are you actually sharing with users you dont trust?
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
<tobiasBora> clever: well for now I'm the only one using my machine, I just want to learn for now how to deploy LDAP, but I'm would be surprised if nobody uses LDAP on nixos with untrusted users
Supersonic112 is now known as Supersonic
<tobiasBora> I would be*
<tobiasBora> Or I'm thinking about something else
<tobiasBora> oh no does not work
<tobiasBora> the light containers of nixos shares the same /nix/store right? :(
<clever> yep
<{^_^}> [nixpkgs] @ryantm opened pull request #61582 → analog: 6.0.13 -> 6.0.15 → https://git.io/fjlXz
<tobiasBora> gr
<tobiasBora> hum, I'm thinking about something else
<tobiasBora> the machine I'm building for is a raspberry pi
<tobiasBora> so I need to run the stuff directly on it
<tobiasBora> but as far as I remember, it's not really possible without losing some times to setup the raspberry pi as a builder
<clever> tobiasBora: if you go with aarch64, then you can get help from cache.nixos.org
<tobiasBora> clever: sure I already do
<tobiasBora> but I mean
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/0b1a96ccdd3 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<tobiasBora> first, I actually need to compile a few packages even with cache.nixos.org
teej has quit [Quit: Connection closed for inactivity]
<tobiasBora> second, I think to remember some nasty details where if you push from your laptop on your raspberry pi, you first need to download everything on your laptop, and then send this to the raspberry pi
<tobiasBora> is it still the case?
<clever> yeah, you can never have a path without its deps
dedde1 has joined #nixos
jasongro` has quit [Ping timeout: 252 seconds]
<tobiasBora> ok, so it's still not possible to use nixops to deploy stuff for a team :( https://github.com/NixOS/nixops/issues/976
<{^_^}> nixops#976 (by tobiasBora, 43 weeks ago, open): Add a way not to use the user's computer as a cache
<clever> tobiasBora: once you have that closure, as long as you dont GC it, the next deploy will be faster
<clever> if you enable rollback support in nixops, it will also root the closure
<tobiasBora> but can I run nixops with localhost?
<clever> so it cant be GC'd
<clever> you can configure nixops to manage the machine its running on
mexisme_ has quit [Ping timeout: 255 seconds]
lovesegfault has quit [Ping timeout: 264 seconds]
<tobiasBora> so I guess the best solution for me is to run a deploy script that scp the whole configuration + nixops configuration in /root/nixosconf, and then run nixops deploy from it.
<clever> at that point, why even use nixops? :P
<clever> just use nixos-rebuild
<clever> and rather then scp, just do a `git pull`
lovesegfault has joined #nixos
<tobiasBora> actually I'm still wondering the purpose of nixops :P
<clever> to manage a set of many machines remotely, and configure them to be able to refer to each-others IP's automatically
<clever> and in some cases, auto-provision the hardware in the cloud
dedde1 has quit [Quit: Page closed]
logzet has joined #nixos
<tobiasBora> about the git pull, you mean a git pull from the raspberry pi /etc/nixos/ folder that I would turn into a git repo?
<clever> within the rpi, run a `git pull` in /etc/nixos, then nixos-rebuild switch
<tobiasBora> and the thing is that if I want to setup permission carefully (especially for the keys), git pull is not enough
<tobiasBora> that's why I'm using scp
<clever> secrets would be copied in on a seperate file, that the git repo refers to
<clever> and the secrets generally dont change much
endformationage has joined #nixos
<clever> nixops automates secrets as well, deployment.keys will be scp'd over for you
reinhardt has joined #nixos
logzet has quit [Client Quit]
<clever> but you need to modify the service files to be able to accept a secret that isnt in /nix/store/
<clever> hence, the pre-start with sed
<tobiasBora> even with nixops???
<clever> yes
logzet has joined #nixos
<tobiasBora> oh you mean if the module was poorly written
<clever> yeah
<tobiasBora> and yes, about nixops I still don't understand why it can do super powerful stuff with hundreds computers from the cloud, but cannot deal with this simple case that a few commands can solve ^^
<tobiasBora> but anyway
<tobiasBora> but for git I think to remember that the chmod is set to the chmod of the user
<clever> tobiasBora: it deals with 100's of computers at once efficiently, by putting all 100 machines into a single derivation
<clever> and then just running nix-build on it
<clever> so the stuff that is reused 100's of times, is only built/downloaded once
<tobiasBora> clever: yep. But if you have 100 pcs, you are likely to have a team. And you probably don't want to have each member of the team the have the derivation of the 100 machines. Does that mean that for teams they must work on a remove computer made especially for that purpose?
<{^_^}> [nixpkgs] @matthewbauer opened pull request #61583 → [wip] nixos/lxd-container.nix: init → https://git.io/fjlXP
<clever> generally, yes
<ryantm> I think people who care about the NixOps state file will often make a bastion VM that keeps track of the state.
<ryantm> In my use case, we just have a few people dealing with mostly non-duplicate machines, so we set it up so we can throw away the state file.
<ryantm> I wrote a post about how we set it up here https://www.ryantm.com/blog/nixops-without-sharing/
mexisme_ has joined #nixos
o1lo01ol1o has joined #nixos
ddellacosta has quit [Ping timeout: 255 seconds]
selfsymmetric-mu has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #61350 → doc/stdenv: document default build scripts filename → https://git.io/fjWLK
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjlXX
jasongrossman has joined #nixos
<tobiasBora> interesting
o1lo01ol1o has quit [Ping timeout: 246 seconds]
balsoft has quit [Read error: Connection reset by peer]
balsoft has joined #nixos
mexisme_ has quit [Ping timeout: 255 seconds]
<tobiasBora> clever: and I'm thinking, by using advanced permission, wouldn't it be possible to imagine that all the files that are not in ~/out are readable only by root?
<tobiasBora> because users just need ~/out/bin and ~/out/lib-like folders, but they don't need read access to all the build process
<clever> tobiasBora: the nix sandbox ensures you can only see things in /nix/store that you need to complete your build
<clever> but after the build is done, it also ensures that everything in $out is world-readable
<clever> and its getting late here
<clever> i should get off to bed
<tobiasBora> me too
<tobiasBora> thanks a lot you two for your help
<tobiasBora> and when you'll be back if you are still motivated, maybe you can explain me why we can't just open world-wide only the bin/lib/doc folders and keep all the paths with secrets configuration... secret
<tobiasBora> thanks again and good night!
adamantium has quit [Ping timeout: 252 seconds]
balsoft has quit [Ping timeout: 255 seconds]
kaliumxyz has quit [Quit: leaving]
oida has quit [Remote host closed the connection]
oida has joined #nixos
___laika has quit [Quit: WeeChat 2.4]
freeman42x has quit [Ping timeout: 258 seconds]
jackdk has quit [Ping timeout: 258 seconds]
polman has quit [Read error: Connection reset by peer]
polman has joined #nixos
jackdk has joined #nixos
Rusty1 has quit [Quit: Konversation terminated!]
slack1256 has quit [Remote host closed the connection]
domogled has joined #nixos
teej has joined #nixos
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/bc9df0f6611 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
polman has quit [Read error: Connection reset by peer]
___laika has joined #nixos
___laika has quit [Client Quit]
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 255 seconds]
Mateon3 is now known as Mateon1
endformationage has quit [Ping timeout: 268 seconds]
polman has joined #nixos
palo1 has joined #nixos
glasserc has quit [Ping timeout: 255 seconds]
palo has quit [Ping timeout: 245 seconds]
palo1 is now known as palo
zupo has joined #nixos
glasserc has joined #nixos
tbenst_ has joined #nixos
tbenst has quit [Read error: Connection reset by peer]
polman has quit [Read error: Connection reset by peer]
polman has joined #nixos
zupo_ has joined #nixos
zupo has quit [Ping timeout: 255 seconds]
cfricke has joined #nixos
balsoft has joined #nixos
<cizra> So I added a new package, it's sitting in a pull request. Next I want to experiment with another person's PR, see if it fixes my issue. How do I merge them together? Cherry-pick my commits onto the other guy's PR, temporarily? Sounds like a hassle, especially considering merge conflicts.
develCuy_ has quit [Quit: No Ping reply in 180 seconds.]
hyper_ch2 has joined #nixos
<cizra> Can I somehow extract my changes to the packages/services into a separate out-of-tree location and tell NixOS to always load them thence?
Myhlamaeus has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @teto merged pull request #59430 → browsh: 1.4.13 -> 1.5.0 → https://git.io/fjm07
<{^_^}> [nixpkgs] @teto pushed 2 commits to master: https://git.io/fjl1s
<balsoft> cizra: Depends on what you mean by "changes to the packages/services"
<balsoft> cizra: If you mean your own services and packages definitions and uses, then yes, it's easy -- just do `imports = [ ./path/to/my/modules ]`
<lightbulbjim> cizra: To build from your own tree you can do `nix-build /path/to/your/nixpkgs -A myderivation` for a single derivation or `nixos-rebuild switch -I nixpkgs=/path/to/your/nixpkgs` to rebuild everything.
<balsoft> If you mean directly altering the texts of definitions, then you need to fork nixpkgs
dansho has quit [Ping timeout: 268 seconds]
knupfer has joined #nixos
<cizra> lightbulbjim: That's exactly what I'm doing, but it restricts me to having just one nixpkgs repository.
<cizra> balsoft: I did, and here it is, waiting for approval: https://github.com/NixOS/nixpkgs/pull/61546 -- but I want to move on and try something else, not remain on that fork forever. What can I put to ./path/to/my/modules?
<{^_^}> #61546 (by cizra, 14 hours ago, open): libfprint: added a fork for Lenovo ThinkPad
dansho has joined #nixos
<balsoft> Ah, I see
<balsoft> As a quick-and-dirty solution, you can move your package to an overlay and then the module will use your package instead of the default one
<balsoft> And when the PR gets merged, you can abandon the overlay
___laika has joined #nixos
<cizra> I googled around a bit, but couldn't really find any newb guide in style "click here type this".
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
balsoft has quit [Ping timeout: 268 seconds]
alp has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed 116 commits to staging-next: https://git.io/fjl1R
<{^_^}> [nixpkgs] @edolstra pushed to master « libjpeg-turbo: 2.0.1 -> 2.0.2 »: https://git.io/fjl1a
zupo has joined #nixos
zupo has quit [Ping timeout: 255 seconds]
<cizra> OK, here's my stab at creating an overlay: https://github.com/cizra/libfprint-thinkpad-overlay -- however it fails to build, the error message is in readme. How do I fix it?
toppler`` has quit [Ping timeout: 245 seconds]
toppler`` has joined #nixos
zupo has joined #nixos
mexisme_ has joined #nixos
mexisme_ has quit [Ping timeout: 246 seconds]
zupo has quit [Ping timeout: 258 seconds]
Synthetica has joined #nixos
wfranzini has joined #nixos
___laika has quit [Quit: WeeChat 2.4]
___laika has joined #nixos
cfricke has quit [Quit: WeeChat 2.4]
rauno has joined #nixos
fayesafe has joined #nixos
schjetne has quit [Ping timeout: 250 seconds]
thc202 has joined #nixos
zupo has joined #nixos
zupo has quit [Ping timeout: 245 seconds]
wangoe has quit [Ping timeout: 246 seconds]
carboa has joined #nixos
<{^_^}> Channel nixos-19.03 advanced to https://github.com/NixOS/nixpkgs/commit/c21f08bfedd (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-19.03)
Makaveli7 has joined #nixos
hamishmack has joined #nixos
linarcx has joined #nixos
mexisme_ has joined #nixos
m0rphism has joined #nixos
<LnL> cizra: that's how you import nixos modules, overlays are a separate thing
zupo has joined #nixos
<LnL> nixpkgs.overlays = [(import overlay.nix)];
orivej has joined #nixos
carboa has quit [Ping timeout: 256 seconds]
wangoe has joined #nixos
balsoft has joined #nixos
balsoft has quit [Client Quit]
balsoft has joined #nixos
nckx has quit [Ping timeout: 264 seconds]
nckx has joined #nixos
johanot has joined #nixos
goibhniu1 has joined #nixos
<cizra> LnL: OK, now it eats the /etc/nixos/configuration.nix, but the extra parameter for the service isn't found.
<LnL> service?
<cizra> Yeah, I'm trying to add a parameter for fprintd to use ThinkPad-specific packages: services.fprintd.package = pkgs.fprintd-thinkpad; # https://github.com/NixOS/nixpkgs/pull/61546
<{^_^}> #61546 (by cizra, 16 hours ago, open): libfprint: added a fork for Lenovo ThinkPad
<cizra> LnL: The packages are importable to configuration, though! This is a giant step forward.
mjacob has quit [Ping timeout: 276 seconds]
<cizra> LnL: In the overlay, I also defined a service. Is it the right way? https://github.com/cizra/libfprint-thinkpad-overlay/tree/master/nixos/modules/services/security/fprintd.nix
<{^_^}> [nixpkgs] @geistesk opened pull request #61584 → racket: 7.2 -> 7.3 → https://git.io/fjlMN
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
balsoft has quit [Read error: Connection reset by peer]
balsoft has joined #nixos
<LnL> ah, that file is a nixos module so that would go in imports
balsoft has quit [Quit: Konversation terminated!]
balsoft has joined #nixos
<cizra> augh, it used to be too little, now it's too much. error: The option `services.fprintd.enable' in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/services/security/fprintd.nix' is already declared in `/home/elmo/stuff/nix-libfprint-overlay/nixos/modules/services/security/fprintd.nix/fprintd.nix'.
<cizra> ... but removing the 'enable' option seems to help.
<LnL> is this an existing module you customized?
vid has joined #nixos
hoijui has joined #nixos
<cizra> LnL: .... and now it works! Yes I changed it, I added the "package" option.
balsoft has quit [Read error: Connection reset by peer]
balsoft has joined #nixos
<cizra> LnL: Pushed the final version to https://github.com/cizra/libfprint-thinkpad-overlay - works for me.
<LnL> now you have 2 modules for fprintd active which is probably not what you want
Profpatsch has quit [Ping timeout: 245 seconds]
<LnL> add disabledModules = [ "services/security/fprintd.nix" ]; to disable the upstream one which will allow you to replace it with your own (including the enable option, etc.)
<vid> Curious to know if anyone here develops Electron apps within a nix-shell? I'm hitting a lot of ENOENT issues and was wondering if there isn't already a guide out there with some recommendations on how to get this going...
joko has joined #nixos
codezero has quit [Quit: The Lounge - https://thelounge.github.io]
gal_bolle has joined #nixos
Makaveli7 has quit [Quit: WeeChat 2.4]
petersjt014 has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @bjornfor opened pull request #61586 → saleae-logic: 1.2.28 -> 1.2.18 → https://git.io/fjlDi
regnat[m] has joined #nixos
<cizra> LnL: yeah, it doesn't work, you're right
codezero has joined #nixos
<cizra> LnL: Yeah, that helped! Thanks!
lovesegfault has quit [Ping timeout: 268 seconds]
knupfer has quit [Ping timeout: 264 seconds]
lovesegfault has joined #nixos
mexisme_ has quit [Ping timeout: 248 seconds]
uniporn has quit [Ping timeout: 245 seconds]
Makaveli7 has joined #nixos
<{^_^}> [nixpkgs] @clacke opened pull request #61587 → racket racket-minimal: 7.2 -> 7.3 → https://git.io/fjlDp
Jetien_ has joined #nixos
mexisme_ has joined #nixos
abaiste^ has quit []
vid has quit [Ping timeout: 244 seconds]
regnat has joined #nixos
Glider_IRC has quit [Ping timeout: 255 seconds]
schjetne has joined #nixos
<mpickering> Why are variables defined in an overlay added to my configuration.nix not available when importing `<nixpkgs>`
<mpickering> oh I see my NIX_PATH doesn't have nixpkgs-overlays set for some reason
<sphalerite> mpickering: because nixpkgs.overlays in configuration.nix only affects the nixos evaluation
cfricke has joined #nixos
<mpickering> I am using the last technique here - https://nixos.wiki/wiki/Overlays
<sphalerite> mpickering: have you rebooted since applying it for the first time?
<mpickering> I set it months ago so I think so
<mpickering> perhaps I didn't
<mpickering> hmm I am at 98 days uptime
<sphalerite> mpickering: well, check the NIX_PATH envvar
<mpickering> so probably didn't restart after I made this configuration change
ubert has joined #nixos
carboa has joined #nixos
schjetne has quit [Ping timeout: 258 seconds]
Makaveli7 has quit [Quit: WeeChat 2.4]
<{^_^}> [nixpkgs] @c0bw3b merged pull request #61551 → [r18.09] leptonica: patch multiple CVEs → https://git.io/fjlwu
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to release-18.09: https://git.io/fjlyC
<hyper_ch2> I see that nixos has packaged "refind" but I don't see any nixos options for it.
Makaveli7 has joined #nixos
dontobey has quit [Ping timeout: 252 seconds]
ayerhart_ has quit [Read error: Connection reset by peer]
dontobey has joined #nixos
ayerhart has joined #nixos
Glider_IRC has joined #nixos
mkoenig has joined #nixos
rauno has quit [Ping timeout: 268 seconds]
dontobey has quit [Ping timeout: 264 seconds]
dontobey has joined #nixos
grumble has quit [Quit: Well, would you look at the time. I've almost missed my ambiguous, non-existent appointment that I have scheduled just when I start to lose interest in my current conversation.]
pie_ has joined #nixos
grumble has joined #nixos
<sphalerite> hyper_ch2: by the looks of it, it's used for the installer images, but that's all
<sphalerite> I'm sure a PR adding support for using it as a bootloader for installed nixos systems would be welcomed
pie_ has quit [Ping timeout: 255 seconds]
<hyper_ch2> sphalerite: looking forward to your PR then :)
<srhb> #58121
<{^_^}> https://github.com/NixOS/nixpkgs/pull/58121 (by betaboon, 7 weeks ago, open): nixos/refind: init
ayerhart has quit [Ping timeout: 258 seconds]
<avn> Folks, where we have lm-sensors config in nix?
<{^_^}> [nixpkgs] @gebner opened pull request #61588 → neovim: use lua on aarch64 → https://git.io/fjlyp
domogled has quit [Ping timeout: 244 seconds]
mexisme_ has quit [Ping timeout: 246 seconds]
gal_bolle has quit [Quit: Konversation terminated!]
Jackneill has quit [Ping timeout: 255 seconds]
raduom has quit [Ping timeout: 245 seconds]
erictapen has joined #nixos
carboa has quit [Ping timeout: 256 seconds]
fusion809 has quit [Remote host closed the connection]
<m1cr0man> Hi folks! Trying to get remote connection to libvirt working. I'm getting the following certificate error: `Cannot read CA certificate '/etc/pki/CA/cacert.pem': No such file or directory` I'm not sure how to fix this in the context of nixos. I've installed cacert as a systempackage and set security.pki.certificateFiles to pull the ca-bundle from that pkg. I've also tried setting libvirt to not use tls but it seems to have no effect. Any
<m1cr0man> help appreciated.
domogled has joined #nixos
Jackneill has joined #nixos
balsoft has quit [Quit: Konversation terminated!]
balsoft has joined #nixos
sigmundv has joined #nixos
schjetne has joined #nixos
acarrico has joined #nixos
Ariakenom has joined #nixos
vid has joined #nixos
eyJhb is now known as eyJhb
<{^_^}> [nixpkgs] @gebner merged pull request #61588 → neovim: use lua on aarch64 → https://git.io/fjlyp
<{^_^}> [nixpkgs] @gebner pushed 2 commits to master: https://git.io/fjlSy
globin has quit [Remote host closed the connection]
toppler`` has quit [Ping timeout: 245 seconds]
ThatDocsLady has joined #nixos
globin has joined #nixos
toppler`` has joined #nixos
nefix has joined #nixos
civodul has joined #nixos
<nefix> Hello! I need to build a custom derivation of the dotnet-sdk that includes some files that are in a git repo. How am I supposed to do this? I was thinking of overriding the installPhase, but I have no clue how to copy the files there
rprije has quit [Ping timeout: 245 seconds]
<lc_> Hi, why might I be getting lots of ldd not found errors even though these things are buildInputs
linarcx has quit [Quit: WeeChat 2.4]
<lc_> libgtk-3.so.0 => not found
dansho has quit [Remote host closed the connection]
rauno has joined #nixos
Matthieu_ has joined #nixos
ltc^ has joined #nixos
rauno has quit [Ping timeout: 264 seconds]
jomik has joined #nixos
buffet_ is now known as buffet
Neo-- has joined #nixos
esmerelda has quit [Ping timeout: 258 seconds]
Glider_IRC has quit [Ping timeout: 255 seconds]
Glider_IRC has joined #nixos
Ariakenom has quit [Quit: Leaving]
<jomik> Can someone help me package https://github.com/Makopo/lslint ? :D
srid has quit [Ping timeout: 255 seconds]
esmerelda has joined #nixos
<jomik> This, https://git.io/fjl9G, fails because `ld` can not find `-lm` and `-lc`. I have no clue what that means sadly :(
hoijui has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @c0bw3b merged pull request #61556 → libertinus: 6.6 -> 6.8 → https://git.io/fjlrh
<{^_^}> [nixpkgs] @c0bw3b pushed 3 commits to master: https://git.io/fjl9C
nD5Xjz has joined #nixos
waleee has joined #nixos
drakonis has joined #nixos
<{^_^}> [nixpkgs] @c0bw3b merged pull request #61515 → nvidia_x11: 430.09 -> 430.14 → https://git.io/fjlmK
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/fjl9W
srid has joined #nixos
drakonis_ has quit [Ping timeout: 268 seconds]
nefix has quit [Ping timeout: 256 seconds]
<jomik> aanderse: Legend. Thank you :D I tried the google thing, but it seemed unable to find anything useful, probably due to it being 2 letter things I googled :D
<aanderse> np
nD5Xjz_ has joined #nixos
nD5Xjz has quit [Ping timeout: 246 seconds]
<aanderse> did you want more help with the nix derivation itself, or are you still WIP on that?
nefix has joined #nixos
logzet has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<cizra> I'm experimenting with a PR, but it fails to download something-or-other. Why's it not building it from source then? https://paste.ee/p/bIjoN
<jomik> aanderse: No. This seems to work fine. Honestly, I have packaged a bunch, but sometimes new stuff appear.
<jomik> I guess this is the first C package tho..
<jomik> I could use some help in what target actually creates the binary... https://github.com/Makopo/lslint/blob/master/Makefile
<jomik> Feels like it only creates the objects, but not a `lslint` executable.
<aanderse> jomik: flex and bison should be moved into nativeBuildInputs
dslegends has joined #nixos
<aanderse> jomik: the makefile doesn't seem to include an install target
alex```89 has joined #nixos
<aanderse> jomik: have you even used a custom installPhase?
alex```8 has quit [Ping timeout: 268 seconds]
<aanderse> jomik: you should also take care of this: BUILD_DATE = $(shell date +"%Y-%m-%d") as it makes the build not so reproducible
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/2296f0fc955 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
Glider_IRC has quit [Remote host closed the connection]
<jomik> Yeah. Just need it to build first of all tho.. I believe I can just pass it a build date that fits when I actually made the nix expression.
Glider_IRC has joined #nixos
<aanderse> jomik: with the link i provided it builds, you just need to *install* it now
<jomik> Yeah
<aanderse> hence the question about if you've ever used a custom installPhase or not
<aanderse> :)
FRidh has quit [Ping timeout: 244 seconds]
<jomik> Oooh. Nevermind. It does create a `lslint` binary. So I can just install that..
abcrawf has quit [Remote host closed the connection]
silver has joined #nixos
silver_ has joined #nixos
FRidh has joined #nixos
abcrawf has joined #nixos
ym555 has joined #nixos
esmerelda has quit [Ping timeout: 258 seconds]
<jomik> aanderse: So I got it built https://git.io/fjl9S and it works, thanks :) Just a quick check, did I miss anything in that? :p
Ariakenom has joined #nixos
<aanderse> jomik: looking good. if you were going to submit a PR for inclusion in nixpkgs i would suggest: change name ... to pname = "lslist";, consider using a release tag from github instead of the corresponding commit hash, and pass all inputs required to the derivation instead of using pkgs and lib
<jomik> Ooh, is name automatically using version to name the package?
esmerelda has joined #nixos
<aanderse> yes if you set pname then name = "${pname}-${version}"; is taken care of for you
<jomik> Oooh, neat. Thanks
<nefix> So I'm trying to copy some files to a custom derivation. So far I have this: https://paste.ofcode.org/Ki3R5TksXEUPDqNiZrUtVP I know it's not the way it should be done but I don't know how else do it. Could someone please give me a hand? Thanks!
<jomik> the BUILD_DATE is slightly annoying tho - because it is sort of a lie, since the user builds it when they install ...
<{^_^}> [nixpkgs] @etu merged pull request #61495 → adafruit-ampy: init at 1.0.7 → https://git.io/fjlfs
<{^_^}> [nixpkgs] @etu pushed 2 commits to master: https://git.io/fjl95
acarrico has quit [Ping timeout: 268 seconds]
<aanderse> jomik: yeah the nixpkgs manual *might* say something about setting that to epoch or something, you'd have to check
<{^_^}> [nixpkgs] @flokli opened pull request #61589 → nixos/mysql: don't run parts of mysqld.service as root → https://git.io/fjl9d
mkovacs has joined #nixos
<jomik> Can't seem to find something on that. I guess I can toss a PR and point it out, some clever person may know how to handle that then .. :D
acarrico has joined #nixos
<jomik> Now the only thing I still want packaged is Firestorm. aszlig gave me his WIP (which he abandoned) https://git.io/fjl9x But I have no clue how to continue with the error it gives.. :(
o1lo01ol1o has joined #nixos
<rembo10_> Hi - it seems like the broadcom-sta module isn't building on kernel 5.1.2
ym555 has quit [Read error: Connection timed out]
<rembo10_> I found this patch that seems to fix it, but I'm not exactly sure how to create one for nix
ym555 has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<rembo10_> It seems like quite a simple change but I could use some guidance
i1nfusion has quit [Remote host closed the connection]
<srhb> rembo10_: Have you seen boot.kernelPatches?
<srhb> Oh, is it an out-of-tree driver? Meh.
i1nfusion has joined #nixos
<srhb> Then I guess you'll want overrideAttrs on that and patch it.
tilpner has quit [Quit: WeeChat 2.4]
<srhb> rembo10_: If you read through the drv with `nix edit nixpkgs.linuxPackages_5_1.broadcom_sta` it should give you a good idea how to patch it.
silver_ has quit [Quit: rakede]
<rembo10_> Ah, ok great. Thanks!
<rembo10_> I want to create a pull request
ottidmes has joined #nixos
<srhb> rembo10_: Great :) Then you can just edit that file directly in checked out branch and PR that.
<mkovacs> hi all! i'm trying to patch CGAL (so that i can continue working before the new release with fixes comes out). to that end, i copied CGAL's derivation from nixpkgs into my own project (so that i can extend the derivation with a `patches` section). the problem is that the derivation fails to build. seems like the CMake file it generates has some invalid paths
<mkovacs> the errors look like this:
<mkovacs> CMake Error at /nix/store/dxsxakms7a5w96w2ghfifr9a3m0lii38-cgal-4.14/lib/cmake/CGAL/CGALConfig.cmake:87 (include): include could not find load file: /nix/store/dxsxakms7a5w96w2ghfifr9a3m0lii38-cgal-4.14//nix/store/dxsxakms7a5w96w2ghfifr9a3m0lii38-cgal-4.14/lib/cmake/CGAL/CGAL_SetupBoost.cmake
rotaerk_ has quit [Ping timeout: 245 seconds]
waleee has quit [Quit: WeeChat 2.4]
<ottidmes> if I want to include an option for the Ubuntu LiveCD on my NixOS boot loader menu, can I put this LiveCD (its big, 2G) on my ZFS and still have it accessible from by Grub? I thought I read Grub can handle ZFS, what about systemd boot, does it also support ZFS like that?
<mkovacs> what am i doing wrong?
tilpner has joined #nixos
realrokka_ has quit [Ping timeout: 252 seconds]
<ottidmes> mkovacs: you should post your patches, the path is obviously wrong, but without your changes, not sure what you are doing wrong
<mkovacs> @ottidmes this is before applying any patches
ee1943 has quit [Read error: Connection reset by peer]
<rembo10_> So in my patch, for the broadcom_sta module, I need to specify the kernel version in that patch, correct? So it only applies to versions >= 5.1.2?
ee1943 has joined #nixos
aswanson has quit [Quit: WeeChat 2.4]
<mpickering> does anyone know if it's possible to build a statically linked ghc using nix? The docker image which just contains GHC is nearly 4gb big. A GHC binary on its own is only 200mb
<{^_^}> [nixpkgs] @c0bw3b pushed to master « pythonPackages.httpretty: disable 2 flaky tests »: https://git.io/fjlHg
<ottidmes> mkovacs: seems to require digging into the source code of CGAL and patch the relevant cmake files
jasongrossman has quit [Ping timeout: 246 seconds]
<ottidmes> mpickering: a small static binary produced by GHC, yes, clever did this I believe
<mkovacs> ottidmes: what's strange is that this derivation for CGAL works fine when it's coming from nixpkgs
Supersonic has quit [Ping timeout: 264 seconds]
<mpickering> ottidmes: I'm talking about GHC itself
<ottidmes> mkovacs: you sure they are the same versions?
tunnels has joined #nixos
mexisme_ has joined #nixos
gxt has quit [Ping timeout: 252 seconds]
Matthieu_ has quit [Ping timeout: 245 seconds]
<ottidmes> mpickering: then I got no idea, sorry
ckoparkar has joined #nixos
<mkovacs> ottidmes: yes, it's the exact same .nix file
<tunnels> why do i get an error when configuring the desktop in kde plasma 5 which says something like Namespace 'org.kde.plasma.wallpapers.image' has already been used for type registration
<mkovacs> ottidmes: compare these two:
<tunnels> i can't copy the error message to the clipboard
o1lo01ol1o has joined #nixos
Supersonic has joined #nixos
<ottidmes> mkovacs: I meant that when you said "CGAL works fine when it's coming from nixpkgs", I assumed that you meant when you install it on your system, and then there are multiple factors involved that could explain the difference
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/2296f0fc955 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
alex```899 has joined #nixos
mexisme_ has quit [Ping timeout: 255 seconds]
lunik1 has quit [Quit: :x]
alex```89 has quit [Ping timeout: 245 seconds]
FRidh has quit [Ping timeout: 246 seconds]
<mkovacs> ottidmes: i see, i'll double-check. thanks for helping!
lunik1 has joined #nixos
iyzsong has joined #nixos
<Taneb> Is there an Official way to move an outlink?
<Taneb> (as in nix-build --outlink name)
<ottidmes> mkovacs: just for your information, I copied your GCAL/default.nix on my 19.03 install and it build without issue
Makaveli7 has quit [Quit: WeeChat 2.4]
tunnels has quit [Quit: Page closed]
Makaveli7 has joined #nixos
dslegends has quit [Read error: Connection reset by peer]
Matthieu_ has joined #nixos
<ottidmes> Taneb: you probably have to create an additional GC root to it with nix-store --add-root --indirect and then remove the old GC root
<{^_^}> [nixpkgs] @zimbatm opened pull request #61591 → Sylk: init at 2.1.0 → https://git.io/fjlHN
fendor has joined #nixos
rotaerk has joined #nixos
halfbit has joined #nixos
Tucky has joined #nixos
<mkovacs> ottidmes: what command did you run? i'm thinking i might be doing something wrong here. i'm executing nix-build from the repo root without arguments
v0|d has quit [Ping timeout: 246 seconds]
<mkovacs> ottidmes: i just checked, and the two derivations try to build the same versions - the hashes before the cgal-4.14 part are matching, except one fails...
<ottidmes> mkovacs: I did run the following (but I made sure my <nixpkgs> exactly matches that what is used by nixos-rebuild): nix-build --expr 'with import <nixpkgs> { }; callPackage ./default.nix { }'
<mkovacs> ottidmes: i forgot to mention that i'm on Ubuntu, not NixOS
<mkovacs> weirdly enough, if i run that command, it works
<mkovacs> (from inside the CGAL directory, i assume)
<ottidmes> ye[
<ottidmes> *yep
<ottidmes> so what command did you run that failed and from where?
<mkovacs> i'm running nix-build without any arguments from the repo root
vid has quit [Ping timeout: 245 seconds]
<{^_^}> [nix] @edolstra pushed 158 commits to flakes: https://git.io/fjlQY
<gchristensen> btw y'all, we are moving Flake development to NixOS/nix under the "flake" branch, and existing open issues are moving over to the NixOS/nix tracker
<gchristensen> and an RFC is on its way
FRidh has joined #nixos
<cizra> I'm trying to build a PR, but it fails with: mkdir: cannot create directory ‘/nix/store/kpqyl91p6rqi9c1hnkmqjsrphcj1dgha-python3-3.7.3/lib/python3.7/site-packages/PyQt5’: Permission denied
<cizra> Is it fixable by, say, deleting something or collecting garbage or something?
jomik has quit [Ping timeout: 258 seconds]
<averell> no, how are you building that PR? manually in a shell? then you could set a different $out
<cizra> nix-build -A qutebrowser, or sudo nixos-rebuild switch -I /path/to/pr
<averell> mhhkay, that is more strange then, does part of that path exist already?
<cizra> /nix/store/zracigqmjvybwpyvpk4g52iajs6ksp31-python3-3.7.3/lib/python3.7/site-packages/ exists, but not PyQt5
<ottidmes> mkovacs: I did take a look, reproduced the error, without explicitly overwriting GCAL to 4.14 it takes 4.13 and with that it builds fine, it seems related to how cmake works, so unfortunately I cannot help you there
<averell> completely different store path though, so it doesn't really matter
<averell> oooh, i see it's trying to put something into the python derivation
Makaveli7 has quit [Quit: WeeChat 2.4]
<cizra> averell: Sorry, bad copypaste. /nix/store/kpqyl91p6rqi9c1hnkmqjsrphcj1dgha-python3-3.7.3/lib/python3.7/site-packages/ also exists.
<averell> ok, yeah but i still misread. you're not building python, but your package is trying to write to the python output path, right?
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/3eb9c9f84a2 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<cizra> averell: Well, it's not MY package, but you appear to be right. I'm just trying to get qutebrowser to run.
realrokka has joined #nixos
<mkovacs> ottidmes: thanks for taking a look! i've posted an issue on nixpkgs. can you take a look and maybe give advice on how to improve the description? https://github.com/NixOS/nixpkgs/issues/61357
<{^_^}> #61357 (by mkovacs, 4 days ago, open): Derivation fails, seems to be location-sensitive
<averell> what channel are you on? hydra shows 19.03 and master green builds, so it should just be there, unless you have other inputs somehow.
<averell> or rather, what's the PR?
<aminechikhaoui> gchristensen hurray !
<aminechikhaoui> (for flakes) :-)
Matthieu_ has quit [Ping timeout: 246 seconds]
<cizra> averell: https://github.com/NixOS/nixpkgs/pull/56354 plus custom fixes to make it build (new upstream package, added sip to native build deps)
<{^_^}> #56354 (by dotlambda, 11 weeks ago, open): python.pkgs.pyqt5: 5.11.3 -> 5.12
adisbladis has quit [Quit: WeeChat 2.2]
adisbladis has joined #nixos
cfricke has quit [Quit: WeeChat 2.4]
<tobiasBora> matthewbauer: I saw you reported a problem similar to mine here https://github.com/NixOS/nixpkgs/issues/39350
<{^_^}> #39350 (by matthewbauer, 1 year ago, closed): perlPackages.ListMoreUtilsXS.x86_64-darwin is broken
tilpner has quit [Quit: WeeChat 2.4]
<tobiasBora> I have myself the same issue with "Checking for cc... ld: unknown option: -mmacosx-version-min=10.10" here https://github.com/NixOS/nixpkgs/pull/56933
<{^_^}> #56933 (by tobiasBora, 10 weeks ago, open): shelldap: init at 1.4.0
<tobiasBora> do you know what suddently made it work?
tilpner has joined #nixos
<mkovacs> ottidmes: I gotta go. Thank you for your help. I'll try to improve the issue description somehow and ivestigate the CMake stuff. Have a good one!
<ottidmes> mkovacs: its not so much being location sensitive, its not mentioned your paths anyway in the errors, I am almost sure it has to do with how cmake works and that the 4.14 contains chances to the relevant cmake files that result in the error, let me just verify this by taking the default.nix of 4.13, if it does build fine, it shows that it has to do with chances made in 4.14
<averell> cizra: is that in the pyqtwebengine build or the qutebrowser itself? the PR also has this --no-dist-info note, because of a very similar problem
Tucky has quit [Ping timeout: 268 seconds]
<cizra> averell: pyqtwebengine, I think
<cizra> averell: lemme try that no-dist-info
camsbury has joined #nixos
<cizra> averell: Oh wait, it's already in there.
<averell> yes, to prevent writing in that directory i think. but not sure :)
<cizra> well, it sure didn't fix the build for me.
mkovacs has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « vivaldi: 2.5.1525.41-1 -> 2.5.1525.43-1 »: https://git.io/fjl7J
<{^_^}> [nixpkgs] @xrelkd opened pull request #61592 → cargo-sweep: fix cargoSha256 → https://git.io/fjl7U
avn_ has joined #nixos
<{^_^}> [nixpkgs] @pSub merged pull request #43385 → libcsptr: init at 2.0.4 → https://git.io/fNI22
<{^_^}> [nixpkgs] @pSub pushed 3 commits to master: https://git.io/fjl7m
reinhardt has quit [Quit: Leaving]
johanot has quit [Quit: WeeChat 2.4]
<ivan> if nixpkgs built Signal-Desktop from source it could be made to use a font other than Roboto
<ivan> (plz shave my yak)
<tilpner> ivan: PRs to build a binary package from source are usually appreciated
<gchristensen> +1
<ivan> cool
<ivan> there's some yarn2nix going on in riot-desktop and maybe doing that will work
detran has quit [Ping timeout: 268 seconds]
<Ankhers> Can someone either try explaining `callPackage' and `withPackage' to me, or point me in the direction of some docs for the concepts?
<tilpner> Ankhers: callPackage imports an expression and calls it with the argument it expects
<tilpner> (It also adds an .override attribute so it can be re-imported with different arguments later)
aswanson has joined #nixos
<tilpner> I have never encountered withPackage. If you meant python.withPackages, it builds a wrapper around python where the specified packages are available
<tilpner> They are not comparable at all, one calls expressions, the other builds a wrapper
avn_ has quit [Quit: WeeChat 2.4]
<Ankhers> tilpner: Thanks.
nefix has quit [Quit: Page closed]
<{^_^}> [nixpkgs] @erictapen opened pull request #61593 → haskellPackages.hakyll: remove unnecessary patch, unbreak → https://git.io/fjl7M
detran has joined #nixos
pie_ has joined #nixos
drakonis_ has joined #nixos
Glider_IRC has quit [Ping timeout: 255 seconds]
kenshinCH has joined #nixos
Glider_IRC has joined #nixos
drakonis has quit [Ping timeout: 252 seconds]
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
justanotheruser has quit [Ping timeout: 258 seconds]
FRidh has quit [Quit: Konversation terminated!]
FRidh has joined #nixos
iyzsong has joined #nixos
jomik has joined #nixos
<matthewbauer> tobiasBora: probably there’s some LD=cc line somewhere
hyper_ch2 has quit [Quit: Page closed]
alex```8998 has joined #nixos
alex```899 has quit [Ping timeout: 258 seconds]
linarcx has joined #nixos
iyzsong has quit [Ping timeout: 268 seconds]
JosW has joined #nixos
kenshinCH has quit [Quit: WeeChat 2.4]
<{^_^}> [nixpkgs] @c0bw3b merged pull request #61479 → devd: init at 0.9 → https://git.io/fjW7m
srid has quit [Ping timeout: 255 seconds]
<{^_^}> [nixpkgs] @c0bw3b pushed 3 commits to master: https://git.io/fjldf
o1lo01ol1o has quit [Remote host closed the connection]
drakonis has joined #nixos
<ajs124> which package does nixos-rebuild come from/how do I patch nixos-rebuild?
dnlkrgr has joined #nixos
schjetne has quit [Ping timeout: 246 seconds]
drakonis_ has quit [Ping timeout: 258 seconds]
JosW has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
shabius_ has joined #nixos
srid has joined #nixos
o1lo01ol1o has joined #nixos
shabius has quit [Ping timeout: 258 seconds]
o1lo01ol_ has joined #nixos
o1lo01ol_ has quit [Remote host closed the connection]
o1lo01ol1o has quit [Ping timeout: 252 seconds]
drakonis_ has joined #nixos
drakonis has quit [Ping timeout: 264 seconds]
drakonis1 has joined #nixos
regnat has left #nixos ["User left"]
zeta_wolf has joined #nixos
___laika has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @c0bw3b merged pull request #61460 → wf-recorder: unstable-2019-04-21 -> 0.1 → https://git.io/fjW6c
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/fjldK
___laika has joined #nixos
dnlkrgr has quit [Ping timeout: 250 seconds]
___laika has quit [Read error: Connection reset by peer]
___laika has joined #nixos
<zeta_wolf> clever: good morning, when i tried to do a rebuild with the udev rules this morning i got a bunch of errors: https://hastebin.com/hovuloxasi.pl https://hastebin.com/iqugiradeg.rb https://nixos.org/nixos/options.html#services.udev https://haikarainen.github.io/light/
<{^_^}> [nixpkgs] @vaartis closed pull request #26546 → [WIP] Bugzilla → https://git.io/vHQk4
<zeta_wolf> clever: what is wrong and how do i fix this?
toppler`` has quit [Ping timeout: 258 seconds]
<regnat[m]> <sevanspowell "These are my nix files and error"> I'm not sure that's your issue, but I think the `lib` files for openssl are in `openssl.out` which isn't the default output
Guanin has joined #nixos
knupfer has joined #nixos
jomik has quit [Ping timeout: 252 seconds]
<clever> zeta_wolf: just use chgrp, not /bin/chgrp
toppler`` has joined #nixos
_e has quit [Quit: WeeChat 2.4]
halfbit has quit [Ping timeout: 252 seconds]
vid has joined #nixos
<zeta_wolf> clever: do i need to remove /bin/ for both chgrp and chmod?
<{^_^}> [nixpkgs] @c0bw3b merged pull request #61382 → python37Packages.pamqp: 2.1.0 -> 2.3.0 → https://git.io/fjW3p
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/fjldj
alex```8998 has quit [Ping timeout: 248 seconds]
<clever> zeta_wolf: yes
spacekookie has quit [Quit: **more agressive swooshing**]
spacekookie has joined #nixos
esmerelda has quit [Ping timeout: 250 seconds]
<zeta_wolf> clever: ok, i'll give that a try and rebuild, i'll let you know if it works or not
spacekookie has quit [Client Quit]
zeta_wolf has quit [Remote host closed the connection]
spacekookie has joined #nixos
erasmas has joined #nixos
spacekookie has quit [Client Quit]
spacekookie has joined #nixos
linarcx has quit [Quit: WeeChat 2.4]
vid has quit [Ping timeout: 244 seconds]
linarcx has joined #nixos
spacekookie has quit [Client Quit]
spacekookie has joined #nixos
endformationage has joined #nixos
esmerelda has joined #nixos
_e has joined #nixos
zeta_wolf has joined #nixos
Ariakenom has quit [Quit: Leaving]
Orbstheorem is now known as MobsterHero
<{^_^}> [nixpkgs] @aanderse merged pull request #58682 → pioneer: update to 20190203 → https://git.io/fjkbj
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/fjlFr
<zeta_wolf> clever: i made the changes and still got a bunch of errors: https://hastebin.com/suqifelixu.pl https://hastebin.com/otogaqekuv.rb
knupfer has quit [Ping timeout: 250 seconds]
linarcx has quit [Quit: WeeChat 2.4]
jgt has joined #nixos
<jgt> how do I open a nix-shell using a specific default.nix (not the one in the current directory)
<Taneb> Is there a way to try to instantiate a derivion with import-from-derivation disabled?
<Taneb> Or made more explicit
domogled has quit [Quit: domogled]
wfranzini has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
_e has quit [Quit: _e]
<gchristensen> YES
<gchristensen> oops
_e has joined #nixos
_e has quit [Client Quit]
<gchristensen> --option allow-import-from-derivation false
<Taneb> gchristensen: <3
<jgt> gchristensen: love the enthusiasm
<gchristensen> ^.^
<Taneb> ...I'm mixing the two karma-giving ways, aren't I
<Taneb> <3 gchristensen
<{^_^}> gchristensen's karma got increased to 118
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @aanderse merged pull request #61462 → simgrid: 3.21 -> 3.22.2 → https://git.io/fjWPC
<{^_^}> [nixpkgs] @aanderse pushed 5 commits to master: https://git.io/fjlFX
<jgt> nix-shell -f submodules/chat-ui/default.nix doesn't work
___laika has quit [Quit: WeeChat 2.4]
_e has joined #nixos
linarcx has joined #nixos
<jgt> actually maybe I shouldn't be using nix-shell for this
dnlkrgr has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
alp has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @xbreak opened pull request #61597 → sloccount: Wrap shell scripts → https://git.io/fjlFS
<infinisil> jgt: Just pass it as an argument directly
<infinisil> nix-shell submodules/chat-ui/default.nix
o1lo01ol1o has quit [Ping timeout: 245 seconds]
ng0 has joined #nixos
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #nixos
<zeta_wolf> could someone explain to me how to fix these errors? https://hastebin.com/suqifelixu.pl https://hastebin.com/otogaqekuv.rb
<tilpner> zeta_wolf: Try ${coreutils}/bin/chgrp
<zeta_wolf> tilpner: do i need to do that for `chmod` as well?
<tilpner> Probably
<zeta_wolf> tilpner: ok i'll give it a try and let you guys know if it works or not.
zeta_wolf has quit [Remote host closed the connection]
<azazel> there is that funtion to swap the args of a function... anyone remembers its name?
<jgt> infinisil: oh right. Thanks!
<tilpner> azazel: flip
<azazel> oh, thanks tilpner
ubert has quit [Quit: Leaving]
o1lo01ol1o has joined #nixos
halfbit has joined #nixos
Thra11 has joined #nixos
zeta_wolf has joined #nixos
FRidh has quit [Quit: Konversation terminated!]
alp has joined #nixos
Guanin has quit [Remote host closed the connection]
rwe has joined #nixos
<zeta_wolf> tilpner: when i did that change it threw another error? https://hastebin.com/aquyokehep.pl https://hastebin.com/yifihasino.pl
<tobiasBora> matthewbauer: ok I'll investigate that, thanks!
<tilpner> zeta_wolf: You need to bring coreutils into scope
<tilpner> zeta_wolf: Either with a let, a with (probably shouldn't). Or you can do pkgs.coreutils
<tilpner> zeta_wolf: And your quotes are broken
Thra11 has quit [Ping timeout: 246 seconds]
<linarcx> Guys, i'm packaging a go application. and i got this error: `invalid base-32 hash *****`. why?
<zeta_wolf> tilpner: broken quotes?
<tilpner> zeta_wolf: Your paste has a string ending in $ instead of "
<tilpner> And a missing s
<tilpner> Unless that's because you copied this from nano
<zeta_wolf> tilpner: yes, i copied from nano
<tilpner> Try to avoid that in the future, your pastes should contain exactly what the file contains
<zeta_wolf> tilpner: ok, i'll copy from emacs intstead to avoid this problem
mkoenig has quit [Quit: Lost terminal]
mkoenig has joined #nixos
<zeta_wolf> tilpner: ok, i'll use pkgs.coreutils, how to i bring the package into scope?
<linarcx> actually help me :))
<tilpner> zeta_wolf: By doing pkgs.coreutils you don't need to bring coreutils into scope anymore
<tilpner> zeta_wolf: It's sufficient to have pkgs in scope
otulp_ has joined #nixos
otulp has quit [Ping timeout: 258 seconds]
otulp_ is now known as otulp
<pie_> would be nice if a maintainer could could reply to this pr and or merge it so we can get wxpython 4; https://github.com/NixOS/nixpkgs/pull/61253#issuecomment-492912087
<zeta_wolf> tilpner: i am not sure what you mean, if i install coreutils locally in home-manager(home.nix) will the package automatically be detected and put into scope for the udev rules globally in configuration.nix? Is this what you mean?
<tilpner> zeta_wolf: No, you don't need to install coreutils separately
Thra11 has joined #nixos
nschoe has joined #nixos
<{^_^}> [nixpkgs] @Infinisil merged pull request #61483 → unison: fix building on macOS with enableX11 = false → https://git.io/fjWdJ
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fjlbE
<tilpner> zeta_wolf: No, just do $[pkgs.coreutils} and nothing else
<tilpner> ACTION=="add", SUBSYSTEM=="backlight", RUN+="${pkgs.coreutils}/bin/chmod g+w /sys/class/backlight/%k/brightness"
<{^_^}> [nixpkgs] @Infinisil merged pull request #61484 → Add minimal docs for callHackage and friends → https://git.io/fjWdp
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fjlbg
rfold has joined #nixos
<zeta_wolf> tilpner: like this? https://hastebin.com/zarupivapo.nginx
<tilpner> Yes
<zeta_wolf> tilpner: ok i am going to do a rebuild, i'll let you know if it works or not
knupfer has joined #nixos
Jetien_ has quit [Ping timeout: 252 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/3a9e46ac173 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<zeta_wolf> tilpner: the minimum brightness of brightnessctl is to bright and hurting my eyes and giving me migrane headaches, so i am trying to setup xmonad-brightness, all that is left is to do is to fix the permissions, lets see if it works
<tilpner> I already helped you with this
nixy is now known as Guest20687
jgt has quit [Ping timeout: 252 seconds]
nixy7 is now known as nixy
<tilpner> <zeta> tilpner: ok i'll try it out, i will let you guys know if it works or not
<zeta_wolf> tilpner: i know, i was just trying to explain what i am trying to do, thanks for helping me
<tilpner> But then you never got back to me
<judson_> So, I still need to test my hypothesis, but I don't know how I'm the only one having problems with Chrome's singleton behavior.
<judson_> If it's true.
<judson_> Chrome uses a socket to control the singleton browser. That's how, if you open a link from another program, it knows whether to open a new tab or a new browser.
<judson_> It puts the socket in /tmp, and I think that systemd cleans it.
<tilpner> It should only do that at boot
<tilpner> At which point you shouldn't have a GUI running, and thus no socket
<tilpner> See nixos-option boot.cleanTmpDir
wangoe has quit [Ping timeout: 246 seconds]
<zeta_wolf> tilpner: oh my bad, i just switched to new irc(rcirc in emacs), maybe i did not see your message, i got rcirc up and running with some elisp, but there are still some things that i need to fix
zeta_wolf has quit [Remote host closed the connection]
inf is now known as inf_
pie_ has quit [Remote host closed the connection]
inf_ is now known as inf
esmerelda has quit [Ping timeout: 258 seconds]
rwe has quit [Remote host closed the connection]
civodul has quit [Ping timeout: 252 seconds]
rwe has joined #nixos
jomik has joined #nixos
<linarcx> Guys, how to create a systemd service for a package?
<tilpner> Look at similar modules, imitate and adapt
sigmundv has quit [Ping timeout: 268 seconds]
<aanderse> linarcx: yes, many examples. feel free to bring specific questions here, though :)
ddellacosta has joined #nixos
Ariakenom has joined #nixos
<linarcx> aanderse: Look at this package in arch linux:https://git.archlinux.org/svntogit/community.git/tree/trunk?h=packages/v2ray. i want to create a package for it and also include a service in it. but i don't know how do that?
rwe has quit [Ping timeout: 258 seconds]
<aanderse> linarcx: well step 1 is to create the package then. are you having any difficulties there?
<linarcx> aanderse: Yes, im creating it. but i don't know how to create a service for it.
<linarcx> aanderse: Ok, i find it: https://nixos.wiki/wiki/NixOS:extend_NixOS
<{^_^}> [nixpkgs] @Infinisil merged pull request #61356 → nyancat: init at 1.5.2 → https://git.io/fjWtH
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fjlNU
<etu> linarcx: The service is created in a module and that's independent of the package derivation
<linarcx> etu: Really? Show me a package that implement this behaviour.
esmerelda has joined #nixos
alexherbo2 has joined #nixos
<infinisil> linarcx: Look at examples in nixpkgs/nixos/modules/services
aveltras_ has joined #nixos
<aanderse> linarcx: very basic start you can use: https://paste.ee/p/LobAs
nschoe has quit [Ping timeout: 258 seconds]
drakonis1 has quit [Quit: WeeChat 2.4]
<linarcx> infinisil, aanderse: Thank you so much.
<aanderse> linarcx: no problem
talqu has joined #nixos
<{^_^}> [nixpkgs] @andir merged pull request #61533 → chromium: 74.0.3729.131 -> 74.0.3729.157 → https://git.io/fjlZn
<{^_^}> [nixpkgs] @andir pushed 2 commits to master: https://git.io/fjlNY
Myhlamaeus has joined #nixos
jomik has quit [Quit: WeeChat 2.4]
drakonis has joined #nixos
fionnan has quit [Ping timeout: 252 seconds]
camsbury has quit [Remote host closed the connection]
zeta_wolf has joined #nixos
drakonis_ has quit [Ping timeout: 245 seconds]
rwe has joined #nixos
<linarcx> Gyus, i'm testing a package. it start to download some dependencies. but after one hour i don't know what's the process of downloading. it says: copying path '/nix/store/barxv95b8arrlh97s6axj8k7ljn7aky1-go-1.12' from 'https://cache.nixos.org'...
<linarcx> How to know the exact process of download/build a package?
<zeta_wolf> tilpner: i am ready to do the rebuild i am just not sure if i need to use `/bin/` or not? heres the 2 pastebins that i have: https://hastebin.com/orilujehay.http https://hastebin.com/ebuxuxirey.http
freeman42x has joined #nixos
<tilpner> zeta_wolf: I told you to use ${pkgs.coreutils}/bin/chgrp, and nothing has changed since
fionnan has joined #nixos
jgt has joined #nixos
<cizra> Synthetica: all ready for your review!
jgt has quit [Ping timeout: 248 seconds]
aveltras_ is now known as aveltras
shabius_ has quit [Ping timeout: 252 seconds]
ddellacosta has quit [Ping timeout: 244 seconds]
otini has left #nixos ["User left"]
rwe has quit [Ping timeout: 246 seconds]
dnlkrgr has quit [Ping timeout: 252 seconds]
Matthieu_ has joined #nixos
<infinisil> linarcx: I like to check htop to see what's happening. Start htop, go to the process that is downloading it (press t to see the tree structure), then press s to see the syscalls being made, then enable auto-scroll by clicking at the button on the bottom. You probably need to start htop with sudo for this to work
Lears has quit [Remote host closed the connection]
Lears has joined #nixos
is_null has quit [Ping timeout: 268 seconds]
<linarcx> infinisil: Ohh, it's hard. why there is no process information in nixos download manager. in arch, debian, even guixsd, they have a ncie process information that you can know what's going on.
zeta_wolf has quit [Remote host closed the connection]
_ris has joined #nixos
<infinisil> linarcx: The new Nix CLI does display download progress nicely
<linarcx> Really? is it ready to use?
ckoparkar has quit [Ping timeout: 264 seconds]
<infinisil> linarcx: Sure. While the interface might change, it's totally usable
<worldofpeace> ,locate bin fop
<{^_^}> Found in packages: fop
hoijui has joined #nixos
Neo-- has quit [Ping timeout: 250 seconds]
<Izorkin> etu: checked pr?
rwe has joined #nixos
<{^_^}> [nixpkgs] @c0bw3b merged pull request #61334 → mergerfs: 2.25.1 -> 2.26.1 → https://git.io/fjWT6
<{^_^}> [nixpkgs] @c0bw3b pushed 4 commits to master: https://git.io/fjlAq
<{^_^}> [nix] @CSVdB opened pull request #2864 → Fix lock file → https://git.io/fjlAm
carboa has joined #nixos
Matthieu_ has quit [Ping timeout: 252 seconds]
<{^_^}> [nixops] @AmineChikhaoui pushed to master « datadog: remove api/app_keys from the monitor options »: https://git.io/fjlAO
<infinisil> Idea: Provide a cachix cache for nix-locate indices, so you don't have to build it yourself
<infinisil> Although, not sure if you can create a nix-build from nix-index
<infinisil> Would probably require turning off the sandbox
<infinisil> Mehh
emptyflask has joined #nixos
<matthewbauer> infinisil: yeah this would probably better be done as part of the channel scripts
<infinisil> matthewbauer: You mean to bundle the index with the channel?
<infinisil> Ideally hydra would allow such queries directly
<emptyflask> so I've got a nice ruby/rails dev environment set up on nixos using bundix... I wonder what the best way would be to run the various apps (with different ruby versions) through nginx. on other OSes I've used a chruby wrapper script with passenger, but since here I'm using direnv + nix shell, I have to rethink that
<manveru> emptyflask: easiest i found is to run them as separate systemd services and use port forwarding
astal has quit [Ping timeout: 245 seconds]
schjetne has joined #nixos
astal has joined #nixos
Matthieu_ has joined #nixos
sir_guy_carleton has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed 6 commits to master: https://git.io/fjlAE
jgt has joined #nixos
<emptyflask> manveru: did you set that up in nixos config or just as ad-hoc user services?
<{^_^}> [nixpkgs] @NeQuissimus pushed 6 commits to release-19.03: https://git.io/fjlAz
rauno has joined #nixos
zupo_ has joined #nixos
<manveru> nixos config
schjetne has quit [Ping timeout: 250 seconds]
carboa has quit [Quit: Page closed]
zupo has quit [Ping timeout: 268 seconds]
zupo__ has joined #nixos
<emptyflask> if you happen to have an example of that config I'd love to see it...
<{^_^}> [nixpkgs] @c0bw3b merged pull request #61564 → buku: 4.1 -> 4.2 → https://git.io/fjlo2
<{^_^}> [nixpkgs] @c0bw3b pushed commit from @dtzWill to master « buku: 4.1 -> 4.2 (#61564) »: https://git.io/fjlAw
<manveru> hmm
mexisme_ has joined #nixos
gxt has joined #nixos
jgt has quit [Ping timeout: 252 seconds]
wfranzini has joined #nixos
<manveru> emptyflask: https://github.com/NixOS/nixpkgs/pull/59142 here is the service part
<{^_^}> #59142 (by manveru, 5 weeks ago, open): frab: 2016-12-28 -> 2019-03-22
zupo_ has quit [Ping timeout: 250 seconds]
<manveru> not sure if anyone will ever merge it :P
<manveru> but it's a basic rails app, so should give you some ideas
jgt has joined #nixos
<emptyflask> awesome, thanks
<{^_^}> [nixpkgs] @primeos pushed to master « android-studio: 3.4.0.18 -> 3.4.1.0 »: https://git.io/fjlAK
<manveru> and for nginx, you should be able to set a simple proxy_pass
<sir_guy_carleton> i would do some go language devlopment in nixos. should i install go with nix-env or configuration.nix, or use nix-shell?
rauno has quit [Ping timeout: 264 seconds]
mexisme_ has quit [Ping timeout: 250 seconds]
<manveru> sir_guy_carleton: i'd recommend nix-shell
<infinisil> Yeah nix-shell is the way to go
<manveru> especially if you use go modules
<sir_guy_carleton> manveru: okay, that's what i figured. so i'm trying to set it up with a default.nix, but it doesn't seem to work
MobsterHero is now known as Orbstheorem
jgt has quit [Ping timeout: 264 seconds]
<manveru> specify "doesn't seem to work" :)
* infinisil didn't even notice sir_guy_carleton mentioning Go the language, as I overread it as a random word "go"
<sir_guy_carleton> this line does seem work "buildImputs = with pkgs; [ go_bootstrap ];
<sir_guy_carleton> but nix-shell --packages go works fine
<{^_^}> [nixpkgs] @worldofpeace pushed to master « pythonPackages.anytree: init at 2.6.0 »: https://git.io/fjlAS
<manveru> go_bootstrap?
<manveru> why would you use that...
<manveru> also it's `buildInputs`
rwe has quit [Ping timeout: 244 seconds]
<manveru> go_bootstrap is only used to build go, you should use `go_1_12` instead
<manveru> or just `go`, if you don't care about the version that much and always want latest
<{^_^}> [nixpkgs] @Infinisil merged pull request #61572 → termite: 15, minor patch follow-up → https://git.io/fjlis
<{^_^}> [nixpkgs] @Infinisil pushed 3 commits to master: https://git.io/fjlA5
<sir_guy_carleton> manveru:lol, that was my mistake. replacing it with go and correcting it the typo fixed everything
<sir_guy_carleton> sorry for bothering you
<{^_^}> [nixpkgs] @Infinisil merged pull request #61473 → doc/stdenv.xml: fix typo → https://git.io/fjWSD
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fjlAb
<manveru> don't worry man, we've all been there ;)
domogled has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace opened pull request #61598 → gtk-doc: build with meson, etc → https://git.io/fjlxf
stites has joined #nixos
mexisme_ has joined #nixos
simendsjo has joined #nixos
zeta_wolf has joined #nixos
shibboleth has joined #nixos
<{^_^}> [nixpkgs] @andir pushed commit from @ivan to release-19.03 « chromium: 74.0.3729.108 -> 74.0.3729.157 »: https://git.io/fjlxT
rwe has joined #nixos
knupfer has quit [Ping timeout: 264 seconds]
zeta_wolf has quit [Remote host closed the connection]
<{^_^}> [nix] @CSVdB opened pull request #2865 → Add default argument to `nix flake info` → https://git.io/fjlxn
Thra11 has quit [Ping timeout: 250 seconds]
Anton-Latukha has joined #nixos
dnlkrgr has joined #nixos
drakonis_ has joined #nixos
zeta_wolf has joined #nixos
rwe has quit [Ping timeout: 268 seconds]
<zeta_wolf> tilpner: errors are still being thrown? https://hastebin.com/sewafekeko.rb https://hastebin.com/konexeqaru.http
<tilpner> zeta_wolf: Those seem unrelated to what you showed me
<tilpner> Note how it doesn't contain chgrp
<tilpner> Also: Has anyone *ever* seen hastebin detect the right thing?
toppler`` has quit [Ping timeout: 244 seconds]
simendsjo has quit [Ping timeout: 258 seconds]
<zeta_wolf> tilpner: so what is it that is wrong? i did it exactly the way you said?
rwe has joined #nixos
sigmundv has joined #nixos
<tilpner> Perhaps nothing
<tilpner> Did you reboot and see if it helped?
<zeta_wolf> tilpner: yes, if you look to the top of the error i did a rebuild switch
toppler`` has joined #nixos
<tilpner> I asked if you rebooted
<tilpner> Saying you did a rebuild switch does not answer my question
<zeta_wolf> tilpner: yes
<zeta_wolf> tilpner: i rebooted already
<tilpner> After the switch, right?
<zeta_wolf> tilpner: yes, i could try it again to double check?
<tilpner> No
<tilpner> How do you tell it hasn't worked?
<zeta_wolf> tilpner: when i hold the function key and press the volume keys nothing happens here are 2 pastebins of my xmonad.hs file and the instructions: https://hastebin.com/vekizokequ.rb https://github.com/giovanifss/xmonad-brightness
<tilpner> That is a terrible way to debug
<tilpner> You need to test if intermediate steps are solved, not test the whole chain at once
<tilpner> Paste the output of: ls -lah /sys/class/backlight/*/brightness
adamantium has joined #nixos
<zeta_wolf> tilpner: well, the xmonad.hs file compiled without any errors and the people in #haskell said the code looked fine, and ok give me one sec to run that command
<tilpner> So what? You can eliminate the entire Haskell portion of this puzzle by just looking at the permissions directly
<tilpner> Then you can stop guessing about where it goes wrong
joko has quit [Quit: leaving]
rwe has quit [Remote host closed the connection]
rwe has joined #nixos
shibboleth has quit [Quit: shibboleth]
mexisme_ has quit [Ping timeout: 258 seconds]
<zeta_wolf> no i finished the xmonad.hs compiled it, checked with the #haskell people and they said it looked correct, now i am just trying to get the permissions to work
<{^_^}> [nixpkgs] @dtzWill merged pull request #61557 → nodejs-12_x: 12.1.0 -> 12.2.0 → https://git.io/fjlrj
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fjlx6
<zeta_wolf> tilpner: here is the output of the command you told me to run: https://hastebin.com/iverifekij.rb
<tilpner> See? Now you know the Haskell part isn't causing this
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
jgt has joined #nixos
<zeta_wolf> tilpner: um, ok that's good to know, but i'm not sure what the output of thatcommand means?
<tilpner> It means the udev rules didn't take effect or were incorrect
<tilpner> ~ > ls -lah /sys/class/backlight/*/brightness
<tilpner> -rw-rw-r-- 1 root video 4.0K May 15 13:10 /sys/class/backlight/acpi_video0/brightness
<tilpner> -rw-rw-r-- 1 root video 4.0K May 16 15:14 /sys/class/backlight/intel_backlight/brightness
alp has quit [Ping timeout: 258 seconds]
<tilpner> That's how mine look, and since I'm in the video group I can set brightness as I want
alp has joined #nixos
arguser has joined #nixos
<arguser> Hi there, anyone got VSCode Live Share working?
jgt has quit [Ping timeout: 250 seconds]
<tilpner> ottidmes and steveeJ have
fendor has quit [Ping timeout: 246 seconds]
<arguser> tilpner: thanks
<arguser> ottidmes or steveeJ care to share the magic with a nixos newbie?
<tilpner> arguser: You can wait for them to see your question, and in the meantime search if they have publicly available configuration repos
<zeta_wolf> tilpner: ok i see, it needs to be `root video` instead of `root root`, i already set my user as part of the video group globally in configuration.nix, here is the pastebin: https://hastebin.com/yarusacece.php
<tilpner> zeta_wolf: Yes, that is not the issue here
<tilpner> (Where "that" is the "groups your user is in")
<arguser> tilpner: will do, last time I saw some gists but didn't know how to work with them properly
<zeta_wolf> tilpner: then what is the issue, i'm confused?
<tilpner> 214127 tilpner | It means the udev rules didn't take effect or were incorrect
<tilpner> zeta_wolf: I guess you can also paste the output of: nixos-option services.udev.extraRules
<tilpner> But I don't really expect that to be the issue
<steveeJ> tilpner: good work tracking that down. couldn't have remembered any faster :-D
<tilpner> zeta_wolf: Another thing to try: sudo udevadm trigger -v
<{^_^}> [nixpkgs] @dtzWill opened pull request #61600 → whatstyle: init at 0.1.7 → https://git.io/fjlxj
<arguser> thanks, will look into it tilpner, steveeJ
<ottidmes> arguser: I made this: https://github.com/msteen/nixos-vsliveshare
rpg has joined #nixos
enteee has joined #nixos
<etu> Izorkin: My last statement still remains, unless you've changed things
lovesegfault has quit [Quit: WeeChat 2.4]
<ottidmes> arguser: disclaimer I haven't had the time to test the repo, but the source files I used are literal copies from what I used a few weeks ago, so unless I made some mistakes in the glue code, it ought to work, let me know if something does not work for you so I can fix it
<arguser> ottidmes: great!
<arguser> ottidmes: will try it later today, thanks!
zeta_wolf has quit [Remote host closed the connection]
<ottidmes> arguser: just write an issue, because I am likely not to be online here at that time
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/19e114bf4b1 (from 59 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
<Izorkin> etu: leave as is. may find another method
troydm has joined #nixos
<arguser> ottidmes: will do
arguser has quit [Quit: Page closed]
domogled has quit [Quit: domogled]
pie_ has joined #nixos
domogled has joined #nixos
<pie_> are there any pending kernel updates or x11 or something because for the past two weeks plasma keeps breaking when i undock :(
zeta_wolf has joined #nixos
<zeta_wolf> tilpner: one of the commands changed mk keyboard layout back from my custom one to qwerty so i had to reboot but here are the outputs that i have so far: https://hastebin.com/aqamogusoc.rb
ym555_ has joined #nixos
ym555 has quit [Ping timeout: 252 seconds]
<tilpner> zeta_wolf: How about nix-instantiate --eval --strict '<nixpkgs/nixos>' -A config.services.udev.extraRules
<tilpner> That syntax error is very suspicious
domogled has quit [Ping timeout: 255 seconds]
<zeta_wolf> tilpner: here is the output of that command: https://hastebin.com/ayuhafuvef.http
polman has quit [Excess Flood]
<{^_^}> [nixpkgs] @thoughtpolice pushed to master « nixos: fix services.foundationdb.traceFormat for older server versions »: https://git.io/fjlpl
Izorkin has quit [Quit: ZNC 1.7.3 - https://znc.in]
Izorkin has joined #nixos
linarcx has quit [Quit: WeeChat 2.4]
polman has joined #nixos
domogled has joined #nixos
<tilpner> That looks about right
<pie_> is nix-prefetch-github broken on unstable
linarcx has joined #nixos
<pie_> in the sense that it wont work unless you have git in your environment
<zeta_wolf> tipner: why aren't these udev rules working?
<zeta_wolf> tilpner: the brightness is the last thing i need to setup in xmonad.hs then i will finally be good to go, i did not think that setting up these permisions would be so difficult
<tilpner> zeta_wolf: And this shows two lines? grep -r backlight /etc/udev/rules.d
<tilpner> Those are exactly the same as mine
<pie_> ok uhhh nix-prefetch-github seems kinda broken idk
<tilpner> I don't know why they aren't working
* pie_ looks sideways at his code
<zeta_wolf> tilpner: i just setup rcirc so i haven't been able to get into the #xmonad channel to ask questions, i guess i am screwed
<zeta_wolf> :(
<tilpner> ...
i1nfusion has quit [Remote host closed the connection]
<tilpner> This IS NOT related to xmonad at all
zupo__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zeta_wolf> tilpner: then what is this related to?
<tilpner> As I've been telling you for the last 4 hours, it seems the udev rules aren't taking effect or are wrong
<tilpner> And no, I don't know why either
* tilpner is done for today
<zeta_wolf> tilpner: so do you know of another channel where i can ask for help?
jgt has joined #nixos
<pie_> if it works on ubuntu try to figure out why it works on ubuntu and not your setup
<pie_> compare, scratch head, repeat. most channels are not so helpful as here, if people cant help you here you're probably going to need to give it a good shot yourself.
Matthieu_ has quit [Ping timeout: 264 seconds]
<pie_> i think udev at some point ended up in systemd?
<zeta_wolf> i guess i will try the #haskell channel again, they are usually not very friendly so i am not looking forward to it
jgt has quit [Ping timeout: 252 seconds]
<pie_> backlights dont sound like an xmonad or haskell problem
<zeta_wolf> pie_: so does that mean that i would have to setup the udev rules in in the systemd options?
<ottidmes> zeta_wolf: not really followed your question, but from a glance, if it has to do with rights on /sys for backlight, maybe make some little script and make an exception for it in sudoers?
<pie_> zeta_wolf, no i mean go ask the systemd people :P
domogled has quit [Ping timeout: 268 seconds]
<pie_> in my experience if people in haskell arent friendly the problem tends to be with the asker
<zeta_wolf> pie_: what is their channel?
<zeta_wolf> called
<pie_> zeta_wolf, dunno, google it
Matthieu_ has joined #nixos
<pie_> put in some effort mate
<{^_^}> [nixpkgs] @dtzWill opened pull request #61603 → electrum: 3.3.5 -> 3.3.6 → https://git.io/fjlpo
<zeta_wolf> #systemd is telling me i am unregistered but i am registered
<zeta_wolf> ):
rpg has quit [Quit: Textual IRC Client: www.textualapp.com]
<pie_> zeta_wolf, you probable need to authenticate
knupfer has joined #nixos
<pie_> something something /msg nickserv help identify
<zeta_wolf> i need to fix the elisp in .emacs for rcirc, it does not sound fun
<pie_> yeah emacs is a yak shave i havent had the time to deal with yet :)
<pie_> why are you heavily relying on emacs if you cant use it yet?
<pie_> zeta_wolf, also there is usually a way to search a list of irc channels. i dont know if theres a freenode service that does that, i just use whatever interface hexchat gives me
gilligan has joined #nixos
<infinisil> /list does that
<gilligan> hiho o/
<zeta_wolf> i am looking long term and emacs seems great, you can almost anything in it
<Ralith> as a heavy emacs user, I wouldn't learn emacs if I were starting over from scratch
<gilligan> Does anyone here happen to use *swaywm* and *waybar* ? I'm wasting way too much time trying to figure out how to get the systray to display icons correctly :--D
<zeta_wolf> well, i give up, i going to try out the `lights` package, i'll give xmonad-brightness a try again when i have the time
knupfer has quit [Ping timeout: 248 seconds]
<judson_> tilpner - I have a systemd.tmpfiles.rules = [ "d /tmp 1777 root root 3d" ]; Hoist on my own petard!
<zeta_wolf> Ralith: why?
<judson_> I tend not to reboot frequently, so I prefer to have /tmp cleaned more often than boot.
<Ralith> because there are other high quality text editors not weighed down by decades of legacy now
<pie_> zeta_wolf, sure, nothing wrong with long term and emacs working great later, but maybe help yourself help yourself
<pie_> zeta_wolf, bootstrapping and whatnot
v0|d has joined #nixos
<zeta_wolf> pie_: i am getting the hang of it, just have to stick with it
sigmundv has quit [Ping timeout: 245 seconds]
domogled has joined #nixos
Zer0xp has joined #nixos
<zeta_wolf> well later guys
<zeta_wolf> tilpner++
<{^_^}> tilpner's karma got increased to 26
JonReed has joined #nixos
<zeta_wolf> pie_++
<{^_^}> pie_'s karma got increased to 1
<zeta_wolf> Ralith++
<{^_^}> Ralith's karma got increased to 4
<zeta_wolf> clever++
<{^_^}> clever's karma got increased to 131
zeta_wolf has quit [Remote host closed the connection]
gilligan has quit [Quit: Konversation terminated!]
<pie_> am i making some dumb mistake here https://bpaste.net/show/17db9389db0a , results in: error: opening file '/nix/store/ng1rf5rlsylscnnz4kn8yl9h92alk8gk-source/default.nix': No such file or directory, with a nixpkgs that looks like it only has the repo/pkgs directory
<pie_> kinda tired to really give a stronger shot at figuring out what i messed up
adamantium has quit [Ping timeout: 258 seconds]
<pie_> everything looks fine to me
<ottidmes> pie_: what does `ls /nix/store/ng1rf5rlsylscnnz4kn8yl9h92alk8gk-source` give?
fendor has joined #nixos
<pie_> ottidmes, only pkgs
fusion809 has joined #nixos
ThatDocsLady has quit [Ping timeout: 258 seconds]
<ottidmes> what does the json file look like?
domogled has quit [Ping timeout: 248 seconds]
<pie_> ottidmes, well "everything in the nix looks fine to me", no idea why fetchfromgithub is only resulting in the pkgs directory existing in the repo..
<pie_> or, whatever sources is
goibhniu1 has quit [Ping timeout: 252 seconds]
<ottidmes> its indeed weird
<ottidmes> I tried the same on my 19.03, same error
<tilpner> pie_: Your commit is wrong
Zer0xp has quit [Ping timeout: 256 seconds]
<tilpner> Date: Mon May 3 14:46:55 2004
<lassulus> a no it's just from 2004
<pie_> 0_0
<pie_> soooo nix-prefetch-github is hella broken? or master is at 2004
akapav has quit [Quit: ZNC 1.7.2 - https://znc.in]
<ottidmes> changing it to a recent rev/sha makes it works
akapav has joined #nixos
hoijui has quit [Ping timeout: 252 seconds]
* pie_ googles nix-prefetch-github
<ottidmes> pie_: I made this for myself, might be useful for you as well: https://github.com/msteen/nix-prefetch
hoijui has joined #nixos
<pie_> thanks ill chekck it out later, unless firefox deletes my tabs again
<pie_> ottidmes, "Monkey patches the fetchers (via an overlay) to not ignore certificate validity checking, to reduce the risk of man-in-the-middle (MITM) attacks when prefetching." uhhh it ignoring certificates a thing...
domogled has joined #nixos
drakonis has quit [Ping timeout: 252 seconds]
<ottidmes> pie_: yeah most default fetchers ignore certificates, so I have to fix them to do check them
<{^_^}> [nix] @edolstra pushed 3 commits to improve-flake-command: https://git.io/fjlpj
fendor has quit [Ping timeout: 248 seconds]
<pie_> 0___0
<ottidmes> ignoring them in Nix is safe due to hashing
<pie_> ok....i guesssss
<lassulus> pie_: nix-prefetch-github NixOS nixpkgs --rev master does the expected thing
<pie_> lassulus, yeah i figured after you guys mentioned the rev problem
<pie_> thats still pretty weird behaviour though
<ottidmes> yeah I noticed something going wrong with nix-prefetch as well
<ottidmes> it seems their response to requested the rev changed
<pie_> im not up for filing a bug report but maybe this needs to be looked into
<pie_> oops forced downgrade to 2004 :P
<ottidmes> pie_: I am getting two revs returned at master, and I believe nix-prefetch-github uses the same API to access the rev
<{^_^}> [nix] @edolstra opened pull request #2877 → FlakeCommand improvements → https://git.io/fjlhf
tg has quit [Excess Flood]
<pie_> error: value is a function while a set was expected, at /etc/nixos/configuration.nix:13:17
<pie_> much better x3
<{^_^}> [nix] @edolstra closed pull request #2865 → Add default argument to `nix flake info` → https://git.io/fjlxn
<pie_> thanks for the help guys
lovesegfault has joined #nixos
tg has joined #nixos
<ottidmes> the problem with the prefetchers (nix-prefetch-github and my nix-prefetch) is basically: git ls-remote https://github.com/NixOS/nixpkgs.git HEAD | awk '{ print $1 }', returning 2 rev's
<pie_> what changed
<pie_> also gotta love stringly typed processing
Ariakenom has quit [Quit: Leaving]
<ottidmes> pie_: HEAD is pointing to two rev's (is that even possible? my git knowledge is quite limited)
<ajs124> what's the difference between HEAD and refs/remotes/origin/HEAD?
<pie_> i dont know but theres a difference, i saw that when i was playing with my git sandbox :D
<pie_> my knee jerk gues sis local and remote head
<pie_> but iunno
<ajs124> How can it be local if I do git ls-remote? I don't even have a local .git
<pie_> ok so im probably wrong
<ottidmes> ajs124: I should just fix the command to only look for exactly HEAD not any others
dnlkrgr has quit [Quit: WeeChat 1.4]
v0|d has quit [Remote host closed the connection]
<ottidmes> pie_: about the stringly typed processing, unfortunately thats a given on unix. I at least try to avoid processing output meant only for human consumption
<infinisil> ajs124: git ls-remote shouldn't use anything from locally, no idea why it has HEAD though :/
lovesegfault has quit [Quit: WeeChat 2.4]
lovesegfault has joined #nixos
<ajs124> the thing is, if you do git ls-remote https://github.com/NixOS/nixpkgs.git HEAD, copy the hash and do git […] | grep $THAT_HASH, you get refs/heads/master and they match. so why does it return refs/remotes/origin/HEAD? why even refs/remotes??
stites has quit [Quit: ZNC 1.6.6+deb1ubuntu0.1 - http://znc.in]
<infinisil> Somebody should ask #git
work_ has joined #nixos
drakonis_ has quit [Quit: Leaving]
<pie_> ottidmes, yeah
<pie_> git is pretty responsive in my limited experience
mexisme_ has joined #nixos
Glider_IRC_ has joined #nixos
domogled has quit [Ping timeout: 244 seconds]
<ottidmes> don't see any way in the manual to filter it further, so guess a more complex awk has to do: git ls-remote https://github.com/NixOS/nixpkgs.git HEAD | awk '$2 == "HEAD" { print $1 }'
justanotheruser has joined #nixos
<infinisil> Well you can use --refs
Glider_IRC has quit [Ping timeout: 258 seconds]
talqu has quit [Remote host closed the connection]
<infinisil> Or --sort it by date
esmerelda has quit [Ping timeout: 258 seconds]
<infinisil> Although, --sort=creatordate fails
<infinisil> For nixpkgs at least
<ottidmes> infinisil: not really, I want to know HEAD, which could be a later date than other refs/tags and I don't know what it will be pointing to
<infinisil> Ah
Zer0xp has joined #nixos
<infinisil> How about just using the line with HEAD?
<Zer0xp> Hey
<ottidmes> infinisil: thats exactly my solution with the updated awk
<infinisil> Ahh haha sorry
<{^_^}> [nixpkgs] @basvandijk opened pull request #61604 → nixos: add test for tinydns → https://git.io/fjlhV
<ottidmes> ghehe, good to know you agree on the solution :P
<Zer0xp> I'm new to NixOS and I was wondering if any of you know how to install the google-authenticator package and make the 2FA work successfully ?
esmerelda has joined #nixos
lovesegfault has quit [Quit: WeeChat 2.4]
<Zer0xp> Because from what I've read elsewhere is that some of the files need to be edited in pam.d but I've tried that and all those files are unwritable.
<ottidmes> Zer0xp: no experience with that, but for changing pam, you probably want to check: https://nixos.org/nixos/options.html#pam
<infinisil> There is a googleAuthenticator option apparently
drakonis has joined #nixos
<sir_guy_carleton> there's a hardware.u2f.enable option
<Zer0xp> In the hardware config file ?
<ottidmes> infinisil: I am about to setup the disks on my new laptop, any tips? I plan to go with /boot of 8GB (so I can put some LiveCD there too and never even have to think about running out of /boot space) swap of 32G (same as RAM), and the rest of the remaining 1TB will be ZFS with NixOS using legacy mountpoints
<infinisil> ottidmes: Sounds good to me, no encryption then?
<Baughn> ottidmes: There is absolutely no need to make swap the same size as RAM. I usually make it 2GB.
<sir_guy_carleton> Zer0xp: no, you just put it in the configuration.nix file
<ottidmes> infinisil: I will do that via sedutil (native hardware encryption, its less safe, but its easier and still matches my threat model, i.e. in case of theft, that thieves not having access to my files as well)
<pie_> swap just needs to be big enough that theres enough time for it to fill up while the system is lagged out so that you can kill something :D
<Zer0xp> clever: Do I have to add that in the config.nix file ?
<ottidmes> Baughn: what if I want to support hibernation?
<clever> Zer0xp: configuration.nix
<Baughn> ottidmes: Do you? Suspend-to-ram is probably good enough.
<pie_> ottidmes, i was about to ask, no idea where hibernation on linux actually saves stuff
<Baughn> 32GB is a lot of disk space to reserve.
<infinisil> Baughn: suspend != hibernation though
<pie_> imagine all the nixos versions you could save there :D
<pie_> probably like...two :D
<pie_> jk
<clever> pie_: it basically just pushes everything into swap, and then cuts power
<ottidmes> I got 1000GB (probably more like 900+ since 1TB is likely not 1000G) so enough space to spare
<Baughn> Well, everything that isn't found elsewhere. It does drop caches, etc.
<{^_^}> [nixpkgs] @danielfullmer opened pull request #61605 → rtl8812au: fix build with Linux >= 5.0 → https://git.io/fjlhi
<pie_> clever, oh. and i think ive hibernated to a smaller swap without it complaining >_> left me quite suspicious maybe it does some compression or sometihng but sounds hlla sketchy
<Baughn> 1TB should be precisely 1000GB. Might be slightly more.
<ajs124> are there still like 3 solutions for hibernation? back when I looked into it, there was the upstream kernel thing, tuxonice and some userspace thing.
<Baughn> HDD manufacturers don't tend to _cheat_. They just, y'know, use SI prefixes.
drakonis_ has joined #nixos
halfbit has quit [Quit: WeeChat 2.4]
sir_guy_carleton has quit [Quit: WeeChat 2.4]
<pie_> Baughn, y'know
<infinisil> ajs124: There's criu that can hibernate process state: https://criu.org/Main_Page
<ottidmes> ajs124: I have been using hibernation quite extensively for a while, but it was quite dependent on the kernel version (i.e. updates resulting in it breaking from time to time)
<clever> infinisil: wut
<Zer0xp> clever: Thank you so much.
<infinisil> clever: Haven't tried it myself, but it sounds pretty neat
<ottidmes> how does that differ from what I have been using, I also could just resume from where I left things?
drakonis has quit [Ping timeout: 252 seconds]
<ajs124> infinisil, I meant https://en.wikipedia.org/wiki/Uswsusp
<ajs124> ottidmes, criu is on a per process basis, not for the whole system
ashkitten has joined #nixos
<infinisil> Hmm, what does "whole system hibernation" actually get you though?
<ottidmes> ajs124: ah ok
<ajs124> infinisil, on a mobile device, longer battery life
<clever> infinisil: zero power usage when in hibernation
<infinisil> I don't mean that
<ajs124> I basically gives you what s2ram gives you, except you can pull the power.
<clever> infinisil: ive found a computer (in pieces) in a box one day, put it together, turned it on, and discovered, windows was in hibernation, lol
<infinisil> What does criu get you over just normal hibernation?
<pie_> btw repo with 1 commit looks like https://a.uguu.se/2QpMNDGItLMu.png
<infinisil> Because criu seems to indicate that normal hibernation doesn't restore process state
<ottidmes> clever: hah, that happens to me from time to time as well, like coming back to an apparantly Windows session from weeks ago :P
<infinisil> But if it doesn't do that, then nothing is started again after hibernation
<infinisil> Which is not what it does afaik
<ottidmes> * apparantly hibernated
Zer0xp has quit [Ping timeout: 256 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<pie_> infinisil, youre looking at it wrong
mexisme_ has quit [Ping timeout: 246 seconds]
<pie_> criu isnt meant as an alternative to normal hibernation
<pie_> not that i ever used it
<Baughn> s2ram and s2disk give you the same thing. Except, s2ram is far more reliable these days, and also resumes much faster.
<infinisil> Ah, I guess it's just if you need to hibernate single processes
o1lo01ol1o has joined #nixos
<infinisil> Got it
<Baughn> The downside is that it uses a tiny little bit of power. It tends to drain ~5% of your laptop battery per 24h.
<ottidmes> infinisil: "Using this functionality, application or container live migration, snapshots, remote debugging, and many other things are now possible."
<pie_> and i usually try to hibernate when im at 5% so ive screwed myself before :D
Matthieu_ has quit [Ping timeout: 258 seconds]
hoijui has quit [Ping timeout: 250 seconds]
<ashkitten> so i have a weird issue. i want to fork a beep command in the initrd script, but it gets killed and the last frequency continues playing forever if it gets killed by the handoff to stage 2 init. basically i need to fork it early, but also wait for it to exit cleanly if it makes it to the end of stage 1
o1lo01ol1o has quit [Ping timeout: 268 seconds]
stites has joined #nixos
<Baughn> ashkitten: Would `printf '\a'` work?
<ashkitten> Baughn: wdym?
<clever> Baughn: the beep command is seperate from the bel character
schjetne has joined #nixos
<Baughn> Yes, but perhaps a bel would do.
<ashkitten> i'm playing a startup tune but i don't want it to delay boot, basically
rfold has quit [Quit: WeeChat 2.4]
<clever> ashkitten: oh, there is the @ thing
<ashkitten> clever: hm?
<clever> ashkitten: if you prefix argv[0] with an @ i think, then it wont be killed by switch-root
<ashkitten> oh
<clever> thats used for fuse and unionfs type stuff dealing with the rootfs
<clever> so you dont murder the thing thats giving the rootfs
<ashkitten> that's great, exactly what i need
<ashkitten> so just @beep?
<clever> something like that, cant remember the exact details
schjetne has quit [Ping timeout: 245 seconds]
ashkitten has left #nixos ["no bouncer for now :<"]
jgt has joined #nixos
Matthieu_ has joined #nixos
ashkitten has joined #nixos
<ashkitten> clever: it wasn't @beep
toppler`` has quit [Ping timeout: 246 seconds]
jgt has quit [Ping timeout: 258 seconds]
drakonis has joined #nixos
<ashkitten> clev
<ashkitten> clever: it apparently is correct to set argv[0][0] to "@"
<ashkitten> but i'm not sure how to do that in a script without modifying the binary
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/19e114bf4b1 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
toppler`` has joined #nixos
<pie_> are there options https://nixos.org/nixos/options.html misses?
<pie_> packageoverrides doesnt seem to show up for example
<pie_> well ok obviously the answer is yes
_rvl has quit [Quit: ZNC 1.7.2 - https://znc.in]
_rvl has joined #nixos
erasmas has quit [Quit: leaving]
<ajs124> ashkitten, you can do that with exec -a, apparently
<samueldr> ashkitten: not 100% positive, but looks like -a works in busybox sh, like in bash https://git.busybox.net/busybox/tree/shell/ash.c#n9785
<samueldr> ajs124: jinx
rotaerk has quit [Ping timeout: 258 seconds]
Anton-Latukha has quit [Quit: Leaving.]
<samueldr> (had to peek at the source as busybox sh doesn't have a help document on exec in `help`)
<ashkitten> ok cool
<ashkitten> i forgot about exec -a
<pie_> why dont people use a full system in initrd? :P
<samueldr> pie_: a full systemd?
<samueldr> in our case it's because of the closure size
<samueldr> systemd has an early initrd component
<pie_> well what i really mean is a normal bas
<pie_> *bash
<samueldr> ah
<samueldr> same, closure size
<pie_> idk much about this early system stuff
<ashkitten> i think our initrd uses ash
<samueldr> ash from busybox, yes
<samueldr> so it's more bashy than posix sh, but not bash either
<pie_> i need to do LFS one of these days
<ashkitten> do i need exec -a in a subshell or does it behave differently from normal exec
<samueldr> ashkitten: I would assume `exec -a` works 100% like exec, but sets 0th arg
<ashkitten> okay
<ar> isn't there some upper limit of size for what kernel will accept as initrd?
<samueldr> (that's what's written in `help exec` for bash
<ar> last time i tried making an oversized initrd, i couldn't make anything bigger than 500 or 600MB work, on a machine with 32 or 64GB of ram
<samueldr> ar: good question... I would hazard a guess that it is system dependent
Matthieu_ has quit [Quit: WeeChat 2.4]
<samueldr> though have no basis for that assumption :)
<ashkitten> hmm... busybox ash says "@beep: applet not found"
<clever> ashkitten: what is the exact command you tried?
<ashkitten> ( exec -a '@beep' beep ) &
<clever> maybe the other way around?
<ashkitten> no, then it says @beep: not found
Lisanna has joined #nixos
<ashkitten> i think -a has different meaning to busybox ash than sh or bash
<samueldr> ah
<ashkitten> idk what an applet is
<samueldr> I think I know
<samueldr> yes
<samueldr> busybox is a single call binary
<samueldr> (like coreutils is now)
rotaerk has joined #nixos
<samueldr> it looks at the 0th arg to know what to run
<clever> oh
<ashkitten> ohhh
<clever> so when you mess with argv0, the "beep" binary doesnt know its beep anymore
<samueldr> >> exec -a "ls" $(which sleep)
<ashkitten> dang
<samueldr> (works with bash+coreutils too)
<samueldr> ashkitten: even symlinking the binary wouldn't help here
<clever> use a different beep, not the busybox beep
<samueldr> looks like the only solution is writing your own beepy booper
<ashkitten> how do i build that into the initrd
<clever> ashkitten: thats fully automated
<clever> just ${pkgs.something}/bin/beep
lord| has quit [Read error: Connection reset by peer]
<pie_> i dont really know whats going on but wow you really have to mess with argv0 to get systemd to do a thing? that seems kind of super messed up
<ashkitten> oh!
<clever> (but it will leak an entire glibc into the initrd
<clever> )
<samueldr> nixos is amazingly good at resolving those things
<samueldr> I haven't verified whether that would fix the issue
<ashkitten> hmm isn't there a musl package set?
<ashkitten> i could use beep from that
m0rphism has quit [Ping timeout: 252 seconds]
<clever> > pkgsCross.muslStatic.hello
<{^_^}> attribute 'muslStatic' missing, at (string):253:1
<ajs124> why not just build a multi-file version of busybox?
<clever> ashkitten: you can also just tell nixos to copy the binary properly
<pie_> is that actually upstream now? re: muslstatic
lord| has joined #nixos
<pie_> coool i should try that sometime
<clever> ashkitten: one min
<pie_> hmm...just tried to add an overlay on top of an existing one for nixpkgs.overlays but it didnt how i wanted it to i think
<pie_> i guess expecting some sort of ordering there isnt going to be good
<{^_^}> [nixpkgs] @worldofpeace merged pull request #60681 → nixos/geoclue2: restructure module made by worldofpeace → https://git.io/fjZKC
<{^_^}> [nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fjlj3
<{^_^}> [nixpkgs] @worldofpeace closed pull request #45306 → nixos/geoclue2: make configurable, can whitelist applications → https://git.io/fAeoV
<ashkitten> it didn't work, anyways
<ashkitten> got killed
esmerelda has quit [Ping timeout: 255 seconds]
<infinisil> <pie_> packageoverrides doesnt seem to show up for example
<infinisil> That's not an option technically
<infinisil> The option is `nixpkgs.config`, which is just a random untyped blob
<infinisil> And packageOverrides is one attribute of that which nixpkgs looks at
<pie_> infinisil, ok maybe you're technically right but i dont have to explain why this doesnt feel good right?
<pie_> anyway thats just a sidenote from me right now. 'bout to crash
esmerelda has joined #nixos
<infinisil> That PR makes the config set partly typed at least :)
ng0 has quit [Quit: Alexa, when is the end of world?]
matix has joined #nixos
<pie_> cool
<pie_> this oxij guy seems too cool for irc :P
<pie_> damn distractions!
<ashkitten> so i am indeed setting arg0 properly, but it's still being killed
uranther has quit [Quit: Connection closed for inactivity]
stites has quit [Quit: ZNC 1.6.6+deb1ubuntu0.1 - http://znc.in]
freeman42x has quit [Read error: Connection reset by peer]
simukis__ has quit [Read error: Connection reset by peer]
simukis_ has joined #nixos
lovesegfault has joined #nixos
Glider_IRC_ has quit [Ping timeout: 246 seconds]
<pie_> huh. how do i fetch a pr from github? :/
<pie_> nvm shouldve just googled it
linarcx has quit [Quit: WeeChat 2.4]
rprije has joined #nixos
ashkitten has quit [Quit: Page closed]
<samueldr> pie_: also add `.diff` at the end of a PR url
<samueldr> might be useful when the actual history isn't needed
<pie_> samueldr, thanks thats probably actually what i wanted
mbrgm_ has joined #nixos
<samueldr> (don't use that in a nixpkgs contribution though)
<pie_> couldnt find it by clicking around
niksnut has quit [Ping timeout: 258 seconds]
ashkitten has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjlju
<ashkitten> clever: so yeah idk why it's not working... it's definitely got the correct arg0
matix has quit [Quit: :q!]
mbrgm has quit [Ping timeout: 246 seconds]
mbrgm_ is now known as mbrgm
otti0815 has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @tbenst opened pull request #61606 → nbdime: init at 1.0.6 → https://git.io/fjljV
otti0815 has joined #nixos
jgt has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to release-19.03: https://git.io/fjljr
drakonis1 has joined #nixos
jgt has quit [Ping timeout: 252 seconds]
goibhniu1 has joined #nixos
drakonis_ has quit [Ping timeout: 246 seconds]
goibhniu2 has joined #nixos
goibhniu1 has quit [Ping timeout: 255 seconds]
npmccallum has quit [Quit: npmccallum]
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
orivej has quit [Ping timeout: 244 seconds]
sir_guy_carleton has joined #nixos
acarrico has quit [Ping timeout: 259 seconds]
acarrico has joined #nixos
work_ has quit [Quit: Connection closed for inactivity]
<ashkitten> i can't actually find any sources that show where switch_root is killing processes
<ashkitten> also, why do we use switch_root and not pivot_root if we have an initrd instead of initramfs?
<ashkitten> and for that matter is there a reason to have an initrd and not initramfs?
acarrico has left #nixos [#nixos]
<{^_^}> [nixpkgs] @basvandijk merged pull request #61604 → nixos: add test for tinydns → https://git.io/fjlhV
<{^_^}> [nixpkgs] @basvandijk pushed 2 commits to master: https://git.io/fj8ee
<clever> ashkitten: i cant remember where i saw that either, and google doesnt like searching for special characters
JonReed has quit [Quit: Page closed]
<ashkitten> clever: yeah
<ashkitten> i don't even know where it's killing processes in the first place much less ignoring specific ones
<clever> ashkitten: if you run the command without &, and let it delay booting, does the tune stop correctly?
<ashkitten> clever: yeah, and i also tested and made sure killing beep prematurely in a booted system produces the same behavior (it does)
<kandinski> The last upgrade came with Wayland, which has broken a program I depend on (Synergy). Is there a way to keep using Xorg on 19.03?
alexherbo2 has joined #nixos