worldofpeace changed the topic of #nixos to: NixOS stable: 19.09 \o/ https://discourse.nixos.org/t/nixos-19-09-release/4306/2 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018 || For best support,
cosimone_ has joined #nixos
mexisme_ has joined #nixos
cosimone has quit [Ping timeout: 250 seconds]
dansho has joined #nixos
LLED2_3 has quit [Remote host closed the connection]
LLED2_3 has joined #nixos
<{^_^}> [nixpkgs] @xrelkd opened pull request #75586 → powerline-go: 1.13.0 -> 1.15.0 → https://git.io/JeHaB
<{^_^}> [nixpkgs] @marsam merged pull request #75559 → brakeman: 4.7.1 -> 4.7.2 → https://git.io/JeHGC
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JeHaR
endformationage has quit [Quit: WeeChat 2.6]
fragamus has quit [Read error: Connection reset by peer]
zeta_0 has joined #nixos
<zeta_0> `
zeta_0 has quit [Client Quit]
o1lo01ol1o has joined #nixos
leex has joined #nixos
<leex> Does anyone here have experience with running games in lutris? https://paste.ubuntu.com/p/hF2dKHdMSZ/ not sure this is a problem in lutris or in nixos package of lutris.
vld has joined #nixos
dbmikus has quit [Ping timeout: 246 seconds]
amanjeev has joined #nixos
vld has quit [Ping timeout: 268 seconds]
Guanin has quit [Ping timeout: 240 seconds]
erasmas has quit [Quit: leaving]
Blessjah has quit [Ping timeout: 240 seconds]
akaWolf has quit [Ping timeout: 240 seconds]
mbrgm_ has joined #nixos
Blessjah has joined #nixos
mbrgm has quit [Ping timeout: 252 seconds]
mbrgm_ is now known as mbrgm
akaWolf has joined #nixos
jluttine has quit [Ping timeout: 240 seconds]
zeta_0 has joined #nixos
eeyun[m] has joined #nixos
erictapen has quit [Ping timeout: 265 seconds]
dansho has quit [Remote host closed the connection]
dansho has joined #nixos
erictapen has joined #nixos
wildtrees has joined #nixos
delan has quit [Ping timeout: 265 seconds]
delan_ has joined #nixos
puffnfresh has quit [Ping timeout: 268 seconds]
wildtrees has quit [Max SendQ exceeded]
waleee-cl has quit [Quit: Connection closed for inactivity]
evhan has quit [Quit: De IRC non curat rex...]
lambda-11235 has joined #nixos
wildtrees has joined #nixos
tom39291 has quit [Ping timeout: 240 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
thc202 has quit [Ping timeout: 250 seconds]
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/23902ce7dd6 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
o1lo01ol1o has quit [Ping timeout: 250 seconds]
erictapen has quit [Ping timeout: 252 seconds]
lovesegfault has quit [Ping timeout: 268 seconds]
eacameron has quit [Quit: Connection closed for inactivity]
Diagon has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JeHVS
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #75586 → powerline-go: 1.13.0 -> 1.15.0 → https://git.io/JeHaB
<{^_^}> [nixpkgs] @jonringer pushed commit from @xrelkd to master « powerline-go: 1.13.0 -> 1.15.0 »: https://git.io/JeHV5
o1lo01ol1o has quit [Remote host closed the connection]
Rusty1 has quit [Remote host closed the connection]
judson has quit [Ping timeout: 250 seconds]
boxscape has quit [Remote host closed the connection]
spinus has joined #nixos
<spinus> hello, anybody is using yarn2nix with local dependency?
hervyqa has joined #nixos
hervyqa has quit [Remote host closed the connection]
mdeltax has joined #nixos
o1lo01ol1o has joined #nixos
<{^_^}> spinus: Please expand your question to include more information, this will help us help you :)
<mdeltax> hi. do you know what's the best way to completely disable user channel (nix-channel) & package management (nix-env) without affecting nix-shell, nix-index & co?
<simpson> mdeltax: You can remove all user channels. In that case, the user would default to using system channels for nix-shell. Are you thinking of some sort of restricted environment?
<infinisil> mdeltax: `alias nix-env="echo nope!"`? :P
<gchristensen> make an overlay which wraps the Nix package, creating symlink stubs for everything but nix-channel and nix-env
scasc has quit [Ping timeout: 246 seconds]
o1lo01ol1o has quit [Ping timeout: 265 seconds]
<mdeltax> thanks! will probably do the last one!
<gchristensen> note that some use cases still require nix-env
<mdeltax> what's a scriptable way to list all packages? (zsh autosuggestions have been my solution for package search so far)
<spinus> {^_^}: thanks. I have two yarn packages that I develop locally. I want to add one as dependeny to the other. What I have done so far, is I added yarn2nix mkYarnPackage to both of them. In package.json of master one, I have entry "mypackage": "file:../otherpackage". I have added "workspaceDependencies": [(import ./../otherpacage {})] to mkYarnPackage expression. I'm getting an error: "Couldn't find the binary git" from yarn during
<spinus> ackage built. I tried to add buildInput or propagatedBuiltInputs to pkgs.yarn itself (overrideAttrs) but didn't help.
<spinus> 2. I'm not sure how to properly add this local dependency to master package
<spinus> 1. I don't fully understand why it tries to use git at all
<gchristensen> for example, it is used to update the NixOS current-system symlink
<clever> gchristensen: nixos-rebuild still uses nix-env to manage the system profile
o1lo01ol1o has joined #nixos
<clever> yep
iz16 has quit [Ping timeout: 245 seconds]
<spinus> mdeltax: installed or all from nixpkgs?
<mdeltax> both?
<spinus> first: nix-env -q
o1lo01ol1o has quit [Remote host closed the connection]
<spinus> second: nix eval "(builtins.attrNames (import <nixpkgs> {}))"
iz16 has joined #nixos
<spinus> mdeltax: ^
<mdeltax> and nixos-option environment.systemPackages
<mdeltax> ^^
<angerman> so nix puts env values (if lists) unquoted into the env, right? so `x = ["1 2" "3"];` ends up being `x = 1 2 3;` and hence iteating over them in bash will yield three iterations instead of two or am I doing something wrong?
<clever> angerman: i believe so
<clever> angerman: but there is the new structured attrs stuff, which puts everything into json
<mdeltax> sudo chmod 444 -R /nix/var/nix/profiles/per-user/*
<mdeltax> does it for me i think
delan_ has quit [Quit: ZNC - http://znc.in]
<mdeltax> simpson: it was just to reduce the amount of error sources, because there's an old package installation in nix-env profile
wildtrees has quit [Quit: Leaving]
drakonis has quit [Quit: WeeChat 2.6]
<angerman> clever: so I was wondering if a buildCommand that used env vars + a shell script rather than stitching together the shell script in nix, would be much faster.
<angerman> clever: buth with only relatively poor control over the escaping of env vars, that might become a bit tricky.
<clever> angerman: thats where passAsFile and your own seperator could be used
<clever> angerman: if you do `passAsFile = [ "foo" ]; foo = "anything";` then nix will set a $fooPath variable, and write "anything" to that path
<clever> then you can concatStringSep "\n" [ "1 2" "3" ]
<clever> and bash's read can be told what sep to use
<mdeltax> i'm on sway (wayland) right now for the first time, btw, thanks to nixpkgs-wayland. (services.xserver.enable = mkOverride 0 false). cool!
<angerman> clever: is my assumption that stitching together shell scripts in nix is not the most performant thing though or am I going to run a fools errant here?
viric_ has joined #nixos
<angerman> clever: I know that this range here is expectionally expensive: https://github.com/input-output-hk/haskell.nix/blob/300fff437e08bbd67be6200d841a2ada7f347715/builder/make-config-files.nix#L74-L77, the key being that it calls to it's dependents `configFiles`, which essentially runs `make-config-files` on the dependencies.
<mdeltax> gonna fiddle around with multi gpu setups now, cya
mdeltax has quit [Quit: Lost terminal]
viric has quit [Ping timeout: 268 seconds]
work_ has quit [Quit: Connection closed for inactivity]
<dansho> where is the opencl library for use with opencl-headers? is it libclc?
delan has joined #nixos
delan has joined #nixos
delan has quit [Changing host]
evhan has joined #nixos
puffnfresh has joined #nixos
vld has joined #nixos
Diagon has quit [Ping timeout: 265 seconds]
acarrico has quit [Read error: Connection reset by peer]
acarrico has joined #nixos
tom39291 has joined #nixos
vld has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @jabranham opened pull request #75587 → R: 3.6.1 -> 3.6.2 → https://git.io/JeHw5
spinus has quit [Ping timeout: 268 seconds]
jluttine has joined #nixos
CMCDragonkai has joined #nixos
<CMCDragonkai> I'm writing a custom nixos service, and I can create host/port options for this service in NixOS, however I want to use the service unit file provided by the package. Is there a way to substitute parameters into the service unit file when enabling a NixOS service?
Diagon has joined #nixos
h0m1 has quit [Ping timeout: 250 seconds]
cosimone_ has quit [Quit: Terminated!]
h0m1 has joined #nixos
o1lo01ol1o has joined #nixos
<dansho> (guess it was ocl-icd)
<CMCDragonkai> with ` systemd.packages = [ pkgs.customPackage ];`
<infinisil> CMCDragonkai: The options you set with systemd.services.foo get merged with the ones from systemd.packages
<infinisil> And with systemd you can set `ExecStart = [ "" "new-exec-start" ]` to override a previous one
<CMCDragonkai> infinisil: so you could define some options or env variables to be used by exec start in the systemd unit file, and have those be specified by nixos config systemd.services.foo
<CMCDragonkai> `ExecStart = [ "" "new-exec-start" ]` what does this mean?
<infinisil> systemd.services.foo.serviceConfig.ExecStart = ...
sudoforge has joined #nixos
<CMCDragonkai> `ExecStart = [ "" "new-exec-start" ]` what does the `""` and `"new-exec-start"` mean?
<infinisil> The "" is just an empty string, and the new-exec-start is what you want ExecStart to be
<infinisil> Using an empty string clears the previous entry (here from systemd.packages)
o1lo01ol1o has quit [Ping timeout: 240 seconds]
<CMCDragonkai> is this in the nixos module config or somewhere else?
<infinisil> This is from systemd
ddellacosta has joined #nixos
<CMCDragonkai> what about the usage of `%i` or `%I`?
Diagon has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @Infinisil merged pull request #75585 → nixos/unbound: add package option → https://git.io/JeHaU
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/JeHrI
Diagon has joined #nixos
<infinisil> CMCDragonkai: What about it?
ddellaco1 has quit [Ping timeout: 240 seconds]
o1lo01ol1o has joined #nixos
<clever> CMCDragonkai: i believe %i and %I work just fine in ExecStart
<CMCDragonkai> infinisil: I'm trying to understand, are you saying to override the systemd execstart from within the nixos module configuration, rather than using some sort of parameter passing logic to the actual systemd unit file? Because these are 2 different things.
<clever> CMCDragonkai: i would just ignore the supplied .service file
<infinisil> I'm talking about the former thing
<CMCDragonkai> Passing parameters to systemd unit file can involve environment variables or %i...
scasc has joined #nixos
felixfoertsch23 has joined #nixos
felixfoertsch has quit [Ping timeout: 250 seconds]
<CMCDragonkai> clever: as a general policy, why do our service configs not do text substitution or macros substitution in the supplied service config files like we do with build config when we build the packages?
<clever> CMCDragonkai: usually, the only thing you need is an ExecStart, and the rest can be ignored
<CMCDragonkai> clever: there are 2 problems with any supplied service config, 1. where the bin executable is, 2. any supplied parameters, both can be avoided by writing our own config file ignoring the service file, but the same could be said for any build Makefiles... etc in the package as well
vld has joined #nixos
vld has quit [Ping timeout: 276 seconds]
dansho has quit [Ping timeout: 240 seconds]
<elvishjerricco> How do I tell `znapzend` what private key file to use for SSH?
<clever> elvishjerricco: it likely runs as its own user? just `sudo -u foo -i` and `ssh-keygen` to drop some keys into its own ~/.ssh/id_rsa
<elvishjerricco> clever: The znapzend service runs as root. I'm trying to get it to log into a specific user on the destination (using ZFS delegated permissions on the destination).
<clever> elvishjerricco: ah, maybe ~/.ssh/config to setup which key to use when ssh'ing into a given host?
<elvishjerricco> clever: Issue is, I really only want the znapzend service to use this key file. When logging into the destination myself, I don't want to use it, because it's only for that system user on the destination
<clever> elvishjerricco: the ~/.ssh/config file can change the hostname of a host
<clever> elvishjerricco: so if you try to ssh into snapshot-destination, the config file will forcibly change the hostname to 1.2.3.4
<clever> but if you try to ssh into 1.2.3.4 directly, the config file does nothing
<clever> elvishjerricco: `Host foo` tells ssh to run the following statements, if you `ssh foo`
<clever> elvishjerricco: `HostName bar` after that, causes it to instead ssh into far, instead of foo
<clever> elvishjerricco: `IdentityFile /home/clever/.ssh/id_rsa_the_second` also changed where it looks for keys
<clever> and optionally, slap a `User foo` on as well
<clever> so if you `ssh foo`, it applies those 3 config entries when connecting to bar, but if you `ssh bar` it just ignores the cfg
<elvishjerricco> clever: But how do I make the config cause znapzend to choose a user, but not others? Do I have to tell it to use a fake host that gets switcheroo'd by .ssh/config?
<clever> elvishjerricco: exactly
<elvishjerricco> known_hosts issues, here I come :P
<clever> elvishjerricco: one minute
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
<clever> elvishjerricco: that lets you pre-fill known_hosts
<elvishjerricco> Ah, yea
aw has joined #nixos
spacefrogg has joined #nixos
<elvishjerricco> clever: I wonder if I could do it with a `Match` block rather than a `Host` block and avoid the fake host though?
<clever> elvishjerricco: what would `Match` match against?
<elvishjerricco> clever: I *think* you could do `Match User foo, Host bar` instead of `Host baz \n HostName bar`
<elvishjerricco> does that seem right?
<clever> elvishjerricco: that would also effect you in the shell, if you do `ssh foo@bar`
<elvishjerricco> clever: That's fine. This key is literally the only way to login to this user :P
<elvishjerricco> What I wanted to avoid was the key for `ssh foo@bar` being bad for `ssh me@bar`
<elvishjerricco> Hm that didn't seem to work
<clever> elvishjerricco: `ssh -v` will show more status as it parses things
<elvishjerricco> Whoops, typo :P
<elvishjerricco> Alright, now trying to do `ssh foo@bar` gives me "This account is currently not available." Presumably because I set `isSystemUser = true;` for the user
<clever> elvishjerricco: the default shell is likely nologin
<elvishjerricco> But I can't even do `ssh foo@bar echo "run a command"`
drewr has quit [Ping timeout: 250 seconds]
LLED2_2 has joined #nixos
LLED2_3 has quit [Ping timeout: 240 seconds]
mexisme_ has quit [Ping timeout: 268 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
slack1256 has joined #nixos
o1lo01ol1o has joined #nixos
xkapastel has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
mniip has quit [Remote host closed the connection]
slack1256 has quit [Ping timeout: 250 seconds]
inkbottle has quit [Ping timeout: 268 seconds]
felixfoertsch23 has quit [Quit: ZNC 1.7.3 - https://znc.in]
felixfoertsch has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @jonringer merged pull request #75579 → snapper: 0.8.5 -> 0.8.6 → https://git.io/JeHzx
<{^_^}> [nixpkgs] @jonringer pushed commit from @markuskowa to master « snapper: 0.8.5 -> 0.8.6 »: https://git.io/JeHKz
vld has joined #nixos
<{^_^}> [nixpkgs] @gege251 opened pull request #75588 → amazon-ecs-cli: add darwin → https://git.io/JeHKK
bvdw has quit [Read error: Connection reset by peer]
zeta_0 has joined #nixos
bvdw has joined #nixos
vld has quit [Ping timeout: 268 seconds]
<zeta_0> i plan on doing a lot of haskell programming and want use nix as well, anyways, from what i understood a good way to get started is creating a `default.nix` to use in conjunction with haskell projects.
<zeta_0> would the `default.nix` from the `overriding dependencies` section be a good? https://www.srid.ca/haskell-nix.html
lordcirth_ has quit [Remote host closed the connection]
lovesegfault has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 276 seconds]
<lovesegfault> Hi, I'm trying to combine nix-build and callPackage, but I need to set something in the arguments that requires pkgs
<lovesegfault> nix-build -E '(import ./. {}).callPackage ./nixos/lib/make-ext4-fs.nix { storePaths = pkgs.stdenv; }'
<lovesegfault> How can I "include" pkgs inline here?
<lovesegfault> cc. clever
siiky has quit [Ping timeout: 246 seconds]
<clever> lovesegfault: let pkgs = import ./. {}; in pkgs.callPackage ....
<lovesegfault> :O
<lovesegfault> clever: amazing
<lovesegfault> clever: Worked
<lovesegfault> fixing the sd build
<{^_^}> [nixpkgs] @bjornfor merged pull request #75571 → arp-scan: 1.9.5 -> 1.9.7 → https://git.io/JeHEq
<{^_^}> [nixpkgs] @bjornfor pushed commit from @stigtsp to master « arp-scan: 1.9.5 -> 1.9.7 »: https://git.io/JeH6u
<monokrome> is it just me or does installing EFI bootlosder on an encrypted volume not work?
<clever> monokrome: the firmware needs to be able to read the .efi file to boot, and the firmware usually doesnt know how to decrypt
<monokrome> I swear I did it on one of my nachones but on a couple ithers it's a block I/O error during install
scasc has quit [Ping timeout: 268 seconds]
rardiol has quit [Ping timeout: 276 seconds]
<monokrome> machines*
<monokrome> so the issue is just the bios im using?
<clever> monokrome: what is the exact error it gives?
[Leary] has quit [Remote host closed the connection]
Lears has joined #nixos
siiky has joined #nixos
<lovesegfault> clever: Is there some lib function to turn "ext4-fs.img.bz2" into "ext4-fs.img"
<lovesegfault> i.e. cut -f 1-2 -d '.'
NoctisLa1 has quit [Ping timeout: 240 seconds]
NoctisLa1 has joined #nixos
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
<clever> lovesegfault: i think there is a lib.basename, but not sure what it will do there
<clever> > lib.basename "foo.img.bz2"
<{^_^}> attribute 'basename' missing, at (string):271:1
<clever> > builtins.baseNameOf "foo.img.bz2"
<{^_^}> "foo.img.bz2"
<lovesegfault> clever: issue is I want the name to reflect that this is now bzip'd but if you try to bzip something with .bz2 ext. it ill explode
<lovesegfault> so I am doing it in a separat...
<lovesegfault> H
<lovesegfault> Hm
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<lovesegfault> I can do it in bash
xkapastel has quit [Quit: Connection closed for inactivity]
<CMCDragonkai> is there an analogue to RuntimeDirectory for a nixos module service?
<clever> CMCDragonkai: .serviceConfig.RuntimeDirectory ?
<{^_^}> [nixpkgs] @offlinehacker merged pull request #75582 → kind: 0.5.1 -> 0.6.1 → https://git.io/JeH2g
<{^_^}> [nixpkgs] @offlinehacker pushed 2 commits to master: https://git.io/JeHie
palo1 has joined #nixos
<{^_^}> [nixpkgs] @hedning opened pull request #75589 → gnome-shell 3.34.2 → https://git.io/JeHiJ
coderobe672 has joined #nixos
palo has quit [Ping timeout: 250 seconds]
palo1 is now known as palo
fragamus has joined #nixos
<CMCDragonkai> clever: do you know how to actually use it in the ExecStart?
<CMCDragonkai> clever: just `$RuntimeDirectory`?
<clever> CMCDragonkai: ive not used it before, not sure
<{^_^}> [nixpkgs] @marsam opened pull request #75591 → gitAndTools.lab: 0.17.0 -> 0.17.1 → https://git.io/JeHiL
coderobe672 has quit [Ping timeout: 276 seconds]
zupo has joined #nixos
coderobe672 has joined #nixos
<CMCDragonkai> clever: it's just `$RUNTIME_DIRECTORY`
<CMCDragonkai> it is available as a variable in the `ExecStart` but make sure to escape it from nix ${} syntax
felixfoertsch has quit [Quit: ZNC 1.7.3 - https://znc.in]
felixfoertsch has joined #nixos
cransom has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @bjornfor pushed commit from @stigtsp to release-19.09 « arp-scan: 1.9.5 -> 1.9.7 »: https://git.io/JeHiZ
cransom has joined #nixos
coderobe672 has quit [Changing host]
coderobe672 has joined #nixos
coderobe672 is now known as coderobe
fusion809 has joined #nixos
coderobe has quit [Quit: '); DROP TABLE users;--]
vld has joined #nixos
coderobe has joined #nixos
rauno has joined #nixos
vld has quit [Ping timeout: 245 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lovesegfault> Hmm
<lovesegfault> ❯ nix-build -I nixos-config=nixos/modules/installer/cd-dvd/sd-image-aarch64.nix -A config.system.build.sdImage
<lovesegfault> error: attribute 'system' in selection path 'config.system.build.sdImage' not found
<lovesegfault> clever: Thoughts?
<lovesegfault> the file says this is how you build it
<lovesegfault> but
<tilpner> lovesegfault: Put '<nixpkgs/nixos>' in there
<lovesegfault> tilpner: Aha!
<lovesegfault> thanks :)
<lovesegfault> Hmm
<lovesegfault> Why is it that even though I have an Arch64 remote builder set up and working
<lovesegfault> I still can't build the RPi FW
gxt has quit [Ping timeout: 260 seconds]
<clever> lovesegfault: what error did it give?
<clever> [clever@system76:~]$ nix-build '<nixpkgs/nixos/release.nix>' -A sd_image_raspberrypi4.aarch64-linux -Q -o rpi4-image
<clever> [clever@system76:~]$ nix-build '<nixpkgs/nixos/release.nix>' -A sd_image.aarch64-linux -Q -o aarch64-image
<clever> lovesegfault: i recently ran these, without any issues
<lovesegfault> error: Package ‘raspberrypi-firmware-1.20190925’ in /home/bemeurer/src/nixpkgs/pkgs/os-specific/linux/firmware/raspberrypi/default.nix:20 is not supported on ‘x86_64-linux’, refusing to evaluate.
<clever> lovesegfault: your doign an x86 build, not an aarch64 build
<clever> lovesegfault: add --argstr system aarch64-linux, or use release.nix like in my example
<lovesegfault> clever: trying :)
<lovesegfault> boom!
<lovesegfault> I need to train an AI on all of clever's messages
ddellacosta has quit [Ping timeout: 265 seconds]
cfricke has joined #nixos
<lovesegfault> clever: I'm fixing the issue with the aarch64 sd image, but compressing with bz2 makes things _painfully_ slow
<lovesegfault> can I use zstd or lzo?
<clever> lovesegfault: should be possible, have a look at the make-system-tarball file
<clever> lovesegfault: that already has user-selectable compression
<lovesegfault> clever: Not sure I want to make it user-selectable (this isn't the final build output, which will still be bz2, but just of the rootfs ext4 img)
Synthetica has joined #nixos
Ariakenom has joined #nixos
mniip has joined #nixos
hyper_ch2 has joined #nixos
jgt2 has joined #nixos
Guanin has joined #nixos
hmpffff has joined #nixos
<{^_^}> [nixpkgs] @oxalica closed pull request #75453 → rustup: add helper to bring dev pkgs in for compilition → https://git.io/Je94A
zupo has joined #nixos
lsix has joined #nixos
fragamus has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @lovesegfault opened pull request #75592 → nixos/lib: compress make-ext4-fs with bzip2 → https://git.io/JeHPq
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/e6deb2955c2 (from 65 minutes ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reanimus has quit [Ping timeout: 265 seconds]
magthe has joined #nixos
<{^_^}> [nixpkgs] @saschagrunert opened pull request #75593 → conmon: v2.0.6 -> v2.0.7 → https://git.io/JeHPu
mexisme_ has joined #nixos
<lovesegfault> How do I run NixOS tests? cc. clever
<lovesegfault> I want to test this https://github.com/NixOS/nixpkgs/pull/75592
<{^_^}> #75592 (by lovesegfault, 22 minutes ago, open): nixos/lib: compress make-ext4-fs with bzip2
<lovesegfault> I'm sure some tests cover this change
lukash_|away is now known as lukash_
<tilpner> nix-build -A nixosTests.foo
<lovesegfault> tilpner: Any easy way to figure out which tests cover my changes?
<tilpner> Assuming $PWD is a nixpkgs checkout
<tilpner> Usually yes. With this one? I don't see one
<lovesegfault> Hmm
<lovesegfault> tilpner: I guess there are no tests for this
<{^_^}> [nixpkgs] @dfordivam opened pull request #75594 → Fix haskell-src-meta patch URI → https://git.io/JeHP6
hyper_ch has quit [Quit: ZNC 1.7.5 - https://znc.in]
viric_ is now known as viric
erictapen has joined #nixos
hyper_ch has joined #nixos
<{^_^}> [nix] @tomberek opened pull request #3266 → fetchTarball: gzip support → https://git.io/JeHPP
lambda-11235 has quit [Quit: Bye]
erictapen has quit [Ping timeout: 240 seconds]
hyper_ch2 has quit [Remote host closed the connection]
hyper_ch2 has joined #nixos
aszlig has quit [Quit: Kerneling down for reboot NOW.]
<lovesegfault> tilpner: How can I get the number of allowed build threads?
hyper_ch2 has quit [Remote host closed the connection]
mlen has quit [Quit: WeeChat 2.6]
hyper_ch2 has joined #nixos
aszlig has joined #nixos
<tilpner> lovesegfault: I'm guessing you mean $NIX_BUILD_CORES
mlen has joined #nixos
<lovesegfault> tilpner: Yeah, zstd has a --threads option
mexisme_ has quit [Ping timeout: 250 seconds]
vld has joined #nixos
<Synthetica> When I do `nix-shell -p "python3"` I get `error: opening file '/nix/store/msmaqwbdavq31g1m2ds6gd7kx1wp6zfb-shell.drv': No such file or directory` as the only line of error, and I don't even know where to begin to debug this
vld has quit [Ping timeout: 276 seconds]
zupo has joined #nixos
__Sander__ has joined #nixos
chloekek has joined #nixos
aszlig has quit [Quit: brb]
pie__ has quit [Ping timeout: 265 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Taneb> How can I go about dealing with Hydra telling me «uncaught exception building '/nix/store/blah.drv on 'user@machine': std::bad_alloc»
<Taneb> It's been repeatedly occuring with one build step at work and I don't know how to get around it
aszlig has joined #nixos
civodul has joined #nixos
dingenskirchen has quit [Read error: Connection reset by peer]
dingenskirchen1 has joined #nixos
<{^_^}> [nixpkgs] @lovesegfault opened pull request #75595 → vimPlugins.quick-scope: init at 2019-04-22 → https://git.io/JeHX4
hyper_ch2 has quit [Remote host closed the connection]
hyper_ch2 has joined #nixos
dingenskirchen1 is now known as dingenskirchen
ng0 has joined #nixos
<tilpner> Taneb: What is blah, and how memory does machine have available in the worst case?
<tilpner> *how much memory
cfricke has quit [Quit: WeeChat 2.6]
<Taneb> tilpner: blah is an annoyingly huge build (8GB+), and machine has 250GB RAM
<tilpner> But how much of that was free?
<tilpner> If that single machine is doing 20 other large builds, it may have ran out of memory
<tilpner> If you have monitoring, check that
<kolbycrouch> You can use zram with lz4 for struggling through large builds. Memory from compilation is fairly compress-able.
joshuagl has joined #nixos
<{^_^}> [nixpkgs] @vbgl merged pull request #75035 → ocamlPackages.rpclib: 5.9.0 → 6.0.0 → https://git.io/JeDDt
<{^_^}> [nixpkgs] @vbgl pushed to master « ocamlPackages.rpclib: 5.9.0 → 6.0.0 »: https://git.io/JeHXS
thc202 has joined #nixos
<Taneb> tilpner: I believe it wasn't but we weren't doing monitoring
lovesegfault has quit [Ping timeout: 246 seconds]
<tilpner> Taneb: How is machine registered in nix/machines?
EdLin has joined #nixos
EdLin has quit [Client Quit]
<Taneb> "user@machine x86_64-linx,i686-linux /etc/hydra/id_buildfarm 1 1 some,system,features"
<Taneb> There has been successful builds on it in the past
<Taneb> Even since this one that keeps failing
<tilpner> Huh
<Taneb> (which build successfully, it looks like it's failing copying it across)
<tilpner> Oh, so blah is successfully built on machine?
<tilpner> And you can see the output in the store?
<tilpner> If you suspect it's OOM-ing while copying the result back, check free memory on the Hydra box and Nix version used
horner has joined #nixos
<Taneb> There's ~40GB free memory on the Hydra box, I don't know if that got filled up at the time
<Taneb> *~20GB (I can't do subtraction this early in the morning)
<tilpner> Taneb: I suggest you add some form of monitoring, so it's less guessing next time. You don't need full prometheus, atop or even watch free might be enough
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/e6deb2955c2 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
<tilpner> (watch free might end up being annoying to read, so probably not that one)
jtcs_ has quit [Ping timeout: 240 seconds]
<Taneb> Hydra's next going to attempt it in four days now so I've got time to prepare (is there any time to force that to be sooner?)
nckx has quit [Ping timeout: 264 seconds]
<tilpner> Taneb: Can you use Action>Restart on it?
<Taneb> Doesn't work in this circumstance
<tilpner> Why not?
hax404 has quit [Ping timeout: 276 seconds]
<tilpner> Oh, it didn't fail yet?
<Taneb> Yeah
<Taneb> Let me find the log message again
<tilpner> No, I don't know how to force it to retry sooner
<tilpner> Though you could trigger a new build of a similar derivation (change something trivial)
<Taneb> I'd rather avoid that, the step takes hours to build
hax404 has joined #nixos
nckx has joined #nixos
<tilpner> Hours might be better than days
<tilpner> You can abort that build if a Hydra expert comes along
jtcs has joined #nixos
<Taneb> "will retry ‘/nix/store/6c0lhpf2r9ml5yvzj74sdim80qqsxq8j-impl.drv’ after 393663s"
<{^_^}> [nixpkgs] @Mic92 merged pull request #75479 → bcc: 0.11.0 -> 0.12.0 → https://git.io/Je9wD
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JeH1Y
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage2nix: disable broken builds »: https://git.io/JeH13
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « haskell-pandoc: update the ghc-8.8.x build to version 2.9 »: https://git.io/JeH1Z
__Sander__ has quit [Ping timeout: 245 seconds]
noudle has joined #nixos
iyzsong has joined #nixos
<{^_^}> [nixpkgs] @gilligan opened pull request #75596 → Fix manylinux packages → https://git.io/JeH10
jtcs has quit [Ping timeout: 246 seconds]
nckx has quit [Quit: Updating my GNU Guix System — https://guix.gnu.org]
Laarlf has joined #nixos
Diagon has quit [Quit: Leaving]
<Laarlf> when i want to add something to defaults and i have a <name> in the option name, how would i do that? services.x."something".y = options.services.x."something".y.default ++ { "example"}; does not work
orivej has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @FRidh merged pull request #75596 → Fix manylinux packages → https://git.io/JeH10
<{^_^}> [nixpkgs] @FRidh pushed commit from @gilligan to master « Fix manylinux packages »: https://git.io/JeH1Q
nckx has joined #nixos
jtcs has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed 213 commits to staging-next: https://git.io/JeH1d
turion has joined #nixos
<turion> nix repl
<turion> I've checked out nixpkgs locally and hacked some stuff. Now I do:
<turion> <<some derivation>>
<turion> nix-repl> nixpkgs.foo
<turion> So far so good.
psyanticy has joined #nixos
<turion> Now I go to some other directory where I want to use foo. I do:
<turion> nix-shell -I nixpkgs=~/path/to/nixpkgs -p foo
<{^_^}> [nixpkgs] @adisbladis pushed commit from @gilligan to release-19.09 « Fix manylinux packages »: https://git.io/JeH1A
<turion> Is that the right idea?
jgt2 has quit [Ping timeout: 268 seconds]
apeli has joined #nixos
spinus has joined #nixos
<Laarlf> is there a lib to add to the default option? i cant find one
erictapen has joined #nixos
<tilpner> Laarlf: You can't use ++ with attrsets, only with lists
<tilpner> > [ "foo" ] ++ [ "bar" ]
<{^_^}> [ "foo" "bar" ]
<tilpner> > { foo = 21; } // { bar = 42; }
<{^_^}> { bar = 42; foo = 21; }
<Laarlf> tilpner: so i cant actually append the options?
<Synthetica> Also, all my old generations fail to boot :(
<tilpner> Laarlf: No, it's usually possible
<Laarlf> tilpner: do you know how?
<tilpner> Yes
<Laarlf> would you mind telling me?
<tilpner> I did tell you about one mistake you made
<tilpner> You tried to use ++ with attrsets
<tilpner> And because you didn't tell what options you're talking about, that's as specific as I can get
<Laarlf> services.wordpress.<name>.poolConfig to be specific
<tilpner> Ahh, that one's harder
<tilpner> The problem is that submodules are annoying to work with
<tilpner> You can access the default with (options.services.wordpress.type.getSubOptions {}).poolConfig.default
erictapen has quit [Ping timeout: 250 seconds]
<tilpner> Laarlf: So services.wordpress.foo.poolConfig = (options.services.wordpress.type.getSubOptions {}).poolConfig.default // { bar = 42; };
<Laarlf> thank you, ill try it and report back
<tilpner> I'm interested in a shorted alternative if anyone has ideas
<tilpner> *shorter
<Laarlf> tilpner: this does work, thank you.
<tilpner> Laarlf: Note that you need to quote keys with dots in them
<tilpner> Laarlf: So { "pm.max_children" = ...; } if you want to override that
<tilpner> The manpage omits the quotes for some reason
<spinus> if modules are written with lib.options stuff, they merge attrs and lists automatically I think. that's why you can write environment.systemPackages = [bash] and it will be merged with already existing set
<tilpner> spinus: Yes-ish, but not here
<Laarlf> tilpner: the poolconfig option seems to be completely built up with quotes so i expected this. as i said, this works as expected. thank you so much
fendor has joined #nixos
<tilpner> Laarlf: You could also have copied the default over from the manual/manpage. Now, your poolConfig changes when the default changes, and you need to decide for yourself if that's desired
<Laarlf> tilpner: that was actually what i wanted. people who write those configs have a better understanding of the services than i have. i just found the upload limit of 2mb very limiting.
bvdw has quit [Read error: Connection reset by peer]
<Laarlf> that reminds me that i still wanted to open an issue about not being able to add languages...
bvdw has joined #nixos
apeli has quit [Ping timeout: 276 seconds]
xwvvvvwx has quit [Ping timeout: 265 seconds]
<tilpner> Laarlf: I have never used WP, but have you tried setting extraConfig to define 'WPLANG', 'en_US');?
* tilpner lost a ( there
oleh has joined #nixos
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #nixos
<Laarlf> tilpner: the issue is that if the language doesnt exist (and the languages provided with wordpress are only en_US in nixos case) they need to be added in the store like cfg.plugins or cfg.themes in the $out/share/wordpress/wp-content/languages folder. should be pretty easy but the packager probably didnt think of it
<tilpner> Oh, okay
__Sander__ has joined #nixos
sb0 has joined #nixos
gxt has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #75536 → aws-adfs: 1.19.1 -> 1.20.0; fix build → https://git.io/Je9jF
<{^_^}> [nixpkgs] @jonringer pushed commit from @cko to master « pythonPackages.aws-adfs: 1.19.1 -> 1.20.0; fix build »: https://git.io/JeHMH
<sshow> is this the idiomatic way to enable custom avahi services? https://discourse.nixos.org/t/publishing-additional-services-with-avahi/213/7?u=sshow
__Sander__ has quit [Ping timeout: 268 seconds]
<tilpner> No idea, but services.avahi.extraServiceFiles sounds like it was intended to be the idiomatic way
fendor has quit [Quit: Leaving]
sb0 has quit [Quit: Leaving]
jgt2 has joined #nixos
<sshow> tilpner: nice! thanks
jco has joined #nixos
<{^_^}> [nixpkgs] @matthiasbeyer opened pull request #75599 → tig: 2.4.1 -> 2.5.0 → https://git.io/JeHMA
<colemickens> Anyone ever gotten nix-build to hang when doing a nixos evalConfig ?
<colemickens> :) I have no idea what to do
<jco> hello! I'm trying to install nixos but the command nixos-generate-config --root /mnt doesn't specify the fileSystems option
<colemickens> jco: do you have filesystems mounted at /mnt and likely /mnt/boot, for example?
Laarlf has quit [Remote host closed the connection]
<colemickens> on my nix-build, it gets to "evaluating file '/nix/store/f2scgav3ga2jpcj6gy7lyb8626nfggvf-nixpkgs/pkgs/top-level/stage.nix'
<{^_^}> [nix] @edolstra pushed 4 commits to master: https://git.io/JeHMh
<{^_^}> [nix] @edolstra merged pull request #3266 → fetchTarball: gzip support → https://git.io/JeHPP
<{^_^}> [nix] @edolstra merged pull request #3265 → libstore/ssh: Improve error message on failing `execvp` → https://git.io/JeHnA
smatting has joined #nixos
<{^_^}> [nix] @edolstra pushed to master « Remove FIXME »: https://git.io/JeHMj
hyper_ch2 has quit [Remote host closed the connection]
<ddima> colemickens: could it be waiting for a lock of the db (could be held by other things, like nix-channel --update or other builds)?
<colemickens> ddima: doubtful, no. other builds succeed and this has persisted beyond a daemon restart and system restart
<colemickens> ooops, it's probably trying to evaluate an overlay that is currently a looping symlink :|
<ddima> well, yeah, that makes sense then - I think the answer would be "dont have loopy symlinks"? ;)
<ddima> just tried it with nix repl, indeed just hangs there. :)
work_ has joined #nixos
alexherbo2 has joined #nixos
hyper_ch2 has joined #nixos
<{^_^}> [nixpkgs] @andir merged pull request #74751 → [r19.09] libvpx: add patches for CVE-2019-9232, CVE-2019-9325, CVE-2019-9371, CVE-2019-9433 → https://git.io/Je1FW
<{^_^}> [nixpkgs] @andir pushed 2 commits to staging-19.09: https://git.io/JeHDE
xwvvvvwx has joined #nixos
incognito9999 has quit [Quit: ZNC 1.7.2+deb3~bpo9+1 - https://znc.in]
incognito9999 has joined #nixos
<{^_^}> [nixpkgs] @suhr opened pull request #75600 → cue: 0.0.14 -> 0.0.15 → https://git.io/JeHDX
<{^_^}> [nixpkgs] @andir merged pull request #75577 → [r19.09] boolector: add patch for CVE-2019-7560 → https://git.io/JeHz7
<{^_^}> [nixpkgs] @andir pushed 3 commits to release-19.09: https://git.io/JeHD7
slack1256 has joined #nixos
chris__ has joined #nixos
Neo-- has joined #nixos
<chris__> I've got a Haskell package that I'm succesfully building with nix. However the application has runtime dependencies on other applications. Do derivations have standard field that specifies executable dependencies perhaps? I found this issue on GH but it's a few years old: https://github.com/NixOS/nixpkgs/issues/17226 . Any points would be appreciated :)
<{^_^}> #17226 (by jml, 3 years ago, closed): No way to have Haskell executable (or test) depend on binary at runtime
alexherbo25 has joined #nixos
slack1256 has quit [Ping timeout: 250 seconds]
alexherbo2 has quit [Ping timeout: 252 seconds]
<symphorien> ,runtime
<symphorien> hum there was a factoid, but the gist is: wrap PATH to add the required dependencies
<symphorien> or even better, patch the source to replace execvp("hello") by execvp("${hello}/bin/hello")
<chris__> Sounds a bit complicated for my knowledge of nix, as an alternative - could I maybe just nix-env -Ia the dependecies? I'm running this in a nix docker image which I don't think has the nixos related configuration (like configuration.nix).
<symphorien> wrapping the PATH is easy
horner has quit [Quit: zzZzZzZzZZZzzz…]
<{^_^}> [nixpkgs] @andir merged pull request #75159 → [r19.09] libofx: add patch for CVE-2019-9656 → https://git.io/Jey5S
<{^_^}> [nixpkgs] @andir pushed 2 commits to release-19.09: https://git.io/JeHyl
<chris__> symphorien: So I'd need to look into appending to the installPhase? I'm still not getting what this wrapProgram is doing, but taking a google around.
Tl1234 has joined #nixos
<symphorien> you can put it in postInstall if you don't want to override the default installPhase
alexherbo255 has joined #nixos
alexherbo25 has quit [Ping timeout: 252 seconds]
Tl1234 has left #nixos [#nixos]
spinus has left #nixos [#nixos]
iz16 has quit [Quit: iz16]
<symphorien> if you are on nixos, you can have a look (with a file viewer) to /run/current-system/sw/bin/firefox to understand what a wrapper is
<symphorien> or pretty much any gtk app
<chris__> And nix is smart enough to include those dependencies specified in the wrapProgram/makeBinPath?
<symphorien> yes
<symphorien> it "knows" that some strings like ${hello}/bin/hello depend on hello
iz16 has joined #nixos
<chris__> Great. Thanks :)
turion has quit [Ping timeout: 276 seconds]
sudoforge has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @romildo opened pull request #75601 → mojave-gtk-theme: 2019-09-09 -> 2019-12-12 → https://git.io/JeHyb
juxiemaotu has joined #nixos
civodul has quit [Ping timeout: 252 seconds]
alexherbo255 has quit [Ping timeout: 240 seconds]
__Sander__ has joined #nixos
<{^_^}> [nixpkgs] @domenkozar pushed to master « vscode: 1.40.1 -> 1.41.0 »: https://git.io/JeHSe
alexherbo255 has joined #nixos
<{^_^}> [nixpkgs] @vanyaklimenko opened pull request #75602 → nixos/nginx/gitweb: add some (crucial) options → https://git.io/JeHSJ
<emacsomancer> is there a procedure to request a package update? (it would be nice to get the latest version of the mullvad-vpn app, esp. with CVE-2019-14899.)
Rusty1 has joined #nixos
<Yaniel> the most effective way is to upen a pull request on nixpkgs
<Yaniel> if it's just a security fix then it should be trivial to make too, just update the version number and source hash
juxiemaotu has quit [Quit: WeeChat 2.4]
juxiemaotu has joined #nixos
MmeQuignon has joined #nixos
zupo has joined #nixos
<Yaniel> make sure to mention the CVE somewhere in the pull request I guess
<emacsomancer> this presumably requires building it locally to test though? I've never tried locally building nix pkgs.
<Yaniel> that is fairly simple
<Yaniel> you just need to build that one package, not all of nixpkgs
alexherbo2552 has joined #nixos
<Yaniel> use nix-build or nix-env and point it at your clone of nixpkgs with -f
alexherbo255 has quit [Ping timeout: 250 seconds]
mexisme_ has joined #nixos
<emacsomancer> thanks! I'll try that.
<Yaniel> (you'll also need to specify the actual attribute name to build, my usual solution is `nix-env -f ~/code/nixpkgs -iA nixos.packagename`)
<emacsomancer> (ah! yes, that's helpful)
mexisme_ has quit [Ping timeout: 245 seconds]
iz16 has quit [Quit: iz16]
iz16 has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
zupo has quit [Client Quit]
dansho has joined #nixos
<chris__> I'm getting an `cannot coerce a function to a string` that points to the `name` field of a derivation. Any ideas as to why this error would appear?
alexherbo25525 has joined #nixos
<dminuoso> chris__: You forgot to fully saturate a function with enough arguments?
<dminuoso> Or perhaps accidentally used the wrong function
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
alexherbo2552 has quit [Ping timeout: 240 seconds]
<chris__> Hmm odd... Okay last try here. Can I nix-env a package with plugins the same way I can in a nixos configuration.nix? I'm trying something like `nix-env -iA "nixos.terraform.withPlugins(p: [p.google])"` but it errors stating the attribute is not found?
fendor has joined #nixos
alexherbo25525 has quit [Ping timeout: 250 seconds]
alexherbo25525 has joined #nixos
iz16 has quit [Quit: iz16]
<{^_^}> [nixpkgs] @NeQuissimus pushed 3 commits to master: https://git.io/JeHSw
veske has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed 2 commits to release-19.09: https://git.io/JeHSr
rardiol has joined #nixos
<ddima> colemickens: k, I think I have found the spot that misses a cycle/depth limit detection.
zupo has joined #nixos
zupo has quit [Client Quit]
MmeQuignon has quit [Quit: WeeChat 2.6]
o1lo01ol1o has joined #nixos
alexherbo25525 has quit [Quit: The Lounge - https://thelounge.chat]
alexherbo2 has joined #nixos
waleee-cl has joined #nixos
zupo has joined #nixos
<{^_^}> [nix] @d-goldin opened pull request #3268 → bugfix: Adding depth limit to resolveExprPath → https://git.io/JeHSp
fendor has quit [Ping timeout: 250 seconds]
zupo has quit [Ping timeout: 276 seconds]
lukash_ is now known as lukash_|away
<{^_^}> [nixpkgs] @petabyteboy opened pull request #75604 → Revert "python: pyspf: 2.0.12 -> 2.0.13" → https://git.io/JeH9Y
magthe has quit [Ping timeout: 245 seconds]
<juxiemaotu> hi,everyone. i have a question,anyone can help?
fendor has joined #nixos
zupo has joined #nixos
<exarkun> juxiemaotu: we can pretty much guarantee some moral support
<exarkun> juxiemaotu: if you want technical advice you might have to share some technical details
alexherbo23 has joined #nixos
<Yaniel> juxiemaotu: hard to say; what is the question?
alexherbo2 has quit [Ping timeout: 250 seconds]
<juxiemaotu> i can use nix-copy-closure -to to share derivation to another nixos machine. but in that mathine nix-copy-closure --from can't be used
<juxiemaotu> type slowly...
<juxiemaotu> my command is :nix-copy-closure --from username@xxx.xx.xxx.xxx $(which tmux)
<juxiemaotu> any wrong here?
<juxiemaotu> i use nix-copy-closure --to username@xxx.xxx.xxx.xxx $(which tmux), it work well
<exarkun> You're running those commands on the same host? How does the --from command fail?
<juxiemaotu> error: path '/nix/store/found' is not in the Nix storethe error prompt is :
<juxiemaotu> of course no. on tow machine
<exarkun> It sounds like that shouldn't work, to me.
turion has joined #nixos
<juxiemaotu> the source machine use --to ,it work well. another use --from want to get ,but faild
<exarkun> What do you hope the --from command will do?
<gchristensen> what do you get if you do: echo nix-copy-closure --from username@xxx.xx.xxx.xxx $(which tmux)
alexherbo23 has quit [Ping timeout: 240 seconds]
<gchristensen> I suspect which tmux isn't returning what you think it is
<juxiemaotu> get the /nix/store/xxxxx.tmux-2.8 and so on into local machine. in this method, i can get app fastly than cache.nixos
<exarkun> If tmux isn't on the remote machine, how would $(which tmux) pick the right path to give as an argument?
<juxiemaotu> i am sure it was there
ddellacosta has joined #nixos
<exarkun> If it is there, why do you need to nix-copy-closure it onto the machine?
<exarkun> What do you mean "local machine"? The machine where you are running the nix-copy-closure command?
<juxiemaotu> i mean,tmux is on machine A, then machine B want to get it through nix-copy-closure
<gchristensen> if machine B doesn't have it, you can't use $(which tmux) to find it
<exarkun> Why don't you run `nix-copy-closure --to ...` on machine A?
<juxiemaotu> on machine A,i can use 'nix-copy-closure -to xxxx' command. it work well. and machine B get it
<juxiemaotu> but otherwise, if i use 'nix-copy-closure --from xxx',it don't work
<juxiemaotu> on machine B
<juxiemaotu> had you get what i say?
<exarkun> I think so
<exarkun> The point about $(which tmux) seems to be the central issue, I guess.
<exarkun> run `which tmux` on machine A and then copy the path to the `nix-copy-closure --from` command on machine B. Don't use $(which tmux) on machine B.
<juxiemaotu> so, this is my question ,why --to can work ,but --from not
<exarkun> If machine B doesn't have tmux installed, `$(which tmux)` resolves to something like
<exarkun> which: no asldkjasd in (/home/exarkun/bin:/run/wrappers/bin:/home/exarkun/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/etc/profiles/per-user/exarkun/bin)
<exarkun> So it has nothing to do with --to and --from. The problem is --from is getting a junk argument.
orivej has joined #nixos
<juxiemaotu> let me have a try
<juxiemaotu> moment please
<exarkun> of course
<gchristensen> for some background: `which` tells you the path of a program you already have in your PATH. on machine B, you don't have it in your PATH yet so `which` can't tell you where it is
<myme> What's "the best" approach at running `nixos-rebuild` with some custom patches applied to a channel? Let's say I'd like to apply the patches from https://github.com/NixOS/nixpkgs/pull/74260 which are in master, but not yet in 19.09.
<{^_^}> #74260 (by B4dM4n, 2 weeks ago, merged): virtualbox: 6.0.12 -> 6.0.14
Ariakenom has quit [Ping timeout: 252 seconds]
<juxiemaotu> you are right,it work when i use the absolute address
<juxiemaotu> but , there will be another question.if i was machine B,i don't know the absolute address.how can i get the path only by 'tmux'(the app name)?
dansho has quit [Remote host closed the connection]
<juxiemaotu> so, the method which use nix-copy-closure is useful in condition 'to' , not helpful in condition 'from'
<exarkun> if there is some other machine that you are going to nix-copy-closure it from, that other machine must have it
<exarkun> so log on to that machine and find it, I guess
dansho has joined #nixos
kcalvinalvnn has quit [Quit: ZNC 1.7.4 - https://znc.in]
<juxiemaotu> yes , you are right
<exarkun> it is possible to construct the path from the derivation but I don't think that's any easier
<{^_^}> [rfcs] @jonas-schievink opened pull request #63 → template: fix typo → https://git.io/JeH99
<juxiemaotu> is there more populer methed to install app use anthoer nixos's /nix/store ?
<exarkun> If your goal is to speed up downloads, setting up some more substitutors might make sense
<exarkun> There's an `extra-substituters` option for nix.conf (documented in the man page)
roconnor has quit [Quit: Konversation terminated!]
zmv has joined #nixos
<symphorien> juxiemaotu: there is nix copy, but it's quite low level
<exarkun> But I suspect the most popular options are either putting them in environment.systemPackages in /etc/nix/configuration.nix or nix-env or nix-shell.
<exarkun> Those work well with extra substituters too
<juxiemaotu> i will read the doc about substituters carefully. but i was using nixos.which config file is configuration.nix
<exarkun> There's options for configuration.nix to write out the nix.conf that adds extra substituters, too.
<exarkun> And also options for turning your nixos host into a substituter for use by other machines
kcalvinalvin has joined #nixos
MmeQuignon has joined #nixos
<juxiemaotu> symphorien: Can you be more specific? I don't quite understand what you mean
<symphorien> nix copy can be used to move parts of the store from one machine to another
<exarkun> I'd say `nix copy` is pretty much the same as `nix-copy-closure`. I don't think it's particularly widely used to install software, at least not in the normal course of usage.
o1lo01ol1o has quit [Remote host closed the connection]
<juxiemaotu> exarkun: i am going to read about it , thanks very much
<juxiemaotu> i got it . thank you
<betawaffle> what can i give to `nix repl` to explore my system's configuration after it has been "evaluated"
<betawaffle> like i want to poke around the stuff under the `config` argument passed to modules
o1lo01ol1o has joined #nixos
<thefloweringash> betawaffle: nix repl '<nixpkgs/nixos>' then look under `config`
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<betawaffle> ok, cool, thanks!
<{^_^}> [nixpkgs] @Mic92 merged pull request #73989 → nixos/nfs: Allow Kerberized NFS → https://git.io/Jei1X
<{^_^}> [nixpkgs] @Mic92 pushed 8 commits to staging: https://git.io/JeH9p
<aranea> How is the /boot/nixos-init script generated by the boot.loader.generationsDir module supposed to be used?
Ariakenom has joined #nixos
work_ has quit [Quit: Connection closed for inactivity]
<aranea> My usecase is that I have a separate filesystem for /boot, and the path to my kernel & initramfs as well as the kernel arguments are hardcoded in my bootloader.
<aranea> the generationsDir module takes care of the static paths (/boot/nixos-{kernel,initrd}), but I'd still need to pass in an init= argument that changes with every nixos-rebuild.
<aranea> I was under the impression the /boot/nixos-init script was designed for that purpose, but apparently I'm missing sth.
<{^_^}> [rfcs] @edolstra pushed commit from @jonas-schievink to master « template: fix typo (#63) »: https://git.io/JeHHL
<{^_^}> [rfcs] @edolstra merged pull request #63 → template: fix typo → https://git.io/JeH99
orivej has quit [Ping timeout: 265 seconds]
<betawaffle> are there any other attribute names (besides __toString and __functor) that cause special behavior in nix?
<tilpner> outPath
<tilpner> > "${{ outPath = "foo"; }}"
<{^_^}> "foo"
<betawaffle> hmm, what is that used for, exactly?
<tilpner> To interpolate derivations into strings
<betawaffle> is that different from __toString?
<tilpner> Well, it's a special attribute names that's not __toString
<Jarva[m]> How can I build a nixpkg for an AppImage? Any good examples to reference?
<betawaffle> but does it work the same way as __toString, or does it behave differently?
<tilpner> Jarva[m]: See how hard it is to build from source. If too hard, see the zulip expression
<Jarva[m]> There is no source, it's a proprietary application
<Jarva[m]> They only offer an AppImage currently, can try talk to the dev about getting other formats, but unsure what's best
jgt2 has quit [Ping timeout: 268 seconds]
drakonis has joined #nixos
ng0_ has joined #nixos
ng0 has quit [Disconnected by services]
ng0_ is now known as ng0
<tilpner> See the zulip expression
rushsteve1 has joined #nixos
endformationage has joined #nixos
drakonis has quit [Ping timeout: 265 seconds]
<Synthetica> Can you use the Nixos ISO as a recovery image? I.E.: can I run nixos-install like an external nixos-rebuild?
MmeQuignon has quit [Quit: WeeChat 2.6]
<Shoubit> Synthetica, yup, I've had to do that a bunch of times so you definitely can
logzet has joined #nixos
<Synthetica> Shoubit: Thank you for the confirmation :)
lunik10 has joined #nixos
padok[m] has joined #nixos
<aranea> I'd use the generationsDir module to provide the kernel and the initScript module to provide an /sbin/init, but that runs afoul of the restriction that you can only have a single bootloader module.
<aranea> Guess I'll hack the generationsDir module. Its approach of just copying the appropriate init to /boot doesn't really work for me.
gkmngrgn has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @jtojnar merged pull request #75054 → dupeguru: init at 4.0.4 → https://git.io/JeDAu
<{^_^}> [nixpkgs] @jtojnar pushed 3 commits to master: https://git.io/JeHQ2
veske has quit [Quit: This computer has gone to sleep]
erictapen has joined #nixos
iz16 has joined #nixos
ixxie has joined #nixos
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/842d499ce87 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
cosimone has joined #nixos
<betawaffle> is there some way to turn the kernel log level all the way up *until* stage 1 starts, then turn it back down to the default?
alexherbo23 has joined #nixos
civodul has joined #nixos
earldouglas has left #nixos [#nixos]
Ariakenom has quit [Quit: WeeChat 2.6]
h4xx0rg0n3[m] has quit [Ping timeout: 250 seconds]
HappyEnt[m] has quit [Ping timeout: 250 seconds]
icetan[m] has quit [Ping timeout: 250 seconds]
slabity has quit [Ping timeout: 250 seconds]
alienpirate5 has quit [Ping timeout: 250 seconds]
zummed[m] has quit [Ping timeout: 250 seconds]
jonge[m] has quit [Ping timeout: 250 seconds]
Tucky has quit [Ping timeout: 276 seconds]
jgt2 has joined #nixos
gxt has quit [Quit: WeeChat 2.6]
<jco> colemickens: indeed, I missed this step, know its working perfectly! thanks
<DigitalKiwi> juxiemaotu: i like this https://github.com/nh2/nix-binary-cache-proxy/ it might be useful to you? i use a modified version on local machine
<jared-w> gchristensen: is there a nice place to read up about the difference between nixos-X and nixos-X-small?
<exarkun> one of the python test runners, trial, supports running the test spread across multiple processes to run it faster. but it must be told how many processes to use. how does it make sense to use this feature in a nix expression's checkPhase?
<{^_^}> [nixpkgs] @worldofpeace pushed 4 commits to release-19.09: https://git.io/JeH7q
<{^_^}> [nixpkgs] @Pamplemousse closed pull request #73079 → python3Packages.dictances: init at 1.5.0 → https://git.io/JeV4g
* exarkun finds NIX_BUILD_CORES
<simpson> exarkun: I could have sworn that there was an environment variable along the lines of $NIX_BUILD_CORES.
<exarkun> simpson: :)
<simpson> Oh what, it's real? I can't find docs corroborating it.
<exarkun> I ran nix-shell on a thing and grepped env for CORE and there it was
<aranea> betawaffle: AFAICS you should be able to get roughly that effect by setting boot.consoleLogLevel to the higher level and boot.kernel.sysctl."kernel.printk" to the lower one.
<exarkun> There's a `nix-build` option `--cores` that is documented as setting this
<{^_^}> [nixpkgs] @worldofpeace merged pull request #75575 → vscodium: 1.40.1 -> 1.41.0 → https://git.io/JeHuz
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JeH73
<exarkun> And a cores option in nix.conf
<aranea> That'll decrease the loglevel in stage 2 rather than stage 1 though, i.e. after the real init has been started, not in the initramfs.
<aranea> If it's important for you to handle this in the initramfs, I guess use one of the initramfs hooks to adjust the loglevel manually?
<betawaffle> but that's the information i wanted: "sysctl can change the log level"
<betawaffle> aranea++
<{^_^}> aranea's karma got increased to 1
<aranea> Yes. :)
drakonis has joined #nixos
<betawaffle> ok and tilpner++
<{^_^}> tilpner's karma got increased to 58
<mudri> I've been following the instructions on how to build a Cabal project using cabal2nix (https://nixos.org/nixpkgs/manual/#how-to-create-nix-builds-for-your-own-private-haskell-packages). I got up until it says “At this point, you can run nix-build”, but I tried that and it couldn't find some of my dependencies (see the snippet). What's going on here? https://www.irccloud.com/pastebin/BSdA2HUW/
<exarkun> https://nixos.org/nix/manual/#chap-tuning-cores-and-jobs talks about it too but there's a mistake. It says `cores * NIX_BUILD_CORES` but pretty sure it must mean `max-jobs * NIX_BUILD_CORES`.
<{^_^}> [nixpkgs] @worldofpeace pushed 4 commits to release-19.09: https://git.io/JeH7l
gkmngrgn has quit [Ping timeout: 268 seconds]
tim has joined #nixos
tim is now known as Guest59461
Guest59461 has left #nixos [#nixos]
<mudri> Also, the bit after in the manual doesn't hold. I can run `nix-shell --command 'cabal configure'` okay, but then `cabal build` (outside nix-shell) fails to find `libpcre.so` (which seems likely, to be honest).
tim has joined #nixos
tim is now known as Guest39670
ng0 has quit [Ping timeout: 260 seconds]
<Guest39670> Hello everyone, this is my first contribution to an irc-channel in general and to the nixos channel specifically.
<qyliss> Hello!
<exarkun> Welcome
<qyliss> ,ask Guest39670
<{^_^}> Guest39670: Just ask your question. It's the best way to know if anybody can help. Or look at other ways of getting in touch with the Nix community here: https://nixos.wiki/wiki/Get_In_Touch
<Guest39670> I currently have the problem, that i desperately want to switch to NixOS as my main OS on all my machines, but there are some disadvantages that i see atm.
ng0 has joined #nixos
<Guest39670> The first being, that it's quite hard for me (at least right now) to build packages, that aren't already there!
<Guest39670> Notably Matlab, julia 1.3 and doom-emacs (which kinda works but has its flaws because of the filesystem).
<tilpner> That is correct. Simple C/C++ application may be easy to package, but in other ecosystems you may end up fighting a lot more to get it packaged
<Yaniel> and proprietary applications are one big can of worms
<DigitalKiwi> i use doom-emacs
<Guest39670> I depend on Matlab, so how could i work around this? Matlab is dependency-heavy and i don't know about anyone that had success with packaging Matlab
<Guest39670> @DigitalKiwi how is the experience for you? Did you run into any problems?
<Yaniel> julia seems to be already present so that could be just a matter of updating the version number and hash and submitting a pull request to nixpkgs
<Guest39670> How do i even address a message to someone in here? Is the @-operator the right way to go?
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/842d499ce87 (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
<Yaniel> just write out their nickname
<exarkun> Guest39670: Generally like this
<Guest39670> Thanks
<Yaniel> @ does not do anything
__monty__ has joined #nixos
<exarkun> though for that matter, nor does writing someone's name. IRC is lo-fi. :)
<DigitalKiwi> most of my problems with doom i don't think are nixos specific and mostly related to upgrading emacs and having to doom refresh and it's always at the most inconvenient time; when i want to use it (of course ;p )
<{^_^}> [nixpkgs] @jtojnar opened pull request #75607 → nixosTests.xmonad: fix → https://git.io/JeH7i
<Guest39670> So, i tried it out yesterday for the first time and everytime i startup doom, i get a message saying, that some package cannot get initialized, because of /usr/bin/fish not being present!
<DigitalKiwi> caveat: sometimes @ or other prefixes trigger bots so that's another reason not to use it for names
cyberguy has joined #nixos
<Guest39670> A wow ok!
<Guest39670> Well, the lo-fi-ness has its charm, it's just good to know how things are done normally
<cyberguy> hey guys is there any source for learn linux system completely
<Yaniel> most irc clients do make a noise when someone mentions your current nickname though
<__monty__> I think I agree. The rebuild everything approach nix has can be annoying. Unless you pin but that's annoying for other reasons. Like, you're happily hacking away "Oh, need another dep in my env." you add your dep and GHC has to be rebuilt because you've updated your channel.
<DigitalKiwi> is the fish with julia or doom? i don't have fish, and haven't seen that, might be a new problem or your config
<Yaniel> cyberguy: nobody learns linux "completely"
<Yaniel> do you have something in particular that you want to learn?
<cyberguy> ok my bad
<cyberguy> system administation
<cyberguy> maybe deeper
<Guest39670> DigitalKiwi: That's in doom! Sorry for throwing things around.
<Yaniel> cyberguy: install and use it for real-world things that you find interesting
<Yaniel> arch linux is good for learning in that it forces you to dig into configuration files and the command line right from the start
<Yaniel> and has an excellent wiki to help you on the way
<DigitalKiwi> probably something in the doom config you can disable, but i'm not really good at emacs...i use vim like 90% of the time
<Yaniel> but something like ubuntu works too, especially if you don't have enough patience to spend the first day in a text-only environment
<betawaffle> gchristensen: how am i supposed to ever be satisfied with a non-nix-based operating system again?
<tilpner> Guest39670: You can getting Matlab to run with buildFHSUserEnv, but you may end up having to bump julia yourself (repeatedly)
<tilpner> *can try getting
<Guest39670> DigitalKiwi: I just recently switched to doom - Mainly for gathering inspiration for my own config. There are some nifty things there and i hope to integrate them into my own config.
<cyberguy> thank you
<drakonis> running matlab on a container also works fine
<DigitalKiwi> lots of arch users end up here lol
kalipso has joined #nixos
<Yaniel> cyberguy: like, set up a (physical or virtual) machine with ubuntu that serves a simple webpage showing the current weather or something
<Yaniel> (or arch, or any other distro)
<Guest39670> drakonis: really? I'm not much of a pro in containerization, but i thought that containerizing GUI-applications is very hard!
<Yaniel> the arch wiki is a good resource regardless of which distro you use
<drakonis> no not really
<drakonis> i just use systemd-nspawn
<Yaniel> and then well, set up various software that seems interesting to you
<Guest39670> Can you point me to some docs for that? That would get me one step closer past the anxiety of abandoning Arch :P
<drakonis> get a supported distribution for the software i want then pass the window to xorg
<Yaniel> make sure to spend some time on thinking about the configuration for whatever you are working with
<Yaniel> what the config contains and why you want it to contain that
<DigitalKiwi> or just use vbox or qemu or w/e
<drakonis> http://ludiclinux.com/Nspawn-Steam-Container/ i wrote a systemd-nspawn oneliner based on this
<juxiemaotu> DigitalKiwi: thanks for your advice. it is useful and helpful. i had forked it and try to deploy.
<drakonis> DigitalKiwi: performance is less than optimal
<Yaniel> and do stuff in the terminal just to get familiar with the cli
<kalipso> hey, i have a small homeserver running debian, doing routing and has some services running in containers. i would like to change it to nixos. what approach would you recommend to be able to create and test a configuration before acutally deploing it on the machine, so that i can keep downtime as little as possible
<drakonis> ho ho that's a great use case
<cyberguy> Yaniel it will help a lot thanks
<gchristensen> betawaffle: you won't, I'm sorry
<drakonis> running nixos is a blessing and a curse
<drakonis> you can no longer go back to non nixos systems because everything is so frail
<drakonis> i have tried doing that repeatedly but i always come back because everything is smooth sailing here
<betawaffle> "you mean you're just gonna edit that file"
<betawaffle> "by hand!?"
<drakonis> i'm going to actually finish my talk slides today...
veske has joined #nixos
<DigitalKiwi> "like a lunatic?"
<exarkun> What does "mesa" reference in "mesaPlatforms" (commonly seen in meta.platforms)?
<drakonis> i'll just point out that that every other distribution is heckin frail and suffers from these pesky problems like editing random files to brute force a solution
<drakonis> exarkun: mesa the graphics library implementation
<betawaffle> exarkun: it's some graphics thing
<exarkun> huh weird. ok. thanks.
<Taneb> exarkun: I believe it's a common software implementation of OpenGL
<drakonis> mesa3d
<exarkun> So it's "platforms that have a mesa implementation"?
<drakonis> yes
bdju has quit [Read error: Connection reset by peer]
bdju has joined #nixos
<kalipso> is there a default root password for vms build with nixos-rebuild build-vm?
<drakonis> same as in the config
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JeH5q
<{^_^}> [nixpkgs] @worldofpeace merged pull request #75607 → nixosTests.xmonad: fix → https://git.io/JeH7i
<Guest39670> drakonis: Thanks for the pointer. Will check it out.
Ariakenom has joined #nixos
fendor has quit [Quit: Leaving]
<Guest39670> Also, does anyone know how i could get started in writing my own packages in NixOS? From reading, there seem to be two approaches: Cloning nixpkgs and extending it or writing derivatives without the nixpkgs-repo. Where would i write these? Which approach do you prefer and why?
drakonis has quit [Quit: WeeChat 2.6]
<simpson> Working within nixpkgs is good if you intend to contribute your changes upstream. Otherwise, usually defining a package is a task of about 10-20 lines, done in the same script where the custom package is needed.
tim-hilt has joined #nixos
<{^_^}> [nixpkgs] @softinio opened pull request #75608 → Added softinio to maintainers list → https://git.io/JeH5G
chris__ has quit [Quit: Lost terminal]
fusion809 has quit [Remote host closed the connection]
alexherbo23 has quit [Quit: The Lounge - https://thelounge.chat]
cyberguy has left #nixos [#nixos]
Guest39670 has left #nixos ["WeeChat 2.6"]
alexherbo2 has joined #nixos
turion has quit [Ping timeout: 250 seconds]
<tim-hilt> Hey everyone
<juxiemaotu> change the nickname?
erasmas has joined #nixos
<tim-hilt> I first tried out irc in weechat and now i'm on erc, which is the emacs client. Thought i'd give it a shot and it really is pretty good
<gchristensen> FYI: today's NixOS office hours (starting in about 3h15min) will be about how some of Nix has been written in Rust already. niksnut is coming :) more info: https://github.com/worldofpeace/events/tree/master/office-hours come chat and ask questions!
betaboon has quit [Quit: ZNC - https://znc.in]
<betawaffle> woo, how long until it's all rust?
<DigitalKiwi> how long until it's haskell
<simpson> How long until it's all Monte~
horner has joined #nixos
hmpffff has quit [Quit: nchrrrr…]
betaboon has joined #nixos
<averell> github seems broken. i pushed my branch, but the PR page is not updating. anyone else?
<charukiewicz> Does Nix store versions of previously installed packages locally? E.g. if I nix-env -i nixops, and I am currently using NixOps 1.6.1, can I roll back if necessary?
<charukiewicz> latest version of nixops is 1.7
<dsx> Is there a way to install some packages from unstable with home-manager, but without adding unstable channel with nix-channel beforehand?
h0m1 has quit [Quit: WeeChat 2.6]
<exarkun> charukiewicz: It's still in /nix/store until it gets garbage collected
h0m1 has joined #nixos
<exarkun> charukiewicz: nix-env might not be the most convenient way to manage multiple versions though.
<charukiewicz> exarkun: I guess that's more of my question, can I do something like nix-env -i nixops@1.6.1 to roll back to a previous version?
<charukiewicz> sounds like the answer is no
<exarkun> charukiewicz: nix-env is going to use whatever it finds in <nixpkgs>
<charukiewicz> okay
<exarkun> charukiewicz: If you're expecing `nix-env -i nixops` to upgrade nixops, I guess you changed <nixpkgs> since you first installed nixops?
<worldofpeace> averell: https://www.githubstatus.com/
<exarkun> You can set a one-off <nixpkgs> with `nix-env -I nixpkgs=...`
<exarkun> but I think the more expected thing is to put nixops in environment.systemPackages
<charukiewicz> exarkun: Yes. I set my local nix-channel from 18.09 to 19.09 and ran nix-channel --update
<averell> worldofpeace: thanks. updated now, just super laggy i suppose
<exarkun> then you have system-wide upgrade and rollback with nixos-rebuild --rollback
selfsymmetric-mu has quit [Remote host closed the connection]
<charukiewicz> exarkun: I'm using Nix + Nixops on an Ubuntu server to provision and manage other NixOS machines
<exarkun> Ah.
mrlizard has joined #nixos
<exarkun> You can also change back to 18.09 and downgrade that way. As long as nixops itself supports downgrades (it has state in a sqlite3 database, I think?) but that is an issue regardless of how you downgrade.
<exarkun> If nixops is the only piece of software you're using from nix on that Ubuntu machine that might be the easiest thing
<exarkun> You can also try the new nixops without "installing" it in your env
<exarkun> try `nix-shell -p nixops` and now you have the nixops from <nixpkgs> for the duration of the resulting shell only
<exarkun> if you like it, you can upgrade it with nix-env. if you don't, exit the shell and it's gone.
tim-hilt has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<charukiewicz> okay. there's a version of nixops that had a bug in it earlier this year (I think the version that shipped in the beginning of 19.03), so I had to downgrade back then. I assume that it's been fixed now, but it's been a while since the need to downgrade, so I don't remember how we did it.
<__monty__> ,pin dsx
<{^_^}> dsx: pong
<{^_^}> __monty__: Did you mean ping?
<__monty__> ,pinning dskx
<__monty__> -.-
<charukiewicz> exarkun: that nix-shell -p approach might be a good one. I'll try that
<__monty__> dsx: ^ Something like this would help with your question.
<__monty__> charukiewicz: nix-env does support rollback.
<betaboon> i have a question on how people are using services that use a `configPath`-option. how are you providing that file ? especially in a nixops-environment?
<__monty__> charukiewicz: nix-env --rollback (optionally pass a generation to roll back to).
veske has quit [Quit: This computer has gone to sleep]
fusion809 has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
<dsx> __monty__: thank you!
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
jgt2 has quit [Ping timeout: 276 seconds]
drakonis1 has joined #nixos
betaboon has quit [Ping timeout: 240 seconds]
chloekek has quit [Quit: WeeChat 2.6]
erictapen has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @andir pushed 6 commits to release-19.09: https://git.io/JeH5A
WhittlesJr has joined #nixos
megfault has joined #nixos
vld has joined #nixos
ng0 has quit [Ping timeout: 260 seconds]
fusion809 has quit [Quit: Leaving]
bvdw has quit [Read error: Connection reset by peer]
lunik10 is now known as lunik1
lunik1 has quit [Quit: :x]
bvdw has joined #nixos
<WhittlesJr> Just dropping in here to express my admiration for how clever the logo is. I recently learned that "nix" is latin for "snow," I love how the name evokes Unix and "*nix OSs," and the lambda snowflake is just precious. Are there any other subtleties I'm missing?
lunik10 has joined #nixos
lunik10 has quit [Client Quit]
lunik1 has joined #nixos
<__monty__> Yes, it's actually a functional shuriken we can use in covert missions to eliminate the imperative overlords.
horner has quit [Quit: zzZzZzZzZZZzzz…]
<WhittlesJr> nixjutsu
knupfer has joined #nixos
<Taneb> It's blue, like the colour of your heart when you're forced to use a Linux distribution that isn't NixOS
<gchristensen> WhittlesJr: I didn't realize it was latin for snow :o
<litschi> Hey I got Problems with blueman-applet running... can't find blueman-mechanism. Heres everything to do with that: https://bpaste.net/show/ENCJ2
<exarkun> fetchFromGitHub failed with "/nix/store/506nnycf7nk22x7n07mjjjl2g8nifpda-bash-4.4-p23/bin/bash: git: command not found" how did I manage to make that happen
swapgs has joined #nixos
swapgs has joined #nixos
<WhittlesJr> I also love how the "snowflake" motif evokes the notion that every build of NixOS is deterministic but one-of-a-kind
<exarkun> oh. or some other random git command ran. nevermind.
pie_ has joined #nixos
cosimone has quit [Quit: Terminated!]
ajs124 has quit [Quit: Gateway shutdown]
knupfer has quit [Ping timeout: 246 seconds]
jco has quit [Quit: WeeChat 2.6]
dongcarl has quit [Quit: ZNC 1.7.4 - https://znc.in]
ajs124 has joined #nixos
dongcarl has joined #nixos
betaboon has joined #nixos
andrewrk has joined #nixos
jgt2 has joined #nixos
<andrewrk> what do I need to do to get nixos to support this NTFS usb hard drive? dmesg says ntfs: (device sda1): parse_options(): Unrecognized mount option windows_names
<{^_^}> [nixpkgs] @doronbehar opened pull request #75609 → [WIP] swt: 4.5 -> 4.9 → https://git.io/JeHFY
<ar> andrewrk: you probably want ntfs3g installed
<andrewrk> ar, thanks, but I don't see that in https://nixos.org/nixos/options.html#ntfs
<andrewrk> oh I think I got confused between packages and options
WhittlesJr has quit [Remote host closed the connection]
gustavderdrache has joined #nixos
<andrewrk> thanks that was indeed the solution
<ar> :)
Ankhers has quit [Quit: ZNC 1.7.2 - https://znc.in]
mlen has quit [Quit: WeeChat 2.6]
Ankhers has joined #nixos
_mlen has joined #nixos
turion has joined #nixos
_mlen is now known as mlen
jgt2 has quit [Read error: Connection reset by peer]
joshuagl has quit [Quit: Textual IRC Client: www.textualapp.com]
MmeQuignon has joined #nixos
[Leary] has joined #nixos
waleee-cl has quit [Quit: Connection closed for inactivity]
Lears has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @mdorman opened pull request #75610 → ghcide: unbreak → https://git.io/JeHFX
jgt3 has joined #nixos
<gchristensen> anyone using sway and configured their system so you can close the laptop and use an external monitor?
jgt3 has quit [Read error: Connection reset by peer]
Synthetica has quit [Quit: Connection closed for inactivity]
CMCDragonkai has quit [Quit: Connection closed for inactivity]
<{^_^}> [nix] @edolstra pushed 7 commits to master: https://git.io/JeHFx
jgt3 has joined #nixos
<jared-w> hmm... Getting a `cannot build on 'localhost': don't know how to open Nix store 'localhost'` error when setting up remote builders for nix+hydra. Is this a thing with 19.09? The only thing I see on the internet about it is this https://github.com/NixOS/nix/issues/3177
<{^_^}> nix#3177 (by basvandijk, 6 weeks ago, open): cannot build on 'localhost': don't know how to open Nix store 'localhost'
jgt3 has quit [Read error: Connection reset by peer]
<pingiun[m]> how can I create a chrootable directory for a specific program?
<pingiun[m]> I want to run sed in chroot
<clever> jared-w: do you have localhost in any of the hydra or nix related config files?
jgt3 has joined #nixos
<clever> pingiun[m]: `nix copy --to local?root=$HOME/example /nix/store/hash-sed/`
lsix has quit [Quit: WeeChat 2.6]
<jared-w> nix.buildMachines has a localhost in there (and a builtin:local which also fails...)
<clever> jared-w: can you paste the value you have in buildMachines?
<clever> { hostName = "localhost"; mandatoryFeatures = [ "local" ]; systems = [ "x86_64-linux" "i686-linux" ]; maxJobs = 4; }
<clever> jared-w: this is what i use
<pingiun[m]> clever: how do I then run sed in that dir?
Jackneill has quit [Remote host closed the connection]
<clever> pingiun[m]: after you chroot into that dir, you can run `/nix/store/hash-sed`
<clever> /bin/sed
<pingiun[m]> ah of course it does not find it in the PATH
<pingiun[m]> thanks
jgt3 has quit [Read error: Connection reset by peer]
mounty has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @veprbl pushed to master « texlive.bin.dvipng: fix "Fatal error, PK file ends prematurely" »: https://git.io/JeHbI
<clever> pingiun[m]: yeah, you have to add it to PATH yourself, optionally using buildEnv to merge many things together, then copy that, and add that to PATH
mounty has joined #nixos
<clever> jared-w: if the machine is detected as localhost, hydra will run `nix-store --serve --write` to talk to the local daemon
<clever> jared-w: for non-local machines, it runs `ssh user@host nix-store --serve --write`, to talk to a remote daemon
<clever> in both cases, it uses stdin/stdout to talk to it, via the --serve rpc
<jared-w> that makes sense
<clever> jared-w: and its just a check against localhost
<jared-w> awesome. I'll go check some ssh configs for the builtins:local thing then. That might just be something that's oddly missing
<clever> jared-w: have you changes nix.allowedUsers any?
<clever> jared-w: i dont think you have to do anything with builtin:local
<jared-w> ... I haven't. Huh. I'm running nixos-rebuild switch as root, though, so shouldn't it be fine?
vld has quit [Ping timeout: 240 seconds]
<jared-w> oh allowedUsers defaults to * so that should be fine?
<clever> jared-w: yeah, the default works
MmeQuignon has quit [Quit: WeeChat 2.6]
<clever> but some people are paranoid, change it, and then things break
<jared-w> huh, well, still can't get it working even when copying your attrset
judson has joined #nixos
<jared-w> _squints_
<jared-w> "cannot connect to daemon at '/nix/var/nix/daemon-socket/socket': Connection refused." That might be the problem lol
hmpffff has joined #nixos
<{^_^}> [nixpkgs] @Infinisil merged pull request #71052 → services.xserver.imwheel: add module → https://git.io/Jeldh
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/JeHb0
<niksnut> we should probably change the default to "@wheel" or "@users"
Ankhers has quit [Quit: ZNC 1.7.3 - https://znc.in]
Ankhers has joined #nixos
<gchristensen> @wheel seems a bit strict, @users (on NixOS anyway) might be good
juxiemaotu has quit [Quit: WeeChat 2.4]
<jared-w> huh, welp, rebooting fixed everything magically
jakobrs has joined #nixos
<Ankhers> Does anyone know how to make nginx support wasm files with nixos?
wildtrees has joined #nixos
smatting has quit [Ping timeout: 265 seconds]
lordcirth__ has joined #nixos
<jakobrs> Is it possible to read XML files in Nix?
<jakobrs> ala fromJSON
<genesis> would be a good idea to make a package set for example with kdegames
<betawaffle> gchristensen: i was, like 8 months ago, though i don't think i ever tried to get that working
<betawaffle> it might also depend on the laptop
<betawaffle> (so you should tell us what kind of laptop you've got)
<gchristensen> xps 9370 :)
<betawaffle> dude, you got a dell
jtojnar_ has joined #nixos
ng0 has joined #nixos
fendor has joined #nixos
jgeerds has joined #nixos
jgeerds has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JeHN2
alexherbo23 has joined #nixos
alexherbo2 has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « haskell-src-meta: update ghc-8.8.x build to the latest version »: https://git.io/JeHNi
gkmngrgn has joined #nixos
<{^_^}> [nixpkgs] @peti closed pull request #75594 → Fix haskell-src-meta patch URI → https://git.io/JeHP6
MichaelRaskin has joined #nixos
halfbit has joined #nixos
<samueldr> hmmm, I have a build sticking
<samueldr> waiting for locks or build slots...
alexherbo231 has joined #nixos
tilpner has quit [Quit: tilpner]
smatting has joined #nixos
alexherbo23 has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @timokau opened pull request #75613 → brial: 1.2.5 -> 1.2.6, pybrial: use brial src → https://git.io/JeHNA
fusion809 has joined #nixos
<{^_^}> [nixpkgs] @romildo merged pull request #75448 → mate.atril: 1.22.2 -> 1.22.3; mate.marco: 1.22.3 -> 1.22.4 → https://git.io/Je9cb
<{^_^}> [nixpkgs] @romildo pushed 3 commits to master: https://git.io/JeHNh
dbmikus has joined #nixos
fendor__ has joined #nixos
<{^_^}> [nixpkgs] @scaredmushroom opened pull request #75614 → backport: john: disable native tests for john the ripper → https://git.io/JeHAJ
<samueldr> :/ I have an unkillable nix-daemon process, which I assume is the cause
<{^_^}> [nixpkgs] @scaredmushroom closed pull request #75614 → backport: john: disable native tests for john the ripper → https://git.io/JeHAJ
fendor has quit [Ping timeout: 265 seconds]
jakobrs has quit [Quit: leaving]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « haskell-ghcide: use latest haskell-lsp versions »: https://git.io/JeHAT
<genesis> silver_hook : did you find how to install kde games at once
<genesis> it seems kde4.kdegames disappears.
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JeHAk
<{^_^}> [nixpkgs] @FSMaxB opened pull request #75615 → Add note about installing NixOS from distributions with /usr/sbin and… → https://git.io/JeHAI
smatting has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @peti pushed 21 commits to haskell-updates: https://git.io/JeHAm
<samueldr> short of rebooting the machine, any tip to fix this?
<samueldr> or maybe, before "fixing", dumping more info about the issue
<betawaffle> what, is it stuck in D state or something?
<{^_^}> [nixpkgs] @romildo opened pull request #75616 → mate.mate-session-manager: 1.22.2 -> 1.22.3 → https://git.io/JeHAO
psyanticy has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @peti pushed 10 commits to haskell-updates: https://git.io/JeHAs
judson__ has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « gsignond-mail: fix typo in all-packages.nix that caused evaluation errors »: https://git.io/JeHAZ
alexherbo231 has quit [Ping timeout: 240 seconds]
judson has quit [Ping timeout: 276 seconds]
knupfer has joined #nixos
<{^_^}> [nixpkgs] @peti merged pull request #75429 → LTS Haskell 14.17 (plus other fixes) → https://git.io/Je9tm
<{^_^}> [nixpkgs] @peti pushed 12 commits to master: https://git.io/JeHAW
<{^_^}> [nixpkgs] @peti closed pull request #75610 → ghcide: unbreak → https://git.io/JeHFX
<samueldr> STAT DN from ps
<samueldr> (never really had to debug a stuck process before)
<samueldr> uninterruptible sleep + low-priority (niced) from the manpage
<clever> samueldr: what is the wchan?
swapgs has quit [Ping timeout: 246 seconds]
<clever> samueldr: `ps a -o pid,wchan` is one way to list it
* samueldr searches how to get it
alexherbo231 has joined #nixos
<samueldr> call_rwsem_down_write_failed
<gchristensen> office hours in like 1m :) in #nixos-officehours -- come talk about Nix's Rust code
<clever> samueldr: sounds like its blocking in a semaphore, one min
<clever> samueldr: `echo w > /proc/sysrq-trigger` and then check dmesg, any backtraces?
vld has joined #nixos
<samueldr> at least two
<samueldr> 5 it looks like
swapgs has joined #nixos
swapgs has quit [Changing host]
swapgs has joined #nixos
<clever> samueldr: each one should have a pid listed near it, and one likely includes call_rwsem_down_write_failed
omneh has joined #nixos
<omneh> thoughtpolice, you're listed as a maintainer of pytorch, it seems that the current version is 1.3.0 but the packaged version is 1.2.0. Because this is a Big And Important Package (TM) I figured I'd ask before attempting to update it. Is there any reason why it's being kept back at 1.2.0 in specific?
<omneh> I'd bother the other maintainers, but they aren't on IRC ;D
<clever> samueldr: that backtrace is weird, let me check the source...
spear2 has joined #nixos
drakonis1 has quit [Ping timeout: 265 seconds]
lovesegfault has joined #nixos
<omneh> (My motivation for updating the package is to fix the broken package pyro-ppl by updating it to the latest version, which requires pytorch 1.3.0)
dirkx____ has joined #nixos
<dirkx____> Anyone happen to know if there already is an easy way to copy a file into the src directory just prior to the compile phase ?
<{^_^}> [nixpkgs] @scaredmushroom opened pull request #75617 → tor-browser-bundle-bin: 9.0.1 -> 9.0.2 → https://git.io/JeHAS
<clever> dirkx____: `preBuild = "cp ${./file.txt} file.txt";`
<omneh> Also @thoughtpolice If I go away, can you ping my main account: OmnipotentEntity, please? I'm on a laptop.
<dirkx____> clever: splendid. so no src/workdir vars needed ?
<{^_^}> [nixpkgs] @thoughtpolice merged pull request #75293 → postgresql: Quote role names when creating database users → https://git.io/JeSc3
<{^_^}> [nixpkgs] @thoughtpolice pushed commit from @kampka to master « postgresql: Quote role names when creating database users »: https://git.io/JeHAQ
<clever> dirkx____: your already cd'd into the source when buildPhase runs, you can confirm that by shoving `pwd ; ls -l ; exit 1` into preBuild
<thoughtpolice> omneh: It was recently a substantial amount of work just to get to 1.2.0, not for lack of trying, because Pytorch's packaging situation is so complex.
<dirkx____> clever: ok and ${./file.txt} somehow gets mapped to the file in the same dir as your default.nix file then ?
<omneh> yeah, I took a look at default.nix, it's a doozy
<thoughtpolice> Note that I was mostly uninvolved in that upgrade; I use pytorch sparingly at it was a bit easier in the past so I did so to spread the workload. But I haven't kept up too much with it
<clever> dirkx____: yep
<dirkx____> yup - and compiling spendidly.
<thoughtpolice> Yeah, it also has an incredible amount of potential build configs
<omneh> however, it seem to work if I just replace the version and the sha
<dirkx____> thanks !
<thoughtpolice> And it's not exactly fast to build, either
<thoughtpolice> omneh: Please feel free to submit a PR and people will surely chime in
<omneh> but... that's not exactly the most scientific way to test it
judson has joined #nixos
<thoughtpolice> Also please make sure Torchvision works if it needs updates by chance
fendor__ is now known as fendor
<omneh> I'll double check that, thanks for the heads up.
<thoughtpolice> Occasionally you are luckiy and just a bump is enough
<thoughtpolice> Also big overhauls that take a while are of course generally motivated by making things easier to package over time! So don't discount that either. Maybe it will keep being easy/easier
judson__ has quit [Ping timeout: 268 seconds]
<omneh> hopefully!
<omneh> I'm just worried that some of the stuff that was written into the default.nix was obseleted, and the hacks being done are no longer necessary
<omneh> I'll do my homework on it this weekend, and submit a PR
<thoughtpolice> That happens sometimes, yeah. In general the direct authors, not necessarily maintainers, are the best source for that.
<thoughtpolice> God knows how many random hacks I have only in my head and know to remove when I update some of my packages...
chloekek has joined #nixos
<thoughtpolice> PyTorch is also complicated by the build configuration possibilities, and combined with being slow to test, especially in non-free (CUDA) configuration.
<thoughtpolice> Which is obviously the one people cares about. For packages like that, most people don't have the hardware to combat those kinds of build cycles, so being conservative and leaving old (but harmless) hacks is understandable.
<omneh> roger. I'll err on the side of caution.
hmpffff has quit [Quit: nchrrrr…]
<thoughtpolice> The good news is most things don't have it that bad, and borg/hydra help a lot. PyTorch will always suffer from that however, I'm afraid.
hmpffff has joined #nixos
hmpffff has quit [Client Quit]
hmpffff has joined #nixos
hmpffff has quit [Client Quit]
<{^_^}> [nixpkgs] @Lassulus merged pull request #70534 → Renoise version 3.2.0 → https://git.io/JeC26
<{^_^}> [nixpkgs] @Lassulus pushed commit from @timothee-haudebourg to master « renoise: 3.1.0 -> 3.2.0 »: https://git.io/JeHxv
<dirkx____> I got a bunch of nixos packages which are fairly identical - and are basically all submodules of a master module: Sitting ready for a pull request: https://github.com/NixOS/nixpkgs/compare/master...dirkx:master -- but I was wondering if this is the right approach. Or if one should move all the definitions to a shared file - and only specify the SHA256, name and the few things which are differnt in each default.ix.
<dirkx____> Or is this something I can submit as a pull request - and better sollicit feedback that way (it is tested, compiles & works fine as it is now).
<quiet_laika[m]> is anyone using nix-darwin? i got an exec format error when installing from the tarball on mojave
zupo has joined #nixos
<jared-w> I'm using it. Works fine for me quiet_laika[m]. How'd you set it up?
<quiet_laika[m]> jared-w: all ive done is the installation step on the repo: https://github.com/LnL7/nix-darwin#install
<quiet_laika[m]> exec: Exec format error
<quiet_laika[m]> but running the executable gives me: ```Failed to execute process './result/bin/darwin-installer'. Reason:
<quiet_laika[m]> The file './result/bin/darwin-installer' is marked as an executable but could not be run by the operating system.```
<clever> quiet_laika[m]: `file result/bin/darwin-installer` ?
zupo_ has joined #nixos
<quiet_laika[m]> clever: `result/bin/darwin-installer: ASCII text, with very long lines, with escape sequences`
<quiet_laika[m]> 🤔
<clever> quiet_laika[m]: sounds like the #! line is missing
mexisme_ has joined #nixos
<clever> quiet_laika[m]: try reading it with an editor, is a shell script? is the #! just missing?
<quiet_laika[m]> indeed
<quiet_laika[m]> `bash result/bin/darwin-installer` works!
zupo__ has joined #nixos
<jared-w> I ran it with $(nix-build bla bla) on my computer, personally
<jared-w> which is the nix equivalent of curl https://not-a-virus.sh | bash, I suppose...
zupo has quit [Ping timeout: 276 seconds]
<clever> quiet_laika[m]: guess its time to file a bug report!
<{^_^}> [nixpkgs] @jsamsa opened pull request #75618 → Rename emacsVersion attribute to version → https://git.io/JeHxq
<LnL> quiet_laika[m]: hmm, what os version is this?
<quiet_laika[m]> 10.14.6
zupo_ has quit [Ping timeout: 276 seconds]
<LnL> weird, I wonder what caused this
<quiet_laika[m]> does the missing shebang not cause problems on other versions of macos?
<LnL> if it doesn't have a shebang it probably never had one, which means it worked for everybody before
<dongcarl> Hi all! I'm looking at ways to improve the nixos service for thelounge and would like some advice
<dongcarl> The specific improvement I want to make it to make it possible to declare users instead of having to go thru the command line
<quiet_laika[m]> LnL: https://github.com/LnL7/nix-darwin/issues/179 for your perusal
<{^_^}> LnL7/nix-darwin#179 (by matthewess, 29 seconds ago, open): Installer missing shebang, fails to run as described on Mojave
<dongcarl> Unfortunately, it seems that thelounge does not have a set formatting for their user info file, and they intend to break it often
<dongcarl> So is the best thing to do just to add an idempotent bash script for adding users in the PreStart of the systemd unit?
<dongcarl> The only thing that's stable is their command line way of adding users: `thelounge add <name>`
<dongcarl> Would love to know the best practices
zmv has quit [Read error: Connection reset by peer]
<LnL> quiet_laika[m]: thanks, should be easy to fix if you want to make a pr otherwise I'll do it tonight or tomorrow :)
vld has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @dirkx-saltrino-2019 opened pull request #75619 → Set of redwax modules (modular/federated PKI tooling) → https://git.io/JeHx4
orivej has joined #nixos
<{^_^}> [nixpkgs] @dirkx-saltrino-2019 closed pull request #75619 → Set of redwax modules (modular/federated PKI tooling) → https://git.io/JeHx4
<{^_^}> [nixpkgs] @timokau merged pull request #75613 → brial: 1.2.5 -> 1.2.6, pybrial: use brial src → https://git.io/JeHNA
<{^_^}> [nixpkgs] @timokau pushed 3 commits to master: https://git.io/JeHxz
<mlen> moin, is there a way to manually download a source file for nix to use? for some reason I can only download it on a remote machine and I would prefer to avoid additional proxy configuration
<clever> samueldr: cant find prealloc_shrinker in linux source...
<samueldr> 4.19
<clever> samueldr: ah wait, its not in old source, but it is in master
<clever> mm/vmscan.c:int prealloc_shrinker(struct shrinker *shrinker)
<clever> samueldr: so, this is in the call stack
<MichaelRaskin> mlen: yes
<quiet_laika[m]> LnL: do you have any knowledge of how nicely nix-darwin will play with a managed install, eg my work macbook?
<MichaelRaskin> You can do nix-prefetch-url file:///path/to/file
mexisme_ has quit [Ping timeout: 276 seconds]
<clever> samueldr: but i dont see how that can call down_write
Neo-- has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @dirkx opened pull request #75620 → Set of redwax modules (modular/federated PKI Tooling) → https://git.io/JeHxo
<samueldr> inlined functions?
<clever> samueldr: oh!, it calls prealloc_memcg_shrinker
<clever> samueldr: which isnt inline, but it is static, which tells gcc the function cant be exported
<mlen> MichaelRaskin: huh, thanks. I tried it in the morning -- didn't work then, but works now
<clever> samueldr: so gcc auto-inlined it
<LnL> quiet_laika[m]: guess that depends on what's enforced, I've used it on a work machine but basically only the boot loader was locked
<samueldr> clever: yeah, what I was looking for :)
<clever> down_write(&shrinker_rwsem);
<clever> so it tried to grab this semaphore
<clever> which means, something else was already holding it
<samueldr> now that I'm back at looking at that (and not office-hours)
<samueldr> I'm looking at the other tracebacks
<clever> 170 static DECLARE_RWSEM(shrinker_rwsem);
<clever> its a global semaphore
<MichaelRaskin> mlen: maybe you forgot the _third_ slash in file:///
<dirkx____> ignore - pulled it all together in a PR (https://github.com/NixOS/nixpkgs/pull/75620).
<{^_^}> #75620 (by dirkx, 2 minutes ago, open): Set of redwax modules (modular/federated PKI Tooling)
turion has quit [Ping timeout: 246 seconds]
<samueldr> clever: yeah, all backtraces from the sysrq thing are on that same backtrace bit
<samueldr> except one
<mlen> MichaelRaskin: I tried it all variants I could imagine and I thought it also included that one
<clever> samueldr: the offending thread could have gone off to do its own thing, or has entirely died
mexisme_ has joined #nixos
<samueldr> oh
<clever> samueldr: any sign of an OOPS in the logs?
<mlen> MichaelRaskin: anyway, what do I do nix tries to do a curl even when I prefetched the file?
<samueldr> clever: not really
<MichaelRaskin> mlen: is it a package from Nixpkgs?
<mlen> yes
<MichaelRaskin> Name?
<mlen> spotify
<samueldr> clever: but there's a backtrace about mmc / sd stuff that *looks* to me like a failure at suspend
<clever> samueldr: the sem is also static, so only code in this one file can access it directly
<mlen> for some weird reason I can't reach api.snapcraft.io from my home, but I can from other servers
<samueldr> clever: (which is part of what was printed by that sysrq thing)
<MichaelRaskin> mlen: ah of course
<clever> samueldr: so we could just go over every reference to shrinker_rwsem in this file, and consider what could make it not up after down
<MichaelRaskin> It uses a hash function that is not default for nix-prefetch-url
<samueldr> yeah, or more likely I'll reboot :)
amir has quit [Ping timeout: 246 seconds]
<MichaelRaskin> mlen: you need --type sha512 in this case
<clever> samueldr: let me check one more thing...
<mlen> MichaelRaskin: sigh, I should've thought about that, thanks :)
<clever> kernel/locking/rwsem-xadd.c:EXPORT_SYMBOL(rwsem_down_write_failed);
tim-hilt has joined #nixos
<clever> kernel/locking/rwsem-xadd.c:EXPORT_SYMBOL(rwsem_down_write_failed_killable);
drakonis1 has joined #nixos
<clever> samueldr: there is a variant, that allows signals to kill it, and it wasnt used
<clever> kernel/locking/rwsem.c:EXPORT_SYMBOL(down_write_killable);
<MichaelRaskin> To be fair, nix-prefetch-url manpage pretends --type sha512 is not even possible
<MichaelRaskin> So reading the docs would not help
<clever> samueldr: its called by down_write_killable, so mm/vmscan.c would have to be modified to use down_write_killable, and then fail in a clean manner if you kill it
<samueldr> wouldn't help currently :)
<clever> samueldr: you ready to shave the yak? :D
<samueldr> not really, shuttind down stuff to reboot to actually shave *my* yak :)
omneh has quit [Quit: Leaving]
<dirkx____> What does this mean: https://gist.github.com/GrahamcOfBorg/5826b93049ef27aae29c683e5bfdfaf7 -- the actual package builds on FreeBSD, linux, linux-arm and Darwin ARM/Darwin-intel ?
<dirkx____> Should I set some platform-* in meta ?
drakonis1 has quit [Ping timeout: 250 seconds]
nornagon has quit [Quit: Ping timeout (120 seconds)]
vld has joined #nixos
nornagon has joined #nixos
drakonis1 has joined #nixos
jtojnar_ has quit [Quit: jtojnar_]
jtojnar_ has joined #nixos
<o1lo01ol1o> clever: that second derivation that showed up in my deployment was the underlaying AWS ami derivation. I recreated the instance and it's stopped crashing the party. :x
<clever> o1lo01ol1o: weird that it was even doing it to begin with
<o1lo01ol1o> clever: I know, something must have borked something
<o1lo01ol1o> speaking technically, of course.
<clever> lol
vld has quit [Ping timeout: 276 seconds]
eacameron has joined #nixos
<eacameron> Is there a way to use nix-shell like "nix-shell some-file -pA attr" where I get a shell with attr built and on my path? I.e. I want something that's like -p and -A
mexisme_ has quit [Ping timeout: 246 seconds]
<jared-w> is https://github.com/ElvishJerricco/simple-hydra supposed to work with the latest nixos-unstable?
lord| has quit [Ping timeout: 240 seconds]
civodul has joined #nixos
drakonis has joined #nixos
drakonis1 has quit [Ping timeout: 268 seconds]
lord| has joined #nixos
jgt3 has joined #nixos
<{^_^}> [nixpkgs] @7c6f434c merged pull request #70772 → octave: build with gl2ps → https://git.io/JeWlu
<{^_^}> [nixpkgs] @7c6f434c pushed 3 commits to master: https://git.io/JeHpE
o1lo01ol1o has quit [Remote host closed the connection]
gkmngrgn has quit [Ping timeout: 240 seconds]
lord| has quit [Ping timeout: 265 seconds]
o1lo01ol1o has joined #nixos
lord| has joined #nixos
amir has joined #nixos
<dirkx____> How does one fix the `potential maintainer' error of the CI (https://gist.github.com/GrahamcOfBorg/04630b7d0f893b2540289b5cdcd29e4a) ?
<dirkx____> each package has a `maintainer = .. ' line; and the maintainer is in the mainainers.nix list.
o1lo01ol1o has quit [Remote host closed the connection]
<samueldr> it it an error?
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
betaboon has quit [Quit: ZNC - https://znc.in]
zeta_0 has joined #nixos
<dirkx____> samueldr: well - it is marked `not green'. Not sure though :)
<zeta_0> why am i getting this error guys?'
<zeta_0> [zeta@nixos:/ghc.nix]$ nix-shell ~/ghc.nix/ --run './boot && ./configure && make -j4'
chloekek has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @gabibbo97 opened pull request #75621 → helm: Add shell completion → https://git.io/JeHpp
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/7351aa52acd (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/0817bb1a957 (from 6 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
<dirkx____> I sort of had hoped for a green tick-mark ; rather than a yellow dot.
vld has joined #nixos
o1lo01ol1o has joined #nixos
zupo has joined #nixos
zupo__ has quit [Read error: Connection reset by peer]
vld has quit [Ping timeout: 250 seconds]
<zeta_0> are there some extra steps that are missing from the instructions?
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @kampka opened pull request #75622 → zsh-history: Add module and tests → https://git.io/JeHhI
hmpffff has joined #nixos
<dirkx____> How should one interpert "Failed to validate package metadata.": https://gist.github.com/GrahamcOfBorg/636aec135b0098a908684306f5df2d04 ?
<dirkx____> I set platforms = in the default.nix to platforms.unix
gyroninja has quit [Quit: WeeChat 2.6]
<samueldr> well, github is basically useless as a tool it seems... it should show the CI status of previous commits in this page https://github.com/NixOS/nixpkgs/pull/75620/checks?sha=721bdcfafe1979563ef68afc8cc2d57dbe31807d
<samueldr> but it looks broken
<samueldr> your link does not give enough information, too boot
<samueldr> we can't guess what is your PR :)
<betawaffle> samueldr: there are no checks for that commit, obviously :P
<samueldr> (here I was able to guess though, using author)
alexherbo231 has quit [Read error: Connection reset by peer]
<samueldr> betawaffle: there are, use the menu to change commit, it tells you it failed!
<samueldr> dirkx____: I assume here that you're reading the wrong output for the check that failed
<samueldr> though I'm not sure
<betawaffle> yeah, but that's just details, bro
<betawaffle> look at the big picture
<samueldr> dirkx____: that just-in failure is different though :)
gyroninja has joined #nixos
<betawaffle> samueldr: oh i see, it's a different kind of check
gyroninja has quit [Client Quit]
<betawaffle> not one of github's integrated things, more like a webhook or something
alexherbo231 has joined #nixos
<samueldr> betawaffle: ??
<samueldr> at one point ofborg was in that tab
gyroninja has joined #nixos
<betawaffle> if you click details on the failure, it takes you to a gist
<samueldr> yeah
<samueldr> but still, the checks tab is woefully broken right now :/
<betawaffle> yep
ixxie has quit [Ping timeout: 276 seconds]
chloekek has joined #nixos
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/7351aa52acd (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
michas has joined #nixos
<michas> Hi, it looks like maven on nixos insists of using JDK8. - Is there any way to change that for a newer version? (JAVA_VERSION gets overridden in the mvn skript.)
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mexisme_ has joined #nixos
<dirkx____> Is it correct that when I do a '--xml --meta' on most packages - maintainers is empty (<meta name="maintainers" type="strings"></meta>)) -- even if the default.nix shows a maintainers = with maintainers; [ XXX ]; ?
Blessjah has quit [Ping timeout: 250 seconds]
mexisme_ has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @kampka closed pull request #75622 → zsh-history: Add module and tests → https://git.io/JeHhI
noogie has quit [Ping timeout: 245 seconds]
noogie has joined #nixos
vld has joined #nixos
halfbit has quit [Ping timeout: 250 seconds]
vld has quit [Ping timeout: 265 seconds]
iz16 has quit [Ping timeout: 246 seconds]
growpotkin has joined #nixos
jtojnar_ has quit [Quit: jtojnar_]
jtojnar_ has joined #nixos
knupfer has quit [Ping timeout: 252 seconds]
gustavderdrache has left #nixos [#nixos]
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
jtojnar_ has quit [Client Quit]
jtojnar_ has joined #nixos
<{^_^}> [nixpkgs] @chkno opened pull request #75623 → WriteHaskell: Strip binaries → https://git.io/JeHjL
<{^_^}> [nixpkgs] @clayrat opened pull request #75624 → idrisPackages.tparsec: 2019-06-18 -> 2019-09-19 → https://git.io/JeHjt
noudle has quit []
jgt3 has quit [Ping timeout: 246 seconds]
jgt3 has joined #nixos
<dirkx____> samueldr: you were right - there was something funny wth the gist.
<dirkx____> and the update of the github page. It was actually happy.
<dirkx____> (though it is not clear to me by --meta --xml on nix-env does not show any minatainer ofr any package)
jgt3 has quit [Ping timeout: 250 seconds]
dirkx____ has quit [Quit: dirkx____]
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<{^_^}> [nixpkgs] @kampka opened pull request #75625 → zsh-history: Add tests → https://git.io/JeHjB
<{^_^}> [nixpkgs] @freepotion opened pull request #75626 → harmonist: 0.2 -> 0.3.0 → https://git.io/JeHjz
erictapen has joined #nixos
<{^_^}> [nixpkgs] @c0bw3b pushed 5 commits to master: https://git.io/JeHj6
<{^_^}> [nixpkgs] @c0bw3b merged pull request #75562 → Http egg cve fix → https://git.io/JeHnu
<{^_^}> [nixpkgs] @jtojnar opened pull request #75627 → python3.pkgs.pygobject2: 2.28.6 -> 2.28.7 → https://git.io/JeHjP
logzet has quit [Ping timeout: 252 seconds]
jtojnar_ has quit [Read error: Connection reset by peer]
jgt3 has joined #nixos
<{^_^}> [nixpkgs] @marsam opened pull request #75628 → flow: 0.113.0 -> 0.114.0 → https://git.io/JeHjH
<{^_^}> [nixpkgs] @jonringer merged pull request #75595 → vimPlugins.quick-scope: init at 2019-04-22 → https://git.io/JeHX4
<{^_^}> [nixpkgs] @jonringer pushed 3 commits to master: https://git.io/JeHj7
Blessjah has joined #nixos
halfbit has joined #nixos
<{^_^}> [nixpkgs] @filalex77 opened pull request #75629 → starship: 0.29.0 -> 0.30.1 → https://git.io/JeHjA
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
<{^_^}> [nixpkgs] @offlinehacker merged pull request #75617 → tor-browser-bundle-bin: 9.0.1 -> 9.0.2 → https://git.io/JeHAS
<{^_^}> [nixpkgs] @offlinehacker pushed 4 commits to master: https://git.io/JeQeI
<{^_^}> [nixpkgs] @offlinehacker merged pull request #75600 → cue: 0.0.14 -> 0.0.15 → https://git.io/JeHDX
<{^_^}> [nixpkgs] @offlinehacker pushed 2 commits to master: https://git.io/JeQet
tim-hilt has quit [Ping timeout: 250 seconds]
drakonis has quit [Ping timeout: 252 seconds]
drakonis has joined #nixos
jgt4 has joined #nixos
jumper149 has joined #nixos
jgt3 has quit [Ping timeout: 246 seconds]
dbmikus_ has joined #nixos
dbmikus has quit [Ping timeout: 240 seconds]
__monty__ has quit [Quit: leaving]
<flokli> what's the current recommended (tm) way to execute scala code inside a nix derivation, and generate the dependency environment?
chloekek has quit [Ping timeout: 276 seconds]
swapgs has quit [Ping timeout: 240 seconds]
swapgs has joined #nixos
swapgs has joined #nixos
swapgs has quit [Changing host]
endformationage has quit [Quit: WeeChat 2.6]
<{^_^}> [nixpkgs] @veprbl opened pull request #75631 → herwig: 7.1.5 -> 7.1.6 → https://git.io/JeQvm
pareidolia has quit [Quit: ZNC 1.7.3 - https://znc.in]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #75558 → nixos/lightdm-greeters/pantheon: show manual login card → https://git.io/JeHGI
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JeQvO