<{^_^}>
[nixpkgs] @hedning opened pull request #70430 → nixos/system-environment: prepend wrapperDir to PATH → https://git.io/JeCUY
mexisme has joined #nixos
qubasa has joined #nixos
leo_ has quit [Quit: leaving]
dermetfan has quit [Ping timeout: 245 seconds]
<samueldr>
exarkun: when used on the fetchFromGitHub parameter it ends up using fetchgit
rsoeldner_ has quit [Ping timeout: 276 seconds]
<samueldr>
exarkun: that doesn't answer your question exactly, but might help
<exarkun>
I found a way to not care if the submodule gets fetched or not :/
<samueldr>
(no more github specific logic, except the special repo/owner stuff)
rsoeldner_ has joined #nixos
qubasa_ has quit [Ping timeout: 276 seconds]
<exarkun>
now fighting buildPythonPackage instead :)
mexisme has quit [Ping timeout: 276 seconds]
mexisme has joined #nixos
iyzsong has joined #nixos
kleisli has quit [Ping timeout: 268 seconds]
rsoeldner_ has quit [Remote host closed the connection]
rsoeldner_ has joined #nixos
selfsymmetric-mu has quit [Remote host closed the connection]
rsoeldner_ has quit [Remote host closed the connection]
rsoeldner_ has joined #nixos
rsoeldner_ has quit [Ping timeout: 276 seconds]
t58 has joined #nixos
jluttine has joined #nixos
growpotkin has joined #nixos
jluttine has quit [Ping timeout: 276 seconds]
<{^_^}>
[nixpkgs] @mtrsk opened pull request #70432 → ranger: add video and pdf preview options → https://git.io/JeCUa
endformationage has quit [Ping timeout: 246 seconds]
philr has joined #nixos
leo_ has joined #nixos
<leo_>
simpson: I got locked out of my system. xdddd
<hlolli_>
with `extraConfig = "return 301 $scheme://www.domain.com$request_uri;";` and `virtualHosts."www.domain.com" = { locations."/express-endpoint" = { proxyPass = "http://127.0.0.1:8081/express-endpoint";` I experience that a post request with json string is turned into a GET request, both via cURL and browser (verbose cURL says literally `* Switch from POST to GET`). With or without `recommendedProxySettings = true;` I can't seem to keep the
<hlolli_>
request intact trough the proxyForwarding.
<leo_>
Had to `nixos-enter` and recover it.
<leo_>
Apparently `disableSuToRoot` and `immutableUsers` are not playing well together.
<hlolli_>
btw clever, I solved my problem with node2nix and `npmFlags = "--target_libc=unknown";` in override. Very nice :)
<hlolli_>
ah (f-word), recently I had compilation errors with locations."/path" and added a locations."/path/" slash to all my locations, that's what caused this error :(, but after updating my unstable channel, it doesn't complain anymore.
<hlolli_>
ah yes, I got it again "Using alias in a prefixed location that doesn't ends with directory separator could lead to path traversal vulnerability." I took this message too seriously, but its meaning was only the alias of totally different location.
o1lo01ol1o has quit [Remote host closed the connection]
<dckc>
ah. right. that's the one. did you have that memorized? Is it documented?
<notgne2>
`nix-build` will just run the expression as-is (no arguments), whereas stuff in nixpkgs wants to be called with callPackage so it can accept other packages as arguments. `-E` gives it an inline expression instead of a file, then you can just have that expression import and run callPackage on the file you actually want to build
hlolli__ has quit [Quit: Leaving]
<philr>
I'm having problems building i3 from nixos-unstable, what's the best way to patch/override/??? the config in nixos/modules/services/x11/window-managers/i3.nix?
<notgne2>
it's not documented anywhere that I know of
<notgne2>
you can probably get away with `nix-build -E 'import ./default.nix (import <nixpkgs> {})'` or something like that too, but I don't know enough about callPackage to say for sure
<infinisil>
"If a package is not a release but a commit from a repository, then the version part of the name must be the date of that (fetched) commit. The date must be in "YYYY-MM-DD" format. Also append "unstable" to the name - e.g., "pkgname-unstable-2014-09-23". "
<infinisil>
So version would be "unstable-2014-09-23"
<cdepillabout>
infinisil, So in the nix codebase, when a .nix file is parsed and turned into an AST, what type does an unquoted URL become?
<cdepillabout>
Does this question even make sense?
<infinisil>
Seems to become just a string yeah
<cdepillabout>
But an actual path (like ./.) becomes something else? Or a string as well?
<gyroninja>
what would cause nix-shell to fail depending on where the shell.nix is?
<gyroninja>
I have two identical shell.nix files (same sha256 hash) but one succeeds and one fails
<{^_^}>
[nixpkgs] @joachifm opened pull request #70447 → nixos/containers: explicitly load kernel modules for networking → https://git.io/JeCLR
<sphalerite>
gyroninja: they might have relative references to files
<gyroninja>
oh that is the case
<sphalerite>
gyroninja: try grep -F ./ shell.nix
<sphalerite>
ah well then :D
<gyroninja>
Well I'm running into `error: attribute 'source' missing, at /nix/store/gjrmfwfy6prh59lj785lcw0fawirp79a-nixos-20.03pre194293.2436c27541b/nixos/pkgs/development/ruby-modules/bundled-common/functions.nix:88:14` for a ruby project
toppler has quit [Ping timeout: 250 seconds]
graf_blutwurst has joined #nixos
o1lo01ol1o has joined #nixos
<gyroninja>
weird I just ran bundix -l again and the problem went away
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #70448 → nixos/lightdm: improve systemd service → https://git.io/JeCLz
graf_blutwurst has quit [Remote host closed the connection]
<wrl>
hey, so following up from last night – i'm trying to boot a nixos installer on a brand-new ryzen x570 box, and it's dying at "waiting for device /dev/root to appear"
<wrl>
when i go to the interactive shell, i don't have device nodes for the USB stick or the NVME drive i want to install on
<HKei>
you mean the bootable flash drive crashes?
<wrl>
arch successfully brings these up when I boot a live USB disk
<astrall33>
:-(
<MichaelRaskin>
I wonder if the stick misses some drivers…
<wrl>
with clever's guidance, i've built a minimal ISO with the 5.3.1 kernel
<wrl>
it exhibits the same issue
<astrall33>
cool.
<astrall33>
thats beyond bleeding edge.
<wrl>
usb_storage is modprobe'd and working
<wrl>
that's the driver that the USB stick at least needs
<wrl>
i'm not really sure what else to try here
<{^_^}>
[nixpkgs] @worldofpeace pushed to master « nixos/pantheon: add elementary-default-settings for services »: https://git.io/JeCLV
<wrl>
well, "working" – don't know
<MichaelRaskin>
In what sense it is working?
<wrl>
also of note – in the nixos boot, /sys/firmware/efi/efivars is empty
<wrl>
with arch, it's not
<MichaelRaskin>
dmesg should say something about USB devices turning out to be storage devices
<{^_^}>
[nixpkgs] @joachifm opened pull request #70449 → graphene-hardened-malloc: constrain platforms to x64 linux → https://git.io/JeCLr
graf_blutwurst has joined #nixos
<wrl>
MichaelRaskin: it does not. when unplugging and replugging the USB stick, i get nothing after "SerialNumber"
iqubic` has joined #nixos
<wrl>
it appears that I'm missing the "ums-realtek" module
<wrl>
which is for USB realtek SD card readers
<MichaelRaskin>
Yeah, at some point I found out some of my USB HDDs need uas
<MichaelRaskin>
A similar situation
<wrl>
i'm short on USB keys right now so I grabbed this and would prefer to continue using it if at all possible
<wrl>
how do i deal with this? I'm able to build my own images and did so in this particular case
<wrl>
still new to nix so would need some handholding
<MichaelRaskin>
You built a new image changing only the kernel version, right?
<wrl>
i did `nix-build '<nixpkgs/nixos/release.nix>' -A iso_minimal_new_kernel.x86_64-linux`
iqubic has quit [Ping timeout: 264 seconds]
<MichaelRaskin>
Ah
<{^_^}>
[nixpkgs] @joachifm opened pull request #70450 → tor-browser-bundle-bin: use hardened allocator → https://git.io/JeCLP
<wrl>
is there an easy way to do this? am i looking at a kernel recompile?
<MichaelRaskin>
I don't think so
<astrall33>
everything is easys in nixos, when you know how..
<wrl>
astrall33: trying to figure it out ;)
<MichaelRaskin>
Well, no amount of knowledge would save you from Chromium rebuild being crazy long
<MichaelRaskin>
We-ell…
<wrl>
there's stuff in /lib/modules but not the stuff that i need
<MichaelRaskin>
How clean you want the process to be?
<wrl>
are there more modules available if the USB drive is able to be mounted?
<wrl>
i'm concerned about the NVME drive not showing up
<wrl>
moreso than the sdcard reader issue
<astrall33>
boot.initrd.extraKernelModules in configuration.nix
<wrl>
MichaelRaskin: i'm interested in learning nix well enough to use it for ops at some point, so "idiomatic nix/nixos" is preferred
<astrall33>
not exactly a how to guide..
<MichaelRaskin>
The idea is: we build more or less all modules, but initramfs (that has to be in RAM, sometimes on 2GiB RAM systems using external builders) is small and includes only our best guess
<astrall33>
idiotmatic!!! you've come to right the palce.
<HKei>
anyone working with C++ regularly? I'm looking for git-clang-format, I'd expect it to be provided by clang-tools but I just checked the expression and it only seems to expose a select list of things which doesn't include that particular script
<MichaelRaskin>
Well, you probably have a checkout, right?
<wrl>
MichaelRaskin: i don't currently but that's not a big problem.
<MichaelRaskin>
You have an option of just editing installation-cd-minimal-new-kernel.nix and adding the necessary option there
<HKei>
clang-format itself is there, but I need git-clang-format for some of my workflows (e.g. company policy to only format diffs)
<MichaelRaskin>
(this would be you using Nix-idiomatic facilities and perfectly fine Nix code, but not perfectly clean in sense of editing the checkout)
toppler has joined #nixos
<wrl>
MichaelRaskin: i have a hunch that if I'll need a checkout to change the options in installation-cd-minimal-new-kernel.nix since it's included by the `module` statement/whatever in release.nix
<wrl>
i.e. there's not a way to say 'build release.nix but use this specific module i have somewhere outside of the tree'
<wrl>
is my understanding correct?
<MichaelRaskin>
Well, if only release.nix exported makeIso
<MichaelRaskin>
Basically release.nix is (correctly) written to be as much independent from how you call it as possible
mexisme has joined #nixos
<MichaelRaskin>
It defines a few release artifacts, including ISO images
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JeCtk
<haslersn>
When booting the nixos installer on my new notebook with i7-10510U, I get a blackscreen after selecting which version to boot (default, copytoram, etc.). Could it be that the installer has a too old kernel or too old drivers?
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @Kjuvi to release-19.09 « timetable: 1.0.8 -> 1.0.9 »: https://git.io/JeCtI
<haslersn[m]>
When trying to boot my nixos ssd or the nixos installer, I get a black screen after choosing the entry in the boot loader. I have a quite new i7-10510U. Could it be that kernel or drivers are too old?
<HKei>
haslersn[m] I've had an issue like that when using the open source nvidia drivers with a 1440p monitor
<haslersn[m]>
There's no dedicated graphics card
<hyperfekt>
haslersn[m]: Do you get to the GRUB menu? Or is the black screen before that?
<haslersn[m]>
hyperfekt: after it. Both for the installer and my ssd.
<hyperfekt>
Oh sorry, just scrolled back. Try the nomodeset option?
magnetophon has joined #nixos
alex`` has quit [Quit: WeeChat 2.6]
<haslersn[m]>
@hyperfekt Also blackscreen
<haslersn[m]>
hyperfekt: Also blackscreen
<haslersn[m]>
Where can I get an installer with newer kernel?
toppler has joined #nixos
<astrall33>
what's wrong with the stock kernel?
<astrall33>
just out of cursosity?
<HKei>
haslersn has issues with X being broken apparently
<haslersn[m]>
astrall33: The installer doesn't work for me. I get a black screen after choosing the boot loader entry.
<haslersn[m]>
HKei: Why X? I don't even get a tty with the minimal installer.
<haslersn[m]>
I don't even get any log output on booting.
<HKei>
ah
<HKei>
well then it wouldn't be X
<HKei>
I thought you meant black screen as in your login manger doesn't work or something like that
<astrall33>
what hardware are you on.
toppler has quit [Ping timeout: 276 seconds]
<hyperfekt>
haslersn[m]: The way to get a newer installer is to wait for 19.09 which is going to be released very soon (as you can tell by the name :b ) our to install Nix and follow these instructions, while having your channel set to 19.09: https://nixos.org/nixos/manual/index.html#sec-building-cd
<haslersn[m]>
hyperfekt: Yes, I'm on NixOS using my old notebook.
<tilpner>
,matrixbridge haslersn[m]
<{^_^}>
haslersn[m]: The IRC<->Matrix bridge sends multi-line messages as links: `* Someone sent a long message: < https://matrix.org/_matrix/media/v1/download/matrix.org/... >`. This means that highlights don't work, people have to open your link, and it gets less visibility than multiple single-line messages
boxscape has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JeCtD
<haslersn[m]>
The ubuntu 18.04 live stick boots with kernel 5.0.0-23-generic
<jluttine>
anyone else using polybar on nixos? i'm not able to get unicode icons to show.. just getting "Dropping unmatched character". i wonder if there's something nixos specific about it, as i've tried to set up the fonts
<tilpner>
jluttine: I am, but mine's purely text :c
* tilpner
helpful
<jluttine>
tilpner: yep, i've been removing those icons thus far, but now i would have wanted to have some.. :/
<haslersn[m]>
tilpner: Thanks a lot. The new-kernel installer works.
o1lo01ol1o has quit [Ping timeout: 265 seconds]
<tilpner>
jluttine: What font-* did you set?
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @Ma27 to release-19.09 « libcouchbase: fix build »: https://git.io/JeCtQ
<jluttine>
font-2 = "Siji:pixelsize=10;0";
<jluttine>
font-3 = "Iosevka:pixelsize=10;0";
<jluttine>
tilpner: ^
<jluttine>
and i have: fonts.fonts = with pkgs; [ siji iosevka ];
<jluttine>
and i understood that those fonts should be able to show icons..
<{^_^}>
[nixpkgs] @unode opened pull request #70457 → init: mpld3 at 0.3 → https://git.io/JeCt7
<{^_^}>
[nixpkgs] @unode opened pull request #70458 → init: bbtools at 38.69 → https://git.io/JeCtd
acarrico has quit [Ping timeout: 245 seconds]
ng0 has joined #nixos
<jluttine>
or maybe it's nerdfonts that i need..
<jluttine>
i guess i continue playing with the font settings..
<tilpner>
jluttine: What characters are you trying to display?
<{^_^}>
[nixpkgs] @jabranham opened pull request #70460 → R: Update CRAN and bioconductor packages → https://git.io/JeCqJ
waleee-cl has joined #nixos
alex`` has joined #nixos
<jluttine>
uh.. nerdfonts is huge in nixpkgs as it contains all the fonts.. i suppose it's not possible to select only some fonts from that collection.. :)
<HKei>
jluttine: actually I don't think it contains anything by default, you have to say which one you want using `withFont`
jb55 has quit [Remote host closed the connection]
<jluttine>
HKei: oh.. but when i install it in my fonts, nixos-rebuild just downloads and downloads.. eventually after like 15min it actually failed because there was outstanding data for curl
jb55 has joined #nixos
orivej has joined #nixos
<{^_^}>
[nixpkgs] @Ma27 pushed commit from @r-ryantm to release-19.09 « libfilezilla: 0.18.1 -> 0.18.2 »: https://git.io/JeCqO
<tilpner>
jluttine, HKei: nerdfonts does have a withFonts argument, but it's only used during installPhase. I don't see how it could fetch less with the current expression
<clever>
it would need seperate tar files, for each font
<HKei>
Well, the comment just said that it was "huge", so I was assuming they were talking about the install size
<astrall33>
who needs fonts! ;-)
<clever>
HKei: its also huge, in that you have to download several 100mb (or was it gig?) worth of fonts, before you can extract and keep 1
<tilpner>
clever: Noto alone was 900MB, and there are 44 other fonts
<clever>
gigs then
<HKei>
weird, I don't remember it taking super long when I installed, but that may have been because I was super sleep deprived and not really aware of time at the time
<clever>
worldofpeace: i find even the main nixpkgs docs cause that, the problem is that they show how builder works, but dont point out that its mainly for learning how it works
<worldofpeace>
clever: exactly. I'm pretty sure normal programming documentation always does that, points out those lower level details as supplimentary information but focuses on how you should actually be doing things
<jluttine>
HKei tilpner: perhaps nixpkgs should have a separate package for each font in nerdfonts. these can be created programmatically as tilpner's gist shows. then one could easily install any subset of the fonts. or what do you think?
<worldofpeace>
lol, isn't that the gist I posted last week?
<clever>
ah, so you cant bypass the release/archive tars and download just one font
<clever>
you would have to download each file in the font, one per fetchurl
<clever>
i think the simplest option, would be to make 3 layers of drvs, the first layer just fetches everything as a zip (plain fetchurl on the release)
<clever>
the 2nd layer, is an array of drvs, that unpack 1 font each (always 1 font)
<clever>
the 3rd layer is a buildEnv to put it back together
<clever>
and the critical part, is that hydra is configured to build everything in the middle layer
<jluttine>
perhaps first someone open an issue describing this idea?
<tilpner>
Nah, just send a PR and iterate in review
<tilpner>
If you want this to be done anytime soon, at least
<jluttine>
ok. i thought that issues are used for organizing who's working on what (by using the assignee). then one knows that who's working on that if anyone and not multiple people simultaneously either.
<jluttine>
but perhaps that's a minimal risk for this
<HKei>
question about package development: I want to have a self contained package derivation, and a separate one describing a shell environment that has some extra dependencies I need for development but not for actually building the package
<clever>
HKei: i usually do that by having shell.nix do an override against default.nix
<HKei>
I'd like to not duplicate the packages dependencies in my shell description, but the derivation after callPackage doesn't have buildInputs anymore
<__monty__>
HKei: Sounds like what the classic default.nix/shell.nix dichotomy is for.
<clever>
HKei: in this example, i'm generating a bash script, that will run whatever cabal produced, with all of the complex args the program needs to work
<jluttine>
worldofpeace: i added that nerdfont fira code package to fonts.fonts list but `fc-match fira` nor `fc-match fura` doesn't find it. any ideas why? is the installation incorrect somehow?
<jluttine>
(that gist, i mean)
<hyperfekt>
HKei: You'll want mkShell and its inputsFrom attribute. c:
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #70465 → nixos/system-environment: use pam syntax for home variable → https://git.io/JeCqh
<jluttine>
also, i just tried to use the same template for Iosevka but it fails to build: "install: missing file operand" :/
<jluttine>
perhaps no *.otf in iosevka, need to use something else for that..
<HKei>
also how strongly do people feel about the output splitting thing (i.e. [out dev]) for packages? Because while I get these can save a bit of disk space, they've mostly just caused problems for me
ng0 has quit [Quit: Alexa, when is the end of world?]
<HKei>
a lot of install scripts are really allergic to the idea that some of their outputs end up in different prefixes than others
<simpson>
HKei: Then don't split them. Splitting is good and desirable but not mandatory.
<worldofpeace>
jluttine: I can see the font in gnome-font-viewer
<worldofpeace>
maybe it just has a weird name
<HKei>
yeah, fc-match SauceCodePro gives me FreeMono not the SourceCodePro nerdfont
drgbr_ has quit [Ping timeout: 265 seconds]
chloekek has joined #nixos
<pbb>
provessor[m]: That's really nice of you, I was actually looking for a possibility to override the installBootLoader attribute to add my own commands without modifying the grub module in nixpkgs. My setup is probably not interesting for most others, since it only provides a significant security advantage with coreboot.
<pbb>
With packages or NixOS module options I'm usually able to add things, but the installBootLoader attribute is neither of those and I don't know how I would override it
toppler has joined #nixos
<__monty__>
Sounds like something that *could* be interesting to many. Lowering the barrier to coreboot is a noble cause, imo : )
<clever>
pbb: installBootLoader is still a normal nixos option
<clever>
pbb: its just flagged as internal, so the docs all claim it doesnt exist
<pbb>
Oh, it doesn't appear in the documentation and I can't find the definition though?
<clever>
pbb: it might be simpler, to just add a new setting, install bios
<pbb>
actually as __monty__ said, it might be worth to create a "coreboot-grub" bootloader module with signing support
apv has joined #nixos
<clever>
that could also work
<pbb>
for now I can copy the grub module out of nixpkgs to my configs and disable the one from nixpkgs, so I can make modifications
<clever>
pbb: if you change the attr from boot.loader.grub, to boot.loader.corebootgrub, then you can simply boot.loader.grub.enable = false;
<pbb>
yes
<clever>
and your new module (which can just be in imports) will assume full control
astrall33 has quit [Ping timeout: 276 seconds]
dansho has joined #nixos
<HKei>
oh and just a question, just a comment. I don't think I've had less issues using nix than any other C++ package manager I think, the main difference for me was that for every issue I had so far there actually was a reasonable solution
<HKei>
so I'm pretty happy, thanks everyone who's contributing
inkbottle has quit [Quit: Konversation terminated!]
inkbottle has joined #nixos
<pbb>
HKei: that describes it pretty well :P
inkbottle has quit [Client Quit]
inkbottle has joined #nixos
toppler has joined #nixos
fling has joined #nixos
toppler has quit [Remote host closed the connection]
drgbr has joined #nixos
toppler has joined #nixos
Mr_Keyser_Soze has joined #nixos
Mr_Keyser_Soze has quit [Remote host closed the connection]
Astralix9 has quit [Remote host closed the connection]
<freeman42x>
clever, I see. anyway, I had no buildInputs in the shell.nix, but I added it to executableHaskellDepends = [ base directory text turtle zlib ]; and it built successfully
<freeman42x>
clever, is using a shell.nix against the workflow of using haskell.nix?
<clever>
freeman42x: haskell.nix provides its own shell files
<zfnmxt>
What's the best "attribute 'ghcxxx' missing" work-around for stack on NixOS? Problem is that older ghc versions aren't available on nixpkgs anymore, so stack can't build the project. :C
<freeman42x>
clever, I am trying to wrap my head about how to use haskell.nix but it is kinda complicated. I think it could really use a very simple tutorial
<clever>
freeman42x: there is also a high chance that cabal/stack is just ignoring the builds haskell.nix provides, causing the issues you have
<freeman42x>
clever, I am root because I need to run some commands as root obviously
<freeman42x>
so there is no fix for it?
<elux>
im planning to use nixos on my server instances, and as im authoring the nix configs for my instances, id like to run them on my local computer to test them. is it possible to run a configuration.nix on an existing nixos system (my desktop), in a separated isolated area..? if that makes sense
<clever>
freeman42x: how did you get root?
<freeman42x>
clever, `su` <enter> and then I entered the nix-shell
<clever>
freeman42x: try `sudo -i` instead ?
<__monty__>
elux: Sounds like a usecase for nixos containers, not sure it's convenient yet though.
<freeman42x>
clever, if I do `sudo -i` and `nix-shell` after I get: error: getting status of '/root/default.nix': No such file or directory
dansho has quit [Ping timeout: 276 seconds]
<clever>
freeman42x: your working directory changed, you have to cd to the right place
<freeman42x>
clever, ah yeah, just noticed, tee hee
<freeman42x>
clever, now I am getting: Executing Kate with sudo is not possible due to unfixable security vulnerabilities.
<freeman42x>
guess I will just have to keep using `su`
<freeman42x>
clever, this is the first time I hear of sudoedit, and I do not know how to use the things you mentioned
<clever>
freeman42x: literally just run exactly what i gave above, edit the file, then save&quit
<__monty__>
I'm trying to interpret this error: http://ix.io/1XGh Did my remote builder run out of memory or my local host, which shouldn't be touching ghc?
<freeman42x>
clever, sorry, I still do not get it
<clever>
freeman42x: did you try running that command yet?
<clever>
__monty__: i think the remote machine ran out of disk space?
<clever>
__monty__: the error includes the string "No space left on device" and it references a path on disk
<freeman42x>
clever, haven't since I do not understand which command you mean
<clever>
freeman42x: did you cd into /etc/nixos first?
<freeman42x>
no
wfranzini has quit [Remote host closed the connection]
<clever>
freeman42x: then your editing ./configuration.nix, not /etc/nixos/configuration.nix
wfranzini has joined #nixos
<clever>
give sudoedit the right path to the thing you want to edit
<freeman42x>
clever, ok did that, but it still opens it in nano
<freeman42x>
clever, should I reboot or something?
<clever>
freeman42x: did you fully logout of X, then log back in?
<freeman42x>
no, I will try that
freeman42x has quit [Quit: Leaving]
o1lo01ol1o has joined #nixos
doublex has joined #nixos
freeman42x has joined #nixos
<freeman42x>
clever, ok, it works fine after reboot
<freeman42x>
clever, but after editing the configuration as user... how do I run nixos-rebuild switch?
<clever>
freeman42x: sudo nixos-rebuild switch
<freeman42x>
clever, I see, so it will only ask for password once, nice
<freeman42x>
clever, thank you! clever++
<{^_^}>
clever's karma got increased to 210
<clever>
sudo will remember if it got a password recently, and only ask if it has been too long
<clever>
su always asks for a pw
aveltras has quit [Quit: Connection closed for inactivity]
acarrico has joined #nixos
apv has quit [Ping timeout: 260 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
fendor has joined #nixos
<freeman42x>
clever, the issue with this is that they will not be the last commands so I won't be able to auto-complete them with up arrow like when I was using su
dm9 has joined #nixos
<freeman42x>
clever, what is the proper way to use cabal v1-repl together with nix-shell and super user privileges?
<clever>
freeman42x: sudo -i, nix-shell on the .env atttribute, `runhaskell Setup.hs repl`
<freeman42x>
clever, what if I told you that I deleted the Setup.hs and also that I would like to use cabal v1-repl since that is what I am using inside Atom also?
ixxie has joined #nixos
<{^_^}>
[nixpkgs] @unode opened pull request #70472 → kssd: init at 1.0 → https://git.io/JeCYW
<clever>
freeman42x: you can also use `cabal repl`, but nix doesnt provide the cabal binary by default, only the Cabal package in ghc-pkg
<clever>
freeman42x: run `id` to see if it has root or not
toppler has quit [Ping timeout: 240 seconds]
<freeman42x>
clever, `uid=0(root) gid=0(root) groups=0(root)` I guess this means it has root...
<clever>
freeman42x: nix-shell isnt meant to be ran as root very often, so it doesnt take user into account when picking a color
alex`` has quit [Ping timeout: 240 seconds]
hmpffff has quit [Quit: nchrrrr…]
alex`` has joined #nixos
hmpffff has joined #nixos
aveltras has joined #nixos
<__monty__>
freeman42x: That's easily resolve using backward search history though, Ctrl-r usualyl. Or consider running a shell like fish which has much nicer access to history.
Okinan has quit [Quit: Konversation terminated!]
<aveltras>
is there a way to find all files with a specific directory recursively ? am i supposed to use https://github.com/NixOS/nixpkgs/blob/master/lib/sources.nix for this and if yes, why can't i get the list of files in nix repl when trying it but i get a derivation instead ?
<aveltras>
my goal is to obtain a list of directory containing a .cabal file to automatically detect haskell projects root
<freeman42x>
clever, __monty__ ideally I would like to never have to touch the configuration.nix through a text editor again. Are there any GUI editors that an install and remove packages at system level?
<__monty__>
Might be possible to reconfigure where nix looks for configuration.nix, or its permissions, or import something from $HOME.
<__monty__>
No GUI package managers for nix yet afaik.
<__monty__>
Once you get used to it you won't miss them though : )
<freeman42x>
__monty__, GUIs are mote typesafe than typing string commands
<clever>
__monty__: or just add `imports = [ /home/clever/junk.nix ];` to configuration.nix
<fresheyeball>
infinisil: do you know how to get output from ghcmod?
<fresheyeball>
I am still stuck behind the same error
<infinisil>
It should be in stderr
<fresheyeball>
how can I see that though?
<infinisil>
I guess you could wrap hie with some command to redirect stderr to a file
<{^_^}>
[nixpkgs] @joachifm opened pull request #70480 → linuxPackages.blcr: mark as broken → https://git.io/JeC3J
<fresheyeball>
holy cow
<inf>
Hey all, I'm trying to get an Android SDK built for use with android-studio (for already existing project) but it (studio/gradle when building) keeps complaining I am missing cmake;3.6.4111459 package... https://gist.github.com/184cc2f9ff0cbf2295da6c2e05e0707a seems to build sdk with result/libexec/android-sdk/cmake/3.6.4111459/ properly populated... any suggestions on how to debug this?
toppler has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
<HKei>
one thing I still haven't figured out is how to actually use stdenv.overrideCC without immediately breaking everything
<HKei>
pretty much any variation of `overlays = [(super: self: { stdenv = super.stdenv.overrideCC super.stdenv super.clang; })];` seems to cause infinite recursions
<LnL>
you don't want that, it changes _all_ packages
<LnL>
even if that worked you'd be building stuff for a half a day
<HKei>
OK, but then how do I specify that I need to override a packages compiler *and* all of that packages dependencies' compilers?
slack1256 has joined #nixos
<{^_^}>
[nixpkgs] @joachifm opened pull request #70481 → pythonPackages.openrazer-daemon: python3 only → https://git.io/JeC34
<clever>
HKei: clangStdenv already exists
<{^_^}>
[nixpkgs] @joachifm opened pull request #70482 → nixos/hardened: blacklist old filesystems → https://git.io/JeC3R
<LnL>
the problem is that all dependencies goes all the way down, including clang itself
<HKei>
yes, but if I just do something like `callPackage (myPackage) { stdenv = clangStdenv; }` that only changes the stdenv used for the package itself
bahamas has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/JeC3u
astrall33 has quit [Remote host closed the connection]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bahamas has quit [Ping timeout: 268 seconds]
erba has joined #nixos
astrall33 has joined #nixos
<LnL>
doesn't want to build glibc tho :/
bahamas has joined #nixos
<erba>
Hi, has anyone successfully setup a dev environment for android on NixOS? Note, I'm not talking about building with nix but getting the tooling to work.
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<HKei>
yeah, it's a bit unfortunate. Looks like to actually make this work I'd need to maintain a parallel nixpkgs... not the end of the world right now I suppose because C++ dependencies aren't very granular, but I'd have hoped there'd be a better way to do it
o1lo01ol1o has joined #nixos
tilpner has quit [Quit: tilpner]
drakonis has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
toppler has joined #nixos
<fresheyeball>
infinisil: so I tried this on project that is actually public
<ajs124>
freeman42x: did you try turning off kwin's compositing?
iqubic` has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<freeman42x>
ajs124, how do I do that?
<freeman42x>
and what other effects will that have?
<ajs124>
you will lose transparency and stuff like wobly windows, if you have that one. just search for compositing in your kde system settings.
<freeman42x>
I do sudo cabal v1-repl , but under it I want to run some `apm install` commands as normal user so that the packages are installed for a user
<freeman42x>
how can I get out of super user just for those commands?
<evils>
anyone got time to help a noob with a (not necessarily nix specific) packaging issue?
<MichaelRaskin>
evils: you are usually better off giving more details
<evils>
yea but i'd rather not blindly dump my issue here if there's no one interested :P
<{^_^}>
[nixpkgs] @AmandaCameron opened pull request #70486 → vscode: Make it so that it places the .app in $out/Applications on macOS → https://git.io/JeCs9
<evils>
i'm trying to package a tool which wants a OUI file to do mac vendor lookup, but i'd rather not include that (relatively large) file in my source
<evils>
any solution i can think of doesn't seem to be a good idea for nix
<clever>
[clever@amd-nixos:~]$ nix-locate oui.txt
<clever>
hwdata.out 3,310,148 r /nix/store/2fw6dcbzzmjl4677k8cjjjjd9ghkripi-hwdata-0.291/data/hwdata/oui.txt
<clever>
evils: you can probably just use the path ${hwdata}/data/hwdata/oui.txt
<evils>
didn't know about that, isn't portable to non-nix systems though
<clever>
lshw.out 3,391,905 x /nix/store/msllr0hg5szkpjks12g7v747dyymqk41-lshw-02.18b/share/lshw/oui.txt
dm9 has quit [Quit: WeeChat 2.6]
<clever>
evils: some packages like lshw will install it to /usr/share/lshw/oui.txt, on non-nix machines
leo_ has joined #nixos
freeman42x has quit [Quit: Leaving]
freeman42x has joined #nixos
<clever>
evils: only other option is to put it into your source, and install your own copy of it
<evils>
for nix, i'd just add hwdata as a dependency?
<leo_>
Any way to nixops ssh before nixops deploy?
<clever>
evils: you would need to put "${hwdata}/data/hwdata/oui.txt" somewhere in the derivation
<leo_>
I want to pre-deploy overlays before nixops deploy.
<evils>
clever: using that path alone would ensure hwdata is present?
<clever>
evils: yep
<freeman42x>
I am running `sudo cabal v1-repl` and inside that repl I need to run some commands under the user which logged in as root. How can I achieve that? I basically need some command to exit sudo back to the previous user and then be able to get back to sudo also
<sphalerite>
leo_: you can deploy with --dry-activate, that way it won't actually change the running system (will copy the paths over though)
<clever>
freeman42x: your better off not running cabal as root, and just prefixing the right commands with sudo
<sphalerite>
leo_: the overlays on the remote end won't affect your deployment though.
<leo_>
Yeah.
<leo_>
Just saw it.
<leo_>
I think what I want is --create-only
<clever>
leo_: --create-only will create the hardward in the cloud, but not build anything
<clever>
hardware*
<leo_>
sphalerite: It worked. hehe
<freeman42x>
clever, prefix the commands I would run from Haskell code with sudo?
<leo_>
clever: Ops.
<freeman42x>
would that prompt the user to enter password?
<clever>
freeman42x: yes
<{^_^}>
[nixpkgs] @nek0 closed pull request #66421 → nvidia-x11 - apply only patches for the right kernel → https://git.io/fj7aU
<clever>
freeman42x: if stdin/stdout go to a terminal
<freeman42x>
clever, I see, thank you
<leo_>
Yeah, I want to pre-deploy the overlays because otherwise - theoretically - any nix tools used during the deploy would be able to see them
<clever>
leo_: "nix tools used during the deploy" ?
<leo_>
In the config.
<clever>
leo_: nixops builds the config locally, before deploying
<clever>
leo_: and it obeys the overlays in the local config only
<leo_>
So if I have the <nixpkgs-overlays> correctly set in the machine that's building the config
<leo_>
No need to worry?
<clever>
leo_: it will ignore that, because nixos never obeys <nixpkgs-overlays>
<clever>
leo_: nixos only obeys the nixpkgs.overlays config, within the nixos modules
<leo_>
Yeah, but what if a tool is used from within the config.
<clever>
leo_: so in your nixops deployment files, you must set nixpkgs.overlays
wfranzini has quit [Remote host closed the connection]
<clever>
leo_: when are those tools ran, what are they doing?
<leo_>
After the deploy I still have to deliver the overlays somewhere at the machines
<leo_>
Or the tools (e.g nix repl) won't be able to see them.
<clever>
leo_: line 13 and 17 of the file i just linked
<leo_>
clever: nice
o1lo01ol1o has quit [Ping timeout: 240 seconds]
<freeman42x>
clever, not working apparently... instead of prompting me for password I just get error: haskell-editor-setup: /etc/nixos/configuration.nix: openFile: permission denied (Permission denied)
<{^_^}>
[nixpkgs] @peti pushed 0 commits to revert-67355-19.09: https://git.io/JeCGR
<evils>
clever: if i end up downloading a OUI file myself, is there a way to get that included in the derivation hash?
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #70488 → README.md: update links to 19.09 → https://git.io/JeCGz
isHavvy has quit [Read error: Connection reset by peer]
<gentauro>
OK, this might sound crazy, but I just realized that the NixOS logo (snowflake) is just small lambdas :o
<gentauro>
mindblown :o
<clever>
evils: pkgs.fetchurl can be used to download it
<clever>
evils: nix will disable the network, so you cant download it yourself
<evils>
clever: darn, why?
<clever>
evils: ensures that everything you can use, will impact the hash of your drv
<{^_^}>
[nixpkgs] @peti merged pull request #70150 → haskellPackages.OpenAL: link with the OpenAL framework on Darwin → https://git.io/Jen2X
<{^_^}>
[nixpkgs] @peti pushed commit from @mujx to master « haskellPackages.OpenAL: link with the OpenAL framework on Darwin (#70150) »: https://git.io/JeCG2
<clever>
evils: all network is disabled by default, so you must clearly define (in nix) what you want fetched from the network, and defining those details has an impact on the hash
<evils>
clever: so can the OUI file be part of that?
<clever>
evils: pkgs.fetchurl
Havvy has joined #nixos
<evils>
clever: didn't you just say that wouldn't work?
<clever>
evils: any derivation that has those 3 attributes, gains network access
<clever>
the output must have a hash of outputHash, which is of type outputHashAlgo
<clever>
if outputHashMode == "flat", then $out must be a single file, and outputHash is the raw hash of that file
<clever>
if outputHashMode == "recursive", then $out can be anything (file, directory, symlink), and outputHash is the hash of the output from `nix-store --dump $out`
<clever>
in either case, nix will tell you the right hash, if it is wrong
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<evils>
ok, but i have no idea how i'd use my script in my default.nix
<{^_^}>
[nixpkgs] @abbradar pushed commit from @peterhoeg to staging-next « systemd: use pure debug shell »: https://git.io/JeCZp
<clever>
and you can then just shove that into a let block, and get a path back out
<evils>
runCommand is what i'd use to call a shell script?
<clever>
evils: the string at the end, "curl http://example.com > $out" is a chunk of bash code
<clever>
so you can put the shell script right into the nix file
<evils>
i'd make the script a separate file because i want this package on openwrt as well...
<erba>
Is it possible to set something like android_sdk.accept_license = true; in shell.nix?
<clever>
evils: then you can just do "source ${./script.sh}" or similar, maybe write it to create an oui.txt in the current dir, then "source ${./script.sh} ; mv oui.txt $out"
<clever>
erba: when you import <nixpkgs>, you can pass it the contents of a config.nix, import <nixpkgs> { config = { android_sdk.accept_license = true; }; }
<{^_^}>
[nixpkgs] @illegalprime opened pull request #70492 → sddm: add module option to set users profile picture → https://git.io/JeCnT
<infinisil>
I'm using Thunderbird + Enigmail, but when I go to the "Key Management" view and do "Keyserver -> Search for Keys", type in my key id 0x422E9EDAE0157170 which I uploaded to the default keyserver of keys.openpgp.org, it just shows a progress bar without ever progressing
<infinisil>
I have no idea what the problem might be, but if somebody else could confirm this happens for them too I'd be grateful
<tilpner>
infinisil: I instead get "Could not connect to keyserver at vks://keys.openpgp.org.\n\nThe keyserver reported an error."
<infinisil>
tilpner: This happens to me when I search for something like "foo"
<infinisil>
Does it happen for you with a search for key ids too?
shibboleth has joined #nixos
<tilpner>
Ahh, now I get a progress bar too
<{^_^}>
[nixpkgs] @illegalprime opened pull request #70494 → sddm: add a themePackages module option so themes are not installed globally → https://git.io/JeCns
<infinisil>
tilpner: Is it also stuck for you?
<tilpner>
So far it is
<hpfr[m]>
To use my steam controllers I have to chmod 666 /dev/uinput, how do I do this declaratively?
<infinisil>
I see, so the problem might indeed be on Nix's side somewhere
omnipotententity has joined #nixos
<tilpner>
hpfr[m]: hardware.steam-hardware.enable
<tilpner>
hpfr[m]: Or services.udev.extraRules = ...;
<erba>
clever: I get: attempt to call something which is not a function but a set (with import <nixpkgs> { config = { android_sdk.accept_license = true; }; };)
<omnipotententity>
Hey, dumb question about data files. If you have a package that relies on external datafiles that may or may not change from version to version, and are not compiled, just simply copied into a destination, what's the best way to manage that, is there an example already in nixpkgs?
<clever>
erba: more parens!
ixxie has quit [Ping timeout: 240 seconds]
<infinisil>
tilpner: I guess I'll try out an older thunderbird
<{^_^}>
[nixpkgs] @illegalprime opened pull request #70495 → plasma-chili: init at 0.5.5 → https://git.io/JeCn2
<clever>
erba: this line you changed is the problem
<clever>
erba: androidenv.androidsdk was a function, androidsdk_9_0 is not
o1lo01ol1o has quit [Remote host closed the connection]
<erba>
clever: aha
<clever>
> androidenv.androidsdk
<{^_^}>
attribute 'androidsdk' missing, at (string):269:1
<clever>
androidsdk no longer exists
matix has joined #nixos
o1lo01ol1o has joined #nixos
<freeman42xx>
for squirrel-sql how do I install the DB specific drivers? like for MS SQL for example
<erba>
clever: yeah I'm pretty lost tbh :P I really like NixOS and I'd hate having to drop it on my work machine - but I really need to be able to do some android development.
<clever>
erba: what if you just do `sdk = androidsdk_9_0;` and ignore all of those flags?
aaa_ has joined #nixos
iqubic` has joined #nixos
<freeman42xx>
maybe what I need is just to install the MS SQL Drivers package for Nix... if that exists
iqubic has quit [Ping timeout: 245 seconds]
<aaa_>
hi, I've build nixos for GCE by using create-gce.sh (https://nixos.wiki/wiki/Install_NixOS_on_GCE) and created an instance in GCE, but now I'm unable to SSH into the box. It says "Permission denied (publickey,keyboard-interactive).". How does create-gce.sh setup the SSH keys allowed to login into nixos ?
<aaa_>
I'm using origin/nixos-19.09 as base for building the image.
<hpfr[m]>
tilpner: udev rules work thanks to hardware.steam-hardware.enable. But the controller then only works within steam, not in games. /dev/uinput is still 600 unless I chmod 666, then it works in games as well as within steam
<tilpner>
Just eight major versions that could have broken anything
<freeman42xx>
nvm, I managed to download the JDBC drivers from MS as a .jar and added it to squirrel-sql
<{^_^}>
"User-mode driver and GUI for Steam Controller and other controllers"
<hpfr[m]>
I don’t want to use sc-controller haha, I want to use steam’s native handling. I was just wondering if I could make uinput user rw declaratively
chris__ has joined #nixos
<infinisil>
tilpner: Yeah, and no error message, no logs, not even anything in strace
<infinisil>
Also mozilla probably takes forever to build :/
<infinisil>
I haven't tried thunderbird-bin actually, I should do that
__monty__ has quit [Quit: leaving]
<clever>
hpfr[m]: hardware.steam-hardware.enable should do exactly that
<aaa_>
Is it best to extend create-gce.sh in order to include my own public SSH key into the image?
<tilpner>
hpfr[m]: Something like KERNEL=="uinput", SUBSYSTEM=="misc", MODE="0666", GROUP="input", OPTIONS+="static_node=uinput" might do it, but I have no idea how that interacts with the existing rules, and am not exactly a udev expert
<chris__>
I've got a fresh nixos VM. I have a minor issue where the PATH does not seem to be set when running commands via ssh. For example ssh root@192.168.0.10 'whoami' - will error with zsh:1: command not found: whoami. Any ideas as to why this is?
<tilpner>
clever: They already tried that
freecoder has joined #nixos
<clever>
[clever@amd-nixos:~/Downloads]$ nix-build '<nixpkgs>' -A steamPackages.steam
<tilpner>
chris__: Did you set programs.zsh.enable?
iqubic` has quit [Ping timeout: 268 seconds]
<freecoder>
I'm trying to use a different compiler version with Nix on Ubuntu. Following steps on https://nixos.wiki/wiki/C#Use_a_different_compiler_version, it gives the following error - "error: undefined variable 'gcc6Stdenv' at shell.nix:28:24"
iqubic``` has joined #nixos
<freecoder>
I'm not really familiar with Nix. Just want to get a package I cloned from github built.
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<tilpner>
^ then that to get the hash
iqubic``` has quit [Ping timeout: 265 seconds]
chris__ has quit [Quit: Lost terminal]
selfsymmetric-mu has quit [Remote host closed the connection]
<freecoder>
tilpner, i did not understand getting the hash part
Zer0xp has joined #nixos
<tilpner>
freecoder: Replace the hash with e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 or 0000000000000000000000000000000000000000000000000000
<tilpner>
freecoder: Then try to build and copy the proper hash from the error
<freecoder>
tilpner, got it
Ariakenom has quit [Read error: Connection reset by peer]
<philipp[m]>
Are there any packages despite mesa that determine the `Vulkan Instance Version` as per `vulkaninfo`?
obadz has quit [Quit: WeeChat 2.5]
orivej has quit [Ping timeout: 240 seconds]
<philipp[m]>
(with radeon cards while using mesa ofc)
obadz has joined #nixos
growpotkin has joined #nixos
work_ has quit [Quit: Connection closed for inactivity]