<monokrome>
same ACPI errors are logged and same nVidia issues (desktop has an RTX 2080 Ti)
<monokrome>
samueldr: ooooh maybe that'll help but seems dangerzone
<samueldr>
no, I meant that I don't know what's "kernelBeta"
<monokrome>
linuxBeta?
<monokrome>
It's a package to update to beta kernel
<samueldr>
any link?
hedning has quit [Quit: hedning]
<samueldr>
it doesn't seem to be part of nixpkgs
<monokrome>
hmm
<monokrome>
someone here told me to do it and it fixed one thing
init_6 has quit [Ping timeout: 250 seconds]
peterzky has joined #nixos
<monokrome>
samueldr: Doesn't show up in package search for me either but it's installed
* monokrome
confused
<samueldr>
to be effective on your system, it must be in your configuration under /etc/nixos
<samueldr>
(nix-env can't affect the boot process that early)
<monokrome>
yeah it is
<monokrome>
I don't use nix-env directly ever
pie____ has quit [Ping timeout: 252 seconds]
jluttine has quit [Ping timeout: 272 seconds]
<samueldr>
could you tell me the value of `boot.kernelPackages` in your configuration?
<samueldr>
(I'm curious as to what you have used)
jluttine has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sbdchd has joined #nixos
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
cyounkins has quit [Ping timeout: 268 seconds]
scribbler has quit [Quit: scribbler]
peterzky has quit [Quit: peterzky]
<pie__>
clever, so i started collecting renamed nix-build results in a directory and make a script to add them to my env, then i realized im basically just recreating nix-env? clever halp
Rusty1 has quit [Quit: Konversation terminated!]
<clever>
pie__: nix-env -f foo.nix -iA bar
<clever>
that lets you load a given nix file, and install a given attr inside it
<ToxicFrog>
Is there any NixOS option for "just drop this binary into /run/current-system/sw/bin"?
<lucus16>
(solved it, apparently it can't find libraries without explicitly specifying pkg-config as buildInput
<lucus16>
)
<ToxicFrog>
Like, I know I can write a package for it and add that package to environment.systemPackages, but what if I just have a brief shell script I want included lying around in the nixos configuration directory?
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @avnik to master « wine{Unstable,Staging}: 3.20 -> 4.0-rc2 »: https://git.io/fphrY
jperras has joined #nixos
<kyren>
okay, this might (is probably) a massive XY problem
<kyren>
is there a way to do a nixos-rebuild with nixpkgs set to a local nix expression, rather than a url or a path to a directory containing a nixpkgs checkout
<kyren>
I'm trying to pin a script doing a nixos-rebuild to a specific revision of nixpkgs, but I don't want to actually use a git submodule
<kyren>
so my idea was to call builtins.fetchFromGit in a nix expression and use that as 'nixpkgs' for nixos-rebuild
hyper_ch has quit [Ping timeout: 246 seconds]
<jackdk>
kyren: I threw together https://pastebin.com/KmcYppFH which I think points in the right direction, but fails to build with trace: version 19.03.git.64f4eeb does not appear in name nixos-version
iqubic has quit [Quit: Page closed]
acarrico has quit [Ping timeout: 244 seconds]
Supersonic has quit [Ping timeout: 250 seconds]
Supersonic has joined #nixos
<kyren>
so I have 'import (builtins.fetchGit { ... })' in a nixos-unstable.nix file
doyougnu has quit [Ping timeout: 245 seconds]
<kyren>
and if I do NIX_PATH="nixpkgs=<path-to-nixos-unstable.nix>" nix-shell -p hello -- everything works fine
<kyren>
but NIX_PATH=<same> nixos-rebuild -I nixos-config=<whatever> -- does not
<kyren>
and I get: error: file 'nixpkgs/nixos' was not found in the Nix search path (add it using $NIX_PATH or -I)
<kyren>
it's really confusing me and making me doubt that I understand things, I don't understand why there's a difference between nix-shell and nixos-rebuild
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fphow
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
cyounkins has quit [Ping timeout: 250 seconds]
Anton-Latukha has quit [Quit: Leaving.]
hyper_ch has joined #nixos
sir_guy_carleton has joined #nixos
endformationage has quit [Quit: WeeChat 2.3]
worldofpeace has joined #nixos
pie__ has joined #nixos
r5d has quit [Ping timeout: 252 seconds]
pie___ has quit [Ping timeout: 250 seconds]
ntd has joined #nixos
doyougnu has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @ceedubs opened pull request #52513 → vim-lsc: init at fe6d3bd → https://git.io/fphKF
<{^_^}>
[nixpkgs] @ceedubs closed pull request #52407 → vim-lsc: init at fe6d3bd and update vim-plugins → https://git.io/fpNdk
Lisanna has joined #nixos
ntd has quit [Quit: ntd]
sir_guy_carleton has quit [Quit: WeeChat 2.2]
WM_ is now known as epicmetal
jperras has quit [Quit: WeeChat 2.2]
lo_mlatu has joined #nixos
<lo_mlatu>
can't add dotfile into nix- store?
lassulus_ has joined #nixos
<nh2>
lo_mlatu: you should be able to
<lo_mlatu>
nix-store throws invalid name. So I have to rename it?
<nh2>
lo_mlatu: what exactly does it say?
lassulus has quit [Ping timeout: 272 seconds]
lassulus_ is now known as lassulus
<lo_mlatu>
error: illegal name: '.editorconfig'
drakonis has quit [Quit: WeeChat 2.3]
<nh2>
lo_mlatu: and how do you include it, with `./.editorconfig`?
<lo_mlatu>
in a string, like "${/absolute/path/to/dotfile}"
epicmetal has quit [Read error: Connection reset by peer]
<nh2>
lo_mlatu: I think I figured it out: The problem is that nix by default names the derivation in /nix/store after the original file, but that name isn't allowed to start with a dot. You can do it by giving it an explicit name:
<nh2>
builtins.path { name = "dotfile"; path = ./.dotfile; }
<ottidmes>
I have some troubles with my ethernet controller driver (sky2), which does not work after suspend on kernel > 4.14, after looking into it I found that I had to set disable_msi=1 as an option on the sky2 driver, i.e. after doing: modprobe -r sky2; modprobe sky2 disable_msi=1, and then trying a suspend, it did work afterwards. How can I make this persistent in NixOS?
ThatDocsLady has joined #nixos
<{^_^}>
[nixpkgs] @flokli pushed commit from @symphorien to release-18.09 « brlaser: fix install dir »: https://git.io/fphbg
alex`` has joined #nixos
etbe has joined #nixos
<infinisil>
ottidmes: not sure, but maybe you can do it with sysctl
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
ottidmes has joined #nixos
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<ottidmes>
infinisil: the kernel argument worked: sky2.disable_msi=1 :)
<sphalerite>
linkrage: add-hardening.sh is part of the cc wrapper which is used in stdenv, i.e. all packages are already built with the hardening options.
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
__monty__ has joined #nixos
<__monty__>
How would I get a nix-shell with ghcWithPackages [ squeal-postgresql 0.4.0.0 ] ?
<linkrage>
sphalerite, I see. Thanks!
ZaraChimera has quit [Ping timeout: 256 seconds]
hyper_ch2 has left #nixos [#nixos]
dermetfan has joined #nixos
nschoe has quit [Quit: Program. Terminated.]
[Leary] has joined #nixos
<sphalerite>
__monty__: in principle, nix-shell -p 'haskellPackages.ghcWithPackages (ps: [ps.squeal-postgresql])'
<sphalerite>
__monty__: but it seems that your desired verison of squeal-postgresql isn't in nixpkgs
betaboon has joined #nixos
jomik has joined #nixos
<sphalerite>
__monty__: oh wait yes it is. just add _0_4_0_0 to the end of the name
Lears has quit [Ping timeout: 246 seconds]
<sphalerite>
so nix-shell -p 'haskellPackages.ghcWithPackages (ps: [ps.squeal-postgresql_0_4_0_0])'
<__monty__>
Oh, thanks, sphalerite, I'll give that a shot, hadn't thought of it. Was getting nowhere fast with overrides.
<jomik>
Hey! Any clever heads around that could help me with buildFHSUserEnv ? I seem to need to do something like what steam-run does, because Cisco is demanding that I run some files that fail for some reason, even with rpath and interpreter set properly.
<aszlig>
pie___: i haven't read the full backlog, but it seems that you're using the Steam version, right?
<jomik>
pie___: Good morning! :P
<jomik>
Poor guy was helping me last night, and is still here now that I woke up? :P
<sphalerite>
jomik: first step to try would probably be using strace to see what it's failing to access
sbdchd has joined #nixos
<jomik>
sphalerite: Ah, I guess I will need to read up on strace then. It's a pain, because there is no output from the binary whatsoever...
<jomik>
openat(AT_FDCWD, "/opt/.cisco/certificates/ca", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
<jomik>
This is my last bit.
<jomik>
So I guess it needs that opt path there.
<sphalerite>
please use gist.github.com or similar for multiline pastes!
<jomik>
Oh, my bad !
orivej has joined #nixos
<jomik>
So the last line is accessing /etc/pki/tls, /etc/ssl/certs and then /opt/.cisco/certificates/ca
Neptu has joined #nixos
iyzsong has joined #nixos
alex`` has quit [Read error: Connection reset by peer]
<jomik>
Do you know if /etc/pki/tls and /etc/ssl/certs is populated by this program I am running, or is that by the distro?
alex`` has joined #nixos
<jomik>
Ah, that's OpenSSL I guess..
<__monty__>
sphalerite: Is there a command that'll list the versions of a package available?
<sphalerite>
__monty__: nix search, except it doesn't search haskellPackages by default.
<__monty__>
sphalerite: Hmm, I haven't been able to use nix search properly before. `nix search` says using cached results use -u, using -u gives no output.
<sphalerite>
__monty__: does `nix search -u hello` work for you?
<jomik>
sphalerite: do you have any idea how I can fix this? openat(AT_FDCWD, "/opt/.cisco/certificates/ca", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory) ?
<jomik>
Should I just create the directory? :P
<sphalerite>
jomik: you could do that and it would change that error, but it probably wouldn't solve your problem.
<sphalerite>
jomik: beyond that I don't know, sorry :/
<__monty__>
sphalerite: Nope, was trying with irssi earlier.
<jomik>
:(
<sphalerite>
__monty__: what does nix-info say?
<__monty__>
Unknown command.
<__monty__>
Or do you mean the nix-shell incantation?
<sphalerite>
yeah if you're not on nixos
<__monty__>
,nix-info
<{^_^}>
Run and share the output from: nix-shell -p nix-info --run nix-info
simukis has joined #nixos
nD5Xjz has quit [Ping timeout: 268 seconds]
ubert has joined #nixos
<__monty__>
sphalerite: What part do you want to know? Looks rather harmless. It's not a multi-user or sandboxed setup, I'm on arch and I have a channel.
<sphalerite>
can't you just paste the output?
<sphalerite>
feel free to patch out your username or whatever
<__monty__>
sphalerite: Sure, but what'll that teach us? http://ix.io/1wmq
dermetfan has quit [Ping timeout: 268 seconds]
<sphalerite>
where it's getting nixpkgs. Does `nix-env -qa` work?
<sphalerite>
also, nix-info without -m should generate a single line suitable for pasting into IRC :)
pietranera has joined #nixos
<kyren>
hey, I'm trying to do nixpkgs pinning for my machine configurations, and I know I can do this using a nixpkgs git submodule, but I'd rather not use a submodule, is there a way to do this with e.g. builtins.fetchGit?
<__monty__>
-qa works but I only run it every so often because it makes the box grind to a halt for like an hour.
<sphalerite>
kyren: yes
<sphalerite>
__monty__: an hour? o.O what sort of machine are you working on?
<__monty__>
I'm very memory constrained when it comes to nix because of 2G ram.
<sphalerite>
D:
<jomik>
kyren: if I understand what you want to do - you can use fetchFromGitHub and then the nixpkgs-channels repo.
<sphalerite>
do you have a more generous machine available?
nD5Xjz has joined #nixos
<jomik>
is fetchGit a builtin? :o
<sphalerite>
jomik: yes, there's the builtin fetchGit and the nixpkgs fetchgit
<jomik>
Oooh
<sphalerite>
jomik: the difference being that fetchGit runs at eval time as the user performing the evaluation, allowing access to private repos and impurity (i.e. fetch the *current* state)
<kyren>
sure, but walk me through it, I tried to do this earlier and the problems I ran into weren't so much with builtins.fetchGit / fetchFromGithHub but more like nixos-rebuild
<kyren>
or, actually let me just explain what I did, it's going to take me a bit sorry
<jomik>
I give up on getting this cisco stuff running on NixOS :D I am just gonna have to make a docker image / persuade hosting to open for ssh access.
<sphalerite>
jomik: while nixpkgs fetchgit requires you to specify a fixed revision and the output hash, but caches nicely and is allowed in nixpkgs since it doesn't do purity
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @rydnr to master « pharo: Simple fix for Iceberg (#52466) »: https://git.io/fphjZ
<__monty__>
sphalerite: I have a remote build server set up that also caches the binary cache. It's less constrained but not much.
<jomik>
sphalerite: Yes - Cisco Desktop Trojan. It's a wrapper script that OpenConnect runs.
<sphalerite>
jomik: oh right so you are using openconnect already. Never mind me then
<sphalerite>
__monty__: right, then you could run nix search -u on there and copy your ~/.cache/nix/package-search.json to your 2G machine
<kyren>
currently I have several machine configurations in a git repo, and I have kind of a crappy "mini nixops" setup where I have some scripts that use nixos-rebuild and set NIX_PATH="" and set nixpkgs and nixos-config manually to do local builds for remote machines and switch them, ideally I would pin nixpkgs using a git rev in some nix file and use that as nixpkgs, which is what I tried earlier
<sphalerite>
__monty__: it's not beautiful but it ought to work >.<
<jomik>
Pondering when you'd really want to use the builtins fetchGit.
<kyren>
I had a nix file with (I've deleted it since then), something like import (builtins.fetchGit { ... }), and then I could do something like NIX_PATH="nixpkgs=./mynixpkgs.nix" nix-shell -p hello and it works
<sphalerite>
jomik: private repos and intentionally impure builds ("build current master of project foo")
<kyren>
but doing the same thing with nixos-rebuild had a lot of errors, I can set all this up again if necessary
<kyren>
but it meant that there was some difference between e.g. nix-shell and nixos-rebuild that I didn't understand
<__monty__>
sphalerite: Does nix search give me more than nix-env -qaP?
<sphalerite>
__monty__: no, but it caches it and prints it out in a prettier format
zolk3ri has left #nixos [#nixos]
<kyren>
jomik: that makes sense, but how do you use it with nixos-rebuild and a machine configuration.nix, that's the problem I'm running into... here let me set this up again so I can talk about this concretely
<sphalerite>
__monty__: if you want to include haskellPackages in searches, add an overlay like self: super: { haskellPackages = super.recurseIntoAttrs super.haskellPackages; }
<__monty__>
sphalerite: I'll just muddle along manually caching -qaP for now then, already makes haskellPackages searchable.
<jomik>
I am not sure I understand kyren ? You just paste that expression in there, and refer to it like I do in my home.packages. You can do the same in the system wide configuration.
<kyren>
I know about the nixpkgs.pkgs option, which is what I'm assuming you're talking about?
<kyren>
so this is where my understanding is pretty poor, but it's my understanding that... I don't know the details but that that option sets the packages version, but not say the nixos modules version, and that you can end up with a mismatch and it will still in part use nixpkgs from NIX_PATH for things
<kyren>
so I was warned off of it, but possibly incorrectly?
<kyren>
I definitely understand nixpkgs pinning in general, or for some given nix expression at least, my problem is specifically doing it with system configurations
<jomik>
I don't think you need to mess with NIX_PATH. You should be able to just use the fetchFromGitHub expression I linked, and overlays, if you want to override packages used in services, etc.
<jomik>
Though, it could definitely end up with some mismatches.
<kyren>
no, I want to use a specific version of nixpkgs for everything
<jomik>
I guess you'd rather want to point it all at a specific Nix channel.
<jomik>
Well, you could make an overlay for everything:P
<kyren>
you can do it by changing NIX_PATH to like a submodule
<kyren>
so I have it working again with stuff like nix-shell, let me paste this somewhere so you can see
<kyren>
that's the frustrating thing is that it actually works fine with other things
<jomik>
You'd probably need to git clone the revision you want to use, and then point nixpkgs at that.
<kyren>
yeah... I was hoping to avoid it, and it just also shows that I don't understand something
<jomik>
I guess you should look at where your nixpkgs is atm. Which is essentially the git repo that your channel points at.
<kyren>
I know how to use channels, I actually don't have any channels at all
<kyren>
well, I mean I don't use channels via nix-channel
<jomik>
So, the fetchGit puts the git repo (essentially) in your nix store anyway :P
<kyren>
my NIX_PATH points to whatever nixpkgs was used to build my OS most recently, via `nix.nixPath = [ "nixpkgs=${pkgs.path}" ];`
<kyren>
yeah I know, that's fine
<jomik>
Ah,
<kyren>
I put it in the repo on purpose anyway
<kyren>
er, sorry in the store on purpose
<jomik>
Why fetchGit and not fetchFromGitHub? - Since it's pure :P
ottidmes has quit [Quit: WeeChat 2.2]
<kyren>
I mean I could use fetchFromGithub also, but I don't think it would make a difference?
<tilpner>
kyren: That has a few disadvantages (NIX_PATH is only re-defined when you login), which you can workaround by setting nixpkgs to some fixed path, and then symlinking pkgs.path there
asymmetric_ has joined #nixos
<jomik>
Well, not other than builtins.fetchGit being impure, from what sphalerite said. So it may not get that exact revision.
<tilpner>
(I didn't say it, sphalerite!)
<jomik>
kyren: why not set NIX_PATH to that nixos-unstable.nixi and then call nixos-rebuild?
<kyren>
I tried that as well, but it's not any different
alex`` has quit [Quit: WeeChat 2.3]
<kyren>
I can actually try it and show you what happens
<kyren>
tilpner: yeah, I figured that it only resets it on login, that's a good suggestion
<kyren>
fetchFromGithub isn't builtin, right?
agander has quit [Ping timeout: 250 seconds]
<tilpner>
It's not
<jomik>
It's in lib
<tilpner>
It's in pkgs actually
<kyren>
I know rev is a theoretical impurity, I could use fetchFromGithub
<jomik>
That's what I meant.
<jomik>
Lol, thanks tilpner
<jomik>
I dunno why it isn't in lib D:
<jomik>
well, choosing a revision makes it pure, since you fetch the same, and you can do a checksum check.
<tilpner>
Yeah, not sure why you think that's impure?
<kyren>
oh, I thought it was pure a minute ago, but you said it was impure?
<tilpner>
This? "Why fetchGit and not fetchFromGitHub? - Since it's pure :P"
<kyren>
oh, the *opposite* of that
<kyren>
oh okay sorry haha
<kyren>
I misunderstood, and I should not have said "I know" when what I meant was "I understand", because clearly I didn't
<kyren>
sorry it's really early, and yeah I would hope rev makes it pure, I just figured I misunderstood some theoretical impurity around git push -f or something but that's not how git works, sorry it's early :P
<tilpner>
So both <nixpkgs> and <nixpkgs/nixos> are actually valid paths once resolved
<tilpner>
Which is not possible if your <nixpkgs> is a file already
<kyren>
right
<kyren>
right, angle brackets work differently than I thought!
<tilpner>
You can debug this behaviour with "nix repl" or nix-instantiate --find-file nixpkgs/nixos
<linkrage>
how can I install nginx and register new acme certificate? from the manual+wiki I see catch 22 here... You need to have nginx in order to register the new cert but I don't want to make changes to configuration.nix once again after the cert is registered.
<tilpner>
And of course services.nginx.enable = true; somewhere
hedning has left #nixos [#nixos]
<eyJhb>
What is the best way to symbolic link `vi` to `vim`. As LaTeX tries to execute `vi +100 test.tex`
<linkrage>
tilpner, I've done this but it does not appear to be enough? What about the /.well-known/acme-challenge etc?
<tilpner>
linkrage: It's handled for you
<kyren>
okay, I understand now thank you! I see things like `import <nixpkgs/pkgs/...>` in a lot of places, I guess it's something to be aware of, and that maybe setting nixpkgs="an expression" is kind of limited?
<linkrage>
tilpner, really, cool let me try
<tilpner>
eyJhb: Not sure. I just tried a wrapper script, but vim detects that it's being called as vi and emulates vi, I think?
<tilpner>
Oh no, nevermind
<tilpner>
Put (writeShellScriptBin "vi" ''exec ${vim}/bin/vim "$@"'') into your packages if you want a wrapper script
<eyJhb>
Nope.. Just command not found .. :/ - Can I put that into configuration.nix?
<tilpner>
Yes
Mateon1 has quit [Quit: Mateon1]
<sphalerite>
tilpner: ;)
<linkrage>
tilpner, thanks, my issue turned out to be the hostname I've set (amazon ec2 fqdn... which are blacklisted)
<tilpner>
kyren: Even my approach has issues if people expect <nixpkgs/some/other/path> to exist
<kyren>
but it works for nixos-rebuild which is all I care about, I'm not setting NIX_PATH to it in general, so thank you so much
<eyJhb>
tilpner: not sure where/how to put it, as I just get a error
Mateon1 has joined #nixos
<tilpner>
kyren: Which is luckily not the case for most expressions I've encountered. They may use <nixpkgs>, but there's usually a way to pass your own pkgs. home-manager is the only one that really wanted a tree <nixpkgs>
<tilpner>
eyJhb: users.users.eyJhb.packages = with pkgs; [ (...) ];
<kyren>
I've used it in one of my project builds >_> but now I'm aware of it
<tilpner>
Well, you may want to
<tilpner>
It's very nice to have nixos-rebuild, nix-shell, and nix-env all operate on the same package set, with the same nixpkgs version, overlays, config
<eyJhb>
Thanks! Works wonders
<kyren>
I meant like (import <nixpkgs/pkgs/build-suport/rust/fetchcargo.nix>) which assumes a tree
pie___ has quit [Remote host closed the connection]
pie___ has joined #nixos
<tilpner>
If you do (import (pkgs.path + /pkgs/build-support/rust/fetchcargo.nix ...) your expression will work independently of the users NIX_PATH
<kyren>
good to know
<tilpner>
I'm biased, but I think that's a good property, even though it may look a little less nice
<tilpner>
(Though unfortunately, this does not work for module imports without more work)
<jonaswouters>
What does it mean when I get the following error? "value is a function while a set was expected". I'm just doing services.znc.confOptions.passBlock = "test";
<tilpner>
You're probably doing other things too. If you comment that out, does the error go away?
<jomik>
jonaswouters: what line gives that error?
relutionary has quit [Read error: Connection reset by peer]
<jomik>
It is probably the whole nix expression that returns a function, and it expects it to return a set :D
<__monty__>
eyJhb: Is the call to vi hardcoded? I'd expect it to use ${VISUAL :- $EDITOR}.
commander has joined #nixos
<jomik>
Is there a nice way to merge a folder into another folder, "temporarily"? I want to add fish functions and such based on a nix expression, but if the functions are removed from the nix expression, I want them gone from the folder as well... I would do the same as vscode extensions, but I cannot, because I can not change the folder than Fish points to.
<__monty__>
jomik: Bind mounts?
<__monty__>
Though, they wouldn't merge I guess. So maybe an overlayfs?
<jomik>
Nah, issue is that there may be user functions there, that have not been created through nix.
<jomik>
Though... I guess I could just demand that it all is done in nix.. :D
<eyJhb>
Seems hardcoded, as I have set $EDITOR to `vim` __monty__
<jomik>
eyJhb: I don't have that issue with LaTex, using texlive to compile.
<jomik>
Seems odd that LaTex would try and use vi for anything
<__monty__>
jomik: An overlay would make it possible to merge the nix functions and the stateful functions.
<__monty__>
jomik: Not as odd as hardcoding another editor though : )
<eyJhb>
jomik: using pdflatex to compile, from texlive-full-combined. If a error occurs, then you can press e to go to the file+line, and that always uses `vi` for me
<__monty__>
eyJhb: Ah, it uses TEXEDIT to determine the command.
orivej has quit [Ping timeout: 250 seconds]
<__monty__>
eyJhb: So TEXEDIT=vim +%d %s should™ do it.
<{^_^}>
[nixpkgs] @risicle opened pull request #52519 → cloudfoundry-cli: fix build on multiple platforms, notably darwin, to produce correct binary for target → https://git.io/fpjJ9
<jomik>
__monty__: I don't think an overlay would solve it. - Sorry, when I said functions, I meant files that exist in the directory, created by the user.
<jomik>
I want to manage ~/.config/fish/functions (and similar), by adding stuff from my home.nix (home-manager, but would be a nixpkg setup like the vscode one, really).
<jomik>
I just don't want to remove user-created functions.
<jomik>
But if you delete a plugin that is in the nix expression, then it should also be removed from the folder.
init_6 has joined #nixos
<jonaswouters>
tilpner: if I comment it out, i get "The option `services.znc.confOptions.passBlock' is used but not defined"
<__monty__>
jomik: I'm not talking about a nix overlay, I'm talking about an overlayfs. That definitely allows you to write to a directory without writing to the directory by writing to the overlay.
<jomik>
Oh
<jonaswouters>
jomik: line = that setting.
Makaveli7 has quit [Quit: Leaving]
asymmetric_ is now known as asymmetric
<jomik>
jonaswouters: can you dump the nix expression to something like gist.github.com ?
<__monty__>
jomik: If you don't need the user defined functions available while the nix defined ones are you could just bind mount over it, that shadows the real directory.
<asymmetric>
is it possible to set environment variables, or start background daemons, in a shell.nix?
<asymmetric>
for a dev environment
<qyliss^work>
asymmetric: You can run arbitrary shell commands using `shellHook`
<qyliss^work>
Although I'd caution against using it to start background daemons - that's not really what it's for
gmarmstrong has joined #nixos
<asymmetric>
qyliss^work: i don't see shellHook in mkshell.nix
<qyliss^work>
it's part of stdenv.mkDerivation
<asymmetric>
where is it defined?
<tilpner>
jonaswouters: That's quite different from what you originally said. We need to see the structure of your secrets.nix to tell if you're actually passing a function
<asymmetric>
got it
<jomik>
jonaswouters: Does secrets.nix start with a { ... }: ?
<gmarmstrong>
Hi! How can I find out whether commit 5251e0f (#50338) will be merged into NixOS 18.09?
<{^_^}>
[nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Preview of 'd642e4650364e808c3d40cd9dfb67a260768ce10' commit built by Travis-CI \#470007688 »: https://git.io/fpjIP
<{^_^}>
[nixos-weekly] @domenkozar pushed 7 commits to production: https://git.io/fpjtb
<{^_^}>
[nixos-weekly] @domenkozar pushed to master « Call for Content: 2018/15 »: https://git.io/fpjtx
sir_guy_carleton has quit [Quit: WeeChat 2.2]
<{^_^}>
[nixos-weekly] @domenkozar opened pull request #74 → Call for Content: 2018/15 → https://git.io/fpjqe
<{^_^}>
[nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Release of (commit '7a686a0e97daaa17669faeddf7f7e5f1f06716ca') built by Travis-CI \#470019588 »: https://git.io/fpjqJ
<ToxicFrog>
What package is `dig` in? The command-not-found finder says it's in "bind", but it's not.
* tilpner
.oO( What role does cachix play in greek mythology? )
<gchristensen>
breaking out of it, finally!
<domenkozar>
every rule has an exception
<gchristensen>
not every Nix tool needs to orbit Pluto! :)
<domenkozar>
also yeah infinite recursion sux!
<srhb>
First they demote Pluto, then they rename one of its moons "nixops" :|
reinhardt has quit [Quit: Leaving]
domenkozar has quit [Changing host]
domenkozar has joined #nixos
ikwildrpepper has quit [Changing host]
ikwildrpepper has joined #nixos
makefu has quit [Changing host]
makefu has joined #nixos
infinisil has quit [Changing host]
infinisil has joined #nixos
sphalerit has quit [Changing host]
sphalerit has joined #nixos
sphalerite has joined #nixos
sphalerite has quit [Changing host]
<domenkozar>
srhb: lol
<domenkozar>
we'll gradually fix it
<domenkozar>
not sure we're doing good with the greek beards though
<domenkozar>
but who says we can't present gods the way we see them!
<{^_^}>
[nixpkgs] @dotlambda opened pull request #52523 → python.pkgs.graphviz: hardcode path to graphviz's bin/ → https://git.io/fpjmb
<jboy>
Has anyone gotten Hiri, the proprietary exchange client, to work on NixOS? It's only distributed as a binary, and I'm having difficulty getting it to run, even using the excellent autopatchelf.
<{^_^}>
[nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/fpjmj
<sphalerite>
jomik: that's the copy of src created by unpackPhase
zolk3ri has left #nixos [#nixos]
<jomik>
What if my src isn't packed in a zip?
<jomik>
Do I still get a copy?
<jomik>
read: should I use . or $src
<hyper_ch2>
hmmmm, where is it defined that nixos will build a python2.7 version of a package?
<jomik>
hyper_ch2: the package probably has defaults? I don't think nixos decides that :o
ThatDocsLady_ has quit [Ping timeout: 252 seconds]
<hyper_ch2>
jomik: my mistake
srhb has joined #nixos
<jomik>
So check the package :D
<aszlig>
hyper_ch2: if it's used like pythonPackages.foo you'll get the py2 version
Rusty1 has joined #nixos
<linkrage>
tilpner, about acme+nginx again - will the acme cert renew & update itself automatically when it's about to expire or I have to do something about it? Thanks in advance!
<hyper_ch2>
nah, it wasn't 2.7.... it was just flexget version that I misread: 2.17 and assumed it uses python 2.7 :)
iyzsong has quit [Ping timeout: 268 seconds]
<aszlig>
hyper_ch2: if you want the python 3 variant it's python3Packages.foo or even python37Packages.foo
<aszlig>
hyper_ch2: ah
<sphalerite>
jomik: unpackPhase unpacks the zip
<sphalerite>
:)
<hyper_ch2>
anyway, I get this error FlexGet-2.17.20-py27-none-any.whl is not a supported wheel on this platform. -- what is that wheel and since it wants to build for python 2.7 - how can I prevent it doing so?
<jomik>
sphalerite: Yeah, what if my src isn't a zip tho?
<jomik>
so unpackPhase doesn't do anything.
<sphalerite>
jomik: if it's a directory, it gets copied
<tilpner>
linkrage: It renews automatically
slack1256 has joined #nixos
<jomik>
Perfect. So I can just mess with pwd all I want :D
<sphalerite>
jomik: yes
<tilpner>
linkrage: systemctl list-timers can show you when it checks for necessary renewals
<linkrage>
tilpner, Thank you! Amazing! Does it work if I have multiple nginx vhosts as well? Thanks I'll check them :)
<aszlig>
hyper_ch2: ah, it's using python 2.7 - you could try using flexget.override { python = python3; }
<hyper_ch2>
aszlig: I'm trying to get flexget to run on python 3 since some packages aren't built for 2.7 anymore
<tilpner>
linkrage: Yes, it can do multiple vhosts too. You should only expect problems when trying to get certs for non-HTTP services (still easy), and I usually get errors the first time I deploy for a new cert (but that's gone after the next deploy and never re-appears)
<jomik>
I forgot how globbing works in bash. How would I match 3 files if they exist? That is, I want to do something like fish_{mode_,right_,}prompt.fish
<jomik>
Wonder what I did to get an error before then :D
<jomik>
Thanks..
<linkrage>
tilpner, good to know. Thank you so much. It's been few hours only and I'm falling in love with nixos (coming from puppet+theforeman+ansible background). You do have great community as well! Great work on all fronts!
jperras has joined #nixos
<tilpner>
:)
<kyren>
so I'm pretty sure I could figure this out with enough tries, but I'm *not* sure I could figure it out without causing networking on my dedicated server to go away and having me to get somebody to attach a kvm, so I'm going to ask a few more potentially dumb questions
<kyren>
I'm trying to create a container that has a real, actual, public ipv4 address assigned to it
<kyren>
is this something that requires setting up a bridge? I'm a bit confused as to precisely what containers.<name>.hostAddress does
agander has quit [Ping timeout: 245 seconds]
<aszlig>
kyren: do you require network namespacing?
<kyren>
I would like it?
<aszlig>
kyren: because if not, the container should reside in the same network namespace and thus should be able to bind ports
<kyren>
yeah, I figured without network namespacing it would be easy
<aszlig>
kyren: other than that, you could also use a veth and a bridge... or even better: unix domain sockets
<aszlig>
but the latter depends on the service running inside the container
<sphalerite>
aszlig: how do unix domain sockets help with this?
<kyren>
ideally it would ether be a bridge or just a forward all from public ip <-> internal interface
<kyren>
if the service is isolated enough you can just forward everything over a unix socket for extra security
<aszlig>
sphalerite: eg. if you want to use a http reverse proxy or something like that
<jomik>
How do I go about getting this as fish-utils into my namespace? Do I just use callPackage in my home.nix? Wondering how it is done with vscode-utils still... :D
<jomik>
Umm. How was it that I used tofu to get the sha256 I need.. Atm build is just failing saying that it is not a package (I am passing it to an option of type listOf package)
<srhb>
jomik: 52 zeros
<srhb>
,tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<srhb>
jomik: In the error message when you try to build it :)
<srhb>
jomik: Sounds like you're seeing a different failure though.
<srhb>
jomik: So probably fix that first, and you'll see the hash error afterwards.
<aszlig>
hyper_ch2: if you run nix-store -qR or with --tree you'll see a lot of python2.7 stuff creeping in
<aszlig>
hyper_ch2: ... on the .drv
<ekleog>
gchristensen: as you said you also had seen a case of misattributed PR close following a git push on github: just got “Just wanted to let you know that we've escalated this one to our Engineering Team.” from github :)
<jomik>
Probably home-manager supressing the error somehow...
<gchristensen>
yay!
tzemanovic has quit [Ping timeout: 260 seconds]
<jomik>
error: The option value `programs.fish.plugins.[definition 1-entry 1]' in `/home/jomik/.config/nixpkgs/home.nix' is not of type `package'.
<jomik>
I am getting this.
<hyper_ch2>
aszlig: I have no idea what you mean.. sorry....
<jomik>
the first entry in the array is the result of mkDerivation
<srhb>
jomik: That sounds like an accurate error.
<srhb>
jomik: Is it really though :)
<kyren>
okay, so setting the 'hostAddress' in a container works fine, as does 'extraFlags = [ "-U" ];', something else was wrong.. and it was oddly fixed by simply renaming the container... it might have been that the container name was too long.. which would be surprising and a bug, so I'm not exactly sure that's it
<srhb>
jomik: Neither (buildFishPlugin) nor ({ ... }) is a package.
<srhb>
jomik: They are two elements in the list right now
<jomik>
OH
<jomik>
Right
<hyper_ch2>
aszlig: I'm trying to rebuild flexget on latest master... not sure what that nix-store command does
<jomik>
space separated :D
<jomik>
Okay, now I am getting a different error..
<{^_^}>
[nixpkgs] @dotlambda opened pull request #52527 → home-assistant-cli: init at 0.3.0 → https://git.io/fpjnI
<jomik>
unpacking sources \n variable $src or $srcs should point to the source
<aszlig>
hyper_ch2: it shows you the tree of the derivation requisites, that way it's easier to check whether it might mix up python 3 and python 2 dependencies
<jomik>
and then the builder fails :D
<jomik>
Oh.
<jomik>
nvm
<jomik>
Ignore me
tzemanovic has joined #nixos
<hyper_ch2>
aszlig: I still fail to understand how that would help... how would it even know which flexget version in /nix/store to search?
<srhb>
jomik: mkDerivation doesn't inherit src does it?
<jomik>
Shh
<hyper_ch2>
and the one failing to build isn't even there
<hyper_ch2>
aszlig: and when I run that command, I get error: cannot auto-call a function that has an argument without a default value ('lib')
<aszlig>
hyper_ch2: well, it looked like it's using the wrong setuptools, but apparently this doesn't really be issue here, so never mind
<aszlig>
hyper_ch2: that command was supposed to be called from the nixpkgs root
<hyper_ch2>
aszlig: ok, I did now add a find . -iname "*whl" as preInstall phase and it only returned: ./dist/FlexGet-2.17.21.dev0-py27-none-any.whl for some reason it still only wants to build as 2.7 it seems
<hyper_ch2>
I don't understand python or python packaging :(
<{^_^}>
[nixpkgs] @c0bw3b merged pull request #52522 → nomachine-client: Fix audio support and update 6.3.6_1 -> 6.4.6_1 → https://git.io/fpjq0
<aszlig>
[bdist_wheel]
<aszlig>
python-tag = py27
<aszlig>
hyper_ch2: ^
<aszlig>
hyper_ch2: so maybe then prevent it from creating a wheel altogether
<hyper_ch2>
aszlig: well, I tried to remove the whl file and then it complained about not being able to build anything.... where did you find that bdist_wheel?
linuxdaemon has quit [Quit: RIP.]
<jomik>
Hey guys - how do I append to a sessionVariable in home.nix? :D
jD91mZM2 has joined #nixos
<aszlig>
hyper_ch2: try the following in postPatch: sed -i -e '/^python-tag/s/py27/py36/' setup.cfg
<hyper_ch2>
but not sure if deluge support was really built in. It only worked after I added also python27
<hyper_ch2>
so I guess it did add that
linkrage has quit [Quit: Leaving]
imdoor has joined #nixos
<hyper_ch2>
aszlig: I tried now to ++ lib.optional delugeSupport deluge python27; --> I was hoping python27 will then only be included when delugeSupport option is set to true but that gave error
ekleog has quit [Quit: back soon]
ekleog has joined #nixos
<ToxicFrog>
How do I escape ${...} in a multiline string? I thought it was $${...}, but that results in "$${...}" in the output, not "${...}".
<ToxicFrog>
And putting "${...}" in results in just the "...".
<clever>
,escape''
<{^_^}>
'' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
<ToxicFrog>
Sweet, thanks.
<ToxicFrog>
I need so many layers of escaping on this, it goes through Nix compilation -> Munin configuration file parsing -> Perl word splitting -> "sh -c" command line parsing
<sphalerite>
So I'm trying to get some vagrant machines running :( and I'm having some issues with the nfs mounting stuff. I've enabled the server using services.nfs.server.enable = true; and opened the port to the virtualbox interface, but am getting "access denied by server" when it tries to mount the shared folder inside the VM. Any ideas?
<sphalerite>
additionally, nfsd won't let me strace it to see which config files might be involved.
sbdchd has quit [Ping timeout: 268 seconds]
arjen-jonathan has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixpkgs] @dotlambda pushed to master « python.pkgs.cherrypy: disable on python2 »: https://git.io/fpj0R
<simpson>
I'm wondering what the criteria are. It's an interesting question but maybe not answerable.
<lokado>
compiled packages, I mean those build from source file
sbdchd has joined #nixos
<lokado>
instead of manipulating a downloaded binary
<gchristensen>
lokado: why do you ask?
<gchristensen>
there is a font package which is made fixed output because its output produced is massive, but there is a build process known to be very stable
Tucky has quit [Remote host closed the connection]
sbdchd_ has joined #nixos
<slabity>
Let me guess, Nerdfonts? That always takes forever to download
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to staging: https://git.io/fpjVt
ubert has quit [Quit: Leaving]
fusion809 has quit [Remote host closed the connection]
fusion809 has joined #nixos
w-spc-gir has joined #nixos
pie__ has joined #nixos
<jabranham>
is anyone using the first method in ,,declarative and has it setup to get info manuals working?
<jabranham>
,declarative
<{^_^}>
There are multiple ways of managing declarative profiles. 1) Attrset, compatible with imperative use of nix-env https://git.io/fAQHW ; 2) buildEnv, providing more control over the paths that are linked into the profile https://git.io/fp0aU ; 3) home-manager, providing nixos-like config for your ~ https://github.com/rycee/home-manager
pie___ has quit [Remote host closed the connection]
rawreraw has joined #nixos
slack1256 has joined #nixos
Ariakenom has joined #nixos
jonaswouters has quit [Quit: Connection closed for inactivity]
camsbury has quit [Remote host closed the connection]
<uniporn>
hi, anyone having sbcl and quicklisp installed with (ql:quickload "drakma") not failing to find libssl.so[.*]?
<uniporn>
I'd be interested in the diff to my config since I am having this issue.
asymmetric has quit [Ping timeout: 250 seconds]
camsbury has quit [Ping timeout: 246 seconds]
slack1256 has quit [Remote host closed the connection]
slack1256 has joined #nixos
ambro718 has joined #nixos
tzemanovic has joined #nixos
rawreraw has quit [Read error: Connection reset by peer]
slack1256 has quit [Remote host closed the connection]
tzemanov_ has quit [Ping timeout: 246 seconds]
drakonis_ has quit [Ping timeout: 252 seconds]
markus1189 has joined #nixos
jD91mZM2 has quit [Quit: WeeChat 2.2]
pietranera has quit [Quit: Leaving.]
<dmj`>
I get segfaults when nix-build'ing haskell code on ubuntu that has template haskell. But it works fine on nixos, anybody know why? The error looks like: /nix/store/9pifap75pkb9ifmdqh0irn8wgc3q38s6-stdenv-linux/setup: line 1298: 18088 Segmentation fault (core dumped)
<slabity>
If I read in a file with `builtins.readFile`, how can I have it evaluated like a Nix string?
<slabity>
So that variables like ${...} get evaluated
<gchristensen>
you can't
cyounkins has joined #nixos
<Synthetica>
Why not `import` it?
<dmj`>
gchristensen: have you ever seen something like /nix/store/9pifap75pkb9ifmdqh0irn8wgc3q38s6-stdenv-linux/setup: line 1298: 18088 Segmentation fault (core dumped)
<dmj`>
12:52:25 PM
<gchristensen>
yikes, I have but I don't remember under what situation. maybe check dmesg and coredumpctl
camsbury has quit [Quit: Leaving...]
fendor has quit [Ping timeout: 246 seconds]
asymmetric has joined #nixos
<marsam>
robstr: you probably want to use buildGoPackage; you can create a package request, I think I can package it later
drakonis has quit [Ping timeout: 252 seconds]
sigmundv_ has quit [Ping timeout: 244 seconds]
<slabity>
gchristensen: What if I don't use readFile? Is there some other way of loading a file as a string and evaluating it as one so that the variables expand?
<jomik>
Hey guys - I have written a nix expression to manage fish plugins for home-manager. Each of these plugins should be able to "depend" on having a package installed. Like the fasd fish plugin needs fasd installed. How would I pass this extra information along?
<jomik>
I use pkgs.buildEnv to make it a single derivation.
<robstr>
marsam: thank you, how would I create this request ?
<dmj`>
gchristensen: it only happens on ubuntu, not nixos, same hash, same code. Pinned nixpkgs
marsam has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @samueldr opened pull request #52534 → [WIP] nixos/release-combined: adds aarch64-linux as supported → https://git.io/fpjPt
<dmj`>
gchristensen: on ubuntu calling dmesg shows a segfault in a c library
<dmj`>
[ 6527.109039] ghc[19926]: segfault at 7ffef04d1000 ip 00007ffef31a61b0 sp 00007fffffff7d98 error 6 in libopenblasp-r0.3.3.so[7ffef2f2c000+1b2f000]
<gchristensen>
ah there you go, libopenblas
<dmj`>
gchristensen: some dep somwhere is using it then... it doesn't make sense that it's segfaulting on ubuntu but not nixos. This is also happening at template haskell time
lokado has quit [Quit: Connection closed for inactivity]
cyounkins has quit [Remote host closed the connection]
robstr has quit [Ping timeout: 256 seconds]
cyounkins has joined #nixos
Brejic has joined #nixos
acarrico has quit [Ping timeout: 246 seconds]
rfold has joined #nixos
cyounkins has quit [Ping timeout: 250 seconds]
<infinisil>
A disadvantage of having your whole system reproducible is that you don't get automatic updates
<infinisil>
When something is broken I can be sure that it'll be broken tomorrow unless I do something :)
<shapr>
sounds like a good point?
<ldlework>
infinisil: it also means that if something is working, it wont be broken tomorrow unless you do something :)
<jomik>
Guys, if I have a list of paths in an environment variable, how do I add to it, in home-manager?
cyounkins has joined #nixos
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
acarrico has joined #nixos
cyounkins has quit [Ping timeout: 246 seconds]
betaboon has quit [Quit: WeeChat 2.2]
sbdchd has joined #nixos
cyounkins has joined #nixos
<jomik>
,tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<jomik>
For some reason, when using a sha256 that is invalid for the downloaded, but valid for something else in the store, it will just grab that something else's files? O.o
<jomik>
I changed the revision, still had the old in store, didn't update the sha256, because I just wanted to get it when it failed xD
sbdchd has quit [Ping timeout: 272 seconds]
ntd has joined #nixos
imdoor is now known as rihardsk
siers has joined #nixos
drakonis has joined #nixos
<LnL>
yeah, if the name of the store path matches
alex`` has joined #nixos
emmanuel_erc has joined #nixos
<emmanuel_erc>
Hello there. I'm installing the nix package manager on Fedora. Everytime I try to install it via the command `curl https://nixos.org/nix/install | sh`, Get the following message (https://pastebin.com/Fg9TQFTv). Could I just change the permissions of /nix/store and just move on?
<{^_^}>
[nixpkgs] @dtzWill opened pull request #52541 → iasl: 20180313 -> 20181213; patch xen to work with new acpica-tools → https://git.io/fpjSc
hyper_ch has joined #nixos
sbdchd has joined #nixos
orivej has joined #nixos
immae has quit [Quit: WeeChat 2.3]
Guanin has joined #nixos
immae has joined #nixos
w-spc-gir has quit [Ping timeout: 244 seconds]
<{^_^}>
[nixos-org-configurations] @zimbatm pushed to zimbatm/route53-zone « import the other records, sort alphabetically »: https://git.io/fpjS9
<imdoor>
hi, how should i go about forcing one of my package's dependencies add itself to NIX_CFLAGS_COMPILE NIX_LDFLAGS? the dependency in question is ghc
<imdoor>
my setup is:
<imdoor>
1) project1 (a haskell project) builds a haskell FFI library;
<imdoor>
2) project2 (a non-haskell project) depends on project2 (because it needs the FFI library) and on ghc (because ghc contains some header files that are included by the FFI library).
<{^_^}>
[nixos-org-configurations] @zimbatm pushed 3 commits to zimbatm/route53-zone: https://git.io/fpjSp
<imdoor>
the problem is that project2 fails to build because the cc compiler doesn't see ghc's include and lib dirs
iddt has joined #nixos
<imdoor>
which i guess is because the dirs aren't added to NIX_CFLAGS_COMPILE and NIX_LDFLAGS env variables
emmanuel_erc has left #nixos ["ERC (IRC client for Emacs 26.1)"]
<imdoor>
which might be because the ghc's derivation's output folder doesn't contain stuff directly under directories `lib` and `include` (`include` doesn't even exist, it's somewhere down below `lib`). is this what's happening?
dbmikus has joined #nixos
<imdoor>
i guess i could try wrapping ghc and copying these directories so they're right under $out. but i've already spent quite a bit of time on this and i'd appreciate if somebody commented on whether it's likely that this is how it works
<iddt>
if i set networking.networkmanager.enable = true, then shouldn't the NetworkManager process be running after i do a nixos-rebuild test?
dbmikus_ has joined #nixos
dbmikus has quit [Ping timeout: 268 seconds]
<jabranham>
iddt: I think it's called network-manager.service
<iddt>
jabranham, you mean that's the name of the process?
<iddt>
jabranham, because i don't see it showing up
agander has joined #nixos
<jabranham>
iddt: I don't remember (and am not on a computer with networkmanager), but you can check with systemctl status network-manager
cyounkins has quit [Remote host closed the connection]
<iddt>
jabranham, so if systemctl status network-manager says "Active: inactive (dead)", does that mean it tried to start and failed?
cyounkins has joined #nixos
cyounkins has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixpkgs] @bhipple opened pull request #52543 → mkl: include Intel's libiomp.so in the MKL RPM unpack → https://git.io/fpjHo
mabel has joined #nixos
<jomik>
God, my bash scripting is terrible :D
<iddt>
jomik, i'm unpleasantly awesome at it if you want help
<jomik>
If you have an idea to make it nicer (1 pretty loop) then I am all ears :D
<jomik>
But I am going to take a shower - may drop from here since computer likes to sleep when I am not around.
<iddt>
jomik, that'll work fine as long as there are no spaces in the directory or filenames
<jomik>
Great :D
alex`` has quit [Read error: Connection reset by peer]
<iddt>
jomik, will write you up a cleaner one. can i push to that git repo?
aleph- has joined #nixos
w-spc-gir has joined #nixos
alex`` has joined #nixos
dbmikus_ has quit [Read error: Connection reset by peer]
dbmikus_ has joined #nixos
aleph- has quit [Ping timeout: 250 seconds]
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<{^_^}>
[nixpkgs] @FRidh pushed commit from @bhipple to master « mkl: include Intel's libiomp.so in the MKL RPM unpack »: https://git.io/fpjdT
<{^_^}>
[nixpkgs] @FRidh merged pull request #52543 → mkl: include Intel's libiomp.so in the MKL RPM unpack → https://git.io/fpjHo
ambro718 has quit [Quit: Konversation terminated!]
hedning has quit [Quit: hedning]
tzemanov_ has joined #nixos
tzemanovic has quit [Ping timeout: 252 seconds]
asymmetric_ has joined #nixos
tzemanovic has joined #nixos
Aerobit has joined #nixos
tzemanov_ has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fpjdS
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #52540 → valgrind: fix build on darwin → https://git.io/fpjSt
dbmikus_ has quit [Ping timeout: 244 seconds]
asymmetric has quit [Ping timeout: 240 seconds]
tzemanovic has quit [Ping timeout: 246 seconds]
dbmikus has joined #nixos
alex`` has quit [Read error: Connection reset by peer]
agander has quit [Ping timeout: 250 seconds]
tzemanovic has joined #nixos
<Aerobit>
hey all! i'm trying to write a derivation for a python package with buildPythonApplication. It outputs a shell script to $out/bin, with a bash shebang and this command: `python src/extract.py "$@"` which seems to just pass the command-line arguments to that python file. However, when I run it, I get an ImportError that none of the modules i specified in `pythonPath` are defined. I imagine that's because it's
<Aerobit>
running my system `python`. How can I point to a python exectable that knows the modules I passed into `pythonPath`? Do I need to use `makeWrapper` to set the path and pythonpath appropriately somehow?
alex`` has joined #nixos
drakonis_ has quit [Ping timeout: 252 seconds]
drakonis_ has joined #nixos
rfold has quit [Quit: leaving]
kvda has joined #nixos
<mpickering>
makeWrapper sounds like it might be right
ntd has quit [Quit: ntd]
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<Aerobit>
that provides the `git` binary to your package, right?
<Aerobit>
i want to provide `python` with all the things i included in pythonPath
hyper_ch has joined #nixos
goibhniu has quit [Ping timeout: 250 seconds]
<mpickering>
I'm a bit confused what is going on. The python application generates a script which you then want to run?
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mpickering>
How are you using `makeWrapper`?
johanot has quit [Quit: WeeChat 2.2]
hyper_ch has quit [Client Quit]
<avn>
Aerobit: buildPythonApplication usually correct wrap all python scripts in $out/bin/ (at least if they are correct scripts generated or installed via setup.py)
vk3wtf has quit [Ping timeout: 250 seconds]
hyper_ch has joined #nixos
kvda has joined #nixos
Meptllc has joined #nixos
<Aerobit>
avn: the program i'm packaging isn't nice and conformant - it doesn't use setuptools, rather it just runs a script in the "src" folder with a bundled shell script.
imdoor has quit [Quit: imdoor]
<Aerobit>
at this point i'm just going to fork it and fix it T_T
Aerobit has quit [Quit: WeeChat 2.2]
<avn>
Aerobit: then you should replace `python` in script with ${python}/bin/python, using python from proper package. And then add makeWrapper call, to set $PYTHONPATH.
<avn>
Ariakenom: although add setup.py to sources can be easier path ;)
<avn>
s/Ariakenom/Aerobit/ oops ;)
<Meptllc>
Is there a way to reevaluate antiquotations in a string? e.g. x = "\${pkgs.bash}"; somefunc x => "/nix/store/hash-bash/"
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « python37Packages.elpy: 1.26.0 -> 1.27.0 »: https://git.io/fpjjX
<rardiol>
I'm trying to update nix, it tells me to uninstall first, I ran the 'rm -rf', but the script stills fails because nix is installed. My guess is that the problem is that nix is still installed to /usr/local for some reason I forgot. What is the best way to clean nix from /usr/local?
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]