gchristensen changed the topic of #nixos to: NixCon 2018 CfP is now open! https://nixcon2018.org/ || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon
<JonReed> oscarvarto: Never used vscode on NixOS, so can't really help :( It seems to be something specific to it.
LnL has quit [Ping timeout: 272 seconds]
<oscarvarto> JonReed, OK. Don't worry. And thanks a lot for helping others (like me!)
Notkea has quit [Remote host closed the connection]
dbmikus__ has joined #nixos
Fare has joined #nixos
tzemanovic has joined #nixos
dbmikus__ has quit [Ping timeout: 240 seconds]
counting1ort has joined #nixos
aramiscd has quit [Ping timeout: 240 seconds]
aramiscd has joined #nixos
sbdchd has joined #nixos
countingsort has quit [Ping timeout: 252 seconds]
mayhewluke has quit [Ping timeout: 252 seconds]
mayhewluke has joined #nixos
Dedalo has joined #nixos
sbdchd has quit [Ping timeout: 244 seconds]
dbmikus__ has joined #nixos
LnL has joined #nixos
bgamari has quit [Quit: ZNC 1.6.6 - http://znc.in]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fAEs0
<gchristensen> elvishjerricco: pong
justan0theruser is now known as justanotheruser
acarrico has joined #nixos
justanotheruser is now known as cata-foxes
cata-foxes is now known as justanotheruser
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
thc202 has quit [Ping timeout: 245 seconds]
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/5b82747057d (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
goibhniu has quit [Ping timeout: 252 seconds]
_ris has quit [Ping timeout: 240 seconds]
JonReed has quit [Ping timeout: 252 seconds]
apteryx has joined #nixos
apteryx has left #nixos ["WeeChat 2.1"]
andreabedini has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « linux: Remove 4.17 »: https://git.io/fAEZO
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.09 « linux: Remove 4.17 »: https://git.io/fAEZn
nikivi has quit [Ping timeout: 252 seconds]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
justanotheruser has quit [Ping timeout: 246 seconds]
klntsky has quit [Ping timeout: 256 seconds]
sc_ has quit [Ping timeout: 252 seconds]
lejonet has quit [Ping timeout: 252 seconds]
gspia has quit [Ping timeout: 252 seconds]
techtangents has joined #nixos
talyz has quit [Ping timeout: 252 seconds]
<techtangents> Hi, I get an error like "invalid character '@' in name 'account-manager@2'" whenever I run nix-shell from a folder containing an "@" symbol.
<techtangents> My shell.nix file has a "src = ./.;" in it. Do I need to escape this or something? Or will Nix just not handle the @ in the folder name?
FireFly has quit [Quit: Goodbye]
FireFly has joined #nixos
MarkRBM has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
bgamari has joined #nixos
lejonet has joined #nixos
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gspia has joined #nixos
talyz has joined #nixos
<gchristensen> techtangents: look up builtins.path here: https://nixos.org/nix/manual/
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sbdchd has joined #nixos
<fzer0> hello everyone. I am fairly new to NixOS and am wanting to install Julia, but the version in Stable is really old. I noticed that Julia 1.0 is making it's way through unstable. How can I tell if it is included in teh unstable channel?
ryanartecona has quit [Quit: ryanartecona]
sbdchd has quit [Ping timeout: 245 seconds]
justanotheruser has joined #nixos
silver has quit [Read error: Connection reset by peer]
<CMCDragonkai> I find the concept of `fetchGitPrivate` to be overly complicated and dangerous. What would be ideal is that during a `nix-build`, the user can grant a "capability"/authorisation to the build for that s
<gchristensen> yeah, don't use fetchGitPRivate use builtins.fetchgit, CMCDragonkai
<CMCDragonkai> I find the concept of `fetchGitPrivate` to be overly complicated and dangerous. What would be ideal is that during a `nix-build`, the user can grant a "capability"/authorisation to the build for that specific build to access via SSH or some other credential to some secret stuff.
<gchristensen> fetchGitPRivate should be deleted.
<techtangents> gchristensen: like this? src = builtins.path { path=./.; name="account-manager"; };
<gchristensen> that should do it!
<CMCDragonkai> gchristensen: Does builtins.fetchgit actually allow you to temporarily authorise the ability to use a credential in your $HOME?
<techtangents> Thanks
<gchristensen> temporary no, it runs git as your user
<CMCDragonkai> There should be no need for any permanent configuration.
<CMCDragonkai> To temporarily grant secrets.
<CMCDragonkai> It runs git as my own user, not as nixbuild*?
<gchristensen> right, it happens as part of the nix-build process not the nix-daemon
<CMCDragonkai> How does it read my ~/.ssh then?
klntsky has joined #nixos
<CMCDragonkai> Because my builds still run in a mounted namespace?
<gchristensen> the fetch is run outside of the normal nix protections
<CMCDragonkai> When did this change arrive?
<gchristensen> Nix 2
<CMCDragonkai> Master or 18.03 or 18.09?
<gchristensen> builtins.fetchgit not pkgs.fetchGit
<gchristensen> https://nixos.org/nix/manual/ searhch for builtins.fetchGit here
<CMCDragonkai> Whaat! That is super confusing.
ryanartecona has joined #nixos
<gchristensen> builtins.fetchgit runs at evalation time, not build time
<CMCDragonkai> I see that here: > builtins.fetchGit allows Git repositories to be fetched at evaluation time. Thus it differs from the fetchgit function in Nixpkgs, which fetches at build time and cannot be used to fetch Nix expressions during evaluation. A typical use case is to import external NixOS modules from your configuration, e.g.
<CMCDragonkai> But that documentation needs to flesh out how this is directly usable for fetching secret dependencies.
<ldlework> huh
<gchristensen> "Example 15.2. Fetching a private repository over SSH"
<gchristensen> that isn't sufficient?
<CMCDragonkai> That example doesn't explain how it actually works.
<gchristensen> ah.
<CMCDragonkai> As in, if one googles "private git/ dependencies in Nix"
<gchristensen> ie, the part about it running git as your user, inside nix-build?
<CMCDragonkai> there's tons of info about the old stuff
<gchristensen> yes
<CMCDragonkai> But the point is that by running at evaluation time, it is able to run git as your current user (thus inheriting the ambient authority of yourself), but also (and very importantly) it doesn't run in a mount namespace which means it is able to read ~/.ssh...
<gchristensen> 2.0 has only been stable for 7mo, the old way existed for many years
<CMCDragonkai> My configuration.nix ensures that builds run in an isolated mount namespace, so it even it had the ability to read my ~/.ssh, it can't simply because that directory isn't even mounted into the namespace.
<gchristensen> I mean
stepcut has joined #nixos
<gchristensen> hm
stepcut has quit [Read error: Connection reset by peer]
<gchristensen> yeah
<gchristensen> maybe you could send a PR adding some docs about this? that would be really helpful
<CMCDragonkai> I want to create an issue discussing this problem in more general terms first though.
stepcut has joined #nixos
<gchristensen> sure
<gchristensen> btw you can disable the feature using allowed-uris and --pure
Dedalo has joined #nixos
jrolfs has joined #nixos
<CMCDragonkai> Is there some reasoning for many `pkgs.fetch*` vs a few `builtins.fetch*`?
lassulus_ has joined #nixos
<gchristensen> builtins are expensive and are complicated to build and support
sigmundv has quit [Ping timeout: 252 seconds]
<gchristensen> and sssslllooowwwww to change
jrolfs has quit [Ping timeout: 252 seconds]
lassulus has quit [Ping timeout: 272 seconds]
lassulus_ is now known as lassulus
<CMCDragonkai> Yea, but now we're special casing Git.
<gchristensen> sure
<gchristensen> you can make your own eval-time fetchers with builtins.exec, but you have to explicitly turn on support for that
andreabedini has joined #nixos
<ldlework> CMCDragonkai: what do you want to use eval time fetchers for?
<CMCDragonkai> Git SSH may not be the only kind of private dependencies that is required.
<CMCDragonkai> For example, one of my systems requires access to weights that exist in a private S3 bucket.
jperras has joined #nixos
<CMCDragonkai> gchristensen: Here we go: https://github.com/NixOS/nixpkgs/issues/46128
<{^_^}> #46128 (by CMCDragonkai, 1 minute ago, open): Private Dependencies requiring Credential Authorisation - a discussion
nikivi has joined #nixos
kiloreux has quit [Ping timeout: 252 seconds]
justanotheruser has quit [Ping timeout: 245 seconds]
worldofpeace has joined #nixos
kiloreux has joined #nixos
<rotaerk> why is it that when I run `nixos-rebuild switch --upgrade`, I get: error: nix-repl has been removed because it's not maintained anymore, use `nix repl` instead.
<rotaerk> and if I'm getting this, how the heck do I upgrade
<worldofpeace> rotaerk: just remove `nix-repl` from your config. The nix 2 replacement is `nix repl`
justanotheruser has joined #nixos
<rotaerk> oh, forgot it was there heh
oscarvarto has quit [Quit: Leaving]
<elvishjerricco> gchristensen: Ping pong :P I was going to ask if you were aware that the `--daemon` installer doesn't work in a docker container.
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/72deac4893a (from 9 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<techtangents> Is nixos 18.09 considered stable / production-ready?
delores has joined #nixos
<delores> I'm trying to get NixOS to launch from libreboot, but from what I understand the kernel that would usually be /boot/vmlinuz is actually stored in /nix/store. Is there a standard way to get a grub config to boot into NixOS without locating the store location each upgrade?
<delores> Very new to NixOS so I could have got that terminology completely wrong
PyroLagus has quit [Ping timeout: 252 seconds]
<delores> I suppose the best solution would be to have GRUB on the NixOS install, then boot into that GRUB install from libreboot's GRUB.
<elvishjerricco> delores: I thought NixOS copied the kernel to somewhere in `/boot`? Otherwise it couldn't boot with encrypted root drives
<elvishjerricco> techtangents: 18.09's branch was just cut like this week. I think it'll be in beta for a little while
ivan has quit [Remote host closed the connection]
<MarkRBM> when using the method described in 18.1.2 of the nixos manual to install emacs packages I cant seem to add dired, it says 'undefined variable dired at .....' I have tried to get it from melpaStable, melpa and elpa with the same results.. I also have the same problem with flycheck, evil mode and org mode'
<MarkRBM> any ideas?
ivan has joined #nixos
Asmadeus has quit [Ping timeout: 244 seconds]
Asmadeus has joined #nixos
PyroLagus_ has joined #nixos
sbdchd has joined #nixos
<ldlework> I have been thinking; is there anything stopping me from using conditions with my `src' paths for derivations?
<ldlework> like does it make sense to do some if statement that checks if i have a source package locally in ~/src/ and using it if so, and if not, falling back to a git fetch?
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/a015527b1b2 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
nikivi has quit [Ping timeout: 252 seconds]
worldofpeace has quit [Ping timeout: 252 seconds]
tertl3 has quit [Quit: Connection closed for inactivity]
<delores> elvishjerricco: It doesn't appear to be in the /boot of my LVM's root partition.
<delores> Although the directory is blank, so I could just be not decrypting it fully
<elvishjerricco> delores: Oh, actually I think mine is that way because I use systemd-boot and EFI. No idea how it works in other scenarios. I would have thought it needed a kernel to mount encrypted drives and whatnot though
<delores> I'll try a reinstall giving NixOS its own grub this time, and then chainloading that.
Ridout has quit [Quit: Lost terminal]
trevthedev has quit [Ping timeout: 245 seconds]
trevthedev has joined #nixos
trevthedev has quit [Changing host]
trevthedev has joined #nixos
blankhart has joined #nixos
<{^_^}> [nixpkgs] @ju1m opened pull request #46131 → shorewall: init at 5.2.0.5 → https://git.io/fAE88
worldofpeace has joined #nixos
jtojnar has quit [Remote host closed the connection]
jperras has quit [Quit: WeeChat 2.2]
nikivi has joined #nixos
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<delores> Huh, didn't work either. All the resources for GRUB on NixOS seem to assume you're booting into it first, not trying to boot into it from another install.
<adamantium> Do you guys think it's a bad idea to dd zeros to multiple disks simultaneously?
klntsky has quit [Ping timeout: 256 seconds]
revtintin has joined #nixos
klntsky has joined #nixos
mayhewluke has quit [Ping timeout: 240 seconds]
mayhewluke has joined #nixos
<rotaerk> trying to setup a shell.nix for haskell development: https://ptpb.pw/Shn- However, when I run this nix-shell, and then I do a 'cabal new-build' on my project (for which I have 'bindings-GLFW' setup as a dependency), I get an error saying it can't find libGL.so
<rotaerk> did I do something wrong with that shell.nix?
jackdk has joined #nixos
<rotaerk> it's failing when building bindings-GLFW
<rotaerk> (note, I'm attempting to use cabal to resolve all my haskell dependencies, and using haskellPackages just for GHC, cabal, ghcid, etc)
Mr_Keyser_Soze99 has joined #nixos
<jackdk> I made a nixpkgs PR, and the bot did not assign a reviewer. Is there a designated reviewer for font packages? https://github.com/NixOS/nixpkgs/pull/45969
<{^_^}> #45969 (by endgame, 2 days ago, open): ultimate-oldschool-pc-font-pack: init at 1.0
PyroLagus_ has quit [Quit: ZNC / WeeChat]
PyroLagus has joined #nixos
PyroLagus is now known as PyroLagus_
PyroLagus_ is now known as PyroLagus
acowley has quit [Ping timeout: 276 seconds]
acowley has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f89d6d92b7b (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @costrouc opened pull request #46132 → pythonPackages.pymatgen: 2018.8.10 -> 2018.9.1 → https://git.io/fAEBI
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Fare> Something makes my NUC unstable with 18.03
<Fare> as in, crashes once in a while
ryanartecona has quit [Quit: ryanartecona]
sbdchd has quit [Remote host closed the connection]
fyber has joined #nixos
<fyber> How is package support in NixOS? As in, are things usually all the way up to date (Arch-style) or safe (Debian-style)? Are things generally maintained well?
<fyber> Just want to hear general thoughts on the ecosystem.
contrapumpkin has quit [Ping timeout: 272 seconds]
<etu> fyber: On unstable packages are generally up to date. Not as quick as on Arch. Check this site out: https://repology.org/
<jackdk> I'd say the versions in nixpkgs unstable keep up pretty well, and you might have to package some things off the beaten path (e.g., I had to package a CD-ripper I wanted). The stable channels move more slowly, but not as slow as debian.
<jackdk> in terms of writing packages, I'd say it's easier than .deb, probably harder than PKGBUILD or ebuild. (mostly due to learning nix-the-langage and working out where all the helper functions are and what they do)
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/6f3bd5db2f4 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
sb0 has quit [Quit: Leaving]
<fyber> Ah, didn't know the unstable packages existed.
<fyber> I searched a few ones I needed and found versions from 12+ months ago so I was worried.
<fyber> Everything seems reasonable on unstable though, thanks!
Mr_Keyser_Soze99 has quit [Ping timeout: 240 seconds]
wpcarro has quit [Ping timeout: 252 seconds]
yastero has joined #nixos
<{^_^}> [nixpkgs] @jmagoon opened pull request #46133 → arrayfire: init at 3.6.1 → https://git.io/fAERk
<rotaerk> so this doesn't work: https://ptpb.pw/Shn-
<rotaerk> however, I've found if I manually add, say, <libGL path>/lib to the LD_LIBRARY_PATH, it resolves my build error ... so I need to get all those libraries that I specified in buildInputs ... added to LD_LIBRARY_PATH
drp has quit [Remote host closed the connection]
blankhart has quit [Quit: WeeChat 1.9.1]
orivej_ has quit [Ping timeout: 272 seconds]
Ariakenom has joined #nixos
hxrts_ has joined #nixos
owickstrom has joined #nixos
Ariakenom has quit [Client Quit]
wdanilo has joined #nixos
<wdanilo> Hi guys! I'm trying to install nix on macos without root access. I started with installing nix globally (I'll switch to Proot after this will be successful) and then trying to create local store `nix run --store ~/my-nix nixpkgs.nix nixpkgs.bashInteractive`. The error I get is `error: reading symbolic link '/proc/self/exe': No such file or directory` . I
<wdanilo> d Id be very thankful for any help here
reinzelmann has joined #nixos
dbmikus__ has quit [Ping timeout: 240 seconds]
<rotaerk> well, got it to work, with this: https://ptpb.pw/slb1
<rotaerk> manually setting LD_LIBRARY_PATH within the shellHook
<rotaerk> I wonder if there's any built-in mechanism I should've used instead
rauno has joined #nixos
drewr has quit [Ping timeout: 264 seconds]
graphene has joined #nixos
sb0 has joined #nixos
Mr_Keyser_Soze99 has joined #nixos
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/6f3bd5db2f4 (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
wchresta has joined #nixos
<{^_^}> [nixpkgs] @cleverca22 opened pull request #46134 → teamspeak_server: 3.0.13.6->3.3.0 → https://git.io/fAEue
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wchresta has quit [Remote host closed the connection]
wchresta has joined #nixos
MarkRBM has quit [Remote host closed the connection]
<v0latil3_> Is the best way to make and test new nixpkgs to clone the whole repo? and then I can add the local repo to my channels to use with nixos-rebuild or something?
<v0latil3_> Last time I tried I got confused by the guides
civodul has joined #nixos
<rauno> Any idea why i dont have permissions to create directory under var/lib in my module/package definition?
georges-duperon has joined #nixos
<v0latil3_> are you building the package as root
<teto> v0latil3_: this is definitely the best way IMO. I found the nix-channels thing clunky so I removed all those
<clever> rauno: can you gist the nix file that is trying to create that dir?
<rauno> clever, trying to do it in package installPhase, prolly wrong place ?
<clever> rauno: yeah, that build will never have root and cant write to /var
<clever> rauno: thats a job for the prestart on the module, not the package
<v0latil3_> teto, did you mean to link me something?
<teto> v0latil3_: just encouraging you in cloning nixpkgs
<v0latil3_> Oh what did you mean you removed all your nix channels though?
<rauno> celever, under prestart u mean module service preStart ?
<clever> rauno: yep
knupfer has joined #nixos
<v0latil3_> teto, meant to mention you on that ^
<rauno> also, when defining a service, are the preStart and serviceConfig ExecStartPre aliases?
<teto> v0latil3_: i generate my own NIX_PATH via nix.nixPath with nixos-unstable=https://github.com/nixos/nixpkgs-channels/archive/nixos-unstable.tar.gz and depending on if some folders exist, I add them too lib.optionals (builtins.pathExists userNixpkgs) [ "nixpkgs=${builtins.toString userNixpkgs}" ]
<clever> rauno: preStart is a multi-line string, that gets added into a shell script for you
<clever> rauno: ExecStartPre must be an absolute path to a single command
<clever> behind the scenes, preStart will set ExecStartPre for you, pointing it to the auto-generated bash script
<clever> script vs ExecStart is the same thing
<clever> and postStart vs ExecStartPost
<clever> and others, see the above link
wchresta has quit [Ping timeout: 252 seconds]
<rauno> hum
<v0latil3_> teto, what is userNixpkgs? path to your local git repo?
<teto> yep
<v0latil3_> I'm a bit lost with the lib.optionals though :(
<v0latil3_> teto, do you add that to your configuration.nix somewhere and then you can add userNixpkgs.<some package i made> to your config?
<v0latil3_> teto, does that work with service definitions and stuff too? If you could share the relevant lines of your config it would help me a lot. I'm pretty noobish with nix.
<rauno> woh, got something new shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rprije has quit [Ping timeout: 272 seconds]
<rauno> seems like i have broken something in my nixos :|
rprije has joined #nixos
<rauno> ah, nvm
tzemanovic has quit []
<teto> v0latil3_: if you just want to add packages, you can use overlays, if you want deeper modifications, cloning nixpkgs is the way to go
knupfer has quit [Ping timeout: 240 seconds]
<adamantium> Hi, my system as is doesn't work on a fresh bootstrap testing in vm, pukes on home.nix that uses home-manager https://pastebin.com/raw/YA8Y9e4g . What should I look for?
<adamantium> Strangely, home.nix and nixos-switch work fine on this other system that is already installed.
<v0latil3_> teto, so this is the command you use to nixos-rebuild? https://github.com/teto/home/blob/25c3cb9b355f5a07efe11424073c259a8fe4e7a0/nixpkgs/config-all.nix#L1
rprije has quit [Ping timeout: 252 seconds]
<clever> adamantium: it might be another side-effect of the chroot stuff like https://github.com/NixOS/nix/issues/2381
mankyKitty has joined #nixos
<{^_^}> nix#2381 (by cleverca22, 1 week ago, open): builtins.readDir does not respect `local?root=`
rprije has joined #nixos
hamishmack has joined #nixos
sigmundv__ has joined #nixos
<adamantium> poop
<{^_^}> [nixpkgs] @vbgl opened pull request #46135 → ocamlPackages.re: 1.7.3 -> 1.8.0 → https://git.io/fAEgP
<teto> v0latil3_: my dotfiles might not be the easiest to start with as I share configs between several machines. To edit configuration.nix as a simple user, I put it into my HOME. Then as I added machines, I found boring to use symlinks and now I just set the good configuration.nix on the command line via sudo nixos-rebuild -I nixos-config=/home/teto/configuration-xps.nix switch for instance
<v0latil3_> teto, yours is pretty specialized but it's actually the most helpful configs i've seen since you do so many weird things on it
<v0latil3_> that is something i've had to do on so many machines on other OSs. I didn't know you could do it like that in nix
<teto> yep that's a great line :)
<v0latil3_> seems like there should be a way to just send the terminfo automatiically on an ssh connection. wonder why it doesn't work that way
<adamantium> clever: here's what i know, my entire home.nix file is guarded by a "mine.home.enable = true;" which works fine as is on my current system, but when bootstrapping, even with the line commented, home.nix still causes it to bail out. Now when I completely "rm home.nix" from the equation, it isn't processed via recimport and it begins building.
sigmundv__ has quit [Remote host closed the connection]
<clever> adamantium: i dont think the problem is to do with home-manger, but just fetchTarball
<adamantium> interesting
<adamantium> mind taking a peek at my home.nix make sure i don't have a noob mistake?
<clever> let me test a fetchtarball first
<adamantium> k
<clever> [clever@amd-nixos:~]$ nix-instantiate -E '(import (builtins.fetchTarball https://github.com/nixos/nixpkgs/archive/master.tar.gz) {}).hello' --store local?root=/home/clever/fakeroot/
<clever> adamantium: yep, this fails
<adamantium> wow
<adamantium> horrendous
<adamantium> Shall we make a bug report together or
<clever> already filing one
<adamantium> thanks
<{^_^}> [nixpkgs] @Mic92 merged pull request #46034 → khal: add zsh completion → https://git.io/fA459
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAE2I
<{^_^}> nix#2405 (by cleverca22, 6 seconds ago, open): builtins.fetchTarball breaks under local?root=
<adamantium> thanks man.
* adamantium eats popcorn
worldofpeace has quit [Ping timeout: 252 seconds]
<v0latil3_> teto, what is the point of this? https://github.com/teto/home/blob/25c3cb9b355f5a07efe11424073c259a8fe4e7a0/nixpkgs/config-all.nix#L13 It removes the config from the file that gets included, but what is the point of that? I see you use that function in your systempackages
<clever> adamantium: you may be able to solve it by switching to `(import <nixpkgs> { config={}; overlays=[]; }).fetchFromGitHub`
<teto> v0latil3_: not sure why, might be possible to remove it. that part is a bit clunky
<adamantium> clever: will try it now and let you know
Mr_Keyser_Soze99 has quit [Ping timeout: 244 seconds]
<v0latil3_> I also don't get nix function precedence/associativity (i forget the term from classes i've taken) but why is that line not more like "(removeAttrs (import file) [ "config" ];"
<v0latil3_> something like haskell syntax is a little more intuitive to me
graphene has quit [Remote host closed the connection]
<adamantium> clever: uh, btw, not that you need this, but, the themelios script is 100x better, if interested.
<adamantium> I want to have solid beadm integration next, I'm talking, on par with FreeBSD as much as possible. Combined with nix grub menu integration, we could have the best beadm / grub menu in all of linux.
<clever> adamantium: what does themelios do?
graphene has joined #nixos
<adamantium> https://github.com/a-schaefers/themelios you already saw i think. it just bootstraps zfs-on-root systems with one command, is pretty flexible.
<clever> adamantium: ah, a lot like my justdoit
<adamantium> yes.
<adamantium> just different approach.
<adamantium> but we need solid beadm integration next.
<adamantium> it could be perfect.
<clever> adamantium: i also recently found another trick with nix copy
<clever> adamantium: after mounting everything under /mnt as normal, you can build the nixos on another box (possibly even with nixops), and then copy it over ssh, directly into /mnt
<adamantium> badass
Mr_Keyser_Soze99 has joined #nixos
monpylon has joined #nixos
monpylon has quit [Client Quit]
<clever> so you can populate an entirely blank /mnt dir with a nixos build
<adamantium> mmm
<adamantium> I think a fresh install via a bootstrap script should still be faster than ssh in general
<v0latil3_> clever, adamantium u guys better not be making skynet
<adamantium> but maybe i have not thought of all the benefits
<adamantium> no no v0latil3_ they are doing that in #Emacs
<clever> adamantium: main thing i'm thinking of, is that if you create a machine from a base image, 90% of the time, the nixpkgs will differ, and it will have to re-upload the entire closure on the first nixops deploy
logzet has joined #nixos
<adamantium> I see
blahdodo has quit [Quit: Bye bye]
<clever> and if your going to upload the entire closure anyways, you might as well have the option of shippimg that base image that wont be of much use
<clever> if you already have an easy way to boot the target into an installer
<adamantium> Well clever , I cannot pick your brain right now it's late here, but I need to soon, about the best way to integrate beadm with nix grub
<adamantium> i have a stanza generator that could be hacked into the mix
<adamantium> it detects boot environments and generates a stanza that can be >> appeneded to grub.cfg on traditional systems.
<clever> adamantium: one thing ive done before, was just putting a source statement into the other grub config, to source the nixos grub config
kisik21 has joined #nixos
<adamantium> k
<{^_^}> [nixpkgs] @shmish111 closed pull request #44339 → elasticsearch6: refactor plugins → https://git.io/fNKsS
<clever> if you set boot.loader.grub.device = "nodev";, then nixos will create a grub config file, but not install into any MBR
<clever> so you can then source it from another grub
<clever> though, nixos's config will try to load modules built for the nixos grub, which fails
<clever> so you need to pre-load the "ubuntu" version of those modules, before you source it
<adamantium> clever: the other issue as usual is grub stage 1 (1.5??) cannot find grub stage2 in /boot/grub when you pivot, so you either need to store /boot/grub outside of the ROOT dataset ||or you need to re-run grub-install every time.
thc202 has joined #nixos
<clever> adamantium: i never put /boot on ZFS
<adamantium> beadm create && beadm activate&& ... mount/bind/chroot... &&grub-install&& reboot
wdanilo has quit [Ping timeout: 252 seconds]
<adamantium> See I gotta have full zfs-on-root man, even boot :P
<clever> lol
<adamantium> hay, it works
<adamantium> heavy handed, yeah, but grub doesn't use the bootfs so what's a guy to do
<{^_^}> [nixpkgs] @vcunat pushed 3 commits to master: https://git.io/fAEaY
blahdodo has joined #nixos
ryanofsky has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed to release-18.09 « Merge #46075: texinfoInteractive: fix for new perl »: https://git.io/fAEaZ
<{^_^}> [nixpkgs] @CMCDragonkai opened pull request #46136 → makefile2graph: init at 2018-01-03 → https://git.io/fAEa8
<clever> adamantium: when grub is doing a normal install, it will concat the grub kernel, and the drivers for the /boot FS, to create a stage 1.5
<clever> for an MBR fs, 1.5 goes between sector 1 and partition 1, in the "unused" space
<clever> oops, MBR table
<clever> for a GPT disk with legacy, it will use the dedicated bios boot partition to hold 1.5
<{^_^}> [nixpkgs] @vcunat merged pull request #46075 → texinfo: fix for the new perl → https://git.io/fARqj
hxrts_ has quit [Ping timeout: 245 seconds]
<adamantium> right
<clever> EFI doesnt have a 1.5, since the UEFI firmware provides fs access drivers
<adamantium> but then has the issue of requiring a fat fs
<adamantium> and efi partition
<clever> yeah
<adamantium> uhg
<adamantium> gpt and legacy is the best approach to zfs-on-root imo
<adamantium> I think what i have in my head will work and be pure zfs-on-root, everything except the bios-boot partition, which will just need to get updated via chroot and grubinstall
mayhewluke has quit [Ping timeout: 240 seconds]
<clever> now that i see how to get gpt to work both ways, i always do a gpt install on every machine, no excuse not to
<adamantium> the side affect is beadm commands will slow down while grub does grub things.
mayhewluke has joined #nixos
<adamantium> but hey what is 3-5 seconds ?
<clever> ive heard of grub slowing down by minutes, because it cant understand the b-tree indexes in zfs
<adamantium> lol
<clever> so it has to iterate over every single folder in /nix/store/
<adamantium> that's on startup!
<adamantium> not on grub-install.
<clever> yeah
<{^_^}> [nixpkgs] @Mic92 merged pull request #46135 → ocamlPackages.re: 1.7.3 -> 1.8.0 → https://git.io/fAEgP
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fAEaS
<clever> minutes, every boot, because the kernels involve navigating /nix/store/
<adamantium> Right, well i have heard similar, it happens to people with like 6+ hard drives and zfs-on-root
Mr_Keyser_Soze99 has quit [Ping timeout: 245 seconds]
<clever> ive got a 3 drive raidz1, let me check its numbers...
Mr_Keyser_Soze99 has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #46125 → python.pkgs.nipype: Futures is python 2 only. Also fix building. → https://git.io/fAEft
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master:
<srk> zfs grub won't even load kernel if /nix/store grows too large, better use copyKernels
<clever> [root@nas:~]# time ls -l /nix/store/ | wc -l
<clever> 53093
<clever> real 2m28.518s
<clever> srk: i just use an ext4 /boot
<srk> yeah, that makes sense as well, I wanted to try running only off zfs
<adamantium> btw clever help, how do i do what you described in nix? this is obviously wrong, http://termbin.com/671q
<srk> works quite well except that copyKernels catch when it just stops booting at some point :D
<{^_^}> [nixpkgs] @basvandijk merged pull request #46103 → haskellPackages.tensorflow-mnist-input-data: fetch → https://git.io/fA0Zj
<{^_^}> [nixpkgs] @basvandijk pushed 8 commits to master: https://git.io/fAEVt
<clever> adamantium: (import <nixpkgs> { config={}; overlays=[]; }).fetchFromGitHub { owner = "rycee"; repo = "home-manager"; rev = "gitrev"; sha256 = "hash"; }
<adamantium> srk: yes in themelios that's what we're doing
<clever> adamantium: and since its in a list, wrap it with another ()
<clever> adamantium: oh, and that has to go inside the {} of "${....}/nixos"
<clever> a let block would make it a bit cleaner and easier to read
<adamantium> oh wow
<adamantium> k
wdanilo has joined #nixos
<wdanilo> Hi guys! I'm trying to install nix on macos without root access. I started with installing nix globally (I'll switch to Proot after this will be successful) and then trying to create local store `nix run --store ~/my-nix nixpkgs.nix nixpkgs.bashInteractive`. The error I get is `error: reading symbolic link '/proc/self/exe': No such file or directory` . I
<wdanilo> I'd be very thankful for any help here :)
owickstrom has quit [Read error: Connection reset by peer]
grumble has quit [Read error: Connection reset by peer]
ixxie has joined #nixos
<clever> wdanilo: i dont think proot supports macos, and that /proc path is linux-only
jackdk has quit [Ping timeout: 252 seconds]
grumble has joined #nixos
<adamantium> clever: i still don't quite follow your instructions, can't even make it past the linter. but i hope i'm close? http://termbin.com/u2rz
<clever> adamantium: let blocks are always in the form of key=value;, your missing the key
<wdanilo> clever: oh, so there is no way to install nix on macos without root access?
<adamantium> ah
<adamantium> clever: do i name the key anything
<clever> wdanilo: if you have ownership of an empty /nix directory, it can install without root
<clever> adamantium: let me edit it in a gist
<adamantium> i appreciate ...
Mr_Keyser_Soze99 has quit [Ping timeout: 245 seconds]
* adamantium takes note
<wdanilo> clever: I was thinking to use nix as a shared library manager for our product. We allow people to install libraries in our programming language and these libraries can connect to some C shared libs. I wanted to ship nix with our tool in such way that when a particular lib is needed, nix will install it and all the deps. But it should work on any mac, so I cannot assume I've got access to /nix
<v0latil3_> ah wtf I can't nix-shell "<nixpkgs>" -p python python2.7-pygtk
<adamantium> thanks
<v0latil3_> am i doing that wrong?
<clever> v0latil3_: nix-shell -p python python2.7-pygtk
<clever> -p loads <nixpkgs> automatically
<v0latil3_> oh ok. still doesn't work though. build input python2.7-pygtk does not exist
<clever> v0latil3_: you must use attribute paths, not names
<clever> v0latil3_: id also recomend using withPackages, one min
<v0latil3_> that didn't work last i tried. ill double check
<clever> [clever@amd-nixos:~]$ nix-shell -p 'python.withPackages (ps: [ ps.pygtk ])'
<clever> v0latil3_: try the above
<v0latil3_> nice thanks.
orivej has joined #nixos
<clever> wdanilo: if you build nix without using nix (just ./configure && make), you can ship that nix binary around, and then use --store with it, that may help
ersran9 has joined #nixos
Wizek has joined #nixos
<Wizek> hello
<adamantium> clever: error: hash 'hash' has wrong length for hash type 'sha256' (want trace?)
<clever> ,tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<Wizek> anyone knows why this fails? ```nix-repl> builtins.typeOf (haskell.packages.ghc822.ghcWithPackages (p: []))``` ```error: infinite recursion encountered, at undefined position```
<clever> adamantium: the length of the hash must be correct
<adamantium> clever: oh. heh. still learning. well, i didn't do this to install home-manager before with the other code. Why is that?
georges-duperon has quit [Ping timeout: 250 seconds]
<clever> adamantium: fetchTarball doesnt need a hash
<adamantium> oh!!
<adamantium> Thanks, well how i get the hash for this. browse on github?
<clever> nix-prefetch-url --unpack
<clever> nix will also give the url and hash when the dl fails
<adamantium> hmm dee drrm
<clever> look at what {^_^} said above
<adamantium> clever: i did, i see a trust on first use model suggested, but no recommended command. Is there a way to set by default trust on first use?
<adamantium> clever: i cannot run nix-prefetch-url --unpack because remember this is in /mnt and i'm trying to start it off with nixos-install, chicken egg problem
<clever> adamantium: you have to manualy look at the error when you first build it, then copy that hash into the nix code, and build it again
<adamantium> k
winem_ has joined #nixos
rprije has quit [Ping timeout: 240 seconds]
<adamantium> clever: there is no hash in the trace or the intial error
<clever> adamantium: can you gist the error?
rprije has joined #nixos
<adamantium> i dont have a gist, will have to be termbin right now
<adamantium> clever: http://termbin.com/qf0b
<clever> adamantium: you must first put a hash of a valid length into the nix, like 0000000000000000000000000000000000000000000000000000
<adamantium> oh
<adamantium> thanks
<ixxie> hmm trying to setup a NixOS bootable usb but sudo dd bs=4M if=nixos-graphical-18.03.133188.8b92a4e6004-x86_64-linux.iso of=/dev/rsda
<ixxie> returns dd: error writing '/dev/rsda': No space left on device
<{^_^}> [nixpkgs] @dywedir opened pull request #46137 → rust-bindgen: 0.37.0 -> 0.40.0 → https://git.io/fAEwR
<clever> ixxie: how big is the device in `lsblk`?
<adamantium> yeah we really need that fetchTarball feature, this isn't very turnkey
<ixxie> clever: 14.6G
<ixxie> so I would say big enough
<ixxie> I tried looking if the command accidently wrote a file in /dev but thats not what happened
<clever> ixxie: what offset was it at when it failed?
<Dezgeg> what sort of device is 'rsda'?
<ixxie> Dezgeg: the r prefix is for raw writing as recommended in the nixos manual
goibhniu has joined #nixos
rprije has quit [Ping timeout: 272 seconds]
<clever> ixxie: `ls -ltrh /dev/ ; df -h ` into a pastebin
<Dezgeg> I don't see anything like that in my Linux devices
rprije has joined #nixos
<adamantium> clever: so i used 64 zeros... now, it seems to be just going like i would expect! i was expecting it to fail. Do the zeros just mean to accept any hash?
<ixxie> Dezgeg: I don't either.... but apparently if you prefix an r to the device name it accelerates the write
domenkozar has quit [Quit: WeeChat 2.0]
<Dezgeg> no, if you didn't have /dev/rsda existing beforehand you just created a regular file named /dev/rsda
<clever> adamantium: no, it probably hasnt tried to download homemanager yet
<adamantium> oh ok
johanot has joined #nixos
<adamantium> well that's odd because earlier it just failed straight off, i guess "hash" was just invalid nix lang.
<clever> ixxie: i see no mention of that in the dd man page
<ixxie> clever: http://termbin.com/xdri
<clever> ixxie: `ls -ltrh /dev/` is missing
<clever> ixxie: and your /dev/ fs is full, it didnt write to any block devices
<ixxie> clever: http://termbin.com/6hy2
<wdanilo> clever: that's awesome! However, nix libs will have some hardcoded absolute paths to `/nix` right? so i will need some kind of chrooting to make them work?
<clever> -rw-r--r-- 1 root root 0 Sep 6 10:52 rsda
<clever> ixxie: rsda is a regular file in /dev, not a device
<clever> thats why it failed
phreedom has quit [Remote host closed the connection]
<clever> wdanilo: yeah
phreedom has joined #nixos
<ixxie> regarding the r thing, https://nixos.org/nixos/manual/index.html#sec-booting-from-usb states (albeit in reference to a macos) that "Using the 'raw' rdiskN device instead of diskN completes in minutes instead of hours."
<wdanilo> clever: so without proper proot / chroot it is impossible to have nix without privilidged access right ?
Mateon2 has joined #nixos
<adamantium> clever: build of '/nix/store/qw8mmvd4229vr42cvxixd1i2w7qmyy1c-source.drv' failed so is the hash "qw8mmvd4229vr42cvxixd1i2w7qmyy1c" ?
<wdanilo> clever: I'm just trying to confirm my fears :(
<clever> wdanilo: yeah
<clever> adamantium: yeah, that would be the correct hash
<adamantium> thanks
<clever> ixxie: yeah, that looks like a mac only thing
<ixxie> yeah that is a bit misleading when there is no non-macOS explanation
<clever> You can use the dd utility to write the image: dd if=path-to-image of=/dev/sdb.
Mateon1 has quit [Ping timeout: 252 seconds]
Mateon2 is now known as Mateon1
<clever> orivej: that example is for linux
<ixxie> and if I had to guess, most people come to nixos from some other Linux distro
<ixxie> cheers clever
<wdanilo> clever: I'd love to ask you one more thing and would be thankful for any answer here. I want to allow people install libs in our language and they need to have access to c shared libs. We want to provide these libs and their deps so the end-user is not required to take any additional steps
<wdanilo> clever: we are targettign non programmers, so its impossible to tell them to just mess with their system. So we need to provide all deps and their sub-deps etc. Do u see any way to do it on mac / linux ?
<clever> wdanilo: for linux, you can use user namespaces to automatically chroot things, nix-user-chroot and nix-bundle do that
<clever> wdanilo: i dont know of any way to do it on darwin
<{^_^}> [nixpkgs] @boj opened pull request #46138 → habitat: 0.32.2 -> 0.62.0 → https://git.io/fAErv
<adamantium> clever: lol http://termbin.com/46d6
<clever> adamantium: you must also supply a valid revision from the git repo
<wdanilo> clever: Yep, on linux we were thinking about doing it this way, however it seems that `unshare` is not working on **many** recent kernels because of a bug and thus you cannot use nix without root access. But this is a separate problem. Hmm, so there are no ideas for Darwin ?
<clever> wdanilo: you would need to run otool on the binaries to mutate the search path, and then just ship a lib dir and a binary that looks in the right path
<clever> wdanilo: one min
<adamantium> clever: revision = githu commit hash ? would it be the one from 7 days ago or who knows?
<clever> wdanilo: thats some haskell code that will automatically copy libs from the nix store and run otool to make things run without nix
<clever> adamantium: whatever revision you want, previously you used the latest master, so that would work
<wdanilo> clever: oh thats interesting. I'll look into it. Btw haskell is my primary language, so it will be easy :)
<adamantium> oh k
<wdanilo> clever: thanks for pointing it out!
<adamantium> clever: and that nix package hash, does that change often?
<clever> wdanilo: that script is using used to ship a .app bundle, which contains haskell binaries that nix had compiled
<clever> adamantium: the hash is over the source tree, and the tree is fixed for a given git rev
<clever> so the sha256 only changes if the gitrev changes
Boomerang has joined #nixos
<adamantium> clever: so that means if home-manager updates, and you want to switch the gitrev to that, then you also probably will have a hash mismatch again
<clever> adamantium: yeah
<adamantium> thanks
<clever> adamantium: id also recomend zero'ing out a few digits of the hash
<clever> if you supply a wrong hash, that matches an old version, nix wont notice, and will keep using the old version
<ixxie> clever: its booting fortunately! thanks!
<adamantium> clever you should have a paid position in here
<adamantium> Anyway, rock on man. I'm off for the night
<clever> adamantium: my intimate knowldge of nix in here is what got me a job at iohk.io :P
<adamantium> solid
winem_ has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @CMCDragonkai opened pull request #46139 → gnaf-loader: init at 2018-08-28 → https://git.io/fAErh
<adamantium> clever: this is frankly quite crazy all for home-manager. How long do you suppose it may take before this issue would get serious treatment? I have no idea
<clever> adamantium: not sure
<adamantium> i think i will build a workaround into themelios for home-manager
<adamantium> or something.
jb55 has joined #nixos
<joko> Why do we normally remove the size of /nix/store on garbage collection's --max-freed option?
<srhb> joko: Sorry, not understood?
sir_guy_carleton has joined #nixos
<clever> joko: that is computing the difference between 128gig and how much is currently free
<clever> joko: so if 100gig is free, it will tell nix to GC 28gig worth of garbage
<clever> which then stops at ~128gig free
<{^_^}> [nixpkgs] @srhb pushed 4 commits to master: https://git.io/fAEoC
<{^_^}> [nixpkgs] @srhb merged pull request #46124 → pythonPackages.pymetar: 0.21 -> 1.0 → https://git.io/fA0jy
<clever> joko: but the problem with this method, is that it will only run once (or twice in this case) per day, and if you consume more then 128gig in that 12 hour period, it can still fail poorly
<clever> joko: and its going to delete garbage, no matter how little there is, so it may wind up deleting the same 5kb every time, if the machine is very idle
commander has quit [Remote host closed the connection]
<clever> joko: min-free+max-free will trigger automatically when you hit min-free bytes, and will raise it to max-free, so it doesnt suffer from those 2 problems, though it currently has bugs that can break the eval
<joko> clever: are these options documented somewhere?
<joko> (I have searched them, but cannot find them in man nix.conf)
<joko> clever: ah thanks
<{^_^}> [nixpkgs] @srhb merged pull request #46126 → pythonPackages: cleanup gmpy[2], add phe → https://git.io/fAEJ5
<{^_^}> [nixpkgs] @srhb pushed 4 commits to master: https://git.io/fAEo6
<tobiasBora> Hello,
<tobiasBora> I finally managed to boot on my freshly installed NixOs
<adamantium> Congrats
<tobiasBora> However, when I try to run any command involving nix, including nix-rebuild, I have errors:
<tobiasBora> warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs' does not exist, ignoring
<tobiasBora> warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
sigmundv has joined #nixos
<tobiasBora> Should I just add a channel?
<ixxie> seems like it if I had to guess
<cocreature> tobiasBora: that’s a warning not an error
<cocreature> afaik it’s safe to ignore
<cocreature> there is an issue for it somewhere
<tobiasBora> cocreature: well the problem is that I can't do anything, like "nix search firefox" does not output anything
<{^_^}> #40165 (by wizzup, 17 weeks ago, open): warning: Nix search path entry '$HOME/.nix-defexpr/channels' does not exist, ignoring
<cocreature> ah no I think that’s a different error
<cocreature> that’s about $HOME
<ixxie> clever: so for UEFI I followed the manual instructions; got boot, swap and root partitions
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/6f3bd5db2f4 (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
<clever> swap is optional, but yeah that sounds good
<ixxie> but fdisk doesn't seem to have an a command anymore so I cant make the drive bootable
<joko> tobiasBora: have you tried with "nix search -u firefox" first?
<ixxie> but did I remember right that isn't needed for UEFI?
<clever> the bootable flag doesnt exist on gpt i believe
<joko> ixxie: swap is optional and you could use a zvol for it unless you want suspend to disk
<clever> joko: zfs also does not support suspend to disk at all
<joko> clever: indeed, that would be my next comment
<srhb> joko: I really, really do not recommend swap on zfs
<ixxie> yeah maybe I will remove swap... don't really need it
<clever> ive also had issues with swap on zvol deadlocking, so i would use a dedicated swap
<srhb> It only works on certain commits, and will probably lock up your system.
<adamantium> thanks i'll add a comment about that on my zfs bootstrapper readme
<clever> adamantium: and since hibernation doesnt work, you dont really loose anything from using https://nixos.org/nixos/options.html#randomencryption
<ixxie> what is the swap used for exactly
<clever> ixxie: one min
<srhb> ixxie: When you run out of RAM, it will use swap instead.
<srhb> (very roughly)
<ixxie> that was my understanding of swap
<clever> ixxie: https://imgur.com/a/a7BzyOa is what swap is for :P
<srhb> It's also used for hibernation images
<ixxie> but why can't the primary drive be used for that?
<tobiasBora> joko: does not solve the problem
<ixxie> lol
<tobiasBora> I tried to run: nix-channel --add https://nixos.org/channels/nixpkgs-18.03 nixpkgs
<srhb> ixxie: The primary "drive" ? Sure it can.
<ixxie> partition*
<tobiasBora> but then, "nix-channel --update
<ixxie> so what is the benefit of a dedicated partition?
<srhb> ixxie: It can, if it's a partition type that supports swap files
<srhb> ixxie: Like, say, extN partitions.
<symphorien> ixxie: for hibernation, you must use a partition
<clever> ixxie: zfs doesnt support swap files, and is unstable with a zvol
<clever> so the swap must be on a lvm LV or a bare partition
* tobiasBora is thinking
<srhb> symphorien: I don't think that's true anymore? Though it's more involved with a swap file.
<ixxie> okay so an ext4 root partition doesn't get much help from the swap
<symphorien> ah I did not know
<srhb> symphorien: It's involved enough that I would never bother, so I think it's morally correct :-P
<clever> ixxie: if your rootfs is ext4, you can use swap files, and then you are free to just delete the swap when you dont need it
<srhb> (Then again, I don't bother with swap or hibernation at all...)
<clever> ixxie: nixos also supports swap files fairly nicely https://nixos.org/nixos/options.html#swapdevices.*.size
<clever> swapDevices = [ { device = "/var/lib/swap1"; size = 1024 * 16; } ];
<tobiasBora> Ok problem solved, sorry
<clever> ixxie: the above will automatically create a 16gig swap file and activate it
<clever> ixxie: and if you decide you dont want swap, comment it out, rebuild-switch, then delete the file, and you get your space back
ThatDocsLady has joined #nixos
ilikeheaps has joined #nixos
* adamantium has had good luck with swap zvols himself
<adamantium> ;)
<srhb> adamantium: Try using all your ram :)
<adamantium> of course
<adamantium> that's what im saying
<srhb> adamantium: If it happens to work, please tell the zfsonlinux folks which commit actually works, and to add a regression test from there :-P
<adamantium> oh god
<clever> my current machine has 32gig of ram, and 32gig of swap, over 4 swap partitions
<{^_^}> [nixpkgs] @Mic92 pushed commit from @teto to release-18.09 « khal: add zsh completion »: https://git.io/fAE6k
__Sander__ has joined #nixos
<srhb> adamantium: and when it fails, it fails hard and the next scrub will hopefully be able to correct the errors. :)
<clever> srhb: yikes
<adamantium> huh, my big box also has 32gig of ram, but no swap.
<adamantium> srhb: damn, i have never even found a scrub error before
hxrts_ has joined #nixos
<srhb> adamantium: I'm not sure exactly how it works, but my setup is a two-way mirror, and every swap test I've done locks up the kernel hard after hitting loadavg 90 or something and the next boot will have errors on the disks.
<adamantium> did nix get hit by the 0.7.7 regression?
<srhb> And that's following the instructions for swap-on-zvol from the zfsonlinux wiki.
<adamantium> srhb: i'd be curious what your swap zvol settings were from
<srhb> adamantium: Which regression is that again?
<adamantium> the one everyone panicked
<srhb> adamantium: https://github.com/zfsonlinux/pkg-zfs/wiki/HOWTO-use-a-zvol-as-a-swap-device -- and also the same but with no primarycache either.
<adamantium> here's what im setting up peopel with https://github.com/a-schaefers/themelios/blob/master/themelios#L342
<adamantium> for swap ^
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAE6V
<{^_^}> [nixpkgs] @Mic92 merged pull request #46132 → pythonPackages.pymatgen: 2018.8.10 -> 2018.9.1 → https://git.io/fAEBI
<clever> srhb: ah, ive not done any special setting, just zfs create, mkswap, and swapon
<srhb> clever: Tried that too.
<srhb> adamantium: I think it's a really bad idea. If you search through the zfs issue tracker you will find issues like this one: https://github.com/zfsonlinux/zfs/issues/7734
<{^_^}> zfsonlinux/zfs#7734 (by runderwo, 6 weeks ago, open): Swap deadlock in 0.7.9
<srhb> For several versions.
<adamantium> that's why it's disabled by default
rardiol has quit [Ping timeout: 244 seconds]
<srhb> Okay, up to you. :)
<adamantium> ive only tested zswap on 0.7.6 so maybe its worse here
<srhb> I'll test your settings.
<adamantium> o/
<adamantium> let me know ! i think it will be bad
<adamantium> so no warranty
<srhb> I think so too, but heck, what's data integrity among friends.
<tobiasBora> clever: Ok, so I clarified the issue of yesterday. So now I'm 99% sure that the problem comes from the BI
<joko> If I add a new machine in nixops, should I perform nixops modify?
<tobiasBora> *BIOS, that cannot deal properly with two EFI partitions. Indeed, if I use grub to chainload the new .efi, it works, and if I copy the efi to the first EFI partition, it also works. But as soon as I try to point to the second EFI partition, it fails.
<srk> joko: no need to
<srk> joko: modify is useful when you need to change initial expressions given at create time
<tobiasBora> So now, I've 3 options I guess: either I manually install grub on the first partition, and chainload it to the second partition, or I manually copy the .efi everytime I've an update (really not a good idea), or (i think it's the better idea, but not sure if it's possible), I define 2 partitions, one for /boot, and one for /boot/EFI (that would use the first EFI partition, the one that my bios can handle), and
<tobiasBora> if I'm lucky, the "heavy" part (kernels...) will sit into /boot/ and the not heavy part (.efi) will sit into the main EFI partition. clever: does the 3 option looks good for you?
<tobiasBora> option 3*
<clever> tobiasBora: yeah, that sounds right
<srhb> adamantium: Immediate hard lockup when allocating 17 GiB on a 16 GiB RAM 16 GiB swap setup.
<tobiasBora> clever: Ok thanks.
lawlesseel has joined #nixos
<adamantium> drats
<tobiasBora> Now, the last question I've is: what type should have the /boot: can it be encrypted ZFS (I suppose not, but who knows), ZFS, ext4, or FAT32?
<clever> tobiasBora: i would go with just plain ext4
<tobiasBora> clever: Ok thanks. 2Go looks good to you?
<clever> yeah
<tobiasBora> ok great thank you very much
<tobiasBora> I'm just wondering (just for curiosity), if I wanted to be really secure, if my kernel/initramfs is visible to everyone, but not my system partition... is it really more secure than if I just don't encrypt the system partition?
<ixxie> what filesystem is needed for the boot partition? I followed the instructions in the manual and did mkfs.fat -F 32 -n boot /dev/sda2 but the install complains the filesystem is wrong
<clever> ixxie: that was the exact error it gave?
<ixxie> Filesystem "/boot" has wrong type for an EFI System Partition (ESP).
<srhb> adamantium: I'm curious, have you tried something like stress -m 1 --vm-bytes 1G And then stopping and increasing the vm-bytes until you see watch free dipping into your zvol swap?
<adamantium> i dont have the zvol swap anymore
<srhb> Alright.
<adamantium> i never tried That
<clever> ixxie: and did you mount it to /mnt/boot/ ?
orivej has quit [Ping timeout: 252 seconds]
<adamantium> i actually just opened hella firefox tabs and libvirt machines
<adamantium> and things went okay, usually
<srhb> :-P
<wdanilo> clever: btw, is it possible to use nix local store on macos? when trying to execute `nix run --store ~/my-nix nixpkgs.nix nixpkgs.bashInteractive` with a normal nix installation we've got here `error: reading symbolic link '/proc/self/exe': No such file or directory`
<clever> adamantium: one thing ive noticed, is that qemu tries to allocate several gig at once, and can hard-fail because my laptop lacks enough swap
sb0 has quit [Quit: Leaving]
<clever> adamantium: but, if you slowly increase the allocations, the zfs ARC shrinks in response, and it works fine
<srhb> I can get like.. 20MiB into the swap before it dies horribly.
<adamantium> cool
<wdanilo> clever: the error is not connected with proot- its nix related, so nix tries to access /proc/self/exe
<ixxie> clever: I did indeed
<clever> wdanilo: /proc/self is a linux thing, so something must be broken with the --store based chrooting on darwin
<clever> ixxie: can you pastebin the output of `mount ; df -h` ?
<wdanilo> clever: Ok, I wanted to confirm exactly this. So I understand I could report a bug regarding it ?
<clever> wdanilo: yeah
<wdanilo> clever: thank you for help!
ielectric has joined #nixos
<tobiasBora> Hum... I tried to install Firefox, it installed well, but I don't know why I can't see any link to firefox in the KDE Plasma menu, I need to manually open a terminal, and type "firefox"
<clever> tobiasBora: you usually need to logout and back in for plasma to detect that, it may also need to be in systemPackages
baimafeima has joined #nixos
colonel_john_by has joined #nixos
<adamantium> im betting on log out and in
<adamantium> i've seen that in kde
<clever> ixxie: and also `fdisk -l /dev/sda`
<tobiasBora> clever: is there any reason for that? If I remember correctly on Debian I don't need this logout stuff
ielectric is now known as domenkozar
<adamantium> thats plasma thing, i've seen it on funtoo (gentoo derivative)
<clever> tobiasBora: the problem is that plasma doesnt expect things to be under a symlinked directory, and is watching for changes on the wrong thing
<adamantium> debian probably use a version thats really old and a bit different
<clever> ixxie: why is sda2 set as a bios boot partition? thats only for legacy
Izorkin has joined #nixos
<ixxie> aaaah
<clever> ixxie: sda2 must be set to the EFI system partition type
<ixxie> oops
<clever> and the error even mentions ESP
<adamantium> clever: about that, do you use emacs by chance
<clever> though the error isnt clear, and claims the fs is wrong
<clever> adamantium: vim
<adamantium> argh
<tobiasBora> clever: Hum I see... Too bad. Is it possible that at some points this will be solved? i guess that the patch shouldn't be that amazing (either on nix side, or on plasma side directly)
sir_guy_carleton has quit [Ping timeout: 272 seconds]
<clever> tobiasBora: yeah, it should be possible to patch plasma, its just that nobody has bothered yet
<tobiasBora> clever: ok thank you ;)
<wdanilo> Btw guys, could anyone explain to me what are these magical libraries that are hear sometimes about which have some paths hardcoded on linux so we need ot have these magical root /nix folders available? Why the libraries are not as moveable as on Windows ?
Dedalo has joined #nixos
<ixxie> clever: do you happen to remember the fdisk code for efi?
<clever> ixxie: did you check the list of type codes, near the start?
<clever> wdanilo: due to the lack of a /usr/lib directory, nix needs the path to put the paths like /nix/store/hash-name/lib into the ELF headers
<ixxie> I can scroll on that keyboard
<ixxie> hold on I will do it on this machine
<clever> ixxie: shift+pageup works in the bare text console
<wdanilo> clever: and ELF headers are the only thing that's get hardcoded ?
<clever> wdanilo: yeah, its mainly the rpath field, which has a list of dirs to search for the libs
<clever> wdanilo: and the exact search path is specific to the versions your using as inputs
logzet has quit [Remote host closed the connection]
<adamantium> i think its like 8300 or something isnt it
<clever> 1 EFI System C12A7328-F81F-11D2-BA4B-00A0C93EC93B
<clever> its the very first type in the list :P
<ixxie> clever: mac keyboard has no visible pgup as far as I can tell
<ixxie> clever: anyway I found it on my other device
<ixxie> 1
<ixxie> intuitively
<clever> also, those numbers are just for the menu in fdisk
colonel_john_by has quit [Quit: WeeChat 2.0]
<clever> the real type code is C12A7328-F81F-11D2-BA4B-00A0C93EC93B
<ixxie> thats easy to remember
<ixxie> I'm sure I will forget 1
<clever> ixxie: the bios boot partition one is more fun :P
sir_guy_carleton has joined #nixos
<clever> 21686148-6449-6E6F-744E-656564454649 is just the hex for "Hah!IdontNeedEFI"
<wdanilo> clever: One guy from our company claims, that it might be possible to take some compiled libs and just replace these hardcoded paths with new paths and everything will be wroking again. But I suspect it is impossible, otherwise nix would not re-compile things when necessery, right ?
<ixxie> clever: lol
<clever> wdanilo: you can use the patchelf program to do those changes
<clever> wdanilo: or for darwin, otool
<ixxie> clever: alright, NixOS installed! thanks for all the help
<clever> wdanilo: the reason nix rebuilds things is for purity, there may be unknown changes in the .so, that impact things at compile or link time, and just changing the search path can break things
<wdanilo> clever: oh, intersting
Dedalo has quit [Read error: No route to host]
<clever> wdanilo: for example, if the size of a field in a .h file changes, then the ABI for calling functions in that library will be different, and things break in fun ways if you mix the versions up
<clever> wdanilo: nix just cant have that problem (when using source everywhere), because a change of the .h file would trigger a rebuild of anything using it
mwu has joined #nixos
<tobiasBora> Hum... I'm curious to understand something
<tobiasBora> I use ZFS to deal with NixOs, and I wanted to understand how ZFS is used by grub. Si I looked into the grub.cfg file... and I was curious to see no reference at all to ZFS inside:
<tobiasBora> linux ($drive1)//kernels/f8mj76i8xi3c2aaix7rnmx00d382dwvm-linux-4.14.67-bzImage systemConfig=/nix/store/1mx0sbd81fl3170rjq3jr9384w9gcnqa-nixos-system-colnixos-18.03.133188.8b92a4e6004 init=/nix/store/1mx0sbd81fl3170rjq3jr9384w9gcnqa-nixos-system-colnixos-18.03.133188.8b92a4e6004/init loglevel=4
<tobiasBora> this is the line that loads the kernel
<clever> tobiasBora: can you pastebin the entire grub.cfg file?
<tobiasBora> clever: sure: http://paste.ubuntu.com/p/gK6X55mWWT/
<tobiasBora> The uuid refers to the EFI partition
<{^_^}> [nixpkgs] @teto opened pull request #46140 → python3Packages.genanki: init at 0.6.0 → https://git.io/fAEXo
<clever> tobiasBora: line 3 sets $drive1 to whatever FS C863-2483 matches
<{^_^}> [nixpkgs] @Mic92 pushed commit from @costrouc to release-18.09 « pythonPackages.pymatgen: 2018.8.10 -> 2018.9.1 »: https://git.io/fAEX1
<clever> tobiasBora: so it will expect a kernels directory on the EFI partition
<ixxie> hmm, what do I need to configure besides enabling ssh to allow me to ssh-copy-id using the root user of the target machine?
<wdanilo> clever: thank you for your time and the exmplanation! We're still investigating it and I think we'll have another connected small question in a minute
<clever> ixxie: something that is very handy, `curl https://github.com/cleverca22.keys` will output every ssh key you authorized to your github
<tobiasBora> clever: yes, but then usually I see a "root=LABEL=..." that specifies the label of the root partition (to load the actual system)
<clever> ixxie: so you can just > ~/.ssh/authorized_keys to allow yourself on a new machine
<tobiasBora> clever: so here because my system is on zfs, I'd expect at least a kind of "zfs=myzpool"
<clever> tobiasBora: nixos doesnt use root=, but embeds that into the initrd
<ixxie> clever: oh neat
<tobiasBora> clever: interesting...
baimafeima has quit [Quit: Leaving]
<ixxie> clever: thats neat
<tobiasBora> clever: really interesting... So you may be able to answer the question I asked yesterday: can I specify here an iso file instead of disk label?
<clever> tobiasBora: the path to fsinfo is then embeded into the script that ultimately lands at /init, and bash will then read it and mount each fs
<ixxie> clever: it can find them in Nix files? I tried with the organization I have keys in and it didn't work
<clever> tobiasBora: you may be better off using the netboot stuff
<ixxie> but I guess I could push my keys and curl them
<tobiasBora> clever: I saw that debian uses a tool called boot-live that added an option for findiso=..., and that the rescue_boot uses it
<clever> tobiasBora: lines 3-13 will do a nixos eval that imports the netboot modules
<clever> tobiasBora: and then line 22/23 will copy the kernel+initrd into /boot, and 17 will load it, obeying the kernel params
<tobiasBora> clever: the problem of netboot is that I need a webserver on the same network right?
Wharncliffe has joined #nixos
<clever> tobiasBora: this doesnt actually do any network booting
<clever> its abusing the fact that netboot puts the entire rootfs into the initrd
<clever> and then just loading that with grub
<tobiasBora> ouuu
* tobiasBora is a bit lost
<clever> you could then modify this a bit, to just get a kernel-params file, kernel, and initrd
<clever> tobiasBora: let me type up an example...
<tobiasBora> so with this method everything would be included in the kernel?
<tobiasBora> (including the squashfs?)
<clever> everything would be included in the initrd, including the squashfs
<tobiasBora> hum yes sorry
<tobiasBora> really interesting
<tobiasBora> clever: and why do I need rescue_boot, for example, instead of minimal install? Is it just because rescue_boot is more complete, or because it loads additional stuff?
<clever> tobiasBora: testing an example locally
<clever> rescue_boot.nix is a nixos module, that adds to the existing /boot of a nixos install
<clever> so it wont really work for your idea of having an ISO that can do many things
<tobiasBora> oh I see, it looked like magic also ^^
<tobiasBora> but it mayb be possible to use this same idea with my iso idea?
<clever> i'm testing a modification here
<{^_^}> [nixpkgs] @Mic92 pushed commit from @ashgillman to release-18.09 « python.pkgs.nipype: Futures is python 2 only. Also fix building. »: https://git.io/fAEMT
<tobiasBora> clever: you're amazing ;)
<wdanilo> yep, he's amazing <3
<ixxie> yep, indeed!
<{^_^}> [nixpkgs] @Profpatsch merged pull request #45970 → Skaware summer 2018 release → https://git.io/fA8Yp
<{^_^}> [nixpkgs] @Profpatsch pushed 5 commits to master: https://git.io/fAEMn
<clever> tobiasBora: run `nix-build multi-boot-helper.nix` and you will get a result symlink containing a kernel, initrd, and grub config file
<clever> oh, but the filenames are off a tad
<clever> fix pushed
<clever> wait, that made it worse, lol
simukis has joined #nixos
<clever> pushed again
<clever> tobiasBora: try running nix-build against that file now
Ariakenom has joined #nixos
<tobiasBora> clever: that looks still magic, thank you very much! Right now I'm on a live usb trying to reinstall nixos with encrypted zfs, but the time to reinstall everything and I try your code!
<clever> tobiasBora: you can even test the above from the live usb
spear2 has joined #nixos
<tobiasBora> clever: but I still don't understand what system it will load under the hood... netboot is a whole installer?
<clever> tobiasBora: the netboot stuff is a variant of the ISO, that puts the rootfs into the initrd
<clever> tobiasBora: and it has many of the defaults an installer has, like auto-login for root
<{^_^}> [nixpkgs] @Mic92 merged pull request #46072 → pythonPackages.pyopenssl: Disable some tests, for libressl support. → https://git.io/fARLG
<{^_^}> [nixpkgs] @Mic92 pushed commit from @qolii to staging « pyopenssl: Disable some tests, for libressl support. (#46072) »: https://git.io/fAEDI
<tobiasBora> clever: ok thank you! So if I want, I could modify it to look like the full NixOs + KDE + Plasma live CD?
<clever> tobiasBora: yeah, just add another thing to the imports field
<clever> <nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-graphical-kde.nix> i think
<tobiasBora> clever: great! I'm exited to try!
<clever> tobiasBora: the major difference between an ISO and netboot, is that the netboot copies the entire (compressed) rootfs into ram
<clever> tobiasBora: so it will need more ram to boot, but once booted, you can just unplug the usb stick your booting from
<clever> it may also take longer to boot, since it has to copy the entire thing to ram
<tobiasBora> clever: I see, so it makes sense i guess to keep a small distro not to fillful the ram
<clever> yeah
<tobiasBora> The findiso method does not have this drawback right?
<clever> probably not, but it would likely need to me heavily modified to work with the stage-1 in nixos
<ixxie> hmm
<ixxie> how does nixops handle the hardware configuration?
<ixxie> do I need to copy it back and deploy it from the deployer?
<clever> ixxie: for which backend?
<ixxie> none
<clever> you need to manually copy it to the nixops machine, and include it in the deployment files
<ixxie> thats what I thought
<clever> and if you get it wrong, the machine will either forget how to boot, or systemd will drop you into rescue mode immediately, and wait for local input
<tobiasBora> clever: ok thank you, I guess I'll stay with the netboot trick, and when I'll look for some challenge, I'll try to study this ^^ Just to make sure, the rescue iso does that right?
Shell has joined #nixos
<Shell> Err so my system is hanging when booting up on “setting up /etc...”, how can I fix this?
<clever> tobiasBora: rescue_boot.nix is just putting the "netboot" files into /boot and adding a grub option, so you basically have a 2nd copy of nixos in /boot
sb0 has joined #nixos
<Taneb> I'm trying to use haskell.lib.doCoverage, but that seems to break things if one library with coverage enabled depends on another library with coverage enabled. Has anyone seen this before and knows a way around it?
<clever> tobiasBora: and its less likely that you will break that 2nd nixos, so you can use it as a rescue system
<clever> Shell: are you able to boot an older generate by selecting one at grub?
<Shell> Probably, but this is silly
<tobiasBora> I'm asking because I can see references to live-boot
<Shell> clever: actually, no. It’s hanging on all previous generations too.
<{^_^}> [nixpkgs] @dasJ closed pull request #45813 → nixos/dhcpcd: Expose less information to servers → https://git.io/fAcMe
<tobiasBora> and according to this page, it provides a findiso=... kernel option: https://manpages.debian.org/jessie/live-boot-doc/live-boot.7.en.html
<Shell> clever: is there a way I can put it into bash debug mode or something?
<Shell> ... no, the first generation works
<Shell> But the last bunch don’t.
<clever> Shell: and then run fsck to see if there is anything wrong with your disk
<clever> Shell: and what does `nix-channel --list` report?
jasongro` has joined #nixos
<clever> tobiasBora: id need more time to study that before i can see what its doing
<Shell> Right, so, I found that it stopped booting at a certain generation. How do I figure out what changed?
<clever> Shell: start by comparing the git revs at the end of the names
<clever> lrwxrwxrwx 1 root root 84 Jul 21 15:57 /nix/var/nix/profiles/system-418-link -> /nix/store/b5nqnf9l54254mx77zzcqdgp7x9glg3r-nixos-system-amd-nixos-18.03.git.d6c6c7f
<clever> lrwxrwxrwx 1 root root 93 Jul 23 12:26 /nix/var/nix/profiles/system-420-link -> /nix/store/vkbs0vdaczlfscxz8dvjarczw8hikzwb-nixos-system-amd-nixos-18.09pre145679.dae9cf6106d
<clever> Shell: in this case, i switched from 18.03 to 18.09 (technically, i stayed on nixos-unstable, but the version of it has changed)
<clever> ls -l /nix/var/nix/profiles/system*
<clever> that is how i got the listing
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #45996 → [rdy] pythonPackages.alot: install zsh completion → https://git.io/fA4Uo
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAESe
<{^_^}> [nixpkgs] @Mic92 pushed commit from @teto to release-18.09 « pythonPackages.alot: install zsh completion »: https://git.io/fAESU
<tobiasBora> clever: ok no problem ;) Finally I'll run your code before reinstalling, because I may need it to make sure zfs versions are compatible (because of a strange zfs bug, the kernel needs to match the zfs version, and my old ubuntu, obviously, does not have the same kernel as nixos 18.03...
<ixxie> how do I nixops deploy with a local clone of nixpkgs
<Shell> “Can not execute /run/current-system/sw/bin/bash” now that I’ve built a new system, though once I’ve booted into it it works. O.o
<Shell> This is with latest unstable.
<Shell> (It works and that file exists and is executable.)
<clever> ixxie: nixops modify deployment.nix -I nixpkgs=/path/to/nixpkgs
<srhb> Shell: Wait, you did a rebuild switch and bash from there did not work?
<srhb> Shell: Until you rebooted?
<Shell> srhb: I have now rebuilt, switched, rebooted, that error pops up but it continues to boot, and bash works once I’ve booted.
<srhb> Where does the error pop up?
<{^_^}> [nixpkgs] @teozkr opened pull request #46143 → kops: 1.9.0 -> 1.10.0 → https://git.io/fAES2
<Shell> Just after “setting up /etc...”
<clever> Shell: did you do anything with activation scripts?
jtojnar has joined #nixos
<Shell> Nope.
<{^_^}> [nixpkgs] @primeos pushed to master « signal-desktop: 1.15.5 -> 1.16.0 »: https://git.io/fAES6
<clever> Shell: what does `nix-channel --list` say?
<Shell> The nixos-unstable channel.
<ixxie> cheers clever!
<Shell> I’m no longer using my git checkout, and nothing to do with it is in the NIX_PATH.
<clever> [clever@amd-nixos:~]$ diff -u --color /nix/var/nix/profiles/system-{415,416}-link/activate
<clever> Shell: can you use this to diff the activate scripts, between the 2 generates, that work and fail
Neo-- has quit [Ping timeout: 244 seconds]
orivej has joined #nixos
<{^_^}> [nixpkgs] @dasJ opened pull request #46144 → nixos/nullidentdmod: Init → https://git.io/fAE9T
jasongro` has left #nixos ["ERC (IRC client for Emacs 26.1)"]
stphrolland has joined #nixos
chaker has joined #nixos
<Shell> ... found the source of this particular error at least. Commit 8b3fb83 attempts to run a command as my user in a wonky way in the activation script, and to do so uses my shell, which is /run/current-system/sw/bin/bash, and /run/current-system isn’t symlinked in at that point.
<{^_^}> [nixpkgs] @smaret opened pull request #46145 → gildas: add alternative url for the source code → https://git.io/fAE94
<clever> Shell: thats why i avoid activate scripts at all costs, one small mistake and the machine ceases to boot entirely
<clever> Shell: a systemd unit would have been a much better place for that change
chaker has left #nixos [#nixos]
<Shell> Mhm.
<clever> a bug or PR will need to be filed on nixpkgs, and you can `nix-channel --rollback` to switch to an older nixpkgs until its fixed
mayhewluke has quit [Ping timeout: 245 seconds]
revtintin has quit [Quit: WeeChat 1.9.1]
<ixxie> nixops got locked; how do I manually remove the lock?
<clever> ixxie: is there another nixops process still running?
<ixxie> clever: I interrupted it
mayhewluke has joined #nixos
<clever> ixxie: double check `ps aux | grep nixops` to confirm none are still running
<ixxie> clever: found it! killed it! cheers... again xD
stphrolland has quit [Quit: leaving]
philippD has joined #nixos
<clever> ixxie: the locks nixops uses are in the kernel, and the kernel will clean them up automatically upon the death of a process
<Shell> Err... how come nix-shell -p krb5Full gives me all the Kerberos commands but nix-env-iA nixos.krb5Full doesn’t?
<clever> Shell: what does `nix-instantiate --find-file nixpkgs` return?
<Shell> Root’s nixos channel.
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/eedff968326 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
silver has joined #nixos
<Shell> Same if I search for nixos.
<symphorien> Maybe krb5full is a multi output derivation
<clever> > krb5Full.outputs
<{^_^}> [ "out" "dev" ]
<clever> [clever@amd-nixos:~/nixpkgs]$ nix-build -A krb5full.out
<clever> error: attribute 'krb5full' in selection path 'krb5full.out' not found
<Shell> Capital.
<qyliss> krb5Full
<qyliss> with a capital F
<clever> Shell: several of its binaries are in the .dev output
<Shell> Apparently kinit is in dev for some bizarre reason
<clever> nix-shell gives dev only binaries, nix-env doesnt
<Shell> I see.
tmaekawa has joined #nixos
<gchristensen> elvishjerricco: yes: teh daemon only works if you're using systemd
<clever> Shell: you could also do systemPackages = [ pkgs.krb5Full.out pkgs.krb5Full.dev ]; in configuration.nix, to install both halves system-wide
Boomerang has quit [Quit: WeeChat 1.9.1]
<Shell> Done. :)
<gchristensen> domenkozar: I upgraded to 18.09, linuxPackages_latest (4.18) is very bad on the xps
<gchristensen> but 17 is nice
<clever> gchristensen: have you seen https://github.com/NixOS/nixpkgs/pull/46134 ?
<{^_^}> #46134 (by cleverca22, 5 hours ago, open): teamspeak_server: 3.0.13.6->3.3.0
<domenkozar> stable:4.17.19 [EOL]
<domenkozar> mkay :D
<clever> gchristensen: its also too late for the 18.09 branch, but we may want to cherry-pick it over, since the client refuses to connect to the older server
<domenkozar> gonna keep 4.14
iyzsong has joined #nixos
<domenkozar> gchristensen: 4.17 has any noticable improvements over 4.14?
<gchristensen> clever: indeed we should
<gchristensen> domenkozar: dunno :)
<domenkozar> kk
<domenkozar> tnx!
sbdchd has joined #nixos
<yorick> gchristensen: what's wrong with 4.18 on the xps?
fzer00 has joined #nixos
<gchristensen> with nouveau I get CPU stalls when X starts until I reboot
<domenkozar> oh my nvidia rests since day one
<domenkozar> :)
<yorick> oh, I have the intel only version
<gchristensen> if I plug in a thunderbolt device, I get similar wierdness
<gchristensen> domenkozar: how do you do that, and can the intel drive an external display?
<domenkozar> yes
<domenkozar> btw I'm so sad that https://github.com/NixOS/nixpkgs/pull/38698 didn't get merged
<{^_^}> #38698 (by thoughtpolice, 21 weeks ago, open): Overhaul PostgreSQL packaging, native extensions, and NixOS support
<domenkozar> but one day it will be perfect :)
<gchristensen> ok I'm ready! I don't need nvidia
fzer00 has quit [Client Quit]
nbardiuk has joined #nixos
fzer00 has joined #nixos
<domenkozar> hardware.nvidiaOptimus.disable = true;
<domenkozar> boot.kernelParams = [ "acpi_rev_override=1" "pcie_port_pm=off"];
<domenkozar> that's what I use on 4.14.54
<domenkozar> first one disables nvidia card
<domenkozar> second one makes it not bood in blank screen :D
<domenkozar> boot
sbdchd has quit [Ping timeout: 252 seconds]
tmaekawa has quit [Quit: tmaekawa]
<gchristensen> yay
fzer000 has joined #nixos
<domenkozar> for me battery life went from ~2.5h
<domenkozar> to ~4-5h
<domenkozar> not to mention stability of intel drivers :)
<ixxie> so... it seems that enabling xserver on the target breaks the nixops deployment process
<yorick> ixxie: no, the nixops deployment just killed the network
<yorick> it may still have worked
<ixxie> hmm
<clever> ixxie: see if ssh works now, and try re-running deploy
<clever> this can happen any time the nixpkgs rev changes
c15ade4 has quit [Quit: WeeChat 2.0]
<yorick> maybe it should do this in a systemd-run so it doesn't interrupt itself
martingale has quit [Ping timeout: 244 seconds]
<ixxie> ssh hangs and the machine has no internet
<ixxie> I have been rebuilding it locally to fix every time
<yorick> yes, the script that would restart it is never called :D
<ixxie> aye
<ixxie> ok
<ixxie> I will try to reboot
<yorick> ixxie: just activate it locally
<yorick> /nix/var/nix/profiles/system/bin/switch-to-configuration switch
semihonest has joined #nixos
orivej has quit [Ping timeout: 272 seconds]
<yorick> (yes, this is terrible, yes make a github issue please)
<ixxie> I wonder if its xserver or something else
<ixxie> I think I had a similar breakage earlier when I tried to enable wireless networking
fzer000 has quit [Quit: Leaving]
fzer00 has quit [Quit: Leaving]
<clever> ixxie: the wifi is more likely to change the IP, which then breaks all current ssh sessions
<clever> ixxie: the activate may finish on its own, but you will never see its output
<ixxie> aah right of course
<clever> in my case, i'm using the toxvpn IP for some machines, so the IP is static, even if it changes to another interface
<ixxie> the wireless interface will be the long term one once I set this up
tmaekawa has joined #nixos
<yorick> clever: so maybe it should run this in a systemd-run?
<yorick> (that will survive an ssh disconnect)
<ixxie> so I suppose I can build it without wifi, then deploy the wifi, configure it, and modify my deployment.nix
<clever> yorick: the ssh dying will almost never kill the program within, linux retries the tcp send a lot, and can buffer a few mb of output
<clever> but you will loose the ability to see its output
lord| has quit [Read error: Connection reset by peer]
Boomerang has joined #nixos
Neo-- has joined #nixos
__monty__ has joined #nixos
martingale has joined #nixos
Wharncliffe has quit [Quit: Lost terminal]
<ixxie> hmm anybody got a tip to neatly get some right click functionality for mac hardware?
<clever> ixxie: what happens if you tap with 2 fingers at once?
<ixxie> aah cool
<ixxie> thanks
<clever> ixxie: now try with 3 fingers
<clever> also, try moving with 2 fingers
<ixxie> well scrolling I knew about
<clever> ixxie: also, try a quick tap, followed by a press and hold
<ixxie> that doesn't seem to work
<clever> on my laptop, that does a left drag
[Leary] has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #46059 → top-level: Deprecate top-level `{build,host,target}Platform` → https://git.io/fAB7G
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/fAE57
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #46146 → top-level: Deprecate top-level `{build,host,target}Platform` for 18.09 → https://git.io/fAEdf
Lears has quit [Ping timeout: 246 seconds]
<ixxie> nixops builds on the deployer machine, so it uses that machine's channel right?
<clever> ixxie: but you can use `nixops modify -I nixpkgs=/path/to/something` to override that
tzemanovic has joined #nixos
<ixxie> yeah like you said before... I am just wondering about the default
<clever> ixxie: by default, it just uses whatever <nixpkgs> maps to in $NIX_PATH
tmaekawa has quit [Quit: tmaekawa]
winem_ has joined #nixos
iyzsong has quit [Ping timeout: 252 seconds]
Neo-- has quit [Ping timeout: 252 seconds]
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/ca2ba44cab4 (from 13 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
<ixxie> clever: were you the one who told me they nixops their local system?
<clever> ixxie: yeah, the file i linked above manages my NAS and router
<ixxie> I meant do you nixops the system you also deploy from?
<clever> ixxie: the laptop is where i run nixops, and that isnt part of the deployment
iyzsong has joined #nixos
orivej has joined #nixos
* ixxie wonders who that was and why they were doing it
<layus> hi, I am trying to configure the carlito font to replace calibri by default
<{^_^}> [nixpkgs] @shlevy pushed 2 commits to master: https://git.io/fAEFG
<{^_^}> [nixpkgs] @shlevy closed pull request #40937 → treewide: Remove uses of builtins.toPath. → https://git.io/vhJwT
<layus> How am I suppose to properly install carlito ?
<clever> layus: fonts.fonts = [ pkgs.carlito ];
<layus> adding it to fonts.fonts add it as a font, but leaves out https://github.com/NixOS/nixpkgs/blob/master/pkgs/data/fonts/carlito/calibri-alias.conf
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #46146 → top-level: Deprecate top-level `{build,host,target}Platform` for 18.09 → https://git.io/fAEdf
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to release-18.09: https://git.io/fAEF8
<layus> to get calibri-alias, I can add carlito to fonts.fontconfig.confPackages
<{^_^}> [rfcs] @shlevy closed pull request #28 → [RFC 0028] Nix Release Model → https://git.io/vx2yo
<layus> Then I see calibri-alias in /etc/fonts.conf.d
<{^_^}> [nix] @shlevy closed pull request #1956 → Store the schema version in the database. → https://git.io/vAFOE
<layus> but it does not apply.
<layus> `FC_DEBUG=1024 fc-match -s Calibri` shows that only /etc/fonts/2.11/conf.d is read, not skipping /etc/fonts/conf.d
<layus> `FC_DEBUG=1024 fc-match -s Calibri` shows that only /etc/fonts/2.11/conf.d is read, skipping /etc/fonts/conf.d
<layus> So i am pretty lost ;-)
johanot has quit [Remote host closed the connection]
<srhb> Is there a specific reason why the sha256 hashes for nixStable and nix1 appear to be a different length than usual? And how are those generated?
<shlevy> samueldr: There are some changes on haskell-updates that I want to backport to 18.09. How would you like me to handle that? They're mass haskell-rebuilds
<clever> srhb: you may be comparing base16 and base32 hashes
<layus> rycee[m], how should I apply pkgs/data/fonts/carlito/calibri-alias.conf ?
<srhb> clever: Maybe this is for backwards compatibility?
<clever> [clever@amd-nixos:~]$ nix-hash --type sha256 --to-base16 1qf1grqcp232s3vafvrq58xa29yqbnhfnpq2v03dhsfcqr63pdvz
<clever> 7fb73b4cc6cc69d806d8025feba05dd827a13a2a386fa7f6d06288cb707ec1e1
<srhb> I see, thanks.
<clever> srhb: you can use --to-base16 and --to-base32 to convert them
<clever> nix1 and nix2 support both types
<srhb> Ah I guess there's no reason then
<clever> all output from nix uses base32, even if the input was base16, which can sometimes be a bit confusing
<clever> it says hash was X, when Y was expected, but the nix file says Z
<clever> the above conversion util will show Y and Z are actually the same hash
reinzelmann has quit [Quit: Leaving]
<mightybyte> Did the Nix installer recently change it's default from multi-user mode to single user mode?
<mightybyte> I installed Nix on a new Mac the other day and was expecting to get multi-user mode, but I got single user.
primeos has quit [Quit: WeeChat 2.1]
<srhb> mightybyte: Yes.
<mightybyte> Can anyone summarize why that change was made? I'm curious.
<das_j> Question about the nixpkgs wiki page: "There are two types of maintainer: Members of the NixOS organization and package/module maintainer."
jasongro` has joined #nixos
<das_j> But who is a member of the NixOS organizations? On arch I was used to a community which votes new members in
<srhb> das_j: People the current members trust, essentially.
<srhb> das_j: There is no formal committee, as of yet.
<mightybyte> gchristensen: Perfect, thanks!
<das_j> srhb: So basically the same as arch but without a standardized method of applying?
<srhb> das_j: Also no standardized method of determining whether to accept an application.
<das_j> Oh, okay
<das_j> Thanks for clearing that up
<gchristensen> https://nixos.org/nixos/community.html If you want to contribute regularly, you may want to ask for commit access to our GitHub repositories (please ask Eelco, or on the #nixos IRC channel).
<das_j> Ah, thanks. I'll keep that in mind once I feel confident enough
<gchristensen> :)
phreedom has quit [Ping timeout: 256 seconds]
<das_j> Yeah, the amount of comments on my PRs shows me that there is still much to learn
phreedom has joined #nixos
rardiol has joined #nixos
rprije has quit [Ping timeout: 252 seconds]
ehmry has joined #nixos
<{^_^}> [nixpkgs] @offlinehacker merged pull request #46143 → kops: 1.9.0 -> 1.10.0 → https://git.io/fAES2
<{^_^}> [nixpkgs] @offlinehacker pushed 2 commits to master: https://git.io/fAEAm
<ehmry> I just installed nixos in a virtualbox and firefox is unuseably slow out-of-the-box, does any one else have this sort of problem?
amosbird has quit [Quit: ZNC 1.7.0 - https://znc.in]
<ehmry> firefox is definitly CPU-bound for me
amosbird has joined #nixos
<ehmry> but with ubuntu I don't have this problem
acowley has quit [Ping timeout: 252 seconds]
hyper_ch2 has joined #nixos
sphalerit has joined #nixos
<sphalerit> ehmry: in an Ubuntu virtual machine as well?
<sphalerit> ehmry: and same specs like amount of RAM?
primeos has joined #nixos
<ehmry> yep
acowley has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #46148 → top-level, stdenv: Make `system` and `stdenv.system` describe the hostPlatform → https://git.io/fAEAy
the-kenny has quit [Quit: WeeChat 2.0]
the-kenny has joined #nixos
<tobiasBora> Hum... Does anyone knows why on zfs I can't do "zfs create -o encryption=on -o keyformat=passphrase -o mountpoint=none zroot/encrypt"? It gives me the error "cannot create zroot/encrypt: invalid property 'encryption'
johanot has joined #nixos
<clever> tobiasBora: your zfs version doesnt have encryption support
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #46149 → top-level, stdenv: Make `system` and `stdenv.system` describe the hos… → https://git.io/fAEAj
<clever> tobiasBora: also check the topic in #zfsonlinux , "Native encryption is not production ready, keep backups (but it works great)"
<{^_^}> [nixpkgs] @ysndr opened pull request #46150 → Fix: Build solaar with pythonPackages → https://git.io/fAExk
the-kenny has quit [Client Quit]
<tobiasBora> clever: oh, too bad... On the wiki it was written "Native encryption ... will be part of 18.03"
<etu> tobiasBora: available doesn't always mean production ready
<etu> :)
<clever> it means more ginea pigs for the testing :P
the-kenny has joined #nixos
<tobiasBora> etu: sure, but I'm not in production so I don't mind if I'm one of these ginea pigs ;)
<etu> tobiasBora: That's good then, get on unstable :)
<tobiasBora> clever: so I don't get it, does nixos 18.03 has it or not ? ^^'
hxrts_ has quit [Ping timeout: 240 seconds]
<tobiasBora> oh, so 18.03 does not have encryption, but unstable does?
<clever> tobiasBora: you may need to tell nixos to use zfs unstable
<{^_^}> [nixpkgs] @oxij opened pull request #46151 → revert last cryptsetup update → https://git.io/fAExW
<clever> boot.zfs.enableUnstable
<tobiasBora> clever: Ok I see. But I'm wondering if I won't go for luks. Is it more complicated to have both luks and zfs?
<srhb> tobiasBora: It's more _complex_ but probably not much more complicated
<clever> tobiasBora: i use zfs on luks without any trouble
<srhb> Having one thing do the whole business is always easier..
<srhb> tobiasBora: Be advised that if you go the LUKS+zfs route, nixos-generate-config does _not_ make a correct hardware-configuration for you.
<jasongro`> I speak for myself, but I dropped luks when I started using ZFS for everything because I couldn't be bothered to get my head around the different command sets.
<das_j> Is there a nix channel? I tried #nix, but I need invitation
<tobiasBora> clever: it's amazing, you have a snippet for everything
<srhb> das_j: This channel :)
<das_j> Oh ;)
<jasongro`> Oh, I see srhb just said the same thing more succinctly.
<srhb> jasongro`: :)
<tobiasBora> srhb: life isn't easy...
vaibhavsagar has joined #nixos
<srhb> tobiasBora: fwiw I'm enjoying zfs encryption very much. :)
<clever> tobiasBora: this is how the luks config is setup, to handle what srhb mentioned: https://github.com/cleverca22/nix-tests/blob/master/kexec/justdoit.nix#L123-L125
<das_j> Little question about Nix's substituters option. The manual says "A list of URLs of substituters, separated by whitespace.". But what happens when setting multiple? IMO it should fall back when one is unavailable, but https://github.com/NixOS/nix/issues/1990 looks like this isn't done. So what happens when setting multiple substituters?
<{^_^}> nix#1990 (by cleverca22, 24 weeks ago, open): offline binary cache entirely breaks nixos-rebuild
<clever> das_j: if all of them are online, it will query them to see who has what, and then use the priority in the nix-cache-info file to pick one
<clever> das_j: run `curl cache.nixos.org/nix-cache-info`
<das_j> Ah, okay that makes sense
<das_j> Oh, that's your issue :/ So you're suffering from the same problem as me
<clever> das_j: yeah, there is a bug in nix, that it doesnt give up if a cache fails to respond
<clever> das_j: you can use `--option substituters '....'` to override it temporarily
<das_j> clever: Looking at the code it seems like it does give up at some point. But it just fails the entire process instead of switching to the next substituter
<clever> das_j: yeah
<das_j> My setup is a central machine which builds all my systems and that is a substituter for every system. So when the central machine is down, I want the system to build the derivation itself
<das_j> I'd patch it in but C++ is more horrible than I remember
fzer00 has joined #nixos
<das_j> clever: Still haven't found a reason to set up a Hydra for that, but that's basically what I do as well
<das_j> I'll try to understand more of the Nix code, maybe I can spot the bug
<teto> I get "builder for '/nix/store/sxrkq6bcm4rb17vlwjl064scsbgz9a6h-user-environment.drv' failed with exit code 1" (certainly due to one of my changes), how can I build just user-environment without going through the whole "nixos rebuild"
fzer00 has quit [Client Quit]
<clever> das_j: in my case, hydra is pre-building the whole thing against the latest nixos-unstable, so i can see if the new version breaks things before i try to update
sbdchd has joined #nixos
<tobiasBora> clever: By the way your method worked greatly!
<tobiasBora> (for the iso stuff)
<clever> tobiasBora: nice
<tobiasBora> thank you very much!
<srhb> teto: nix-build that-path
chessai has joined #nixos
<tobiasBora> clever: and thanks for the luks ref's, my linux.org memo is full of your code now...
<das_j> clever: That's a great idea. Maybe I should try the same, but a multi-config Jenkins project still looks better to me. It's just what I'm used to
copumpkin has joined #nixos
<tobiasBora> srhb: finally, I may want to try zfs encryption for fun, so on my live CD I tried to enable it using boot.zfs.enableUnstable = true; as well as installing zfsUnstable, but the error is still more explicit now: "Encryption feature not enabled"
jperras has joined #nixos
sbdchd has quit [Ping timeout: 244 seconds]
<clever> das_j: here is a different project i have, that builds against master and unstable, https://hydra.angeldsis.com/project/not-os
<clever> tobiasBora: you need to reload the kernel modules
<clever> tobiasBora: rmmod all zfs and spl ones, then reload them with modprobe
<das_j> clever: Honestly, I still don't fully understand the Hydra interface, maybe I'll set up my own to mess around
<clever> normally, you would just reboot to apply that updat,e but the livecd resets to defaults then
<clever> tobiasBora: though for the netboot image i gave you, you can also set boot.zfs.enableUnstable = true directly in the nix expression that builds the initrd files
<clever> then it will natively have unstable on every boot
<tobiasBora> clever: true, but I made this image in live mode, so I lost all temporary expressions, and if I could avoid to still burn 30mn to download everything it would be nice;)
<clever> yeah
<tobiasBora> clever: nixos is not supposed to reload all the modules?
<clever> kernel modules arent reloaded when you rebuild-switch
<clever> and if you updated the nixpkgs, they cant be reloaded, because the kernel versions would conflict
fzer0 has quit [Remote host closed the connection]
<teto> srhb: what would that be in this peculiar case ? attribute name or store path both fail eg nix-build -A user-environment ~/nixpkgs fail
sbdchd has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to master « monkeysphere: 0.37 -> 0.41 »: https://git.io/fAEhd
ehmry has left #nixos ["nuked install"]
<teto> wonder if this is due to the new nix, I might reboot
fendor has joined #nixos
spear2 has quit [Ping timeout: 240 seconds]
sbdchd has quit [Remote host closed the connection]
<fendor> in overlays how can i fetch a package from url?
spear2 has joined #nixos
<{^_^}> [nixpkgs] @oxij closed pull request #46119 → bintools-wrapper, cc-wrapper: infer propagateDoc automatically → https://git.io/fA0df
jtojnar has quit [Quit: jtojnar]
<srhb> fendor: a nixpkg with a default.nix in its root? pkgs.callPackage (fetchurl { ... })
<srhb> teto: Oh, I misunderstood your question. Ehm.. I think there can be many user-environment-named things in there.
jtojnar has joined #nixos
<fendor> i dont think i can just use `pkgs` because it is not in scope, do you mean super or somethign like that?
<srhb> fendor: self, in that case.
__lawlesseel__ has joined #nixos
<srhb> fendor: They are both semantically "pkgs"
mwu has quit [Quit: Page closed]
<fendor> srhb, when do i prefer self over super?
lawlesseel has quit [Remote host closed the connection]
<srhb> fendor: When you're not forced to use super in order to avoid infinite recursion
<srhb> (Essentially)
<{^_^}> [nixops] @AmineChikhaoui merged pull request #965 → Feat: aws nvme support → https://git.io/vhW1j
<{^_^}> [nixops] @AmineChikhaoui pushed 10 commits to master: https://git.io/fAueR
<srhb> fendor: eg. foo = self.foo ... is a nono.
<fendor> srhb, i see. It says that fetchurl ist not defined
<srhb> fendor: self.fetchurl as well
<srhb> fendor: Everything you'd get from pkgs normally is in self (and super, if necessary)
<fendor> ok, now it worked, thanks!
<{^_^}> [nixops] @AmineChikhaoui closed pull request #972 → DO NOT MERGE: Nix 2 out of memory workaround → https://git.io/flbUL
tzemanovic has quit [Remote host closed the connection]
<jtojnar> bah, --keep-failed does not work with remote builders
fzer0 has joined #nixos
fzer00 has joined #nixos
<fendor> but it did just not install cachix
<srhb> fendor: Huh?
<{^_^}> [nixpkgs] @Ma27 opened pull request #46152 → zsh: patch `_setxkbmap` completion script → https://git.io/fAuep
<fendor> i tried to install cachix via overlays, but it did not work :(
<srhb> fendor: Can you give a better error description?
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/fAuvm
fzer00 has quit [Client Quit]
<srhb> (and overlays don't install anything)
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #46148 → top-level, stdenv: Make `system` and `stdenv.system` describe the hostPlatform → https://git.io/fAEAy
<{^_^}> [nixpkgs] @Ericson2314 pushed 3 commits to master: https://git.io/fAuvn
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #46149 → top-level, stdenv: Make `system` and `stdenv.system` describe the hostPlatform for 18.09 → https://git.io/fAEAj
<{^_^}> [nixpkgs] @Ericson2314 pushed 3 commits to release-18.09: https://git.io/fAuv0
<{^_^}> [nixops] @AmineChikhaoui pushed to master « fix typo: shapshot->snapshot »: https://git.io/fAuvg
<srhb> fendor: Oh, I think I know what happened. I didn't actually call the package in my snippet. Did you add {} to the end?
<srhb> fendor: callPackage (fetchurl ...) is a function, you must also call it, so it becomes callPackage (fetchurl ...) {}
<rsa> does anybody know how to install nixos on a machine without internet? nixos-install on latest (18.03) graphical live cd fails when using a minimal configuration.nix (tries to contact cache.nixos.org)
<clever> rsa: you could try adding `--option substituters ''` to disable it contacting anything
nbardiuk has quit [Quit: Lost terminal]
fzer0 has quit [Quit: Leaving]
<rsa> it tries to download '.../0001-Fix-missing-build-dependency-for-pods.patch'
lfish has joined #nixos
<{^_^}> [nixpkgs] @jtojnar pushed 8 commits to gnome-3.30: https://git.io/fAuvd
<clever> rsa: why does it not have internet?
<rsa> i want to keep it offline because of reasons
Aexoden has quit [Quit: Connection reset by supervisor.]
<clever> rsa: you will need to download that file manually, and then run `nix-prefetch-url file:///path/to/patch` to import it
<clever> and repeat for each path that fails to download
fzer0 has joined #nixos
fzer00 has joined #nixos
<__monty__> Sounds like you're gonna have a hard time.
fzer00 has quit [Client Quit]
<fendor> srhb, i am using an overlay that supplies a nix-rebuild command, which should install all packages that i declared in a nix expression
<d1rewolf> it's a shame offline install isn't a little easier. I guess that's an area some automation would prove useful
Mark___ has joined #nixos
commander has joined #nixos
<gchristensen> I do offline nixos installs
<hodapp> wowzers, I've not done offline installs since my Slackware days
<gchristensen> it does take effort, yeah
<{^_^}> [nixpkgs] @hcmensch opened pull request #46153 → openmw: bump to latest stable release (0.44.0) → https://git.io/fAuJn
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #46154 → doc: Add release notes for top-level {build,host,target}Platform deprecation → https://git.io/fAuJ0
wdanilo has quit [Ping timeout: 252 seconds]
Ifur has quit [Ping timeout: 260 seconds]
<gchristensen> nginx trick for static sites: add_header ETag ${builtins.replaceStrings ["/nix/store/"] [""] (builtins.toString root)};
Aexoden has joined #nixos
ryantrinkle has quit [Ping timeout: 252 seconds]
Ifur has joined #nixos
<rsa> i was thinking of building the system on an online computer, nix copy --to 'file:///...' /nix/store/...nixos-system..., move the files to the offline computer and then 'nix copy --store /mnt --from 'file:///...' /nix/store/...nixos-system...
<rsa> that however gives errors about missing valid signature
fendor has quit [Ping timeout: 252 seconds]
<rsa> the nix-prefetch-url idea worked for the first couple of packages, but then binutils-2.28.1.tar.bz2 was put under a different store path
redterd has joined #nixos
iyzsong has quit [Quit: ZNC 1.7.0 - https://znc.in]
jperras has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @7c6f434c pushed to master « matrix-synapse: 0.33.3 -> 0.33.3.1 »: https://git.io/fAuTU
<{^_^}> [nixpkgs] @Mic92 merged pull request #46145 → gildas: add alternative url for the source code → https://git.io/fAE94
<{^_^}> [nixpkgs] @Mic92 pushed commit from @smaret to master « gildas: add alternative url for the source code (#46145) »: https://git.io/fAuTO
<redterd> Hi everybody. With the help of the irc-channel, I made the drivers for both of my printers work with NixOS. I wanted to add them to the nixpkgs repo. Could someone please help me on which files I have to add where? Right now, the project looks like this: https://github.com/NWuensche/brotherppd
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #46154 → doc: Add release notes for top-level {build,host,target}Platform deprecation → https://git.io/fAuJ0
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/fAuTC
<{^_^}> [nixpkgs] @Mic92 pushed commit from @smaret to release-18.09 « gildas: add alternative url for the source code (#46145) »: https://git.io/fAuTu
<hodapp> redterd: have you already forked nixpkgs locally?
<Mic92_> Why do we get so many zsh completion fixes lately?
<redterd> hodapp: I'm doing it right now. :D
<{^_^}> [nixpkgs] @jtojnar pushed 89 commits to gnome-3.30: https://git.io/fAuTw
<teto> Mic92_: I plead guilty
xok has joined #nixos
<xok> Hello all..
erasmas has joined #nixos
<xok> and created the file called "digitalocean.nix" ...
<xok> when I try to deploy the machine it alerts an error like this: error: unknown resource type ‘digitalOcean’
<xok> can anyone help me figure out how to solve this problem?..
slyfox has joined #nixos
ThatDocsLady has quit [Quit: Leaving]
slyfox_ has quit [Ping timeout: 244 seconds]
phreedom_ has joined #nixos
<Taneb> xok: are you using an up-to-date version of nixops?
<xok> yes, 17.09
<redterd> hodapp: So nixpkgs is downloaded now.
mayhewluke has quit [Ping timeout: 252 seconds]
mayhewluke has joined #nixos
jperras has joined #nixos
phreedom has quit [Ping timeout: 256 seconds]
<redterd> hodapp: The problem is that I don't have NixOS installed anymore. Is there a way to still to check if everything works?
jD91mZM2 has joined #nixos
<hodapp> hmm, checking it without NixOS, I'm not sure how to do that
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46155 → worker: 3.15.1 -> 3.15.2 → https://git.io/fAuLS
tzemanovic has joined #nixos
<infinisil> xok: That's the nixpkgs version, and an outdated at that
<infinisil> Nixops has a version like 1.6
fzer0 has quit [Quit: Leaving]
<siers> Is import-from-derivation bad because it screws with the caching?
fzer0 has joined #nixos
<symphorien> it means you can't evaluate without building
fzer00 has joined #nixos
<xok> oops, I've got nixops 1.4...
fzer0 has quit [Client Quit]
jrolfs has joined #nixos
<Taneb> xok: digital ocean support was added in 1.5
<xok> Taneb: thank you, I am on the 1.6 now and it asks for a token...
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46156 → xcbutilxrm: 1.2 -> 1.3 → https://git.io/fAuqD
<{^_^}> [nixpkgs] @taku0 opened pull request #46157 → firefox, firefox-bin: 61.0.2 -> 62.0, firefox-esr: 60.1.0esr -> 60.2.0esr, remove 52.9.0esr [Critical security fixes] → https://git.io/fAumU
<redterd> hodapp: So I added the driver here: https://github.com/NWuensche/nixpkgs/tree/MFC5440CN-Driver . Does it look right to you? The package itself worked the last time I used NixOS, but I haven't installed it through nixpkgs
jrolfs has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46158 → winusb: 3.2.1 -> 3.2.2 → https://git.io/fAumz
<xok> Taneb: I run 1.6 nixops now, I have set DIGITAL_OCEAN_AUTH_TOKEN to a correct AUTH TOKEN but it still says: machine> creating droplet ...error: Unable to authenticate you.
graphene has quit [Remote host closed the connection]
<xok> Taneb: can you help with that...
graphene has joined #nixos
johanot has quit [Quit: leaving]
the-kenny has quit [Quit: WeeChat 2.0]
the-kenny has joined #nixos
<Taneb> No I can't, I'm afraid
<Taneb> xok: have you tried setting https://nixos.org/nixops/manual/#opt-deployment.digitalOcean.authToken ?
<Taneb> Although the documentation claims it checks DIGITAL_OCEAN_AUTH_TOKEN
<Taneb> Is there a change you made a typo?
<xok> Taneb: I don't know... The document you showed me has a long AUTH TOKEN, the one I had is shorter...
<xok> can you help me find the correct one?..
knupfer has joined #nixos
aminechikhaoui has quit [Ping timeout: 268 seconds]
<Taneb> No, I can't
<xok> Taneb: thank you, I finally got it working...
<Taneb> :)
<{^_^}> [nixpkgs] @fpletz pushed 3 commits to release-18.03: https://git.io/fAuYQ
<{^_^}> [nixpkgs] @fpletz pushed commit from @7c6f434c to release-18.09 « matrix-synapse: 0.33.3 -> 0.33.3.1 »: https://git.io/fAuYA
<{^_^}> [nixpkgs] @smaret opened pull request #46159 → gildas: 20180801_a -> 20180801_b → https://git.io/fAuOI
jrolfs has joined #nixos
tzemanovic has quit [Ping timeout: 252 seconds]
hyper_ch2 has quit [Quit: Page closed]
jrolfs has quit [Read error: Connection reset by peer]
jrolfs_ has joined #nixos
aanderse has quit [Quit: No Ping reply in 180 seconds.]
aanderse has joined #nixos
aminechikhaoui has joined #nixos
ma27 has quit [Quit: WeeChat 2.1]
ma27 has joined #nixos
<tobiasBora> clever: ok thanks for the explainations!
dbmikus__ has joined #nixos
hxrts_ has joined #nixos
Lears has joined #nixos
<d1rewolf> is anyone here using nix with other distros? I assume package availabiltity is less that nixos?
knupfer has quit [Remote host closed the connection]
endformationage has joined #nixos
knupfer has joined #nixos
[Leary] has quit [Ping timeout: 245 seconds]
<gchristensen> lots of people do, and the package availability is basically the same
<LnL> not really
<gchristensen> the big difference is nix can't manage services, so you don't get the service management which nixos provides
<LnL> but you don't get the service management, etc.
<gchristensen> LnL: <3
wpcarro has joined #nixos
<LnL> :D
<symphorien> you will have problems with opengl drivers, sane, and things depending on setuid executables
<LnL> ah right, those are some special edgecases
<redterd> Is it possible for someone to look at the two printer drivers I added before I PR them? I don't have NixOS installed right now, so I can't valiade everything. However, it worked the last time I used it locally. https://github.com/NWuensche/nixpkgs/tree/BrotherDriver
<LnL> the sudo package won't be usable for example
<symphorien> redterd: well it is difficult to test without the printer...
<symphorien> are the ppd and binary file fetchable from the internet ? you probably should not commit them to nixpkgs
<redterd> That's true. Do I really have to install NixOS all over again just to test it? Or should it work with a live CD too?
<symphorien> do you have nix on your new distro ?
<symphorien> if so, you can even build a live cd from your branch of nixpkgs, with the printer drivers included
<redterd> symphorien: I remember there was a problem with the binary/ppd file which had to be solved before I could use them. But I don't remeber the steps.
nbardiuk has joined #nixos
<symphorien> another remark: you have default.nix, but you don't callPackage them from pkgs/top-level/all-packages.nix
<redterd> Yes, I have nix on my distro. Can you explain how to create the CD like this?
<symphorien> redterd: that's likely (patching paths and patchelfig libraries)so you have to do this in a derivation.
<redterd> symphorien: Thanks for pointing the callPackage thing out. I will add it.
<symphorien> redterd: https://nixos.wiki/wiki/Creating_a_NixOS_live_CD << the iso.nix file they speak about is like /etc/nixos/configuration.nix so install your drivers here
<symphorien> and each time you nix-build something, add -I nixpkgs=/path/to/checkout
sbdchd has joined #nixos
<{^_^}> [nixpkgs] @akru opened pull request #46160 → parity-beta: 2.0.1 -> 2.0.3, parity: 1.11.8 -> 1.11.10 → https://git.io/fAunf
graphene has quit [Remote host closed the connection]
Fare has quit [Ping timeout: 245 seconds]
graphene has joined #nixos
<{^_^}> [nixpkgs] @costrouc opened pull request #46161 → pythonPackages.phonopy: refactor → https://git.io/fAucq
<redterd> symphorien: There is no /etc/nixos folder on my machine right now. Should I create it? Or am I understanding something wrong? I use Arch Linux if this is important
<srhb> redterd: No, that's present on NixOS.
<symphorien> no no
<symphorien> I mean: the live cd is a real nixos system, whose /etc/nixos/configuration is the iso.nix the wiki page has you create
<{^_^}> [nixpkgs] @shlevy pushed 3 commits to haskell-updates: https://git.io/fAucz
<{^_^}> [nixpkgs] @shlevy merged pull request #45985 → GHC abi-hash backpack fix → https://git.io/fA8Mc
<manveru> is anyone here using nixops with ec2?
__monty__ has quit [Quit: leaving]
<manveru> seems like it's not able to connect to the server via ssh after creating the instance
<aminechikhaoui> manveru: what kind of configuration you have ? it should work, you need to double check your security groups + route tables if you're on vpc
Fare has joined #nixos
<{^_^}> [nixpkgs] @shlevy pushed 0 commits to haskell-updates-18.09: https://git.io/fAuC3
Boomerang has quit [Quit: WeeChat 1.9.1]
<manveru> aminechikhaoui: i just created an aws account and tried the first example from nixops
<manveru> that's my config so far
<manveru> ignore the securityGroups one, it's using the default one which should allow any traffic
<{^_^}> [nixpkgs] @shlevy pushed 4 commits to haskell-updates-18.09: https://git.io/fAuC5
<manveru> but it's always stuck in "waiting for SSH"
<manveru> i have no clue what other permissions this role needs
<aminechikhaoui> yeah that should work :/ the default VPC should have a route to an internet gateway by default
<aminechikhaoui> did the instance actually boot successfuly from console log ?
<redterd> Should this be enought for the printer to try out with lpr? https://gist.github.com/NWuensche/4abb9020badd559d988ebc85b787b495
<{^_^}> [nixpkgs] @shlevy opened pull request #46163 → Backport haskell backpack and profiling fixes → https://git.io/fAuCh
<manveru> aminechikhaoui: just found the default security group didn't have a valid inbound setting, fixing that made nixops able to connect :)
<manveru> but the manual really should talk about this stuff at some point...
<aminechikhaoui> ah, good to know :)
__Sander__ has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @basvandijk merged pull request #46043 → all-cabal-hashes: update snapshot to Hackage at 2018-09-04T11:59:40Z → https://git.io/fAB3l
<{^_^}> [nixpkgs] @basvandijk pushed 2 commits to master: https://git.io/fAuWB
ma27 has quit [Quit: WeeChat 2.1]
<symphorien> redterd: seems good. if you look in your nixpkgs clone, there may ba an equivalent of nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix for the graphical iso
ma27 has joined #nixos
<ixxie> so... what to do when your build runs out of memory?
andrewrk has joined #nixos
<andrewrk> I'm running an application which is printing "Error: GLX: Failed to load GLX" on startup
ryanartecona has joined #nixos
<andrewrk> according to strace it's looking for libGL.so in various places such as /run/opengl-driver/lib/libGL.so.1
<andrewrk> as well as all the /nix/store/* rpaths
<redterd> symphorien: Thanks, I will use this. However, how can I tell the script to use my nixpkgs clone instead of the package server?
<andrewrk> where would be the correct place to find it? is my nix configuration missing something?
<andrewrk> also this used to work, so maybe this is a regression in nixos?
<symphorien> redterd: -I nixpkgs=/path/to/checkout
<redterd> Thank you!
fresheyeball has joined #nixos
<fresheyeball> hey out there
<fresheyeball> I need some advice
<fresheyeball> I have a haskell+nix project, and want to add a feature, to make the binary print out the git hash it was built with
<redterd> symphorien: When building the image like in https://nixos.wiki/wiki/Creating_a_NixOS_live_CD , I get the error file 'nixpkgs/nixos' was not found in the Nix search path
<fresheyeball> it would be really nice to have an easy way to see which commit, the current binary came from
<fresheyeball> but I don't see a clean way of doing it
<srhb> fresheyeball: Please don't. You're removing the benefit of only semantic changes in a tree of nix sources causing rebuilds, and injecting a spurious input that will cause a rebuild on every commit.
<fresheyeball> by making the build depend on .git, I lose all cache benefits
<symphorien> redterd: what -I option have you used ?
<fresheyeball> srhb: right
<redterd> symphorien: Should this point to the nixpkgs clone?
<fresheyeball> but then, how to verify that a built binary came from a specific commit?
<symphorien> yes
<fresheyeball> how can I do this reasonably?
<srhb> fresheyeball: You can't, really.
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<fresheyeball> srhb: I can't just accept that
<srhb> fresheyeball: Either you depend on it and lose all caching or you do not, and get semantic nix hashes.
<redterd> -I nixos-config=import.nix nixpkgs=~/nixpkgs
fzer00 has quit [Quit: Leaving]
<fresheyeball> its important to be able to print the verion
<fresheyeball> version*
<fresheyeball> *version
<symphorien> don't use ~ (it won't be expanded)
<tilpner> fresheyeball - So readFile "${src}/.git/refs/heads/master" and accept the rebuilds?
<srhb> fresheyeball: You're asking for the git hash to be a build impurity.
knupfer has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #46114 → jackett: 0.9.41 -> 0.10.160 → https://git.io/fA0DG
<{^_^}> [nixpkgs] @xeji pushed commit from @nyanloutre to master « jackett: 0.9.41 -> 0.10.160 (#46114) »: https://git.io/fAu8Y
<fresheyeball> this seems kinda important, there should be a way to know what commit a specific binary reflects
<redterd> symphorien: When I replace the ~/nixpkgs with nixpkgs while I'm in my home dir, I still get the same problem. Could there be a problem with the'<nixpkgs/nixos>
<srhb> fresheyeball: Why is the git hash better than the nix hash?
<symphorien> I mean type explictely /home/blah/nixpkgs
<fresheyeball> srhb: its not
<redterd> Sorry, I copy-pasted and weechat just printed it
<srhb> fresheyeball: Then just use the nix hash.
<fresheyeball> srhb: right now I have --argstr version "$(git rev-parse HEAD)"
<fresheyeball> srhb: I don't know how to tie the nix hash to the git hash
fzer0 has joined #nixos
<srhb> You cannot do that purely.
fzer00 has joined #nixos
<srhb> Not without forcing rebuilds on every commit.
fzer00 has quit [Remote host closed the connection]
<fresheyeball> Look, I deploy to a server
<fresheyeball> sometimes deploys are not successfull
<fresheyeball> sometimes there are bugs in the code that show up on the server
<redterd> symphorien: Did it with /home/username/nixpkgs, but I still have the same error
<fresheyeball> right now I have NO WAY to determine which version of the code is there
<fresheyeball> the nix hash does not tell me what version of the code is there
<srhb> fresheyeball: Deploy a tiny artifact alongside it that you're willing to accept a rebuild for each commit of?
<symphorien> is there a nixos directory in you /home/username/nixpkgs ?
<srhb> fresheyeball: You _have_ to work around this constraint. You can't have both "entire project depends on git hash" and "project does not rebuild just because the git hash changed"
<symphorien> ah maybe use -I twice: -I nixos-config=... -I nixpkgs=...
<fresheyeball> srhb: right, but I assume I am not the first person with this problem
ryantrinkle has joined #nixos
<srhb> fresheyeball: No, you're not.
<redterd> symphorien: Thanks, that worked
<symphorien> :)
<fresheyeball> so I am hoping someone has a clean solution
<fresheyeball> but maybe not
<srhb> There is no clean solution. It is desired behaviour that a change in the inputs of a derivation causes it to rebuild.
Mark___ has quit [Read error: Connection reset by peer]
wraithm has joined #nixos
<ryantrinkle> does anyone know how to patch a source for a package built by node2nix? the instructions at https://github.com/svanderburg/node2nix#adding-unspecified-dependencies don't seem to be working for me
<fresheyeball> srhb: how does that challenge necissarily demonstrate that a clean solution does not exist?
<fresheyeball> hey ryantrinkle
<srhb> fresheyeball: Either you consider it a pure input or suffer the consequences, or you make it a build impurity (somehow) and suffer the (worse) consequences.
<ryantrinkle> in particular: i'm trying to patch chromedriver while building another package that depends on it, but 'chromedriver' isn't present in nodePackages, so it can't be overridden quite that way
<srhb> fresheyeball: I don't see that there's a third option
<ryantrinkle> fresheyeball: hey :)
<fresheyeball> srhb: me neither, but I want to explore that one might exist
<fresheyeball> ryantrinkle: actually I would love your feedback on this
<srhb> fresheyeball: I suggest going the other route. Make a _small_ wrapper around your project that rebuilds very very fast.
<fresheyeball> srhb: yeah, I can make a derivation, that depends on my project and just adds the git hash, that would work ok
<srhb> fresheyeball: consider ${mypackagethatdoesnotdependonrevision}/bin/server revision
<srhb> fresheyeball: That way you get purity and fast builds. Lots of builds, but at least they're fast.
<redterd> symphorien: However, it can't find my new packages now. I added " dcp145c = callPackage ../misc/cups/drivers/dcp145c { };
<redterd> " in all-packages.nix, but it can't find it. Sorry for the split.
<symphorien> to test if the attribute works: nix-build /path/to/checkout -A dcp145c
<redterd> I get an error now because it's unfree. Should I allow this in the nix-config on my laptop or the iso.nix or in both?
<symphorien> not sure
<{^_^}> [nixpkgs] @Profpatsch merged pull request #44136 → lib/trivial: add assertMsg and assertMsgOneOf → https://git.io/fNukO
<{^_^}> [nixpkgs] @Profpatsch pushed 4 commits to master: https://git.io/fAu4E
<ryantrinkle> fresheyeball: i don't have the scrollback
<redterd> symphorien: Added it to the config of my laptop, now nix-build ... -A dcp145c works! :)
<{^_^}> [nixpkgs] @costrouc opened pull request #46165 → pythonPackages.geopandas: 0.3.0 -> 0.4.0 → https://git.io/fAuBe
<fresheyeball> ryantrinkle: basically, I deploy to servers, and need a way to know what git hash is deployed
gspia has quit [Quit: Leaving]
orivej has quit [Ping timeout: 252 seconds]
<fresheyeball> looking for a clean solution that doesn't lose nix cache niceness
Fare has quit [Ping timeout: 252 seconds]
<symphorien> redterd: then pkgs.dcp145c should be found
<redterd> But I still have the problem with the undefined variable 'dcp145c' when I create the ios
<redterd> *iso
<symphorien> use pkgs.dcp145c
<ryantrinkle> fresheyeball: you've probably got a git revision somewhere in nix, for fetchGit, so can you just jam it in at the last moment?
<ryantrinkle> e.g. have a final thing that adds a 'version' file or something like that
<ryantrinkle> after everything else is built
<{^_^}> [nix] @domenkozar closed pull request #2206 → importPaths: Don't copy imported NAR into memory. → https://git.io/vhW5D
Henson has joined #nixos
<redterd> Yes, now this works! Thanks! But it tells me now that the option `printing` doesn't exist. But I just it in my old configuration file as well: https://github.com/NWuensche/dotFiles/blob/master/nixOS/configuration.nix
<redterd> Nevermind, I forgot the service bracket...
kenshinC1 has joined #nixos
<redterd> Now I have problems with options I didn't change: error: The option `networking.wireless.enable' has conflicting definitions, in `/home/nwuensche/nixpkgs/nixos/modules/profiles/installation-device.nix' and `/home/nwuensche/nixpkgs/nixos/modules/services/networking/networkmanager.nix'.
<Henson> in a nix-shell, how does the NIX_LDFLAGS variable (and other library-related variables) get auto-populated? I see that NIX_CFLAGS_COMPILE magically has the appropriate include files in them, but NIX_LDFLAGS doesn't contain everything. I'm specifically concerned about libraries being included from my own derivations, which are split-derivations. I'm not sure if I'm missing something that is...
<Henson> preventing them from being included in the auto-generated library path variables.
__monty__ has joined #nixos
Mr_Keyser_Soze99 has joined #nixos
FRidh has joined #nixos
<{^_^}> [nixpkgs] @FRidh merged pull request #46140 → python3Packages.genanki: init at 0.6.0 → https://git.io/fAEXo
<{^_^}> [nixpkgs] @FRidh pushed commit from @teto to master « python3Packages.genanki: init at 0.6.0 »: https://git.io/fAu0Z
<phry> is there a way to do an import that is conditional to something config? I'm always getting an infinite recursion
<gchristensen> no. what are you trying to accomplish?
<phry> gchristensen: I want to include "nixpkgs/nixos/modules/profiles/qemu-guest.nix" depending on a configuration value
<{^_^}> [nixpkgs] @vaibhavsagar opened pull request #46167 → all-cabal-hashes: update snapshot to Hackage at 2018-09-04T11:59:40Z → https://git.io/fAu01
lfish has quit [Ping timeout: 252 seconds]
<gchristensen> unfortunately the entire list of imports must be static
rardiol has quit [Ping timeout: 244 seconds]
<redterd> symphorien: Any idea on how to solve the issue?
<phry> I mean, essentially I could also copy & paste it
sbdchd has quit [Remote host closed the connection]
<cransom> you could mkIf or mkMerge if you didn't use the import aspect of it
pikajude has quit [Remote host closed the connection]
<phry> yup. I guess I'll go that way then. just wanted to confirm that I was running in the wrong direction. thanks gchristensen & cransom :)
pikajude has joined #nixos
pikajude has quit [Client Quit]
sbdchd_ has joined #nixos
<symphorien> redterd: it is probably because you use the graphical profile
pikajude has joined #nixos
<symphorien> maybe networking.wireless.enable = mkForce false; ?
<viric> Hello nixos
<viric> when I hibernate...
<{^_^}> [nixpkgs] @fare opened pull request #46168 → New Gambit and Gerbil releases → https://git.io/fAuEZ
<viric> after power on it boots from the OTHER disk, not the default
<viric> (UEFI)
<viric> both disks have a UEFI boot
<redterd> symphorien: I added it in the import.nix for the iso, but it tells me that mkForce is an undefinied variable.
<goibhniu> viric: does the boot.resumeDevice option help?
<symphorien> lib.mkFroce
<symphorien> lib.mkForce *
<viric> goibhniu: that's in stage1. My problem is in BIOS :)
<goibhniu> ah
<viric> why BIOS boots the secondary disk UEFI? I don't know
<viric> Only if I hibernate
<viric> poweroff works fine
sbdchd_ has quit [Remote host closed the connection]
booglewoogle has joined #nixos
sbdchd has joined #nixos
<redterd> symphorien: And now I have the same problem with the display manager: error: The unique option `services.xserver.displayManager.job.execCmd' is defined multiple times, in `/home/nwuensche/nixpkgs/nixos/modules/services/x11/display-managers/slim.nix' and `/home/nwuensche/nixpkgs/nixos/modules/services/x11/display-managers/gdm.nix'. (use '--show-trace' to show detailed location information)
<symphorien> I think you should just revert to the non graphical installer
<viric> goibhniu: a crazy bios maybe
<symphorien> creating a graphical one seems a bit trickier
<redterd> symphorien: But I can't really try out the cups part of the driver then.
<symphorien> then look in nixpkgs how they do
lfish has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46169 → gnome3.webkitgtk: 2.20.5 -> 2.22.0 → https://git.io/fAuEd
<redterd> symphorien: I will try this later. I use the minimal NixOS installation for now and use lpr. Thank you so much for your help!
sbdchd has quit [Ping timeout: 252 seconds]
tzemanovic has joined #nixos
<{^_^}> [nixpkgs] @FRidh merged pull request #46165 → pythonPackages.geopandas: 0.3.0 -> 0.4.0 → https://git.io/fAuBe
<{^_^}> [nixpkgs] @FRidh pushed commit from @costrouc to master « pythonPackages.geopandas: 0.3.0 -> 0.4.0 »: https://git.io/fAuuY
vaibhavsagar has quit [Ping timeout: 252 seconds]
spear2 has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @Infinisil merged pull request #44134 → nixos/iperf: Init the module → https://git.io/fNuek
<{^_^}> [nixpkgs] @FRidh pushed commit from @costrouc to release-18.09 « pythonPackages.geopandas: 0.3.0 -> 0.4.0 »: https://git.io/fAuuV
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fAuua
<{^_^}> [nixpkgs] @FRidh pushed commit from @teto to release-18.09 « python3Packages.genanki: init at 0.6.0 »: https://git.io/fAuu6
rfold has joined #nixos
Shell has left #nixos ["Be back later..."]
takeda has quit [Ping timeout: 252 seconds]
booglewoogle has quit [Remote host closed the connection]
booglewoogle has joined #nixos
timon37 has joined #nixos
<elvishjerricco> fresheyeball: I just builtins.readFile the .git/refs/heads file and put it in an nginx end point. Doesn't require rebuilding the main server that nginx proxies to.
hxrts_ has quit [Ping timeout: 252 seconds]
stepcut has quit []
<elvishjerricco> So *almost* all of the build isn't affected by the git hash. But the nginx config is rebuilt to serve the git hash whenever it changes
<Henson> how does pkgconfig work with Nix? I see some derivations have pkgconfig files in their directories, but the derivation files themselves don't make any mention of it. Are these auto-generated by Nix? Are they templates and the path information is substituted in? Are they generated by an inner config script?
<clever> Henson: its usually generated by the makefiles of the project
<clever> which is just obeying the --prefix passed to configure
<Henson> clever: ahh, ok
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46170 → varnish6: 6.0.0 -> 6.0.1 → https://git.io/fAu2z
logzet has joined #nixos
worldofpeace has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46171 → tinyproxy: 1.8.4 -> 1.10.0 → https://git.io/fAu2N
<{^_^}> [nixpkgs] @vbgl merged pull request #45806 → opam: 1.2.2 -> 2.0.0 → https://git.io/fAcrn
<{^_^}> [nixpkgs] @vbgl pushed commit from @xplat to master « opam: 1.2.2 -> 2.0.0 (#45806) »: https://git.io/fAuav
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46172 → stunnel: 5.46 -> 5.49 → https://git.io/fAuaG
chessai has quit [Ping timeout: 252 seconds]
phreedom has joined #nixos
tzemanovic has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46173 → gitAndTools.svn-all-fast-export: 1.0.12 -> 1.0.13 → https://git.io/fAuaM
<redterd> symphorien: So I flashed the iso. However, the printer doesn't get recognized. I looked into the /etc/nixos/configuration.nix file while using the live distro, and it was empty. Should this be the case?
phreedom_ has quit [Ping timeout: 256 seconds]
<Henson> clever: in a nix-shell environment, do you know how things make their way into the NIX_LDFLAGS variable?
xok has quit [Quit: Page closed]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46174 → tortoisehg: 4.6.1 -> 4.7 → https://git.io/fAuwz
<andrewrk> I'm running an application which is printing "Error: GLX: Failed to load GLX" on startup. According to strace it's looking for libGL.so in various places such as /run/opengl-driver/lib/libGL.so.1, as well as all the /nix/store/* rpaths.
<andrewrk> Where would be the correct place to find it? Is my nix configuration missing something? This used to work; maybe this is a regression in NixOS?
erickomoto has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46175 → uftp: 4.9.7 -> 4.9.8 → https://git.io/fAuwF
<tobiasBora> Hum... What is the proper way to write a nix-code that is supposed to be run only once (for example to setup keys...)
work_ has joined #nixos
<tobiasBora> Before, I was creating a systemd service that was checking if the keys exists...
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46176 → star: 2.6.0c -> 2.6.1a → https://git.io/fAurZ
<tobiasBora> but I just saw here that clever seems to use some strange build-based method I don't fully understand : environment.systemPackages = [ config.system.build.justdoit ];
ryanartecona has quit [Quit: ryanartecona]
chessai has joined #nixos
takeda has joined #nixos
ixxie has quit [Ping timeout: 252 seconds]
FRidh has quit [Remote host closed the connection]
<fresheyeball> can a derivation have an empty source?
<fresheyeball> just depend on buildInputs?
mayhewluke has quit [Ping timeout: 240 seconds]
worldofpeace has quit [Ping timeout: 252 seconds]
mayhewluke has joined #nixos
ixxie has joined #nixos
semihonest has quit [Ping timeout: 252 seconds]
humanoyd has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46177 → linuxPackages.sysdig: 0.22.1 -> 0.23.1 → https://git.io/fAuox
johanot has joined #nixos
ryanartecona has joined #nixos
orivej has joined #nixos
erickomoto has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lsyoyom has joined #nixos
erickomoto has joined #nixos
erickomoto has quit [Client Quit]
erickomoto has joined #nixos
erickomo_ has joined #nixos
erickomo_ has quit [Client Quit]
<{^_^}> [nixpkgs] @costrouc opened pull request #46178 → pythonPackages.jupyterlab_launcher: refactor → https://git.io/fAuKp
Henson has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
erickomoto has quit [Ping timeout: 240 seconds]
_ris has joined #nixos
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/8ea6fdeac7b (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<infinisil> fresheyeball: Yeah, you can just set unpackPhase = ":"
<infinisil> fresheyeball: Or use runCommand
<{^_^}> [nixpkgs] @costrouc opened pull request #46179 → pythonPackages.kuberentes: refactor → https://git.io/fAu6h
<infinisil> pkgs.runCommand "name" { buildInputs = [ ... ]; } "echo hi > $out"
Fare has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46180 → tilix: 1.8.3 -> 1.8.5 → https://git.io/fAuiT
lord| has joined #nixos
<fresheyeball> infinisil: runCommand? is there docs for that?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46181 → vim: 8.1.0146 -> 8.1.0348 → https://git.io/fAuiD
<infinisil> Just where it's defined
winem_ has quit [Ping timeout: 240 seconds]
<infinisil> ,find trivial-builders.nix
<infinisil> I think at least
hxrts_ has joined #nixos
<{^_^}> [nixpkgs] @dotlambda pushed to master « home-assistant: 0.77.2 -> 0.77.3 »: https://git.io/fAuij
<{^_^}> [nixpkgs] @danieldk opened pull request #46182 → python2Packages.spacy_models: update all models to version 2.0.0 → https://git.io/fAuPB
<symphorien> redterd: yes. /etc/nixos/configuration.nix is only needed to build the system to it is possible the iso does not embed it
<fresheyeball> infinisil: what is runCommand's attr path?
<infinisil> pkgs.runCommand?
<{^_^}> [nixpkgs] @Ericson2314 pushed to release-18.09 « doc: Add release notes for top-level {build,host,target}Platform deprecation »: https://git.io/fAuP2
<fresheyeball> how can I have a src path of .git? nix does not like the .
<elvishjerricco> fresheyeball: `builtins.path { path = ./.git; name = "git"; }`. The `path` builtin lets you rename path literals.
<elvishjerricco> fresheyeball: Did you see my earlier message?
<{^_^}> [nixpkgs] @xeji merged pull request #45784 → nixos/shells: Avoid overriding the environment for other child shells → https://git.io/fAnHL
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/fAuPH
<fresheyeball> elvishjerricco: I did not
sigmundv has quit [Ping timeout: 245 seconds]
<elvishjerricco> I just use `builtins.readFile ./.git/refs/heads/master` to get the rev as a Nix string
<{^_^}> [nixpkgs] @costrouc opened pull request #46183 → pythonPackages:ordered-set: refactor → https://git.io/fAuPF
<elvishjerricco> Then I make an nginx proxy that serves that at `rev` and proxies to the actual server otherwise
<fresheyeball> elvishjerricco: that can't be right since you can't have .git in a nix path that way
<{^_^}> [nixpkgs] @xeji pushed 2 commits to release-18.09: https://git.io/fAuXU
<elvishjerricco> fresheyeball: It's eval-only. Doesn't get copied to the store
<fresheyeball> I mean just syntax wise
<elvishjerricco> fresheyeball: Nix is fine with `./.git` as a path literal. It just won't let you copy it to the store
<elvishjerricco> fresheyeball: Also, here's the hacky thing I use to get the rev of HEAD rather than a specific branch:
<elvishjerricco> `builtins.readFile (./.git + ("/" + builtins.replaceStrings ["ref: " "\n"] ["" ""] (builtins.readFile ./.git/HEAD)))`
<elvishjerricco> Doesn't work if HEAD is detached though
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46184 → snd: 18.6 -> 18.7 → https://git.io/fAuXu
<fresheyeball> elvishjerricco: wow that is a complex one
<fresheyeball> we should probably put that in nixpkgs
fzer0 has quit [Quit: Leaving]
__lawlesseel__ has quit [Ping timeout: 256 seconds]
ixxie has quit [Quit: Lost terminal]
<elvishjerricco> fresheyeball: Nah. It's too hacky and breakable IMO
<elvishjerricco> Mainly because it breaks if HEAD is detached
sbdchd has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #46178 → pythonPackages.jupyterlab_launcher: refactor → https://git.io/fAuKp
<{^_^}> [nixpkgs] @xeji pushed commit from @costrouc to master « pythonPackages.jupyterlab_launcher: refactor (#46178) »: https://git.io/fAuX5
<infinisil> > :v rev
<{^_^}> rev = let head = builtins.readFile <nixpkgs/.git/HEAD>; ref = builtins.readFile (<nixpkgs> + "/.git/${builtins.substring 5 (builtins.stringLength head - 6) head}"); in builtins.substring 0 (builtins.stringLength ref - 1) ref
<infinisil> > rev
<{^_^}> "7662b89d66fb5bb8fd9286e059ac259757a853e9"
<infinisil> This is how I implemented it for the bot to report it's nixpkgs version, but as you said, it breaks on detached heads
xok has joined #nixos
<{^_^}> [nixpkgs] @xeji pushed commit from @costrouc to release-18.09 « pythonPackages.jupyterlab_launcher: refactor (#46178) »: https://git.io/fAuXx
<xok> hello all...
<xok> I am new to nixos...
<infinisil> "it breaks on detached heads" is not something non-programmers usually say lol
<xok> can anyone help me deploy zabbix monitoring server on the nixos?..
<fresheyeball> so I got the src to be .git
<fresheyeball> but the `git` command says its not in a git repo, presumably because its inside the .git folder now
<xok> or point me to a good documenation to follow..
<andi-> xok: I never did that but I guess you saw the option for it? (services.zabbixServer...)
<xok> andi-: yes, I've got this in the config: services.zabbixServer.enable = true;
<xok> but it didn't start...
<andi-> you did rebuild the nixos configuration?
<andi-> (nixos-rebuild switch)
<infinisil> fresheyeball: What's your goal really?
<xok> I use nixops and the zabbix server is on the digitalOcean...
<xok> how do I run that ?..
<fresheyeball> to have the git rev as either a derivation or a string
<andi-> ok, then you just have to do a `nixops deploy` after changing it.
<xok> andi-: I did, but it's still missing...
<andi-> xok: check the service logs using `journalctl` on the machine to figure out why
<andi-> `zabbix-server` should be the units name.
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46185 → radarr: 0.2.0.995 -> 0.2.0.1120 → https://git.io/fAu12
<xok> how do I "SSH" to the machine?..
<xok> I'm trying to nixops ssh but can't figure out what should be the machine name...
<xok> the IP doesn't work...
<xok> doesn't work the -d machine_name
<xok> what else should I put after SSH?..
<fresheyeball> infinisil: elvishjerricco https://lpaste.net/7316478403643703296
<andi-> xok: nixops ssh -d <uuid> <machine> IIRC
erickomoto has joined #nixos
<andi-> uddi = deployment uuid (nixops list for the list)
<infinisil> fresheyeball: fetchGit doesn't work?
<xok> andi-: what's <machine>?...
<elvishjerricco> fresheyeball: Why not the readFile approach?
<fresheyeball> elvishjerricco: it breaks as you said
erickomoto has quit [Read error: Connection reset by peer]
<elvishjerricco> fresheyeball: Well that one also breaks :P
<andi-> xok: the name of the attribute that configures the machine.
<fresheyeball> this will just make a useless string, instead of failing the build
<elvishjerricco> fresheyeball: When sandboxing is on
<xok> ah, I think I understand...
<fresheyeball> elvishjerricco: how so?
<elvishjerricco> Oh wait maybe not...
<fresheyeball> this doesn't work though
<fresheyeball> fatal: not a git repository (or any of the parent directories): .git
<elvishjerricco> Huh.
<elvishjerricco> fresheyeball: Oh. `runCommand` doesn't unpack `src`
<elvishjerricco> fresheyeball: Just use `stdenv.mkDerivation` and put that script in `installPhase`
knupfer has joined #nixos
<{^_^}> [nixpkgs] @costrouc opened pull request #46186 → Costrouc/python ncclient → https://git.io/fAuMu
<fresheyeball> elvishjerricco: https://lpaste.net/3438275222011117568
<fresheyeball> same error
<fresheyeball> fatal: not a git repository (or any of the parent directories): .git
<fresheyeball> what. the. hell.
selfsymmetric-pa has joined #nixos
<selfsymmetric-pa> Does anybody use a linter for their Nix files?
<fresheyeball> selfsymmetric-pa: I do
<elvishjerricco> fresheyeball: I don't *think* that's how `phases` works... Not sure. But it shouldn't be necessary. Try just not setting `phases`
<fresheyeball> vim nix plugin
<elvishjerricco> There's a Nix linter?
<fresheyeball> elvishjerricco: it has to, how else it the git command getting run?
<elvishjerricco> fresheyeball: installPhase runs automatically
<fresheyeball> elvishjerricco: yes, nix-instantiate is a linter
<elvishjerricco> It's one of the default phases
<elvishjerricco> "nix-instantiate is a linter" I don't understand
<fresheyeball> elvishjerricco: you can use it as a linter in editor
<fresheyeball> have it tell you about undefined variables in scope and such
graphene has quit [Remote host closed the connection]
<elvishjerricco> Oh. Not quite what I imagine when I hear "linter" :P
<fresheyeball> it effectively is linting
<selfsymmetric-pa> To be honest I suppose I meant "static analysis".
<selfsymmetric-pa> Something to put in my editor to help me out with the syntax.
<selfsymmetric-pa> (in my case, Emacs)
<fresheyeball> selfsymmetric-pa: yes, that is what my suggestion does
graphene has joined #nixos
<fresheyeball> it points out syntax problems as I type
<infinisil> There isn't any working linter as of now, you can only use nix-instantiate --parse to detect invalid syntax
<fresheyeball> infinisil: that command has editor integration
<infinisil> Yeah I know
<infinisil> emacs flycheck actually has support for it
<elvishjerricco> fresheyeball: "linting" to me implies checking for common bad practices and styles, not just syntax validation. But it sounds like your suggestion is good for selfsymmetric-pa
<fresheyeball> elvishjerricco: I don't know of a thing that does that
ZaraChimera has joined #nixos
<infinisil> fresheyeball: For you git thing, `(fetchGit /some/path).rev` should get you the string of the revision
<selfsymmetric-pa> Yep, sorry elvishjerricco, I was imprecise.
<elvishjerricco> not for nix. But compare to e.g. hlint or eslint
<selfsymmetric-pa> Didn't mean to turn this into a dictionary game.
<elvishjerricco> infinisil: Whoa
<elvishjerricco> that's awesome
lawlesseel has joined #nixos
<infinisil> It does import the whole thing into the store though..
<elvishjerricco> infinisil: Was that in 2.0?
<infinisil> Yea
<fresheyeball> infinisil: does that work with detached head?
<infinisil> try it and see
<selfsymmetric-pa> omg
<infinisil> should work
<fresheyeball> ok
<selfsymmetric-pa> `nix-instantiate --parse emacs.nix` is on by default in Emacs. I just forgot to enable flycheck-mode. XD
<infinisil> Hehe
<selfsymmetric-pa> This works perfectly. Thank you!
<infinisil> Nix really doesn't have good editor integration at all, so even this slight help makes it look awesome :P
<elvishjerricco> infinisil: It's too bad it copies it into the store, but that's probably fine. It only copies the actual HEAD tree, not any staged or unstaged changes, right?
<infinisil> I think it copies unstaged stuff as well
<elvishjerricco> infinisil: Yep, looks like it :(
<elvishjerricco> And in that case, it just gives `rev = "00000...";`
<fresheyeball> { outPath = "/nix/store/j2cm1d5ni827pnn2s5yk7l5slplsqywn-source"; rev = "0000000000000000000000000000000000000000"; revCount = 0; shortRev = "0000000"; }
<elvishjerricco> fresheyeball: Yea that means you have unstaged changes to tracked files
<elvishjerricco> Very frustrating
<xok> I am trying to install mysql on nixos...
<xok> but I get an error like this: error: The option `services.mysql.package' is used but not defined.
<{^_^}> [nixpkgs] @bjornfor pushed commit from R. RyanTM to master « woeusb: 3.2.1 -> 3.2.2 »: https://git.io/fAuDD
Fare has quit [Ping timeout: 244 seconds]
<xok> how do I define that variable, what exactly should I use?..
<xok> I tried "mariadb", "mysql" but none worked...
<elvishjerricco> fresheyeball: Ooh I found a workaround
<elvishjerricco> `builtins.fetchGit { url = ./.; ref = "HEAD"; }`
<xok> to be clear I used: services.mysql.package = "mariadb" for example but it didn't work..
<fresheyeball> elvishjerricco: !!! do tell!!!
<elvishjerricco> but that will not contain unstaged changes
<{^_^}> [nixpkgs] @bjornfor closed pull request #46158 → winusb: 3.2.1 -> 3.2.2 → https://git.io/fAumz
<elvishjerricco> But that doesn't matter if you're only interested in the rev
<fresheyeball> elvishjerricco: unstaged changes SHOULD effect this
<elvishjerricco> how would unstaged changes effect `rev`?
<fresheyeball> because those changes could impact the artifact
<elvishjerricco> That's not how git works
<fresheyeball> I mean, unstaged changes should produce some kind of error version
<fresheyeball> 00000 is reasonable
<elvishjerricco> Ah. Ok
<infinisil> Yeah
hotfuzz has quit [Read error: Connection reset by peer]
<infinisil> Ah but that ref = HEAD thing is neat
<fresheyeball> if it didn't then we could have a good build, that says its part of commit X but is actually based on unstaged changes
johanot has quit [Quit: leaving]
<elvishjerricco> Still, TIL you can use fetchGit on local paths. That's so useful
<fresheyeball> yeah, that was a big help
hotfuzz has joined #nixos
<{^_^}> [nixpkgs] @costrouc opened pull request #46187 → pythonPackages.pyslurm: 20180604 -> 20180811 → https://git.io/fAuyT
lfish has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46188 → rosegarden: 17.12.1 -> 18.06 → https://git.io/fAuyq
<rotaerk> got a basic haskell development environment setup for tinkering with vulkan: https://github.com/Rotaerk/vulkanTest/tree/sandbox/sandbox
<rotaerk> using nix to resolve tools and non-haskell dependencies, but allowing cabal to resolve all haskell dependencies
rauno has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46189 → smenu: 0.9.13 -> 0.9.14 → https://git.io/fAuyZ
<elvishjerricco> infinisil: The HEAD trick unfortunately seems to fall prey to ~/.cache/nix/git
<infinisil> What's that?
<{^_^}> [nixpkgs] @bjornfor pushed commit from R. RyanTM to master « plantuml: 1.2018.9 -> 1.2018.10 »: https://git.io/fAuyW
<{^_^}> [hydra] @edolstra merged pull request #575 → jobset view: jump back to the proper tab when displaying all failed jobsets → https://git.io/fNYcN
<{^_^}> [hydra] @edolstra pushed 2 commits to master: https://git.io/fAuyB
<elvishjerricco> infinisil: Checkout a different commit then reevaluating `builtins.fetchGit { url = ./.; ref = "HEAD"; }` does not update
<elvishjerricco> It'll return the old commit
<infinisil> Ah darn
<elvishjerricco> Until you delete ~/.cache/nix/git
<elvishjerricco> infinisil: Yea. Makes sense at some level, but definitely unfortunate
<fresheyeball> oh I have noticed a bad bug recently
<elvishjerricco> It'd be nice if you could ask it not to cache
<fresheyeball> if you use fetchFromGitHub, and change the rev
<fresheyeball> it doesn't trigger a new fetch, you also have to twiddle the sha256
<infinisil> elvishjerricco: I wouldn't mind this being an issue (on github)
<fresheyeball> but this means the code is not actually deterministic
<elvishjerricco> fresheyeball: Not a bug. All derivations with the same sha256 are treated as the same output, because that's what the hash is for
lawlesseel has quit [Remote host closed the connection]
<fresheyeball> elvishjerricco: its certainly a bug, because what is in the nix store inpacts the output
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46190 → riot-web: 0.16.0 -> 0.16.2 → https://git.io/fAuyD
lawlesseel has joined #nixos
<fresheyeball> like, just because I said it has this sha don't make it so
<fresheyeball> and in this case, its wrong
<{^_^}> [nixpkgs] @bjornfor closed pull request #45802 → plantuml: 1.2018.9 -> 1.2018.10 → https://git.io/fAcEw
<elvishjerricco> fresheyeball: From Nix's perspective, if the sha256 is wrong, then that's your expression's fault. Nix wants to see all derivations with the same sha256 as literally the same output, so it sees not reason to rebuild them. Plus, the has of derivations with sha256s is based on only that hash, not the inputs, so it doesn't have another path to put it in
<fresheyeball> I think that is a problem
<{^_^}> [nixpkgs] @shlevy pushed to master « nix-plugins: 4.0.5 -> 5.0.0. »: https://git.io/fAuyN
<elvishjerricco> I agree it's annoying. But it's kinda the whole point of fixed-output derivations. Nix doesn't have to worry about rebuilds when it knows the hash is unchanged.
<fresheyeball> elvishjerricco: I moved everything to fetchGit to prevent the human error
<fresheyeball> its for sure a transparency issue
<elvishjerricco> Open an issue on NixOS/nix then
<infinisil> elvishjerricco: Oh actually, couldn't the caching expire for it?
<infinisil> Same with builtins.fetchTarball
<infinisil> It caches it for an hour
<infinisil> (by default)
<elvishjerricco> infinisil: Yea, the cache will expire eventually. But not immediately
<infinisil> Ah yeah, but then it's not *too* bad
<infinisil> And you can always reduce the caching time
<fresheyeball> in my experience it does not expire
<fresheyeball> but I could be wrong
<infinisil> It only applies if you didn't provide a sha
<shlevy> --tarball-ttl 0
<shlevy> Yes, only if there's no hash
<bigvalen> So, you know you can boot from a nixos-installer image as a 'rescue' image.... when I do that, mount my original root, and then try chroot into that root...it fails. Can't find bash.
<bigvalen> Is there some ... more nixos-way of doing this ?
<srhb> bigvalen: like nixos-enter?
tzemanovic has joined #nixos
peel_ has joined #nixos
<elvishjerricco> fresheyeball: I don't think there's a way to fix that fetchFromGitHub problem though. The output path is dependent only on the sha256, not the build inputs. Fixing that would force all fixed-output-derivations that anyone's using to rebuild and change path.
<fresheyeball> nixosTM making the impossible possible
<bigvalen> srhb, Sweeet. That looks like it.
<fresheyeball> is there a way to get ctags for nix?
<elvishjerricco> fresheyeball: https://nixos.org/nix/manual/#fixed-output-drvs Ok, this page makes a decent point: If you change mirrors, the current behavior allows Nix to not rebuild all the dependencies. I can see that mattering for stuff like GCC.
<symphorien> fresheyeball: http://xelpaste.net/BM18oc I have got this
<symphorien> I should make it comments aware
<infinisil> I have an idea cooking to generate tags files for nixpkgs
<gchristensen> infinisil: oooOooo
<elvishjerricco> infinisil: That sounds doable with `unsafeGetAttrPos`
<elvishjerricco> at some level
WizBright has quit [Ping timeout: 268 seconds]
<infinisil> Actually, check out these changes I have on the bots nixpkgs branch:
<infinisil> > haskellPackages.xmonad.attrPos
<{^_^}> { column = 3; file = "/var/lib/nixbot/state/nixpkgs/pkgs/development/haskell-modules/configuration-nix.nix"; line = 225; }
<infinisil> > haskellPackages.xmonad.attrPath
<{^_^}> [nixpkgs] @costrouc opened pull request #46191 → pythonPackages.locustio: 0.8.1 -> 0.9.0 → https://git.io/fAu9Y
<{^_^}> [ "haskellPackages" "xmonad" ]
<elvishjerricco> infinisil: Whoa.
jasongro` has quit [Remote host closed the connection]
<fresheyeball> ok, so I wrapped my haskell drv in a new drv that adds the version
<fresheyeball> but now I don't get my binary in my path doing
hlolli has joined #nixos
<fresheyeball> nix-env -f . -i
<srhb> infinisil: I like the new names :)
<fresheyeball> I don't actually know what controls that
<infinisil> elvishjerricco: Also, I implemented this with it:
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to release-18.09: https://git.io/fAu9l
<bigvalen> srhb, So, turns out that running 'nixos-rebuild' in that chroot was a bad idea. It threw up a few errors about 'not running under systemd'.
<srhb> fresheyeball: It just has to be in /bin/
<infinisil> > viewSource xmonad
<{^_^}> undefined variable 'xmonad' at (string):191:12
<srhb> bigvalen: Right...
<infinisil> > viewSource pkgs.xmonad
<{^_^}> attribute 'xmonad' missing, at (string):191:12
<infinisil> > viewSource pkgs.haskellPackages.xmonad
<fresheyeball> srhb: ls result, show a /bin with stuff
<{^_^}> "configuration-nix.nix:225 xmonad = appendPatch (dontCheck super.xmonad) ./patches/xmonad-nix.patch;"
<bigvalen> Now..
<elvishjerricco> bigvalen: Are you looking for `nixos-enter`?
<bigvalen> Attempting Boot From USB DriveKey (C:)
<bigvalen> GRUB loading..
<bigvalen> Welcome to GRUB!
<bigvalen> error: no such device: 06a9199c7af41d00.
<bigvalen> error: unknown filesystem.
<bigvalen> Entering rescue mode...
<bigvalen> grub rescue>
<bigvalen> D'oh.
<srhb> bigvalen: At that point it's usually actually simpler to use nixos-install with all the mounts in place
<{^_^}> [nixpkgs] @grahamc pushed commit from @shlevy to release-18.09 « nix-plugins: 4.0.5 -> 5.0.0. »: https://git.io/fAu9u
<bigvalen> elvishjerricco, I tried that. Didn't work out well.
<infinisil> ,paste bigvalen
<{^_^}> bigvalen: Use a website such as http://nixpaste.lbr.uno/ or https://gist.github.com/ to share anything that's longer than a couple lines
<elvishjerricco> bigvalen: I think this is exactly what nixos-enter / nixos-install are supposed to be for though
<bigvalen> srhb, If I can get it to boot from the rescue image, I'll totally do that :)
<srhb> bigvalen: Because that's essentially the same.
<infinisil> elvishjerricco: (i hope you didn't miss the viewSource :P)
<infinisil> I'm in #nix-lang if anybody wants to discuss such stuff without distracting this channel
<bigvalen> Not quite sure when to use nixos-install and nixos-rebuild. I'd edited hardware.nix and configuration.nix to change the root to be a different zfs volume. Didn't work out. Thought I could just boot from rescue, mount the new ZFS volume, and boot that.
goibhniu has quit [Ping timeout: 252 seconds]
<elvishjerricco> infinisil: Oh cool. It shows the source of the attr's definition?
<infinisil> Yup
<infinisil> Implemented in Nix!
<elvishjerricco> Very cool
WizBright has joined #nixos
<fresheyeball> infinisil: the fetchGit approach returns a rev when there are uncommited changes
<fresheyeball> when used in default.nix
<fresheyeball> but NOT when using in nix repl
<elvishjerricco> Oh
<elvishjerricco> I was doing it in the repl
<fresheyeball> me too, the behavior in the repl is desireable
<fresheyeball> the behavior in the default.nix is not
<{^_^}> [nixpkgs] @grahamc pushed 3 commits to release-18.09: https://git.io/fAu9H
<infinisil> Huh, those shouldn't behave differently
<fresheyeball> also my binary is no longer in my path
<elvishjerricco> Oh no. The HEAD thing still caches with default.nix
<fresheyeball> I am very confused
<srhb> bigvalen: I can't think of any situations where it's REALLY unsafe to run nixos-install on an existing install. That is, with all the mounts in place and the configuration correct.
<fresheyeball> yeah, fetchGit ./. caches
<fresheyeball> it don't work
<elvishjerricco> fresheyeball: FYI, it doesn't see untracked things as changes; only tracked things, staged or unstaged
<elvishjerricco> That might be the difference you were observing
<{^_^}> [nixpkgs] @grahamc opened pull request #46192 → Nix 2.1 on 18.09 → https://git.io/fAuHe
<fresheyeball> well, that and making commits doesn't change the output
<ldlework> Where would I stick an override if I wanted the override to show up inside "ps" relevant to something like: python = pkgs.python3.withPackages (ps: with ps; [
<fresheyeball> so it is just not a workable approach
<{^_^}> [nixpkgs] @oxij opened pull request #46193 → nixos: doc: implement #12542 → https://git.io/fAuHv
<elvishjerricco> That doesn't sound right to me.. That's not what I'm experiencing at all
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<srhb> ldlework: the packageOverrides argument to python.override
<ldlework> srhb: i want to do it from the overlay, not each place I use the python package
<elvishjerricco> fresheyeball: Any tracked change, be it a checkout or an edit, yields a different output for me
<fresheyeball> I just tested this
<fresheyeball> but I am making empty commits
<srhb> ldlework: Yes.. so self: super: { python = super.python.override { packageOverrides = ...
<elvishjerricco> Empty commits?
<fresheyeball> yeah, because I want to see it update without changing the source
<fresheyeball> it need to update based on commit
<elvishjerricco> Ah, --allow-empty
jD91mZM2 has quit [Quit: WeeChat 2.0]
<elvishjerricco> fresheyeball: It's updating correctly for me
<fresheyeball> elvishjerricco: hu, its not for me
<elvishjerricco> fresheyeball: Can I see some code?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46194 → rspamd: 1.7.3 -> 1.7.9 → https://git.io/fAuHo
<fresheyeball> elvishjerricco: it was just (fetchGit ./.).rev
<elvishjerricco> fresheyeball: And the issue is that it doesn't update in a nix file, but does in a repl?
<fresheyeball> when I do a nix-build, it pulls from cache instantly
<fresheyeball> and when I check `result` the old rev is in there
<elvishjerricco> hm...
<srhb> ldlework: Isn't packageOverrides supposed to be a function from the old packages to the new as well
ryanartecona has quit [Quit: ryanartecona]
<srhb> ldlework: See section 9.11.2.2.1.2 in the nixpkgs manual
vaibhavsagar has joined #nixos
<srhb> ldlework: Looks good.
<sphalerite> srhb: that is a _beautiful_ reference. xD
<srhb> sphalerite: Inorite >_>
<elvishjerricco> fresheyeball: Testing... I was only doing eval, not an actual build
<ldlework> srhb: it says
<ldlework> attempt to call something which is not a function but a set, at /nix/store/g26fs0jbfbvbcghr3vawi7ynpl5h3gaw-nixos-18.03.132405.ee80654b526/nixos/lib/fixed-points.nix:44:67
<ldlework> anyway I'll follow the manual closely
<srhb> ldlework: Ah, pkgs is pythonPackages in the inner scope
<elvishjerricco> fresheyeball: Nope. `haskellPackages.callCabal2nix "foo" (fetchGit ./.) {}` rebuilds whenever I checkout a different commit.
<srhb> so you want pkgs.buildPythonPackage and self.fetchFrom...
<fresheyeball> I think the source is the effect there
<fresheyeball> don't do callCabal2nix
<elvishjerricco> fresheyeball: What do you mean?
ryanartecona has joined #nixos
<fresheyeball> a more limited example would show the problem
<fresheyeball> don't do haskell stuff
<elvishjerricco> What's bad about my example?
<fresheyeball> I think callCabal2nix is effecting it
<elvishjerricco> Why?
<fresheyeball> I will make a minimal later
sir_guy_carleton has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46195 → remmina: 1.2.31.3 -> 1.2.31.4 → https://git.io/fAuQK
<{^_^}> [nixpkgs] @grahamc merged pull request #46192 → Nix 2.1 on 18.09 → https://git.io/fAuHe
<{^_^}> [nixpkgs] @grahamc pushed 4 commits to release-18.09: https://git.io/fAuQX
sbdchd has quit [Remote host closed the connection]
<elvishjerricco> fresheyeball: I'm still getting the right behavior with this: https://www.irccloud.com/pastebin/MCB64UnL/
rfold has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @oxij opened pull request #46196 → kodi: implement `kodiWithPlugins`, add more plugins → https://git.io/fAu7m
civodul has joined #nixos
<{^_^}> [nixpkgs] @jtojnar closed pull request #46169 → gnome3.webkitgtk: 2.20.5 -> 2.22.0 → https://git.io/fAuEd
tzemanovic has quit [Ping timeout: 240 seconds]
<fresheyeball> anyone using callCaball2nix in an hpack project?
<infinisil> I don't, but what's the problem/
<fresheyeball> infinisil: I have to have a .cabal file to use callCabal2nix
work_ has quit [Quit: Connection closed for inactivity]
<infinisil> fresheyeball: You should be able to use haskellSrc2nix instead, it has an option for extra cabal2nix flags, one of which can be --hpack (or so)
<infinisil> Look at how callCabal2nix is defined for that
<fresheyeball> elvishjerricco: https://lpaste.net/6780817950866669568
<fresheyeball> QED
JonReed has joined #nixos
<fresheyeball> the reason you are seeing it update is your sources overlap
<{^_^}> [nixpkgs] @leenaars opened pull request #46198 → hyperscrypt-font: init at 1.1 → https://git.io/fAu5B
kenshinC1 has quit [Ping timeout: 252 seconds]
<elvishjerricco> fresheyeball: Nope. Just tried that. Still worked fine
<fresheyeball> elvishjerricco: ok, so now there is alegit env issue
<elvishjerricco> fresheyeball: callCabal2nix is supposed to do hpack automatically, I thought
<elvishjerricco> fresheyeball: I'd file a bug on NixOS/nix
erickomoto has joined #nixos
Fare has joined #nixos
winem_ has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46199 → sec: 2.7.12 -> 2.8.0 → https://git.io/fAudg
dbmikus__ has quit [Ping timeout: 245 seconds]
jrolfs_ has quit [Ping timeout: 240 seconds]
<fresheyeball> elvishjerricco: how did you test my snippet?
<fresheyeball> did you alter it in any way?
<elvishjerricco> fresheyeball: I committed it in a git repo, built it, committed a blank line to `installPhase`, then built again
<elvishjerricco> I also just tried making 3 changes without committing, building between each change. Each change was reflected in the build
<fresheyeball> I will make a gif
dbmikus__ has joined #nixos
Notkea has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46200 → rednotebook: 2.3 -> 2.6.1 → https://git.io/fAuFB
floop has joined #nixos
mounty has joined #nixos
<{^_^}> [nixpkgs] @tadfisher opened pull request #46201 → nixos/networkmanager: fix VPN plugin service definition targets → https://git.io/fAuFy
<floop> hi all, I've managed to hose my local nix installation when the latest nixpkgs forced me to update to 2.0, and now everything is borked. After innumerable attempts to run the normal installer, I ended up deleting my entire /nix directory and starting from scratch. This eventually resulted in a successful installation, but now it's saying "error: opening lock file '/nix/var/nix/db/big-lock': Permission denied" when I actually try to run
jperras has quit [Ping timeout: 244 seconds]
<floop> has anyone encountered this before?
<floop> the same error occurs when I attempt to run `nix-shell` etc
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<qyliss> What do I need to do to get things set up so I can `nixos-rebuild switch --build-host`? I gather I have to do something with keys but it doesn't seem to be documented very well...
jperras has joined #nixos
<floop> When I run `export NIX_REMOTE=daemon` and try another nix command, I get 'error: cannot connect to daemon at '/nix/var/nix/daemon-socket/socket': No such file or directory'
erickomoto has quit [Read error: Connection reset by peer]
<floop> I ran the installation script with `--daemon` by the way
<infinisil> floop: What's the arch?
<floop> osx
seanparsons has quit [Read error: Connection reset by peer]
<bigvalen> When using 'nixos-enter', it's really a good idea to run 'mount /boot' before trying to boot your system :)
<floop> high sierra 10.13.4
<bigvalen> Turns out, there was a skeleton grub config under /boot ;)
<srhb> bigvalen: Ew..
georges-duperon has joined #nixos
<bigvalen> srhb, At least I know what I did wrong.
<infinisil> floop: I see "The Nix installer will no longer default to the Multi-User installation for macOS. You can still instruct the installer to run in multi-user mode."
<srhb> bigvalen: is that skeleton grub config a remnant from your system or from our installer? In the latter case we should probably make sure that doesn't exist
<infinisil> in the release notes
mounty has quit [Ping timeout: 245 seconds]
<floop> ok, I could delete everything again and rerun the installer....
<bigvalen> srhb, I think it was left over from the installer, maybe.
seanparsons has joined #nixos
<floop> my previous installation was with multi-user though
<bigvalen> Anyway. Byegones. I wonder would it be worth having nixos-enter run mount -a or something.
<floop> This is pretty frustrating, I've been using nix for years and rely on it pretty heavily these days. Being forced to update is ok, not great, but when said update breaks your system it kind of blows
<bigvalen> I suppose, you've no idea what filesystems someone may need mounting.
<infinisil> floop: Yeah that's certainly not optimal, is there an issue for it here? https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc
<bigvalen> Dammit. I got a grub prompt again. 'nixos-rebuild boot' doesn't actually run grub, does it ?
<bigvalen> I think there is a separate command for that...
<infinisil> floop: There were heavy discussions on whether 2.0 should be the minimal version already.. I was against it :/
<{^_^}> #45779 (by grahamc, 1 week ago, merged): Nix minimal version: 1.11 -> 2.0
<floop> infinisil: unfortunately, at this point my system is probably in too much of a snowflake state to make a reproducible issue
<gchristensen> floop: let's get this sorted
<floop> uggghhhhh. Now I'm getting a `cannot connect to daemon` error while I'm just trying to run the regular installer
<floop> after I deleted my /nix directory
<LnL> unset NIX_REMOTE
<gchristensen> floop: please delete /nix, re-run the installer with --daemon like you did the first time. but this time, open it in a new terminal to make sure there are no NIX_* variables set.
<LnL> and multi-user is still supported, and preferred for nontrivial usage
<{^_^}> [nixpkgs] @candeira opened pull request #46202 → lua5.1: fix broken source fetch (#40748 backport) → https://git.io/fAuN0
<floop> why doesn't the single-user installation script unset NIX_REMOTE, or fail if it's set?
<gchristensen> I'm sorry you didn't come for help sooner, I'd have really liked to figure out what went wrong so we can make the instructions better
<gchristensen> floop: a great question, I've got a task on my task-tracker to fix that.
<LnL> floop: just an oversight
<floop> ok I'm rerunning the installer with --daemon in a fresh terminal
<floop> blargh now I'm getting errors about installation relics
<LnL> gchristensen: btw, if we drop support for 1.12 we can remove that, with >=2.0 it isn't necessary anymore
jrolfs_ has joined #nixos
<LnL> it's not set on nixos either
<qyliss> alternatively to remote builds, can I do something to reduce Nix's memory consumption? I'm using a Chromebook and literally do not have enough RAM + disk to be able to fit a GUI into my system configuration currently
<gchristensen> floop: ok, so delete the relics, open another fresh tab and tryithe install again.
<floop> gchristensen: no problem, I appreciate the help either way :) I know that installations are hard :P
<floop> ok, multi user installation just finished and I opened a new terminal
<floop> cannot connect to daemon error :((((((((((((((((
<gchristensen> that is okay, check /var/log/nix-daemon.log -- is there anything interesting in there?
<floop> just a bunch of `accepted connection` lines
<floop> they're not timestamped :(
ryanartecona has quit [Quit: ryanartecona]
<gchristensen> `pgrep nix-daemon` -- anything printed?
<LnL> flokli: could you paste/gist the output of launchctl print system/org.nixos.nix-daemon
<gchristensen> floop: ^
<floop> it's running
<floop> k hold on
<flokli> :-)
goibhniu has joined #nixos
<gchristensen> also the output of `stat /nix/var/nix/daemon-socket/socket`
xok has quit [Ping timeout: 252 seconds]
<LnL> oh, that's 1.11
<gchristensen> ok, `launchctl unload /Library/LaunchDaemons/org.nixos.nix-daemon.plist` then
<LnL> ^ yeah
<gchristensen> `launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist`
<gchristensen> and then re-do the launchctl print command from LnL
winem_ has quit [Ping timeout: 252 seconds]
floop2 has joined #nixos
<floop2> for some reason the web client I was using stopped accepting input lol
Maxdamantus has quit [Ping timeout: 245 seconds]
<gchristensen> oops :)
<floop2> anyway when I try to run the launchctl unload command it says "/nix/store/lc3ymlix73kaad5srjdgaxp9ngr1sg6g-nix-2.1.1/Library/LaunchDaemons/org.nixos.nix-daemon.plist: Could not find specified service"
Maxdamantus has joined #nixos
<gchristensen> does the file /nix/store/lc3ymlix73kaad5srjdgaxp9ngr1sg6g-nix-2.1.1/Library/LaunchDaemons/org.nixos.nix-daemon.plist exist?
<floop2> yeah
monotux has quit [Read error: Connection reset by peer]
<gchristensen> what was the exact command you ran?
monotux has joined #nixos
<cyraxjoe> hello! quick question.. is there a nix function to obtain the name of the package from a nix store path? i.e func "/nix/store/c27wfq76sm29zav5a0kg0wzrxbjfiwqv-virtualenv-16.0.0.tar.gz" -> virtualenv-16.0.0.tar.gz? I kinda remember there was something like that already in the lib
<gchristensen> LnL: might be running out of knowledge here :P
<ldlework> i have a list of functions, i'm using map to call each of them, they each return an attrset - i want to combine all the attrsets - is there a function that takes a list of attrsets and combines them with // ?
<LnL> can't remember the command to remove a service without the plist path
<ldlework> is this what fold functions are for?
<LnL> floop2: give me a sec
<floop2> gchristensen: `launchctl unload /Library/LaunchDaemons/org.nixos.nix-daemon.plist` is the command I ran
<sphalerite> ldlework: yes, a fold sounds like what you want.
<{^_^}> [nixpkgs] @caugner opened pull request #46203 → phpPackages.composer: 1.6.5 -> 1.7.2 → https://git.io/fAuAN
<ldlework> cool
seanparsons has quit [Read error: Connection reset by peer]
<LnL> floop2: oh try with sudo
seanparsons has joined #nixos
<gchristensen> ah! yeah!
<floop2> oh ok I was able to unload
<floop2> should I reload now
<gchristensen> yeah, also with sudo
seanparsons has quit [Read error: Connection reset by peer]
<floop2> ok i reloaded it
sbdchd has joined #nixos
seanparsons has joined #nixos
<floop2> should I try running a nix command again?
<gchristensen> sure
<floop2> shazam
<floop2> seems to have worked
<floop2> I have no idea what happened
<gchristensen> me either :) I'm sorry it didn't work for you
<gchristensen> but I see ways the printed instructions can be improved. I'll send a PR for that, too
<floop2> it's fine, annoying but what're you gonna do haha. Hopefully I'm out of the woods on this front
<floop2> really appreciate the help
<LnL> floop2: I suspect you uninstalled, but the old daemon continued to run
<floop2> that would make sense
Fare has quit [Ping timeout: 246 seconds]
<floop2> on the plus side my comp has a good amount more disk space now... lol
simukis has quit [Quit: simukis]
floop has quit [Quit: Page closed]
floop2 has quit [Quit: Page closed]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46204 → qtox: 1.16.1 -> 1.16.3 → https://git.io/fAupv
kenshinC1 has joined #nixos
rardiol has joined #nixos
kenshinC1 has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @caugner opened pull request #46205 → phpPackages.xdebug26: 2.6.0 -> 2.6.1 → https://git.io/fAupw
chessai has quit [Ping timeout: 272 seconds]
<gchristensen> sure wish floop was still here
<{^_^}> [nixpkgs] @caugner opened pull request #46206 → phpPackages.psysh: 0.9.6 -> 0.9.8 → https://git.io/fAuhJ
<selfsymmetric-pa> Anybody know how to get yamllint (python), yaml-jsyaml, or yaml-ruby installed on NixOS?
<selfsymmetric-pa> I want to lint my YAML files.
<gchristensen> LnL: can you test a PR?
<LnL> sure
<{^_^}> [nixpkgs] @grahamc opened pull request #46207 → default.nix: More thoroughly explain the macOS upgrade process → https://git.io/fAuhZ
<gchristensen> ^ that one, LnL :)
<symphorien> fun: enableDebugging nix-index does not evaluate because nix-index does not take stdenv as argument
<LnL> gchristensen: hmm, test or review?
<gchristensen> LnL: ...both :D
Wizek has quit [Ping timeout: 252 seconds]
typetetris has quit [Ping timeout: 252 seconds]
<gchristensen> if possible
thoughtpolice has quit [Ping timeout: 252 seconds]
thoughtpolice has joined #nixos
typetetris has joined #nixos
Wizek has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46209 → qmmp: 1.2.2 -> 1.2.3 → https://git.io/fAuhA
<gchristensen> ps: is this way too long a message?
seanparsons has quit [Read error: Connection reset by peer]
seanparsons has joined #nixos
delores has quit [Quit: WeeChat 1.9.1]
<ldlework> sphalerite: how does this looke, pythonOverlays = builtins.foldl' (x: y: x // y) {} pythonPackages;
<ldlework> where each attrset in pythonPackages is an attrset containing a single package attribute
<ldlework> like xdg = self.buildPythonPackage { ... }
<sphalerite> might work, although I don't understand why you'd want to do this
<sphalerite> I'm off to sleep now, gnight!
<ldlework> hehe
selfsymmetric-pa has quit [Remote host closed the connection]
<ldlework> so i can just drop in files into a directory and they're automatically used as overlays
<ldlework> no need to edit anything else
<{^_^}> [nixpkgs] @andir opened pull request #46210 → buildRustCrate: add heuristic to picking the right binary source files → https://git.io/fAzek
jasongrossman has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to release-18.03: https://git.io/fAzeW
<{^_^}> [nixpkgs] @vcunat merged pull request #46202 → lua5.1: fix broken source fetch (#40748 backport) → https://git.io/fAuN0
<infinisil> ldlework: So like ~/.config/nixpkgs/overlays?
knupfer has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @basvandijk merged pull request #46167 → all-cabal-hashes: update snapshot to Hackage at 2018-09-04T11:59:40Z → https://git.io/fAu01
<{^_^}> [nixpkgs] @basvandijk pushed 2 commits to release-18.03: https://git.io/fAze2
<gchristensen> I'm considering adding the linux kernel to my Hound, would that be good or annoying?
<ldlework> infinisil: I'm basically using your recImport logic on overlays, https://gist.github.com/dustinlacewell/03c2eaa052c66022e5717e027c4085a1
<LnL> gchristensen: didn't uninstall, but I have 2.1.1 in the root profile and no running daemon until I run a command (socket activation)
<gchristensen> :D
<ldlework> infinisil: so it is similar but i have more control, I have a folder overlays/unstable/ all of those overlays get integrated into the single unstable overlay
<gchristensen> Dezgeg: can you confirm something about a kernel option?
<infinisil> Ah yeah
ilikeheaps has quit [Ping timeout: 240 seconds]
hxrts_ has quit [Ping timeout: 252 seconds]
<infinisil> ldlework: There is a slight problem with your current code
<ldlework> now I'm trying to do the same for python3 packages, so i have a overlays/python3 and anything i stick in there, gets aggregated into a the single python3 overlay
<ldlework> infinisil: no doubt ^_^'
<infinisil> ldlework: You're combining all overlays into a single one and applying that in a single step
<ldlework> yeah?
<infinisil> This means your overlays won't work properly if 2 of them redefine something
<infinisil> Probably only one of them will work then
<infinisil> You should instead keep all of them in a list and pass that list to nixpkgs instead
knupfer has joined #nixos
<LnL> gchristensen: launchctl is so weird, unlike most commands which use a target (eg. system/org.nixos.nix-daemon) remove only takes the name
<Myrl-saki> Seems like disabling my GPU's drivers is helping with power usage lol
<ldlework> infinisil: hmm, I am passing a list to it
<gchristensen> weird
<infinisil> hmm
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46211 → picard-tools: 2.18.11 -> 2.18.12 → https://git.io/fAzvt
<ldlework> i think you're right for the direction that I'm doing with python package overlays though
<ldlework> as i'm composing a single attrset which is being used in a single python3 overlay
<gchristensen> domenkozar: w.r.t. pcie_port_pm=off it looks like that maybe doesn't do what you expect?
<ldlework> instead of a bunch of python3 overlays each with a single package overlay
<infinisil> Huh wait, what does this do:
<infinisil> pythonPackages = self: super: map (m: m self super) pythonModules; pythonOverlays = builtins.foldl' (x: y: x // y) {} pythonPackages;
<infinisil> Python packages is a function, but you're passing it to foldl?
<ldlework> yeah, the code is in motion
<ldlework> :)
<infinisil> > builtins.foldl' (x: y: x // y) {} (super: self: {})
<ldlework> it is just like, in the form of first being typed out so yeah you're right I haven't actually called the modules yet
<{^_^}> value is a function while a list was expected, at (string):191:1
<infinisil> How is the code in motion when you haven't tested it lol
<ldlework> what i mean is, i'm in that state where you just type out your first thoughts
<infinisil> Ahhh
<ldlework> ignore the python stuff because it is minutes old
<ldlework> hehe
<ldlework> thanks for looking though :)
<infinisil> So yeah what I'm trying to say, don't map a single self super pair over the overlays and then use that, because the super argument of those overlays won't be the "true" super. You should instead pass the whole list of them directly
ersran9 has quit [Ping timeout: 240 seconds]
<ldlework> oof I'm gonna have to reread that a few times
ersran9 has joined #nixos
ersran9 has quit [Changing host]
ersran9 has joined #nixos
<ldlework> as an aside do you think I'm actually on my way to reimplementing ~/.config/nixpkgs/overlays ?
<ldlework> i don't want to do something stupid :)
<ldlework> (in general the stable and unstable overlays have been working how i expected...)
mayhewluke has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @vaibhavsagar opened pull request #46212 → all-cabal-hashes: update snapshot to Hackage at 2018-09-04T11:59:40Z → https://git.io/fAzvV
<gchristensen> domenkozar: my laptop reports 9hrs remaining. this is amazing!
mounty has joined #nixos
mayhewluke has joined #nixos
<emily> gchristensen: :o from what change?
Notkea has quit [Ping timeout: 252 seconds]
<gchristensen> disabling the NVidia video card
Notkea has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
<ldlework> infinisil: i realize that what i typed so far for the python stuff doesn't make much sense eh hehe
<ldlework> HMMM
<infinisil> ldlework: I mean, it's not gonna be a problem unless you're overriding something multiple times, which overlays would normally handle perfectly fine (and they're intend to), but just concating multiple overlays into one won't do that
<infinisil> Ah actually, the problem will then stem from your // operator overriding previously set stuff
<ldlework> infinisil: yeah I agree, the python stuff is trying to create a single overlay
booglewoogle has quit [Quit: Leaving]
<ldlework> the other stuff i think is ok though
<ldlework> the stable overlays, that is a list of overlays
mguex has joined #nixos
<ldlework> and while there is a single "unstable" overlay, it is composed as a list of overlays itself
<ldlework> i think
<ldlework> shit's confusing
Ariakenom has quit [Read error: Connection reset by peer]
<infinisil> Sure, I don't see a problem with it, as long as it works anything goes :)
<ldlework> infinisil: what worries me about ~/.config/nixpkgs/overlays is that it depends on having the home directory setup
mguex has quit [Client Quit]
knupfer has quit [Ping timeout: 240 seconds]
<ldlework> this is like an overlay system right in my own config
<infinisil> Ah yeah
<ldlework> i worry a lot about bootstrapping
<infinisil> I mean you could even put such an importer implementation in nixpkgs lib, then it could maybe replace how ~/.config/nixpkgs/overlays works
logzet has quit [Remote host closed the connection]
<infinisil> And then you wouldn't have any problems with infinite recursion when you use it :P
<ldlework> putting stuff that messes with imports into an overlay doesn't work
<ldlework> beause of the infinite recursion
<ldlework> what do you mean there wouldn't be any problems lol
<infinisil> But if it's in lib there won't be a problem
<ldlework> don't you use overlays to slap stuff on pkgs/lib ?
<infinisil> you previously tried something like pkgs.recursiveImport
<infinisil> I dont
<ldlework> not "you" I mean, the royal you
<ldlework> isn't the mechanism to patch pkgs and lib, overlays?
<infinisil> Only pkgs
<ldlework> how does one patch lib?
<infinisil> lib does have an .extend attribute one can use to extend it with an overlay
<infinisil> But that's not usable for nix..
<infinisil> Unless you use this simple trick I just discovered!
<infinisil> Well it's not simple
* ldlework starts to tread water
<ldlework> lol
<infinisil> And I didn't just discover it just no
<infinisil> w
<ldlework> haha
<infinisil> So the gist of it is: Override <nixpkgs/nixos> to point to your own thing
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46213 → pmd: 6.5.0 -> 6.7.0 → https://git.io/fAzfF
<infinisil> NIX_PATH=nixpkgs/nixos=/some/path:nixpkgs=/some/other/path
<ldlework> argh NIX_PATH is bad for bootstrapping
<infinisil> This will make nixos-rebuild use /some/path instead of /some/other/path/nixos
<infinisil> It's the only way to change the behaviour outside of the module system
<infinisil> You already need NIX_PATH if you want to bootstrap
<ldlework> how so?
<qyliss> You can use -I also
<ldlework> adamantium: have you been reading any of this
<infinisil> Ah I guess you don't necessarily, but everything using `import <nixpkgs> {}` or `import <nixpkgs/lib>` depends on NIX_PATH
<{^_^}> [nixpkgs] @sterfield opened pull request #46214 → sickrage: init at v2018.07.21-1 → https://git.io/fAzJq
<ldlework> sure but things that depend on whatever it is by default is fine
<infinisil> ldlework: So, if you want this pkgs.recimport thing to work (via lib.recimport), use NIX_PATH to set nixpkgs/nixos, and set it to a file that looks just like <nixpkgs/nixos/default.nix>, but with lib extended
<infinisil> you have access to the lib in there, so you can pass it a different one
<infinisil> Well actually you don't directly
<ldlework> there is going to come a point where i have no working system and I'm trying to get my NixOS system working on a new machine and it just isn't working and I have no hope to understand why and it is because I need some change to NIX_PATH or an -i flag or whatever
<infinisil> But you can pass it as an argument
<ldlework> that's the thing i worry about anyway, maybe it is undue
tzemanovic has joined #nixos
tzemanovic has quit [Client Quit]
<infinisil> Just put it into your bootstrap script or so?
bgamari has quit [Quit: ZNC 1.6.6 - http://znc.in]
<infinisil> You can also put some protective barrier in it for you to remember
<infinisil> E.g. a check in nix whether <nixpkgs>/nixos == <nixpkgs/nixos> and fail with a good error message if that's the case
<ldlework> nothing in lib can use pkgs though right?
<ldlework> so if a lib function wanted to call fetchFromGitHub or something
<infinisil> Optimally no
<ldlework> each function would have to take pkgs as an argument
<infinisil> (it can be done through another nixpkgs import though)
<ldlework> like pkgs = import <nixpkgs> {};
<ldlework> ?
<infinisil> And if you really only need fetchFromGitHub, you can use builtins.fetchTarball insetad
<infinisil> yea
<ldlework> that would just be like standard for any lib expressions
<ldlework> hmm
<ldlework> would this let me do the "enableWithPrefix" function?
<ldlework> where it enables some module that uses nixos settings?
<infinisil> Yeah, lib can be used freely without causing infinite recursion
<ldlework> basically it is a function that generates part of the "config" attrset, like "${prefix}.${name}.enable = true"
<ldlework> and that might enable a module that sets nixos options
<ldlework> had problems with that when i tried to define enableWithPrefix on an overlay
<infinisil> I think I explained the problem multiple times before
<ldlework> you have dude
<ldlework> you have
* ldlework weeps.
<infinisil> Well I told you a way through NIX_PATH to have it working, if you really want that :P
<infinisil> Not pretty though
<ldlework> it would be nice to have a fully-functional lib trap-door, where anything I want to do is possible and there are no suprise gotchas
<ldlework> i tend to try to write a lot of abstractions
bgamari has joined #nixos
Wharncliffe has joined #nixos
<ldlework> thanks
<infinisil> It wouldn't be too hard to add support for this by changing nixpkgs, and PR that so everybody can use it in the future
<dhess> I have an AMD Ryzen box from Hetzner that keeps hanging, running nixos-unstable. Same behavior across multiple updates. Has anyone else experienced this with Ryzen hardware
<dhess> ?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46215 → phrasendrescher: 1.0 -> 1.2.2b → https://git.io/fAzJ7
<dhess> I'm getting ready to dump this POS.
<gchristensen> I don't have that problem, nor does hydra.nixos.org's ryzen
<dhess> huh
<dhess> gchristensen: is it a Hetzner box by any chance?
<gchristensen> packet.net c2.medium for both
__monty__ has quit [Quit: leaving]
<ldlework> infinisil: did you mean, adding a generalized lib extension mechanism, or me adding enableWithPrefix?
<infinisil> Both would work
<{^_^}> [nixpkgs] @eadwu opened pull request #46216 → ghostscript: include icc profile validation patch → https://git.io/fAzUk
<ldlework> i'm not sure what the former looks like, but the latter sounds exciting :)
<dhess> gchristensen: what's the output of /proc/cpuinfo look like on that thing (just one core will suffice)
<infinisil> ldlework: Ah well actually, I thought of a function to do the recursive importing, not enableWithPrefix
<infinisil> I don't think enableWithPrefix would get merged
<ldlework> sure, it is pretty specialized function with no use in nixpkgs
<ldlework> just saves me a bit of reptition in my config
<ldlework> well, would
georges-duperon has quit [Ping timeout: 252 seconds]
Henson has joined #nixos
<ldlework> it is nice for implementing "profile" modules
<ldlework> if you have a bunch of options like workstation.foo.enable and workation.bar.enable and so on, you can just be like config.mine = enableWithPrefix "workstation" [ "foo" "bar" ... ]
<gchristensen> sorry dhess I can't look now
<gchristensen> dhess: you could one for pretty cheap to find out.
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<infinisil> > p ({ prefix = lib.genAttrs ["foo" "bar"] (x: { enable = true; }); })
<{^_^}> "{ prefix = { bar = { enable = ...; }; foo = { enable = ...; }; }; }"
<infinisil> ldlework: How about that
<infinisil> Sounds just like what that function does
<ldlework> sure but don't wanna type that each time
<ldlework> so you try to stick that as a function using and overlay
<ldlework> and try to enable a module that enables xserver
<ldlework> and blam!
<infinisil> I mean.. that's like 15 chars longer, not *that* big of a deal
<ldlework> :)
<ldlework> sure but repeated each place it is used
<ldlework> at some point you're not saving against just typing workstation.foo.enable = true;
<infinisil> But certainly the withPrefix thing can be disregarded, it does nothing other than just assigning that attribute
<ldlework> also, the practical value demand for this function is not that high afterall, it is just my brush up against those limitations
<infinisil> more like `enableMultiple = list: lib.genAttrs list (x: { enable = true; });` should be the function
<Henson> hello everyone. In mkDerivation, the meta attribute has a platforms attribute. How does that work. If I look at stdenv.lib.platforms I see thing like "linux" and "x86_64", but say I want to combine those to specify that only x86_64 linux systems are supported. buildins.currentSystem tells me "x86_64-linux", but I don't know how to specify that as that platform, other than just...
<ldlework> yeah!
<Henson> specifying the text, which doesn't seem like the right thing to do.
<ldlework> but you wouldn't be able to add that to pkgs via overlay right?
<infinisil> Yeah
<ldlework> it'd blow up oncce you try to use it on an option that ends up setting a nixos option
<ldlework> ok
<ldlework> but nice implementation :)
<ldlework> wayy nicer than mine heh
Mr_Keyser_Soze99 has quit [Ping timeout: 272 seconds]
bgamari has quit [Quit: ZNC 1.6.6 - http://znc.in]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46217 → otter-browser: 0.9.96 -> 0.9.99.3 → https://git.io/fAzT3
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46218 → osinfo-db: 20180531 -> 20180903 → https://git.io/fAzTs
<v0latil3_> do u guys set your git identity in nix config?
<infinisil> heh
<domenkozar> gchristensen: I admit I cargo culted the snippet from bumblebee issue
<domenkozar> it worked, never doubted it :P
<ldlework> infinisil: would the right way to do the python overlays, would be to generate a complete whole python overlay for every python package I want to provide an overlay for? Something of the form:
<ldlework> (self: super: { python3 = super.python3.override { packageOverrides = pySelf: pySuper: foobar = pySelf.buildPythonPackage { ... }; };})
<ldlework> but for every single python package?
<infinisil> Oh, packageOverrides is only a single thing..
<ldlework> Instead of just the { foobar = ... } part for each package, being added to a single overlay
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46219 → altcoins.parity-ui: 0.2.8 -> 0.3.4 → https://git.io/fAzT1
<ldlework> hmmm?
vaibhavsagar has quit [Ping timeout: 244 seconds]
<infinisil> Well in that case you can either use nixpkgs overlays for all of them, or properly join the overlays, there's some way to do that
<ldlework> would it just be composing them into a single attrset, packageOverrides = pySelf: pySuper: { THIS THING HERE }
humanoyd has quit [Quit: WeeChat 2.2]
<ldlework> for a single python3 top-level overlay?
bgamari has joined #nixos
<infinisil> Ah, check out lib.composeExtensions
<ldlework> O_O
<ldlework> ok
<infinisil> Seems to be doing the job
<ldlework> i don't know what that means lol
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46220 → p11-kit: 0.23.13 -> 0.23.14 → https://git.io/fAzke
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/3a6fa7a8065 (from 69 minutes ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
worldofpeace has joined #nixos
<ldlework> infinisil: this function is somehow the one I should use to combine the pySelf: pySuper: { foo_py = buildPythonPackage } modules?
<ldlework> recursively load all the submodules, combine them (somehow) with this function, and assign that to packageOverrides
<ldlework> something like that?
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nixos
hamishmack has quit [Client Quit]
erasmas has quit [Quit: leaving]
fresheyeball has quit [Quit: WeeChat 2.0]
kisik21 has quit [Ping timeout: 245 seconds]
Wharncliffe has quit [Quit: leaving]
<gchristensen> domenkozar: I think the pcmie line is the opposite of what you want (disables the ability to do power management)
worldofpeace has quit [Ping timeout: 252 seconds]
hxrts_ has joined #nixos
lord| is now known as lor|d
lor|d is now known as lord|
<ldlework> infinisil: hold my hand :3
ryantrinkle has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46221 → kdeApplications.okteta: 0.25.2 -> 0.25.3 → https://git.io/fAzIr
<ldlework> infinisil: so just to check i understood correctly, i made two standalone overlays that fully define the python3 override, https://gist.github.com/dustinlacewell/98a38684a50b78df74e86362606d4d34
<ldlework> and only one of the packages was available!
<ldlework> so i think you were right that even my main overlay system suffers from the problem that multiple things can't override the same thing
<ldlework> so I guess I either figure out composeExtensions or I just stick everything in a single file
<{^_^}> [nixpkgs] @qolii opened pull request #46222 → libuv: Disable temperamental shutdown_close_pipe test on Aarch32. → https://git.io/fAzIM
goibhniu has quit [Ping timeout: 245 seconds]
<infinisil> ldlework: Yeah, it should really be just a foldl over the list of overrides with that function to combine multiple of them
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46223 → pcapfix: 1.1.1 -> 1.1.2 → https://git.io/fAzID
<ldlework> nice lib.foldl' lib.composeExtensions (self: super: {}) overlays
<ldlework> just found this in a github issue
tzemanovic has joined #nixos
<domenkozar> gchristensen: so you're saying removing it prolongs batter life?
<domenkozar> :O
<ldlework> infinisil: I did this: nixpkgs.overlays = foldl' composeExtensions (self: super: {}) (stable ++ unstable);
<ldlework> and got: The option value `nixpkgs.overlays' in `/nixcfg/overlays' is not of type `null or list of nixpkgs overlays'.
<ldlework> but it totally is... isn't it?
<infinisil> Not there, only for the python thin
<infinisil> g
<infinisil> nixpkgs.overlays = stable ++ unstable is just fine, because it takes a list of overlays
<infinisil> but the pythonOverrides function apparently does not
<infinisil> so you need it there
<gchristensen> domenkozar: dunno :)
<gchristensen> domenkozar: also I think the acpi rev option doesn't take an argument, but that isn't a problem
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46225 → libngspice: 26 -> 28 → https://git.io/fAzLt
<domenkozar> let me try rebooting :)
<fyber> I've been using i3 on my laptop for a while and I get pretty insane battery life (13+h of web browsing). Do you think KDE would use much more than that?
sbdchd has quit [Remote host closed the connection]
<ldlework> infinisil: hmm, then why when I use these two standalone overlays, https://gist.github.com/dustinlacewell/98a38684a50b78df74e86362606d4d34 xdg is available but not pyrofi?
<ldlework> shouldn't they properly merge or whatever? they end up as standalone overlays in the `stable` list of overlays
<infinisil> ldlework: Ohh, yeah that makes sense actually
<infinisil> override doesn't work like overlays
<infinisil> Oh actually, I think override works with a function taking a single argument as well
<ldlework> what's the argument?
<{^_^}> [nixpkgs] @vcunat pushed 17 commits to release-18.09: https://git.io/fAzLn
<infinisil> python3.override (old: { pythonPackages = lib.composeExtensions old.pythonPackages (self: super: ...); })
<infinisil> try this
<ldlework> is there some other "overlay friendly" way to override the python3 packages?
<ldlework> heh
<ldlework> infinisil: will this work with the separate standalone full overlays? or do I have to compose the xdg and pyrofi overrides into this single python3 overlay?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46226 → nss_pam_ldapd: 0.9.7 -> 0.9.10 → https://git.io/fAzLB
<ldlework> in other words, do I do this in each standalone overlay (as in the gist), or do I do this once, and collect the sub expresions and compose them in a single overlay (passing them to composeExtensions) ?
<infinisil> Yeah that will work, the super takes care of that
<ldlework> which will work?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46227 → nspr: 4.19 -> 4.20 → https://git.io/fAzLz
<infinisil> assuming you use this old argument from before, both will work
<infinisil> the overlay mechanism should take care of it properly
<ldlework> interesting
<ldlework> i'll try it using seperate full overlays for each individual python package first
<ldlework> and letting them be composed in the 'stable' list
<ldlework> see if that works
hxrts_ has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46228 → oniguruma: 6.8.2 -> 6.9.0 → https://git.io/fAzL9
<{^_^}> [nixpkgs] @dtzWill opened pull request #46229 → gdb: 8.1.1 -> 8.2, rework debug-info-from-env → https://git.io/fAzLA
<ldlework> infinisil: I did, https://gist.github.com/dustinlacewell/98a38684a50b78df74e86362606d4d34 and it still says pyrofi isn't available
<infinisil> Um, why is pythonPackages a function? I didn't even notice
<infinisil> And test whether a single of those overlays works first
slack1256 has joined #nixos
ersran9 has quit [Ping timeout: 252 seconds]
<infinisil> Ah, i accidentally wrote pythonPackages before
<infinisil> meant overrides of course
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46230 → papirus-icon-theme: 20180401 -> 20180816 → https://git.io/fAztc
<infinisil> And you're obviously not evaluating that part of the code when you're getting that error, when really you should be getting "function not expected" error or so
<ldlework> oh you're right
hamishmack has joined #nixos
<ldlework> I added python.* to the filter because I started working on a separate python import mechanism that you saw earlier
<ldlework> ok
<ldlework> infinisil: ok where have we gone wrong in the gist
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/f03d1058d90 (from 16 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46231 → nwjs: 0.32.2 -> 0.32.4 → https://git.io/fAzqU
tertl3 has joined #nixos
<infinisil> ldlework: Um, i just told you?
slack1256 has quit [Remote host closed the connection]
<ldlework> :(
* ldlework simply replaces "pythonPackages" with "overrides" and hope that's what was meant
<ldlework> unexpected argument "overrides"
<infinisil> ...
<ldlework> oh you referring to your own speech
<infinisil> pythonOverrides
<infinisil> Don't take everything literally what I say
<ldlework> I'm just confused, I don't understand the semantics of a lot of this.
<infinisil> You used pythonOverrides in your first gist
<infinisil> um packagOverrides
<infinisil> packageOverrides
silver_ has joined #nixos
silver has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @basvandijk merged pull request #46212 → all-cabal-hashes: update snapshot to Hackage at 2018-09-04T11:59:40Z → https://git.io/fAzvV
<{^_^}> [nixpkgs] @basvandijk pushed 2 commits to release-18.09: https://git.io/fAzqK
Mr_Keyser_Soze99 has joined #nixos
<ldlework> infinisil: I'm really sorry. I don't have any idea what I'm supposed to write.
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46232 → openimageio: 1.8.9 -> 1.8.14 → https://git.io/fAzq7
<infinisil> I just mistyped packageOverrides as pythonPackages/overrides in my message(s)
dbmikus__ has quit [Ping timeout: 272 seconds]
<ldlework> Ah okay and then I replaced packageOverrides with pythonPackages because of the mistype
<ldlework> OK here's the new version based on what I think you meant: https://gist.github.com/dustinlacewell/98a38684a50b78df74e86362606d4d34
kyren has joined #nixos
<ldlework> It complains that attribute "packageOverrides" is missing
<ldlework> I'm guessing when being access on "old"
tomberek has joined #nixos
jperras has quit [Ping timeout: 252 seconds]
<kyren> hey, I'd like to try compiling a bleeding edge kernel to see if it fixes a hardware issue I'm having, but I'm having trouble finding out the best way to do that
<tomberek> While trying a cross-compilation ( nix build nixpkgs.pkgsCross.armv7l-hf-multiplatform.uhd ) I get an error: error: a 'armv7a-linux' is required to build '/nix/store/qpkw3c9fl059axsqbhwgl0qlr3548x6d-python-setup-hook.sh-armv7a-unknown-linux-gnueabihf.drv', but I am a 'x86_64-linux' This seems to stem from the runCommand function not understanding cross-compilation. Or is there something i am not understanding? Any suggestions?
<tomberek> Another approach i am trying is to build an env using the vendor provided toolchain, but that isn't ideal and requires heavy modification to the nixpkgs derivations
<kyren> a newer one than pkgs.linuxPackages_latest
<{^_^}> [nixpkgs] @jtojnar pushed 63 commits to gnome-3.30: https://git.io/fAzmg
jrolfs has joined #nixos
rprije has joined #nixos
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<infinisil> ldlework: Ah yeah, I thought that might happen, you need to handle that
<elvishjerricco> tomberek: I guess you could try `buildPackages.runCommand`
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46233 → log4cplus: 1.2.0 -> 2.0.2 → https://git.io/fAzmP
jrolfs_ has quit [Ping timeout: 252 seconds]
jackdk has joined #nixos
<tomberek> elvishjerricco: that dependency on python is pretty deep and is fundamentally used all over nixpkgs. Should that be changed in `pkgs/development/interpreters/python/setup-hook.nix` ?
<tomberek> or just change runCommand itself?
<elvishjerricco> tomberek: Sorry, I'm not really the person to ask about that :P
peel_ has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46234 → neovim-qt: 0.2.9 -> 0.2.10 → https://git.io/fAzY4
<{^_^}> [nixpkgs] @alexshpilkin opened pull request #46235 → nixos/networkd: support MULTICAST, fix RequiredForOnline and [Route] → https://git.io/fAzYw
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46236 → nextcloud: 13.0.5 -> 13.0.6 → https://git.io/fAzYo
<v0latil3_> How do I test a service module made in a git clone of nixpkgs?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46237 → mdds: 1.3.1 -> 1.4.1 → https://git.io/fAzYi
tomberek has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46238 → lttng-tools: 2.10.4 -> 2.10.5 → https://git.io/fAzOY
<{^_^}> [nixpkgs] @r-ryantm opened pull request #46239 → mate.mate-session-manager: 1.20.1 -> 1.21.0 → https://git.io/fAzO0
dbmikus__ has joined #nixos
<infinisil> v0latil3_: you can build a nixos vm with nixos-rebuild build-vm -I nixpkgs=/path/to/clone
<infinisil> Also might want to pass in a simplified nixos-config
<infinisil> nixos-rebuild build-vm -I nixpkgs=/path/to/clone -I nixos-config=/some/nixos/config.nix
<v0latil3_> and the config could contain enabling my service
<v0latil3_> infinisil ?
<infinisil> yea
mbrgm has quit [Quit: ZNC 1.7.1 - https://znc.in]
<v0latil3_> where does the vm image / directory go?
mbrgm has joined #nixos
<v0latil3_> oh ./result
<{^_^}> [nixpkgs] @orivej-nixos merged pull request #46200 → rednotebook: 2.3 -> 2.6.1 → https://git.io/fAuFB
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @r-ryantm to master « rednotebook: 2.3 -> 2.6.1 (#46200) »: https://git.io/fAzO2
[Leary] has joined #nixos