gchristensen changed the topic of #nixos to: NixOS 18.09 released https://discourse.nixos.org/t/1076 || 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
<mizmorYodh> well I'm obviously gonna choose the declarative way since it's pure and amazing haha! The only thing i'm not sure rn is how to integrate my dotfiles with all this
<jasongrossman> ,declarative
<{^_^}> There are multiple ways of managing declarative profiles. 1) Attrset, compatible with imperative use of nix-env https://git.io/fAQHW ; 2) buildEnv, providing more control over the paths that are linked into the profile https://git.io/fp0aU ; 3) home-manager, providing nixos-like config for your ~ https://github.com/rycee/home-manager
<jasongrossman> mizmorYodh: If that seems too complicated for dotfiles, I agree. I manage my dotfiles outside NixOS (but with very good backups).
<jasongrossman> mizmorYodh: The priority in NixOS has been OS-level stuff plus getting important packages to work. One day, NixOS will proably make something like home-manager official, but that hasn't happened yet.
rprije has joined #nixos
<mizmorYodh> jasongrossman: yea that would be pretty awesome! I found home-manager but i didnt if it was the way to go tbh! the thing is i find it awkward for many programs to input the whole config file in a long string directly into the configuration.nix
<mizmorYodh> also, i'd like to be able to use my dotfiles outside of nixos so i'd still like to keep the config files if possible
thc202 has quit [Ping timeout: 255 seconds]
<{^_^}> [nixpkgs] @ryantm merged pull request #56736 → remmina: 1.3.2 -> 1.3.3 → https://git.io/fhAdk
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fhAdQ
<ottidmes> mizmorYodh: you could point to those files from your configuration, it will just create symlinks to them
<jasongrossman> mizmorYodh: Right.
<jcob> gah. Im really annoyed by this rn. Ive been trying to set up znc for hours. All I want is nix to get out of the way and let me manage the config files. Does anyone have a setup like that that I could borrow? Thanks
<jasongrossman> mizmorYodh: The important thing to realise is that you can manage dotfiles however you like, while some system-wide things (especially system services) HAVE to be managed by NixOS.
<mizmorYodh> jasongrossman: yeah and that really makes sense! I think i'm gonna go the symlinks way
<mizmorYodh> ottidmes: how would one do this tho? im not that familiar with the nix langage yet and with the config options
<ottidmes> mizmorYodh: if you are OK and allowed by the relevant programs, the easiest way is to just put things in /etc, the other option would be to create a systemd service that creates them for you
xkapastel has quit [Quit: Connection closed for inactivity]
JonReed has quit [Quit: Page closed]
<suzu> sed: can't read azure/mgmt/compute/computemanagement.py: No such file or directory
<suzu> builder for '/nix/store/wbvwarpgp5wjfcl4jrfbabc3jc7r7xa7-python2.7-azure-mgmt-compute-4.4.0.drv' failed with exit code 2
<suzu> wtf?
<suzu> i'm trying to just do nix-env -i nixops
<ottidmes> suzu: do nix-env -f '<nixpkgs>' -iA nixops instead
<suzu> hmm ok
<suzu> whats the difference?
<mizmorYodh> ottidmes: hmm i see! so like for instance, since vim in installed as a system service, it's default config file will be in /etc, right? and then i just have to make that file point to the actual file i wanna use?
<ottidmes> mizmorYodh: yep
jluttine has quit [Ping timeout: 255 seconds]
<ottidmes> suzu: not much of a nix-env user myself, so probably someone as can give a better answer, but I believe nix-env -i nixops tries to evaluate the whole of nixpkgs filtering their names to determine if it matches nixops, while with -A short for --attr it will interpret the nixops argument as an attribute name and install that directly (what you want)
<mizmorYodh> ottidmes: ok sounds good!
<ottidmes> mizmorYodh: personally I still have something in place that installs certain config files in my $HOME directory, thinking that was the only way to do it, but I found out that all my cases are actually doable from /etc, since all (that I use anyway) always look at some location in /etc at some point
<noonien> do i use wrapProgram to wrap a python script? or is there something like wrapPythonProgram?
<mizmorYodh> ottidmes: ohhh ok nice! and since i'm the only one using my laptop, i dont really care putting my dotfiles directly there
<ottidmes> suzu: the -f (short for --file) points to the file defining the attrset you want to install something from, I just specified it explicitly, its necessary in my setup, but not in your probably, doesnt harm though
<ottidmes> mizmorYodh: right, and as a bonus your $HOME is somewhat cleaner
<suzu> seems to be necessary in mine
<suzu> why is this
<ottidmes> suzu: ah right, I think I remember
<ottidmes> suzu: I assume you use nix-channel?
<mizmorYodh> ottidmes: alright! thanks a lot :)
<suzu> yeah
<ottidmes> I think the default channel name is called nixpkgs, then nix-env -iA nixpkgs.nixops would have worked (or maybe the name is nixos, then its nix-env -iA nixos.nixops), check nix-channel --list I guess
<suzu> oh, i've got this nixos-small channel here too
<suzu> that must be it i guess..?
<suzu> ill rmeove it
<ottidmes> no
<ottidmes> thats not it
<suzu> oh
<suzu> ok
<suzu> idk
<suzu> wtf
<ottidmes> its just that nix-env by default uses ~/.nix-defexpr
<suzu> so it looks in the wrong place by default?
<ottidmes> no
<ottidmes> it needs to know which channel to use
<suzu> i see
<ottidmes> when not specifying a --file
<suzu> what is it doing by default?
jcob has quit [Remote host closed the connection]
<suzu> additionally, i can't upgrade nixops' nixpkgs wtf
sicklorkin has quit [Quit: Changing server]
<suzu> it only works with -I nixpkgs=https://github.com/nixos/nixpkgs-channels/archive/nixos-18.09.tar.gz
<ottidmes> I checked the source recently, it binds the channels directory to an attribute name, and its subdirectories as attribute names to (i.e. the channel names), so they become available as top-level attributes
<suzu> but i wnat to use 19.03
<suzu> and if i nixops deploy i get this
<suzu> error: 'mkOption' at /home/user/.nix-defexpr/channels/nixpkgs/lib/options.nix:30:5 called with unexpected argument 'options', at /nix/store/4lfs1751qc86lidq55x70g6ipzzwdgnk-nixops-1.6.1/share/nix/nixops/gce.nix:382:19
<ottidmes> ah, thats a somewhat recent change, seems like nixops 1.6.1 is not compatible with that change, not sure if there is a more recent version that has it fixed
<suzu> oh. so i can't use nixos 19.03?
<ottidmes> suzu: https://github.com/NixOS/nixops/issues/1086 (seems like they are aware)
<{^_^}> nixops#1086 (by delroth, 4 weeks ago, closed): nixops broken with master nixpkgs
<ottidmes> suzu: not yet it seems, with nixops anyway
<suzu> except it's not fixed
<ottidmes> as remarked by someone else, whom made another issue for it, so it will probably be fixed soon enough
<suzu> ok
<suzu> sad!
<suzu> :(
<ottidmes> yep, shit happens
<suzu> so i'd like to use this
<suzu> and it says it's in nixpkgs 19.03
<suzu> though i can't use that
<ottidmes> ah, I just started using it
<suzu> how do i workaround this?
<delroth> use nixopsUnstable
<ottidmes> you can just fetch it yourself locally
<suzu> is there something that can fetch it and import it?
<ottidmes> suzu: you can add it to an overlay and add it that way, or just add to the file your working with directly
<suzu> ah yeah that's what i wanted!
<suzu> didnt know you can wrap callpackage with a fetch
mbrgm has quit [Ping timeout: 240 seconds]
mbrgm_ has joined #nixos
mbrgm_ is now known as mbrgm
<ottidmes> suzu: it returns the out path, which points to https://github.com/siers/nix-gitignore/blob/master/default.nix and it is allowed to callPackage on a function rather than a file: https://github.com/NixOS/nixpkgs/blob/9fcbe8ef1725ce7c32f63429f4d5154dbf4a75ae/lib/customisation.nix#L110
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56739 → sdparm: 1.10 -> 1.11r320 → https://git.io/fhAFL
<suzu> thats very nice
<das_j> Is there a way to get system config variables via nix eval?
<das_j> something like config.services.nginx.enabled
leothrix has joined #nixos
<ottidmes> suzu: but ^ delroth gave you a solution for your nixops issue, you need to use nixopsUnstable, the person saying it was still broken was using stable nixops as well, and delroth is the author of the closed issue, so they should know best
<ottidmes> das_j: sure, just use with import <nixpkgs/nixos> { };
<ottidmes> das_j: nix eval '(with import <nixpkgs/nixos> { }; config.services.nginx.enable)'
<das_j> ottidmes: Aaah, thank you! That's what I needed
<suzu> how do i use nixopsUnstable?
<suzu> i feel like i have some hole in my basic knowledge of what is going on here
<suzu> i have to look at the source of things in nixpkgs like all the time
<ottidmes> suzu: nix-env -e nixops, nix-env -f '<nixpkgs>' -iA nixopsUnstable, probably
<suzu> oic
drakonis has quit [Ping timeout: 264 seconds]
<suzu> do you know how buildStackProject works?
<suzu> pkgs.haskell.lib.buildStackProject?
mizmorYodh has quit [Ping timeout: 256 seconds]
drakonis has joined #nixos
freeman42x has quit [Ping timeout: 258 seconds]
<ottidmes> there might be people around that do, I only use nix2cabal for my projects
<das_j> ottidmes: Is there also a way if I have something like this? ((import <nixpkgs/nixos>) { configuration = ./configuration.nix; }).system
<das_j> (it's not the local system)
<suzu> it's doing some shit i dont understand at all, and then dying with no error information
<suzu> ghc is a dep but stack then goes on and downloads it's own
<suzu> and then it exits with 'error 1'
<{^_^}> [nixpkgs] @strager opened pull request #56740 → kitty: support macOS → https://git.io/fhAFO
<suzu> Configuring GHC ...
<suzu> Received ExitFailure 1 when running
<boomshroom> Is it possible to tell GCC a different target from the system's config?
<ottidmes> das_j: if its just about config.services.nginx.enable than probably, but it would be much easier if you had access to the configuration, you really dont?
<das_j> ottidmes: I'm testing a module and I'd like to know whether it sets the proper variables
<boomshroom> Ie: tell nixos about a x86_64-linux-relibc target, but have it give something else like x86_64-linux-newlib and pretend that relibc is actually newlib?
mizmorYodh has joined #nixos
<ottidmes> das_j: sure, but my question to you is whether you only have like the out path of the system, or if on that other machine, you can also just access its config, <nixpkgs/nixos> should default to the default impure locations (NIXOS_CONFIG, <nixos-configuration>, or /etc/nixos/configuration.nix)
<ottidmes> ehh <nixos-config>
<das_j> ottidmes: I think this is it: (with import <nixpkgs/nixos> { configuration = ./configuration.nix; }; config.services.nginx.enable)
<ottidmes> das_j: yeah that is saying explicitly where the configuration can be found, if that is working, great, than I must have misunderstood your question when you showed: ((import <nixpkgs/nixos>) { configuration = ./configuration.nix; }).system
<das_j> I think it was the .system
<das_j> instead of .config
<ottidmes> das_j: yeah obviously :P but I thought that you somehow did not had access to .config, but only like the path produced by .system
<das_j> so .system is the out path?
<ottidmes> das_j: no, its a string like "x86_64-linux"
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56741 → shaarli: 0.10.2 -> 0.10.3 → https://git.io/fhAFc
<das_j> ottidmes: I think you mean .system.system
<ottidmes> das_j: I was right the first time, went to check, checked the wrong thing...
<das_j> ottidmes: Oh :/
<das_j> ottidmes++
<{^_^}> ottidmes's karma got increased to 16
drakonis_ has joined #nixos
leothrix has quit [Quit: ZNC 1.7.2 - https://znc.in]
<ottidmes> das_j: so its the "package" building your system, which if you print it, will print the output path of your system
leothrix has joined #nixos
<das_j> Ah, that makes sense
<das_j> This top-level stuff is still a big mystery to me
drakonis has quit [Ping timeout: 264 seconds]
silver_ has joined #nixos
Erasmus is now known as ErAsMuS
silver has quit [Ping timeout: 244 seconds]
jasongrossman has quit [Read error: Connection reset by peer]
jasongrossman has joined #nixos
jluttine has joined #nixos
lejonet has quit [Ping timeout: 255 seconds]
oldandwise has joined #nixos
lejonet has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56742 → sigil: 0.9.10 -> 0.9.12 → https://git.io/fhAF0
<oldandwise> been looking, couldn't find the familiar bluetooth tools in nixos: sdptool, hciconfig, hcitool.
<{^_^}> [nixpkgs] @dotlambda merged pull request #55383 → home-assistant: 0.86.4 -> 0.87.1 → https://git.io/fh9xM
<{^_^}> [nixpkgs] @dotlambda pushed 6 commits to master: https://git.io/fhAFE
<simpson> ,locate hcitool
<{^_^}> Found in packages: bashCompletion
<simpson> Hmm, that's questionable.
<simpson> ,locate hciconfig
<{^_^}> Found in packages: bashCompletion
novakovic has joined #nixos
<hyperfekt> that may be because hcitool is deprecated?
<suzu> Configuring GHC ...
<suzu> Received ExitFailure 1 when running
<suzu> i keep getting this when trying to use pkgs.haskell.lib.buildStackProject
<suzu> on a stack project.
<suzu> and there's no more information than that
<oldandwise> hyperfekt: nixos has latest bluez 5.50. I think, it's in the way bluez was bundled for nixos it skipped hcitool, sdptool, and hciconfig
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhAFz
scientist has joined #nixos
<ottidmes> suzu: how up to date are you? seems like there was a bug with buildStackProject: https://github.com/NixOS/nixpkgs/issues/55548
<{^_^}> #55548 (by zarybnicky, 2 weeks ago, closed): buildStackProject: backport #53618 to 18.09
<simpson> oldandwise: I'm reading https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/linux/bluez/default.nix but not seeing where that would happen.
<hyperfekt> simpson: I think upstream just doesn't include it anymore
<simpson> I see those tools in upstream git: https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/tools
<scientist> hello guys, I just finished creating my own custom keyboard layout but but some of the keys on my keyboard are not working, I think it is because of this: https://hastebin.com/epoyunohoz.rb , do you guys know a simple and easy way to fix this ?
<scientist> https://hastebin.com/epoyunohoz.rb , help please !!!
<boomshroom> `updateAutotoolsGnuConfigScriptsHook`?!
<boomshroom> I swear I keep finding tools that do exactly what I want.
<hyperfekt> simpson: check this: https://git.io/fhAF2 you have to explicitly enable it
<simpson> hyperfekt: Nice find. oldandwise ^
Makaveli7 has quit [Ping timeout: 250 seconds]
<scientist> this is my custom keyboard layout: https://hastebin.com/oxotayabac.xml , and this is the error I am getting https://hastebin.com/epoyunohoz.rb
<scientist> any ideas on how to fix this ?
<scientist> ?
<suzu> oh thats exactly my issue ottidmes !
<suzu> uhh how do i use this?
<simpson> scientist: Easiest fix is to stop doing a full custom layout, and just xmodmap the particular keys that you need.
<suzu> because i can't advance past 18.09 because of the nixops bug :(
<oldandwise> simpson: hyperfekt though am not sure if bluez move these to bluez-tools
<oldandwise> originally, sdptool hciconfig hcitool are in bluez
<suzu> err wait this patch was merged into 18.09 no?
<simpson> oldandwise: I don't see them in bluez-tools. It looks like they may simply not be compiled by default.
<suzu> so do i need to upgrade my 18.09..?
<{^_^}> [nixpkgs] @dotlambda opened pull request #56743 → pytjon.pkgs.wptserve: correctly fix build → https://git.io/fhAFr
<oldandwise> simpson: seems so. Wondered why. These tools were very handy
<scientist> simpson: my custom keyboard layout is done, it's a few of the keys are not working when pressed, I think it is because of this: https://hastebin.com/epoyunohoz.rb
<oldandwise> and there is no equivalent functionality offered by bluetoothctl
<justanotheruser> When I try to `nixos-rebuild switch`, it complains about the line `--set XORG_DRI_DRIVER_PATH ${super.mesa}/lib/dri \` https://paste.debian.net/plain/1071145 Why does it complain when I have mesa_noglu in environment.systemPackages
<{^_^}> [nixpkgs] @matthewbauer opened pull request #56744 → Update macOS to 10.12 → https://git.io/fhAFo
simukis has quit [Quit: simukis]
<suzu> ok i just upgraded nixops to unstable
<suzu> now i upgrade my local nix and maybe that'll fix everything
init_6 has joined #nixos
scientist has quit [Quit: WeeChat 2.2]
mobile_c has joined #nixos
<ottidmes> justanotheruser: its saying it in the error, because apparantly the mesa attribute does not exist on super
<ottidmes> justanotheruser: you probably want ${super.mesa_noglu}
kvda has joined #nixos
hamishmack has quit [Quit: Textual IRC Client: www.textualapp.com]
<{^_^}> [nixpkgs] @jtojnar opened pull request #56745 → ffado: port to qt5 → https://git.io/fhAFK
<ottidmes> justanotheruser: but probably better even is to use: /run/opengl-driver/lib/dri, which AFAIK will differ depending on what driver you have installed, which is what you most likely want
mobile_c has quit [Read error: Connection reset by peer]
leothrix has quit [Quit: ZNC 1.7.2 - https://znc.in]
leothrix has joined #nixos
<justanotheruser> you are right
leothrix has quit [Remote host closed the connection]
<justanotheruser> mesa_noglu fixed it
leothrix has joined #nixos
<justanotheruser> unfortunately now there appears to be an error that doesn't even reference my configuration.nix. I'm struggling to figure out what I'm supposed to be looking for https://paste.debian.net/plain/1071146
mizmorYodh has quit [Ping timeout: 256 seconds]
mobile_c has joined #nixos
iyzsong has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56746 → solr: 7.6.0 -> 7.7.0 → https://git.io/fhAFP
<ottidmes> seems like a bug, unless you did pass a custom xorgserver to it
jcob has joined #nixos
<jcob> do any of you use znc? I have had a heck of a time trying to set it up
leothrix has quit [Quit: ZNC 1.7.2 - https://znc.in]
<jcob> that is to say, I have been unable to set it up at all
leothrix has joined #nixos
<ottidmes> justanotheruser: you will have to wrap your call to overrideDerivation with makeOverridable
<jcob> leothrix: looks like you use znc... could tell from the exit messages. if ur on nixos any chance you might want to share your setup?
oldandwise has quit [Quit: leaving]
vk3wtf has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @emmanuelrosa opened pull request #56747 → skypeforlinux: -> → https://git.io/fhAFM
<ottidmes> justanotheruser: or if xorgserver is already made overridable, instead of calling lib.overrideDerivation call overrideDerivation directly on it, since that will do as the line I just linked for you
jtojnar has joined #nixos
<ottidmes> jcob: I still have it on my TODO myself, but I did had these two links under it as inspiration: http://ix.io/1vZg https://gist.github.com/alyssais/e756e730426a8b74664877c459ddaf45
<hyperfekt> is there any way to see the point where two derivations and their dependency trees diverge?
mobile_c has quit [Quit: Konversation terminated!]
<jcob> hm
<ottidmes> hyperfekt: nix-diff?
<justanotheruser> ottidmes: isn't overrideDerivation being directly called on it on line 5 already?
silver_ has quit [Read error: Connection reset by peer]
<hyperfekt> oh my god id didn't expect that to exist. awesome, thank you!
<ottidmes> justanotheruser: which line 5? you mean in xwayland.nix? if so, thats the problem, it used to exist, but the moment you call lib.overrideDerivation a new derivation gets made and those extra attributes get trimmed away, so they will have to be readded, which is what the overrideDerivation as attribute does for you automatically, but that page you linked just used the lib function directly, i.e. removing the
<ottidmes> attribute in the process
<justanotheruser> ottidmes: I mean in configuration.nix of https://stesie.github.io/2016/08/nixos-custom-keyboard-layout
<justanotheruser> actually l3 there
<justanotheruser> wait nvm
<boomshroom> `addAttrsToDerivation` Where was this when I was hacking on nixpkgs last?!
<suzu> ottidmes: i still get that bug which should be supposedly fixed
<ottidmes> justanotheruser: again lib.overrideDerivation is indeed the function, but what is expected in xwayland.nix is that the attribute overrideDerivation exists, which is a lambda that calls lib.overrideDerivation and ensures that the attribute is added again after the new derivation is made
<suzu> how do i confirm that i've updated my nixpkgs and such?
<{^_^}> #55548 (by zarybnicky, 2 weeks ago, closed): buildStackProject: backport #53618 to 18.09
<suzu> this issue btw
leothrix has quit [Quit: ZNC 1.7.2 - https://znc.in]
<ottidmes> justanotheruser: the passthru attribute exists for a reason, any time you recreate a derivation, it generates a fresh attribute set representing a derivation, all attributes strictly not part of the derivation will be removed in the process, which includes the lambdas/functions added by makeOverridable.
scientist has joined #nixos
<{^_^}> [nixpkgs] @andrew-d opened pull request #56748 → xournalpp: init at 1.0.8 → https://git.io/fhAFH
leothrix has joined #nixos
<scientist> this directory is unwritable: [tjg@tjg:~]$ nano /etc/X11/xkb/symbols/us , how do I make it writable ?
<clever> scientist: you dont, you make an override to change it at nixos-rebuild time, in an automated way
<clever> i believe it comes from services.xserver.xkbDir
technoidX has joined #nixos
jcob has quit [Remote host closed the connection]
<scientist> clever: thanksbut that link throws me a 404 error, I am running duck duck go do I need the google search engine to open the link ?
<ottidmes> why would you need a search engine to open a link?
<clever> scientist: its just a normal github path, it should work without using a search engine
mobile_c has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/9c74e20bb20 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @aanderse opened pull request #56749 → solr: 7.6.0 -> 7.7.1 → https://git.io/fhAF5
<clever> services.xserver.xkbDir = mkDefault "${pkgs.xkeyboard_config}/etc/X11/xkb";
<clever> scientist: so you want to write a derivation that will create a copy of ${pkgs.xkeyboard_config}/etc/X11/xkb with changes, and then put the path to that copy inside services.xserver.xkbDir
<suzu> k i'm trying again with a pinned nixpkgs
<scientist> clever: https://hastebin.com/oxotayabac.xml https://hastebin.com/epoyunohoz.rb , I got it to work it is just that some of the keys do not work when pressed and I am trying to figure out how to fix those warnings
<hyperfekt> ok, now how do i get the derivation a store path comes from?
<clever> hyperfekt: nix-store --query --deriver
<hyperfekt> y'all are gold
<hyperfekt> unknwoen deriver
<clever> scientist: ive not done much with xkb, so i dont know what those warnings mean
<hyperfekt> i think i've stumbled upon a hacky part of how nixos is built?
<scientist> clever: the keyboard works but for some reason the function keys like the volume key does not work, this is very strange.
<clever> scientist: try using a program like xev to debug what keycode they are sending
nornagon has quit [Quit: The Lounge - https://thelounge.github.io]
<suzu> ok im completely fucking stumped
<suzu> i can't get nix to build a stack project
<clever> suzu: what is the error?
<suzu> i'm using buildStackProject and it just dies with no good error
<suzu> Configuring GHC ...
<suzu> Received ExitFailure 1 when running
<clever> suzu: have you tried stack2nix?
<justanotheruser> ottidmes: thanks
<ottidmes> hyperfekt: that bit is broken if you ask me, nix-store --query --deriver is not working as you might expect
<suzu> yes but it doesn't support being run from nix clever
leothrix has quit [Quit: ZNC 1.7.2 - https://znc.in]
<hyperfekt> wth. - /libxml2+py-2.9.8.drv + libxml2+py-2.9.8.drv • The set of input sources do not match: builder.pl builder.pl
<clever> suzu: stack2nix must be ran outside of nix, and the result stored in git
slyfox has quit [Ping timeout: 245 seconds]
<hyperfekt> looks like my stdenv is different
<scientist> clever: ok I'll give that a try
<suzu> do i /have/ to do it that way clever ?
leothrix has joined #nixos
<suzu> it also doesn't like my stack.yaml, because i have some packages that are to be fetched directly from githu
<suzu> b
slyfox has joined #nixos
<suzu> and it just gives up and says 'no' on those
<clever> suzu: yeah, because it doesnt know what the hash is on the things fetched from github, and needs impure network access to figure that out
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/c8c521f0c03 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/c42f391c0c8 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<suzu> oh i see
<suzu> what can i do?
<suzu> i could fetch the packages and store them locally as submodules i suppose
<clever> suzu: either use stack2nix, or the new nix-tools, and commit the generated code to the repo
<suzu> nix-tools?
<hyperfekt> buildEnv = callPackage ../build-support/buildenv { }; # not actually a package --- so much for my instantiating it and inspecting with nix-diff
<suzu> hmmm okay
<clever> hyperfekt: yeah, its a function, that takes more args to create a package
<suzu> i'll wrestle with stack2nix then clever
<suzu> clever: do you know why haskell.lib.buildStackProject wont work in the first place?
<clever> suzu: not really
<suzu> lol ok
<suzu> i have spent several hours ripping my hair out
<suzu> :((
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56750 → src: 1.22 -> 1.24 → https://git.io/fhAFh
<hyperfekt> well the only things used in producing builder.pl are substituteAll and builtins.storeDir. is suspect the latter is the reason for my divergence, but i can't tell why
<clever> hyperfekt: can you diff the 2 builder.pl files?
<hyperfekt> clever: There's no difference, that's the weird thing
<scientist> infinisil: are you there, I could really use your help right now
<hyperfekt> clever: Except for the path, of course.
<hyperfekt> clever: wait, they have a different mode? could that be it?
<clever> hyperfekt: yeah, the mode is included in the hash i believe
<hyperfekt> so i gotta copy nixpkgs with the right mode to keep package equivalence? that doesn't seem like it should be :|
<clever> hyperfekt: the nix files expect +x files to remain +x'd
<hyperfekt> alright, i guess i found the fix then. thanks for your help!
<hyperfekt> clever++
<{^_^}> clever's karma got increased to 110
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56751 → squirrel-sql: 3.9.0 -> 3.9.1 → https://git.io/fhAbf
fusion809 has joined #nixos
scientist has quit [Quit: WeeChat 2.2]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #56676 → gitAndTools.git-hub: 1.0.1 -> 1.0.3 → https://git.io/fhAiL
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhAbt
<justanotheruser> I'm still working on this file. Now I'm stuck on this error: `cannot coerce a function to a string, at /etc/nixos/russian-dvorak.nix:129:27` https://paste.debian.net/plain/1071153
<boomshroom> Sometimes I get frustrated with how fixed nixpkgs and gnu are, and other times I get amazed by how customisable it all is.
<hyperfekt> oh my god that did it
<hyperfekt> the derivations are almost identical
<hyperfekt> i cant believe i did it, im so hyped right now
<hyperfekt> thank you clever (and also ottidmes), i would've been puzzled for ages
<hyperfekt> I now have an option that I can point to a list of patch files and that will change the source of NixOS that I got via nix-channel and build my system with that
<ottidmes> justanotheruser: maybe paste that russian-dvorak.nix file? you probably have not fully applied a function (i.e. given it all its arguments)
<justanotheruser> ottidmes: thats what the link is
<ottidmes> justanotheruser: thats a diff though, how am I to know what line 129 is?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56752 → star: 2.7.0a -> 2.7.0c → https://git.io/fhAbO
<justanotheruser> ottidmes: no it's my .nix file
<boomshroom> Sure I can't get gcc to acknowledge the existence of relibc, but Nix just lets me pass a different triple with a side note to use relibc.
<justanotheruser> containing a diff in the `patches` attribute
work_ has quit [Quit: Connection closed for inactivity]
<ottidmes> justanotheruser: ah my bad, am too used to syntax highlighting
<boomshroom> Got past the configure phase!
<justanotheruser> np
tom39291 has quit [Quit: WeeChat 2.2]
<ottidmes> justanotheruser: how about changing it to this line: xkeyboard_config_dvp = super.xorg.xkeyboardconfig.overrideDerivation (old: {
<{^_^}> [nixpkgs] @ryantm closed pull request #56746 → solr: 7.6.0 -> 7.7.0 → https://git.io/fhAFP
leothrix has quit [Quit: ZNC 1.7.2 - https://znc.in]
<Ashy> oh, qutebrowser appears to fail to build on unstable atm
leothrix has joined #nixos
mizmorYodh has joined #nixos
slack1256 has joined #nixos
<mizmorYodh> I set the boot.loader.timeout option to null so that the boot screen shows indefinitely but it doesn't display at all. Any idea why? I tried setting it to 30 and it worked but when it is set to null, it just skip the boot screen and it chooses the current generation
<jasongrossman> Ashy: Refuses to build? Isn't there a cached binary for it?
<ottidmes> mizmoryodh: you probably want to set it to 0
<Ashy> `nix-shell -p qutebrowser` fails and has sed errors in what looks like a patching step
<jasongrossman> Ashy: I see.
<Ashy> related to azure-mgmt-storage and azure-mgmt-resourcemanager
<Ashy> does that replicate for you?
<jasongrossman> Ashy: Testing it now.
wedens has joined #nixos
<justanotheruser> ottidmes: unfortunately that brings me back to this error https://paste.debian.net/plain/1071155
<jasongrossman> Ashy: When I do nix-shell -p qutebrowser, it downloads the cached binary.
<clever> jasongrossman: your trying to call overrideAttrs on something that lacks overrideAttrs
<mizmorYodh> ottidmes: "Timeout (in seconds) until loader boots the default menu item. Use null if the loader menu should be displayed indefinitely." that's what it says in the option description tho :( haha
<jasongrossman> clever: Did you mean to reference me?
leothrix has quit [Quit: ZNC 1.7.2 - https://znc.in]
<clever> jasongrossman: meant to say justanotheruser
<clever> mizmoryodh: grub or systemd?
<Ashy> jasongrossman: i did also just run a `sudo nixos-rebuild switch --upgrade` which is where i originally saw the error occur
leothrix has joined #nixos
<mizmorYodh> clever: systemd
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56753 → streamlink: 0.14.2 -> 1.0.0 → https://git.io/fhAbn
<jasongrossman> Ashy: I'm testing that now.
<justanotheruser> clever: I thought that was why I needed to wrap it in lib.makeOverridable (args:
<justanotheruser> (see paste)
<clever> justanotheruser: makeOverridable adds .override, not overrideAttrs
<{^_^}> [nixpkgs] @ryantm merged pull request #56749 → solr: 7.6.0 -> 7.7.1 → https://git.io/fhAF5
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fhAbc
<clever> mizmoryodh: systemd entirely ignores the timeout
<clever> mizmoryodh: wiat no, its in the a certain attrset
<ottidmes> justanotheruser: maybe try this? xkeyboard_config_dvp = lib.makeOverridable (lib.overrideDerivation super.xorg.xkeyboardconfig (old: {
<jasongrossman> Ashy: But I still can't think why it's building for you, rather than using the binary.
<clever> mizmoryodh: so it will either write "timeout 30" or "timeout " to your loader.conf file
mobile_c has quit [Quit: Konversation terminated!]
<jasongrossman> Can anyone think of why Nix might be building qutebrowser for Ashy, even though there's a good binary using the latest derivation in the cache?
<clever> jasongrossman: any overrides in config.nix?
<jasongrossman> Ashy: ^
<justanotheruser> ottidmes: as recommended, it looks like this now https://paste.debian.net/plain/1071157 however, I am still getting the error `cannot coerce a function to a string, at /etc/nixos/russian-dvorak.nix:131:27`
<Ashy> not that i know of, i havent dug into overrides yet
<ottidmes> Ashy: any overlays?
<Ashy> ah, i have an overlay for vagrant
<mizmorYodh> clever: as i understand it, if i set the timeout to null, it will be set to an empty string, and if it's set to an empty string it will never use the timeout attribute and take the default generation, no?
noonien has quit [Quit: Connection closed for inactivity]
<clever> mizmoryodh: depends on what systemd itself will do when you have "timeout " in the config file
<ottidmes> otherwise you could pin nixpkgs to a commit that has it in the cache for sure, or get the .drv. somehow else, and compare your qutebrowser .drv with that of the cache via nix-diff
dramforever has joined #nixos
<clever> mizmoryodh: you can also read the loader.conf in /boot to confirm its doing that
<mizmorYodh> clever: timeout is not specified in the file, which makes sense since the line of code you linked said that if the @timeout@ value != "", it will write the timeout value and in my case, it is equal to "" since i specified null
<clever> ah, missed that if
<clever> then i would expect it to not have a timeout
<mizmorYodh> clever: idk how systemd-boot timeout works, im gonna go read on that rn
<mizmorYodh> clever: "timeout – menu timeout in seconds before the default entry is booted. If this is not set, the menu will only be shown on Space key (or most other keys actually work too) press during boot."
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/4c0be408155 (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
<clever> so it wont have any timeout, and will boot immediately, if you not holding space
mobile_c has joined #nixos
<ottidmes> mizmoryodh: ah my bad, apparantly -1 is indefinitely: "A timeout of ‘0’ means to boot the default entry immediately without displaying the menu; a timeout of ‘-1’ (or unset) means to wait indefinitely."
counting1 has joined #nixos
<mizmorYodh> clever: yeah that makes sense haha
<{^_^}> [nixpkgs] @dtzWill opened pull request #56754 → mkfontscale: 1.1.3 -> 1.2.0 → https://git.io/fhAb4
<mizmorYodh> ottidmes: thanks a lot! i'll put that value
leothrix has quit [Quit: ZNC 1.7.2 - https://znc.in]
<pie___> is it possible to do something like ./some_file lazily so that I dont get an error if the file doesnt exist_
<pie___> ?
<clever> pie___: one min
leothrix has joined #nixos
<pie___> it would be fine if i could just check later with lib.pathExists or something
<pie___> hm weird
* pie___ checks his code
<mizmorYodh> clever: I guess i could submit a change to the doc if thats possible? Cause the description isnt accurate for systemd-boot
<clever> mizmoryodh: yeah, docs should be updated
countingsort has quit [Ping timeout: 255 seconds]
<pie___> oh i think im running into the error somewhere else >.<
<pie___> clever, i substitute the path into a lisp file:
<pie___> (when (file-exists-p "${userPreloadScript}") (load "${userPreloadScript}"))
<{^_^}> [nixpkgs] @dtzWill opened pull request #56755 → xdm: 1.1.11 -> 1.1.12 → https://git.io/fhAbE
<mizmorYodh> clever: ok will do!
<pie___> im not sure if this can work like i want it
<{^_^}> [nixpkgs] @dtzWill opened pull request #56756 → boehmgc: 8.0.2 -> 8.0.4 → https://git.io/fhAbz
<clever> pie___: you have to test it at nix time if you want it copied into the nix store
<clever> pie___: if you dont want it copied, you can use toString to remove the path magic
<pie___> yeah, and i guess nix wouldnt be able to synthesize the path either since it doesnt know the contents of the file yet
<{^_^}> [nixpkgs] @dtzWill opened pull request #56757 → libsecret: 0.18.7 -> 0.18.8 → https://git.io/fhAbg
<pie___> E_CONTRADICTION, /me back to the drawing board :p
<pie___> clever, i dont suppose I can just get the path relative to the current nix file
<clever> pie___: not easily
<pie___> ij
<pie___> * ok
mobile_c has quit [Read error: Connection reset by peer]
<aanderse> anyone else using kde and have wine installed and when they click on links in konversation an infinite loop of wine programs try to open and almost crash your system unless you kill all wine processes?
<aanderse> -_-
leothrix has quit [Quit: ZNC 1.7.2 - https://znc.in]
leothrix has joined #nixos
mobile_c has joined #nixos
<pie___> aanderse, 0_0
<aanderse> once in a while i forget that happens
<aanderse> so i click a link
<aanderse> then i remember
<aanderse> kill the processes
<aanderse> and right click the link
<aanderse> and select "open with" and choose firefox
mizmorYodh has quit [Quit: Page closed]
hyperfekt has quit [Quit: Page closed]
leothrix has quit [Quit: ZNC 1.7.2 - https://znc.in]
leothrix has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56758 → syslogng: 3.19.1 -> 3.20.1 → https://git.io/fhAbD
<Ashy> hmm, is compiz available on nixos?
<clever> ,locate bin compiz
<{^_^}> Couldn't find in any packages
<clever> weird, it was in nixpkgs
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56759 → sysprof: 3.30.2 -> 3.31.90 → https://git.io/fhAbH
<Ashy> ah compton is what i was thinking of
<dramforever> The compiz window manager and package was removed. The system support had been broken for several years.
<dramforever> That was release notes for 17.09
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56760 → sysvinit: 2.93 -> 2.94 → https://git.io/fhAbQ
dramforever has quit [Quit: Leaving]
mobile_c has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @delroth opened pull request #56761 → pythonPackages.protobuf: propagate native pkgs.protobuf input → https://git.io/fhAbF
<delroth> ^ if anyone has strong opinions on propagating build inputs, I'm curious about your thoughts on that PR
ottidmes has quit [Ping timeout: 245 seconds]
<jasongrossman> Ashy: NOW I have the same problem with qutebrowser.
<{^_^}> [nixpkgs] @worldofpeace closed pull request #56759 → sysprof: 3.30.2 -> 3.31.90 → https://git.io/fhAbH
<jasongrossman> Ashy: The derivation in nixos-unstable is broken.
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56763 → gnutar: 1.31 -> 1.32 → https://git.io/fhANe
<slack1256> on the fetchFromGithub function, the sha256 arguments to pass is of the tar.gz file it will download?
<infinisil> slack1256: Nope, it's of the unpacked contents
hamishmack has joined #nixos
hamishmack has quit [Client Quit]
<clever> slack1256: to be specific, its the sha256 of the NAR of the unpacked contents
<samueldr> ,tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<samueldr> if it isn't because you want to independently double-verify
pie__ has joined #nixos
stepcut has joined #nixos
leothrix has quit [Quit: ZNC 1.7.2 - https://znc.in]
leothrix has joined #nixos
pie___ has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #56747 → skypeforlinux: -> → https://git.io/fhAFM
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhANG
hamishmack has joined #nixos
<pie__> is there a way to construct a derivation as if i was constructing a nix shell so that i can get environment variables and stuff as well?
<pie__> implicitly i mean. so i would like to get an executable i can run that would behave as if it was whichever thing, in a nix shell with some list of packages
<pie__> (usually i would just use a nix shell)
vk3wtf has joined #nixos
gspia has joined #nixos
<pbb> Is there a way to use packageOverrides to replace a kernel module in all linuxPackages?
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/c8c521f0c03 (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<slack1256> infinisil, clever: that explains a lot
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56764 → tmuxp: 1.5.0a1 -> 1.5.1 → https://git.io/fhANW
<slack1256> ,tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<slack1256> Hahaha so it is a pretty common question
<boomshroom> I can't remember how many digits to use, so I just copy the hash of another package and change 1 character
<{^_^}> [nixpkgs] @RubenAstudillo opened pull request #56765 → stepmania: 5.0.12 -> 5.1.0-b2 → https://git.io/fhAN4
leothrix has quit [Ping timeout: 245 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/508ad0efaa1 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
vk3wtf has quit [Ping timeout: 264 seconds]
leothrix has joined #nixos
slack1256 has quit [Remote host closed the connection]
<pie__> i usually do somehting like xclip -i -selection clipboard <(echo a | sha256sum)
<pie__> :/
<pie__> or rather, i should have that relatively accessible
<infinisil> Oh, how about adding a lib.nullHash
<infinisil> > nullHash = concatStrings (genList (_: "0") 52)
<{^_^}> error: undefined variable 'concatStrings' at (string):119:13
<infinisil> > nullHash = lib.concatStrings (lib.genList (_: "0") 52)
<{^_^}> nullHash defined
<infinisil> > nullHash
<{^_^}> "0000000000000000000000000000000000000000000000000000"
<infinisil> Then you could just do `fetchurl { url = "https://..."; sha256 = lib.nullHash; }`
<Ashy> jasongrossman: ok, at least it's not just me
<{^_^}> [nixpkgs] @r-ryantm opened pull request #56766 → twa: 1.7.1 -> 1.8.0 → https://git.io/fhANP
<worldofpeace> infinisil having a `null` hash is only useful for tofu, but I kinda like the idea of having that in `lib`.
leothrix has quit [Quit: ZNC 1.7.2 - https://znc.in]
stepcut has quit [Remote host closed the connection]
leothrix has joined #nixos
stepcut has joined #nixos
stepcut has quit [Read error: Connection reset by peer]
stepcut_ has joined #nixos
stepcut_ has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
<pie__> so I have this https://bpaste.net/show/006025e1f3f3 , spacemactGit' on line 18 gets copied to a user dir on line 58
<pie__> when i look at the repo with git status, for some reason everything is listed as having been deleted/modified
<pie__> anyone know why / how I can fix it?
<pie__> ok actually its not a problem with my cp stuff
<pie__> its already like that in the original cloned repo
stepcut has joined #nixos
<pie__> correction, everything is listed as deleted and they show up under untracked files
<{^_^}> [nixpkgs] @kalbasit opened pull request #56767 → terraform_0_12: 0.12.0-alpha4 -> 0.12.0-beta1 → https://git.io/fhANF
<Izorkin> Not work this wariant with optionalString mainCfg.enableRootless - https://pastebin.com/mvpVgdpz How to fix? error syntax error, unexpected ID, expecting '.' or '=', at ../apache-httpd/default.nix:753:11
endformationage has quit [Quit: WeeChat 2.3]
leothrix has quit [Quit: ZNC 1.7.2 - https://znc.in]
leothrix has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
leothrix has quit [Quit: ZNC 1.7.2 - https://znc.in]
stepcut has quit [Ping timeout: 244 seconds]
leothrix has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #nixos
palo1 has joined #nixos
palo has quit [Ping timeout: 250 seconds]
palo1 is now known as palo
b has joined #nixos
drakonis1 has quit [Quit: WeeChat 2.4]
invokesus has joined #nixos
orivej has joined #nixos
leothrix has quit [Quit: ZNC 1.7.2 - https://znc.in]
leothrix has joined #nixos
work_ has joined #nixos
<{^_^}> [nixpkgs] @FRidh merged pull request #56761 → pythonPackages.protobuf: propagate native pkgs.protobuf input → https://git.io/fhAbF
<{^_^}> [nixpkgs] @FRidh pushed commit from @delroth to master « pythonPackages.protobuf: propagate native pkgs.protobuf input »: https://git.io/fhAAW
<{^_^}> [nixpkgs] @FRidh pushed commit from @delroth to staging-19.03 « pythonPackages.protobuf: propagate native pkgs.protobuf input »: https://git.io/fhAA8
<{^_^}> [nixpkgs] @FRidh merged pull request #56743 → pytjon.pkgs.wptserve: correctly fix build → https://git.io/fhAFr
<{^_^}> [nixpkgs] @FRidh pushed 2 commits to master: https://git.io/fhAAB
<{^_^}> [nixpkgs] @FRidh pushed commit from @dotlambda to staging-19.03 « python.pkgs.wptserve: relax h2 version constraint »: https://git.io/fhAA0
<{^_^}> [nixpkgs] @f--t opened pull request #56769 → Fix/rpy2 build → https://git.io/fhAAE
<{^_^}> [nixpkgs] @f--t opened pull request #56770 → pyqt4: fix nativeBuildInputs → https://git.io/fhAAu
invokesus has quit [Ping timeout: 256 seconds]
petersjt014 has joined #nixos
ErAsMuS has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @vcunat pushed 4 commits to release-18.09: https://git.io/fhAA6
pointfourone has joined #nixos
<teto> ,locate FlexLexer.h
<{^_^}> Found in packages: flex, flex_2_5_35
<{^_^}> [nixpkgs] @FRidh pushed to master « wxPython: fix build »: https://git.io/fhAAi
<{^_^}> [nixpkgs] @FRidh pushed to staging-19.03 « wxPython: fix build »: https://git.io/fhAAP
leothrix has quit [Quit: ZNC 1.7.2 - https://znc.in]
leothrix has joined #nixos
pointfourone has left #nixos [#nixos]
<{^_^}> [nixpkgs] @FRidh closed pull request #56770 → pyqt4: fix nativeBuildInputs → https://git.io/fhAAu
<{^_^}> [nixpkgs] @etu merged pull request #56735 → fish: 3.0.1 -> 3.0.2 → https://git.io/fhAdf
<{^_^}> [nixpkgs] @etu pushed 2 commits to master: https://git.io/fhAA1
<{^_^}> [nixpkgs] @etu pushed 2 commits to master: https://git.io/fhAAS
<{^_^}> [nixpkgs] @etu merged pull request #56764 → tmuxp: 1.5.0a1 -> 1.5.1 → https://git.io/fhANW
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @etu merged pull request #56734 → gitea: 1.7.1 -> 1.7.3 → https://git.io/fhA5j
<{^_^}> [nixpkgs] @etu pushed 2 commits to master: https://git.io/fhAAA
<{^_^}> [nixpkgs] @pSub merged pull request #56692 → pugixml: Fix pkg-config file installation and use fetchFromGitHub → https://git.io/fhAXP
<{^_^}> [nixpkgs] @pSub pushed 3 commits to master: https://git.io/fhAAh
<{^_^}> [nixpkgs] @etu merged pull request #56654 → flmsg: 4.0.8 -> → https://git.io/fhAKq
<{^_^}> [nixpkgs] @etu pushed 2 commits to master: https://git.io/fhAxv
<{^_^}> [nixpkgs] @FRidh pushed 2 commits to master: https://git.io/fhAxI
<{^_^}> [nixpkgs] @etu merged pull request #56644 → feh: 3.1.2 -> 3.1.3 → https://git.io/fhAos
<{^_^}> [nixpkgs] @etu pushed 2 commits to master: https://git.io/fhAxq
<{^_^}> [nixpkgs] @etu merged pull request #56766 → twa: 1.7.1 -> 1.8.0 → https://git.io/fhANP
<{^_^}> [nixpkgs] @etu pushed 2 commits to master: https://git.io/fhAxs
<Myrl-saki> ,locate nvidia-settings
<{^_^}> Found in packages: zafiro-icons, maia-icon-theme, moka-icon-theme, paper-icon-theme, iconpack-obsidian, papirus-icon-theme, numix-icon-theme-circle, numix-icon-theme-square
<{^_^}> [nixpkgs] @FRidh merged pull request #56577 → Add qtwebview to 5.11 and 5.12 packages → https://git.io/fhAWf
<{^_^}> [nixpkgs] @FRidh pushed 2 commits to master: https://git.io/fhAxc
yl has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @FRidh merged pull request #56751 → squirrel-sql: 3.9.0 -> 3.9.1 → https://git.io/fhAbf
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « squirrel-sql: 3.9.0 -> 3.9.1 »: https://git.io/fhAxR
<{^_^}> [nixpkgs] @FRidh merged pull request #56738 → rpm-ostree: 2019.1 -> 2019.2 → https://git.io/fhAdK
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « rpm-ostree: 2019.1 -> 2019.2 »: https://git.io/fhAx0
<{^_^}> [nixpkgs] @FRidh merged pull request #56604 → bspwm: 0.9.6 -> 0.9.7 → https://git.io/fhAgy
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « bspwm: 0.9.6 -> 0.9.7 »: https://git.io/fhAxE
<{^_^}> [nixpkgs] @FRidh merged pull request #56741 → shaarli: 0.10.2 -> 0.10.3 → https://git.io/fhAFc
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « shaarli: 0.10.2 -> 0.10.3 »: https://git.io/fhAxu
<{^_^}> [nixpkgs] @FRidh merged pull request #56742 → sigil: 0.9.10 -> 0.9.12 → https://git.io/fhAF0
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « sigil: 0.9.10 -> 0.9.12 »: https://git.io/fhAxz
<{^_^}> [nixpkgs] @FRidh merged pull request #56750 → src: 1.22 -> 1.24 → https://git.io/fhAFh
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « src: 1.22 -> 1.24 »: https://git.io/fhAxg
<{^_^}> [nixpkgs] @FRidh merged pull request #56616 → CoinMP: 1.8.3 -> 1.8.4 → https://git.io/fhAaC
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « CoinMP: 1.8.3 -> 1.8.4 »: https://git.io/fhAx2
<{^_^}> [nixpkgs] @FRidh merged pull request #56611 → ckbcomp: 1.188 -> 1.189 → https://git.io/fhA27
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « ckbcomp: 1.188 -> 1.189 »: https://git.io/fhAxa
<{^_^}> [nixpkgs] @FRidh merged pull request #56610 → chirp: 20190201 -> 20190206 → https://git.io/fhA2w
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « chirp: 20190201 -> 20190206 »: https://git.io/fhAxw
<teto> I am upgrading wireshark to 3.0.0, it doesn't support gtk anymore. Should I throw an exception for wireshark-gtk pacakge ?
<{^_^}> [nixpkgs] @FRidh merged pull request #56584 → ams-lv2: 1.2.1 -> 1.2.2 → https://git.io/fhA8p
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « ams-lv2: 1.2.1 -> 1.2.2 »: https://git.io/fhAxr
<{^_^}> [nixpkgs] @FRidh merged pull request #56583 → aescrypt: 3.13 -> 3.14 → https://git.io/fhA8G
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « aescrypt: 3.13 -> 3.14 »: https://git.io/fhAxo
<clever> teto: i would just delete the attribute
morr_ is now known as morr
<edef> ,locate share/pkgconfig/gee.pc
<edef> ,locate share/pkg-config/gee.pc
<{^_^}> Couldn't find in any packages
<{^_^}> Couldn't find in any packages
<edef> ,locate share/pkgconfig/libgee.pc
<{^_^}> Couldn't find in any packages
ninjin has quit [Ping timeout: 256 seconds]
b has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @FRidh pushed 289 commits to staging-next: https://git.io/fhAxy
<{^_^}> [nixpkgs] @FRidh opened pull request #56772 → Staging next → https://git.io/fhAxS
<{^_^}> [nixpkgs] @eonpatapon closed pull request #56037 → nixos/prometheus: support v2 → https://git.io/fhdCb
<{^_^}> [nixpkgs] @FRidh pushed 234 commits to staging: https://git.io/fhAxH
<clever> edef: you can also install nix-index and run nix-locate to search locally
<edef> i probably oughta
<edef> but edef uptime is a bit long and i knew the IRC approach would save me the effort of doing so
<clever> edef: the bot is also in #bottest , so you dont spam up the main room
iyzsong has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @7c6f434c merged pull request #56757 → libsecret: 0.18.7 -> 0.18.8 → https://git.io/fhAbg
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/fhAxd
<{^_^}> [nixpkgs] @bricewge opened pull request #56773 → solarc: init at 1.0.2 → https://git.io/fhAxF
init_6 has quit [Ping timeout: 255 seconds]
iyzsong has joined #nixos
init_6 has joined #nixos
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/e2e84cc1f0d (from 73 minutes ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<Myrl-saki> Hm.
<Myrl-saki> [myrl@myrl:~]$ steam-run groups
<Myrl-saki> users nogroup
Ariakenom has joined #nixos
<clever> Myrl-saki: i prefer just plain `id`
<Myrl-saki> [myrl@myrl:~]$ steam-run id
<Myrl-saki> uid=1000(myrl) gid=100(users) groups=100(users),65534(nogroup)
<Myrl-saki> Same thing.
<Myrl-saki> I need to keep 26(video)
ixxie has joined #nixos
<Myrl-saki> I'm thinking maybe this is related. spit("/proc/self/gid_map", "%d %d 1", gid, gid);
<clever> Myrl-saki: in order for chroot to work without root, you must also make a user namespace
<clever> which yeah, can cause permission problems like that
<Myrl-saki> Hm.
kisik21 has joined #nixos
<Myrl-saki> bash-4.4$ echo "26 26 1" >> /proc/self/gid_map
<Myrl-saki> bash: echo: write error: Operation not permitted
<Myrl-saki> :C
<clever> its a special write-once file
<Myrl-saki> Ah.
<Myrl-saki> Does that mean I should patch chrootenv.c?
<clever> so a malicious program cant just give itself more perms
<clever> probably
<kisik21> Any tips on how to create a hybrid bootable NixOS system without burning a read-only ISO? The use case is a self-updatable self-contained flash drive with NixOS that can be plugged into both BIOS and UEFI-based systems.
<clever> kisik21: just do a normal nixos-install against a usb stick, set the removable efi flag, and make a bios boot partition
<kisik21> what about Secure Boot? is something like shim would be present or would I need to enroll my own keys?
<kisik21> How does NixOS handle Secure Boot anyway?
<clever> kisik21: last i checked, nixos doesnt really support secureboot, so you have to disable it in the firmware config
<kisik21> oh crap
<kisik21> I guess if I want secure boot I'll have to manage EFI system partition myself
ixxie has quit [Ping timeout: 246 seconds]
<clever> with my laptop, i have the option to whitelist an efi binary
<clever> so i can allow a given grub.efi file, without having to manage any keypairs
<clever> but grub itself, doesnt support verifying the config or kernel, so it wont really do any good, since anybody can modify /boot maliciously
<clever> as long as the grub itself is unmodified
<kisik21> I'm actually ok with enrolling my own keys if that's what I need to do, the laptop is my mom's and she probably won't protest since Windows should still boot...
<kisik21> she often does Windows-only work (M$ Office)
orivej has quit [Ping timeout: 250 seconds]
<kisik21> I'm an UEFI noob though, never worked with UEFI aside from disabling secure boot on an Intel Atom-based tablet to (unsuccessfully) boot Linux
<clever> boot.loader.grub.efiInstallAsRemovable = true;
<clever> if you use that option, grub will use a special filename, meant for removable media
<clever> which UEFI can then boot, without having the right things in the efi vars
<clever> without that, you must setup efi vars before you can boot a given os
<clever> and you can only configure efi vars if you boot via efi
<Myrl-saki> clever: I don't think this is possible anymore. :/
<kisik21> does GRUB support f2fs?
<clever> kisik21: dont see it listed in /boot/grub/i386-pc
<clever> kisik21: but grub only has to support the /boot fs, linux deals with /
<kisik21> oh right and /boot could be merged with ESP
<kisik21> arch linux does that IIRC
<clever> by default, nixos wants /boot to be the ESP, and its formated fat32
<clever> but, if you set boot.loader.efi.efiSysMountPoint = "/boot/EFI";, then you can make /boot/ ext4, (or even a subdir of /)
<clever> and /boot/EFI will be the fat32 ESP
<kisik21> nah, I'm used to /boot meaning a boot partition, whatever it should be for the current system (bootloader and ESP for EFI, just bootloader for legacy)
<clever> you could even have a seperate fs for / /boot and /boot/EFI, if you wanted
ericsagnes has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @FRidh closed pull request #56619 → pythonPackages.odfpy: fix build → https://git.io/fhAaj
<{^_^}> [nixpkgs] @FRidh closed pull request #55897 → python.pkgs.hypothesis 3.79.3 -> 4.5.11 → https://git.io/fh5n8
<{^_^}> [nixpkgs] @FRidh pushed 0 commits to python-unstable: https://git.io/fhApq
<{^_^}> [nixpkgs] @worldofpeace opened pull request #56774 → nixos/mate: cleanup → https://git.io/fhAp3
<Myrl-saki> I giff up. I'll just make my GPU owned by users lmao.
<clever> Myrl-saki: as long as no attacker is a member of the users group, thats fine
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/3c4c8b65001 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
work_ has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @bendlas closed pull request #52550 → Update pythonPackages.azure-mgmt-* → https://git.io/fhefY
<Myrl-saki> This is actually way more confusing.
<Myrl-saki> `steamrun optirun glxgears` works
<Myrl-saki> even without my changes
<Myrl-saki> Buuut
<Myrl-saki> steam-run optirun '/home/myrl/.local/share/Steam/steamapps/common/Portal 2/portal2.sh' -game portal2 -steam
<Myrl-saki> X Error of failed request: BadValue (integer parameter out of range for operation)
<Myrl-saki> Major opcode of failed request: 151 (GLX)
<Myrl-saki> Minor opcode of failed request: 24 (X_GLXCreateNewContext)
<clever> Myrl-saki: what about the xserver logs?
<kisik21> clever: I have disabled Secure Boot temporarily, because the hassle of enrolling my own keys seems to be... too much for now. And with risk of breaking Windows.
<clever> kisik21: my laptop appears to have full control of the secureboot cfg, including just whitelisting a binary without signing
<Myrl-saki> Says nothing.
<clever> kisik21: my desktop, only has on or off, and "on" is M$ keys only
<Myrl-saki> tail -f /var/log/X.0.log
<Myrl-saki> -f is follow, right?
<clever> Myrl-saki: strace xserver?
<Myrl-saki> Oh boi
<kisik21> clever: How do you manage NixOS booting on your laptop?
<clever> yeah, lol
<kisik21> do you sign kernels?
<Myrl-saki> That's gonna be a bit complicated lmao
<clever> kisik21: i whitelisted grub.efi, but thats it
<Myrl-saki> I'll have to change the display-manmager module, right?
<clever> kisik21: and grub's config isnt signed, so anybody could mess with that cfg
<kisik21> ugh totally defeats the purpose of secure boot
<clever> Myrl-saki: you can attach to a pid thats already running, strace -p <pid>
<clever> kisik21: grub would need to be modified to verify future things, and have a cert baked into it
<clever> kisik21: i think systemd-boot may have better options
<kisik21> how about having grub.cfg on an encrypted partition? i.e. separate /boot from ESP
<kisik21> would that be more secure?
<kisik21> is it even possible?
<kisik21> I launched GRUB with cryptodisk one time on my NixOS system by mistake
<clever> kisik21: grub does support crypto, but i dont know how it deals with encrypted /boot/
<kisik21> It asks for password.
<Myrl-saki> clever: I think I know what's wrong now.
<Myrl-saki> Wait.
<Myrl-saki> Yeah.
<Myrl-saki> primusrun glxgears
<Myrl-saki> X Error of failed request: BadMatch (invalid parameter attributes)
<Myrl-saki> Major opcode of failed request: 152 (GLX)
<Myrl-saki> Minor opcode of failed request: 11 (X_GLXSwapBuffers)
<Myrl-saki> I probably just need to reboot.
simukis has joined #nixos
ng0 has joined #nixos
<clever> [root@amd-nixos:~]$ grep Groups /proc/3010/status
<clever> Myrl-saki: this will show what groups a given pid is in
<clever> Myrl-saki: because group membership can include things not in the groups file
iyzsong has quit [Read error: Connection reset by peer]
init_6 has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhApE
<Myrl-saki> Welps, apparently changing owner to users doesn't seem to work. :c
init_6 has joined #nixos
<{^_^}> [nixpkgs] @bendlas opened pull request #56775 → azure-mgmt-*: re-init older versions for use with nixops → https://git.io/fhApu
jasongrossman has quit [Ping timeout: 245 seconds]
<Myrl-saki> ls -l /var/run/bumblebee.socket
<Myrl-saki> srw-rw---- 1 nobody users 0 Mar 3 17:35 /var/run/bumblebee.socket
<srhb> Myrl-saki: Hmm, what are we suspecting is the problem currently?
<clever> Myrl-saki: what daemon is listening on that socket, try strace'ign that?
<Myrl-saki> clever: bumblebeed.
ericsagnes has joined #nixos
<Myrl-saki> srhb: I honestly have no idea.
<srhb> Myrl-saki: I suspect the primusrun error is just a problem with libglvnd though
<srhb> Try export __GLVND_DISALLOW_PATCHING=1
<{^_^}> [cabal2nix] @peti merged pull request #410 → resolveInNixpkgs: stop using GNOME aliases → https://git.io/fhA70
<{^_^}> [cabal2nix] @peti pushed 2 commits to master: https://git.io/fhApa
xkapastel has joined #nixos
<Myrl-saki> srhb: That works outside of steam.
<Myrl-saki> bash-4.4$ __GLVND_DISALLOW_PATCHING=1 primusrun glxgears
<Myrl-saki> Segmentation fault
<Myrl-saki> Well this is more surprising. :P
<Myrl-saki> Hm.
<Myrl-saki> Oh crap.
<Myrl-saki> steam-run optirun bash
<Myrl-saki> bash-4.4$ primusrun glxgears
<Myrl-saki> Segmentation fault
<Myrl-saki> Whoops
<{^_^}> [cabal2nix] @peti pushed to master « fromPackageDescription: add TODO note to resolveInNixpkgs »: https://git.io/fhApw
<{^_^}> [nixpkgs] @bendlas merged pull request #56775 → azure-mgmt-*: re-init older versions for use with nixops → https://git.io/fhApu
<{^_^}> [nixpkgs] @bendlas pushed to master « azure-mgmt-*: re-init older versions for use with nixops »: https://git.io/fhApr
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhApK
<Myrl-saki> I'm guessing what's happening here is that the run scripts mess up the environment.
<srhb> Myrl-saki: wouldn't optirun primusgun glxgears always fail?
<{^_^}> [nixpkgs] @bendlas reopened pull request #52550 → Update pythonPackages.azure-mgmt-* → https://git.io/fhefY
<srhb> er, *run not gun :P
<Myrl-saki> srhb: Yeah, that's why I whoopsed.
<srhb> ah, ok.
<Myrl-saki> So yeah, I'm still back to the same problem.
<Myrl-saki> "Major opcode of failed request: 151 (GLX)"
<srhb> Myrl-saki: If nothing else, it would be nice to have an issue to track this. I think we broke primus + steam pretty hard at some point.
<{^_^}> [nixpkgs] @vbgl merged pull request #56293 → ocamlPackages.ocamlbuild: 0.12.0 -> 0.14.0 → https://git.io/fhbWt
<{^_^}> [nixpkgs] @vbgl pushed to master « ocamlPackages.ocamlbuild: 0.12.0 -> 0.14.0 »: https://git.io/fhAp1
<Myrl-saki> srhb: My guess is that this is on Steam.
<{^_^}> amonakov/primus#2 (by karolherbst, 6 years ago, closed): segfault
<Myrl-saki> Hm wait.
<srhb> I mean, this used to work around 18.03
<srhb> Which incidentally is right around libglvnd time..
<srhb> So, sure, it's just a suspicion, but...
thc202 has joined #nixos
orivej has joined #nixos
jasongrossman has joined #nixos
<Myrl-saki> Yep. My suspicions are pretty correct.
<Myrl-saki> optirun is working for a game that's run under proton, from Steam.
<srhb> Hmm!
<Myrl-saki> primusrun seems pretty fun to use, hm.
<Myrl-saki> All it does is change LD_LIBRARY_PAHT, right?
<srhb> Yes, to use the primus shims before regular gl stuff.
<clever> that reminds me
<Myrl-saki> That means that I can change the startup script to add my own ld_library_path.
<Myrl-saki> Of course, this is a Bad Idea TM, but might as well get answers.
<srhb> Myrl-saki: Definitely :)
<clever> Myrl-saki: https://imgur.com/a/5CBHckJ
<clever> Myrl-saki: you can modify the command steam uses when launching any game
<Myrl-saki> Yeah
<clever> Myrl-saki: in my case, i'm setting an env var, that causes proton to enable winedebug
<Myrl-saki> clever: It also runs it under Bash.
<clever> but you could inject your own wrapper script, that runs `env` before running "$@"
<Myrl-saki> So you can do stuff like `echo "%command" > /tmp/launcher`
<clever> or just shove primusrun in there
<Myrl-saki> Yep. That's what I did.
<clever> env vars and inherited FD's also come into play
<clever> i have one game, that refuses to run manually (even under the xterm "game"), citing DRM failures
rauno has joined #nixos
<clever> and when ran properly with steam, fails with a different error
<clever> and all attempts to debug it, run into drm
<Myrl-saki> clever: Something dirty.
<Myrl-saki> ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"
<Myrl-saki> What if you set GAME_DEBUGGER to primusrun?
<clever> maybe
<Myrl-saki> That aside. I didn't get it wor.
<Myrl-saki> Anyways, some more strace shenanigans.
<Myrl-saki> Oh fuck, right. glxgears works fine. Everything else doesn't.
<{^_^}> [nixpkgs] @bendlas pushed to master « nixopsUnstable: mark as broken »: https://git.io/fhApj
rfold has joined #nixos
linarcx has joined #nixos
<Myrl-saki> Oh okay, I think I'm starting to do something.
<Myrl-saki> I just need to know what shouts "X Error of failed request: BadValue"
<clever> Myrl-saki: something else, is that X11 errors are async, so it can be hard to pair an error with a request
<clever> but x11 has a sync mode (via an env var) that makes every req wait for the reply (or error)
<Myrl-saki> clever: libx11 is synchronous tho, right?
<Myrl-saki> s/libx11/Xlib/
<clever> not sure
<linarcx> Hi. i want to auto mount some ntfs partitions in config file. but i get this error message: The option value `fileSystems./run/media/linarcx/C/' in `/etc/nixos/configuration.nix' is not of type `submodule'.
<linarcx> and this is the line in configurarion: # Auto Mount Partitions
<linarcx> fileSystems."/run/media/linarcx/C/" = "/dev/disk/by-label/C";
<clever> linarcx: fileSystems."/run/media/linarcx/C/"
<clever> and it must be a set
<clever> fileSystems."/run/media/linarcx/C/" = { something = "/dev/disk/by-label/C"; };
<clever> linarcx: check hardware-configuration.nix for examples of things your already mounting
<Myrl-saki> So it's from here.
<linarcx> oh. right. i remember before we must us fe. right?
<Myrl-saki> This is way harder than I thought.
<Myrl-saki> like way way
<Myrl-saki> :C
<linarcx> Myrl-saki: thank you so much.
<Myrl-saki> linarcx: Oh, I'm talking about my own problem. :P
<linarcx> clever: thank you.
<Myrl-saki> Anyways, so there's a few things I know now. This is an X11 problem, I believe
<Myrl-saki> I wonder if I can wireshark this lmo
<Myrl-saki> Wireshark support x11
<clever> Myrl-saki: strace can dump all reads/writes on a given file-handle
<clever> Myrl-saki: i dont think wireshark can trace unix sockets, and shm may break if you try to proxy it via tcp or another unix socket
<Myrl-saki> Oh.
<clever> unix sockets have a lot of fun magic, like querying the uid of the remote process, and even passing an open FD over the unix socket
<clever> so you can have a daemon, that opens a restricted device like /dev/net/tun, and then gives a reference to it over a unix socket
<Myrl-saki> There's also xtruss, apparently.
<clever> socat can be used to proxy unix sockets and such, but it cant proxy that
<{^_^}> [nixpkgs] @teto opened pull request #56776 → wireshark: 2.6.6 -> 3.0.0 → https://git.io/fhAhB
<Myrl-saki> This is now high up on complicated.
<{^_^}> [nixpkgs] @veprbl merged pull request #56638 → vscode-extensions.WakaTime.vscode-wakatime: fix dependency path → https://git.io/fhArD
<{^_^}> [nixpkgs] @veprbl pushed 2 commits to master: https://git.io/fhAhR
<Myrl-saki> From what I understand, the primus/optimus library hardcodes unix/8
<clever> this can also be used to create an annonymous file, which you can then mmap, and forward to children, or unix socket peers
<clever> and then use for shm
<Myrl-saki> And the daemon also uses unix/8.
<clever> you can use $DISPLAY to change which unix socket is used
<Myrl-saki> Right, but the library itself hardcodes unix/8.
<clever> srwxrwxrwx 1 root root 0 Jan 20 20:39 /tmp/.X11-unix/X0
<clever> :0 uses that socket
<Myrl-saki> I'll be changing the output display, but not the "render display"
<rnhmjoj> i have updated a fixed update derivation and apparently it's no longer deterministic. is there any trick or tool to detect the source of nondeterminism?
<clever> rnhmjoj: zero out a few digits of the hash
<clever> rnhmjoj: if the hash hasnt changed, nix belives that the output also hasnt changed, and keeps using the cached result
<clever> Myrl-saki: if you change DISPLAY=:1, you can make it try a different socket
<rnhmjoj> clever: so i should try to rebuild it multiple times and compare for changes?
<clever> Myrl-saki: finding the next thing...
<clever> rnhmjoj: yeah, you typically will make the hash invalid, build it once, and then use the error to get the real hash
<clever> Myrl-saki: and this is how you use socat to proxy a unix socket, then you can strace socat, to see what is being transfered over it
<clever> Myrl-saki: you could also cheese it, use 2 socats, to convert it to tcp, and back, then wireshark can just sniff lo
<Myrl-saki> Yeah, that's what I was planning to use.
<rnhmjoj> clever: oh sorry, i meant I updated a fixed output derivation and now different computers build the derivation with different output hashes
<{^_^}> [nixpkgs] @vbgl merged pull request #56246 → ocamlPackages.stdlib-shims: init at 0.1.0 → https://git.io/fhAh2
<{^_^}> [nixpkgs] @vbgl pushed to master « ocamlPackages.stdlib-shims: init at 0.1.0 »: https://git.io/fhAha
<clever> rnhmjoj: ah, then its not pure, and you need to compare what the 2 outputs are with diff -ru
__monty__ has joined #nixos
<Myrl-saki> I think htere's a way actually.
<rnhmjoj> clever: ok, i'll try. the problem is this is a binary font so it's going to be tricky
<teto> so when packaging wireshark 3 i get a "cycle detected in the references of" . I am afraid removeReferencesTo might break anything ? https://github.com/NixOS/nixpkgs/pull/56776
<{^_^}> #56776 (by teto, 8 minutes ago, open): wireshark: 2.6.6 -> 3.0.0
<clever> teto: which files are involved in the reference cycle?
<MichaelRaskin> Hm. I don't understand anything. I am trying to fix python2Packages.pyside build. The failure is inability to #include <GL/gl.h> so I add mesa to nativeBuildInputs and nothing changes
<MichaelRaskin> Ah, oops
<MichaelRaskin> Stupid me
<clever> MichaelRaskin: mesa goes into the buildInputs, not nativeBuildInputs
linarcx has quit [Ping timeout: 245 seconds]
<MichaelRaskin> Yes, I understood
<MichaelRaskin> For Python I had the two notions mixed up
<MichaelRaskin> (there are different level of native inputs)
<teto> clever: I don't know it's not said, I noticed that $dev/pkgconfig/wireshark.pc was referring to $out (and had a broken libdir=${execprefix}//nix/store/....) while includiedir is properly patched. I wonder if that'sok
<MichaelRaskin> Well, we do force libdir
<Myrl-saki> clever: Ping. Hacky hacks!
<Myrl-saki> PRIMUS_DISPLAY=:8 primusrun glxgears
<Myrl-saki> So I can make that into :7 then do the TCP + wireshark.
<MichaelRaskin> Do you actually use CUDA?
<clever> teto: and how does $out refer back to $dev? because that breaks the entire point of split outputs
<therealwaphire[m> guys if I'm booting NixOS from a 18.09 liveusb, can I install 19.03 into the resultant system?
<clever> therealwaphire[m: 19.03 isnt stable yet
<therealwaphire[m> I know
<clever> therealwaphire[m: but you can just mess with nix-channel before running nixos-install
<therealwaphire[m> but can I do that?
<clever> therealwaphire[m: it will use whatever the nixos channel points to
<therealwaphire[m> yeah, the thing is I did
<therealwaphire[m> but it still ended up installing 18.09
<teto> clever: any script to find out ?
<clever> therealwaphire[m: and you did nix-channel --update?
<therealwaphire[m> oh shit
<therealwaphire[m> right
<clever> teto: grep -r
<therealwaphire[m> rookie mistake
<clever> teto: nix will leave $out and $dev in /nix/store after the failure
<Myrl-saki> clever: Got it!
<Myrl-saki> nix run nixpkgs.socat -c socat TCP-LISTEN:9090,fork UNIX:/tmp/.X11-unix/X8
<Myrl-saki> nix run nixpkgs.socat -c socat UNIX-LISTEN:/tmp/.X11-unix/X7,fork TCP:localhost:9090
<therealwaphire[m> what can I do about this btw?
<clever> Myrl-saki: and then wireshark 9090!
<Myrl-saki> __GLVND_DISALLOW_PATCHING=1 PRIMUS_DISPLAY=:7 primusrun glxgears
* therealwaphire[m uploaded an image: image.png (421KB) < https://matrix.org/_matrix/media/v1/download/matrix.org/fbsLHnkSpCXMSSRwZxGrfkjw >
<Myrl-saki> I think?
<teto> ok found it seems like some cmake remnant file
<clever> therealwaphire[m: thats a bug in nixos-unstable, just ignore it for now
boomshroom has quit [Quit: WeeChat 2.4]
<clever> teto: the cmake stuff should probably be moved to $dev
<therealwaphire[m> ah, okay
<clever> therealwaphire[m: https://github.com/NixOS/nixpkgs/pull/54980 i think
<{^_^}> #54980 (by danbst, 4 weeks ago, merged): nixos: make symlinks in `/etc` relative (except `/etc/static`)
<Myrl-saki> God, wireshark's filter is so complicated.
<clever> Myrl-saki: 90% of the time, right click a field in the disector, add to filter
<teto> Myrl-saki: I usually parse the dissection tree and right click on the field "filter by name" or sthg like that
<Myrl-saki> Okay, good stuff. I just changed the port to 6002, and it auto detects as X11.
<clever> Myrl-saki: right click a packet, decode as, x11
<clever> you can force that for any port
<Myrl-saki> Okay, more good stuff. It actually does communicate with the X server.
<clever> you will likely see the error near the end of the stream, if its using the right display
simukis has quit [Quit: simukis]
simukis has joined #nixos
<{^_^}> #56285 (by cleverca22, 1 week ago, open): python ctypes extension fails to build due to purity issues
<clever> MichaelRaskin: related, but not python, https://github.com/NixOS/nixpkgs/issues/56290
<{^_^}> #56290 (by cleverca22, 1 week ago, open): kexec-tools arch purity problem
<Myrl-saki> Ah.
<Myrl-saki> I think I know why now.
<Myrl-saki> I'm pretty sure this is why.
<Myrl-saki> is_direct False
<Myrl-saki> I had a problem with indirect rendering.
simukis has quit [Client Quit]
<MichaelRaskin> clever: oh well, multi-personality builds are messy
<Myrl-saki> Welps.
<Myrl-saki> I can't disable indirect rendering.
<Myrl-saki> Sad.
<clever> MichaelRaskin: the first problem, is that python "successfully" builds (minus ctypes), so using the wrong host will poison your nix store
iyzsong has joined #nixos
<clever> MichaelRaskin: and the problem wont be detected until a few builds later
<Myrl-saki> I finally figured out what caused the purrblem tho. ; ~ ;
<MichaelRaskin> I still don't own any powerful enough ARM hardware
<clever> MichaelRaskin: i ran into those python problems on the community aarch64 box
<clever> MichaelRaskin: however, if you break the 32bit personality emulation, on x86, you might create the same bug on 32bit x86 python!
<clever> then you can test an x86 orientated fix
<clever> (forcing the right arch)
<Myrl-saki> Hm.
<{^_^}> [nixpkgs] @kolloch opened pull request #56778 → buildRustCrate: Make CARGO_MANIFEST_DIR absolute → https://git.io/fhAhN
Thra11 has quit [Ping timeout: 244 seconds]
<Myrl-saki> X Error of failed request: BadValue (integer parameter out of range for operation)
<Myrl-saki> Major opcode of failed request: 152 (GLX)
vk3wtf has joined #nixos
<Myrl-saki> So yeah. I just need to disable the indirect rendering, and then i'm gucci.
<{^_^}> [nixpkgs] @Kjuvi opened pull request #56779 → Torrential init 1.1.0 → https://git.io/fhAhj
_rvl_ has quit [Quit: ZNC 1.7.1 - https://znc.in]
<{^_^}> [nixpkgs] @Kjuvi closed pull request #56779 → Torrential init 1.1.0 → https://git.io/fhAhj
Makaveli7 has joined #nixos
alex`` has joined #nixos
<Myrl-saki> Hm.
<Myrl-saki> Maybe it's not that simple.
<Myrl-saki> Okay. Maybe this is doable.
counting1 is now known as countingsort
<countingsort> how do i compile a binary for a non-nixos distro on nixos?
alex`` has quit [Read error: Connection reset by peer]
ixxie has joined #nixos
<makefu> countingsort: you could create a static binary with pkgsStatic https://discourse.nixos.org/t/feedback-on-pkgsstatic-pr/1376 or use the static-compiled nix for the userland https://matthewbauer.us/blog/static-nix.html
<countingsort> makefu: thanks
<ToxicFrog> Huh. It looks like 1026beb broke syncthing user-units.
<ToxicFrog> That's annoying.
<Myrl-saki> I patched primus to always use direct.
alex`` has joined #nixos
rfold has quit [Quit: leaving]
domogled has quit [Ping timeout: 240 seconds]
<Myrl-saki> Okay.
<Myrl-saki> ofc it doesn't work.
<Myrl-saki> :C
tboston_ has quit [Quit: ZNC 1.7.1 - https://znc.in]
jomik has joined #nixos
tboston has joined #nixos
jomik has quit [Client Quit]
<teto> almost forgot : clever++
<{^_^}> clever's karma got increased to 111
<clever> thanks
talqu has joined #nixos
kisik21 has quit [Remote host closed the connection]
_kwstas has joined #nixos
_kwstas has quit [Client Quit]
_kwstas has joined #nixos
silver has joined #nixos
orivej_ has joined #nixos
<palo> I released terranix 2.0.2 with an example : https://github.com/mrVanDalo/terranix/tree/master/example (I add some un-opinionated modules about backends and remote_states, but there is still a lot of work to do, to make it nice to use) Feedback welcome.
<countingsort> makefu: got it to work, thanks again
orivej has quit [Ping timeout: 255 seconds]
_kwstas has quit [Quit: _kwstas]
<gchristensen> palo: wow!
alex`` has quit [Ping timeout: 250 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
jomik has joined #nixos
<jomik> When was 19.03 released? :o
alex`` has joined #nixos
<palo> gchristensen: you like it? do you have some ideas ?
__monty__ has quit [Quit: leaving]
<jomik> topic here needs an update I guess? :P
<palo> 19.03 is not released yet, isn't it?
<jomik> I just saw it here, so I updated to it :o https://nixos.org/channels/
<jomik> Oh, there is a date, says 26th of feb.
<jomik> Guess it may not be an official sort of release tho? :O
<symphorien> it is a beta release iirc
<symphorien> the real release will come later this month
<MichaelRaskin> Releases usually happen in the _end_ of the month in the version
<jomik> Ahhh, jumped the gun a bit then I guess. Woops :P Oh well~
freeman42x has joined #nixos
<MichaelRaskin> (or get delayed to the early next month, but that's considered a bug)
<jomik> MichaelRaskin: Well, I saw that this was modified end of february, so thought it was released.
<MichaelRaskin> Nope, that's just release branch for shaking out stuff away from master branch
<jomik> Makes sense, yeah.
<jomik> Oh well, my system works on that channel, so guess I'll just leave it there till end of march, if that is the expected release.
<jomik> I didn't think it'd be called release before it was released :P
jtojnar has quit [Quit: jtojnar]
alex`` has quit [Ping timeout: 255 seconds]
noogie has quit [Read error: Connection reset by peer]
alex`` has joined #nixos
noogie has joined #nixos
Melkor333 has quit [Quit: WeeChat 2.4]
<aanderse> Izorkin: that is one way to do it. seems more like a temporary solution, though, as it does break functionality (but functionality a user may not need...)
<{^_^}> [nixpkgs] @buffet opened pull request #56780 → filet: init at 0.1.0 → https://git.io/fhAjb
<Izorkin> aanderse: Yes, this is a temporary solution. Functionality does not break
gchristensen changed the topic of #nixos to: NixOS stable: 18.09, beta: 19.03 https://discourse.nixos.org/t/nixos-19-03-feature-freeze/1950 || 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
<Izorkin> aanderse: the default mode rootless is off
manpaige has joined #nixos
<{^_^}> [nixpkgs] @timokau opened pull request #56781 → Sage python upgrade fixes → https://git.io/fhAjN
<manpaige> how do I install NixOS on an apu2c4. I'm having trouble showing the install menu on the serial console. How can I solve this?
alex`` has quit [Ping timeout: 255 seconds]
<manpaige> I tried editing grub.cfg on the EFI partition but that didn't seem to help.
palo has quit [Quit: WeeChat 2.2]
arjen-jonathan has joined #nixos
avn has quit [Read error: Connection reset by peer]
avn has joined #nixos
palo has joined #nixos
alex`` has joined #nixos
<{^_^}> [nixpkgs] @dotlambda opened pull request #56782 → asciidoc: replace tetex by texlive → https://git.io/fhxec
jomik has quit [Quit: WeeChat 2.4]
_kwstas has joined #nixos
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/fhxeR
ixxie has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @dotlambda opened pull request #56783 → udiskie: fix build → https://git.io/fhxea
_kwstas has quit [Quit: _kwstas]
alex`` has quit [Read error: Connection timed out]
alex`` has joined #nixos
manpaige has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @Kjuvi opened pull request #56784 → torrential: init at 1.1.1 → https://git.io/fhxeo
<talqu> hi, i have this default.nix file in obelisk template. https://pastebin.com/7Qpgrs2H alias hoogle="nix-shell --arg withHoogle true -A shells.ghc --command \"hoogle server -p 8080 --local\"" running this command, however, does not give the docs for reflex functions. Why? dynText, prerender, mainWidget none are found when queried
laas has quit [Ping timeout: 264 seconds]
Thra11 has joined #nixos
_kwstas has joined #nixos
Piece_Maker has joined #nixos
<pie__> i have this snippet: https://bpaste.net/show/a94e04e4007a , any idea why my patch doesnt get applied? there dont seem to be any errors
Acou_Bass has quit [Ping timeout: 255 seconds]
Piece_Maker is now known as Acou_Bass
fusion809 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @andir merged pull request #56233 → nixos/nginx: Enable TLS 1.3 support → https://git.io/fhxeN
<{^_^}> [nixpkgs] @andir pushed 3 commits to master: https://git.io/fhxeA
rauno has quit [Remote host closed the connection]
noonien has joined #nixos
<noonien> hello folks
<noonien> my nixos install hangs quite often, and i usually do sysrq+REISUB to reboot, however, this morning, it no longer boots up
<symphorien> pie__: does the derivation you override have a custom patchPhase ?
<noonien> i get the nixos logo, pressing esc to give me the systemd logs shows that it hangs when trying to start NetworkManager
<pie__> symphorien, i dont know, im overriding the result of fetchGit basically
<pie__> ill look
<noonien> can i drop to a shell, to see what's wrong?
<noonien> ctrl+alt+F2. doesn't work
<symphorien> you can add rescue to the kernel cmdline
<pie__> symphorien, it just calls this with extra arguments as far as I can tell so I dont see why it would have a custom patchphase https://github.com/NixOS/nixpkgs/blob/20b066356a802d6b762bc7f7111ded849b3c8431/pkgs/build-support/fetchgit/default.nix#L52 (???)
<Myrl-saki> Can we all agree that NVidia a crap? :C
<symphorien> pie__: it's worse, it uses a custom builder, so no phases :)
<pie__> symphorien, dooh
<pie__> where do i see that
<pie__> ah
<symphorien> builders =
<pie__> builder = builder.sh >_>
<symphorien> you may have more luck with postFetch
<pie__> theres a postFetch hook though
<pie__> yeah
NightTrain has joined #nixos
troydm has quit [Ping timeout: 250 seconds]
<pie__> symphorien, thanks
_kwstas has quit [Quit: _kwstas]
<pie__> ,locate patch
<{^_^}> Found in packages: lv2, cheat, petsc, gitlab, busybox, gnupatch, sonic-pi, linux.dev, lv2Unstable, phabricator, bashCompletion, linux-libre.dev, linux_mptcp.dev, linux_mptcp_93.dev, linuxPackages_4_4.kernel.dev, linuxPackages_4_9.kernel.dev, linuxPackages_4_19.kernel.dev, linuxPackages_hardened.kernel.dev, linuxPackages_xen_dom0.kernel.dev, linuxPackages_latest-libre.kernel.dev, linuxPackages_latest_hardened.kernel.dev, and 5 more
* pie__ couldnt remember the name of the bot
<Myrl-saki> I have no idea what the hell is happening. I specifically disabled indirect glx but wireshark still tells me that it's in indirect. That's some good stuff right there.
<pie__> symphorien, hm, might be nice if mkDerivation could give you an error about nonexistsnt phases
<symphorien> the current design is "if it is an attribute, then it is an envvar for the builder" so there is no signature
<pie__> that would of course require specifying on some manner (detecting doesnt sound like a good idea) whats in the builder script, and that might be a bit annoying
<pie__> symphorien, right
<pie__> its really great that there's so many helpful people in the community, but i wonder how much the simple-ish question load could be decreased with more support for...im not sure
<pie__> i guess an easy hack would be to give a warning if a builder is set and it doesnt contain the name of a phase that someone attempts to use
<pie__> (just a string search for patchPhase on the set builder.sh or whatever)
ixxie has joined #nixos
<Myrl-saki> Sweet jesus. Any patch results in a mass rebuild.
<pie__> :D
<pie__> Myrl-saki, OHNO
<Myrl-saki> :C
<Myrl-saki> How long ago was NVidia 304.137
<Myrl-saki> Version: 304.137
<Myrl-saki> Release Date: 2017.9.19
<Myrl-saki> Hm.
<Myrl-saki> Maybe it's okay.
<MichaelRaskin> Give up and use nouveau
<Myrl-saki> But I have a 1050.
<Myrl-saki> MichaelRaskin: I have a 10 series.
<Myrl-saki> why am i even alive
<Myrl-saki> that's it. this card's for auction lmao
<simpson> Myrl-saki: Because, were you not alive, you would not be able to ask the opposite of yourself. This is the self-sampling assumption, I think: https://www.scottaaronson.com/democritus/lec17.html
<Myrl-saki> Unexpected philosophy. :P
<MichaelRaskin> You say philosophy, and then you write an automated decision system in uncertain environment, and suddenly this is very much applied questions in probability theory
<simpson> MichaelRaskin: Indeed, one of the paradoxes in this lecture series is directly related to the order in which we compose non-commuting samplers.
<Myrl-saki> Oh fuck. I think I know what happened now.
<Myrl-saki> I hate this even more now.
<Myrl-saki> So basically, there's some stupidity that's happening because my 32-bit drivers is a different version from my 64-bit drivers.
<Myrl-saki> I believe that's what's happening.
<clever> Myrl-saki: ah
<clever> Myrl-saki: there are seperate nixos options to configure each
<Myrl-saki> Oh wtf. This is kind of funny.
sondr3 has joined #nixos
<Myrl-saki> I have /etc/nixos/nixpkgs-config.nix, and I didn't even know that /etc/nix/nixpkgs-config.nix exists.
<Myrl-saki> I was just 2 letters off.
<{^_^}> [nixpkgs] @Ma27 opened pull request #56786 → dlib: improve AVX configuration → https://git.io/fhxvW
_kwstas has joined #nixos
<clever> Myrl-saki: its been in `env` output forever, and yeah, i also was unaware of it at one point, and it caused bugs
jasongrossman has quit [Ping timeout: 268 seconds]
iyzsong has quit [Ping timeout: 245 seconds]
<pie__> symphorien, hm. i tried to set postFetch but still nothing. it should be fine to overrideAttrs it on the resulting derivation ... (?)
<symphorien> I think postfetch is an argument of fetchgit
<pie__> symphorien, or is lazines somehow weird here and the inherit is doing something
<pie__> yeah its a fetchgit argument but if I want to stay with the scheme i pasted, im not sure how id override it?
<noonien> i seem to have borked my nixos install, i can't get it to fully boot (NetworkManager seems to hang on boot), i cant get a shell running, old generations don't work either (i garbage collected, but the entries didn't seem to remove themselves)
<noonien> can i trigger a rebuild or something? or do i have to create a live os?
<noonien> and boot from there
<pie__> symphorien, ok even this does nothing https://bpaste.net/show/8fe56ee4eafa
vmandela has joined #nixos
<Myrl-saki> ,locate bumblebee-nvidia
<{^_^}> Couldn't find in any packages
<laalf> rycee: i see home-manager is in packages. why isnt it in options yet? is that planned?
ottidmes has joined #nixos
<laalf> Myrl-saki: might wanna see https://nixos.org/nixos/options.html#bumblebee
mariel__ has joined #nixos
alex`` has quit [Ping timeout: 250 seconds]
linarcx has joined #nixos
alex`` has joined #nixos
<linarcx> Hi. i get this error when i want to rebuild the configurations: error: build of '/nix/store/g1jb5x6xqjzakpda0g3s4620zgvr0m6g-nixos-system-unnamed-19.09pre171582.26d8a8c0eb2.drv' failed.
<symphorien> the actual error is probably printed a few lines above this one
<Myrl-saki> I was correct.
<Myrl-saki> OTOH, you have to be using a year and a half old driver.
<Myrl-saki> But that's not exactly a bad thing, I guess.
<linarcx> symphorien: yes. see: https://paste.ee/p/lWsQA
<symphorien> apparently pykeepass is broken
<symphorien> comment it out in your config and rebuild
<Myrl-saki> Sweet jesus.
<linarcx> it's not in my config. i guess it is dependency of ranger.
<Myrl-saki> There's a shittonne of latency in primusrun.
<symphorien> cannot build derivation '/nix/store/8varg5ji8a196xflz2mpz2lq75f1r94d-qutebrowser-1.6.0.drv': 1 dependencies couldn't be built << qutebrowser apparently
<linarcx> yes. shit. i just switch to unstable channel and this happen.
<symphorien> well it is called unstable for a reason
<symphorien> :)
<linarcx> XD
<linarcx> but in arch every thing works fine
<linarcx> i have it 3 years and more than 1 or 2 time, it does not complain.
<symphorien> you could attempt to fix the problem yourself: clone nixpkgs, fiddle with things until pykeepass builds, make a pr
<symphorien> here I would bet that relaxing the version bounds works
<symphorien> mmh no, rather addind futures as inputs
ErAsMuS has joined #nixos
<Myrl-saki> srhb: Ping. NVidia's dirty af. Apparently, the x86 drivers have a shim to make them work with x86-64 drivers which involves indirect rendering.
<Myrl-saki> Not dirty like, business dirty, but that's a weird way to solve a problem.
linarcx has quit [Ping timeout: 250 seconds]
init_6 has quit []
<laalf> Myrl-saki:typical nvidia. but dual gpus never work properly. only if you use displays on them
mbrgm has quit [Quit: ZNC 1.7.1 - https://znc.in]
mbrgm has joined #nixos
ilmu has joined #nixos
<ilmu> hey does the unoconv package work for you guys?
m0rphism has quit [Quit: WeeChat 2.2]
<emily> ,tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<emily> sorry, I needed to copy it T_T
Makaveli7 has quit [Ping timeout: 250 seconds]
<MichaelRaskin> emily: there is also #bottest; and in many editors you can quickly insert 64 zeros just by knowing you need 64
zupo has joined #nixos
<jw358> hi all, i'm trying to use async-pool but i get a version range problem with base, where should i look to turn off version range checks?
m0rphism has joined #nixos
<pie__> symphorien, ok it turns out the problem was that fetchgit was putting the result in the output location and i was patching in /build, but idk why patch didnt complain
kisik21 has joined #nixos
<kisik21> assuming building a hybrid-bootable drive with GRUB (which means GRUB should both boot in EFI and BIOS mode), what is the correct value for boot.loader.grub.devices?
<kisik21> I have a BIOS boot partition as /dev/sdb1 (the first one on my flash drive) and I have a ESP mounted at /boot.
fusion809 has joined #nixos
<srhb> Myrl-saki: Huh, interesting
<pie__> also using git apply instead of patch seems to have actually applied the damn patch now, tfw I dont know how to use patch properly
<pie__> though i did use git diff to generate it
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m0rphism has quit [Quit: WeeChat 2.2]
m0rphism has joined #nixos
<rycee> laalf: HM is installable through Nixpkgs mainly because somebody added it at some point. I recommend against installing from there because it typically is very out of date.
<clever> kisik21: boot.loader.grub.devices must be /dev/sdb
<laalf> rycee:alright. will there be plans on adding services to nixos or will home-manager stay like that?
<kisik21> clever: ok then
<clever> kisik21: it will search the partition table and find the BBP on its own, and then setup the MBR to chainload sdb1
<kisik21> What about EFI? I've enabled EFI support in GRUB via some option
<clever> kisik21: then it will install both legacy (in the mbr+bbp) and efi at the same time
<rycee> laalf: I don't have any plans on creating a NixOS module inside Nixpkgs.
<kisik21> clever++
<{^_^}> clever's karma got increased to 112
<clever> kisik21: both will share the same grub.cfg file, and /boot/
<kisik21> Nice
<rycee> If you want to work on it I would be happy to review 😃
<laalf> rycee: i mean removing the need for (import (builtins.fetchTarball https://github.com/rycee/home-manager/archive/master.tar.gz ) {}).nixos because fetchTarball doesnt work at nixos-install.
<rycee> I'm losing connection now. On a ferry, will be near the coast again in a few hours 😃
technoid- has joined #nixos
<laalf> rycee: yeah sure
<kisik21> Is /dev/disk/by-id/<...> not gonna change when I plug my flash drive into another port/usb controller/computer/universe? if it changes, what is a better way to say "this exact flashdrive composed of these exact atoms and molecules"? 😂
zupo has joined #nixos
technoidX has quit [Ping timeout: 246 seconds]
<arianvp> What are the rules for linux package versions in the stable channel?
<arianvp> I was on kernel 4_18 but that kernel suddenly disappeared after nix-channel --update
<arianvp> :/
<arianvp> on 18.09
<arianvp> is that a bug?
<symphorien> it is EOL. try linuxPackages_latest or a LTS version
<arianvp> ah
<arianvp> I see, will switch to 4_19 then
m0rphism has quit [Quit: WeeChat 2.2]
vmandela_ has joined #nixos
<laalf> arianvp: just do latest. makes more sense for upgrades
m0rphism has joined #nixos
<arianvp> oh my boot partition is full and switch failed
<arianvp> last time I did this I somehow deleted _all_ my generations when trying to fix it
zupo_ has joined #nixos
<arianvp> what is the proper procedure now?
<laalf> arianvp:why not garbage collect anything older than 14d for example?
<arianvp> I did but it doesnt do anything
<arianvp> all the kernels are still there
<laalf> do you copy the kernels to boot?
<arianvp> yes
<laalf> i dont.
<arianvp> that's what efi does by default
vmandela has quit [Ping timeout: 250 seconds]
<laalf> yes it does
<laalf> but... why does my garbage collect collect kernels then?
zupo has quit [Ping timeout: 245 seconds]
ixxie has quit [Ping timeout: 244 seconds]
<arianvp> I dont know?
<arianvp> xD
<arianvp> why doesnt mine
<laalf> i use grub...
<{^_^}> #23926 (by joepie91, 1 year ago, open): When /boot is full, system rebuilds fail
<arianvp> ah lmao
<arianvp> nixos-rebuild only deletes them on success
<arianvp> not on failure. so im stuck
<arianvp> this is exactly the same thing I was stuck on a year ago
<laalf> my 525m partition isnt nearly full
<emily> https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/python.section.md#including-a-derivation-using-callpackage this example doesn't work -- I get an error about fetchPypi being undefined, and if I add it to the argument list like is done with the packages in the nixpkgs tree, I get an error saying that it wasn't provided at callPackage time. what should I do?
__monty__ has joined #nixos
simukis has joined #nixos
<kisik21> wait, which package provides the nixos-install command?
<laalf> arianvp: might wanna build a vm to be sure, delete kernels, rebuild with installing bootloader? very ugly but might work. have a usb ready to fix it up.
<arianvp> AAAH
<arianvp> running `nixos-rebuild boot` fixes it
arjen-jonathan has quit [Ping timeout: 258 seconds]
<laalf> kisik21: readlink -f $(which nixos-install)
<kisik21> laalf: it says /nix/store/*-nixos-install/bin/nixos-install, but when I try to mention nixos-install in environment.systemPackages it spews an error
<laalf> hm... i dont know how to find the package via the path
Makaveli7 has joined #nixos
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kp__ has joined #nixos
<kisik21> laalf: hm i think it gets installed by default somehow
<laalf> nix-index searches
<laalf> kisik21:oh well. nice
endformationage has joined #nixos
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 255 seconds]
Mateon3 is now known as Mateon1
_kwstas has quit [Quit: _kwstas]
_kwstas has joined #nixos
_kwstas has quit [Client Quit]
copumpkin has quit [Quit: Textual IRC Client: www.textualapp.com]
<noonien> i've managed to boot into a nixos live disk
<noonien> mounted all the drives, nixos-rebuild switch --upgrade doesn't seem to work
<noonien> i get this error: cloning builder process: Operation not permitted
<noonien> (oh, i've executed `nix-enter` beforehand)
<ottidmes> noonien: maybe try boot instead of switch
<clever> yeah, switch wont work inside nixos-enter
<noonien> hmm, i don't want to reboot
<clever> the boot action wont reboot the host
<noonien> can i just rebuild to see if it works?
<noonien> oh, ok
<clever> switch, is just boot+test
<clever> and test will try to talk to systemd to activate it
<clever> but you cant activate when inside a chroot
<noonien> i still get this: http://vpaste.net/ffo1A
<kisik21> clever: IIRC it worked.
<clever> noonien: did you run nixos-enter as root?
<noonien> yes, i did
<siers> Is it possible to do ghcWithPackages+runhaskell with the nix-shell shebangs?
<clever> noonien: try without --upgrade ?
<noonien> hmm, i seems to have worked without --upgrade
<clever> noonien: nix-store --verify --check-contents
ErAsMuS has quit [Quit: END-AUMF]
copumpkin has joined #nixos
thc202 has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @veprbl merged pull request #55983 → qt511.qtwebkit: fix on darwin → https://git.io/fh57v
<{^_^}> [nixpkgs] @veprbl pushed 5 commits to master: https://git.io/fhxJk
<noonien> clever: it seems to have finished succesfully
<{^_^}> [nixpkgs] @veprbl merged pull request #56447 → [18.09] fix buildbot → https://git.io/fhN8L
<{^_^}> [nixpkgs] @veprbl pushed 3 commits to release-18.09: https://git.io/fhxJL
evanm has joined #nixos
ldk1k0 has left #nixos ["Kicked by @appservice-irc:matrix.org : issued !quit command"]
<siers> Yes, it's possible! #! nix-shell -p "haskellPackages.ghcWithPackages (pkgs: with pkgs; [lens])" -i runhaskell
<noonien> `nix-channel --update` seems to return the same operation not permitted error
<siers> woo hoo, that's amazing
<clever> noonien: it may be a bug between nix-channel and nixos-enter
<evanm> I am trying to use two haskell packages containers and containers-unicode-symbols
<evanm> the project requires quickcheck which implicitly requires containers
JonReed has joined #nixos
<evanm> containers-unicode -symbols latest version has a limit <0.6
<clever> evanm: containers is a boot package, so you can only change the version by picking a different ghc
<clever> evanm: haskell.packages.ghc863 for example
<evanm> I created an override with cabal2nix --jailbreak
rycwo has joined #nixos
<ottidmes> I haven't packaged anything using mulitple outputs yet, I was thinking of using it in one of my packages, because I might want to test the manpage while building the release (Rust) of the package takes too much time to do on every manpage change, can I use multiple outputs to work around that? From the documentation it seems that I would still have to build everything, but the outputs are just organized
<ottidmes> differently, so it would not help me, right?
<evanm> when I run nix build the error I get is encountered missing dependencies when configuring containers-unicode-symbols
<evanm> Thank you for any help
<clever> ottidmes: a split output package must builds all the outputs as a single unit, so the binaries must be built at the same time as the man pages
<evanm> clever: thank you
<ottidmes> clever: was afraid of that, guess I will just create a seperate nix file that only builds the manpages or some such
<JonReed> Does anybody know which NixOS package has perl's "Linux::FD"?
<evanm> clever: I would prefer to have containers-unicode-symbols ignore the <0.6 constraint. Is that possible without changing the ghc version?
noctux has joined #nixos
<clever> evanm: you will need an override against containers-unicode-symbols to jailbreak it
<{^_^}> [nixpkgs] @FRidh merged pull request #56698 → hyper: 2.1.1 -> 2.1.2 → https://git.io/fhAMR
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « hyper: 2.1.1 -> 2.1.2 »: https://git.io/fhxJ3
<{^_^}> [nixpkgs] @FRidh merged pull request #56697 → hpx: 1.2.0 -> 1.2.1 → https://git.io/fhAMs
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « hpx: 1.2.0 -> 1.2.1 »: https://git.io/fhxJZ
<Olivier[m]1> Hi, I'm looking for examples of where in Nixpkgs the "dynamic field labels" of the Nix language is needed
<{^_^}> [nixpkgs] @FRidh merged pull request #56694 → gtkwave: 3.3.98 -> 3.3.99 → https://git.io/fhA1I
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « gtkwave: 3.3.98 -> 3.3.99 »: https://git.io/fhxJn
<arianvp> wasnt there a pretty big overhaul of the kubernetes module recently?
<arianvp> cant find the PR
<Olivier[m]1> code such as
<Olivier[m]1> { ${x} = y }
<symphorien> not exactly the same, but switch statements come to my mind
<symphorien> > let f = x: { a = 1; b=2; }.${x}; in f "a"
<{^_^}> 1
<arianvp> is { ${x} = y } valid?
<arianvp> not that I can recall
<clever> > let x = "foo"; y = "bar"; in { ${x} = y }
<{^_^}> error: syntax error, unexpected '}', expecting ';', at (string):220:41
<clever> > let x = "foo"; y = "bar"; in { ${x} = y; }
<{^_^}> { foo = "bar"; }
<clever> yes
zupo has joined #nixos
<evanm> clever: I used cabal2nix --jailbreak --no-check cabal://containers-unicode-symbols- > container-unicode-symbols
<laalf> can i escape ${ in a string somehow?
<symphorien> Olivier[m]1: https://search.nix.gsc.io/?q=%5E%20*%5C%24%7B.*%7D%20%3D&i=nope&files=&repos=
<clever> ,escape" laalf
<{^_^}> laalf: " double quote: \" backslash: \\ bash curly bois: \${} newline: \n tab: \t "
<symphorien> apparently this is used to add an attribute conditionnaly
<symphorien> > { null = 1; }
<{^_^}> { null = 1; }
<symphorien> oh
<symphorien> well
<JonReed> Olivier[m]1: Check https://github.com/NixOS/nixpkgs/blob/master/lib/attrsets.nix There are tons of functions where where they are used
<clever> evanm: can you pastebin the nix expression, and the full build log when it fails?
<symphorien> > { ${null} = 1; }
<{^_^}> { }
<evanm> clever: Thank you. It will take a few minutes. I am IRC noob. But I will.
<clever> ,paste evanm
<{^_^}> evanm: Use a website such as [ https://gist.github.com/ http://ix.io/ https://hastebin.com/ https://paste.ee/ ] or similar services to share anything that's longer than a couple lines.
<evanm> {^_^}: thank you
<weebull[m]> Is there a good guide for maintaining your own nix packages separate from nixPkgs? I'm looking for best practises in how to structure things. I'm trying to standardise development environments which rely on a few in-house packages.
<weebull[m]> Everything I read starts with "clone nixPkgs" and then....
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/768336a74b9 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
bricewge has joined #nixos
<laalf> clever: something.something = '' somethinelse = ${cheese.burger}''; and it cant find cheese. ", \", \\, \\" dont work
<Olivier[m]1> symphorien: JonReed: thanks I'll look at that then
<clever> weebull[m]: i just start my file: with import <nixpkgs>; stdenv.mkDerivation { ... }
<clever> weebull[m]: then you can nix-build it, and basically ignore nixpkgs
<clever> ,escape'' laalf
<{^_^}> laalf: '' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
bricewge has quit [Quit: issued !quit command]
<clever> laalf: " and '' have different ways to escape
<JonReed> Olivier[m]1: To be more specific, ex: https://github.com/NixOS/nixpkgs/blob/master/lib/attrsets.nix#L157
<weebull[m]> clever: Does that allow pulling stuff together at a later date?
<weebull[m]> clever: ...and having stuff rely in each other?
<clever> weebull[m]: for that, i do: with import <nixpkgs> {}; { foo = callPackage ./foo.nix {}; bar = callPackage ./bar.nix {}; } as a start
<laalf> clever: alright. thank you so much!
<clever> weebull[m]: if they need to rely on eachother, then i upgrade it to newScope, one sec
<noctux> hello, I'm just starting to experiment with nixos (in the VM image), to see how it works. My current goal is to get a searx instance running with nginx and uwsgi. My current attempt is at https://paste.xinu.at/McsZ/, but somehow, uwsgi fails to find the python packages, even though they get specified in the uwsgi-config: https://paste.xinu.at/McsZ/#n66 and thus, I thought that python.withPackages
<noctux> (https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/web-servers/uwsgi.nix#L30) should build a python-env that includes all deps as site-packages... anybody got a pointer for me?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever> weebull[m]: with import <nixpkgs> {}; let packages = self: { foo = self.callPackage ./foo.nix {}; }; in pkgs.lib.makeScope pkgs.newScope packages
<clever> weebull[m]: self.callPackage, is a new variant of pkgs.callPackage, that will search the set packages returns, then search pkgs
<clever> weebull[m]: so you can then do: { stdenv, foo }: ....
<noctux> btw: there are two related issues on the bugtracker, but they seem both fixed and seem to do similar things to my attempt: https://github.com/NixOS/nixpkgs/issues/28429 and https://github.com/NixOS/nixpkgs/issues/13060
<{^_^}> #28429 (by jluttine, 1 year ago, closed): uwsgi not finding python packages
<{^_^}> #13060 (by makefu, 3 years ago, closed): services.uwsgi: python{2,3}Packages ignore PropagatedBuildInputs of inputs
<weebull[m]> clever: Ok, that sounds like where I'm headed then. I'll try to get my head around that.
<clever> weebull[m]: also of use, the set this file returns, will support overrideScope, so you can insert overlays around it
<clever> weebull[m]: https://github.com/cleverca22/nix-tests/blob/master/kexec/simple-test.nix#L3-L50 is an example of using that with overlays to do some qemu scripting
<weebull[m]> clever: Thanks. I'll take a look.
bricewge has joined #nixos
shabius has quit [Quit: Leaving]
<evanm> clever: what confuses me is that containers-unicode-symbols.nix has jailbreak=true so why is it still looking for containers<0.6? Thanks
astrofog has joined #nixos
hyperfekt has joined #nixos
gagbo has joined #nixos
shabius has joined #nixos
DanC has left #nixos ["Leaving"]
<clever> evanm: yeah, that is strange, since line 54 says it was jailbroken
<clever> evanm: if you build it with --keep-failed, and then look in the dir it says its keeping, does the cabal file look modified?
<evanm> clever: will do.
phreedom_ has joined #nixos
JonReed has quit [Ping timeout: 256 seconds]
<evanm> clever: The cabal file was not modified...it still depends on containers<.6
phreedom has quit [Remote host closed the connection]
<clever> evanm: have you tried just editing it manually, before you run nix-build ?
<evanm> clever. I have not tried. To be clear, I should modify the cabal file in /private/..../nix-build-containers-unicode-symbols-
shabius has quit [Quit: Leaving]
<clever> evanm: that wont help, since nix will re-unpack another copy
<clever> evanm: ah, your not using a local dir, so its not easy to modify the cabal file
<evanm> clever: where can I read about a local dir? I am not sure if I have seen that ....do you mean I should download local copy into a /deps folder
<clever> evanm: when using `cabal2nix ./.` in the directory for containers-unicode-symbols's source
ErAsMuS has joined #nixos
<weebull[m]> clever: Am I right in saying that a default.nix containing "import <nixpkgs>; stdenv.mkDerivation {....}" can't be called by callPackage?
<weebull[m]> clever: So you choose one style and stick to it.
<clever> weebull[m]: callPackage might work, but it wont actually pass in any packages, and the file will re-import its own copy of <nixpkgs>
<weebull[m]> clever: Yeah, ok. You won't get the result you're after :-)
vmandela_ has left #nixos ["Leaving"]
<evanm> clever: so I should download containers-unicode-symbols and cabal2nix on that? Apologies for not understanding your last msg.
<simpson> weebull[m]: To read your mind a bit, do you want to add some proprietary (in-house, unfree) packages to your own local nixpkgs, but in a way that doesn't require maintaining a nixpkgs fork? You could use an overlay instead, and pin your nixpkgs.
<clever> evanm: which ghc version are you trying to build it against?
alex`` has quit [Ping timeout: 255 seconds]
linarcx has joined #nixos
<linarcx> Hi. what is the equivalent of aur in nixos?
<__monty__> linarcx: There's NUR.
alex`` has joined #nixos
<clever> nix-repl> :b haskell.lib.doJailbreak (haskell.packages.ghc863.callHackage "containers-unicode-symbols" "" {})
<clever> evanm: yeah, i can reproduce the problem here, thats strange
<evanm> clever: I am on 19.3pre so I am using ghc8.6.3 by default
<__monty__> There's nothing the scale of AUR yet though. And Nixpkgs is less groomed than the arch repos are anyway, afaik.
kisik21 has quit [Remote host closed the connection]
<linarcx> __monty__: thank you.
<clever> [clever@amd-nixos:~/apps/nixpkgs]$ nix-build -E 'with import <nixpkgs> {}; haskell.lib.doJailbreak (haskell.packages.ghc863.callHackage "containers-unicode-symbols" "" {})'
<clever> evanm: this can reproduce the issue
<linarcx> guys. i have to set sddm theme via this option: services.xserver.displayManager.sddm.theme = "maldive". but it is not working. why?
Makaveli7 has quit [Quit: Leaving]
<evanm> clever: so happy that I brought you something more interesting than a typo :-)
<clever> evanm: i think the problem is that the jailbreak package doesnt jailbreak constraints inside a cabal if statement
<clever> evanm: it has a cabal flag to switch between >=0.4 ^ <0.5, or >=0.5 & < 0.6
<clever> evanm: but no way to support 0.6 itself!
<evanm> clever: only I blunder into something so weird
<weebull[m]> simpson: That's basically it, yes.
<clever> > lib.concatStringsSep " " (builtins.attrNames haskell.packages)
<{^_^}> "ghc822 ghc822Binary ghc844 ghc861 ghc862 ghc863 ghc863Binary ghcHEAD ghcjs ghcjs84 ghcjs86 integer-simple"
<clever> evanm: i'm thinking, try an older ghc, until the jailbreak package is fixed
<clever> evanm: you may also want to file a bug on https://github.com/peti/jailbreak-cabal/issues
<__monty__> That's actually a feature of jailbreak-cabal.
<linarcx> why sddm theme not work? services.xserver.displayManager.sddm.theme = "maldive
<__monty__> Removing conditional bounds apparently lead to more problems not less.
<evanm> clever: Thank you
<simpson> weebull[m]: Yeah. Something I'm considering for my $DAYJOB is an overlay with the specific packages and versions that we need, of e.g. some older Python packages. An overlay clips onto nixpkgs in a way that would let you treat nixpkgs as a sort of core component or abstract component which is pinned to a specific version and only bumped with care and planning.
<clever> __monty__: the package has a stupid upper bound, and breaks every time containers upgrades too far, and there is no way to force it to see if things are still compatible
<clever> __monty__: and they have different bounds, based on cabal flags!
kp__ has quit [Quit: WeeChat 2.4]
<clever> also, i have to run now
<evanm> clever: me too
<__monty__> clever: Yeah but someone complained about this jailbreak issue earlier and someone more knowledgeable than me gave a reason why it is the way it is.
kp__ has joined #nixos
<weebull[m]> simpson: I'm not so worried about pinning right now, but wanting something that can be easily shared. Forking nixpkgs seems to be heavyweight.
<{^_^}> [nixpkgs] @deliciouslytyped opened pull request #56787 → emacs26: adds parameter siteStart: don't hard-code ./site-start.el → https://git.io/fhxUB
<linarcx> help me please.
<weebull[m]> simpson: If it could live in the repo of the project, that would be great.
<simpson> weebull[m]: Don't fork. *Pin*.
<simpson> Anything you need to change in nixpkgs, you can change in the overlay, and you can put that overlay in whichever repo you like.
<tilpner> linarcx: Are you using "maldives"?
<tilpner> linarcx: The s is important, your line doesn't have it
<linarcx> tipner: yes. its not working.
<weebull[m]> simpson:
<tilpner> How is it not working?
<tilpner> Are other themes working?
<weebull[m]> simpson: I'm currently looking at http://nbp.github.io/slides/NixCon/2017.NixpkgsOverlays/. This what you mean?
<linarcx> how find their names?
<tilpner> linarcx: I looked at the sddm output directory
<bricewge> I'm trying to add a kernel module to nixpkgs, but I can't find how to test it. Usually for packages I use an overlay but in that case it doesn't work. Can I have some help?
<tilpner> It appears there are "elarun", "maldives", and "maya" by default
<simpson> weebull[m]: Oh hey, nice find! Those slides are more information than I knew before about overlays. Thanks.
<linarcx> tilpner: Thank you. I'll try it now.
<tilpner> simpson: TBF, developing modules that are already in nixpkgs without your own checkout can be annoying and needs more care than overlays
<linarcx> tilpner: where is sddm output directory?
<weebull[m]> simpson: There's also a video, but I've yet to watch it.https://www.youtube.com/watch?v=6bLF7zqB7EM&feature=youtu.be&t=39m50s
<simpson> tilpner: Well, are we talking about checkouts or deployments? Clones or forks? Developer machines or production machines?
<tilpner> linarcx: cd $(nix-build --no-out-link '<nixpkgs>' -A sddm)/share/sddm/themes
orivej_ has quit [Ping timeout: 255 seconds]
zupo has joined #nixos
<linarcx> tilpner: Thank you so much.
xkapastel has joined #nixos
mariel__ has quit [Ping timeout: 258 seconds]
linarcx has quit [Remote host closed the connection]
JonReed has joined #nixos
<hyperfekt> tilpner: btw, i got it to work, thanks to nix-diff and some help by clever
<tilpner> simpson: That distinction is probably important, but I didn't mean to start that discussion. I just wanted to point out that while pinning feels cleaner, it does have disadvantages (IMO). I pin too, but it gets annoying when I want to contribute my changes back
<tilpner> hyperfekt: Yay! What was the issue that caused the rebuild?
<hyperfekt> tilpner: thanks again for your guidance! end result is here: https://github.com/hyperfekt/nixos-cfg/tree/master/patched
<exarkun1> I'm trying to build an armv6l kernel to boot a nixos system with qemu-system-arm but my efforts all result in a hung qemu-system-arm that makes no progress. I'm providing a kernel and the versatile dtb. Do I need something else? an initrd?
<hyperfekt> tilpner: Since cp copies the mode from the source and I was copying from the read-only nix store, I used no-preserve=mode, which dropped the execute bit off of a script, which changed its identity.
<simpson> tilpner: Oh, sure. I just wanted to share a portion of an already-researched professional opinion with weebull[m] in an indirect way.
<tilpner> hyperfekt: Oh, that makes sense
kisik21 has joined #nixos
<kisik21> Oops! Seems like I forgot to add a module or two to my initrd! Does NixOS properly support booting from LVM thin pools? Adding "dm_thin_pool" to boot.initrd.something-something-kernelModules doesn't seem to help.
<tilpner> exarkun1: Have you tried qemu-user? That's what I used for building my aarch64 kernels, and it worked great
<tilpner> (There's even a module for it, that does all the work)
<tilpner> simpson: Yeah, I shouldn't have nitpicked, sorry :)
<exarkun1> tilpner: Use qemu-user to just run the build without booting a full system?
<tilpner> exarkun1: Exactly. It tells Nix that it suddenly can build for that architecture too, and then it just works
<exarkun1> sounds nice.
<kisik21> tilpner: Woah! Any guides for setting it up on NixOS?
<kisik21> I need it to build an armv7a system...
<tilpner> The qemu-user packages are also defined in that repository
<exarkun1> My build system is currently Ubuntu, though, which I assume makes it all much harder.
<tilpner> Oh, yes, that might be a little bit more difficult. Still doable though, if you're sufficiently frustrated already
fusion809 has quit [Remote host closed the connection]
ilmu has quit [Ping timeout: 255 seconds]
<tilpner> Though I think if you don't need riscv, you can just use proper qemu instead
<tilpner> At least it works here
<tilpner> (proper, as in "from nixpkgs")
<noonien> how can i reinstall nixos using an existing confiuration, while keeping /home? i've booted from a live image and mounted everything
<kisik21> noonien: Use nixos-install as usual. It does not destroy /home AFAIK.
estrom has joined #nixos
<hyperfekt> noonien: NixOS itself will never touch /home. nixos-install is not too dissimilar to nixos-rebuild.
<kisik21> It actually uses the same kind of stuff as nixos-rebuild internally.
<kisik21> but it uses the new "nix" command instead of nix-build
<noonien> hmm, what about /etc/nixos?
petersjt014 has quit [Read error: Connection reset by peer]
<kisik21> /mnt/etc/nixos needs to contain the config you want to have
<kisik21> same as when you installed it
<noonien> oh, yeah, makes sense that it doesn't touch it
<hyperfekt> noonien: That neither, unless you've used the env module to put files there. But even then I think it would only add, not overwrite.
<noonien> will it delete everything else besides home?
<kisik21> It shouldn't delete anything it hasn't created in the first place.
<noonien> (because that's what i want it to do)
<kisik21> Oh then just use `rm -rf /mnt/nix /mnt/etc /mnt/var`, I think it's enough
<kisik21> oops do not delete /etc
<kisik21> you'll nuke your config :3
<noonien> i've got a backup of it, just in case :D
<noonien> what about /boot?
<hyperfekt> noonien: No, basically it just puts the new version of NixOS into the store and adds the boot entry. For example your /var should be safe, too.
<noonien> cool cool
<kisik21> hyperfekt: noonien specifically said they want the system to be nuked instead of home
<kisik21> s/instead of/except/
yl has joined #nixos
<noonien> i should not run ` nixos-generate-config --root /mnt`, since i've already got my config, right?
<noonien> just nixos-install
<hyperfekt> noonien: correct.
<noonien> awesome!
<kisik21> You don't need to. But if you wanna regenerate hardware-configuration.nix you could do it.
<kisik21> I doubt it will be needed except if you change your partition table.
<noonien> nah, no hardware has changed
<noonien> not even the partition table
<kisik21> awesome, just run nixos-install then!
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/770d3ca4910 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<hyperfekt> Does nixos-install get rid of imperatively created users? I only ever used the module.
<kisik21> Anything imperative is user's problem. Set users.mutableUsers if you want NixOS to manage users exclusively, but then you cannot use useradd command (and also you cannot change passwords with passwd).
<kisik21> I personally have it set because I like my users set in stone and I rarely change passwords...
<hyperfekt> Same here. Turns out it actually merges the declarative and mutable users on every activation. That's so awesome.
<rycee> laalf: You can use `fetchGit` instead of `fetchTarball` or use nix-channel and instead import `<home-manager/nixos>`. I believe both those options should work for nixos-install.
<laalf> rycee: fetchGit works? o...ok? i can see about that later maybe. there are no nix-channel options in nixos, right?
<rycee> laalf: For the channel case you'd have to add and uppdate the channel using the nix-channel tool first.
<laalf> rycee:still the question remains: will home-manager eventually get into nixos? with the options i am importing?
ErAsMuS has quit [Read error: Connection reset by peer]
<hyperfekt> Setting home-manager as a channel requires me to trust you though, given that you could overwrite basically anything with that overlay, right rycee ?
<hyperfekt> *trust you ultimately. Of course I already trust you to a degree, I would just prefer for you not to have full control over my computer available if you get what I mean. ;)
zupo has quit [Ping timeout: 246 seconds]
<rycee> laalf: I don't know. It hasn't been discussed but I don't have anything against it if people think it is important. But I don't have time to work on it.
<tilpner> hyperfekt: If you already use HM, it has a lot of power. Like sending away your private keys, installing a keylogger, etc.
<laalf> rycee:id say that its rather important. home-manager is easy to use and as we all know: nix-env is eh. id think that getting that into the options wouldnt be such a hassle since you already did that
<pie__> whats the function for getting the item at an indexin a list? :/
<tilpner> builtins.elemAt
<tilpner> (Also available via lib.elemAt)
<pie__> ah, elemAt
<pie__> i tried various variations in index and idk, heh
<hyperfekt> tilpner: Well, I am using the home-manager from the 18.09 channel, which I trust someone has looked over like with all other packages.
<rycee> hyperfekt: Yeah, that is true but HM is a relatively small piece of software so somebody who's interested could probably review all of it in a few days. Of course independent reviewers of PRs are always welcome. I try to keep an eye on each commit but more eyes are better.
<hyperfekt> Ideally I'll move forward with my VM sandbox solution this year so I can actually put my private key on this system, though. :/
ErAsMuS has joined #nixos
lsyoyom has quit [Ping timeout: 255 seconds]
<rycee> Btw. Security wise using nix-channel is better since you are in control over when the updates happen.
<tilpner> hyperfekt: Well, maybe. I don't mean to incite paranoia, but it's probably fairly easy to sneak in an unreviewed version as a single person (or even two people). That also goes for many other packages though, it's all terrible :(
orivej has joined #nixos
<rycee> The ferry is arriving now. Have to leave. Might beback later.
kisik21 has quit [Quit: ERC (IRC client for Emacs 26.1)]
<hyperfekt> tilpner: Yeah, that's why I don't feel comfortable security-wise right now. Eventually my aim is to run every process in its own virtual machine.
<hyperfekt> bye!
kisik21 has joined #nixos
<tilpner> hyperfekt: Same here (Not every process, but every logical task)
<hyperfekt> My previous distro was Qubes OS, but I couldn't really make it my own because the friction for doing anything was so high.
<tilpner> hyperfekt: Have you seen appvm?
<tilpner> Ahh, yes, you have
fusion809 has joined #nixos
<hyperfekt> tilpner: I didn't even remember I had! I'm not really into manually defined packages though, the hurdle is much too high for people to actually be running their stuff in VMs
<judson_> NixOS desktop folks who use Chromium: do you have a "SingletonSocket" file at ~/.config/chromium/SingletonSocket ?
<judson_> Trawling their source code, I think I should, but don't seem to.
<tilpner> judson_: Only while running it
<MichaelRaskin> I so far accept nsjail containers
crmlt has joined #nixos
<tilpner> hyperfekt: So what else, if not this? There could be wrappers as easy as "mkAppVM evince"
<judson_> tilpner, that's what I'd expect.
<judson_> I've had a longstanding issue where Chromium doesn't behave as a singleton after an update.
<MichaelRaskin> My run-as-subuser wrapper accepts quite a few parameters — what directories to pass, what to allow w.r.t. network… Sound…
<MichaelRaskin> (… webcam … GPU …)
JonReed has quit [Ping timeout: 256 seconds]
<pie__> i need a quick hack for stripping a trailing slash from a path...
<hyperfekt> What MichaelRaskin details is main problem, there's just so much to define whether to pass or not. Maybe if we could get a solution into nixpkgs so every package is maintained with those definitions it would be feasible.
<pie__> ooh are we talking about qubes on nix or something
* pie__ needs to read scroll later
<hyperfekt> pie__: The holy grail
kisik21 has quit [Remote host closed the connection]
lsyoyom has joined #nixos
<MichaelRaskin> Well, I guess with a VM-vs-nsjail-vs-firejail, too — that would be the least of worries
<pie__> only when virtualization complexits goes down :p
<samueldr> > builtins.toPath "/etc//" # pie__
<{^_^}> "/etc"
<MichaelRaskin> containers are cheap
<MichaelRaskin> Also, this difference is not really per-package
<pie__> all this separation stuff is great imho, but lately ive been increasingly convinced of code size not being great for the amount of holes youhave :(
<pie__> samueldr, ty
kisik21 has joined #nixos
<hyperfekt> pie__: What do you mean by complexities?
<MichaelRaskin> The question is whether all the code runs in the vulnerability-relevant time
<tilpner> hyperfekt: The user could globally set settings for all vms
<pie__> MichaelRaskin, hm, didnt think of that
<tilpner> hyperfekt: That's not perfect, but a lot better than what we currently have (and it would still allow for individual overrides)
<pie__> MichaelRaskin, but thats also a "separation" thing :D
Supersonic has quit [Quit: Bye]
<pie__> anyway i dont want to derail too much
<hyperfekt> Containers aren't really good at security isolation though.
<pie__> well, Containers, or containers
<pie__> or containers?
<MichaelRaskin> Well, the point is that by the time the browser runs, it should be in a pre-constructed sandbox, which is not supposed to change, and cannot be worse than running outside the sandbox on stock NixOS (where userns is already enabled)
mbrgm_ has joined #nixos
<MichaelRaskin> hyperfekt: well, we have already seen a leak where containers would be better than VMs.
<MichaelRaskin> Everything is terrible
<hyperfekt> MichaelRaskin: Which one are you referring to?
crmlt has quit [Ping timeout: 255 seconds]
<MichaelRaskin> One of the Intel-cannot-check-speculative-RAM-access-correctly leaks, where mapped-root-in-container would get mostly properly restricted, but root-in-VM would not and could infer something about host RAM
stepcut has joined #nixos
mbrgm has quit [Ping timeout: 264 seconds]
mbrgm_ is now known as mbrgm
ErAsMuS has quit [Quit: END-AUMF]
<hyperfekt> I just don't trust root-in-container to stay in there, frankly.
<MichaelRaskin> Well, then NixOS, Debian and Ubuntu default kernel settings are unacceptable for you (userns enabled)
ryantm has quit [Remote host closed the connection]
Supersonic has joined #nixos
endformationage has quit [Quit: WeeChat 2.3]
<hyperfekt> It's less about the userns mechanism and more about the fact that the Linux kernel is not built to be safe and thus necessarily exposes an interface to all processes that is exploited on the regular.
zarel has joined #nixos
ErAsMuS has joined #nixos
<pie__> hyperfekt, i was gonna say openbsd the holy grail but im not sure about that either sadly :p
<pie__> woo kernels~
fendor has joined #nixos
<emily> openbsd's syscall attack surface may be smaller than linux but it's still a big monolithic ring 0 kernel written in C
<hyperfekt> judson_: I have the Singleton as well.
<tilpner> Just buy a bunch of Pis and run every application on different machines :/
<judson_> Thanks. What I found was that when I launched Chromium anew, I got the Singletons, which makes me wonder if they... expire? Get clobbered by updates?
<judson_> Next time I nixos-rebuild, I need to check that they're present before. I kind of hope they get clobbered, because otherwise it means they go away on their own?
<tilpner> No idea, I don't even have it installed properly
<hyperfekt> Yeah, even paravirtualized memory management in the hypervisors is untrustworthy. Anything more complicated than the most basic hypercalls is going to get you exploited.
<hyperfekt> tilpner: Not even necessarily better because the network drivers are all terrible :<
<tilpner> hyperfekt: Ehh, still smaller interface?
<emily> did you know that computers are bad?
<kisik21> tilpner: Hasn't Joanna Rutkowska (the creator of Qubes) published a paper that proves that running separate applications/identities on separate machines isn't actually as secure as a hypervisor and a bunch of AppVMs?
<hyperfekt> tilpner: Pretty much unaudited interface, though.
<tilpner> kisik21: Maybe. Link it to me if you find it, please?
<kisik21> I had it but I lost the link :3 I'll try to find it rn
alienpirate5 has joined #nixos
work_ has joined #nixos
<hyperfekt> Yeah, Joanna's research is what I'm basing my statements here on.
<pie__> emily, ye
Dagger has quit [Excess Flood]
<hyperfekt> But with Spectre I'm not entirely sure that's true anymore. We should grind all the chips back into sand.
<pie__> im still not quite sure wtf is going on but spectre is "ok" if you have things separated into different processes i think
<pie__> dont quote me on tht
Dagger2 has joined #nixos
<tilpner> kisik21++
<{^_^}> kisik21's karma got increased to 1
<pie__> "In the face of this reality, we have shifted the security model of the Chrome web browser and V8 to process isolation. " https://arxiv.org/abs/1902.05178
<samueldr> no need to grind it back to sand, use them in "offline" computation only environments, at least for those that are worth it on the perfs side
orivej has quit [Ping timeout: 246 seconds]
<hyperfekt> pie__: Not really. It's just a made harder by the mitigations implemented by the kernel (which tries to prevent access to gadgets), but not safe.
<pie__> hyperfekt,please correct me: my limited understanding is "meltdown" is cross address space stuff? which is mitigated by flushing (known) side channel mechanisms on context switches (hence the performance debacle)
<hyperfekt> Meltdown is just one of the Spectre-class vulnerabilities I'm referring to, which is the general principle of abusing speculative execution and timing info to leak data.
<pie__> yeah, the taxonomy has changed a bit and im still not 100% sure what the essence of certain tings is
teh[m] has quit [Ping timeout: 264 seconds]
kisik21 has left #nixos ["ERC (IRC client for Emacs 26.1)"]
glasserc has quit [Read error: Connection reset by peer]
justanotheruser has quit [Ping timeout: 246 seconds]
kisik21 has joined #nixos
glasserc has joined #nixos
novakovic has quit [Remote host closed the connection]
<kisik21> having a second /nix/store on a flash drive, how to copy paths from this /nix/store to the /nix/store to my hard drive? assuming the flash drive /nix/store is available at /mnt/loop/nix/store
<kisik21> I surely can mount /nix/store read-write and copy paths with cp but it feels like a dirty hack
<symphorien> cp won't work
fusion809 has quit [Read error: Connection reset by peer]
<hyperfekt> pie__: Important things to know are: Never schedule contexts that don't trust each other on the same physical core until the processors are redesigned.
<symphorien> there is a db of valid paths
<symphorien> you should use nix copy
<symphorien> I think it takes a --store arguments
<symphorien> I don't know how to use it though
<tilpner> Try nix copy --from
<{^_^}> [nixpkgs] @jb55 opened pull request #56788 → clightning: 0.6.3 -> 0.7.0 → https://git.io/fhxkM
<kisik21> symphorien: nix copy --from /mnt/loop --all --no-check-sigs
<kisik21> symphorien: it works!
<kisik21> symphorien++
<{^_^}> symphorien's karma got increased to 16
Neo-- has quit [Ping timeout: 255 seconds]
<pie__> hyperfekt, makes sense i guess
zupo has joined #nixos
kisik21 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @calbrecht opened pull request #56789 → nixos/kubernetes: stabilize cluster deployment/startup across machines → https://git.io/fhxkF
shabius has joined #nixos
shabius has quit [Max SendQ exceeded]
shabius has joined #nixos
arjen-jonathan has joined #nixos
<joepie91> ,locate libX11.so.6
<{^_^}> Found in packages: xlibs.libX11
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
<{^_^}> [nixpkgs] @Profpatsch merged pull request #56787 → emacs26: adds parameter siteStart: don't hard-code ./site-start.el → https://git.io/fhxUB
<{^_^}> [nixpkgs] @Profpatsch pushed commit from @deliciouslytyped to master « emacs26: adds parameter siteStart: don't hard-code ./site-start.el »: https://git.io/fhxIJ
<pbb> Is it possible to set custom parameters for the fsck command run at boot?
JonReed has joined #nixos
<{^_^}> [nixpkgs] @FRidh merged pull request #56653 → fldigi: 4.1.00 -> 4.1.01 → https://git.io/fhAKt
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « fldigi: 4.1.00 -> 4.1.01 »: https://git.io/fhxIl
<hyperfekt> pbb: Not without patching NixOS: https://git.io/fhxI0
<joepie91> ,locate libGL.so.1
<{^_^}> Found in packages: libglvnd, primusLib, libGLU_combined, xorg_sys_opengl
<pbb> hyperfekt: okay, thanks. so would it be possible to override the stage-1 derivation somehow?
zupo_ has joined #nixos
<hyperfekt> pbb: Yes, you can use disabledModules to import your own version instead: https://nixos.org/nixos/manual/#sec-replace-modules
<{^_^}> [nixpkgs] @FRidh merged pull request #56652 → fish: 3.0.1 -> 3.0.2 → https://git.io/fhAKU
<{^_^}> [nixpkgs] @FRidh pushed 0 commits to master: https://git.io/fhxIz
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « rabbitmq-server: 3.7.11 -> 3.7.12 »: https://git.io/fhxIg
<{^_^}> [nixpkgs] @FRidh merged pull request #56731 → rabbitmq-server: 3.7.11 -> 3.7.12 → https://git.io/fhA58
zupo has quit [Ping timeout: 245 seconds]
<hyperfekt> pbb: Mind that stage-1.nix is a module, not a derivation, which is why you can use this mechanism. Just terminology. Although that module does create a derivation with the boot script.
<{^_^}> [nixpkgs] @FRidh merged pull request #56706 → ipopt: 3.12.11 -> 3.12.12 → https://git.io/fhAD5
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « ipopt: 3.12.11 -> 3.12.12 »: https://git.io/fhxIa
<{^_^}> [nixpkgs] @FRidh merged pull request #56714 → jruby: -> → https://git.io/fhAyo
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « jruby: -> »: https://git.io/fhxIV
<{^_^}> [nixpkgs] @timokau merged pull request #56781 → Sage python upgrade fixes → https://git.io/fhAjN
<{^_^}> [nixpkgs] @timokau pushed 4 commits to master: https://git.io/fhxIw
<{^_^}> [nixpkgs] @FRidh merged pull request #56672 → gecode: 6.1.0 -> 6.1.1 → https://git.io/fhA69
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « gecode: 6.1.0 -> 6.1.1 »: https://git.io/fhxIr
<{^_^}> [nixpkgs] @FRidh merged pull request #56704 → igv: 2.4.17 -> 2.4.19 → https://git.io/fhADo
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « igv: 2.4.17 -> 2.4.19 »: https://git.io/fhxIK
<{^_^}> [nixpkgs] @FRidh merged pull request #56702 → zafiro-icons: 0.8.4 -> 0.8.7 → https://git.io/fhADT
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « zafiro-icons: 0.8.4 -> 0.8.7 »: https://git.io/fhxI6
<{^_^}> [nixpkgs] @FRidh merged pull request #56658 → form: 4.2.0 -> 4.2.1 → https://git.io/fhAK0
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « form: 4.2.0 -> 4.2.1 »: https://git.io/fhxIi
<pbb> hyperfekt: thanks, but because it's a module I guess I can not use something like override, but I would have to add the complete module to my nix config?
<{^_^}> [nixpkgs] @FRidh merged pull request #56643 → featherpad: 0.9.2 -> 0.9.4 → https://git.io/fhAof
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « featherpad: 0.9.2 -> 0.9.4 »: https://git.io/fhxIP
<{^_^}> [nixpkgs] @FRidh merged pull request #56639 → fasm-bin: 1.73.08 -> 1.73.09 → https://git.io/fhAr7
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « fasm-bin: 1.73.08 -> 1.73.09 »: https://git.io/fhxI1
<{^_^}> [nixpkgs] @FRidh merged pull request #55311 → haproxy: 1.9.1 -> 1.9.3 → https://git.io/fh9up
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « haproxy: 1.9.1 -> 1.9.3 »: https://git.io/fhxIM
<{^_^}> [nixpkgs] @FRidh merged pull request #56609 → cherrytree: 0.38.7 -> 0.38.8 → https://git.io/fhA2z
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « cherrytree: 0.38.7 -> 0.38.8 »: https://git.io/fhxID
<hyperfekt> pbb: Exactly. You could apply a patch to it, though.
xkapastel has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @FRidh merged pull request #55217 → pyotherside: 1.5.3 -> 1.5.4 → https://git.io/fhSAC
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « pyotherside: 1.5.3 -> 1.5.4 »: https://git.io/fhxIy
<{^_^}> [nixpkgs] @FRidh merged pull request #55310 → groonga: 8.1.0 -> 8.1.1 → https://git.io/fh9ud
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « groonga: 8.1.0 -> 8.1.1 »: https://git.io/fhxI9
<{^_^}> [nixpkgs] @FRidh closed pull request #54741 → python37Packages.adal: 1.2.0 -> 1.2.1 → https://git.io/fhieK
<pbb> hmpf, it sounds like it's not worth it. I will just disable fsck with checkJournalingFS = false
<pbb> the problem is that fsck.f2fs takes ages with the default options, because it does a full check even when the signature is clean
<{^_^}> [nixpkgs] @FRidh merged pull request #54860 → bs1770gain: 0.5.1 -> 0.5.2 → https://git.io/fhPdI
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « bs1770gain: 0.5.1 -> 0.5.2 »: https://git.io/fhxIQ
<{^_^}> [nixpkgs] @FRidh closed pull request #54715 → python37Packages.hyperframe: 5.1.0 -> 5.2.0 → https://git.io/fh611
<hyperfekt> pbb: If that's the case maybe you want to open a PR that changes that?
<pbb> maybe I'll put together a PR to add an option for the flags
<hyperfekt> hehe
<pbb> there's some btrfs-specific flags in there already, I think it would be nicer if this can be handled by the module
<{^_^}> [nixpkgs] @FRidh merged pull request #52853 → libgeotiff: 1.4.2 -> 1.4.3 → https://git.io/fhUhx
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « libgeotiff: 1.4.2 -> 1.4.3 »: https://git.io/fhxI5
<pbb> by the btrfs module that is
<hyperfekt> Given that this is the second filesystem that would make use of that kind of option, I concur.
<{^_^}> [nixpkgs] @FRidh merged pull request #56752 → star: 2.7.0a -> 2.7.0c → https://git.io/fhAbO
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « star: 2.7.0a -> 2.7.0c »: https://git.io/fhxIF
orivej has joined #nixos
<hyperfekt> sorry, we both misread. any filesystem that is NOT btrfs uses those flags
<pbb> I also think it makes sense for users to customize those parameters
<pbb> ok, interesting
<{^_^}> [nixpkgs] @FRidh merged pull request #56656 → fluidsynth: 2.0.3 -> 2.0.4 → https://git.io/fhAK3
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to staging « fluidsynth: 2.0.3 -> 2.0.4 »: https://git.io/fhxIb
evanm has quit [Ping timeout: 256 seconds]
<pbb> actually I shouldn't have the problem with long fsck times then
<pbb> because -a is the option I wanted to add
<__monty__> Dang son, some serious merging going on.
<pbb> I love the copytoram option on the nixos install iso
<hyperfekt> pbb: I don't really know anything about all this stuff but fsck -A does not seem to be the same as fsck.f2fs -a
<pbb> whyere did you see -A?
<hyperfekt> __monty__: Yeah, that autoupdate system is pretty cool!
<pbb> imo nixos uses -a for all filesystems but btrfs, and cyanogenmod changed to -a to make the boot process faster
<hyperfekt> sorry i'm a dumbo
<pbb> so it should be fine
<pbb> happens
johanot has joined #nixos
<hyperfekt> i was just trying to figure out what -a does, looked in the manpage, found -A and forgot that it wasn't capitalized
<hyperfekt> that resolves my confusion about the -A option's role in that script though
<pbb> now the big question: do I want to enable automatic discards on f2fs? ssd manufacturers (intel) say it's best to leave it off and do manual trims once in a while for best performance. does f2fs do any magic that makes it worth to enable automatic discards?
<pbb> I think they do the discards asynchronously, which should remove most of the performance penalty from automatic discards, but I'm still unsure
<hyperfekt> well in upstream 4.19 it is on by default apparently
<pbb> I guess I'll stick with the default options then
gagbo has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @Ma27 opened pull request #56790 → nixos-install: tell the user what to do if setting a root password failed → https://git.io/fhxLW
rycwo has quit [Quit: WeeChat 2.2]
<{^_^}> [nixpkgs] @jtojnar merged pull request #56717 → python2Packages.pyqt4: Fix build → https://git.io/fhAST
<{^_^}> [nixpkgs] @jtojnar pushed 3 commits to master: https://git.io/fhxLu
mekeor has joined #nixos
wedens has quit [Quit: Connection closed for inactivity]
Thra11 has quit [Ping timeout: 240 seconds]
dansho has joined #nixos
<dansho> i have a problem with the xfe file browser where it segfaults on startup, is there a way to fix it or an alternative file browser i could try?
<tilpner> xfce uses thunar, right?
<tilpner> You could try gnome3.nautilus
<tilpner> And I think the KDE equivalent would be kdeApplications.dolphin
justanotheruser has joined #nixos
<tilpner> Apparently spaceFM is a file manager too
<justanotheruser> I am running into an issue with feh, when I have displayManager.sessionCommands = ''${pkgs.feh}/bin/feh --no-fehbg --bg-scale /home/andrew/wallpapers/space_wallpaper.png & # other commands below''; it doesn't set my background. however I can run that same command in my shell manually and it will show up and stay. Any idea what might be the issue here? I'm using lightdm
noonien has quit [Quit: Connection closed for inactivity]
<justanotheruser> hmm, lightdm has a background attribute, let me try that actually
<dansho> i'll give thunar a try
<justanotheruser> oh thats for login screen background
<tilpner> dansho: If you're xfce, that should be the default. I would expect it to segfault
<tilpner> *you're using
<dansho> justanotheruser: i place my background image in ~/.background-image and the displayManager.session should be configured to load it by default i think
<justanotheruser> dansho: ty
<dansho> tilpner: not sure if i'm "using" xfce, the only other xfce package i use is xfce.mousepad
arjen-jonathan has quit [Ping timeout: 259 seconds]
<tilpner> dansho: Well, you said "i have a problem with the xfe file browser"
<tilpner> dansho: And I read that "xfe" as "xfce"
justanotheruser has quit [Quit: WeeChat 2.2]
<dansho> thunar works however =)
justanotheruser has joined #nixos
<dansho> xfe is a different thing from xfce
<{^_^}> [nixpkgs] @f--t closed pull request #56769 → Fix/rpy2 build → https://git.io/fhAAE
estrom has quit [Remote host closed the connection]
xkapastel has joined #nixos
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to release-19.03: https://git.io/fhxLx
<catern> who can review pull requests for new perl packages?
vk3wtf has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @pSub merged pull request #56780 → filet: init at 0.1.0 → https://git.io/fhAjb
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/fhxtI
goibhniu has joined #nixos
jomik has joined #nixos
<jomik> Hey guys - is there an easy way to override a module? That is I want to override the polybar configuration setup that home-manager has with my own instead.
<jomik> I guess I could just make a `mypolybar` module, and use that.
<{^_^}> [nixpkgs] @ryantm merged pull request #56726 → catimg: init at 2.5.0 → https://git.io/fhAHV
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fhxtm
<jomik> Thanks!
<dansho> how would i go about changing the appearance of the nix-shell prompt? i'd like to be able to tell if i'm in a nix shell or not
<jomik> dansho:IIRC there is a IN_NIX_SHELL env variable set when you are in a nix-shell
<ToxicFrog> dansho: you have to do that via your shell's normal mechanism for prompt configuration, all nix-shell does is set a bunch of environment variables (and possibly download some packages) and then invoke your normal shell.
<dansho> ah, ok thanks
<ToxicFrog> $IN_NIX_SHELL tells you if you're in a nix-shell or not, and you can make a decent guess at which packages the shell was invoked with by looking at $buildInputs
<tilpner> You can use shellHook to set a new PS1
<ToxicFrog> E.g. I do `local packages="$(echo $buildInputs | sed -E 's:/nix/store/[^-]+-::g')"`
drakonis has joined #nixos
<tilpner> dansho: ^
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ToxicFrog> And then insert `[❅ ${packages}]` into the prompt (with a bunch of extra formatting codes omitted for clarity)
bpierre has joined #nixos
<tilpner> "Tight Trifoliate Snowflake" for anyone whose fonts also don't like that character
<ToxicFrog> It was the closest thing I could find in unicode to the Nix logo
<ToxicFrog> End result looks like this: https://i.imgur.com/5tT14LI.png
noonien has joined #nixos
<tilpner> Looks nice, but it might break for larger packages with more inputs
<tilpner> (So probably add a cutoff at... maybe 5 packages)
<ToxicFrog> There's more stuff not pictured there to truncate it if needed :)
<tilpner> Oh :)
<ToxicFrog> I'm also not generally using it for dev environments, but for "I need to run a one-off command and the package isn't in systemPackages"
<bpierre> Hello I am trying to install NixOS but can’t get the display server to start. When checking `journalctl`, I get `(EE) no screens found(EE)`. It’s a Thinkpad P52 with a Nvidia GPU. I tried to load the nouveau driver (`modprobe nouveau`), but it doesn’t work either (`secboot: error during falcon reset: -110`). Any idea?
nikivi has quit [Read error: Connection reset by peer]
nikivi has joined #nixos
erictapen has joined #nixos
crmlt has joined #nixos
jomik has quit [Quit: WeeChat 2.4]
ddellacosta has joined #nixos
Olgierd has quit [Quit: WeeChat 1.9.1]
astrofog has quit [Remote host closed the connection]
zupo has joined #nixos
vk3wtf has joined #nixos
jomik has joined #nixos
<jomik> clever: Should disabledModules work in home-manager? Cuz it does not seem to :/
Olgierd has joined #nixos
Olgierd has quit [Client Quit]
npmccallum has quit [Quit: npmccallum]
<clever> jomik: not sure, and it can be tricky to know what the path should be
polman has quit [Ping timeout: 246 seconds]
johanot has quit [Ping timeout: 255 seconds]
<jomik> I want to disable the file "modules/services/polybar.nix", in the git repo. Any idea how I can figure out how? It does not complain about the disabledModules attribute - it just complains that an option is defined twice.
<clever> jomik: try services/polybar.nix, or something/modules/services/polybar.nix ?
<clever> it may need more or less dir elements
* clever heads off to bed
goibhniu has quit [Ping timeout: 268 seconds]
<jomik> Thanks :)
johanot has joined #nixos
<joepie91> that should be on the wiki
<clever> joepie91: ldd simply sets those debug vars, and then runs ld.so on the ELF file
<jomik> Still no luck with those sadly. I can not find a reference to `disabledModules` in the code either :(
<clever> joepie91: which is why ldd fails when using a dynamic qemu-user binary, the host ld.so reacts to the debug vars, and prints qemu's x86 deps, rather then the target arm deps!
<joepie91> do we have any wiki documentation about packaging? the actual 'writing the expression' part, not the PR stuff etc.
<clever> jomik: search the nixpkgs repo
* clever heads to bed
<joepie91> clever: nevertheless this is useful for packaging
<clever> joepie91: very
<{^_^}> [nixpkgs] @jtojnar opened pull request #56791 → gnome2: remove aliases → https://git.io/fhxtH
zarel has quit [Quit: Leaving]
<clever> joepie91: related, minecraft will try to dlopen() a 64bit library inside java, and when it fails (due to rpath), it silently assumes its the wrong arch, and tries a 32bit variant, which then fails due to being the wrong arch
<clever> joepie91: it then never shows the error the 64bit one had, and will only ever print an error about trying to load a 32bit lib in a 64bit proc
<joepie91> lol
<clever> i had to dig into the source to track that down
<jomik> But this is a home-manager service, wouldn't home-manager need to support it?
<noonien> hmm, does electrum fail to build on unstale only for me?
<clever> strace helped some
<clever> jomik: home-manager just calls lib.evalModules in nixpkgs
* clever really heads off to bed now, lol
<jomik> Oooh
<noonien> gn
LysergicDreams has joined #nixos
<jomik> Anyone have any idea what the path for home-manager's modules is? I can't seem to get the `polybar` module disabled..
<jomik> I am using home-manager, but I do not have it on a channel, I have it set to fetch master.tar.gz, I need to specify the path to polybar relative to the modules dir.
johanot has quit [Quit: WeeChat 2.2]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/3630a55dea8 (from 29 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<{^_^}> [nixpkgs] @Mic92 merged pull request #56191 → Restrict vim update.py to generated.nix → https://git.io/fhxqL
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhxqt
fendor_ has joined #nixos
<{^_^}> [nixpkgs] @timor opened pull request #56792 → libdwarf: add zlib to buildInputs → https://git.io/fhxq3
fendor has quit [Ping timeout: 246 seconds]
jackdk has joined #nixos
crmlt has quit [Ping timeout: 245 seconds]
<charukie1icz> I'm trying to replicate something in the tutorial, running `nix-shell --run ghci -p haskellPackages.ghc haskellPackages.HTTP`, but it appears that the HTTP package never gets loaded. Running `import Network` or `import Network.HTTP` always results in: Could not find module 'Network'. Does anyone know what I am doing wrong?
<charukie1icz> The same thing happens when I copy and paste an example Haskell script that uses #! /usr/bin/env nix-shell as an interpreter. The Haskell code can't import any packages loaded via the nix-shell -p flag.
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/07f8621b6ff (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<noonien> is there a way of keeping just a fixed number of generations in the boot menu? i'm using systemd-boot
Zer000 has joined #nixos
kvda has joined #nixos
JonReed has quit [Ping timeout: 256 seconds]
yl has quit [Ping timeout: 252 seconds]
yl has joined #nixos
<{^_^}> [nixpkgs] @jtojnar pushed to master « gnomeExtensions.dash-to-dock: 64 → 65 »: https://git.io/fhxqV
<ottidmes> noonien: I guess you could use https://nixos.org/nixos/options.html#nix+gc+options to specify a limit, but since its doing GC, its probably not what you want (its probably too aggresive)
gagbo has joined #nixos
<ottidmes> charukie1icz: you will have to use ghcWithPackages to make them visible to ghc
goibhniu has joined #nixos
jomik has quit [Quit: WeeChat 2.4]
<noonien> doing a gc does not delete past generation from the bootloader, it just makes them unbootable
<ottidmes> noonien: you could also just create a systemd service that does what that option does, i.e. call GC and then nixos-rebuild boot to remove them
<noonien> nixos-rebuilt switch doesn't remove them either
<ottidmes> you might want to do a dry-build before calling GC+rebuild
yl has quit [Ping timeout: 258 seconds]
rycwo has joined #nixos
linarcx has joined #nixos
<rycwo> /
rycwo has quit [Client Quit]
<ottidmes> noonien: it should though: https://github.com/NixOS/nixpkgs/issues/3542 unless you mean this issue, but thats not the same as "doesnt remove them"
<{^_^}> #3542 (by jgeerds, 4 years ago, closed): "nix-collect-garbage -d" should also cleanup boot entries
<linarcx> Hi. why zsh config not loaded like other config files. i put it in ~/.zshrc.
<noonien> hmmm, when i get a few generations again, i'll do a garbace collect, rebuild and come back, i've just reinstalled my system
<linarcx> Anybody can help me?
<ottidmes> charukie1icz: here is an example BTW: nix-shell -p 'with import <nixpkgs> { }; haskellPackages.ghcWithPackages (pkgs: with pkgs; [ network ])'
<{^_^}> [nixpkgs] @worldofpeace opened pull request #56793 → fragments: init at 1.3 → https://git.io/fhxqd
<ottidmes> linarcx: its seems like its not loaded by NixOS by default, you could fix that by adding this to your configuration: programs.zsh.interactiveShellInit = ". ~/zshrc"; but better to use '' if ... some check ...; then ... source ...; fi ''
<noonien> linarcx: what does `echo $ZSH_VERSION` say?
<linarcx> noonien: 5.7.1
<{^_^}> #53525 (by nyarly, 7 weeks ago, open): (ruby-modules/gem): (refactor)
<__monty__> nix-collect-garbage ~40GB space saved, sweet : )
<linarcx> ottidmes: I'll try it now.
ErAsMuS has quit [Read error: Connection reset by peer]
<linarcx> Anothe question. it seems that rofi does not exists in repo. how to install it?
<ottidmes> linarcx: I just checked, I actually do have a ~/.zshrc myself, I believe it asked me to generate one when first starting zsh
<noonien> my .zshrc gets loaded ok
<ottidmes> linarcx: what channel are you on? rofi should be there
<linarcx> ottidmes: default channel.
Dedalo has joined #nixos
<ottidmes> linarcx: what are you doing to install it?
<noonien> i've got `shell = pkgs.zsh;` in my user config
<linarcx> ottidmes: nix-env -i rofi
<ottidmes> linarcx: try nix-env -f '<nixpkgs>' -iA rofi instead
<linarcx> ottidmes: Oh nice. what is unwrapped mean?
<Dedalo> Hi guys, I could use some help. I'm trying to generate a Windows 10 USB from NixOS using woeusb, but it doesn't work. I get an error: Cannot create regular file /run/woeusb etc: Read-only filesystem.
erictapen has quit [Ping timeout: 250 seconds]
vk3wtf has quit [Ping timeout: 258 seconds]
<ottidmes> linarcx: you can ignore that, its the way its packages, it uses the same metadata as rofi-unwrapped, while if you install rofi, its actually the wrapped one, and wrapped means that it adds a script that sets the right env variables before exec'ing the real thing
<linarcx> ottidmes: Thank you so much.
__monty__ has quit [Quit: leaving]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/a3b6b49eac9 (from 22 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<linarcx> ottidmes: i've got these: `programs.zsh.enable = true; users.defaultUserShell = pkgs.zsh;`
<ottidmes> linarcx: ah, try this: defaultUserShell = "${pkgs.zsh}/bin/zsh";
<linarcx> ottidmes: I'll try it now.
ErAsMuS has joined #nixos
linarcx has quit [Remote host closed the connection]
<gchristensen> interesting, 18.09 -> 19.03 has broken my xbacklight
<ottidmes> gchristensen: wait, is it released already? or you mean nixos-unstable?
<gchristensen> the 19.03 channel exists
<gchristensen> it sbeta
<ottidmes> ah ok
<gchristensen> I wonder what broke it
fendor_ has quit [Ping timeout: 255 seconds]
<gchristensen> not the kernel bump. maybe x11 changes.
linarcx has joined #nixos
yl has joined #nixos
<laalf> i need an extensive tutorial on how to start sxhkd on bspwm on nixos
chris| has quit [Remote host closed the connection]
chris| has joined #nixos
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/fhxm2
vk3wtf has joined #nixos
<laalf> http://0x0.st/zoA0.nix is my config. if someone would tell me what to do in order to get sxhkd running that would be nice
Guest38658 has quit [Ping timeout: 240 seconds]
<justanotheruser> sorry really basic question. How do I perform the user-equivalent to `sudo nixos-rebuild switch`, resulting in me building `~/.nixpkgs/config.nix`
<ottidmes> justanotheruser: ehm, you don't "build" that file, it just configures nixpkgs
<ottidmes> justanotheruser: what is it that you want to achieve?
<justanotheruser> if, for example, I add pkgs to environment.packages in that file, I want to have those packages installed
<justanotheruser> So is it just nix-channel --update?
linarcx has quit [Remote host closed the connection]
<ottidmes> justanotheruser: to my knowledge config.nix does not have a environment.packages attribute
<justanotheruser> okay, here is what I actually put there services.cron.systemCronJobs = [ "* * * * * echo 'Hello world' >>&/home/andrew/cron.log" ];
<ottidmes> laalf: I just checked, I don't do anything special to get sxhkd working under NixOS, it just comes with bspwm
sigmundv has joined #nixos
<justanotheruser> I want to define the job in config.nix rather than configuration.nix if possible
<laalf> ottidmes: well for me it just doesnt work. i have been trying to get it running for solid 3 hours now.
<ottidmes> justanotheruser: but config.nix just configures nixpkgs with a few options, like allowUnfree, its not like a seperate NixOS configuration, seperate worlds, one configures Nix packages (~/.nixpkgs/config.nix), the other NixOS (/etc/nixos/configuration.nix)
<justanotheruser> I assumed that config.nix overrided configuration.nix
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
freeman42x has quit [Ping timeout: 259 seconds]
<laalf> i should package for guixsd so i have less reasons to go back here
<justanotheruser> anyways, as a general question, if I make changes to config.nix, what command can I run to apply the changes?
<ottidmes> justanotheruser: you don't, config.nix will be imported each time nixpkgs is loaded without an explicit config
<justanotheruser> oh okay, so is configuration.nix the appropriate place to put a specific users crons jobs?
<ottidmes> laalf: maybe add services.xserver.windowManager.default = "bspwm";
<ottidmes> justanotheruser: it is
<justanotheruser> thanks
<laalf> eh, ill give up. plasma is enough for now and ill get back to guixsd later
mekeor has quit [Quit: i love you, rms, i really do :*]
<ottidmes> laalf: pretty sure thats it, since services.xserver.windowManager.session for bspwm starts sxhkd
<laalf> ottidmes: so if i select none+bspwm in sddm it should work
<sondr3> laalf: I ran bspwm on my laptop with NixOS, my configuration was only windowManager and then I configured everything in .xinitrc
<sondr3> I used lightdm though
<ottidmes> I am a lightdm user as well with none+bspwm
goibhniu has quit [Quit: Leaving.]
<laalf> sddm worked on gentoo and arch as well with bspwm
<laalf> so either i am too retarded to type sxhkd in a terminal or something is broken
<sondr3> its probably some configuration that you need to do with sddm, I remember having a bunch of issues with it on Arch
<sondr3> which is why I ended up using lightdm
goibhniu has joined #nixos
<laalf> Fun Fact: There is a 2/10 chance of lightdm starting
<ottidmes> laalf: this is what I am using: https://gist.github.com/msteen/c8d3d9873ea37519e7699282620186e0
<ottidmes> laalf: it might be the xterm bit
vk3wtf has quit [Ping timeout: 252 seconds]
<laalf> hm. will do