info has quit [Read error: Connection reset by peer]
info has joined #nixos
toothbrush has joined #nixos
info has quit [Client Quit]
<toothbrush>
Greetings! I hope it's okay asking here. I've just installed NixOS (noob user) on my Thinkpad which has nvidia+intel graphics. It all seems to work, i setup "optimus", but my battery drains really fast. Is it possible to just disable the nvidia chip and only rely on the intel 620 integrated graphics?
<toothbrush>
As a point of reference, idling the laptop uses about 10W, whereas it's meant to idle around 3W (i have a very minimal XMonad setup, nothing running)
alexherbo2 has quit [Ping timeout: 240 seconds]
<Ashy>
yes it's possible, let me find the example i think it's on the wiki
<{^_^}>
[nixos-homepage] @garbas pushed to integrate-nix-dev « Something is wrong with parallel builds. -j 1 fixes it. »: https://git.io/JUsWS
<hpfr>
is there a way I can edit /etc/hosts without rebuilding? or something to the same effect?
toothbrush has quit [Remote host closed the connection]
<hsngrmpf[m]>
/etc/hosts is just a symlink. Deleting it and recreating the file worked for me.
<hsngrmpf[m]>
But of course this will be reset after reboot/rebuild
orivej has quit [Ping timeout: 240 seconds]
m0rphism has joined #nixos
orivej has joined #nixos
toothbrush has joined #nixos
<toothbrush>
Ashy: okay, setting services.xserver.videoDrivers = [ "intel" ]; disables the NVidia chip. The power draw is still very high though - does the device actually enter a lower power state? Apologies for the noob questions, but i don't know how to go about debugging power issues...
<toothbrush>
Incidentally `sudo powertop` tells me the CPU stays in C3, never going into lower states. This chip apparently supports up to C9. I wonder what's blocking that..
<iqubic>
When I try to log in via lightdm, lightdm tells me that it failed to start the session
thorn__ has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
<thorn__>
howdy, do I have to do anything to be able to use Haskell's Stack? i tried building but it failed saying it couldnt find pg_config, even though its in my path
<iqubic>
anyone know what might be going on with my home-manager issues?
<DigitalKiwi>
use services.tlp.config instead. <-- i think this should say settings not config?
<toothbrush>
I'm just battling a new Thinkpad + NixOS -- battery drain is something awful on account of having an nvidia chip seemingly doing nothing but drawing heaps of power
<toothbrush>
at least that's my current guess
waleee-cl has quit [Quit: Connection closed for inactivity]
<MichaelRaskin>
You should be more specific. What precise command, what is NIX_PATH, do you have channels, where is the checkout you modified
<sephii>
MichaelRaskin: I'm trying to edit the `caddy` module (to get this PR merged https://github.com/NixOS/nixpkgs/pull/86686) to use caddy v2 instead of v1. I tried running `nix-build -A 'config.systemd.units."caddy.service".unit'`. I have channels (`nixos` set to the `nixos-20.03` channel) and I didn't change anything in my NIX_PATH but I can paste it if you need it.
<{^_^}>
#86686 (by filalex77, 17 weeks ago, open): nixos/caddy: add support for Caddy v2
<MichaelRaskin>
Your configuration doesn't enable caddy service, right?
<sephii>
Right.
<sephii>
Ah should I add this file to my imports and enable the service and see if it works correctly?
<MichaelRaskin>
OK. Write a configuration.nix that does. Then add the -I thing: -I nixos-config=/path/to/caddy-enabled-configuration.nix -I nixpkgs=/path/to/edited/checkout/nixpkgs
<MichaelRaskin>
That might build the unit file if you have any plans for testing it via a stand-alone unit file
<sephii>
And then nixos-rebuild switch?
eoli3n_ has joined #nixos
<MichaelRaskin>
Adding an import of just the module file to your main configuration.nix, enabling the service, and doing a nixos-rebuils is also a solid plan, sure
<{^_^}>
#96479 (by doronbehar, 1 week ago, open): nixos-unstable is blocked because of failing luks-format1 test
noudle has quit [Client Quit]
thblt has joined #nixos
o1lo01ol1o has joined #nixos
noudle has joined #nixos
octowan[m] has quit [Quit: Idle for 30+ days]
o1lo01ol1o has quit [Ping timeout: 256 seconds]
kreyren has joined #nixos
alp has joined #nixos
<thblt>
I know nothing about networking. My NixOS laptop knows multiple ethernet networks with different proxy settings. Should I pick the config manually or is there a way for network manager to somehow detect which of the ethenet configs applies?
<thblt>
(A way to identify the network would be the IP the laptop receives, but I guess dhcp runs after NM has activated a connection config)
<sephii>
I'm having issues with nixos modules tests. Running `nix-build foobar.nix -A driver`, `./result/bin/nixos-test-driver` and then `start_all()` and `test_script()` works (all the tests pass), but running `nix-build foobar.nix` fails (the first test doesn't pass). How can I debug this?
hiro99 has quit [Remote host closed the connection]
cosimone has joined #nixos
alp has quit [Ping timeout: 272 seconds]
mmohammadi9812 has quit [Quit: I quit (╯°□°)╯︵ ┻━┻]
ris has joined #nixos
<Extends>
Heyp! I just moved my HM configuration to a nixos module, and I used the new flake system that it implements, but I'm stuck: how can I rebuild my home-manager configuration now ? nix build .#homeManagerConfigurations.config doesn't work, is there another way to do that ?
thblt has left #nixos ["ERC (IRC client for Emacs 27.1)"]
<flokli>
sephii: could it be your tests require network access?
<flokli>
running the test inside a nix derivation (usually) runs with the sandbox enabled, so you don't have network access. Running the driver and invoking the testScript manually doesn't isolate network access
euandreh has quit [Remote host closed the connection]
<zecnate>
New to nix, trying it out as a dependency build system in a dev repo. Is there a way I can calculate the `version` attr of `mkDerivation` based on git tags / revisions?
<sephii>
flokli: yeah, the server returns a 404 instead of the expected 304 in response to the HTTP request. I have no idea why :/
eoli3n_ has joined #nixos
malook has quit [Quit: malook]
<zecnate>
It feels a little bit backwards from the way nix expects to run.
<zecnate>
-but it seems like a very common pattern: "this derivation builds that git repo branch and the version depends on the git state".
mariatsj_ has joined #nixos
<flokli>
not sure I follow
<flokli>
did you look at the returned error message? maybe it provides some insights on the 404
<flokli>
or the caddy logs, if you run it a bit more verbose
<sephii>
Good idea, I'll check the logs after sending the request
<flokli>
:+1:
mariatsji has quit [Ping timeout: 260 seconds]
fendor has joined #nixos
knupfer has joined #nixos
thc202 has joined #nixos
zecnate has quit [Remote host closed the connection]
turlando has joined #nixos
knupfer has quit [Remote host closed the connection]
turion has joined #nixos
alp has joined #nixos
iqubic has left #nixos ["ERC (IRC client for Emacs 28.0.50)"]
iqubic has joined #nixos
<iqubic>
So, I'm running xmonad, and I'd like to change the way that the mouse cursor appears on the screen. I'm not sure how to do this as xmonad doesn't really have a utility for this.
<MichaelRaskin>
xsetroot?
<iqubic>
When should that run?
<iqubic>
I tried xsetroot, but I couldn't get it to run at the right time.
<fendor>
my lorri service seems to be not working. It does not automatically reload shells, I have to manually trigger it via `lorri shell`. How can I debug that behaviour?
<{^_^}>
[nixpkgs] @risicle pushed 2 commits to release-20.03: https://git.io/JUsXu
<LambdaDuck>
I'm having trouble with haskell overlays (using haskellPackages.override) conflicting with each other. Especially when I both have overlays in my ~/.config/nixpkgs/overlays.nix and use packageOverrides in a .nix file for a program.
<LambdaDuck>
It seems like the packageOverrides is completely ignored for some reason. :/
<aleph->
So I'm curious if someone might know the best way to work with shell variables in a ExecStart phase of a systemd service? Trying to read in a file to a shell variable, as the service I try to start needs to read it's data via stdin. However when attempting to read my file into a var I get error such as: `Executable "pass=$(cat" not found in path "/no-such-path"` https://paste.rs/voZ
arjen-jonathan has quit [Ping timeout: 260 seconds]
Darkmatter66 has joined #nixos
orivej has joined #nixos
<clever>
aleph-: ExecStart must be an absolute path to a script/binary, not a shell script
<clever>
aleph-: you want systemd.services.foo.script
<aleph->
Crud
cizra has quit [Read error: Connection reset by peer]
<aleph->
Hmm, so using .script just complained of there being no ExecStart phase :/
cizra has joined #nixos
<clever>
.script goes one level up, not under serviceConfig
<clever>
.script will write the whole thing out to a file, shove a #! on the front, and then set ExecStart to the path of that file
Darkmatter66_ has quit [Ping timeout: 258 seconds]
<aleph->
Ahhhh, doy doy doy
<aleph->
How... clever ;)
xantoz has quit [Read error: Connection reset by peer]
xantoz has joined #nixos
iqubic has quit [Remote host closed the connection]
<evils>
is there a way to patch .gitmodules before fetching submodules?
<avn>
Folks -- anyone other have issues with firefox build -- /nix/store/zp4vhfn31ky68xy0s6mssxh4c90z9v9a-binutils-2.31.1/bin/ld: warning: libmozgtk.so, needed by ../../toolkit/library/build/libxul.so, not found (try using -rpath or -rpath-link)
<{^_^}>
[nixpkgs] @Church- opened pull request #97225 → nixos/step-ca: Adding module for step-ca → https://git.io/JUsSg
ixxie has joined #nixos
<alextee[m]>
hi, does nixos support creating and installing binary packages directly?
<alextee[m]>
something equivalent to dpkg -i package.deb on debian
inkbottle has quit [Quit: Konversation terminated!]
inkbottle has joined #nixos
<nature>
How can I make sure of the load order of vim plugins ?
<aleph->
Stupid question when someone gets a second, where do I add documentation for a module in nixpkgs?
ixxie has quit [Quit: Lost terminal]
<aleph->
Docs are telling me to set meta.docs to a local xml file. But I assume not every module or any does that given I haven't seen xml files in the nixpkgs git a lot :p
<ktosiek>
alextee[m]: you could use something like nix-store --export/--import, but that's not really a "install a random binary and have it integrate with the OS" kind of thing like on debian
<ktosiek>
what's your use case?
ixxie has joined #nixos
<ixxie>
howdy folks; trying to get my shiny new Wacom Intuos Pro to function smoothly on NixOS!
<ixxie>
So far I activated services.xserver.wacom.enable = true;
<ixxie>
and installed the wacomtablet package, which is a KDE GUI to configure Wacom tablets
tobiasBora0 has quit [Ping timeout: 272 seconds]
<ixxie>
The tablet actually functioned right out of the box before I did any of this
<ixxie>
trouble is the configuration GUI doesn't seem to detect the device
<simpson>
alextee[m]: Package your app as a plain old Nix derivation first, and then figure out distribution methods.
<simpson>
alextee[m]: Because Nix is oriented around the /nix path, you'll need either something like nix-bundle which does a private mount of /nix just for your app, or something like our Docker-compatible container image tools.
<ixxie>
Yaniel: xsetwacom also doesn't find my device :(
jumper149 has joined #nixos
<alextee[m]>
im on guix btw and it's possible to build both a binary package that integrates with the OS and a self-contained package that includes all its dependencies
<alextee[m]>
nix-bundle sounds similar, thanks, i'll check it out
<Yaniel>
you're right, looks like it doesn't see mine either
<Yaniel>
but this sounds like a better starting point than just the kde gui not working
<ixxie>
Yaniel: it seems both of these are running into the same issue
<jlv>
Has anyone gotten NFS with Kerberos working on NixOS? It seems no matter what I do, I get "permission denied". I'm reading that other people have this issue with NixOS, but not other distributions.
vv has joined #nixos
ixxie has quit [Quit: Lost terminal]
ixxie has joined #nixos
<Yaniel>
ixxie: precisely
<Yaniel>
meanwhile xorg logs (journalctl -f) show that it does detect it as a tablet and also specifically recognizes the pen when plugging it in and noodling something
<ixxie>
Yaniel: as does dmesg and /proc/bus/input/devices
ixxie has quit [Remote host closed the connection]
kreyren has joined #nixos
ixxie has joined #nixos
jumper149 has quit [Quit: WeeChat 2.9]
<noonien>
infinisil: thanks, TIL about specialisation, pretty nice
ixxie_ has joined #nixos
maddo has joined #nixos
<maddo>
hello, I have a question for nixos btrfs users. The current 20.03 release has btrfs-progs 5.4. Is there a way to use a newer btrfs-progs (and only that) since the 5.4 doesn't support other hashes and the hash has to be selected when creating the partition?
<maddo>
(I can create the partition, but without recent btrfs-progs I can't mount it)
<{^_^}>
[nixpkgs] @midchildan opened pull request #97237 → sd-local: init at 1.0.5 → https://git.io/JUsdg
endformationage has joined #nixos
o1lo01ol1o has joined #nixos
<buffet>
,locate nm-online
<{^_^}>
Found in packages: networkmanager, networkmanager098
nature has quit [Ping timeout: 260 seconds]
gustavderdrache has joined #nixos
jb551 has joined #nixos
jb551 is now known as jb55
maddo has quit [Remote host closed the connection]
maddo has joined #nixos
<maddo>
dc'd
<ixxie_>
say I want to rebuild a package with one attribute changed, but want all depedenent packages on my system to use the new build instead of the default; is that what overlays are for?
ixxie_ has quit [Quit: Lost terminal]
<ixxie>
(still here ;)
<infinisil>
ixxie: Yeah overlays can do that
turion has quit [Ping timeout: 272 seconds]
<ixxie>
infinisil: so I add my-overlay = self: super: { myPkgBuild = ... }; to ~/.config/nixpkgs/overlays.nix - rebuild - and profit?
<infinisil>
You need to use the nixpkgs.overlays option for NixOS
<ixxie>
and it seems if I read it right that I provide the overlay as a string to the option...
xd1le has quit [Read error: Connection reset by peer]
<lordcirth>
I reinstalled my PC with NixOS (Had Ubuntu 18.04 before) and I am having poor graphics performance. GTX 1060, NixOS 20.03, nvidia-440, XFCE.
<lordcirth>
Games seem to run ok, but firefox, especially youtube, is really slow sometimes
orivej has joined #nixos
<lordcirth>
Especially as soon as firefox loses focus, youtube suddenly drops to ~5 fps
<ar>
lordcirth: are you using the open (nouveau) drivers, or nvidia binary blobs?
<aleph->
Howdy lordcirth
<lordcirth>
ar nvidia-440
knupfer has joined #nixos
<lordcirth>
aleph-, hi
<ar>
lordcirth: and you do have services.xserver.videoDrivers set accordingly?
<lordcirth>
ar, videoDrivers = [ "nvidia" ];
vv has quit [Quit: Ping timeout (120 seconds)]
dansho has joined #nixos
<dansho>
anyone know how to install steam on nixos 19.09?
ixxie_ has quit [Remote host closed the connection]
<lordcirth>
dansho, is it not just "steam" like it is on 20.03?
<Yaniel>
it has always been
<dansho>
curl: (22) The requested URL returned error: 404
peelz has joined #nixos
<Yaniel>
update your channel
<Yaniel>
sudo nix-channel --update
<dansho>
wew ty =)
tobiasBora0 has joined #nixos
<Yaniel>
the package just refers to the files on steampowered.com so when those urls change you have to update the package
<Yaniel>
if you keep your channel up to date that is generally taken care of fairly fast
<Yaniel>
sadly valve does not keep the old packages around
<Yaniel>
so the old urls will break eventually
mariatsji has joined #nixos
tobiasBora0 has quit [Read error: No route to host]
<KarlJoad>
How do I edit ~/.config/nixpkgs/config.nix to allow my user to test and install unfree packages through `nix-env`? I can't seem to get the syntax for that file right. I always end up not having `config` defined.
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
eoli3n_ has joined #nixos
<clever>
KarlJoad: it should just be { allowUnfree = true; } i believe
cole-h has joined #nixos
<infinisil>
KarlJoad: Doesn't the error message tell you exactly what to put in the file?
<clever>
infinisil: nix-env silently drops that error, its a relatively new bug
<infinisil>
Oh :/
<{^_^}>
[nixpkgs] @Parasrah opened pull request #97245 → elixir-ls: init at 0.5.0 → https://git.io/JUshD
<KarlJoad>
clever: I have added that to the file, but even with that, I still have problems.
<clever>
KarlJoad: what problems?
Izorkin has joined #nixos
<KarlJoad>
The error message says what to add, yes, but when I save the file with that, I still don't have access to unfree packages from my user nix-env.
noonien has quit [Quit: Connection closed for inactivity]
<clever>
KarlJoad: what command did you run?
<KarlJoad>
In this case, `nix repl`
<clever>
and then what in the repl?
<KarlJoad>
`pkgs = import <nixpkgs> {}` then I found a derivation with a nonfree license, for example `pkgs.b43Firmware_6_30_163_46`, and I get a refusal to evaluate the derivation because of the unfree license.
<clever>
KarlJoad: you can also just `nix repl '<nixpkgs>'`
<clever>
KarlJoad: what does `ls -l $NIXPKGS_CONFIG` say?
<KarlJoad>
Cannot access '/etc/nix/nixpkgs-config.nix'. No such file or directory.
<clever>
KarlJoad: nix-instantiate --eval '<nixpkgs>' -A config
<KarlJoad>
Just to check, am I supposed to replace `config` with something?
<sphalerite>
aleph-: nix expressions don't generally "do" things :)
mariatsji has joined #nixos
<sphalerite>
aleph-: use an empty value as appropriate for whatever you're doing
<sphalerite>
aleph-: an empty list, empty string, empty set…
<cole-h>
Which is how `lib.optionals`, `lib.optionalString`, etc are implemented
zupo has joined #nixos
<aleph->
Yeah trying to think of the way to model this. So I have dirs in my /etc/nixos/ dir. Either common for common nix patterns on all hosts, and a hostname specific. Was looking to do something like https://paste.rs/uZx to generate my imports
<aleph->
Err. hostname/host specific dir
turlando has quit [Ping timeout: 258 seconds]
<{^_^}>
[nixpkgs] @risicle opened pull request #97253 → tiledb: 1.7.7 -> 2.0.7, pythonPackages.tiledb: 0.5.6 -> 0.6.6, enable for darwin along with libpqxx → https://git.io/JUGff
<aleph->
So ideally I'd call that func like `generate-imports /etc/nixos/common` to generate a list of all the nix files in the dir. However empty spaces won't work right?
<aleph->
I assume a list with an empty string would error when doing a nixos-rebuild
<cole-h>
Then you could use `builtins.filter`
<sphalerite>
aleph-: you can use one of the filter functions
<dminuoso>
sphalerite: Ah I see. Yeah, I was on about how evaluation causes side effects, namely in the nix store
<sphalerite>
but pedantry aside, "doing" is still not such a great model for thinking about nix expressions IMHO :)
<dminuoso>
Right, I think this is two separate topics
<aleph->
sphalerite: Stupid question, why would `dir + "/" + name` fail when dir and name are both strings? Fails in the sense that my output doesn't have a slash inserted between them
<sphalerite>
ooooh yeah that thing. It's a pain… paths vs strings
<sphalerite>
> builtins.typeOf <nixpkgs>
<{^_^}>
"path"
<sphalerite>
> builtins.typeOf ./
<{^_^}>
error: syntax error, unexpected '/', expecting ID or OR_KW or DOLLAR_CURLY or '"', at (string):321:18
<{^_^}>
[nixpkgs] @worldofpeace pushed 6 commits to master: https://git.io/JUGfr
<maddo>
is there anyone who uses btrfs here?
<maddo>
I wanted to install nixos on a btrfs root using xxhash for the hashing, however nixos 20.03 has btrfs-progs 5.4 that doesn't support this feature (can create the partition with xxhash, but I can't mount it)
<maddo>
is there a way to have a newer btrfs-progs on the live?
<joesventek>
Any reason for the chromium package being at version 85.0.4183.83 on 20.03 but still 84.0.4147.135 on unstable?
<sphalerite>
maddo: are you sure that not being able to mount it is due to the btrfs-progs version and not the kernel version?
<sphalerite>
maddo: I think it's more likely that the kernel is too old — in which case you can use a "new kernel" image
mmohammadi98128 has joined #nixos
<sphalerite>
hm, I see it's not linked on the download page
<maddo>
sphalerite: afaik the new hashes were merged in 5.3
<maddo>
20.03 has 5.4
<aleph->
Alright my func seems to have broken home-manager for me
<aleph->
Neat
<maddo>
could be wrong however
<sphalerite>
maddo: if btrfs-progs supports _creating_ it with xxhash, I find it very weird that btrfs-progs wouldn't support mounting it
<cole-h>
worldofpeace: btw we went over that yesterday -- in a trap, single quotes don't prevent expansion unless the variable is single-quoted inside those single-quotes (iirc)
<cole-h>
worldofpeace: Either way, it's fine as-is (create a test file that echos a variable on exit -- works fine)
<worldofpeace>
oh dur
Darkmatter66 has joined #nixos
<sphalerite>
maddo: oh, but I see the kernel is 5.4…
Darkmatter66_ has quit [Ping timeout: 256 seconds]
<cole-h>
`a=lol; trap 'echo $a' EXIT` -> "lol"
mmohammadi9812 has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #95194 → nixos-install: add support for flakes → https://git.io/JJywq
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/JUGfb
<aleph->
Okay yeah huh... seems my little func doesn't work if I want to use home-manager...
<sphalerite>
maddo: otherwise, you can try nixos-unstable which has btrfs-progs 5.7
<aleph->
Hmm
<worldofpeace>
merged cole-h julm
Extends has joined #nixos
<sphalerite>
cole-h: it does affect when it gets expanded though! :D `a=foo; trap "echo $a" EXIT; a=bar` → foo while `a=foo; trap 'echo $a' EXIT; a=bar` → bar
<aleph->
Something seem off here? https://paste.rs/Za6 The func is meant to generate the commented out list of imports getting an error of `error: The option `programs.home-manager' defined in `/etc/nixos/common/home.nix' does not exist.` however
<nf>
also note that to prevent word splitting and globbing from happening, you need to use double quotes inside the single quotes: trap 'rm -rf "$tmpdir"' exit
<maddo>
sphalerite: works ty
<sphalerite>
maddo: ah, great! The new_kernel iso, or unstable?
<maddo>
new_kernel
<maddo>
you were right
<evanjs>
,locate libgbm
<{^_^}>
Found in packages: mesa, driversi686Linux.mesa
<aleph->
So heading down to nix-eval to see whats up
cole-h has quit [Quit: Goodbye]
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
knupfer has quit [Client Quit]
<sphalerite>
aleph-: I'd strongly suggest upgrading to 20.03, since you're likely to be running some pretty outdated software, most likely with a number of vulnerabilities, at this point
knupfer has joined #nixos
<sphalerite>
aleph-: what breaks on the upgrade?
<evanjs>
omg lol
<aleph->
sphalerite: So nothing breaks, just fails to eval
<evanjs>
I was trying to run GitKraken *GUI* from an SSH session... oops :P
<aleph->
Given home-manager some how doesn't exist...
<evanjs>
Still dumb it would segfault rather than tell me it needs a graphical session, but meh
<sphalerite>
evanjs: pfff who needs error checking
<sphalerite>
evanjs: I bet you €0.001 that the segfault is in the error message, something like printf("Could not open display %s", getenv("DISPLAY")); :D
<evanjs>
There's also this lol #89033. Renamed the home option to dataDir (per lassulus) and the only thing I'm unsure about now is the description for the dataDir option
fendor has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @TethysSvensson opened pull request #97260 → emulsion: init at 5.0 → https://git.io/JUGUs
<worldofpeace>
evanjs: all of those could be backported, I think. So the freeze shouldn't be a problem
<evanjs>
worldofpeace: alright cool. I'm still not totally sure about when I can backport or not, and half the time it's "oh well there are no security bugs so maybe don't" or etc :P
<worldofpeace>
I can probably look at all of those rn.
pjt_tmp has joined #nixos
<evanjs>
worldofpeace++ yeesh lol
<{^_^}>
worldofpeace's karma got increased to 181
<evanjs>
#97058 is like the last one but it's so minor... I mean, the commit itself is.... Though I wasn't sure if it needed to go to staging or etc (101-500 for linux and darwin) :D
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #89033 → nixos/terraria: allow dataDir to be configured → https://git.io/Jfr6a
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @evanjs to master « nixos/terraria: allow dataDir to be configured (#89033) »: https://git.io/JUGU1
<dminuoso>
worldofpeace: Mmm, presumably Id have to use overrideAttrs if I wanted to change its buildInputs?
<worldofpeace>
dminuoso: writeC just builds a script with the dependent libraries in the libraries attribute. it then uses pkgconfig to get --cflags and --libs to invoke gcc
mmohammadi9812 has quit [Quit: I quit (╯°□°)╯︵ ┻━┻]
<worldofpeace>
so no buildInputs involved
<dminuoso>
worldofpeace: Ah. From the looks of it, I have to specify the source as a string rather than a path.
<dminuoso>
Yeah
<aleph->
And fixed my bug seemingly
<dminuoso>
I think Ill go with a simple builder with some shell script instead
<dminuoso>
But thanks, good know about writers
<worldofpeace>
dminuoso: you could use readFile
<dminuoso>
Ah. Yeah. Need buildInputs though
kleisli has joined #nixos
<worldofpeace>
dminuoso: is it because one of the libs u need dosen't have a .pc file?
<dminuoso>
No, I just need to include some headers from linuxHeaders
<worldofpeace>
ohhh
<dminuoso>
oh. mmm
<dminuoso>
perhaps I can just feed it into libraries!
<dminuoso>
No that will assuredly cause linker errors
<worldofpeace>
dminuoso: perhaps writeC could be changed so it could have gcc -I${headers} ...
ardumont has quit [Ping timeout: 244 seconds]
thc202 has quit [Ping timeout: 260 seconds]
jmercouris has joined #nixos
<jmercouris>
hello everyone, I'm new to nixos and trying `sudo systemctl start display-manager' in a virtualbox VM, a newline is inserted, and nothing happens
<jmercouris>
I'm left at the nioxs@nixos prompt, why is this?
astylian has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @akamaus opened pull request #97261 → tensorboardx: repaired build (was broken because of bumping pytorch to 1.6 → https://git.io/JUGTv
ardumont has joined #nixos
ddellacosta has quit [Ping timeout: 240 seconds]
<colemickens>
I keep getting to the end of `nix builds` with nixUnstable and wishing that it repeated which derivation actually failed, it seems like not only is the log, but the name of the failed derivation gets lost if you have another build that logs a lot afterward.
<evanjs>
worldofpeace: sort of paranoid about #97058. Target branch changed but I'm wondering if all the relevant checks have actually passed. At least whether it can be merged cleanly, I mean
<redmp>
i'm trying to nixify a project but having some odd trouble.. let's say you have cabal projects A and B, project B depends on project A and defines an executable.. the executable in project B is used to run tests in project A .. how would I accomplish this in nix?
o1lo01ol1o has quit [Remote host closed the connection]
<numkem>
still having the same error after rebooting... is there a way to ignore my cache during the nixos-rebuild?
<redmp>
it seems the package i'm building has a bit of a circular dependency scheme.. i'm trying to find out if there's another way to test from the maintainer
cosimone has quit [Remote host closed the connection]
<la-jesystani>
howdy, looking for a good read on using nix for haskell dependencies. ive read through gabriel439's and i like the idea of it, but i cant seem to get certain things to work so i was wondering if there was some more up to date reading
andymandias_ has quit [Quit: ZNC 1.7.4 - https://znc.in]
andymandias has joined #nixos
maddo has quit [Remote host closed the connection]
dxtr has quit [Ping timeout: 244 seconds]
cosimone has quit [Ping timeout: 265 seconds]
<la-jesystani>
where do i find documentation on the builtin functions? im using builtins.readDir and want to expand the answer to include a single file from another location
Extends has quit [Remote host closed the connection]
o1lo01ol1o has quit [Ping timeout: 260 seconds]
<la-jesystani>
not sure whether to ask this here or on #haskell, but ive got this structure: https://git.lain.church/tA/beam-test and when i build using `nix-build release.nix` i get an error saying it cant find the module Servant, even though servant is shown in the dependency graph and in my nix store as pulled by this derivation
<numkem>
clever: sudo and root gives the same error. I’ve tried running the command it’s trying manually and it works just fine.
<clever>
numkem: are the efi vars mounted?
<numkem>
clever: what’s the NixOS way of checking that? It’s never been a problem I’ve had before
<clever>
numkem: mount | grep efi
<clever>
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
<ldlework>
infinisil: clever I am trying to autopatch a thing
<ldlework>
searching for dependencies of /home/ldlework/.vscode/extensions/ms-dotnettools.csharp-1.23.2/.razor/rzls
<ldlework>
libstdc++.so.6 -> not found!
<ldlework>
by doing
<numkem>
clever: I’ll check that and get back to you, say it’s missing, what could be the problem? It’s never been somehting I I’ve seen before... could it be some good