<CMCDragonkai>
fresheyeball: depends on whether you consider the 200GB training data to be part of the package or not, if not, then leave it out with .gitignore and even nix git-ignore, if yes, then keep it in
waleee-cl has quit [Quit: Connection closed for inactivity]
Guest84 has joined #nixos
<fresheyeball>
CMCDragonkai: It's not a git issue. I can use git-annex for that.
<fresheyeball>
The question is, how can I have source to a nix expression that is not stored in the nix-store? Is it even possible?
<clever>
fresheyeball: the $src must always be in /nix/store/
<fresheyeball>
ok
<fresheyeball>
so perhaps the only path here is actually the nix-shell for training
<fresheyeball>
I was hoping I could put something like a reference to the actual files in the nix-store.
<fresheyeball>
a la git-annex for example
<fresheyeball>
like we store the hash of the src, but not the actual src
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #nixos
<o1lo01ol1o>
Is it possible to allow a hydra build job to make HTTP requests? I added the URI to `allowed-uris` but the request times out.
<clever>
o1lo01ol1o: allowed-uris is only for eval time things, builtins.fetchTarball
<clever>
o1lo01ol1o: for any build-time fetch, you must use a fixed-output derivation
h0m1 has quit [Ping timeout: 245 seconds]
captn3m0 has joined #nixos
h0m1 has joined #nixos
<o1lo01ol1o>
clever: Ok, so I have a CI job that needs to check the validity of a credential against an HTTP endpoint, does that mean the whole job needs to be put in to a fixed-output derivation?
<clever>
o1lo01ol1o: and a fixed-output drv only runs once for a given outputHash
<samueldr>
CI-kind tests are ran in VM tests with NixOS, where a full HTTP endpoint would be ran
<samueldr>
not trivial to setup though depending on the exact test you need
felixfoertsch23 has joined #nixos
felixfoertsch has quit [Ping timeout: 252 seconds]
<o1lo01ol1o>
samueldr: what do you mean by "VM tests"?
chpatrick has quit [Quit: Connection closed for inactivity]
<gchristensen>
o1lo01ol1o: this isn't a very good use case for a Nix build / hydra
hmpffff_ has joined #nixos
<o1lo01ol1o>
gchristensen: right, I'm getting that impression. I had hoped to send a could GETs to REST endpoints along with the pure tests that were run. I suppose if it's too onerous, I'll just have to put them off until the staging tests run.
hmpffff has quit [Ping timeout: 265 seconds]
lovesegfault has joined #nixos
<DigitalKiwi>
can i build a nixpkgs with a specific compiler version
<DigitalKiwi>
trying to find a bug in kicad that is possibly related to the compiler version used...
<samueldr>
gcc7Stdenv, gcc6Stdenv, etc, can be used instead of stdenv
<samueldr>
nix-build -E 'with import ./. {}; hello.override({ stdenv = gcc6Stdenv; })' # for example
Guanin_ has quit [Remote host closed the connection]
orivej has joined #nixos
drakonis1 has quit [Quit: WeeChat 2.6]
don_quijote[m] has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
<aleph->
Hmm, anyone here using the buildbot service? Curious what option I would set to include a plugin? Planning to build a gitea plugin for buildbot I'm assuming I'd pass it in via python packages for the master?
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #73849 → WIP: Merge master into structured attrs → https://git.io/Je62n
o1lo01ol1o has quit [Remote host closed the connection]
<lopsided98>
aleph-: you should be able to set "services.buildbot-master.package" to "buildbot.withPlugins [ your-plugin ]"
<fresheyeball>
for some reason "light" now requires sudo
<fresheyeball>
programs.light.enable = true
<fresheyeball>
can I make it not sudo somehow?
<fresheyeball>
this messes up my xmonad
<fresheyeball>
plus why should adjusting brightness require sudo
<fresheyeball>
that seems silly
<aleph->
lopsided98: Gotcha, and my plugin can just be referenced as pkgs.PLUGIN_NAME? Planning to just build locally and import into my nix store. So it won't be in the mainline nixpkgs tree
<samueldr>
>> The light module no longer uses setuid binaries, but udev rules. As a consequence users of that module have to belong to the video group in order to use the executable (i.e. users.users.yourusername.extraGroups = ["video"];).
<samueldr>
part of the 19.03 release notes
<fresheyeball>
oh nice
<lopsided98>
aleph-: You can reference it however you want. If it is part of an overlay you can access it from "pkgs"
<lopsided98>
Also services.buildbot-master.pythonPackages should work as well - withPlugins basically does the same thing, except using a wrapper
<fresheyeball>
samueldr++
<{^_^}>
samueldr's karma got increased to 134
cjpbirkbeck has joined #nixos
fresheyeball has quit [Quit: WeeChat 2.6]
aleph- has quit [Quit: WeeChat 1.6]
mog has quit [Quit: im quiting!]
felixfoertsch23 has quit [Quit: ZNC 1.7.3 - https://znc.in]
felixfoertsch has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
ddellaco1 has joined #nixos
ddellacosta has quit [Read error: Connection reset by peer]
rardiol has quit [Ping timeout: 265 seconds]
mog has joined #nixos
dansho has joined #nixos
don_quijote[m] has left #nixos ["User left"]
domogled has joined #nixos
justanotheruser has quit [Ping timeout: 240 seconds]
ddellaco1 has quit [Ping timeout: 276 seconds]
zupo has joined #nixos
mexisme has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixops-aws] @bhipple opened pull request #18 → Cleanup release.nix and setup.py; bump to 19.09 in CI → https://git.io/Je62R
aleph- has joined #nixos
Rusty1 has quit [Quit: Konversation terminated!]
hmpffff_ has quit [Quit: nchrrrr…]
Forkk has joined #nixos
mexisme has joined #nixos
justanotheruser has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 265 seconds]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
kleisli has quit [Ping timeout: 240 seconds]
<lovesegfault>
How can I start a nix-shell with all of rustPackages' pkgs?
<lovesegfault>
cc. clever
Lears has joined #nixos
reallymemorable has joined #nixos
nexgen has joined #nixos
aveltras has joined #nixos
domogled has quit [Ping timeout: 265 seconds]
noudle has joined #nixos
palo1 has joined #nixos
palo has quit [Ping timeout: 240 seconds]
palo1 is now known as palo
zupo_ has joined #nixos
zupo has quit [Ping timeout: 265 seconds]
<dminuoso>
Does nixos have a builtin option to set TERM?
<lukego>
I'm trying to use python3Packages.xdot but it seems to be missing a runtime dependency of hicolor-icon-theme. Can I provide that via a wrapper script somehow? Or do I need to use nix-shell?
<clever>
Atrak: this expression will compile to a package with yaml2json and json2yaml binaries
<lovesegfault>
clever: cargo:warning=couldn't execute `llvm-config --prefix` (error: No such file or directory (os error 2))
<lovesegfault>
argh!
<lovesegfault>
,locate llvm-config
Ariakenom has joined #nixos
<{^_^}>
Found in packages: llvm, llvm_4, llvm_5, llvm_6, llvm_8, llvm_35, llvm_39, llvm-polly, emscriptenfastcomp, llvmPackages.bintools, llvmPackages.llvm-polly
<lovesegfault>
,find llvm-config
<{^_^}>
,find is temporarily unimplemented
<lovesegfault>
,search llvm-config
<Atrak>
clever: but is json the atribute set?
<Atrak>
like, there are no ":" right?
<Atrak>
I'm sorry, I'm little bit confused
<notgne2>
honestly last time I needed to turn a YAML file into a Nix expr I just used search and replace
<notgne2>
it took a lot of messing around
__monty__ has joined #nixos
<Atrak>
:/ too bad
<clever>
Atrak: builtins.fromJSON turns a json object into a nix set
<Atrak>
I have a loki configuration and would like to move it into an attribute set
<notgne2>
I think it's trivial to parse YAML so you could just import the file, and if you really want it to be Nix you can probably search for some kind of Nix expression generator or write some primative one of your own
<clever>
Atrak: to start with, have you ran yaml2json on the file?
<Atrak>
yes, I did that and got json
<clever>
Atrak: now use `builtins.readFile ./foo.json` in nix, to get the whole json as a string
<{^_^}>
[nixpkgs] @lukego opened pull request #73856 → yosys-withGui: New wrapper derivation with GUI runtime dependencies → https://git.io/Je6Vj
nschoe has joined #nixos
asheshambasta has joined #nixos
smatting has joined #nixos
<asheshambasta>
I've upgraded my nixos install to 19.09. I was running 19.03 with kernel 5_1 earlier, which was stable. However, with 19.09 all supplied kernel versions in linuxPackages on this channel make my system unstable. How do I go back to 5_1 without downgrading to 19.03?
<notgne2>
asheshambasta: you can import the older nixpkgs inside your nix config
<notgne2>
the easiest way is probably to add it as a channel `sudo nix-channel --add [old nixpkgs] oldpkgs`
<clever>
asheshambasta: 5.1 was removed from 19.09, because it was due to be deprecated within the life of 19.09
<notgne2>
then in your Nix config you can do `old = import <oldpkgs> {}`
<asheshambasta>
I'm still getting `error: assertion failed at /nix/store/11py7g6w0dih7hkcvy3c66qnfl1ckl3p-oldpkgs-19.03.173663.6d448d7fbd6/oldpkgs/pkgs/os-specific/linux/prl-tools/default.nix:9:1
<asheshambasta>
`
<clever>
asheshambasta: what did you set kernelPackages to?
<asheshambasta>
clever:
<asheshambasta>
boot.kernelPackages = oldpkgs.linuxPackages_5_1; # no longer available on the 19.09 channel (heard on IRC that the non-LTS versions got removed)
<chloekek>
What can I do when fetchTarball gives a different hash than nix-prefetch-url --unpack for the same URL that gives a .tar.gz?
<clever>
chloekek: run `diff -r` on the 2 store paths
logzet has joined #nixos
o1lo01ol1o has quit [Ping timeout: 240 seconds]
<clever>
asheshambasta: and there is no trace of hardware.parallels in hardware-configuration.nix?
<clever>
asheshambasta: try `hardware.parallels.package = pkgs.hello;` to make it shut up?
<chloekek>
clever: only one of them seems to be in the Nix store.
<chloekek>
clever: I will just use fetchurl and write a custom unpackPhase, thanks.
<clever>
chloekek: pkgs.fetchzip unpacks for you
<asheshambasta>
clever: no, no mention in hardware-configuration.nix
<clever>
chloekek: if you give fetchTarball the hash it wants, then it will be in the nix store, and then you can diff to figure things out
<clever>
asheshambasta: try `hardware.parallels.package = pkgs.hello;` then
<asheshambasta>
clever: that also doesn't help I'm afraid
<asheshambasta>
I can probably downgrade back to 19.03, I guess
<clever>
asheshambasta: thats weird, what exactly is crashing if you use the default kernel?
<asheshambasta>
clever: its hard to detect, its something to do with ASRock Taichi X399 mobo.
<clever>
asheshambasta: anything obvious in dmesg?
Ariakenom has quit [Quit: WeeChat 2.6]
<asheshambasta>
nothing that I could find, the issue is that this happened with older kernels, and it completely stopped with 5_1 and then started recurring again with 5_3 (latest in 19.09)
<notgne2>
I have the ASRock Taichi X399
<notgne2>
so I doubt that's the issue
<asheshambasta>
notgne2: do you have the random system freeze issues?
<asheshambasta>
or have you had them in the past?
<notgne2>
nope, only issue seems to be some random wifi errors on startup
Ariakenom has joined #nixos
<notgne2>
I've been on both 5.1 and 5.3 and had it work
<asheshambasta>
it could also be a faulty memory module, I guess, or something with my hw in general
sigmundv has joined #nixos
<{^_^}>
[nixpkgs] @kirelagin opened pull request #73858 → multitime: init at 1.4 → https://git.io/Je6wS
<asheshambasta>
notgne2: my system just randomly freezes and the only option is a hard poweroff
<clever>
asheshambasta: i had similar, it turned out to be a firmware bug in my ssd
<notgne2>
the only issue I've encountered on a later kernel is a weird unresolved issue where amdgpu drivers and 5.3 will make the system fail to boot
<asheshambasta>
clever: how did you manage to update it? fwupdmgr seems to find no updates for my hw.
<clever>
asheshambasta: the windows only (ugh) utility to update the firmware just fails with "unknown error" (double ugh)
<clever>
asheshambasta: so i just retired the SSD, and moved my zfs pool purely to nvme
<asheshambasta>
I'm not using an ssd, just nvme
captn3m0 has quit [Ping timeout: 276 seconds]
<asheshambasta>
notgne2: would you mind sharing your hardware-configuration.nix and the related snippets in configuration.nix?
alexherbo2 has joined #nixos
<notgne2>
sure, 1 sec
orivej has quit [Ping timeout: 240 seconds]
<asheshambasta>
the issue is also that there's no direct trace of a hard crash on the linux kernel, and sometimes, the BSOD starts looking like a good idea
<clever>
asheshambasta: linux has a kernel panic instead of a bsod, but modern gui layers prevent the panic from being visible
<clever>
asheshambasta: the even more modern gpu drivers (kms, kernel mode switching) are suppose to resolve that issue, but your driver has to support it
bahamas has quit [Ping timeout: 265 seconds]
jgt1 is now known as jgt
orivej has joined #nixos
<asheshambasta>
notgne2: hardware-configuration.nix looks identical, hardware-related-configuration has some flags; are you using a radeon and an nvidia card together?
<notgne2>
the radeon flags are leftover from when I was trying to make vulkan work on my R7 260x, I have a GTX 1080 right now
<clever>
thats one nice thing with nixos, if you remember to clean that option out, all traces of that gpu driver are gone
<asheshambasta>
yeah
<clever>
ubuntu has serious trouble changing gpu drivers back and forth that easily
<asheshambasta>
I cannot seem to find resources on properly configuring ati-radeon gpu's though
<clever>
asheshambasta: i'm using videoDrivers = [ "amdgpu" ];
<notgne2>
video drivers are honestly pretty badly documented in NixOS beyond the obvious few mentions
<notgne2>
clever: does vulkan work for you currently
<asheshambasta>
notgne2: well, yeah. A lot of the documentation is things you scrape off google etc.
Makaveli7 has quit [Quit: WeeChat 2.6]
<clever>
notgne2: what did vulkan do again?
<notgne2>
it's an opengl-like thing, it's needed to run DX12 windows games
<clever>
notgne2: ah, i dont think ive tried using it
<notgne2>
for me before I added those kernelParams `vkcube` just segfaulted, and wine games would complain about missing drivers
<clever>
and the last windows game i had working has been unplayable after the last update
<{^_^}>
[nixpkgs] @FRidh pushed 74 commits to staging-19.09: https://git.io/Je6rk
<clever>
they changed the version of the unity engine, and it conflicts with proton, so the mouse pointer moves violently, every time i click
<clever>
which makes it imposible to do anything in the game
<notgne2>
I remember getting vulkan working eventually (but my changes made my friend with the same card's computer stop booting)
bahamas has joined #nixos
<notgne2>
and I still never got toontown working, and I can't tell if the issue is in the NixOS opengl driver stuff or the packages I'm providing to it in the shell
dema has joined #nixos
psyanticy has joined #nixos
gxt has joined #nixos
<asheshambasta>
anyway, need to reboot
asheshambasta has quit [Remote host closed the connection]
<dema>
Hi. I'm trying to create a package and wanted to use nix-shell to drop into build environment, but I'm using zsh and all build* functions are gone. Is there any way to force nix-shell to use bash? I tried setting NIX_BUILD_SHELL=`which bash` nix-shell but it didn't work. Am I missing something?
<clever>
dema: can you pastebin the output of `strace -f -e execve nix-shell -p` ?
<asheshambasta>
thanks a lot for the help clever & notgne2
Okinan has quit [Quit: Konversation terminated!]
alexherbo2 has quit [Quit: Ping timeout (120 seconds)]
alexherbo2 has joined #nixos
Okinan has joined #nixos
bahamas has quit [Ping timeout: 240 seconds]
dema has joined #nixos
sondr3 has joined #nixos
iyzsong has joined #nixos
jgt has joined #nixos
<dema>
Hi! I have one more question about creating packages. I added new package, but used some unrelated package as an example. I edited pname and version attributes, but forgot to change url in fetchurl. And now I have a derivation for source file with correct name and version but wrong contents https://gist.github.com/Dema/3ec2c9bb2f03ec7e4b79f6f31bd7c24c
<dema>
It doesn't refetch file even after I changed sha256
<dema>
What can I do with it?.. :)
<qyliss>
dema: try setting sha256 to stdenv.lib.fakeSha256
<__monty__>
You changed the url *and* the sha and it didn't refetch?
<__monty__>
That shouldn't happen afaik?
<__monty__>
What you described sounds like you *didn't* change the sha.
fendor has joined #nixos
kleisli has joined #nixos
Okinan has quit [Quit: Konversation terminated!]
<dema>
I don't really remember in what order I changed things, I was experimenting a lot :)
<clever>
dema: if the hash is valid for something else, then nix may continue to use that something else, and ignore the url
<clever>
dema: i always set my editor to replace mode, and zero out a few digits
Okinan has joined #nixos
<dema>
Aa..
<clever>
a fixed-output derivation uses the name and hash to compute what $out will be
<clever>
and if that $out already exists, it just uses it
<qyliss>
lib.fakeSha256 is just a string with all zeros
<clever>
even if its source for something entirely different
<qyliss>
which should never be the hash of anything
<qyliss>
and so is useful for debugging this sort of thing
<clever>
qyliss: once it is the hash of something, its time to abandon that hash algo :P
<qyliss>
indeed
<dema>
damn.. You are right! This was wrong sha :) I had "4d114861d5ef2063afd06ef38885ec46822e90e7b4ea38c864f76493451f9cf3" but when I set to fakeSha it complained that it should be "1ycb2ayd4irbaa1wg3ca7j3i1pjw51klhcxb0q2w0madiyfzg5yb"
<dema>
yep, I set the correct hash, everything works! Thanks again!
<__monty__>
So it's extra confusing cause "0x63afd06ef38885ec46822e90e7b4ea38c864f76493451f9cf3" would be a valid base32 hash >.<
<ggpeti>
Hi, how is everyone? I am looking for someone to review and possibly merge https://github.com/NixOS/nixpkgs/pull/73720. It's a simple package with a default buildPhase. I have included a nixos test to make sure that the package works well. Have a great day!
<{^_^}>
#73720 (by ggPeti, 2 days ago, open): pgsidekick: init at unstable-2014-11-23
o1lo01ol1o has joined #nixos
werner291 has quit [Quit: werner291]
o1lo01ol1o has quit [Ping timeout: 250 seconds]
mexisme has quit [Ping timeout: 276 seconds]
adamtkh has quit [Quit: Ping timeout (120 seconds)]
<{^_^}>
#73720 (by ggPeti, 2 days ago, open): pgsidekick: init at unstable-2014-11-23
<{^_^}>
[rfcs] @edolstra merged pull request #60 → Make the detailed design terse by separating examples → https://git.io/JeKfF
<{^_^}>
[rfcs] @edolstra pushed commit from @Ericson2314 to master « Make the detailed design terse by separating examples (#60) »: https://git.io/Je6ie
ThatDocsLady_ has quit [Read error: Connection reset by peer]
mariel__ has joined #nixos
<ggpeti>
lol, pull request number SIXTY just got merged
morr has joined #nixos
<ggpeti>
ah nevermind, that's the rfcs repo
<Yaniel>
on nixpkgs that definitely would be a funny situation
<eayus>
I'm trying to build a personal idris project which consists of two packages: a library and a binary. I am having some trouble installing the library so that it the binary can access it - I have written the deriviation for the library following https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/idris.section.md , which installs it
<eayus>
to the nix-store. However, when I start a REPL with access to this library (using "idris -p mylib") the library is not found. "idris --listlibs" doesn't show it either. After investigation I've found that idris only searches its own /nix/store directory for libraries, and the my library was installed to its own /nix/store directory. Anyone has any
<eayus>
ideas?
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<{^_^}>
brodul: Just ask your question. It's the best way to know if anybody can help. Or look at other ways of getting in touch with the Nix community here: https://nixos.wiki/wiki/Get_In_Touch
<brodul>
I get 'Kernel driver is not accesible'
bahamas has quit [Ping timeout: 252 seconds]
<brodul>
I have the ' virtualisation.virtualbox.host.enable = true;
<{^_^}>
[nixpkgs] @jonringer merged pull request #73842 → python3Packages.tensorboard: add wheel as runtime dep → https://git.io/Je6EZ
<{^_^}>
[nixpkgs] @jonringer pushed to master « python3Packages.tensorflow-tensorboard: add wheel as runtime dep »: https://git.io/Je6MP
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Ariakenom>
Im having some monitor issues. leaving everything at default gets the correct resolution. just running xrandr myself with --auto sets the correct resolution. but when I specify the order with nixos and xrandrHeads then I get the 1080 for my 1440 displays
<Denommus>
I'm getting an error when trying to run nixops deploy for an existing deployment
<Denommus>
error: I don't know an AMI for region ‘sa-east-1’ and platform type ‘x86_64-linux’
<Denommus>
aminechikhaoui: ... but the deployment already exists
<Denommus>
I have been using the region for months
<Denommus>
was the support suddently dropped?
Neo-- has joined #nixos
<aminechikhaoui>
oh looks like only 19.09 doesn't have that region
<Denommus>
I'm in nixpkgs unstable
ixxie has joined #nixos
timon37 has joined #nixos
Neo-- has quit [Ping timeout: 252 seconds]
timon37 has quit [Remote host closed the connection]
timon37 has joined #nixos
<aminechikhaoui>
Denommus I think if you set nixos 19.03 it should work but that's not ideal, we need to generate the images again and see why sa-east-1 wasn't generated the last time
timon37 has quit [Remote host closed the connection]
timon37 has quit [Remote host closed the connection]
<evanjs>
How do I get channel imports from just an expression working? I thought I could just replace `import <nixpkgs-unstable>` with `import (fetchTarball...` but it's still not showing up in the nix_path
timon37 has joined #nixos
<evanjs>
figure I need to add it there manually, but I can't remember how I did it before...
timon37 has quit [Remote host closed the connection]
timon37 has joined #nixos
<infinisil>
evanjs: Why would it show up in NIX_PATH?
timon37 has quit [Remote host closed the connection]
timon37 has joined #nixos
<evanjs>
infinisil: well I don't think it would without any extra work, I'm just trying to remember how I was able to supplement `nix-channel --add` with this before. Given I remember correctly that I was even able to do so
rardiol_ has quit [Ping timeout: 265 seconds]
<infinisil>
supplement? Not sure what your goal is
timon37 has quit [Remote host closed the connection]
timon37 has joined #nixos
<evanjs>
To not have to worry about nix-channels, however feasible that is. Honestly, once I setup hydra like clever keeps recommending, juggling these channels won't really be such a big deal, so maybe I should just wait until then
<infinisil>
evanjs: If you want it to be in NIX_PATH then you need to set `nix.nixPath`
<evanjs>
(he mentioned I can just just add my own channel from hydra and etc)
Rusty1 has quit [Ping timeout: 240 seconds]
timon37 has quit [Remote host closed the connection]
timon37 has joined #nixos
<infinisil>
evanjs: What the file there allows you to do is to use `pkgs.unstable.foo` from within your nixos configuration
timon37 has quit [Remote host closed the connection]
timon37 has joined #nixos
<evanjs>
infinisil: right, reading over it again I realize why it doesn't exactly work as what I am trying to rework it into. It's adding other _existing_ channels to a single package set I have. It's not actually adding any channels
<evanjs>
*making other channels accesible from a single set, etc
timon37 has quit [Remote host closed the connection]
timon37 has joined #nixos
timon37 has quit [Remote host closed the connection]
timon37 has joined #nixos
timon37 has quit [Remote host closed the connection]
timon37 has joined #nixos
nuncanada has joined #nixos
timon37 has quit [Remote host closed the connection]
timon37 has joined #nixos
timon37 has quit [Remote host closed the connection]
timon37 has joined #nixos
boxscape has joined #nixos
timon37 has quit [Remote host closed the connection]
<talqu>
hi, I want to click my external usb keyboard or usb mouse and wake up the laptop from suspend. How do i config this `echo enabled > /sys/bus/usb/devices/usb1/power/wakeup`?
timon37 has quit [Remote host closed the connection]
timon37 has joined #nixos
timon37 has quit [Remote host closed the connection]
timon37 has joined #nixos
LysergicDreams has quit [Quit: leaving]
timon37 has quit [Client Quit]
habbah_ is now known as habbah
habbah has quit [Changing host]
habbah has joined #nixos
mariel__ has joined #nixos
zupo has joined #nixos
sweep has quit [Changing host]
sweep has joined #nixos
sweep is now known as genesis
<Denommus>
aminechikhaoui: will that be done in the foreseeable future?
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
Chiliparrot has joined #nixos
cjpbirkbeck has joined #nixos
mexisme has joined #nixos
domogled has joined #nixos
fusion809 has joined #nixos
Jackneill has quit [Remote host closed the connection]
Norimo has quit [Quit: Norimo]
dema has quit [Ping timeout: 240 seconds]
Rusty1 has joined #nixos
Norimo has joined #nixos
bahamas has quit [Ping timeout: 240 seconds]
<pikajude>
how can i set a nixos user's shell to be an FHS environment?
<lordcirth>
pikajude, like, a whole chroot where everything is where FHS says, no symlinks?
<pikajude>
potentially yes
<pikajude>
what i really want right now is /lib/ld-linux
<pikajude>
because vscode-server installs extensions that are linked with it
<pikajude>
and it's getting very tedious to go back in and patchelf them every time something updates
domogled has quit [Quit: domogled]
<adisbladis>
pikajude: You could just symlink that path, or run vscode in an FHS wrapper
<pikajude>
oh yeah, i guess i could symlink it
<pikajude>
i'm not sure how to run vscode-server in a wrapper though
jjakob has joined #nixos
<jjakob>
Hi. in which package is "dig" located?
<jjakob>
something from bind? how about whois?
ddellaco1 has joined #nixos
<niso>
jjakob: dnsutils
<adisbladis>
pikajude: Gimme a sec :)
<pikajude>
okay
<betawaffle>
i feel like the nix manual is slightly misleading about nix expressions. it says they "instruct Nix how to build packages" but they can do a lot more than that, right? or am i just thinking too narrowly about what a "package" is?
<tilpner>
jjakob: You can use nix-index/nix-locate to answer such questions in the future
<niso>
betawaffle: you are right, they can do a lot more
<tilpner>
Exists at top-level in recent versions at least
<gchristensen>
oh neat
<tilpner>
jjakob: What command did you run?
smatting has quit [Ping timeout: 245 seconds]
<jjakob>
how do I find the right package to install then, I did nix-env -qa dnsutils (this is nix-on-droid)
<catern>
pikajude: if you figure out how to get vscode to run a specific vscode-server binary instead of doing its wacky "wget the binary" thing, please post about it or PM me or something, I'm very interested because I have a fair number of users who want to use this vscode stuff on Nix
<tilpner>
jjakob: FWIW, nix search doesn't work on my phone either
<FRidh>
aanderse: pikajude: catern: about vscode remote. Maybe a nixos or home-manager service that monitors the ~/.vscode-server/bin/node and ensures it functions?
<jjakob>
I'm trying the nix-on-droid fork of termux now but yeah
<catern>
FRidh: that sounds a bit hacky, really vscode shouldn't be installing its own server, but rather just using one already installed on the system - it's better to fix this by modifying vscode
<FRidh>
catern: clearly, but we can't
<jjakob>
so neither nix-env -qa nor nix search work on nix-on-droid
<jjakob>
this is the first thing I started with on nix so I might be missing something basic
<tilpner>
No, it does say it's alpha software
<tilpner>
Unfortunately nix-index won't be much use to you locally, because the URL is hardcoded
<jjakob>
well I can try termux
<tilpner>
jjakob: And do what?
<jjakob>
tilpner: I thought termux uses nix as nix-on-droid is a fork of it
<tilpner>
No, nix-on-droid is a fork of termux that adds Nix to the termux environment
<tilpner>
Termux itself does not come with Nix
<jjakob>
oh, duh.
<adisbladis>
Wat
<adisbladis>
This vscode-remote stuff is crazy
MmeQuignon has joined #nixos
<adisbladis>
Also it seems to be non-free?
psyanticy has quit [Quit: Connection closed for inactivity]
<catern>
FRidh: uh, why can't we...?
lovesegfault has quit [Quit: WeeChat 2.6]
jgt has joined #nixos
<catern>
well, I wouldn't because I don't personally care *that* much, but someone certainly could submit a patch to vscode
<catern>
to make this optionally work right
<FRidh>
catern: it's a plugin that's pulled in through vscode's plugin manager. It's not managed by nix at all
drakonis_ has joined #nixos
<catern>
use nix to manage plugins :) or at least this one executable
<FRidh>
catern: and this is already been discussed on the remote developmt tracker, and they're not interested in providing something that works for nixos users
<catern>
FRidh: oh interesting, could you point me to that issue?
<catern>
(this is affecting more than just nixos users - my users are on old versions of Debian and use Nix to get more recent packages - but vscode's server doesn't work because it's not from Nix and is incompatible with the old Debian)
bahamas has quit [Read error: Connection reset by peer]
wildtrees has quit [Quit: Leaving]
<catern>
FRidh: ah, very interesting, that's a good workaround
<kreisys>
My hydra jobset **evaluation** fails with `hydra-eval-jobs returned exit code 99: (no output)`. `release.nix` builds fine with `nix-build` locally. How do I debug this?
alexherbo2 has joined #nixos
<tilpner>
kreisys: Check service logs
<tilpner>
Most importantly hydra-evaluator.service and later perhaps hydra-queue-runner.service
<kreisys>
It gets lost in all the noise
<kreisys>
Any way to run the evaluator interactively for that jobset specifically?
aminechikhaoui has quit [Ping timeout: 240 seconds]
drakonis has quit [Quit: Leaving]
Norimo has quit [Remote host closed the connection]
<boogiewoogie>
hey, can I somehow 'save' a generation from being garbage collected permanently? there's an older one where some software I sometimes use works that doesn't on the current. I'd just like to save one specific gen (immunize it to gc, if you will) for the sole purpose of using the software and otherwise gc everything as usual
Rusty1 has quit [Remote host closed the connection]
alexherbo2 has quit [Ping timeout: 240 seconds]
endformationage has quit [Ping timeout: 240 seconds]
pingveno[m] has quit [*.net *.split]
imj[m] has quit [*.net *.split]
Smith[m] has quit [*.net *.split]
frislie[m] has quit [*.net *.split]
aterius has quit [*.net *.split]
arturo[m] has quit [*.net *.split]
shibboleth has quit [*.net *.split]
jb55 has quit [*.net *.split]
ng0 has quit [*.net *.split]
phreedom has quit [*.net *.split]
oida has quit [*.net *.split]
klntsky has quit [*.net *.split]
oxford has quit [*.net *.split]
andreas303 has quit [*.net *.split]
galaxie has quit [*.net *.split]
xelxebar has quit [*.net *.split]
<immae>
boogiewoogie: I don’t know the details very well, but you could create a new "root" that points to the generation you want to keep. It would not be under the same name, but all the dependencies would be kept. As for how to do that, I’m not sure but man nix-store seems to say that --add-root does something like that?
aminechikhaoui has joined #nixos
irl25519 has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<boogiewoogie>
immae: i'll look into that, thanks!
<ij>
I want to try out kubernetes with multiple nodes locally, preferably in VMs. I know nixos can make VMs of itself – would that be the way to go to try this out?
<thoughtpolice>
More recent versions can simulate multiple nodes, and conveniently you only need Docker for it
<fuzen>
I am having issues packaging a python python application. Is there any way I can bundle a python app without the setup.py and specify which python file to run from the src? Here is my nix file https://gist.github.com/Fuzen-py/a8ee759f762ce22040357b943e2bd927
<boogiewoogie>
hmm, so from what I understand, I can add a gcroot for an older generation and keep the dependencies, but I can't boot into it after gc'ing (since the profile path of the generation --its current gcroot which also makes it bootable into-- will still be removed. I need that though, since it's not just dependencies I need from the older gen.
<{^_^}>
[nixpkgs] @FRidh pushed to master « python3: add pythonForBuild as parameter, fixes python3Minimal »: https://git.io/Je67Q
<ij>
thoughtpolice, how does that even work? will it have docker in docker? so the node container is privileged mode?
drakonis_ has quit [Ping timeout: 245 seconds]
irl25519 has quit [Quit: My computer has gone to sleep. ZZZzzz…]
leotaku has quit [Ping timeout: 240 seconds]
Ariakenom_ has joined #nixos
nexgen3 has joined #nixos
klntsky has joined #nixos
eeva has quit [Read error: Connection reset by peer]
irl25519 has joined #nixos
Czen1 has joined #nixos
jonafato- has joined #nixos
duck_ has joined #nixos
satoshi has joined #nixos
infinisi1 has joined #nixos
mog- has joined #nixos
ng0 has quit [Ping timeout: 260 seconds]
pie_ has joined #nixos
amir_ has joined #nixos
georges_ has joined #nixos
Ralith__ has joined #nixos
ajp_ has joined #nixos
eon`_ has joined #nixos
twistedjoe_ has joined #nixos
evanjs- has joined #nixos
lux3 has quit [Ping timeout: 252 seconds]
ddima__ has joined #nixos
ng0 has joined #nixos
fendor has quit [Ping timeout: 240 seconds]
alp- has joined #nixos
lux3 has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
nexgen has quit [Remote host closed the connection]
evanjs has quit [Remote host closed the connection]
pie__ has quit [Remote host closed the connection]
Thra11 has quit [Ping timeout: 240 seconds]
mog has quit [Ping timeout: 240 seconds]
eon` has quit [Ping timeout: 240 seconds]
twistedjoe has quit [Remote host closed the connection]
codezero has joined #nixos
mg- has quit [Ping timeout: 240 seconds]
mg- has joined #nixos
ddima_ has quit [Ping timeout: 240 seconds]
mog- is now known as mog
Ralith_ has quit [Ping timeout: 240 seconds]
<boogiewoogie>
on a related note: I'd like to somehow get a gcroot from just a shell.nix and thus keep the dependencies it invokes. any ideas? apart from naively looking up the store paths and adding all of them as roots :p
omnipotententity has joined #nixos
<boogiewoogie>
I'm using it to build something locally, since the software's config files would be installed into the nix store alongside it and not be writable
<boogiewoogie>
so I can't point to a derivation
omnipotententity is now known as Guest72295
<boogiewoogie>
with locally i mean raw, not using nix-build
<atlas_>
is `warning: unable to download 'https://nixos.org/channels/nixpkgs-unstable': SSL peer certificate or SSH remote key was not OK (60); retrying in 2531 ms` a common issue? I'm trying to run `nix-channel --update`.
<samueldr>
>> builtins.fetchurl and builtins.fetchTarball now support sha256 and name attributes.
<tilpner>
atlas_: I assume nix-channel no longer gives the SSL errors?
<atlas_>
which Safari shows as having a valid SSL certificate
<atlas_>
tilpner: the nix-channel behavior hasn't changed :(
<tilpner>
Huh
<tilpner>
Could they be using different trust roots?
<tilpner>
No, that's not how the error sounds
<atlas_>
I've been messing with the web server caddy, which does automatic SSL certification. Could this have messed up some sort of local configuration?
<samueldr>
something that I don't know how to try, would be to figure out which curl is used by nix, and use that curl's curl CLI
ng0 has quit [Quit: Alexa, when is the end of world?]
<jtojnar>
`nix-instantiate -A ninja.src` at e89b21504f3e61e535229afa0b121defb52d2a50 prints the missing drv file `/nix/store/pgjrcklmdjxqdik1a2vmr4lbv4vlkzdn-source.drv` but it is not added to the store
<jtojnar>
does anyone have the file?
klntsky has quit [Remote host closed the connection]
red[evilred] has quit [Quit: Idle timeout reached: 10800s]
<jtojnar>
thanks, will try to get this to the store
<jtojnar>
since this is what Nix is complaining about missing
noudle has quit []
<boogiewoogie>
hey, still on this: I'm trying to make an older generation a gcroot that's immune to getting collected with the -d flag. does anyone have an idea how?
<tilpner>
jtojnar: I don't know what would cause this, my only vague guess is store corruption in the form of the nix db getting out of sync with what files are actually present
<boogiewoogie>
from how I understand it, doing `nix-store --add-root` lets me keep the derivations in the store, but it doesn't let me boot into it as it's not in the profile list anymore, but just some regular gcroot
<tilpner>
atlas_: That might be wherever you installed Nix to
<tilpner>
atlas_: It's a common while building, built artifacts are installed into prefix/destdir
<tilpner>
*common term
justanotheruser has quit [Ping timeout: 240 seconds]
<atlas_>
tilpner: I installed to /nix (really /org/nix and symlinked to /nix; it's the current hack for macOS) but I don't have a /nix/etc/ or /nix/bin
mexisme has quit [Ping timeout: 252 seconds]
<tilpner>
I can't really help you there, never used macOS :/
<atlas_>
does everyone else have a /nix/etc/ or /nix/bin?
<tilpner>
No, that's the first I've heard someone try to use them
<tilpner>
Conventionally, /nix only contains two directories, /nix/store, and /nix/var
<tilpner>
But then again, I'm not familiar with the workarounds Apple may force on people
<atlas_>
that's what I have as well. The above link suggests that I should have a /nix/etc and /nix/bin
<tilpner>
How exactly did you install Nix?
<jtojnar>
I cannot even rebuild to configuration making store writable
<jtojnar>
error: while evaluating the attribute 'buildCommand' of the derivation 'nixos-system-kaiser-20.03.git.ef8e0d1' at /home/jtojnar/Projects/nixpkgs/nixos/modules/system/activation/top-level.nix:102:5:
<jtojnar>
opening file '/nix/store/pgjrcklmdjxqdik1a2vmr4lbv4vlkzdn-source.drv': No such file or directory
<atlas_>
the only (possibly) significant difference is that /nix is really a symlink, but I don't think that's relevant to this problem
<tilpner>
How does /org/nix look like (tree output)?
<tilpner>
jtojnar: Any improper shutdowns/flaky drives or experimental Nix versions lately?
<jtojnar>
tilpner only running out of disk space ten times today (EXT4)
fendor has quit [Ping timeout: 252 seconds]
<tilpner>
Oh, and you mentioned that weird fsck freeing space?
<tilpner>
That sounds quite suspicious
<jtojnar>
yup
v0|d has quit [Ping timeout: 265 seconds]
<tilpner>
It might be possible to fix this manually
<tilpner>
But... nuking and redoing the store is likely to be quicker
<jtojnar>
is it possible to do it from the system? or do I need to switch to live OS?
<tilpner>
I didn't read up, if you haven't the common store repair options, you can still give those a go
<tilpner>
*haven't tried the
<atlas_>
well, here we are. I have no idea what I did, but everything works fine now.
growpotkin has joined #nixos
<tilpner>
Live ISO would be easiest, kexec would work, anything else is black magic
<atlas_>
samueldr++ tilpner++ thank you!
<{^_^}>
samueldr's karma got increased to 136, tilpner's karma got increased to 56
<jtojnar>
tilpner `sudo nix-store --verify --repair` also says it cannot repair it
<tilpner>
jtojnar: Was this the only issues nix-store found?
<jtojnar>
yes
<tilpner>
With --verify --check-contents?
<jtojnar>
all other I managed to fix
<jtojnar>
will try check contents
<jtojnar>
there are quite a few of hash mismatches
<{^_^}>
[nixpkgs] @c0bw3b opened pull request #73888 → Treewide: fix more URL permanent redirects → https://git.io/Je6Ff
<tilpner>
jtojnar: If this one path was the only one, I might suggest unsafe surgery with rw remouting and editing the sqlite db directly
<tilpner>
But you'll never get the feeling of your store being broken away, and wonder at every failure if it's still corrupted
<notgne2>
I've had repair tell me it cannot repair before, and had things start working again afterwards anyway
<tilpner>
Well, maybe I was just speaking for myself
<tilpner>
:c
ddellaco1 has joined #nixos
<boogiewoogie>
is there a way how I can add all the specific derivations getting pulled in when entering a nix-shell instance gcroots?
<boogiewoogie>
as gcroots*
<notgne2>
thankfully I've never really had understand how stores work and get corrupted, it's only happened once on my wife's laptop where I just ran repair a few times, it spat out a bunch of errors and everything has worked ever since
LysergicDreams has quit [Ping timeout: 252 seconds]
<notgne2>
though if something is ever broken beyond repair, it's very easy to just do it all again from scratch
<notgne2>
I recently moved over to a new hard drive, and was happy to simply run `nixos-install` to put my OS on the new drive
thc202 has quit [Ping timeout: 250 seconds]
<jtojnar>
tilpner `sudo mount -o remount,rw,bind /nix/store && sudo cp ninja.drv /nix/store/pgjrcklmdjxqdik1a2vmr4lbv4vlkzdn-source.drv && sudo chmod a=r /nix/store/pgjrcklmdjxqdik1a2vmr4lbv4vlkzdn-source.drv` seems to have fixed the issue
<jtojnar>
or at least nix-store --verify no longer complains
<jtojnar>
thanks for the help
alexherbo2 has joined #nixos
snajpa has left #nixos [#nixos]
<magneticduck>
I added a file to the nix store with `nix-store --add-fixed sha256 ...`. now, I want to make a requireFile point to it. I've been querying its hash with `nix-hash --type sha256 /nix/store/...` and using that as the sha256 parameter for requireFile, but I'm getting the error message telling me that the file isn't in the store.
<magneticduck>
am I getting the hash the way I'm supposed to?
<nek0>
hi folks, I fail to find a possibility to determine the number of maxJobs to provide it in the buildPhase inside a derivation. Can somebody help me here?
<tilpner>
nek0: See NIX_BUILD_CORES
<tilpner>
Although that's nix.buildCores instead of nix.maxJobs
<tilpner>
You probably want nix.buildCores though
ogle__ has joined #nixos
<ogle__>
is there any tooling for patching paths within config, shell scripts, etc? I am currently packaging lustre/mofed and theres hundreds of occurences of /bin/ls and the like littered around and I am hoping not to reinvent the wheel heer