<ottidmes>
colemickens: hmmm, my tool works for any fetcher, but that sha is defined outside of a fetcher call, so it probably wont work out of the box
<colemickens>
I mean, I guess I don't get the NUR.
doyougnu has joined #nixos
<colemickens>
I don't really ever want to use all of the NUR, it doesn't really solve the problem I'm specifically looking at either.
jasongrossman has joined #nixos
<colemickens>
unless there's NUR maintenance scripts that I haven't seen
<infinisil>
It's just "NUR", not "the NUR". And it's not for solving any of your problems, it's just for distributing packages
<infinisil>
You can push updates to your referred repo and NUR gets the update as well automatically
<infinisil>
Ah
<infinisil>
Yeah it doesn't really update any sha256's or so
<infinisil>
In your own repo
* colemickens
nods
<infinisil>
Sorry I misunderstood
erictape1 has joined #nixos
<colemickens>
I guess it would help if I get to the point where I have 10 overlay repos and I don't want to ask my users to manually add all 10, instead they can add NUR And then transitively reference my overlays, but it feels like a fairly small optimization
<colemickens>
all good, always happy for suggestions and pushback :)
<colemickens>
I have something similar, just doesn't handle cargoSha256 (yet?).
<colemickens>
Someone in Discourse has something similar, with all packages in a single JSON file. This also butts up against flakes.nix a bit, as I understand it.
erictapen has quit [Ping timeout: 240 seconds]
JonReed has joined #nixos
<infinisil>
Ah, for mine I needed it to work with gitlab
<adisbladis>
I wouldn't even consider flakes.nix at this point, it's purely theoretical
<colemickens>
adisbladis: yeah, totally, just mentioning it in terms of thinking about the end goal and how to corral efforts.
<JonReed>
Hi guys, how to make it so that `ghc` and `ghci` commands are available when running `nix-shell -E "with import <nixpkgs> {}; pkgs.haskellPackages.ghcWithPackages (p: [ ])"`. That command works, but if you add any packages like `p.turtle` it magically stops working. Is this a bug or expected?
<infinisil>
JonReed: Replace -E with -p
<colemickens>
infinisil: good point, I forgot that I completely use gh as crutch there to make it "stateless" (lol).
sigmundv_ has joined #nixos
<colemickens>
I like yours as well, definitely bookmarking it.
<infinisil>
It is a bit hacky with the string replacements, but it worked well for now
marvin2 has joined #nixos
ToxicFrog has quit [Ping timeout: 268 seconds]
<JonReed>
infinisil: Thanks. That works. But what is happening here and why it works? I have a script that I run using `nix-shell myscript.nix` where I want to expose that environment. What do I need to convert `ghcWithPackages (p: [])`into the expression that also contains ghc and ghci?
<infinisil>
JonReed: -E works the same as when you pass it a file: It puts you into an environment to build the package it received as an argument, which is ghcWithPackages .. in this case
<ottidmes>
colemickens: how do you even determine cargoSha256? do you get an hash mismatch error for it like any other fetcher?
<infinisil>
JonReed: -p on the other hand puts you into an environment with the package it received as an argument in it
<infinisil>
built already
<colemickens>
ottidmes: yeah
<colemickens>
hash mismatch in fixed-output derivation '/nix/store/bjs2kcylrcwidgab7w8fqf6k5yd37k0g-wmfocus-69da8166d0cba19343d120e934c5088b8f8d0d43-vendor':
<infinisil>
JonReed: Now the question is how you can get the -p behavior with a file. The answer is to create a (pseudo-)package that requires ghcWithPackages for building it and passing that as an argument
<adisbladis>
cargoSha256 is "ugly" in the sense that it's an aggregate hash over all build deps
<infinisil>
JonReed: So in the end, it's `with import <nixpkgs> {}; stdenv.mkDerivation { name = "env"; nativeBuildInputs = [ (ghcWithPackages ...) ]; }` that you need
aristid has quit [Ping timeout: 252 seconds]
aristid has joined #nixos
<ar1a>
hm, no facebot for new issue huh?
<infinisil>
ar1a: Facebot?
<ar1a>
{^_^}:
<ar1a>
infinisil: facebot :D
<infinisil>
It only does that for pull requests I'm pretty sure, the notices here
<JonReed>
infinisil: This works. Thanks.
ToxicFrog has joined #nixos
WhittlesJr has quit [Ping timeout: 256 seconds]
erictape1 has quit [Ping timeout: 240 seconds]
<ottidmes>
colemickens: I have to fix something in the tool (pointing directly to a src rather than package), but it should then work just fine for cargoSha256, since cargoDeps is defined on every cargo package and is just a fetcher, which my tool can work with
drakonis has joined #nixos
<colemickens>
cool!
eadwu has joined #nixos
<ottidmes>
colemickens: what is the attribute path to fetchcargo, since it is not defined at top level it seems
andreabedini has joined #nixos
worldofpeace has quit [Ping timeout: 268 seconds]
vk3wtf has quit [Ping timeout: 252 seconds]
worldofpeace has joined #nixos
thc202 has quit [Ping timeout: 250 seconds]
doyougnu has quit [Ping timeout: 240 seconds]
<ar1a>
is there a build-essential esque thing?
<infinisil>
ar1a: Not sure what you mean
<ar1a>
a metapackage with all the compilation stuff like binutils make gcc/clang etc
<ar1a>
things essential to build
<ottidmes>
ar1a: nix-shell?
eadwu has quit [Ping timeout: 268 seconds]
<ar1a>
sorry?
<ottidmes>
ar1a: if you run nix-shell on any package you will get its development environment, so also all its build tools
<infinisil>
ar1a: And any default stdenv.mkDerivation contains a c compiler and some common utils already
<worldofpeace>
^ standard enviroment or stdenv :)
<ottidmes>
ar1a: nix-shell '<nixpkgs>' -A hello, will then contain e.g. /nix/store/nly6dg3af8ycqn1x87ns1r3mrcjpv43a-gcc-7.3.0/bin on the PATH, because the default stdenv uses gcc, like mentioned above
rcshm has quit []
eadwu has joined #nixos
jasongrossman has quit [Ping timeout: 240 seconds]
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<q6AA4FD>
how do i set things like enableContribAndExtras for xmonad if i'm running nix on a foreign distro and thus don't use /etc/nixos/configuration.nix?
ng0 has quit [Quit: Alexa, when is the end of world?]
<gchristensen>
infinisil: what would you think about replacing ,... with ,elaborate or something? "..." might feel off-putting
<infinisil>
You mean ,dwn?
<gchristensen>
oh
o1lo01ol1o has joined #nixos
<gchristensen>
:)
<gchristensen>
dnw is fine :P
<infinisil>
:)
<gchristensen>
(but the "..." is a bit off-putting I think!)
<infinisil>
You have a point there
<infinisil>
Will try to avoid it
<ottidmes>
infinisil: pun intended?
<q6AA4FD>
infinisil: it does
<infinisil>
ottidmes: Hah
mizu_no_oto has joined #nixos
mizu_no_oto has quit [Client Quit]
<gchristensen>
thanks, infinisil :) it means a lot to me that people find #nixos *so* friendly and welcoming
<infinisil>
q6AA4FD: Then your xmonad binary on your path is not the one you're looking for, how did you install the version with contrib?
<gchristensen>
what does `which xmonad` report?
<q6AA4FD>
~/.nix-profile/bin/xmonad
<ottidmes>
colemickens: I had to make a few changes (it was an interesting test case), but I can confirm my nix-prefetch not works for cargo too (I have to do some more cleaning up before I push it though)
o1lo01ol1o has quit [Ping timeout: 246 seconds]
jasongrossman has joined #nixos
<q6AA4FD>
gchristensen: this is even after i run `nix-env -irA nixpkgs.xmonad-fixed` (xmonad-fixed is my temp name for the overriden package)
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhggv
<ottidmes>
colemickens: unfortunately I did had to modify rustPlatform.buildRustPackage (its corresponding default.nix) to not include fetchcargo via a file directly, but as an argument, but I have it on my TODO to not require even such a change
<infinisil>
q6AA4FD: How did you define xmonad-fixed? Can you paste the file?
<q6AA4FD>
infinisil: i have an override in ~/.config/nixpkgs/foo.nix: xmonad-fixed = stdenv.lib.overrideDerivation self.xmonad-with-packages (attrs: rec { \n packages = with haskellPackges; [ xmonad-contrib ]; \n });
hellrazo1 has quit [Ping timeout: 250 seconds]
<infinisil>
q6AA4FD: Take another look at what gchristensen linked
<gchristensen>
.overrideDerivation should probably not be used
<q6AA4FD>
gchristensen: the parameters that .override can override are stdenv and fetchurl only? how was .override able to change packages for xmonad in wrapper.nix then?
<teto>
how to force a redownload via builtins.fetchGit ? aka not wait for tarball-ttl
<ottidmes>
teto: maybe give it a bogus hash? like sha256 = "0000000000000000000000000000000000000000000000000000";
<gchristensen>
q6AA4FD: in xmonad's case, .override can override these:https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/window-managers/xmonad/wrapper.nix#L1
<q6AA4FD>
gchristensen: so that's pkgs, lib, config? but i don't see packages in there, which is what i was able to override
<ottidmes>
I am now just adding an attribute to a derivation via say: pkgs.hello.src // { foo = 5; }, which works, do I gain anything by doing this instead: pkgs.hello.src.overrideAttrs { passthru = { foo = 5; }; }?
<CMCDragonkai>
gchristensen: Can you give an example
jasongrossman has quit [Ping timeout: 246 seconds]
jasongrossman has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
jasongrossman has quit [Remote host closed the connection]
silver has quit [Read error: Connection reset by peer]
muvlon has quit [Ping timeout: 252 seconds]
iqubic` has joined #nixos
jackdk has quit [Remote host closed the connection]
jackdk has joined #nixos
iqubic has quit [Ping timeout: 268 seconds]
freeman42x has quit [Ping timeout: 252 seconds]
Supersonic has quit [Ping timeout: 264 seconds]
<yl[m]>
How do we deal with option renames? I'm reviewing https://github.com/NixOS/nixpkgs/pull/11886 and it has a rename of `security.pam.enableU2F` to `security.pam.u2f.enable`
<{^_^}>
#11886 (by spinus, 3 years ago, open): refactor pam-u2f: add keysPath, verbose, fix docs about u2f_keys path
muvlon has joined #nixos
Supersonic has joined #nixos
<ottidmes>
yl[m]: there is nixos/modules/rename.nix, but that is all I know
<yl[m]>
ottidmes: right on, thanks
jtojnar has joined #nixos
o1lo01ol1o has joined #nixos
<colemickens>
ottidmes good stuff, I'll try to start leveraging it soon if I figure it out!
slyfox has quit [Ping timeout: 245 seconds]
slyfox_ has joined #nixos
wak-work has joined #nixos
Yaniel has quit [Excess Flood]
vk3wtf has joined #nixos
Yaniel has joined #nixos
jasongrossman has joined #nixos
<ottidmes>
colemickens: when I am done implementing support for a "fetcher file", the following will work: nix-prefetch '(callPackage /wheel/fork/nixpkgs-wayland/pkgs/wmfocus/default.nix { }).cargoDeps' --fetcher --file '<nixpkgs/pkgs/build-support/rust/fetchcargo.nix>'
jasongrossman has quit [Client Quit]
hedning has quit [Quit: hedning]
<muvlon>
has anybody here used a device tree overlay with nixos before?
<muvlon>
i'm kind of lost trying to figure out if kernels built by nixos even support them
tmaekawa has quit [Ping timeout: 245 seconds]
worldofpeace has quit [Quit: worldofpeace]
lawlesseel has quit [Remote host closed the connection]
lawlesseel has joined #nixos
jasongrossman has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jmeredith has joined #nixos
lassulus_ has joined #nixos
drakonis has quit [Remote host closed the connection]
lassulus has quit [Ping timeout: 240 seconds]
lassulus_ is now known as lassulus
praetorg_ has joined #nixos
hellrazo1 has quit [Quit: WeeChat 2.3]
praetorg has quit [Ping timeout: 268 seconds]
kvda has joined #nixos
joehh has quit [Ping timeout: 268 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
nckx has quit [Quit: Updating my GNU Guix server — https://guix.info]
nckx has joined #nixos
tdeo has joined #nixos
rtjure has quit [Ping timeout: 240 seconds]
seqizz has joined #nixos
<nikola_i>
hello i have a custom xkb symbols keymap that i want to use. but i cannot copy it to /etc/X11/xkb/symbols it being a read only system. What is the "Nix" way to do this
rtjure has joined #nixos
<srhb>
I used to be able to use grub with mirroredBoots, but since using luks + zfs I'm having trouble setting it up. When I choose a generation it just gets stuck with only the grub logo on screen. Is there a way to get debug information at this point somehow?
<seqizz>
@nikola_i if that file is not present, check out the option environment.etc.<name?>.text , I couldn't find a direct option to manage that file
hph^ has joined #nixos
reinhardt has quit [Ping timeout: 246 seconds]
reinhardt has joined #nixos
worldofpeace has joined #nixos
<sb0>
does Hydra support HTTPS?
<srhb>
sb0: Not sure, but a usual install has a proxy in front of Hydra.
<srhb>
sb0: Leaving it up to eg. nginx to do https.
<seqizz>
When I want to update the system, it always tries to compile libreoffice instead of downloading from cache (I'm on 18.09). Is there a way to check if I am using a custom option somewhere? Hydra-built version has a different hash :\
<srhb>
seqizz: That's one such check :)
<srhb>
seqizz: Unfortunately identifying the override is difficult. You can try to diff the drvs in order to try and figure out what dependency is changed.
nikola_i has quit [Quit: Leaving]
<Myrl-saki>
How to print a stacktrace on `nix repl`?
<Myrl-saki>
Oh, of course, --show-trace.
mbrock has joined #nixos
orivej has quit [Ping timeout: 245 seconds]
orivej has joined #nixos
gagbo has joined #nixos
<srhb>
seqizz: Not sure if I gave you enough to go on. I'd start by getting the unmodified drv via something like.. nix eval '(with import <nixpkgs> { config = {}; overlays = []; }; libreoffice.drvPath)' and comparing that to yours. Does that help?
Ariakenom has joined #nixos
<seqizz>
@srhb ah yes that definitely helps, I was thinking which one of those drvs are the "normal" one :)
<srhb>
seqizz: Right. setting config {} and overlays [] should usually give you a "clean" nixpkgs. :)
<srhb>
seqizz: There's a nice tool called nix-diff you can use for finding out which dependency differs, and then you just have to crawl the tree.
<seqizz>
srhb: I was going to normally diff them and use some weird regexp, THANKS :D
<srhb>
seqizz: Let us know how it goes :)
<seqizz>
aww shoot.. error: build of '/nix/store/cf43377vdhp11d1g9y9q4zk4ah1rg34p-nix-diff-1.0.5.drv' failed
<srhb>
seqizz: If you don't mind grabbing unstable for it you can nix-env -f channel:nixos-unstable -iA nix-diff -- but it'll be a large download if you don't usually use any unstable packages.
<srhb>
(also we should fix that...)
Makaveli7 has joined #nixos
<srhb>
Errr, that's weird though. As far as I can see the version in 18.09 is 1.0.4 and DOES work
<srhb>
So something is up on your system.
<seqizz>
srhb: I'll re-check my channels :|
<srhb>
It should be: /nix/store/bcdv3wl3s3b9bxqh1dw6h8819g47kkkh-nix-diff-1.0.4
nikola_i has joined #nixos
<srhb>
So maybe just nix-env -f channel:nixos-18.09 -iA nix-diff
<seqizz>
srhb: I am getting /nix/store/cf43377vdhp11d1g9y9q4zk4ah1rg34p-nix-diff-1.0.5.drv
erictapen has joined #nixos
<srhb>
Unless there was a revert, that sounds like an older unstable version.
<seqizz>
srhb: yup, that env command installed 1.0.4 from cache
<srhb>
So yeah, it does sound like you have some messy channels.
nikola_ has joined #nixos
<seqizz>
srhb: wait I do have unstable in my system channels list :O how did this came here... sorry for the unnecessary crap, I'll check my config.
<srhb>
seqizz: No worries. :)
<muvlon>
sooo i upgraded my nixos to linux 4.20 and now there is no wifi anymore
gagbo has quit [Quit: I'm out !]
<srhb>
To recap a standard nixos install: The user(s) usually have no channels, and root has one channel for the current stable set up.
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bananchick_pasha has joined #nixos
<Myrl-saki>
Okay, crap, does buildRustPackage parse Cargo.toml?
<Myrl-saki>
jD91mZM2: Are you still maintaining nix-lsp?
<muvlon>
makefu: doing that now, let's see what happens
<muvlon>
stable kernel is already on 4.19.16 as well btw :O
<muvlon>
nice, wifi works :) good idea makefu
<seqizz>
srhb: Huh, apparently my system was in a schröedinger-state. Reverted some stuff I did. Still wanted to build libreoffice (but not libreoffice-fresh) :\ Thanks again
civodul has joined #nixos
nikola_i has joined #nixos
jb55 has quit [Ping timeout: 250 seconds]
nakkle has joined #nixos
<Myrl-saki>
Mic92: Is your nur-packages against unstable?
<Myrl-saki>
Hm.
<muvlon>
an aside: it's really cool to see so many rustaceans in here :)
goibhniu has joined #nixos
<Myrl-saki>
Apparently yeah.
erictapen has quit [Ping timeout: 245 seconds]
<Myrl-saki>
@Mic92 Mic92 rust: Remove unused `buildRustPackage` from binaryBuild.nix
<ivegotasthma>
is there any downside to always using `nix-shell --pure`?
<srhb>
ivegotasthma: Some applications simply don't work in a pure environment. Whenever it does, I'd say it's preferable.
<muvlon>
what exactly does a pure environment prohibit?
<symphorien>
it won't propagate TERM
<symphorien>
that's annoying with some terminal emulators
<srhb>
muvlon: I can't remember the exceptions off the top of my head, sorry. Whenever I bump into it I curse the designers of whatever software that relies on impurities we can't easily model and move on with my life :P
krkini is now known as kini
<muvlon>
i don't even have a concept of what "purity" means wrt nix tbh
<symphorien>
"behavior only depends on the nix files involved, not on your environment"
<Myrl-saki>
There's at least 2 or 3 definitions of purity in Nix, or at least concepts related to purity.
<ivegotasthma>
Myrl-saki: I know of 2 now, sandboxing - pure in terms of network access, and this definition.
<ivegotasthma>
but I'm new, so I'm probably missing something
<Myrl-saki>
ivegotasthma: There's also fixed hash output, FWIW.
<srhb>
ivegotasthma: I'd say pure builds (and thus pure packages) is the most essential purity we have.
<ivegotasthma>
isn't the hash always the same? from my understanding the hash of the derivation is the hash of the .nix file used to build the software, not the contents of the build
<srhb>
ivegotasthma: For fixed-output drvs it's the other way around.
<srhb>
ivegotasthma: That's the trick we use to get purity in our downloads.
<Myrl-saki>
ivegotasthma: And we're also aiming for the hash of the contents, it's just currently impossible, for some definitions of impossible.
<ivegotasthma>
are those drvs part of the path to content addressable storage?
<srhb>
ish, maybe, to be determined. :)
<ivegotasthma>
srhb: what do you mean by pure builds / getting purity in downloads
<ivegotasthma>
this pure minimal nix-shell in which you build software?
<srhb>
ivegotasthma: Downloading from the internet is usually not pure (as in, function inputs determine outputs)
<ivegotasthma>
why isn't it pure? downloading doesn't change the content of the drv
bananchick_pasha has quit [Read error: Connection reset by peer]
<srhb>
ivegotasthma: It would if eg. the contents at some url changed.
<srhb>
ivegotasthma: In order to ensure that the build is the same always, we hash the output of the src drvs instead of the inputs.
<ivegotasthma>
srhb: ah, I get it
<srhb>
Which is what a fixed-output drv is.
<srhb>
So we CAN use network AND retain purity IF we know the contents of the download in advance.
<srhb>
In other words, you're free to use eg. curl (even in the sandbox!) if you can supply the final hash of the output :)
_kwstas has quit [Quit: _kwstas]
<srhb>
The only inputs that matter in that case are outputHash and the name of the drv.
<Myrl-saki>
domenkozar: Is hnix-lsp already functional?
<sicklorkin>
The nixos installer said to ask here for help; I cannot install nixos multi-user. Full details are here: https://pastebin.com/raw/XLMjUUVu
thc202 has joined #nixos
<typetetris>
Hi there! I have a project with a sources and the default.nix in the same folder. If I call `nix-build`, when will it actually rebuild the derivation? If a timestamp of one of the sources changes, or only on content change?
<seqizz>
typetetris: afaik nix doesn't care about timestamps (since it sets them all to epoch in store), it should be the content.
<symphorien>
sicklorkin: can you not redact the ... lots of stuff ... part
<nikola_i>
hello i have a custom xkb keymap file i want to use. I am following this guide for configuration https://nixos.wiki/wiki/Keyboard_Layout_Customization. But when i run nixos-rebuild switch i get syntax error at let
<Taneb>
nikola_i: you hould put from let to in before the opening { of the body of your nixos confuration, I think
<nikola_i>
Taneb: i checked. its not outside the {} body of configuration
<symphorien>
sicklorkin: hum strange. can you retry the nix-env with -vvvvvv ?
erictapen has joined #nixos
<typetetris>
sicklorkin: The strace snippet really just shows the cleanup nix does, I would guess. There isn't a single failed call, so the root cause will be in the strace output not shown in the pastebin.
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Taneb>
nikola_i: cut lines 156-160 and paste them before line 7
<domenkozar>
Myrl-saki: it works for formatting
<domenkozar>
not much else :)
ThatDocsLady has joined #nixos
brejoc has joined #nixos
<Myrl-saki>
domenkozar: Any recommendations for syntax highlighting?
<domenkozar>
what editor?
<Myrl-saki>
Emacs. :c
<sicklorkin>
symphorien: Here are the logs with `-vvvvvv`; typetetris: I've also appended all `strace` msgs at the end. https://pastebin.com/raw/bZmvpssA (Thanks for looking at this with me!)
<typetetris>
sicklorkin: As symphorien said, you straced a process which started a builder, which failed, but wasn't straced ... and I think it just looks like the build user doesn't have permissions on that directory, dunno, how that can happen. Check your build users, which group they belong to and if that group can manipulate the store ..
<etu>
Myrl-saki: nix-modes alternative indentation function is actually quite decent nowadays, it has some issues but pretty good compared to before :)
<Myrl-saki>
etu: Yeah, I just wanted to try out LSP, since I haven't tried it out before, and Nix is the only language which I use regularly nowadays.
<sicklorkin>
typetetris: symphorien: i'm going to check permissions (ids/groups) now. Here's the output from `strace -f -s 1000000`.. https://paste.ofcode.org/KamnmkqtG8tepDQVTVJbSq (pastebin restricted to 512k so had to switch)
bananchick_pasha has quit [Read error: Connection reset by peer]
<symphorien>
can you stop the nix-daemon if there is any running ?
<symphorien>
nix run as root should not use the daemon
<etu>
Myrl-saki: Yeah, I want to try out LSP as well, but for other things than nix. LSP seems to be very cool :-)
bananchick_pasha has joined #nixos
<sicklorkin>
symphorien: no nix-daemon running
<{^_^}>
[nixpkgs] @robinp opened pull request #54459 → Add gzip and gnutar to default bazel-bash tools. → https://git.io/fhg5E
<sicklorkin>
symphorien: #which nix-daemon; nix-daemon not found
<symphorien>
maybe try disabling the sandbox with --option sandbox false
<sicklorkin>
symphorien: pass that to nix-env?
<symphorien>
yes
__monty__ has joined #nixos
<sicklorkin>
symphorien: same error..
<symphorien>
no idea sorry
<sicklorkin>
symphorien: appreciate the help!
<sicklorkin>
symphorien: Ithink i figured it out..
<sicklorkin>
symphorien: could running processes using the old (single user) install possibly cause this? I just noticed there is one processes that's using `/nix/store/....` from the previous install...
<symphorien>
nix has a lock for the store, so normally, no
<Mic92>
Myrl-saki: you can send me a patch to make it work with both.
<Mic92>
I usually only evaluate against unstable
muvlon has quit [Remote host closed the connection]
gagbo has joined #nixos
<ivegotasthma>
got a wierd error from `git worktree` in `nix-review`. any idea where I should report the bug? https://dpaste.de/Xvj3/raw
<sicklorkin>
symphorien: should nixbld1..30 have permissions to read /nix/store/5hdmx9yk7gr71b98j4vh9271k0zg5jis-nix-2.2.1?
<symphorien>
everyone should be able to read the store
<symphorien>
ah
<nikola_i>
Taneb: i cut and pasted those lines before {}. this is the new paste https://pastebin.com/uxJVKQNL. I still get 'rror: syntax error, unexpected '=', expecting $end, at /etc/nixos/configuration.nix:13:51'
<symphorien>
you have an unusual umask, maybe ?
<sicklorkin>
;) 027
<mr_noobs>
Hey there! I can't connect to my psql, it says "incorrect password" (even though the password was set in configuration.nix, so not really a chance for the pass being worng)
<sicklorkin>
it wants 002?
<symphorien>
make the store readable for everyone
<sicklorkin>
the installer should really take care of this non?
<symphorien>
the installer should probably take this into acount
_kwstas has joined #nixos
seqizz has quit []
<sicklorkin>
symphorien: something like `sudo chmod a+rX /nix/store/`?
<mr_noobs>
Hi hi! Is there a guide to package existing go applications for nixos? I ended up just running the binary and stuff, but i would love to have it declaratively installed and that it might be a nice package for others to have (miniflux)
<fendor>
symphorien, you are right. Too many generations i guess?
<symphorien>
likely
<fendor>
symphorien, can i clean every generation but the last two or something like that?
<fendor>
also, should the boot partition be larger than 512MB?
<symphorien>
tbh I only have one partition :°
<nikola_i>
Mic92: thanks it works now. i use this keyboard for typing math symbols with compose key
<fendor>
symphorien, how does that work? 0.o i thought, the boot partition is necessary. Or is it only necessary, if you trash your system that you can still boot something?
erictapen has quit [Ping timeout: 244 seconds]
<symphorien>
it is only necessary, say, if your root partition is some eccentric fs that grub can't read
_kwstas has quit [Remote host closed the connection]
MasseR has quit [Ping timeout: 268 seconds]
bananchick_pasha has quit [Quit: Quit]
jD91mZM2 has quit [Remote host closed the connection]
<immae>
Hi everyone! I’m trying to add a `sandbox = true` to my nix configuration, but then nix-build fails with "error: while setting up the build environment: getting attributes of path '': No such file or directory". Is there some configuration to add to be able to do sandbox build? (It makes an error with any build, even very simple ones like https://paste.ee/p/3UiV4 )
<immae>
symphorien: you advised me to add this configuration yesterday, maybe you forgot to mention something? ^
mtesseract has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anderslundstedt has quit [Ping timeout: 246 seconds]
anderslundstedt has joined #nixos
<immae>
:clap: you got it symphorien
<immae>
Thanks
<nakkle>
I'm playing around a bit with the NixOS tests, and I'm wondering whether I could save custom strings (e.g., output from a `succeed('command')` call) to a file in the result folder, similarly to how screenshots are saved. Does anyone know whether that's possible?
<{^_^}>
[nixpkgs] @nyanloutre opened pull request #54466 → electrum: 3.2.4 -> 3.3.2 plus new dependencies → https://git.io/fh2Tp
hyper_ch2 has joined #nixos
hedning has joined #nixos
acarrico has joined #nixos
Makaveli7 has quit [Quit: Leaving]
<{^_^}>
[nix] @buecking opened pull request #2643 → install: Check for a valid umask before running multi-user installer. → https://git.io/fh2k6
<{^_^}>
nix#2643 (by buecking, 2 minutes ago, open): install: Check for a valid umask before running multi-user installer.
fusion809 has joined #nixos
mtesseract has joined #nixos
eadwu has joined #nixos
ThatDocsLady has quit [Ping timeout: 240 seconds]
<nikola_i>
hello my / directory of 35GB has no space left while running nixos-rebuild switch. i dont have super huge packages like texlive. please tell me what went wrong and how to debug
<gchristensen>
nikola_i: run nix-collect-garbage to free some space
<nikola_i>
gchristensen: it should not delete the packages which it downloaded while running nixos-rebuild
ottidmes has joined #nixos
erictapen has joined #nixos
<gchristensen>
it might, but more likely you have old packages in the nix store which are not needed anymore
<etu>
nikola_i: Do you have many old generations on your system?
<nikola_i>
will using -d prevent delelting of newer packages
<nikola_i>
i have 4 old generations
<gchristensen>
-d deletes all old generations of all profiles in /nix/var/nix/profiles
clefru has joined #nixos
<ivegotasthma>
how do I run the tests for a package when I'm using nix-review?
<nikola_i>
gchristensen: so how do i delete only the older packages and generations with nix-collect-garbage?
<Mic92>
ivegotasthma: there is an example in the readme
<ivegotasthma>
Mic92: right!
<gchristensen>
nikola_i: unfortunately I don't think nix-collect-garbage can do that. what is the problem you're trying to avoid?
<nikola_i>
i am trying to avoid redownloading all the packages. it downloaded like a couple gigs worth of packages while running nixos-rebuild switch
<clefru>
nikola_i: the garbage collector won't delete derivation outputs, when they have active references from garbage collection roots (for instance older but still active profiles, or the current profile)
mtesseract has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtesseract has joined #nixos
pointfourone has joined #nixos
pointfourone has quit [Remote host closed the connection]
rtjure has quit [Ping timeout: 245 seconds]
jomik has joined #nixos
<jomik>
Who here uses home-manager to manager their xsessoin?
<jomik>
xsession*
* infinisil
winks
rtjure has joined #nixos
<jomik>
I am a bit unsure what to put where - I guess my display manager still needs to reside in the system-wide config. But then I can have my xmonad in home.nix, which does seem nice.
<jomik>
I will still need to have libinput stuff in my system-wide config, and keyboard stuff as well, I guess, yeah?
Makaveli7 has joined #nixos
<WilliamHamilton[>
clever: do you happen to know why if I invoke a shell with `nix-shell -p "with import <nixpkgs> {}; pkgs.haskellPackages.ghcWithPackages (p: [(pkgs.haskellPackages.callPackage ~/path/to/local/package {})])"` and then open ghci then the package is present in the session, but hidden, and I have to do `:set -package local-package`?
<WilliamHamilton[>
this doesn't happen if a package is of the form `p.package`
<mpickering>
Is there any solution yet to the limited design of `nix run` where the argument passed to `-f` can't be referenced in the expression?
pointfourone has joined #nixos
<infinisil>
jomik: keyboard stuff can be in both
<jomik>
infinisil: I need to have it be in the system-wide config for it to take effect at my display manager though, ye?
<infinisil>
Yea
<jomik>
I'd have a hard time logging in without colemak XD
<jomik>
Huh. I guess I -need- it to be in home.nix too ... O.o
<jomik>
Because... It starts a setxkbmap service...
<Taneb>
gchristensen: what is efitools, for a start?
<octe>
cool, i solved it by overriding the library definition in the package i actually wanted to build
<nikola_i>
what is the size of nixOS installation with a DE like KDE. On ubuntu it used to be less than 10GB. I removed old generations along with nix-garbage-collect -d. my system still takes around 16GB. Is this normal
<gchristensen>
nikola_i: you will for sure have a not nice time with a small disk, like 30gb. NixOS can take 2x as much as another distro, since updates are atomic -- it can keep 2 copies of the entire distro
<Taneb>
gchristensen: well, if you want someone with more liking-to-be-involved-ness than know-how...
<jomik>
wedens: Same error.
<jomik>
It also points at nixos-18.09/lib/attrsets.nix
<jomik>
`rror: value is a boolean while a set was expected, at /nix/store/ydgrdshzbj6xyr86bihhc9zyjyp964k1-nixos-18.09.1922.97e0d53d669/nixos/lib/attrsets.nix:225:39`
<gchristensen>
Taneb: aye, nah, ideally the other person would care about efitools specifically :) I only packaged it because I needed it for something. if I found a comaintainer, it'd be because they cared about it more long-term than my "one-off" need
<Taneb>
:)
_kwstas has joined #nixos
anderslundstedt has quit [Quit: leaving]
_kwstas has quit [Remote host closed the connection]
<jomik>
wedens: I don't see a per service `enabled` option there though.
<wedens>
jomik: hm.. as a hack you can probably do jomik: `user.services.setxkbmap.Service.ExecStart="true";`
<nikola_i>
gchristensen: i have an llvm with luks setup. is it too late to change the size of / partition
acarrico has quit [Ping timeout: 240 seconds]
<jomik>
Where's the user services located?
<wedens>
jomik: ~/.config/systemd/user
<gchristensen>
nikola_i: I... don't know! you might be able to expand it, based on me searching around "lvm expand"
<jomik>
ahah!
<jomik>
Perfect, the hack works :P
jomik has quit [Quit: WeeChat 2.2]
<mpickering>
Is there a way to pass arguments to a function using nix run without this ugly `(import <nixpkgs> {})` stuff
acarrico has joined #nixos
<wedens>
mpickering: --arg ?
superherointj has quit [Ping timeout: 250 seconds]
superherointj has joined #nixos
<mpickering>
Ideally, I want to type `nix run 'ghcHEADWith "foo" "bar"'`, I am already resigned to these stupid brackets `nix run '(ghcHEADWith "foo" "bar")'`
reinhardt has quit [Quit: Leaving]
<mpickering>
doesn't `--arg` pass arguments to whatever `-f` points to?
<{^_^}>
[nixpkgs] @grahamc opened pull request #54471 → efitools: init at 1.9.2 → https://git.io/fh2ZB
iqubic has left #nixos ["ERC (IRC client for Emacs 26.1)"]
<gchristensen>
great nixpkgs reviewers, I have packaged only a very small number of packages. would someone take a look at my PR and provide feedback?
nobody__ has quit [Quit: Ambassador 1.0.0 [Pale Moon 28.3.0/20190110014511]]
winem_ has joined #nixos
<r5d>
I had a Windows 10 (1809) VM on qemu/libvirt that ran perfectly until yesterday. Today it won't boot and even the install disk BSODs. What gives? Using no other channels than nixos-18.09
<samueldr>
wondering if there's a specific reason for using `refs/tags/the-tag-name` instead of just `the-tag-name` gchristensen
<r5d>
This might be the wrong place for this. Just venting and if anyone has the same problem, please contact me
<gchristensen>
I didn't know fetchgit could do that :)
<samueldr>
gchristensen: AFAIUI it's any commit-ish, though I ask since I've seen that other fetchgit invocations do that
<samueldr>
so maybe there's something to keep in mind with regards to that, but I wouln't think so
<jomik>
Hmm, someone here suggested that I run fish from .bashrc.. Now I am getting this weird behavior with direnv .. Error: target STRING not available
<jomik>
UH
obadz has quit [Ping timeout: 245 seconds]
<Profpatsch>
I forget: How do I tell nix to keep a path at runtime that is to deeply tar’d up to be found in the fixup phase?
<jomik>
Not that, that was supposed to be a url to an image :P
<Profpatsch>
There was some attribute to mkDerivation iirc
<gchristensen>
looks like pname changes broken eval error messages: error: Package ‘«name-missing»’ in /home/grahamc/projects/nixos/nixpkgs/pkgs/tools/security/efitools/default.nix:33 is not supported on ‘aarch64-unknown-linux-gnu’, refusing to evaluate.
<symphorien>
some java derivations write the path to the dependency in $out/nix-support/whatever
<{^_^}>
[nixpkgs] @Profpatsch opened pull request #54472 → bazel: add python to the runtime closure → https://git.io/fh28J
<lfish>
hello, how do I correctly set the locales? I'm on nixos 18.09 and need something with utf-8, preferably Latin America Spanish, or US English as an alternative. By te way, where can I get a list of the abbreviations?
<Mic92>
lfish: i18n.defaultLocale
<lfish>
btw, I'm finally doing this because rackup complains about us-ASCII encoding and my source files have things like 'ú' everywhere. If anybody knows the problem and can give me a hint towards the solution, I'll appreciate that
<Mic92>
by default you should have unicode locales so
<Mic92>
do you run a service?
_d0t has joined #nixos
<lfish>
Mic92: I'm sorry, I don't understand your question about the service
erictapen has quit [Ping timeout: 246 seconds]
<Mic92>
lfish: systemd services do not have LC_* environment set.
<Mic92>
by default
slack1256 has joined #nixos
<Mic92>
a login user should have that
IRCsum has quit [Remote host closed the connection]
<mpickering>
What's the correct way to wrap a shell script which requires some additional dependencies?
<mpickering>
I want something like writeScriptBin which also modifies PATH
<tilpner>
Probably makeWrapper and makeBinPath
<tilpner>
Or wrapProgram, you know what I mean
IRCsum has joined #nixos
<mpickering>
I considered these
<mpickering>
but it's not clear to me how to use makeWrapper with writeScriptBin
Makaveli7 has quit [Ping timeout: 252 seconds]
<sphalerite>
mpickering: If you're wrapping a shell script from an existing package, what tilpner said. If you want something like writeScriptBin, use writeScriptBin and `export PATH=${lib.escapeShellArg (lib.mkBinPath [hello gnutar])}`
<tilpner>
You don't, the wrapper would be the output of a runCommand or mkDerivation
<tilpner>
sphalerite: Why escapeShellArg here
<jomik>
Huh, I know this is not really the place to ask, but how the hell do I match FOO or BAR with sed? (FOO|BAR) doesn't seem to work..
<lfish>
Mic92: mmm... I can't tell anything intelligent know... guess I'll have to read more about locales and ask later, I'll try with the i18n in the configuration.nix and see what happens. Thanks!
<gchristensen>
$ echo "FOO" | sed -e 's/\(FOO\|BAR\)/BAZ/'
<gchristensen>
BAZ
<gchristensen>
jomik: ^
<jomik>
I need to escape them, k :D
<sphalerite>
jomik: or use sed -r to get posix extended regular expressions
<sphalerite>
tilpner: because (ok, in practice it actually won't happen in this case) if there's a space or newline or whatever in the string value, you don't want it to result in directly embedded spaces or newlines in the script
chessai has joined #nixos
<tilpner>
sphalerite: I understand what escapeShellArg does, but I don't use it defensively everywhere just in case, for readability
hyper_ch2 has quit [Quit: Page closed]
<tilpner>
And I don't expect the store entry name charset to suddenly gain any whitespace :D
<sphalerite>
yeah, I might not actually put it in in this case either really, but it's the thought that counts :p
<jomik>
sphalerite: -r doesn't seem to work?
<jomik>
Oh, I had deleted a space, woops.
<sphalerite>
jomik: re escaping — it's not escaping so much as that the syntax for alternatives in posix basic regexes is just \|
<infinisil>
How about the expression `let foobar = "'test"; in #bash"echo ${foobar}"` would result in `"echo \''test'"`
<tobiasBora>
etu: ok, thank you!
<infinisil>
So, #<escaper>"string with escaping"
<infinisil>
Oh, # is comments, but something like this
<wedens>
maybe just `bash".."`
<wedens>
like in scala
<tilpner>
infinisil: I would agree to an escape-by-default-but-with-opt-out change, but that might break everything :/
<gchristensen>
not to mention the whole world isn't bash
<infinisil>
wedens: ambiguous with just a function call (function bash with argument "...")
<wedens>
infinisil: isn't space after function name mandatory? O_o
<gchristensen>
> let foo = x: x; in [ foo"bar" ] == [ foo "bar" ]
<{^_^}>
true
<gchristensen>
dear me
<wedens>
wat
<infinisil>
> let foo = x: x; in foo 1
<{^_^}>
1
<infinisil>
> let foo = x: x; in foo""
<{^_^}>
""
<{^_^}>
[nixpkgs] @matthewbauer pushed to master « libglade: fix on darwin »: https://git.io/fh20V
<infinisil>
Hmm, this might not work, because not everything that gets escaped is a full argument
<infinisil>
We often have stuff like "echo foo${bar}baz"
<infinisil>
Oh, I guess bash handles `echo foo'bar'baz correctly though
<infinisil>
Ah no it doesn't
<infinisil>
Oh wait it does
<{^_^}>
[nixpkgs] @matthewbauer closed pull request #54448 → unison: fix on darwin → https://git.io/fhgB8
<{^_^}>
[nixpkgs] @matthewbauer closed pull request #54321 → ocamlPackages.lablgtk: make glade support optional → https://git.io/fhEFS
nikola_i has quit [Ping timeout: 252 seconds]
ddellacosta has joined #nixos
ddellacosta has quit [Read error: Connection reset by peer]
ddellacosta has joined #nixos
<jonge>
hey there. i just tried to run nix-build '<nixpkgs/nixos/tests/login.nix>' on an ubuntu with freshly installed nix. it tells me that it needs the "{kvm, nixos-test}" feature set to be able to build. where do i actually set this up?
<jonge>
didn't have that in older versions and this is new to me
dermetfan has quit [Ping timeout: 245 seconds]
<infinisil>
jonge: `nix-build '<nixpkgs/nixos/release.nix>' -A tests.login.x86_64-linux`
<gchristensen>
also, couuld you paste the whole error output?
halfbit has quit [Ping timeout: 245 seconds]
<infinisil>
Oh, sorry
<infinisil>
I'm mistaken
<jonge>
infinisil: i get the same error message. it is: "error: a x86_64-linux with features {kvm, nixos-test} is required to build '/nix/store/....', but i am a x86_64-linux with features {benchmark, big-parallel, nixos-test}"
<infinisil>
Never seen that error before
<gchristensen>
it is part of nix 2.2
<gchristensen>
interesting, I wonder if kvm should have been part of the default local set
<jonge>
i guess not, because i always had to install qemu-kvm like packages in order to have the kvm kernel module loadable. obviously nix can't do that for me on ubuntu
glasserc has joined #nixos
<jonge>
so i am happy to add that "kvm" feature flag somewhere - but where?
halfbit has joined #nixos
<mpickering>
I am seeing the error "restoring parent mount namespace: Invalid argument", any ideas?
<mpickering>
running a script which calls nix
<clever>
jonge: is it happening with build slaves, or local builds?
<gchristensen>
jonge: "This setting by default includes kvm if /dev/kvm is accessible"
<jonge>
gchristensen: argh sry should have looked into the nix manual first. i was just so irritated that suddenly something that i have done like that for months doesn't work any longer. thank you!
<gchristensen>
jonge: well understood :)
<gchristensen>
clever: 2.2 applies the feature requirements logic to local builds now
<clever>
gchristensen: yeah, i saw the release notes somewhere
_d0t has quit [Ping timeout: 245 seconds]
<dmj`>
gsl is broken in nix I think
<dmj`>
should have a dependency on openlibm in buildInputs
<dmj`>
the pkg config file is also not pointing to the include directory properly
sanscoeur has joined #nixos
<dmj`>
it shows /include/gsl/<header files>
sanscoeur has quit [Remote host closed the connection]
<jomik>
Anyone know how I can match `$'foo'` with sed?
<jonge>
gchristensen: so i created /etc/nix/nix.conf and added the line "system-features = [ "kvm" "nixos-test" ];" there but i still get this error, which looks only slightly different. it basically says "i need {kvm, nixos-test} test but i have {kvm, nixos-test}"
<clever>
jonge: the syntax is just `system-features = kvm nixos-test` i think
<gchristensen>
jonge: you shouldn't need to modify nix.conf if /dev/kvm is available
<gchristensen>
and also, indeed, nix.conf is ini-style, not Nix
<clever>
and yeah, it will just fail due to a missing /dev/kvm if you force that
<clever>
you need to modprobe the kvm driver for your cpu
<jonge>
clever: oh my bad. i took that style from that `requiredSystemFeatures` example, which is of course wrong.
<clever>
either kvm-amd or kvm-intel
superherointj has quit [Ping timeout: 245 seconds]
<jonge>
ok, got this now. thank you infinisil gchristensen clever!
<gchristensen>
great!
Makaveli7 has quit [Quit: Leaving]
mtesseract has joined #nixos
boxscapeR has joined #nixos
<mpickering>
I did `nixos-rebuild switch`and rebooted, now <nixpkgs> refers to some very old commit (17.09)
<mpickering>
NIX_PATH points to the right source for nixpkgs
<mpickering>
which is at a recent commit (Jan 13)
ng0 has joined #nixos
boxscapeR has quit [Remote host closed the connection]
<{^_^}>
[hydra] @nlewo opened pull request #632 → hydra-queue-runner: better error message if nix-store can not be started → https://git.io/fh2gq
<sphalerite>
yeah it's not going anywhere anytime soon
<sphalerite>
and nix build isn't considered a stable interface yet
<ivegotasthma>
ah, okay
mtesseract has joined #nixos
<ivegotasthma>
thanks
sigmundv_ has quit [Ping timeout: 246 seconds]
Makaveli7 has joined #nixos
<__monty__>
How do I get a nix-shell with a derivations buildInputs? nix-shell -A expects a default.nix so that's not what I want. I want the buildInputs for something in nixpkgs.
<clever>
__monty__: then tell it to open nixpkgs, nix-shell '<nixpkgs>' -A hello
<clever>
it accepts the "path" to a default.nix to load
i0-dfn has joined #nixos
<__monty__>
clever: Ah, thanks. Using -A nixpkgs.attribute didn't work. I thought they were equivalent?
<clever>
__monty__: only nix run uses that type of syntax
<clever>
for nix-shell, it will try to load things in this order:
<clever>
* the file given on the cmd line (if present)
<clever>
* shell.nix
<clever>
* default.nix
samrose_ has quit [Ping timeout: 246 seconds]
peacememories has joined #nixos
<clever>
and the file on the cmdline, can either be a file like foo.nix, a dir like ./bar/ or ., or a search path like <nixpkgs> (and quote it to stop bash)
<clever>
if it is a dir, then i believe it will open default.nix in that dir
mtesseract has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<fresheyeball>
ok so, has anyone gotten apply-refact to work in a nix-shell
ingenieroariel has joined #nixos
<nh2>
fresheyeball: awesome, glad it worked!
<__monty__>
clever++ Forgot to express my gratitude : ) GHC HEAD is succesfully building.
<{^_^}>
clever's karma got increased to 79
<fresheyeball>
for some reason it's looking for a package.db wand not finding it
<fresheyeball>
nh2: it was an amazing call
<ingenieroariel>
Hello all, I am trying to compile nix on fedora (riscv) but currently have trouble with libedit. I have manually compiled libeditline but I cannot get pkg-config to pick it up. Does anyone know how to pass a custom libeditline to nix?
<fresheyeball>
ingenieroariel: why not just run the install script?
<ingenieroariel>
it's riscv, I did not think to try ... on it
<fresheyeball>
if you do that, you can use nix to supply deps to build nix
<ingenieroariel>
sh: sorry, there is no binary distribution of Nix for your platform
o1lo01ol1o has joined #nixos
<ingenieroariel>
I am compiling nix because there is no nix :)
<fresheyeball>
oic, funky
<nh2>
fresheyeball: now you have around factor 6x slack for adding new dependencies before you have to fix gcc ;) Should your biz need it some day, I might be able to offer that as a contracting task (that bit probably won't be done within the time of a night's call :P)
<fresheyeball>
nh2: I think we are good for a while
<fresheyeball>
I am happy to give money when I have money for things I need
ThatDocsLady has quit [Ping timeout: 245 seconds]
<ingenieroariel>
and I already tried cross compilation from nixos without success
<nh2>
fresheyeball: do you already depend on lens? :D
<fresheyeball>
yes
<nh2>
then you probably have some slack
<fresheyeball>
agreed
<fresheyeball>
I think adding lens might have been what tipped it over the edge
<nh2>
ingenieroariel: into which directory does `make install` put the installed libeditline?
eadwu has joined #nixos
<nh2>
ingenieroariel: also, is it that the package is missing entirely on Fedora on RISCV or is it that it exists but you needed a custom version?
<ingenieroariel>
it does not exist
<ingenieroariel>
not sure why, I compiled it and it was put in /usr/local/lib
erictapen has joined #nixos
<ingenieroariel>
(most other libs are at /usr/lib64)
<nh2>
sometimes `make install` installs stuff in a different place than your distribution wants it, that may be a reason it isn't found. In that case you have to give `--prefix` to `./configure`. But before we do that, let's see if we can tell nix to use the lib, no matter where you installed it
<nh2>
ingenieroariel: can you `find /usr/local/lib | grep editline | grep '\.pc'`?
<gchristensen>
shlevy_: you 'round?
<nh2>
to see if a pkg-config .pc file was generated?
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ingenieroariel>
I just copied it to /usr/lib64/pkgconfig/libeditline.pc, as well as the build libs, mirroring I hope what --prefix would have done
freeman42x has joined #nixos
mtesseract has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nh2>
ingenieroariel: I would not do that, instead I would tell nix explicitly where the thing is, that's somewhat cleaner and easier to remember. You can do that by e.g. `export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig`, then nix's build should pick it up
<ingenieroariel>
thanks a lot! it looks like I am off to the next error - liblzma, but now I know more thanks to you
<ingenieroariel>
locate
<nh2>
ingenieroariel: ping me for more help on it, I may be able to help with many of these problems
<nh2>
and I think riscv support would be cool
hke has joined #nixos
<ingenieroariel>
lzma-devel does not create a pkgconfig entry (and there is liblzma.so.5 but no liblzma.so
<ingenieroariel>
)
<ingenieroariel>
so lzma-devel installed correctly (from dnf), and there is something in my system that nix can link to but it cannot find it
o1lo01ol1o has quit [Remote host closed the connection]
<nh2>
ingenieroariel: what I don't understand though is why you have to do it -- apparently there's some RISCV support already in NixOS, which suggests to me that somebody must have built nix for RISCV, which begs the question why there is not bindist for it in the installer script
<ingenieroariel>
it was a bit old and depended on qemu-riscv which is not a thing anymore after riscv support was upstreamed (available in 18.09)
<ingenieroariel>
when I fixed that I got error: Package ‘kexec-tools-2.0.17’ in /nix/store/2a6yqvg5wbnhy4nq9lj05bbsddc3lga8-nixos-18.09.1853.c2950341d03/nixos/pkgs/os-specific/linux/kexectools/default.nix:23 is not supported on ‘riscv64-unknown-linux-gnu’, refusing to evaluate.
<ingenieroariel>
after I realized that I would not be able to download kexec-tools from anywhere I start off from a riscv fedora image to try to build nix assuming that it would not print out errors
<clever>
ingenieroariel: i think systemd depends on kexec
<nh2>
ingenieroariel: hmm
<das_j_>
clever: Doesn't systemd use an own tool?
<ingenieroariel>
I also thought it was kind of cool so just compile nix from scratch over there
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ingenieroariel>
it would be cool if I can support nixos but since my goal is to just use nix to build a minimal riscv image with sel4 then systemd will likely not be an issue
<das_j_>
clever: Well, shouldn't have questioned you as always ;)
<das_j_>
clever++
<{^_^}>
clever's karma got increased to 80
<clever>
ingenieroariel: you may be interested in not-os
<nh2>
ingenieroariel: a google search for `fedora "liblzma.pc"` suggests that the `xz-devel` package might have `liblzma.pc`
<clever>
ingenieroariel: on x86, it compiles down to a 40mb squashfs, which contains the entire rootfs
<ingenieroariel>
amazing clever!
<ingenieroariel>
my platform is an intel nuc, which I put on my car
<ingenieroariel>
(1tb sdd, 32gb of ram, core i7)
<clever>
its basically a custom distro, heavily modeled on nixos (and borrowing some nixos modules), but uses runit rather then systemd, and a large amount of junk is missing
drakonis1 has joined #nixos
<nh2>
ingenieroariel: yes I understand your motivation, I wasn't suggesting that you should support nixos, but that we could build a static `nix` binary _on_ a RiscV nixos and then upload it so you can use it on Fedora
<clever>
nh2: if you can build nix on a riscv nixos, you can just tar up the closure of it
drakonis1 has quit [Client Quit]
<clever>
the tools for generating such a tar also include a dummy nix db "dump", that you can then restore, so the closure in the tar is "valid"
<ingenieroariel>
nh2 yeah, I also think it would be a good idea to have nix binaries (and cache)
drakonis has joined #nixos
PLPD-Bot has quit [Remote host closed the connection]
<{^_^}>
braintree/braintree_python#111 (by ivegotasthma, 1 day ago, closed): Include tests in PyPI tarball
<nh2>
clever: yeah or that
PLPD-Bot has joined #nixos
eadwu has quit [Ping timeout: 250 seconds]
xourt has joined #nixos
<xourt>
Hi all, I am trying to compile the cling with the clang compiler using clandStdenv. I am having trouble because it can't find an include file: fatal error: 'clang/AST/Decl.h' file not found
individual123 has joined #nixos
<xourt>
do I have to add another buildInput for this?
mtesseract has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jomik>
clever: I need to do it for `haskellPackages.ghcWithPackages (self: with self; [ xmonad xmonad-contrib xmonad-extras taffybar ]);` tho.
<clever>
Laalf: if you boot the install media again, and run `cryptsetup luksOpen ...` and `vgchange -a y`, what does `blkid` say about the rootfs?
<clever>
Laalf: and also pastebin your configuration.nix
<jomik>
Got to walk the dogs~
<clever>
jomik: then you want -p
<clever>
jomik: or a cabal file that depends on those 4 things
dgarzon has joined #nixos
acarrico has joined #nixos
<fresheyeball>
Personally I do the cabal file approach to these things, because it generates a nix file, which makes revisting easier. And gives me an expression to save.
<clever>
the above nix-shell command auto-does everything
<clever>
you could even jam that string into a shell.nix file, and then just copy it to every project
<dgarzon>
Hi, when using `runCommand` is it possible to retrieve a file from the current directory? Doing `jq . -s ./plugins.json` yields `jq: error: Could not open file ./plugins.json: No such file or directory`
<clever>
dgarzon: ${./foo}
<dgarzon>
Wow, thank you clever!
<xourt>
fixed now with llvmPackages.libclang.all
<clever>
Laalf: ah, reading the link closer, i believe you want the uuid of the luks device, which one did you insert?
<Laalf>
i thought this was right. /dev/mapper/enc-pv: UUID="ThF1cl-Rlb9-a0rM-pjpc-g2t0-FaeK-p1Dyco" TYPE="LVM2_member" and /dev/mapper/vg-root: LABEL="root" UUID="63246fd1-9c4c-47e6-800c-aa3ca5002c5c" TYPE="ext4" . i inserted the sda2 uuid
<clever>
Laalf: line 30 should open the lvm device, and then do `vgchange -a y`, so then the rootfs will be visible...
<clever>
Laalf: and what about hardware-configuration.nix?
squidpickles has quit [Quit: squidpickles]
grugus has joined #nixos
<Laalf>
clever: ah wait. i see the issue
<Laalf>
i ran the install from my already running system. it probably uses the wrong hardware-configuration
<clever>
Laalf: in general, you use ./hardware-configuration.nix
<clever>
so it works relative to where configuration.nix lives
<Laalf>
clever: the generation doesnt work i guess
<Laalf>
clever: do i have to run this on an install stick?
<clever>
Laalf: nope
<Laalf>
clever: what option then? nixos-generate-config --root /mnt/ --show-hardware-config shows me the one for my current system
oskar has joined #nixos
<clever>
Laalf: you need to change configuration.nix to use ./hardware-configuration.nix, rather then /etc/nixos/hardware-configuration.nix
<Laalf>
clever: that doesnt matter if the hardware configuration is wrong
<Laalf>
clever: as you can see in the commented out lines, i moved my configuration elsewhere
<oskar>
Hi, im trying out nixpkgs for the first time; and have made a change to ~/.nixpkgs/config.nix (should I do that?). how do I apply that change?
<clever>
Laalf: is the correct rootfs mounted to /mnt/ when you run `nixos-generate-config --root /mnt/` ?
<clever>
oskar: re-install/build whatever is affected
<clever>
Laalf: i believe the problem is line 5 of http://paste.debian.net/1061934/, its loading the wrong hardware-configuration.nix
<clever>
you must use a relative path like ./hardware-configuration.nix, so it will not care that the cfg is currently under /mnt/
<Laalf>
clever: but the vg-root, ext4 should be at /etc/nixos/hardware-configuration.nix
<oskar>
Im getting undefined variable 'callPackage' , so Im making some silly mistake I assume? http://paste.debian.net/1061941/
<Laalf>
so ext4 at /, the path should be correct
<clever>
Laalf: that /etc/ is the host doing the install, not the target your installing to
<Laalf>
clever: oh wow
fendor has joined #nixos
<clever>
oskar: pkgs.callPackage
<clever>
oskar: oh, and line 6, your assigning the pkgs attribute, which breaks everything
<clever>
oskar: and interactiveShellInit is nixos only, it wont work in config.nix
<jomik>
clever: So, if I put that in a mkShell's buildInputs, I should be good, right? Wonder why my import in emacs complains, but it builds just fine...
<Laalf>
clever: when its built i wont have my irc client for some time. ill say thanks before i even know it it works.
<oskar>
I see, thanks; will try again :)
alex`` has joined #nixos
<dgarzon>
clever: what about if I need to write to the file? When doing `sponge ${./plugins.json}` I get permission denied :(
doyougnu has quit [Ping timeout: 245 seconds]
<clever>
dgarzon: you can never write to the current directory, all writes must go to the $out dir (you might need to mkdir $out first)
<clever>
and nix-build will then create a symlink called result, that points to that $out
ThatDocsLady has quit [Ping timeout: 246 seconds]
squidpickles has joined #nixos
<dgarzon>
So there is no way to mutate my `plugins.json` from within a `runCommand` :(?
<clever>
dgarzon: you can apply mutations, but the result will be in a copy in $out
oskar has quit [Ping timeout: 256 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<clever>
ivegotasthma: its possible that packages.html isnt set to recurse into nodePackages
<ivegotasthma>
clever: hmm, makes sense, if nixos indexes all of npm
jomik has quit [Quit: WeeChat 2.2]
doyougnu has joined #nixos
<seqizz>
clever: huh, since it was a derivation, .drvAttrs.buildInputs were what I was looking for, thx
<r5d>
A change in qemu or its dependencies in the last 2 days broke my Windows VMs (8.1/10). It was fine before yesterday and I tested on 3 independent systems. How can I find the exact changes to nixpkgs in the last 2 days?
civodul has joined #nixos
fuwa has joined #nixos
<clever>
r5d: one trick, is to use a bisect in nixpkgs
<clever>
r5d: clone nixpkgs, checkout the nixpkgs rev you know works, nix-build -A qemu, ./result/bin/qemu ..., and once you confirm its good, `git bisect good`
<clever>
then checkout the bad rev, build, confirm its bad, and `git bisect bad`
<clever>
git will then check revs out for you, and just keep building, testing, and saying if its good or bad
knupfer has joined #nixos
MightyJoe has quit [Ping timeout: 250 seconds]
cyraxjoe has joined #nixos
<dgarzon>
Thank you clever! I will give that a try!
dgarzon has quit [Quit: dgarzon]
<{^_^}>
[nixpkgs] @veprbl merged pull request #54479 → picocom: Enable on Darwin → https://git.io/fh2So
<{^_^}>
[nixpkgs] @LnL7 opened pull request #54481 → xorg.luit: fix darwin build → https://git.io/fh2Hg
dermetfan has joined #nixos
<r5d>
clever: thanks, I'll look at this. However, qemu itself builds and works (installed the bad version from cache.nixos.org), just Windows VMs crash when using the new version.
halfbit has quit [Ping timeout: 268 seconds]
<clever>
r5d: you would need to boot windows, using the qemu it just built, and try to crash it again
<clever>
if the crash isnt easy to trigger, then things get a lot harder to bisect
halfbit has joined #nixos
<r5d>
clever: I think I get it. Never used git bisect, sounded as if it does the testing itself. I will try this method. Thank you kindly for your pointers.
<clever>
r5d: it can automate the testing, but ive never used that mode
chessai has joined #nixos
ilya-fedin has joined #nixos
halfbit has quit [Ping timeout: 246 seconds]
gagbo has joined #nixos
halfbit has joined #nixos
Makaveli7 has joined #nixos
<ilya-fedin>
Hello! I created an override for firefox-bin to create a package for basilisk-bin: http://ix.io/1yZ2 . But it doesn't work, nix-env writes that the package doesn't exist: `error: attribute 'basilisk-bin' in selection path 'nixos.basilisk-bin' not found`
MP2E has joined #nixos
<clever>
ilya-fedin: what path did you put that config.nix at?
seqizz has quit []
<ilya-fedin>
~/.config/nixpkgs/config.nix
<clever>
ilya-fedin: and why does line 1 have stdenv, ... in it?
<clever>
ls -lh $NIXPKGS_CONFIG ~/.config/nixpkgs/config.nix ~/.nixpkgs/config.nix
<clever>
ilya-fedin: and the callPackage in all-packages.nix defaults it to the config.android_sdk.accept_license
<ilya-fedin>
Thank you!
<jomik>
Or... Maybe it is because I disabled gnome and that removed upower :O
jomik has quit [Quit: WeeChat 2.2]
<ilya-fedin>
jomik reminded me about another question... Is anybody have on nixos unstable a problem that when plasma starts, it says that powerdevil is not working (although ps aux says that it is running) and kwin hangs up regularly (windows stop processing mouse clicks until I restart kwin, and only through SIGKILL)?
<ivegotasthma>
the nix pkg manager repo seems pretty slow, am I missing something?
<infinisil>
ivegotasthma: How can a repo be slow?
<infinisil>
You mean cloning nixpkgs is slow? Yes, because it's a lot of data
gagbo has joined #nixos
<infinisil>
Not sure what else you could mean
<ivegotasthma>
my bad, I was filtering the commits by author
<ivegotasthma>
infinisil: I mean that there wasn't much activity, I saw 5-6 commits per year
ingenieroariel has joined #nixos
<ivegotasthma>
got bamboozled by github UI
<infinisil>
Ah :)
<etu>
ivegotasthma: yeah, we have more commits than that in the repo :p
<tos9>
Hi. Has anyone attempted to install NixOS on an RPi 3A+ here?
<jomik>
I get this error now `Gtk-WARNING **: 22:26:55.140: Could not find the icon 'battery-full-symbolic'. The 'hicolor' theme was not found either, perhaps you need to install it.`
<jomik>
Where do themes resid? :o
<makefu>
jomik: i had lot's of issues with missing icons. can you run the applet by hand and it finds the icons?
<jomik>
Uh, I am running taffybar.
<jomik>
Not entirly sure which applet it'd be then :P
<Mic92>
tos9: since it is the same chipset as the rpi3 b it should work with our default aarch64 image
<praetorg_>
do you have the hicolor theme installed
<jomik>
praetorg_: not explicitly
ddellacosta has quit [Remote host closed the connection]
<makefu>
praetorg_: it should(tm) come as a package dependency.
<tos9>
Mic92: That's what I got from reading https://nixos.wiki/wiki/NixOS_on_ARM/Raspberry_Pi , just some of the specifics are missing there -- I'm hopeful I'll be able to figure out what to change (e.g. in the 3B+ nixexpr there) but was just curious if anyone had tried it and could say they were successful all the way through
<tos9>
Mic92: I'm happy to try and see though if not :)
<Mic92>
makefu: most likly the application in question is missing wrapGAppsHook in that case
<makefu>
for me this was the magic combo to get all the icons running
<makefu>
applications are nm-applet and clipit
<Mic92>
Alling: /var/spool/nginx/logs/access.log
<sphalerite>
does hnix give better evaluation errors than nix?
<makefu>
Mic92: nm-applet has wrapGAppsHook set. it also works when i run it from the terminal, however it is not working for me when being started via systemd user service
tos9 has left #nixos [#nixos]
<Mic92>
sphalerite: According to the demo on nixcon yes
<Alling>
Cool, thanks Mic92! :)
<makefu>
weird enough pasystray (audio applet) works without the hack
<Mic92>
makefu: indeed. I also have it in my configuration
<praetorg_>
jomik i just attempted to install taffybar and it doesn't pull in hicolor as a dependency
<Mic92>
I think the problem was that only a single value is supported for this prefix
<sphalerite>
ah, now the question is how to obtain hnix… nix-shell -I nixpkgs=channel:nixos-unstable -p haskellPackages.hnix fails to build :|
<jomik>
So do we know what a proper fix is? :O what makefu did seems a bit hacky :D
<flavioPrado>
Hi, anyoune can help with virtualbox on stable? I am unable to install oracle extension, and can't figure out why
<sphalerite>
flavioPrado: what are you trying and how is it failing?
<flavioPrado>
enabling the extension with nixpkgs.config.virtualbox.enableExtensionPack = true on config.nix does nothing... it used to ask you to fetch the extension and rebuild
ddellacosta has quit [Remote host closed the connection]
<sphalerite>
well. hnix is evaluating my stuff differently than nix, failing an assertion :|
<sphalerite>
I think I should sleep.
<ivegotasthma>
hnix would evaluate your sleep differently
<gchristensen>
yikes
ddellacosta has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest67619 has quit [Quit: Leaving]
fragamus has joined #nixos
<gchristensen>
anyone seen this before? OSError: [Errno 18] Invalid cross-device link: '/tmp/tmpshpuja4t/entry' -> '/boot/loader/entries/nixos-generation-12.conf' -- I have a tempdir, I write some text to a file, and then os.rename it
<gchristensen>
blaaah "os.rename only works if source and destination are on the same file system. You should use shutil.move instead"
<clever>
gchristensen: os.rename uses the rename syscall, which can only work within a single filesystem
<clever>
gchristensen: you need to instead copy the file, then delete the source, when rename failed
<clever>
the `mv` binary falls back automatically
<clever>
you could also make the temp file in /boot/ to begin with, like /boot/loader/entries/.temp
<gchristensen>
I did that, mic92 didn't like it :P
<clever>
gchristensen: one reason you should stick with os.rename
<clever>
shutil.move will overwrite the file, as it copies
<clever>
and if the machine has an improper shutdown, then the file will be partially written
<clever>
which could brick the machine
<clever>
os.rename is atomic, so it either replaced the file, or it didnt happen
<Mic92>
gchristensen: it is ok for files that are supposed to stay there. But there were also some other files that are copied into the efi stub.
<Mic92>
clever: nothing is atomic in the fat32 unfortunally
<gchristensen>
aye
<Mic92>
you need to use fsync afterwards.
<Mic92>
and hope for the best
logand has left #nixos ["ERC (IRC client for Emacs 26.1)"]
logand has joined #nixos
<clever>
Mic92: note, it is possible to make /boot/ESP fat32, and then /boot/ ext4
<clever>
and in that case, sticking to os.rename would give you protections
fragamus has quit [Ping timeout: 246 seconds]
<Mic92>
clever: yeah, but you can expect many people not doing that given that our installation guide also make /boot a fat32
<Mic92>
Also I think systemd-boot cannot read ext4
<clever>
fix the guide to rely on fat32 for even fewer files?
<clever>
oh, that will need testing and fixing, i use grub, so havent ran into that
<gchristensen>
I don't have a /boot/ESP, should I?
<clever>
gchristensen: wait, wrong path
alex`` has quit [Ping timeout: 250 seconds]
<clever>
gchristensen: its /boot/EFI
justanotheruser has quit [Ping timeout: 240 seconds]
<clever>
technically, only that subdir has to exist on fat32
<Mic92>
gchristensen: it would not work with systemd-boot as far as I know, but it has some advantages if you use grub
<clever>
if you do choose to use a fat32 /boot/EFI and ext4 /boot/ (or even /boot on /), you must set boot.loader.efi.efiSysMountPoint = "/boot/EFI";
slyfox_ is now known as slyfox
alex`` has joined #nixos
<Mic92>
I hope one day manafactures decide to drop the expensive firmware licenses in favor of Linux boot
justanotheruser has joined #nixos
fragamus has joined #nixos
Khetzal has joined #nixos
jackdk has joined #nixos
kvda has joined #nixos
<clever>
Mic92: i dont remember the link, but there are tools to unpack a bios, then repack it with extra efi binaries added in
<clever>
Mic92: and there is another project, that took all of the FS drivers in grub, and packaged them into efi binaries
<clever>
combine the 2, risk bricking your motherboard, and boom, your ESP can be any partition grub supports!
<clever>
maybe even zfs??
<Mic92>
grub's zfs support is pretty much stalled due to the GPL license
<Mic92>
u-boot's zfs support could be better right now
fragamus has quit [Ping timeout: 250 seconds]
<Mic92>
the most time when building stdenv is spent in configure scripts
<Mic92>
autotools needs to go away
<clever>
Mic92: yeah, i wouldnt trust grub with zfs, but its just an example of the insanity you could do
<jackdk>
Mic92: Despite all the attempts, I still reckon it's the least worst option.
<ar1a>
yeah i had a look and like i said, didnt know how i missed it
<__monty__>
What do you do for fun? I go through spec sheets. The adrenaline rush from living life on the edge : >
<clever>
it was down several pages
<seqizz>
Hi again, I am defining an attribute, but can't use it in same level like this: http://dpaste.com/0KFA0N4 , am I nixing wrong?
sanscoeu_ has joined #nixos
<clever>
seqizz: line 8 should be machinename = { resources, ... }: {
kvda has joined #nixos
<ottidmes>
colemickens: I have pushed the changes of nix-prefetch needed to support cargo. It now also includes a README, including a cargo package example in the Examples section: https://github.com/msteen/nix-prefetch
<clever>
seqizz: wait, somethings not right, line 8 (deployment) is a nixos option, but line 2 is a nixops option
<clever>
seqizz: that shouldnt be working
sanscoeur has quit [Ping timeout: 246 seconds]
codezero has quit [Quit: Ping timeout (120 seconds)]
<rycee>
Could somebody using standard X sessions (i.e. not using ~/.xsession) help me a bit? I would like to see what `echo $DESKTOP_SESSION` prints.
Laalf has quit [Quit: No Ping reply in 180 seconds.]
codezero has joined #nixos
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
Laalf has joined #nixos
<ottidmes>
rycee: my ~/.xsession is empty and I use lightdm, if that qualifies as standard X sessions, then my value is: xfce+bspwm
<rycee>
Perfect. Thanks!
<clever>
rycee: that var is just `xfce` on my end
orivej has quit [Ping timeout: 246 seconds]
orivej_ has joined #nixos
devhell has joined #nixos
Ralith_ has quit [Remote host closed the connection]
Lingjian has quit [Ping timeout: 250 seconds]
erictapen has quit [Ping timeout: 245 seconds]
<ar1a>
none+bspwm here
Decoy has joined #nixos
Decoy has left #nixos [#nixos]
<rycee>
Thanks ar1a :-)
<rycee>
I don't need any more.
<infinisil>
rycee: Now we need to know: What for?
[Leary] has joined #nixos
Lears has quit [Read error: Connection reset by peer]
<rycee>
Trying to figure out how to have a ~/.xsession file and still be able to select other sessions in the DM.
<seqizz>
clever: I got what you said, but this still doesn't make any sense to me :| Here is everything I use: http://dpaste.com/270MHBW
<infinisil>
I see
<clever>
seqizz: and what does `nixops info` say?
<seqizz>
clever: And the error is awesome: error: cannot coerce a list to a string, at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:109:60 :)
<clever>
seqizz: base.nix is a nixops file, imports is not a valid key in that context
<seqizz>
aaaaaah
<clever>
seqizz: aws.nix is a nixos module, resources is not valid in that context, and line 17 of the pastebin is nixops syntax
acarrico has quit [Ping timeout: 245 seconds]
silver_ has joined #nixos
<worldofpeace>
wouldn't the proper var be XDG_CURRENT_DESKTOP rycee ?
<clever>
seqizz: you want to move 17-35 into the base.nix, and put the imports inside near deployment = {
alex``` has joined #nixos
<rycee>
infinisil: I suspect it isn't possible. So if anybody wants to have, for example, both a HM session and a regular KDE one then they have to manually create a HM desktop manager session in the system configuration.
peacememories has joined #nixos
<clever>
seqizz: i'll put an example in git
<clever>
gist*
<ingenieroariel>
I am compiling nix on my cell phone (while I wait for nix compilation on riscv to finish) and just noticed something odd - bootstrap produces a configure file that has throws a syntax error on line 7005
alex`` has quit [Read error: Connection reset by peer]
fusion809 has quit [Remote host closed the connection]
<rycee>
worldofpeace: Interesting. I don't have the variable, does it point to the session script?
<infinisil>
rycee: Can't users usually select from multiple sessions in the display manager?
<infinisil>
Well, I thought I saw that at some point at least
silver has quit [Ping timeout: 268 seconds]
Ralith_ has joined #nixos
<worldofpeace>
rycee: Some docs I found on that var: "$XDG_CURRENT_DESKTOP should have been set by the login manager, according to the value of the DesktopNames found in the session file. The entry in the session file has multiple values separated in the usual way: with a semicolon."
alex``` has quit [Ping timeout: 246 seconds]
<rycee>
infinisil: As far as I can tell it is not possible. You can select a different session but it will not be honored if you have a ~/.xsession file. See https://is.gd/T1ACAe
protocol has joined #nixos
<rycee>
It will unconditionally exec the xsession file if it exists, only if it doesn't exists will the actual session script be executed.
<protocol>
question, probably dumb, but I can't find much documentation on it: is OpenGL enabled by default on NixOS?
<infinisil>
rycee: I think it would be worth changing nixpkgs to fix that
alex``` has joined #nixos
<infinisil>
protocol: If you have services.xserver.enable = true; then yes, otherwise no
<rycee>
worldofpeace: Hmm, then XDG_CURRENT_DESKTOP probably isn't what I'm looking for. I'm wanting the actual path to the script that starts the desktop session.
<rycee>
Anybody mind running `echo $XDG_CURRENT_DESKTOP`? :-)
<protocol>
I do; is there a way to test it, like gltest on other distros?
<worldofpeace>
btw you can do `printenv XDG_CURRENT_DESKTOP`
<clever>
seqizz: network.nix defines network wide params, and a machine called awsDeploy that uses base.nix
<infinisil>
rycee: Might be worth starting up a VM with a DE if you try stuff out, should be quite easy with `nixos-rebuild build-vm` and one of the installer profiles
<rycee>
worldofpeace: Neat. I think echo is nicer though since Bash has tab completion of variables for the echo command but not the printenv command, for some reason.
ingenieroariel has quit [Ping timeout: 256 seconds]
<clever>
seqizz: network_aws.nix defines the ec2 key, and adds aws.nix to awsDeploy
<worldofpeace>
rycee: Weird I'm using zsh and it works
<rycee>
worldofpeace: I think zsh is having fancier tab completion :-)
<worldofpeace>
rycee: Right :P
erasmas has quit [Quit: leaving]
fendor has quit [Quit: Leaving]
<seqizz>
clever: Yup, that worked. I need to dig more about this separation of nixos/nixops configuration options. But I got the main idea, thanks++ for all the explanation :)
<rycee>
infinisil: Yeah, I'll try digging in to it a bit more with a VM some other time. Now to sleep :-)
<Church->
So I think nixos may have helped me get a job. Neat
<rycee>
protocol: You could try seeing what `nix run nixpkgs.glxinfo -c glxinfo` does.
o1lo01ol1o has quit [Remote host closed the connection]
<protocol>
oh wow, that's awesome, does it just do a single-run type thing with the package instead of installing it?
<rycee>
protocol: Yeah.
<protocol>
that's awesome
<protocol>
also, it spit out a *bunch* of data
fragamus has joined #nixos
<protocol>
I see in there "Extended rendered info blah blah blah Accelerated: yes"
<rycee>
Then I guess you have some opengl working at least :-)
<protocol>
cool!
chessai has quit [Remote host closed the connection]
<protocol>
I *kinda* felt like it was working, because the Plasma desktop isn't dying when I do, well, anything
<protocol>
just ruling things out. I just created my first package, and the output application was noting an OpenGL error, and OpenMW wasn't working right, so I just wanted to rule out the drivers
<protocol>
that actually brings me to my second question: would there be any ethical concerns about putting together a package for someone else's GitHub project? Is there some way to note that I only put the package together to bring it into the Nix package system?
<protocol>
I don't want to take any credit for their project, but I also don't want to accidentally/inadvertently sign them up for package bugs/questions vs project bugs/questions
<infinisil>
protocol: Nah no need to worry about that I'm pretty sure, often the project owners also like to put a section in their readme pointing out that it works on Nix/NixOS as well. And Nix people usually question their own packaging first before going to the project owner
<__monty__>
protocol: No concerns whatsoever. No one'll mistake a maintainer for an author.
<{^_^}>
[nixpkgs] @dywedir pushed commit from @rvolosatovs to master « miniflux: 2.0.13 -> 2.0.14 »: https://git.io/fhafd
iqubic has joined #nixos
ng0 has quit [Quit: Alexa, when is the end of world?]
ingenieroariel has joined #nixos
ingenieroariel has quit [Client Quit]
ingenieroariel has joined #nixos
<ingenieroariel>
checking for aws/s3/S3Client.h... no ./configure: 7005: ./configure: Syntax error: "(" unexpected (expecting "fi")
erictapen has joined #nixos
<ingenieroariel>
this is the configure error from nixos when running on termux/lineageos/aarch64 - the line in question is a long line related to aws env