<colemickens>
welp, it's possible that fix only hit nixos-unstable in my upgrade an hour ago. I'm going to keep fingers crossed that that fixed it
<colemickens>
thanks for the link thefloweringash
jluttine has joined #nixos
<alexarice[m]>
I'll check if mine is fixed
<gchristensen>
,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.
o1lo01ol1o has quit [Remote host closed the connection]
sinuxi[m] has joined #nixos
jluttine has quit [Ping timeout: 248 seconds]
kiloreux has joined #nixos
<kiloreux>
I am trying to install a python dependency through nix. But getting the following error message "Download error on https://pypi.org/simple/pbr/: [Errno -2] Name or service not known -- Some packages may not be found!"
<kiloreux>
The link is accessible just fine for me
<kiloreux>
I used pypinix to generate the requirements.nix ifle
<exarkun>
monokrome: There's autorandr but I find it doesn't work very reliably (like right now it is mirroring my two displays and I have gotten tired of trying to force it to do the right thing so I'm just ignoring it ...)
mkoenig has quit [Ping timeout: 246 seconds]
<monokrome>
gonna try it
<monokrome>
thanks :)
_ris has quit [Ping timeout: 246 seconds]
<nefix>
Is it possible to map a list and get the item and the position within the list?
<nefix>
exarkun: Right now I have this: `(lists.zipLists (start: end: if start == end then [] else lists.range start (end - 1)) 0 lists.count node.volumes) node.volumes)`
<nefix>
And it's throwing the same error than before
<exarkun>
nefix: pull the function definition out with a let, things will probably get clearer
<nefix>
(node.volumes is the list)
<exarkun>
nefix: I think you're passing the function as the first argument to zipLists now
<exarkun>
also I'm not sure what "lists" is, I thought it was a typo for "lib" before but it seems less likely now
dftxbs3e has joined #nixos
dftxbs3e has quit [Client Quit]
<nefix>
`lib.lists`
Ralith_ has quit [Remote host closed the connection]
<nefix>
exarkun: `error: value is the partially applied built-in function 'foldl'' while an integer was expected`
<nefix>
And the line is `range = start: end: if start == end then [] else lists.range start (end - 1);`
cx405 has quit [Quit: Goodbye cruel world!]
<exarkun>
nefix: You need more parens - `lists.count` is the 2nd argument to the inline function - value for the end parameter
<exarkun>
try (lists.count node.volumes)
<exarkun>
so that the result of that evaluation is the value for end, instead
<tA->
sorta noobish question, but with the src = fetchFromGithub stuff, can I do something like, `src = (fetchFromGithub { blah blah })/path/to/subfolder` ?
aw has joined #nixos
spacefrogg has joined #nixos
<tA->
basically the thing Im trying to fetch is in a subfolder of a larger git repo
ajs124 has quit [Quit: Gateway shutdown]
rotaerk has quit [Remote host closed the connection]
<sethetter>
I have virtualbox set up on my nixos machine, via the wiki entry -- is there any way to get version 6.x installed? Looks like it's 5.2.2 in nixpkgs 19.03
alp has quit [Ping timeout: 252 seconds]
<samueldr>
it will stay 5.2.2 since it was the version in nixpkgs when 19.03 was cut. now, for using virtualbox from unstable on your system, not sure if it's something that can be as simple as using overlays; I think there were major changes with 6.x
* samueldr
digs up info
<day|flip>
git version is still on 5
<day|flip>
5.2.28
<day|flip>
last updated in may 1
<samueldr>
#60943 is the update to 6.x for master/nixos-unstable
<samueldr>
sethetter: might be more interested than me :)
<samueldr>
(they were the one asking at first, I was lazily replying)
<sethetter>
yes, this is very helpful, thank you both!
<day|flip>
sethetter: just besure you change /nixos-unstable.tar.gz to /nixpkgs-unstable.tar.gz
<samueldr>
day|flip: why are you recommending this?
<samueldr>
one should never use nixpkgs-unstable on a nixos system except if they really know they should
<samueldr>
and ayways, in the last few months nixos-unstable was often ahead of nixpkgs-unstable
<samueldr>
nixos-unstable will have gone through the tested jobset, with some integration tests stopping a channel advance
<day|flip>
really? i tried using unstable for having the latest package get install to mpv. but it keep falling behind. (i used mpv + youtube-dl a lot)
<samueldr>
yeah, nixpkgs-unstable has been kept back lately by darwin builds falling behind
<samueldr>
though I think the slack was chewed through lately
ilikeheaps has quit [Ping timeout: 245 seconds]
<day|flip>
so what are darwin build?
<day|flip>
windows?
ilikeheaps has joined #nixos
<samueldr>
darwin is the name of the kernel for macOS
<day|flip>
ahhh
<day|flip>
i did not know that
<samueldr>
issues in hardware procurement / licensing makes builders harder to come by, AFAIUI
<day|flip>
i seen nix being using on mac
<gchristensen>
nix works on macos
<samueldr>
and it works great, AFAIK :)
<gchristensen>
it is much more difficult to get builders, as macos' license says you can only run macOS on macOS hardware
<day|flip>
so what kind of package will one used for mac? for grabing from nix?
<day|flip>
this kind of thing my get me to try to own a mac a less once
<day|flip>
s/thing my/thing might
<gchristensen>
pretty much any CLI utility could be got from Nix. some GUI applications do work, but Homebrew is really good at those
<day|flip>
i know mac or the last time i seen a macbook had xorg as a backend
<day|flip>
as i seen lib for it
<day|flip>
long time ago
<gchristensen>
yeah it does, but tsill
<gchristensen>
Homebrew is really good at GUI applications, and it isn't Nixpkgs' focus
<day|flip>
so something like mpd can be grab from nix and work on mac?
<day|flip>
or that need homebrew as a work around?
domogled has joined #nixos
<gchristensen>
yep, that shoudl work
dbmikus has quit [Quit: WeeChat 1.9.1]
dycan has quit [Ping timeout: 246 seconds]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
dycan has joined #nixos
dbmikus has joined #nixos
dbmikus has quit [Client Quit]
dbmikus has joined #nixos
dbmikus has quit [Client Quit]
dbmikus has joined #nixos
<dycan>
hi all. I shutdown abnormally my nixos in virtualbox. Now it flashes between root login terminal and some system information when boot. How could I make it normal again?
dbmikus has quit [Client Quit]
dbmikus has joined #nixos
<gchristensen>
is anyone familiar with using l2tp and ipsec VPNs on NixOS?
<dycan>
I can get into nomodeset mode by live-cd installer. I don't know what's next.
najibpuchong has quit [Remote host closed the connection]
najibpuchong has joined #nixos
dbmikus has quit [Client Quit]
dbmikus has joined #nixos
<sethetter>
Welp, setting `virtualisation.virtualbox.host.package = pkgs.unstable.virtualbox;` didn't quite do the trick, had a build failure applying virtualbox patches it looks like.
<teto>
gchristensen: I use the netmworkmanager l2tp plugin to get l2tp vpn
<teto>
it often breaks but it does work sometimes
<gchristensen>
teto: can you help me try and set it up? I'm having a hard time, and need it for work tomorrow :/
<teto>
(patching nm-l2tp at 2am to be able to submit some professionnal document by the deadline counts as one of my favorite holiday memory)
<gchristensen>
godddd
<gchristensen>
I don't even see l2tp support in my nmtui
<teto>
gchristensen: if you are using networkmanager, then evrything can be done from nm-applet
<dycan>
hi all. I use nixops to deploy a yesod project to google comute engine. But I have local packages so I got "called without required argument package_name". Is there any way to deploy just executables?
<{^_^}>
[nixpkgs] @FRidh pushed commit from @dtzWill to master « krita: 4.2.1 -> 4.2.2 »: https://git.io/fjPqL
v88m has quit [Read error: Connection reset by peer]
nvd is now known as Taneb
deech has joined #nixos
Jonathan19 has quit [Remote host closed the connection]
___laika has joined #nixos
v88m has joined #nixos
<colemickens>
Does anyone have any tips on how I can wrap `latest.firefox` from nixpkgs-mozilla so that I can have it installed side-by-side with `firefox` without having the binary names clash?
timon37 has joined #nixos
<clever>
colemickens: simplest would be to use runCommand
jackdk has quit [Quit: Connection closed for inactivity]
domenkozar[m] has joined #nixos
domenkozar[m] has quit [Changing host]
mtjmullen has quit [Ping timeout: 245 seconds]
_e has quit [Ping timeout: 276 seconds]
mtjmullen has joined #nixos
_e has joined #nixos
hmpffff has quit [Quit: nchrrrr…]
bsima1 has joined #nixos
hmpffff has joined #nixos
bsima has quit [Ping timeout: 272 seconds]
awygle has quit [Ping timeout: 276 seconds]
awygle has joined #nixos
veske has joined #nixos
MmeQuignon has joined #nixos
dansho has quit [Quit: Leaving]
clacke_movim has left #nixos [#nixos]
clacke_movim has joined #nixos
clacke_movim has left #nixos [#nixos]
<srhb>
Need some psychic debugging. I have a NIX_PATH-entry called nixpkgs-overlays which refers to a directory containing a number of nix files that all include overlays. This used to work for both nixos-rebuild and plain nix-build, but suddenly I'm seeing some of my nixos overlays not being picked up?
<Taneb>
Are they still being picked up some times?
<ivan>
strace? bisect your overlays or nix?
<srhb>
Taneb: I think so...
<srhb>
ivan: Hm, yes..
<srhb>
I feel like I've tried this before and just can't remember what the cause was :-P
clacke_movim has joined #nixos
<ajs124>
Do you have a default.nix in that folder?
atlas_ has quit [Ping timeout: 258 seconds]
bsima has joined #nixos
glowpelt has quit [Ping timeout: 250 seconds]
mexisme has joined #nixos
<srhb>
I do not.
ajirx has quit [Remote host closed the connection]
bsima1 has quit [Ping timeout: 272 seconds]
<teto>
domenkozar[m]: keep it up, looks really great, already using cachix (mostly for fun) but Hercule sounds like something I would install as part of the workflow
<infinisil>
Oh, but wouldn't multiple assignments override each other?
<infinisil>
Or fail to merge?
<Miyu-chan>
Most likely fail to merge.
___laika has joined #nixos
<Miyu-chan>
Not sure how nested attrsets work though.
<infinisil>
Seems like passthru should have the types.attrsOf types.unspecified type
<infinisil>
Then you should be able to assign different attrs of it
<Miyu-chan>
Yeah. I'm thinking more of passthru.x.y = ...; passthru.x.z = ...;
<Miyu-chan>
(In different modules)
<zmlww>
I have a named generation I'd like to delete. Is it safe (and sufficient) to simply delete the link in /nix/var/nix/profiles/system-profiles and run nix-collect-garbage?
<clever>
zmlww: probably
<zmlww>
Is there a better way?
<{^_^}>
[nixpkgs] @jtobin opened pull request #64565 → kjv: init at 1.0.0 → https://git.io/fjPOI
<clever>
zmlww: dont think so
<zmlww>
Gotcha. Thanks.
<infinisil>
zmlww: Well there is `nix-env -p /nix/var/nix/profiles/system --delete-generations {452..460}`
joepie91 is now known as not-joepie91
<infinisil>
clever: ^
<zmlww>
infinisil: I tried that, but it fails because there's only a single generation and so it considers it "current".
<clever>
infinisil: but that wont get rid of the last generation and whole profile
<clever>
yep
<infinisil>
Ah, I didn't realize it's a current one
<{^_^}>
[nixpkgs] @proger opened pull request #64566 → node-packages-v10: add sass cli program → https://git.io/fjPOm
<Miyu-chan>
`with types; listOf path` or `types.listOf types.path`?
<nefix>
How can you create a loop device from the NixOS configuration? I want to have a disk of 1GB stored in `/disk.img`, that automatically gets "mounted to `/dev/loop100`
<__monty__>
I'm trying to setup home-manager as a nix-darwin module. Setting `home-manager.users.toonn = import "$HOME/.config/nixpkgs/home.nix";` gives a warning about the string not representing an absolute path. How do I specify paths relative to $HOME in configuration.nix?
npmccallum has joined #nixos
___laika has joined #nixos
<manveru>
__monty__: well, you could go with builtins.getEnv, but not sure that's the best approach
<manveru>
home-manager would have config.home.homeDirectory but not sure about a nix-darwin equivalent
<{^_^}>
[nixpkgs] @doronbehar opened pull request #64570 → qtutilities: init at 5.13.0 → https://git.io/fjPst
<manveru>
i'm not sure what other place you're talking about
___laika has quit [Ping timeout: 244 seconds]
<manveru>
in your case even `../.config/nixpkgs/home.nix` should work, given that you do this from the ~/.nixpkgs/darwin-configuration.nix
<clever>
note, that ~ works as you would expect
<clever>
> ~/foo
<{^_^}>
/var/lib/nixbot/foo
<manveru>
damn, TIL
<eraserhd>
Hey, can I solicit an opinion? I'm creating modules for work, and this does things like set $KUBECONFIG and $VAULT_CACERT. At first, I set environment.variables.VAULT_CACERT, but this seemed to have bootstrap issues (or at least I worried about it).
<eraserhd>
So I made wrappers for vault that set VAULT_CACERT if it wasn't already set and so forth.
<eraserhd>
Is this a good idea? Anybody have experience with this situation?
<slabity>
eraserhd: That's pretty much what I do for my work software
<eraserhd>
slabity: wrappers?
<slabity>
Yea, I create a derivation that wraps the programs up, initialize environment variables and cli opts that I need
<eraserhd>
cool, it's not completely crazy then :)
<manveru>
eraserhd: is that for a systemd service?
<slabity>
I throw that derivation into my local overlay and can install the software like any other
<slabity>
That's actually what a lot of packages do. For example there is gccWrapper
<eraserhd>
manveru: this is for dev environments, mostly, so it's actually nix-darwin
<manveru>
there's shellHook for that, which might be simpler in some cases
<manveru>
well, unless it's nix-darwin modules and not nix-shell :)
<slabity>
If it's for a dev environment that might be better to just use a shell
<eraserhd>
I use the nix-shell for individual project dependencies, but there are dependencies needed for dev for any project here, and that's what I'm making nix modules for.
<eraserhd>
I don't want to copy boiler plate to download the vault certificate and set VAULT_CACERT into all projects.
iyzsong has quit [Read error: Connection reset by peer]
<eraserhd>
The fundamental problem is that our ops people write machine configuration scripts in markdown.
<eraserhd>
:D
<mkaito>
... wtf
<clever>
lol
<slabity>
You could always make the certificate a derivation itself that your work derivations take as input
<slabity>
Oh
<slabity>
Well that's better than mine. We literally made our own shell.
<slabity>
Except it's volatile and doesn't tell you errors half the time
Ridout has quit [Quit: Lost terminal]
<eraserhd>
o_O
<mkaito>
that sounds like fun
<mkaito>
and people look at me weird for liking bash
<eraserhd>
hmm, the certificate and wrappers could be in an overlay, and then it's less nix-darwin specific, as long as I can figure out an easy way for everyone to install the overlay.
wfranzini has quit [Read error: Connection reset by peer]
<slabity>
Make the overlay a derivation?
<slabity>
:P
<eraserhd>
you can do that?
<slabity>
I wonder if people actually do that
iyzsong has joined #nixos
<slabity>
No idea
wfranzini has joined #nixos
phreedom_ has joined #nixos
phreedom has quit [Ping timeout: 260 seconds]
ij is now known as siers
<__monty__>
clever: ~ doesn't work for me.
dermetfan has joined #nixos
<__monty__>
clever: ${builtins.getEnv "HOME"} is the only way I've gotten it to work so far.
<clever>
__monty__: can you paste an example of what you tried with ~ ?
dermetfan has quit [Client Quit]
<nefix>
Is pacemaker compatible with NixOS?
<__monty__>
clever: This is in nix-darwin's configuration.nix: `home-manager.users.toonn = import "~/.config/nixpkgs/home.nix";`
<clever>
__monty__: dont quote paths
<LnL>
remove the quotes
<ar>
,locate bin gcloud
<{^_^}>
Found in packages: google-cloud-sdk-gce, python27Packages.google-cloud-sdk, python37Packages.google-cloud-sdk, python37Packages.google-cloud-sdk-gce
<{^_^}>
[nixpkgs] @MrMebelMan opened pull request #64576 → pythonPackages.django-csp-nonce: init at 3.5 → https://git.io/fjPG6
<__monty__>
Ok, cool.
<clacke_movim>
unless it was unclear earlier, overlays can definitely come from derivations
<clacke_movim>
I pull in my NixOS modules from a repo on gitlab via fixed-output derivations
<clever>
clacke_movim: thats just normal import from derivation, IFD
<infinisil>
,IFD
<{^_^}>
import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2. This is sometimes problematic because it requires evaluating some, building some, and then evaluating the build result.
<clacke_movim>
yeah
<slabity>
Oh neat
<slabity>
I'd definitely do that
<clacke_movim>
racket2nix buildRacket (tooting my own horn) runs a racket program to generate nix expressions, then builds racket packages from those
<clacke_movim>
You just `buildRacketPackage ./.` and that's it, now you built your racket program
<clacke_movim>
You can also generate and store the nix ahead of time, of course, so you aren't building the racket2nix program at evaluation time, which makes hydra logs annoying to read
<clacke_movim>
point is you *can* :-)
<clever>
clacke_movim: ive done pretty crazy things with builtins.exec too
<slabity>
alexarice: You will need to set up your initrd to do that.
<slabity>
Check out the `boot.initrd.*` options available
<alexarice[m]>
thanks everyone will take a look
<slabity>
Does anyone have NixOS working with bachefs? I'd like to try experimenting with it
selfsymmetric-mu has quit [Remote host closed the connection]
___laika has quit [Ping timeout: 248 seconds]
<{^_^}>
[nixpkgs] @MrMebelMan opened pull request #64579 → pythonPackages.django-logentry-admin: init at 1.0.4 → https://git.io/fjPnn
zacts_pi has joined #nixos
turbo_MaCk has quit [Ping timeout: 244 seconds]
___laika has joined #nixos
Soo_Slow has joined #nixos
___laika has quit [Ping timeout: 245 seconds]
noudle has joined #nixos
<nefix>
How am I supposed to copy files to /var/lib from the $out directory in the postinstall phase?
<clever>
nefix: why do they need to be in /var/lib/ ?
<immae>
nefix: you cannot. During a build nothing can end up outside of the nix store
<nefix>
That's what I thought. The directory /var/lib/drbd needs to be created, because DRBD uses it to store different things. How this can be archieved?
<immae>
nefix: if you use nixos, then you have activationScript which does this kind of tasks
<immae>
it can go in systemd preStart hooks too
<immae>
There are many examples in the nixos modules, you can inspire from it ;)
<nefix>
So, for example, copying the default configuration would also be done in the activationScript?
<immae>
It depends on the needs
<nefix>
What do you mean?
<immae>
Usually you can "build" the configuration and use it directly in the nix store by passing the right arguments to the program
<immae>
like program --config=/nix/store/abcd-my-config-file.conf
<immae>
but it really depends on your program here :)
<nefix>
Yeah, I don't think that's the case. And for the manpages?
<immae>
if you need to copy the config to /var/lib/drbd then yes you can do it via activationScripts
<{^_^}>
[nixpkgs] @mkaito opened pull request #64580 → docker.nix: Add options for named volumes and networks → https://git.io/fjPnr
<immae>
if your program has a /share/man, then (I think, not sure) you just need to add the programm to your system environment
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nefix>
I just need to create the /var/lib/drbd directory and copy some configurations to /etc/
jgt has quit [Ping timeout: 276 seconds]
<immae>
to write files to etc you can use environment.etc
<nefix>
Ok. So this activationScript is a module thing?
<immae>
oh about that clever I know we discussed it some long time ago, but now activationScript is written so that it can only brick the machine if you have a bash syntax error (which would be detected as soon as you run it the first time), otherwise "normal" errors will continue the script until the end
<tobiasBora>
I ran a nix-channel --update, and now I can't upgrade my system anymore, because it tries to compile some gimp plugin, and fails:
veske has quit [Quit: This computer has gone to sleep]
Thra11 has joined #nixos
ym555 has joined #nixos
<eraserhd>
You know your ops people don't use nix when you ask them to give you access to a thing in a cluster, and it results in a PR to the ops repo that changes 14 files.
<atlas_>
eraserhd: what exactly *is* a cluster? I haven't been able to find a simple answer
Okinan has quit [Quit: Konversation terminated!]
orivej has joined #nixos
<eraserhd>
in our context, a kubernetes cluster, which is a VM farm.
<{^_^}>
[nixpkgs] @joachifm pushed commit from SLNOS to release-19.03 « firefoxPackages.tor-browser: 8.5.2 -> 8.5.4 »: https://git.io/fjPCR
<atlas_>
what kind of applications do you need that for?
<lordcirth>
atlas_, "cluster" is a pretty vague term. Generally it refers to multiple machines that are being pooled together in some fashion.
<atlas_>
I'm still new to the idea of docker and kubernetes (I still don't get kubernetes, but I'll figure it out). What kind of projects would you use docker/kubernetes for?
<eraserhd>
atlas_: for a large org, it's useful to run kubernetes so that many teams can deploy their microservices, or monolithic services, or web front ends independently.
cfricke has quit [Quit: WeeChat 2.5]
<eraserhd>
ops then only needs to worry about how much CPU in aggregate they need, and how to get that.
<atlas_>
oh, I see
<atlas_>
like mini VPSes
<bsima>
atlas_: kubernetes will scale up/down based on demand too
<yorick>
is there a way I can remove something from environent.systemPackages?
<atlas_>
that's pretty neat!
<yorick>
I want to remove nixos-install :D
<yorick>
(well, wrap it)
o1lo01ol1o has quit [Remote host closed the connection]
<Henson>
with mkDerivation, how does one specify packages that are needed by a derivation at runtime?
ddellacosta has joined #nixos
ottidmes has joined #nixos
<ottidmes>
Anyone know what the status is of all those "substituteStream(): WARNING: pattern" messages during builds? I updated recently and they still are reported.
Shoubit has quit [Ping timeout: 244 seconds]
___laika has quit [Ping timeout: 258 seconds]
stepcut_ has joined #nixos
psyanticy has quit [Quit: Connection closed for inactivity]
<atlas_>
how do the notices work? Is that an IRC thing? I haven't seen it before
<yorick>
blackriversoftwa: nix-store --add-root
<atlas_>
It's obviously a bot relaying github activity, but it's not posting as a user/bot...
<yorick>
atlas_: /notice #nixos hi
<atlas_>
oh, ty :)
<yorick>
it's nick is {^_^}
<blackriversoftwa>
yorick: that only works if given as an option to a command, like --realise
<blackriversoftwa>
I tried it
<yorick>
blackriversoftwa: okay, so nix-store --realise /nix/store/your-thing --add-root
<blackriversoftwa>
but realise treats the path given as build instructions for a derivation (created by nix-instantiate) and tries to build it
<yorick>
blackriversoftwa: are you sure that it wouldn't work?
<yorick>
(it works for me)
<blackriversoftwa>
it does seem to, but I am confused as to why
clacke_movim has left #nixos [#nixos]
<blackriversoftwa>
but that will do, thanks for the help
<yorick>
blackriversoftwa: nix-store --realise makes sure a path exists or builds a derivation, apparently
<Henson>
if I'm building a derivation and want Nix to include certain packages in the requisities of the package, but don't necessary explicitly refer to paths within those packages in the build instructions, can I do that? I want socat and gnutar to be listed in the requisites of a script that depends on them.
bakakuna has quit [Ping timeout: 248 seconds]
MmeQuignon has joined #nixos
alp has quit [Ping timeout: 264 seconds]
<infinisil>
Henson: There's *always* going to be some way it has to refer to it, otherwise it wouldn't be a dependency
<infinisil>
Henson: In your case, the program will probably look for these packages in the PATH environment variable
stepcut has joined #nixos
___laika has joined #nixos
<infinisil>
Which means you probably want to wrap the executable with a PATH that has them available
stepcut_ has quit [Ping timeout: 248 seconds]
<Henson>
infinisil: ok, that sounds reasonable. thank you.
Czen has quit [Remote host closed the connection]
<infinisil>
Henson: Relevant for that are pkgs.makeWrapper and pkgs.lib.makeBinPath
<{^_^}>
[nixpkgs] @jonringer opened pull request #64604 → zpaq: fix version and pull from github → https://git.io/fjP8c
<Henson>
infinisil: ok. I'm building a Haskell program, and I think there's a way for me to do that.
<exarkun>
is there a `nixos-container login` solution that doesn't involve passwords
justanotheruser has quit [Ping timeout: 244 seconds]
<wildtrees>
I tried the one with -f '<nixpkgs>' and it failed :(
<wildtrees>
oh something about priorities
jgt has quit [Ping timeout: 252 seconds]
hamishmack has quit [Ping timeout: 245 seconds]
matt` has quit [Remote host closed the connection]
tmaekawa has quit [Quit: tmaekawa]
doyougnu has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<clever>
,nix-shell slabity
<clever>
,libraries slabity
<{^_^}>
slabity: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<clever>
same applies to gcc
<clever>
wildtrees: cc ^^
<exarkun>
How do you write a path with a space in it?
<slabity>
Escape it with a backslash '\ '
<clever>
exarkun: what path are you trying to write to?
<exarkun>
trying to read from a path, I meant "how do I write a path in my source file ..." :)
dansho has joined #nixos
<exarkun>
it's an openvpn configuration file I want to reference from a nixos container configuration
o1lo01ol1o has quit [Ping timeout: 245 seconds]
<exarkun>
I tried a backslash escape on the space and seemed to get a syntax error
<clever>
exarkun: can you pastebin your current nix code?
<exarkun>
yea .. maybe that is better? I am not sure.
logzet has joined #nixos
<clever>
so you could do config = "config ${../openvpn-configs + "/EU West.ovpn"}";
<clever>
either way, the ovpn will be copied into /nix/store and made world-readable
<clever>
you could also do config = "config ${toString (../openvpn-configs + "/EU West.ovpn")}";
<exarkun>
but if it is openvpn inside a nixos container ...? I guessed paths wouldn't resolve properly.
<clever>
yeah, that last one would fail in a container
<clever>
`config = "config ${../openvpn-configs + "/EU West.ovpn"}";` would copy into /nix/store, so the paths will still resolve correctly
Jackneill has joined #nixos
<exarkun>
Ah I guess I was uncertain about how /nix/store and containers interact, but I see containers have it, and I guess it couldn't easily work any other way ...
logzet has quit [Client Quit]
<exarkun>
thanks
<clever>
the container can see your entire /nix/store
mexisme has joined #nixos
<exarkun>
why would one prefer "config ${...}" vs just putting the config in the service? is it just about trying to keep the config contents secret?
<clever>
its still publicly visible with that method
<clever>
only toString keeps them secret
<clever>
but toString runs into path issues with the container
<{^_^}>
commercialhaskell/stack#4864 (by Kleidukos, 3 weeks ago, closed): "Cannot determine project root directory for Docker sandbox." error even when Docker support is disabled
<cizra>
Hello! How can I inject an environment variable to games launched via Steam? I think something unsets $LOCALE_ARCHIVE and so some programs can't find my en_US.UTF-8 locale, falling back to C.
<cizra>
Half-Life: Source is affected but still runs. Torchlight 2 fails to start because of missing locales.
<cizra>
Would setting environment.variables option be the right solution?
mexisme has quit [Ping timeout: 246 seconds]
stepcut has joined #nixos
stepcut_ has quit [Ping timeout: 245 seconds]
kreisys has quit [Quit: rcirc on GNU Emacs 26.2]
<infinisil>
Almost certainly not
ym555 has joined #nixos
<infinisil>
Scratch the "Almost" actually
jgt has quit [Ping timeout: 252 seconds]
Soo_Slow has quit [Remote host closed the connection]
<infinisil>
It might be the buildFHSUserEnv thing that clears it
<infinisil>
But really not sure
ym555_ has quit [Ping timeout: 258 seconds]
<infinisil>
cizra: If you can't get an answer, don't hesitate to file an issue in nixpkgs
bakakuna has quit [Ping timeout: 268 seconds]
<cizra>
infinisil: OK, thanks. I'll wait around, maybe somebody has a bright idea.
Yakulu has left #nixos ["Disconnected: Replaced by new connection"]
Yakulu has joined #nixos
lucasvo_2 has joined #nixos
Jackneill has quit [Remote host closed the connection]
<lucasvo_2>
I'm trying to install nixos on a latest generation macbook pro but I can't even get the keyboard to work in the stable installer. I've been looking for various different installation tutorials but couldn't find anyone mention this. I'm about to try again with unstable but are there any other tips?
lucasvo_3 has joined #nixos
<gchristensen>
hmmm their macbooks for a long while haven't had a standard keyboard... did they go ahead and do this for their pros, too?
<lucasvo_2>
gchristensen: I'm able to interact with the bootloader and select what installation mode I want but after that I have two issues: the screen is garbled unless I pick the `nomodeset` option and it does not respond to any input on my keyboard in the shell once it's started in `nomodeset`
lucasvo_3 has quit [Remote host closed the connection]
mexisme has joined #nixos
o1lo01ol1o has joined #nixos
stepcut has joined #nixos
___laika has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #62870 → nvidia-x11: Put absolute library paths into ICD config files. → https://git.io/fjzSl
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjP48
srid6390803 has quit [Ping timeout: 245 seconds]
matt` has joined #nixos
srid6390803 has joined #nixos
stepcut has quit [Ping timeout: 248 seconds]
<matt`>
hey all. anyone know how building octave files is done? i'm packaging a program that supports an octave interface and as part of octave setup invokes a setup script that among other things calls `mkoctfile'. I've tried to compile this directly in the derivation (so that it's not called on the read-only nix store when the user invokes it) by invoking octave in a postfixup phase, but octave is acting a bit strange here. For instance, it
<matt`>
doesn't recognize the isOctave() function
stepcut has joined #nixos
Yakulu has left #nixos ["Error from remote client"]
<jcrd>
hi, is there a config option i must enable so that suspend-then-hibernate.target exists?
m0rphism has quit [Ping timeout: 244 seconds]
Myhlamaeus has quit [Read error: Connection reset by peer]
___laika has quit [Ping timeout: 248 seconds]
orivej has quit [Ping timeout: 272 seconds]
___laika has joined #nixos
aniketd[m] has joined #nixos
Myhlamaeus has joined #nixos
Fare has quit [Ping timeout: 272 seconds]
hamishmack has joined #nixos
<{^_^}>
[nixpkgs] @gloaming opened pull request #64607 → Fix build for gimp-with-plugins against exiv2 0.27.1 → https://git.io/fjP4S
mexisme has quit [Ping timeout: 258 seconds]
romildo has joined #nixos
matt` has quit [Remote host closed the connection]
___laika has quit [Ping timeout: 245 seconds]
___laika has joined #nixos
<selfsymmetric-mu>
Hi! I can't install Pymacs for Python 3 using what's already present in `pythonModules`, so I want to install a python module directly from this fork: https://github.com/bendikro/Pymacs
<selfsymmetric-mu>
How can I do that?
<selfsymmetric-mu>
Is it 9.14.1.2.1 in the nixpkgs manual?:
<selfsymmetric-mu>
I don't see any way to link to a section.
<romildo>
I have some desktop managers enabled on configuration.nix on my NixOS unstable, including gnome3 and pantheon. But nixos-rebuild fails with the error:
<romildo>
error: The unique option `networking.networkmanager.basePackages.modemmanager' is defined multiple times, in:
<romildo>
- /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/services/x11/desktop-managers/gnome3.nix. How fix that?
<selfsymmetric-mu>
So maybe I'll just write a shell hook and call it a day.
Thra11 has quit [Ping timeout: 246 seconds]
mexisme has joined #nixos
abrar has joined #nixos
selfsymmetric-mu has quit [Remote host closed the connection]
selfsymmetric-mu has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
fusion809 has joined #nixos
Drakonis has joined #nixos
ottidmes has quit [Ping timeout: 258 seconds]
Fare has joined #nixos
ottidmes has joined #nixos
o1lo01ol1o has quit [Ping timeout: 272 seconds]
thc202 has quit [Ping timeout: 250 seconds]
noudle has joined #nixos
___laika has quit [Ping timeout: 248 seconds]
Myhlamaeus has quit [Ping timeout: 248 seconds]
<{^_^}>
[nixpkgs] @Bios-Marcel opened pull request #64608 → Add an application package for the latest version of → https://git.io/fjPBC
Ridout has joined #nixos
stepcut has joined #nixos
<{^_^}>
[nixpkgs] @Bios-Marcel closed pull request #64608 → Add an application package for the latest version of → https://git.io/fjPBC
Fare has quit [Ping timeout: 248 seconds]
kvda has joined #nixos
___laika has joined #nixos
stepcut has quit [Remote host closed the connection]
ericsagnes has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @Bios-Marcel opened pull request #64609 → cordless: init at 2019-06-13 → https://git.io/fjPB4
mexisme has quit [Ping timeout: 268 seconds]
<bsima>
selfsymmetric-mu: how does this work for you? http://ix.io/1N7C
<bsima>
that seems to download the pymacs package
<bsima>
but i'm not familiar with pymacs so i'm not sure what a successful install looks like
mexisme has joined #nixos
<zacts>
what are the minimum hardware requirements to run Nixpkgs?
<zacts>
I have a server with 25G disk and no swap + 1G memory
<zacts>
I got some memeory errors when trying to nix-env install
<zacts>
This is Nixpkgs on the latest Ubuntu
<zacts>
x86_64
<gchristensen>
do you use `nix-env -i` or `nix-env -iA`? it can make a big memory difference
<simpson>
Probably the limitation is on nix-env, which is memory-hungry. The REPL, nix-build, etc. should be fine. 1GiB is a little cramped in general for physical servers these days.
mexisme has quit [Ping timeout: 245 seconds]
<zacts>
gchristensen: I think it was nix-env -i
<zacts>
without the -A
<zacts>
simpson: I'm on an ultra low tier for my server. I was trying to install weechat on it
ericsagnes has joined #nixos
___laika has quit [Ping timeout: 248 seconds]
<zacts>
I was going to use nixpkgs, but the errors happened
<zacts>
and no swap
fresheyeball has joined #nixos
<zacts>
due to SSD on the server side
<{^_^}>
[nixpkgs] @ajs124 opened pull request #64610 → gimpPlugins.gimplensfun: fix compilation by bumping to 0.2.5-dev → https://git.io/fjPB2
<fresheyeball>
hey out there
<fresheyeball>
I am have a project that is working just fine with callCabal2nix
<fresheyeball>
and now I need to break it up so that I can have a ghcjs target
<fresheyeball>
any recommendations on how to go about this?
<simpson>
zacts: Like gchristensen says, -iA could be a big improvement.
___laika has joined #nixos
<{^_^}>
[nixpkgs] @ajs124 closed pull request #64610 → gimpPlugins.gimplensfun: fix compilation by bumping to 0.2.5-dev → https://git.io/fjPB2