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]
<{^_^}>
[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?
<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]
<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>
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?
<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?
<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: 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 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.
<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
<{^_^}>
[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.
<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
<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
<{^_^}>
[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
<{^_^}>
[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).
<{^_^}>
[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
<{^_^}>
[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
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]
<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.
<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
<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…]
<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
<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]
<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
<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 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?
<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 )
<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
<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
<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]
<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!
<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?
<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.
<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.
<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
<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?
<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
<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 ?
<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.
<{^_^}>
[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?
<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
<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 :)
<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
<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 ]; ?