<infinisil>
kyren: I'm not entirely sure why it wouldn't work with infinity though, what did you use for `systemd.services.<containers>`?
simukis_ has joined #nixos
<kyren>
infinisil: it's definitely set to infinity, I didn't feel like going into detail, but I used `mapAttrs'` over `config.containers`
amf has quit [Quit: WeeChat 2.4]
<infinisil>
kyren: Hm, try run `systemctl cat containers-...` to see whether it's actually set at runtime
<kyren>
infinisil: I understand infinity is a bit aggressive
<infinisil>
Values might get overwritten/merged together and stuff so the value you set isn't always what you get
kvda has joined #nixos
simukis__ has joined #nixos
simukis_ has quit [Ping timeout: 240 seconds]
<kyren>
Yeah they all appear to have `TimeoutStartSec=infinity`, however this is the part where I was being especially vague, I think actually there were other timeouts taking place? I was also doing a remote deploy using a crappy home-grown nixos-like shell script which is using ssh to call <derivation>/bin/switch-to-configuration... I'm trying actually to move *away* from all that back to a more standard setup
philr has joined #nixos
amf has joined #nixos
Havvy has joined #nixos
<kyren>
but it looks like that PR is a good start, it couldn't hurt to just try it again... I went all in trying to be fully reproducible on some important services, but what ends up happening is that I don't actually take the time to upgrade them in a timely manner, and my deployment procedure is finicky so that means that I definitely don't do it in a timely manner, I'd rather just go back to my configuration living in /etc/<nixos> and getting automatic
<kyren>
channel upgrades
<amf>
just wanted to say thanks for the help! rebooted and everything just works
<{^_^}>
[nix] @matthewbauer closed pull request #3129 → Don’t use stat --printf in nix-profile.sh → https://git.io/JeWzR
<{^_^}>
[nix] @matthewbauer closed pull request #3135 → Don’t override system PATH in nix-profile.sh → https://git.io/JeWXF
thc202 has quit [Ping timeout: 245 seconds]
wfranzini has quit [Remote host closed the connection]
endformationage has quit [Ping timeout: 268 seconds]
wfranzini has joined #nixos
growpotk- has joined #nixos
o1lo01ol1o has joined #nixos
<craige>
While I think of it @disasm - post the upgrade to 19.09, `gitea` was no longer able to read the keys files I had for it (via nixops). I've not got to the bottom of it yet but I thought I'd flag it with you as a "thing that might happen to you and others".
o1lo01ol1o has quit [Ping timeout: 240 seconds]
shibboleth has quit [Quit: shibboleth]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JeWFI
kleisli has quit [Quit: Leaving]
<aanderse>
craige: when you say "keys" do you mean database.passwordFile? or...?
Havvy has quit [Ping timeout: 265 seconds]
drakonis has quit [Ping timeout: 250 seconds]
<craige>
Sorry, as delivered by `deployment.keys` in via nixops aanderse - gitea is the only service I run can no longer read it's key file. I was flagging that with @disasm as both the maintainer an a fellow user that it's a "thing that may happen". I'm yet to work out the what's and whys (busy working on other things).
Havvy has joined #nixos
<aanderse>
craige: ok, thanks. still curious specifically what you mean by keys. i assume either database.passwordFile or you're manually pushing in ${stateDir}/custom/conf/secret_key then?
<aanderse>
(of course, as you mentioned, using nixops deployment.keys)
<craige>
:-)
<aanderse>
i also mention because @disa
<aanderse>
** disasm hasn't had a commit in about 2 years to the module
<aanderse>
so i'm guessing he might not be as familiar with the module as he used to be... but that is just a guess
<craige>
The slacker ;-) I also know he uses gitea though, so I was giving him a heads up too :-)
<aanderse>
if you get around to looking into the problem i'm around for another 20-30 minutes tonight and would be happy to help
<craige>
I *suspect* the permissions on /run/keys has changed. No proof yet :-)
<aanderse>
PermissionsStartOnly was removed (by me) from the module
Rusty1 has joined #nixos
<aanderse>
does your deployment.keys set permission of the files you're deploying to be owned by the gitea user?
<craige>
Proven. Gitea needs to be added to the keys group now.
<aanderse>
or are the keys owned by root
* craige
modifies his nix files to include that.
<craige>
THe leys are owned by the user. (in this case gitea)
<aanderse>
ahh... right but the actual folder requires group of keys or something
<craige>
/runs/keys is only traversable in 19.09 if the user is in th ekeys group - gitea was not (no one is)
<aanderse>
right...
<aanderse>
we should fix that :\
<craige>
I manually added gitea to keys and it was fine.
<aanderse>
i never really got into using deployment.keys with nixops, unfortuantely
<gyroninja>
I upgraded to 19.09 and accidently locked myself out of the server
<craige>
(key group)
<craige>
So, one I added gitea to the keys group, it started fine.
<aanderse>
gyroninja: oh no! thank goodness for generations added to your boot menu
<craige>
+1 :-)
<aanderse>
craige: glad to hear you're up and running
<gyroninja>
aanderse: Well it's on digital oceans, so it means I have to go through the process of going to recovery mode and so forth
<aanderse>
i guess it is kinda hard to figure out in the gitea module if the module should add itself to the keys group... so maybe that is just a documentation thing i guess
<craige>
Do you consider that a bug (against nixops, I suspect) anderse or a misconfiguration on my end?
<aanderse>
gyroninja: oh i'm sorry to hear that :(
<gchristensen>
gyroninja: ouch. how'd you get locked out?
<craige>
As deployment.keys is in NixOps nly, should not the bug be against NixOps to add users listed therein to the `keys` group?
<gyroninja>
gchristensen: At the end of the upgrade it stopped a bunch of units including some which severed my ssh connection
<aanderse>
craige: i'd have to think about it some more and understand the deployment.keys change (which i didn't know happened)
<gyroninja>
I assume it just quit out of the upgrade and never made it to the part where it turns them back on
<aanderse>
craige: the problem is that how would nixops know what keys you have correspond to what users?
<craige>
It's listed there.
* craige
grabs a link,
<gyroninja>
It's not neccesarrily a 19.09 issue though
<gchristensen>
gyroninja: ow. what if you issue a reboot? will it come back up?
amir has quit [Ping timeout: 264 seconds]
<gyroninja>
good idea
<craige>
As I think 19.09 has change the permissions but NixOps needs to fix it by adding an extra step towork with 19.09.
<aanderse>
craige: out of curiosity... those files, despite being .nix, are not copied into your store at all eh?
<aanderse>
or the .text is just an example and you actually reference a real file?
<aanderse>
i assume tha latter/
<gyroninja>
Do you think it would be a better idea to launch upgrades from a screen if I am doing them manually?
<craige>
I'm under the impression they're not :-)
<craige>
(the secret.nix file)
<aanderse>
<- quite unfamiliar with nixops deployment.keys
<craige>
AFAIK it's used to generate the key file and *that* is copied up.
<craige>
I only see the key files being copied at least.
<aanderse>
ah. for the very brief time i used deployment.keys (and didn't really understand it at the time) i referenced files on the nixops file system
<craige>
It's quite nifty. I've done a few blog posts using it (but no necessarilly explaining it deeply).
kleisli has joined #nixos
<aanderse>
yeah i should really read more about deployment.keys. it has been over a year since i was looking into it. could be helpful.
<craige>
It's the jam when you;re running your NixOps from a public git repo :-D
armin has quit [Ping timeout: 240 seconds]
<kyren>
while you guys are talking about it, does nixops secrets management work well for declarative containers?
<aanderse>
it seemed like a good idea for deploying our wildcard cert when i briefly looked into 1.5 years ago... but then we switched everything to letsencrypt
<craige>
letsencrypt (acme) support in NixOS is a thing of grace and beauty.
<craige>
I can't imagine why `deployment.keys` would not, kyren.
<aanderse>
craige: will respectfully disagree, if only based on the fact that it only supports http and not dns
<craige>
letsencrypt (acme) support for HTTPS in NixOS is a thing of grace and beauty.
<gchristensen>
hehe
<craige>
(amended) :-)
<aanderse>
ha ha ha
<aanderse>
yeah... now to push ahead with apache changes in nixos for 20.03 so i can agree that letsencrypt support for https on apache in nixos is a thing of grace and beauty
<craige>
:-)
<craige>
I should have problably added nginx to my increasingly long caveat :-)
<kyren>
craige: yeah okay it gets put in /run/keys, and this is mounted in every container... there's no problems with permissions or anything inside the container? I'm asking a lot of questions because I was *very bad* and put gitlab secrets in the nix store in 19.03 and I have to fix it now :P
<craige>
The /run/keys permissions appear to have been tightened in 19.09 and the actual key file is only readable by the group and user you define, kyren - so it's secure as you make it, to a certain extent.
<kyren>
wait, no is it put into every container's filesystem?
<ashkitten>
craige: *keanu reeves voice* you're a thing of grace and beauty!
boxscape has quit [Remote host closed the connection]
<kyren>
right but I have to name a user for that container, right? that's what I'm asking, how does this interact with containers... maybe it just all works?
<kyren>
remember I'm talking about *declarative* containers, not managed by nixops
Havvy has quit [Ping timeout: 265 seconds]
<craige>
I'm going to have to shrug at this point. We've exited the real of what little I know, kyren :-(
<kyren>
that's okay, maybe I shouldn't be using declarative containers anyway!
abathur has joined #nixos
kleisli has quit [Ping timeout: 240 seconds]
Havvy has joined #nixos
sigmundv has quit [Ping timeout: 240 seconds]
phI||Ip_Alternat has quit [Quit: ZNC 1.7.4 - https://znc.in]
rsoeldner has quit [Remote host closed the connection]
rsoeldner has joined #nixos
gxt has quit [Remote host closed the connection]
gxt has joined #nixos
rsoeldner has quit [Ping timeout: 276 seconds]
kleisli has quit [Ping timeout: 265 seconds]
rsoeldner has joined #nixos
rsoeldner has quit [Ping timeout: 276 seconds]
Cale has quit [Ping timeout: 250 seconds]
rsoeldner has joined #nixos
madhukar93_ has joined #nixos
<madhukar93_>
Need some help from KDE users. I have two long standing issues. I can't control brightness from KDE(power management is enabled, but I don't see the brightness control in the power management widget. The brightness keys used to work as well, but now they aren't). I'm on the unstable channel, it was working in the 19.03 release, does anyone have a similar issue?
Cale has joined #nixos
palo1 has joined #nixos
rsoeldner has quit [Ping timeout: 246 seconds]
hyper_ch2 has joined #nixos
palo has quit [Ping timeout: 240 seconds]
palo1 is now known as palo
<hyper_ch2>
eyJhb: it seems to work ok... still need to create that startup script though.... one problem still remains: how to get the dhcp ip address during initrd phase from the docking station
hyper_ch2 has quit [Remote host closed the connection]
hyper_ch2 has joined #nixos
Cale has quit [Ping timeout: 245 seconds]
orivej has joined #nixos
<bahamas>
I'm trying to install pypi2nix and I get this error "error: invalid regular expression '^(.*/|)\.eggs/.*', at /nix/store/nz3ki8viypiid9rxbiryrfr0qbqmz57v-source/default.nix:24:26". the strange part is I don't see that regex in the project's gitignore: https://github.com/nix-community/pypi2nix
<eyJhb>
hyper_ch2: that is a whole other level of PTSD you want there :p
mounty has joined #nixos
<hyper_ch2>
although something weird happened last night... it froze the displays at a certain time when I didn't use the notebook for a while... no idea
<hyper_ch2>
besides that and (the boot up rpoblem with running a script), it works fine
<hyper_ch2>
so for kernel 5.3.1 just use latest commit for evdi and your patches
<ivan>
you can do whatever you want in boot.inird.postMountCommands if you know what to do
<ivan>
boot.initrd.postMountCommands
<hyper_ch2>
eyJhb: it would be really nice to get the initrd dhcp ip through the docking station... that would allow me to remotely reboot my notebook ;9
<{^_^}>
[nixpkgs] @vbgl opened pull request #70893 → ocamlPackages.spelll: init at 0.3 → https://git.io/JeWA4
<eyJhb>
And I haven't gotten it to work with those suggested changes
<eyJhb>
So basically, it is borked without :p
<talyz>
kyren: also, you're not bad for putting gitlab secrets in the store in 19.03 - you were forced to: the support for secret files is new in 19.09 ;)
<hyper_ch2>
eyJhb: thx
hyper_ch2 has quit [Remote host closed the connection]
<madhukar93_>
This bit seems to be the culprit `DBus Backend error: service start org.kde.powerdevil.backlighthelper failed: Bus name not found in system service directory`
<madhukar93_>
Seems like a problem that should be widespread
<eyJhb>
hyper_ch2: feel free to test it out! I have just spent days on DL, and don't have the time for it now
<eyJhb>
I think in total I have used a week on it.. :p
<eyJhb>
And no problem! I love helping with my very limited help :%
<hyper_ch2>
:)
<hyper_ch2>
there's still the dockings station network dhcp initrd problem..... ;)
<eyJhb>
GO go go go
<eyJhb>
Does the saying "Free" work in english as well? "Fri" in Danish
thc202 has joined #nixos
graf_blutwurst has joined #nixos
<sphalerite>
eyJhb: in that context, definitely
<graf_blutwurst>
Hey I was wondering if someone knows how I can specify a minor version of the used kernel module? Last working for me was 4.19.71 and then I updated to 4.19.75 and now 4.19.78 and both of them kernelpanic. Right now it's running with the latest 5 kernel but that's a bit janky
<eyJhb>
sphalerite: Like "free", and then touch your nose and the last one to do it, has to do the thing none wanted to do?
<shyim6>
How can i disable that nix is replacing my shebangs?
<shyim6>
I have already corrected it to /usr/bin/env bash, still it replaces with the /nix/store path :D
shyim6 is now known as shyim
veske has joined #nixos
bahamas has quit [Ping timeout: 265 seconds]
<sphalerite>
eyJhb: oh, no (-> #nixos-chat :D )
<sphalerite>
shyim: what's the problem with that?
<shyim>
I use the same scripts for local and inside the docker container
<jonge[m]>
if i have some /nix/store/blabla path that gets garbage collected but i would like to prevent that - is there some command that sets a symbolic link in the anti-garbage-collection folder?
<madhukar93_>
`DBus Backend error: service start org.kde.powerdevil.backlighthelper failed: Bus name not found in system service directory` fixed by specifying `powerdevil` as a system dependency which installed a different version of the package, and fixed it. Does the KDE plasma package have to be updated to point to the specific version that worked?
<madhukar93_>
`Oct 10 13:45:30 blackbox xsession[2291]: invalid metadata "/run/current-system/sw/lib/qt-5.12.3/plugins/powerdevilkeyboardbrightnesscontrolaction_config.so"` Still seem dicey, can anyone help me understand this?
<{^_^}>
#57660 (by matthewbauer, 29 weeks ago, closed): kazam on Linux throws error on first run
<kyren>
talyz: I don't think declarative containers even support deployment.keys, it's kind of annoying, I think nixops just wants to manage the containers itself and maybe I should let it
graf_blutwurst has quit [Remote host closed the connection]
<Taneb>
What could cause my Hydra server to report "uncaught exception building ‘/nix/store/xg6gslgkwqp8wjk7113wfpn6ghk34hn6-foo.drv’ on ‘nix@myremotebuilder.myrtle’: std::bad_alloc"?
<seqizz>
Hi there, I see linuxPackages_5_2 is not in 19.09 yet. Should I wait for more versions to appear there or shall I switch to testing kernel? (I need 5.2+)
<asheshambasta>
Or if it needs improvement.
Boomerang has joined #nixos
<asheshambasta>
also, I'm unable to find references to how to use custom derivations like these. For example; if I create this file in /etc/nixos/termonad.nix; how do I ask nix to run this derivation in configuration.nix and store the resulting executable in the nix repository of installed packages?
ThatDocsLady has joined #nixos
<seqizz>
Aaah nevermind seems like 5_2 is EOL before 20.03
seqizz has quit [Client Quit]
<asheshambasta>
do I need to import anything in my configuration.nix? Is there any reading material that explains the basics like these?
ericsagnes has quit [Ping timeout: 250 seconds]
mexisme has quit [Read error: Connection reset by peer]
ericsagnes has joined #nixos
mexisme has joined #nixos
<talyz>
kyren: Which nixops backend are you using for this?
<NinjaTrappeur>
asheshambasta, there are several ways to do that. You can either use a nixpkgs overlay, you can override nixpkgs to add your pkgs or you can simply import your custom derivations in your configuration.nix using callPackage
<kyren>
talyz: I'm actually not using nixops at all right now, for the purposes of discussion I'm using something similar to the morph tool if you're familiar with that (but I made it myself and it sucks and I'd like to switch to morph or nixops)
cransom has quit [Quit: WeeChat 2.4]
<kyren>
talyz: but I'm actually at kind of a loss as to how to sanely manage keys in declarative containers, I can bind mount things from the parent container but I'm not yet sure how to set the permissions correctly
<kyren>
talyz: I'm debating on whether trying to switch to nixops and imperative containers, or to do something else entirely, or to try to not change very much but just somehow manage keys sanely, I know keeping keys in the nix store is not great but I'm trying to find the easiest direction to go from here
<kyren>
talyz: I could just of course upload keys to the containers themselves imperatively and just move on with my life
<manveru>
kyren: i just did a script that wraps the deploy and scp the key afterwards
<manveru>
it's not as fancy as nixops, with a service and stuff, but works for my case...
Makaveli7 has joined #nixos
marusich has joined #nixos
ng0 has joined #nixos
<kyren>
manveru: do you just copy things to declarative containers directly, like you scp to the container itself?
<asheshambasta>
yeah, so I adapted it to the one in the gist
<clever>
asheshambasta: that sets the buildPhase to "/nix/store/rcka5aqdhlnyb260d0wvbz2acxb8cvsx-source/default.nix"
mexisme has quit [Read error: Connection reset by peer]
<clever>
asheshambasta: does that file have the +x bit?, no, so permission denied, you cant exeute it
gila has joined #nixos
mexisme has joined #nixos
<clever>
,ifd asheshambasta
<{^_^}>
asheshambasta: 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. It has been described as "such a nice footgun."
<asheshambasta>
you mean the `default.nix` file needs to be +x?
<clever>
asheshambasta: no, i mean your doing it all write, and the lack of +x is stopping things from going any further
<clever>
doing it all wrong*
<clever>
default.nix is not a shell script
<clever>
so you cant run it in a shell script
<asheshambasta>
makes sense
<asheshambasta>
basically, all I'm trying to do is replicate the build instructions on that package via a nix derivation so that i can have it as a nix file instead of nix-env
<asheshambasta>
yeah I updated it, still same error actually.
<clever>
exact same error? it shouldnt be
<asheshambasta>
clever: yeah, in my former gist, I was using that solution, but I had wrongly copied that into my buildPhase for some reason
<asheshambasta>
seeing your gist and this one I can better connect the dots, however the error message doesn't chane
<asheshambasta>
change*
rsoeldner has quit [Remote host closed the connection]
<clever>
can you paste another gist with your latest code?
rsoeldner has joined #nixos
<asheshambasta>
clever: actually, that was my bad, sorry about that.
mudrii has quit [Remote host closed the connection]
<asheshambasta>
so does nix see that there's a default.nix file in the tarball and evaluate it?
<asheshambasta>
the import statement simply says that this source code is on GH and I need to pull it down, right?
<clever>
fetchFromGithub is a function, that will generate a derivation, which fetches things (from github)
<clever>
it returns a string, pointing to a directory where the fetched thing exists
<asheshambasta>
ok
<clever>
"/nix/store/rcka5aqdhlnyb260d0wvbz2acxb8cvsx-source" in this case
<clever>
import will just take the path to a .nix file, and return whatever the top-level expr is
<clever>
if you give import the path to a directory, it loads the default nix file
<asheshambasta>
what if this repo had no default.nix?
<clever>
then you need to add another string onto the string
<dsg>
Anyone familiar with the customCommand resource in nixops? According to #1048, resources.commandOutput."name".script should return JSON, but I always get back a string in resources.commandOutput."name".value. Am I misunderstanding this thing?
hyper_ch2 has quit [Remote host closed the connection]
<Arahael>
I can't start libreoffice, how do I investigate?
chenhq2005 has quit [Quit: No Ping reply in 180 seconds.]
<Arahael>
Quite literally: Nothing happens. The only observable outcomes are: 1. The command does not return, and 2. There are a bunch of libreoffice related processes running in ps.
tghume has joined #nixos
<Arahael>
Actually, I'll try killing all of them, I previously only killed 'libreoffice'.
<Arahael>
Well, whatdoyouknow, that worked. :)
rsoeldner has quit [Ping timeout: 246 seconds]
fendor has joined #nixos
asheshambasta has quit [Ping timeout: 246 seconds]
hyper_ch2 has joined #nixos
<{^_^}>
[nixpkgs] @minijackson opened pull request #70903 → alot: fix hardcoded Python in Zsh completion → https://git.io/Jeles
<{^_^}>
[nixos-weekly] @domenkozar pushed to master « Call for Content: 2019/14 »: https://git.io/JeleD
<{^_^}>
[nixos-weekly] @domenkozar opened pull request #103 → Call for Content: 2019/14 → https://git.io/Jeley
Ariakenom has quit [Remote host closed the connection]
Tucky has joined #nixos
Ariakenom has joined #nixos
ericsagnes has joined #nixos
<karetsu>
is clamav a known issue on 19.03? I just want to be able to run a clamscan but with nix-shell -p clamav it can't find *clamav*/share/clamav and the deamon just times out on service start
chenhq2005 has joined #nixos
<karetsu>
I found a github issue for 16.09 but that appeared to have been fixed
<millerj>
I have an unmerged PR (#69130) for a vim plugin and wrapper. This is my first non-trivial derivation in Nixpkgs and I would appreciate it if anyone has time to look at it.
<ben>
is this more of a WONTFIX design issue or a "no one sufficiently cares to work on it" issue? I don't entirely understand how acceleration works/why it doesn't
<ben>
(I've come to terms with my firefox not being accelerated, but the other day I tried to install alacritty and it couldn't even start up, which made me sad)
chenhq2005 has quit [Quit: No Ping reply in 180 seconds.]
doublex has joined #nixos
oscarvarto has joined #nixos
<Athas>
Works fine in NixOS!
chenhq2005 has joined #nixos
m0rphism has joined #nixos
<sphalerite>
ben: I think it's more the latter
ddellacosta has joined #nixos
<ben>
aight thats promising
<sphalerite>
but also it's hard to solve AFAIK
<ben>
Athas: yeah im happy with nixos at home, but my employer prescribes ubuntu developer machines for some integrations and i dont want to start fights with IT/security
<sphalerite>
but according to the issue text you can make it work with some LD_LIBRARY_PATH setting (idk what though)
<sphalerite>
ben: run a nixos vm? :p
chenhq2005 has quit [Read error: Connection reset by peer]
<ben>
will probably run into even more issues :<
<sphalerite>
I recently migrated a windows installation from hardware to a VM with PCI passthrough for the graphics card, it went pretty well and performs great — and now there's a nixos around it :D
mudrii has quit [Remote host closed the connection]
<orbekk>
cyris212: I've had permission issues lately, but I haven't had time to investigate. if I take it out and put it back in it works for me
<hyper_ch2>
no, I don't use yubikey
doublex has joined #nixos
<raboof>
cyris212: I have it working with nixos-unstable. I added `services.pcscd.enable = true` and `services.udev.packages = [ pkgs.yubikey-personalization ];`
<raboof>
cyris212: I'm using it for signing git commits. what are you using it for and in what way does it not work?
<Ariakenom_>
I'm trying to use "Emulating virtualenv with nix-shell" but I'm getting errors due to pip trying to write to nix/store https://nixos.wiki/wiki/Python
<cyris212>
Is use it to decrypt passwords with pass.
<cyris212>
pcscd crashes whenever I plug in my yubikey.
<raboof>
do you have that udev thing?
<cyris212>
I do
<{^_^}>
[nixpkgs] @grahamc opened pull request #70912 → diceware: add missing 'setuptools' to propagatedBuildInputs → https://git.io/JelJU
<raboof>
cyris212: interestingly I see those same pcscd errors, but gpg signing does work for me
ardumont has joined #nixos
<cyris212>
Weird.
<cyris212>
And now it works and I've no idea why :-)
Piece_Maker has joined #nixos
<mog>
does anyone know how to resolve this "We cannot detect a running copy of GNOME on this system, so some parts of the interface may be disabled. See our troubleshooting entry for more information."
<mog>
i have services.gnome3.chrome-gnome-shell.enable = true;
<raboof>
I'd like to add an environment variable to the runtime of a package, pointing to the nix store (specifically, pass a JAVA_HOME to vscode pointing to my jdk). How would I go about that?
veske2 has joined #nixos
Acou_Bass has quit [Ping timeout: 265 seconds]
Piece_Maker is now known as Acou_Bass
<sphalerite>
ben: it is also quite odd that alacritty won't start at all, I think it should work with software GL as well…
<sphalerite>
especially given that firefox does work
inkbottle has quit [Quit: Konversation terminated!]
veske2 has quit [Client Quit]
<Ariakenom_>
when trying python37Packages.virtualenvwrapper I get the following error (among others)
<Ariakenom_>
ERROR: The executable /home/.../thegate-pythonvenv/bin/python3.7 is not functioning. It thinks sys.prefix is '/nix/store/...-python3-3.7.4' (should be '/home/.../thegate-pythonvenv')
oscarvarto has quit [Quit: Konversation terminated!]
<sphalerite>
probably, if nothing you're dealing with is too finicky about version bounds. I don't know many details though, I just know that virtualenv is problematic and searched the issues for a relevant one :p
oscarvarto has joined #nixos
<worldofpeace>
mog: which browser?
bahamas has quit [Ping timeout: 276 seconds]
<mog>
ive tried the gnome browser, firefox, and chrome. i also enabled the extension in firefox
<inkbottle>
My root's locale are fine but my user's are completely messued up (root LANG=en_US.UTF-8; user LANG=en_NL.US-ASCII); kde might be the culprit, but I really don't know how to fix it
<sondr3>
I'm trying to update my system to 19.09, but I keep getting this error: error: attribute 'extend' missing, at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/boot/kernel.nix:40:31
Ariakenom has joined #nixos
<sondr3>
Based on the trace it seems it stems from my boot.kernelPackages, which I set to pkgs.linux_latest;
nexgen has joined #nixos
<{^_^}>
[nix] @edolstra pushed 0 commits to refs/tags/2.3.1: https://git.io/JelJa
<{^_^}>
[nixos-homepage] @edolstra pushed to master « Nix 2.3.1 released »: https://git.io/JelJV
asymptotically has quit [Quit: Leaving]
hyper_ch2 has quit [Remote host closed the connection]
Ariakenom_ has quit [Ping timeout: 250 seconds]
veske2 has quit [Quit: This computer has gone to sleep]
<ajs124>
sondr3: shouldn't that be linuxPackages_latest?
hyper_ch2 has joined #nixos
<sondr3>
ajs124: oh, fun, the package listing specified `nixos.linux_latest`,
<ajs124>
Ariakenom: sounds like you'd need to use something like nixos-shell for that. Although I've never actually used that. Mic92, is that how this works?
<Mic92>
ajs124: Ariakenom yes. This would work. There is also port-forwarding.
<inkbottle>
How do I know if a given package is installed on my box, like "nixpkgs.kdeFrameworks.sonnet"? (sorry I haven't found simple way to do that yet)
sondr3 has quit [Quit: WeeChat 2.4]
<hyperfekt>
How hard would it be to make Nix initiate a remote build from one machine but send the result to another?
<Ariakenom>
Mic92: cool. how does it compare to nixops?
<AmandaC>
That sounds an awful lot like an XY Problem, inkbottle, why do you need to do that?
<Mic92>
Ariakenom: nixos-shell is more like vagrant than, while nixops is more like chef/terraform.
<Mic92>
if that helps
endformationage has joined #nixos
<Ariakenom>
not at all :p
<inkbottle>
AmandaC: (xy problem?) Because I'm trying to find out what is causing I don't have spell checking in KDE. And otherwise it seems a good point to be able to find which package are installed and which are not
<Mic92>
Ariakenom: nixos-shell spawns a VM that has the current directory mounted into it. It gives a shell to the same VM. If you exit the shell the VM is gone.
<minall>
How do I install packages? sorry for the noob question, I'm on a new nixos installation
<AmandaC>
inkbottle: The packages in question would probably be modified to point at that package's internals. Nix's design is to minimise "impure" packages (packages that rely on state from outside nix)
<inkbottle>
AmandaC: but the package I was refering to was already a NixOS packages, which I found through the conmmand nix search
<inkbottle>
do u yourself use kde?
<minall>
How do I install packages on a new nixos installation?
<ajs124>
Izorkin: what's the reason you want to drop these components?
<AmandaC>
I do not, and I'm currently without my NixOS Machine anyway, since I've had to end it in for repairs
<ajs124>
Minall: nix-env -iA
<AmandaC>
What's the program that you're missing spell checking from?
<minall>
Thnaks ajs124 !!
<Izorkin>
ajs124: need to use only libmysql
<Ariakenom>
The program ‘nix-env’ is currently not installed ... install it by typing ... nix-env -iA nixos.nix
<Ariakenom>
:D
wfranzini has quit [Quit: wfranzini]
<ajs124>
Izorkin: ah, so they'll still be part of libmysql?
wfranzini1 has joined #nixos
<leo_>
I'm trying to use haskellPackages.developPackage
<leo_>
For a project it worked fine.
Ariakenom has quit [Remote host closed the connection]
<inkbottle>
AmandaC: Konversation; but it's a kde framework thing and I've been told that kde uses "sonnet", reason why I want to know if it is installed or not already; because if it is already installed, then the issue doesn't come from there
Ariakenom has joined #nixos
<leo_>
For the other, with higgledy as a dependency, it's complaining that it was called without a higgledy argument.
<mog>
im also trying to add the new gpgCard option to my luks device but it keeps complaining it cant find the path of my encryptedPass. im imagining its not copying that file into the initrd its building? but dont know how to fix that
<freeman42x>
dunno what I did but now on build I am getting "ld: cannot find -lz"
<freeman42x>
simpson, how do I mention these things in shell.nix?
rsoeldner has joined #nixos
<simpson>
freeman42x: `zlib.dev` and `zlib.out` both instead of just `zlib`.
cosimone has joined #nixos
<freeman42x>
simpson, wheredo I add that?
<freeman42x>
ah, this error: "ld: cannot find -lz" is also cause of missing ZLIB
erasmas has joined #nixos
<simpson>
freeman42x: I'm not sure, but I'd guess in one of the build inputs. You've got a list of packages there, but I'm not sure how it's used.
<simpson>
I don't know much about Stack, sorry.
<freeman42x>
simpson, adding them here is not allowed: executableHaskellDepends = [ base directory text turtle zlib.dev zlib.out ];
<leo_>
Why is base broken?
xwvvvvwx has quit [Ping timeout: 265 seconds]
<freeman42x>
simpson, basically I just need to know what is the equivalent of `nix-shell -p zlib` but put inside the shell.nix
<simpson>
freeman42x: So try buildInputs? I'm not sure. Apply some noodle: When should the library be added to the derivation?
<simpson>
...Nope, sorry, I'm not that kind of advice-giver.
orivej has quit [Ping timeout: 240 seconds]
<alexarice[m]>
Minall: So you built in and get put straight into a tty?
<alexarice[m]>
s/built/boot
<freeman42x>
simpson, buildInputs, tried that already, it's not valid
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<cransom>
simpson: i'm going to borrow 'apply some noodle'.
xelxebar has quit [Remote host closed the connection]
fresheyeball has joined #nixos
<simpson>
freeman42x: Well, reading zlib's derivation, it's not special, so I'm not sure what's wrong. `zlib.dev` should be the correct package to build against, and I'm not sure why adding it as a build input isn't sufficient.
<fresheyeball>
domenkozar[m]: you around?
<fresheyeball>
I am trying to get haskell ide engine to work in my nix-shell
<fresheyeball>
and ghc-mod is not finding dependencies for some reason
<simpson>
In particular there's no special shell hook that makes nix-shell's behavior different.
rsoeldner has quit [Ping timeout: 246 seconds]
Ariakenom has quit [Remote host closed the connection]
<freeman42x>
fresheyeball, what error are you getting? need to paste or image
<freeman42x>
*some
<fresheyeball>
freeman42x: I get that ghc-mod cannot satisfy HTTP-4000
rsoeldner has joined #nixos
<simpson>
freeman42x: Try putting `librarySystemDepends = [ zlib ];` into your derivation.
wfranzini has quit [Remote host closed the connection]
xwvvvvwx has quit [Client Quit]
boxscape has joined #nixos
phaebz has joined #nixos
sigmundv has quit [Ping timeout: 265 seconds]
sb0 has quit [Quit: Leaving]
madhukar93_ has quit [Quit: Connection closed for inactivity]
phaebz has quit [Ping timeout: 240 seconds]
<domenkozar[m]>
@fresheyeball yes
<fresheyeball>
domenkozar[m]: you willing to help me get hie working?
<fresheyeball>
I can't get it to work on any of my projects
<fresheyeball>
I tried with infinisil but hit a debugging bedrock
iqubic` has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
jmeredith has joined #nixos
<domenkozar[m]>
why not use ghcide? :o
rsoeldner has quit [Ping timeout: 245 seconds]
<domenkozar[m]>
hie is dead to me :)
justanotheruser has quit [Ping timeout: 240 seconds]
<fresheyeball>
domenkozar[m]: great! Its wasted 3 of my weekends!
<fresheyeball>
I would love to use something else
<fresheyeball>
can I get an lsp server with ghcide?
<eraserhd>
how does one debug a user systemd service? Symlink exists in /run/current-system/etc/systemd/user/, does not appear in `systemctl --user`, doesn't appear to have logged anything?
NoctisLabs has joined #nixos
<jtojnar>
worldofpeace yeah >2500 is probably bit too much
misuzu has quit [Remote host closed the connection]
wildtrees has quit [Remote host closed the connection]
wildtrees has joined #nixos
domogled has joined #nixos
drakonis_ has joined #nixos
misuzu has joined #nixos
<jtojnar>
leo_ hmm, it appears that it was broken from the time it appeared in c50365ec921e
domogled has quit [Read error: Connection reset by peer]
<simpson>
freeman42x: So...did that fix it?
<simpson>
I made my guess by reading pkgs/development/haskell-modules stuff, and by using `git grep` to search for users of zlib.
knupfer has joined #nixos
<mog>
one other thing ive noticed moving to gnome is that services.logind.lidSwitch = "lock"; doesnt seem to be working
minall has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
<mog>
my machine just seems to blank screen and immedietly come back
Tucky has joined #nixos
<jtojnar>
leo_ I would actually expect base to be provided by the ghc expression
erasmas has quit [Read error: Connection reset by peer]
phaebz has joined #nixos
leo__ has joined #nixos
<leo__>
Just got back.
<leo__>
Machine rebooted. arg
<leo__>
I'm posting the issue.
<jtojnar>
mog I think gnome-settings-daemon might be overriding that
<mog>
its not suspendng my machine
<mog>
which is what gnome should be trying to do
<mog>
but i just want the screen to lock when i close the lid nothing more
leo_ has quit [Ping timeout: 250 seconds]
<cransom>
is anyone monitoring postgres via datadog? I have a check configured but from `agent status`, all i have is `Error: Unable to load the check: unable to load any check from config 'postgres'`
Netsu has joined #nixos
<Netsu>
hello there. How can I install custom directories from derivation, such as /opt/local/lib ?
erasmas has joined #nixos
<gchristensen>
cransom: I wonder if the nixos-org-configurations repo uses any sort of datadog monitoring on its postgres db (which is hosted on the server named "chef")
<meatcar>
I can't figure out whats the cause. Fonts are bad in pcmanfm, nautilus, thunar, gnome3.gedit (tested via nix-shell), but are fine with lxappearance, gtk2fontsel, firefox.
<gchristensen>
meatcar: hmm it looks okay for me, maybe some of my config is useful.
<gchristensen>
(also, cool, didn't know about pcmanfm)
<meatcar>
gchristensen: narrowed my font issue down to one line, `xdg.portal.gtkUsePortal = true;`. Removing it and rebooting fixes the font rendering issues.
<meatcar>
Not quite sure what the xdg portals are, i think I'm ok without it.
<selfsymmetric-pa>
I want to install a Nix package from GitHub. It has a `default.nix`. I know how to write a `fetchFromGitHub` statement, but what do I do with the result? Just `import` it?
<leo__>
Here's an example. Follow it in the config.
<leo__>
In this case I didn't overlay it.
<selfsymmetric-pa>
Thanks leo__, but here's the thing. My repo already has a `default.nix`.
<selfsymmetric-pa>
I managed to package up `jtc` yesterday because it had installation instructions (using cpp). So I just wrote in the build and install steps.
<selfsymmetric-pa>
But in this case I think that since there's already a `default.nix` in the repository, there should be a simple way to tell Nix to build it.
<selfsymmetric-pa>
Do you see where I'm coming from?
gnidorah has quit [Quit: Connection closed for inactivity]
<meatcar>
worldofpeace: yea, i'm not sure why I set it to true, I wasn't particularly clear on what it does at the time. As I understand it now, xdg portals are entirely related to flatpak and sandboxing. I was seeing other weirdness with that option set, like firefox pestering to be set as a default browser, etc. As I don't use flatpak, its not a big deal.
<leo__>
selfsymmetric-pa: Correct is without
<selfsymmetric-pa>
Thanks leo__! I get the same error with `callPackage`. I'm suspecting that this is an error with the upstream package, and not due to how I'm calling it.
<leo__>
I mean, you should `(import (pkgs.fetch ...)) {}`
<leo__>
Ah forget it.
<selfsymmetric-pa>
leo__: Like how I have it in my gist?
<selfsymmetric-pa>
AmandaC: Thanks! I see what you mean! Unfortunately I still can't evaluate the chainweb-node expression without it breaking, so I don't think I can call `.packages` on it.
<selfsymmetric-pa>
AmandaC: I also use `pkgs = import <nixpkgs> {}`. I'm on 19.09.
<AmandaC>
not sure what it's broken for you then, unless something's fucky in the 19.09 release
<selfsymmetric-pa>
AmandaC: Weird!
kleisli has joined #nixos
<selfsymmetric-pa>
I guess I'll try a nix-store repair. Not sure what else to try.
<selfsymmetric-pa>
I'll try 19.09 in the REPL...
<selfsymmetric-pa>
I mean 19.03
<AmandaC>
I'm on a mac, using nixpkgs-unstable atm.
nDuff has joined #nixos
<selfsymmetric-pa>
Ah, thank you.
<aiverson>
I'm trying to make a direnv+lorri setup for developing Terra using the cmake build, and having trouble with it. I have managed to get cmake to complete makefile generation successfully, but when running make the genclangpaths.lua step aborts with a core dump. I have managed to debug the abort to discovering that it occurs when the LuaJIT built by the build crashes when attempting to jit a loop trace at a function ca
<aiverson>
ll with the loop variable as the argument, which I believe indicates that the build is broken. Since this only occurs on nixos and not on ubuntu or windows with the same cmake script, I believe the problem is my shell.nix or nixos configuration. Can anyone offer advice for troubleshooting?
<zeta_0>
craige: ok, i just posted the question on the channel
<{^_^}>
[nixpkgs] @schmittlauch opened pull request #70935 → cawbird: bump version to 1.0.2 → https://git.io/JelOB
<zeta_0>
craige: just has a ? and the github issue is long so i don't know?
kshi has joined #nixos
<zeta_0>
maybe i'll just go with an android tv box instead, it would save me some time?
<zeta_0>
should i just go with the rasberry pi 3 instead?
<zeta_0>
what do you guys think?
Jackneill has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @erictapen opened pull request #70936 → haskellPackages.hakyll: fix build on release-19.09 → https://git.io/JelOw
kshi has quit [Remote host closed the connection]
kshi has joined #nixos
<{^_^}>
[nixpkgs] @bjornfor pushed to master « qsynth: use qt5.mkDerivation »: https://git.io/JelOo
<AmandaC>
clever: Are you https://github.com/cleverca22? -- If so, I'm having some issues with your qemu module + overlay -- it seems that passing `--default-library` is conflicting. I tried removing it, and also changing it to `-Ddefault-library=both` and neither is working, lots of symbol errors?
Ariakenom_ has quit [Read error: Connection reset by peer]
alex``` has joined #nixos
alex`` has quit [Ping timeout: 265 seconds]
kshi has quit [Remote host closed the connection]
kshi has joined #nixos
drakonis has quit [Ping timeout: 268 seconds]
Havvy has quit [Ping timeout: 250 seconds]
<gchristensen>
grr it seems the only ppd I can get for my printer from hplip works if I use lpd, but that is very slow. on the other hand ,it seems cups can query for the PPD over IPP, but I can't tell hardware.printers to do it.
j4m3s__ has quit [Ping timeout: 240 seconds]
multun has quit [Ping timeout: 240 seconds]
alex``` has quit [Ping timeout: 250 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<aiverson>
Does anyone have advice for tracking down the compilation problem, should I link source code, or what?
Havvy has joined #nixos
alex``` has joined #nixos
drakonis has joined #nixos
growpotkin has quit [Ping timeout: 240 seconds]
fusion809 has quit [Remote host closed the connection]
suhashebbar[m] has joined #nixos
<{^_^}>
[nixpkgs] @nixkoenner opened pull request #70938 → 19.03 with nordlicht → https://git.io/JelOA
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
drakonis_ has joined #nixos
drakonis has quit [Ping timeout: 245 seconds]
<AmandaC>
clever: if that is you, I filed an issue copy of the question, since I'm likely to unplug shortly for the night
<craige>
My Google foo is failing me. Am I able to right an imports line like pulls a nix file from a URL rather than local disk? I *think* I can't but I don't *know* that I can't :-)
<{^_^}>
[nixpkgs] @jonringer pushed commit from @makefu to master « devpi-client: 4.1.0 -> 5.0.0 »: https://git.io/Jel3W
<gchristensen>
,IFD craige
<{^_^}>
craige: 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. It has been described as "such a nice footgun."
<craige>
oh, nic bot use gchristensen :-)
<craige>
gchristensen++
<{^_^}>
gchristensen's karma got increased to 160
multun has joined #nixos
kshi has quit [Remote host closed the connection]
kshi has joined #nixos
ambro718 has quit [Quit: Konversation terminated!]