<ldlework>
Anyone here use ranger + kitty by change and have kitty's image preview working in ranger?
countingsort has quit [Ping timeout: 272 seconds]
<ldlework>
Looks like the nixos package hacks up ranger to force it to use w3m
Lisanna has joined #nixos
<ldlework>
i think technically all i need to get it to work is make sure that kitty is in the ranger derivation's inputs?
<ldlework>
is there an easy helper command for that?
<sorbet>
If I want to have a list of python modules available system-wide for python2, what do y'all think is the best approach to that? The problem I'm running into is that even if I throw (python2.withPackages...) into environment.Systempackages,
<sorbet>
there's a python2 entry earlier in the path that doesn't have the modules (that everything else is using).
<sorbet>
So I think I need to override it, but I'm having a hard time trying to figure out how to do that with my overlay (which I've mostly just pieced together looking at examples).
<samueldr>
(I know it's not simple, but that would be helpful if hydra had some way to show the reasoning behind changes like this)
<gchristensen>
yes
<gchristensen>
what has you interested?
<samueldr>
? just closing PRs
<gchristensen>
cool
Supersonic has joined #nixos
<samueldr>
verifying whether it was building fine on darwin or it was a regression
MrCoffee is now known as NightTrain
fenedor has quit [Ping timeout: 244 seconds]
<kandinski>
clever: I did as you suggested and made a PR of the fix I needed. Would you mind explaining to me what the process is now? For instance, someone changed the base from master to staging and back. A bot added a lot of tags. And there is now a conflict which suggests someone else already made the same fix before me, but also added a comment.
<samueldr>
hmmm, it's a submodule... now I'm curious
<countingsort>
how would i make nixos appreciate that i took the time to write a $HOME/.config/nixpkgs/config.nix, instead of ignoring it? or am i doing it wrong (minimal example): https://ptpb.pw/CyBe
iyzsong has quit [Ping timeout: 244 seconds]
<gchristensen>
countingsort: those only work with NixOS not Nix and not ~/.config/nixpkgs
<gchristensen>
so only etc/nixos/configuration.nix
<init_6>
it`s possible to aplly custom patches on default nixos kernel?
<countingsort>
nixos.org/nix/manual mentions ~/.config/nixpkgs/config.nix though
<countingsort>
o
<countingsort>
its without .xonfig, im dumb
<countingsort>
nvm me then
iyzsong has joined #nixos
<gchristensen>
samueldr: I don't think I can :/
<countingsort>
still doesnt work though
<gchristensen>
what doesn't?
<samueldr>
I don't have a setup to test, and am about to do AFK stuff, but is it possible to re-define *one* option in a nixos module?
<countingsort>
gchristensen: i expect that to change my PS1 to '> ', it doesnt though
<samueldr>
(though I'm guessing it would be too easy if it was possible)
<gchristensen>
you can only use those options in /etc/nixos/configuration.nix
<countingsort>
whys that?
<gchristensen>
because those are NixOS options, not Nix options, and NixOS options go in to /etc/nixos/configuration.nix
<countingsort>
so i cant change the prompt on a user basis?
<countingsort>
oof
<gchristensen>
right
acarrico has joined #nixos
<countingsort>
why would i do that instead of a bashrc then?
<gchristensen>
if you wanted to set it from one place, with the rest of your settings, and wanted it to be the default for all users.
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<countingsort>
so as a user i have no other choice but to just use a bashrc? whats with the .bash_profile than, i have to hack that on a system basis to use a user one?
<gchristensen>
you would edit bashrc or bash_profile based on how Bash treats those specific files
<countingsort>
gchristensen: according to the bash manpage (and bash on literally any system besides nixos) it should execute ~/.bash_profile on startup unless --noprofile is passed
<gchristensen>
only if it is a login shell
<countingsort>
it is though
<gchristensen>
how are you starting bash?
<countingsort>
logging into a tty
<gchristensen>
so X11 is not turned on?
<countingsort>
doesnt matter
<countingsort>
tried both
<gchristensen>
if you run `bash --login` does it run your ~/.bash_profile?
mayhewluke has joined #nixos
oldandwise has joined #nixos
<countingsort>
yes
<gchristensen>
ok, then whatever you were starting wasn't a login shell :P
<oldandwise>
having problem on my 32-bit netbook with `nix-env -iA nixos.octave`. Error says, '/bin/ld: src/.libs/octave-cli: hidden symbol `__divmoddi4' in /nix/store/xxxxxx-gcc-7.3.0/lib/gcc/i686-unknown-linux-gnu'. Can anyone help?
<gchristensen>
anyway, past my bedtime. good luck
<gchristensen>
and good night
<countingsort>
gchristensen: logging in isnt a login shell? huh
<ldlework>
Anyone using Kitty? Are you able to start Ranger?
<init_6>
c00w: line 436 kernelPatches = ? THX!!!
<c00w>
yw
sir_guy_carleton has joined #nixos
<c00w>
I think my problem is actually simpler - I just don't know how to translate <nixpkgs/nixos> to using a channel referenced by channel:nixos-unstable
<eqyiel>
basically you build the `shell` attribute of the default.nix that node2nix generates
<ldlework>
Lears: i think it had to do with optirun..
<ldlework>
I still get the locale error though
<emily>
right. I guess I'm just not sure on the correct command-line syntax to do that or what to do with the result of that build ^^; sorry, I've only recently switched to Nix/NixOS and am trying to get a Reason npm project I had up and running
vodurden has quit [Read error: No route to host]
<adamantium>
ldlework: did you get ranger images working with your terminal?
<ldlework>
Myrl-saki: you might want to comment out the use-package call
<ldlework>
and just manually eval the :config bits
<ldlework>
Myrl-saki: try to find some code that you have problems with
<ldlework>
before you eval it
<ldlework>
so you can see the difference :)
<Myrl-saki>
ldlework: I'm guessing I'm too used to manually adjusting tabs that not having to adjust tehm would feel wrong. :P
<ldlework>
lol
<ldlework>
Myrl-saki: you can use nix-mode-format to format the whole buffer
<ldlework>
theoretically
<ldlework>
it is working pretty good for me!
CrystalGamma has joined #nixos
<Myrl-saki>
ldlework: Thanks. I'll take a look at this later, since I'm um, a bit lazy.
<ldlework>
i commented it real good too, so hopefully other people don't have to spend much effort to understand how it works in order to improve it further
<ldlework>
:(
<Myrl-saki>
Mmm
<Myrl-saki>
I already took a look at it. :P I'll try it out later*? :D
<ldlework>
lol you just open a file, screw up the indentation and then M-x nix-mode-format
<ldlework>
but hehe, I'm satisfied enough that it works for me
<CrystalGamma>
how do I get X11 forwarding over SSH to work between NixOS machines? I have tried setting (and forcing!) services.openssh.forwardX11 and programs.ssh.setXAuthLocation on both machines, but there is still no X socket in /tmp/.X11-unix/
<Myrl-saki>
ldlework: Do you use straright too? Since I see a straight line on use-package.
<ldlework>
Myrl-saki: yeah I do
<ldlework>
Myrl-saki: i evangelize where possible too
<Myrl-saki>
:P
<Myrl-saki>
ldlework: I copy and paste the non-use-package bits to a new file, eval it, replace straight-use-package with the use-package sexp?
<ldlework>
Myrl-saki: straight has use-package integration
<ldlework>
you might need (setq straight-use-package-by-default t)
<Myrl-saki>
Right
<Myrl-saki>
(straight-use-package 'feebleline)
<Myrl-saki>
That's what I have, and mostly nothing else.
<ldlework>
lol
<Myrl-saki>
(In terms of configuring straight, I mean. :P)
<ldlework>
just turn on use-package support
<ldlework>
then you can run that whole file
<ldlework>
if it complains that the recipe has changed, just C-x e at the end of each form after :config to execute those
<ldlework>
then it should be working
<BlessJah_>
can root have channel that won't be visible to other users?
<Myrl-saki>
So replace all straight-use-package with use-package?
mayhewluke has quit [Ping timeout: 260 seconds]
<Myrl-saki>
If I use the -by-default flag
<ldlework>
if you use the by default flag
<ldlework>
you don't have to do anything
Ariakenom has joined #nixos
<Myrl-saki>
Oh
<ldlework>
(setq straight-use-package-by-default t) means "allow natural (use-package) use"
<srhb>
BlessJah_: The channel "visibility" is determined by $NIX_PATH. If you remove /nix/var/nix/profiles/per-user/root/channels from it, it won't affect other users.
<srhb>
(Well, it won't affect the users that have that change in NIX_PATH...)
mayhewluke has joined #nixos
<viric>
BlessJah_: good :) I'm a really bad maintainer
<ldlework>
hi srhb
<srhb>
ldlework: Hi!
<Myrl-saki>
ldlework: I think I got it. Thanks.
<ldlework>
awesome
<BlessJah_>
viric: I've noticed that you've tried to remove yourself from maintainers in master, but that did not yet propagate to 18.03 yet
<ldlework>
no more manually tabbing crap!
<srhb>
BlessJah_: In general, master does not propagate to stable channels
<BlessJah_>
srhb: I thought about backporting rather than actually propagating
<srhb>
BlessJah_: Backporting is sporadic outside of security fixes. :)
<BlessJah_>
0.18.0 is required for yubikey4, openssh talks directly to pkcs11 so library and it seems libc between 18.03 and unstable is incompatible
<viric>
BlessJah_: I should have done that years ago
<viric>
BlessJah_: but that's part of being a bad maintainer
<BlessJah_>
I had to 'stable.callPackage <unstable/pkgs/opensc> {}' in overrides
<BlessJah_>
since I wanted this system-wide, I had to add nixos-unstable as root, add overlays as root and now I wonder if it's possible to reduce visibility of said channel
vidbina has quit [Ping timeout: 240 seconds]
<BlessJah_>
viric: next release won't build, it tries to mkdir /etc/completion.d or sth else directly in /etc
<viric>
ok
LnL has quit [Read error: Connection reset by peer]
<Taneb>
Is nixos-generate-config going to know better than I do whether I boot with UEFI or BIOS
sir_guy_carleton has joined #nixos
<vcunat>
Taneb: no, I wouldn't expect that.
<Taneb>
(Knowing better than me here is a very low bar)
thc202 has joined #nixos
__monty__ has joined #nixos
<techieAgnostic>
oh my
<techieAgnostic>
nix is so nice to use with haskell
<thblt>
Taneb: Use UEFI.
<vcunat>
If either way doesn't boot, you may just repeat with the other one. You won't need to redo almost anything. (The installer should reuse the files, you'll just edit the config, etc.)
ambro718 has joined #nixos
<ambro718>
Has anyone tried to get Xilinx Vivado running on NixOS? Not sure if I should even bother and just run it in a windows VM.
<thblt>
I need to compile a program in NixOS, but in a nix shell, but this program depends on dylibs which won't be available after nix-collect-garbage. Is there a common way to ask ./configure to statically link a given library?
<thblt>
Context: I'm managing my Emacs extensions from Emacs, including mu4e, which uses a native component (mu) which itself depends on a dynamically linked libgmime
<LnL>
going from a nix-shell to a build isn't that big of a step
<thblt>
LnL: the problem is the package manager, I'd rather keep doing this from Emacs.
<LnL>
and that will keep the paths alive
<LnL>
but you're using nix-shell already
<thblt>
LnL: Doesn't seem too hard indeed. I just need to create a default.nix, right?
philippD has joined #nixos
<thblt>
For now I've configured my package manager to wrap build steps (./configure, make, etc) in nix-shell invocations
iyzsong has quit [Ping timeout: 272 seconds]
<LnL>
that's basically the same then, unless you need something incremental
<thblt>
LnL: thanks!
<LnL>
use src = builtins.fetchGit ./.; or src = ./.; if it's a local project and then make the installPhase (or make install) install whatever you want to keep
<wucke13>
Hello. What is the best solution to deploy a package, if the bin file does only work when ran from a folder inside of share of the given package?
revtintin has joined #nixos
timokau has joined #nixos
ambro718 has quit [Quit: Konversation terminated!]
Anton-Latukha has joined #nixos
__monty__ has joined #nixos
<__monty__>
Is there a command to have something built on an ssh-substitutor? So it can then be ssh-substituted?
<{^_^}>
[nixpkgs] @thefloweringash opened pull request #45300 → quaternion: Darwin support, fix dependencies and installed outputs → https://git.io/fAe2T
<inquisitiv3>
What Wireguard derivation should one install? I get serveral matchees when I search with `nix search wireguard`. The two last hits seems promising (`nixpkgs.wireguard` and `nixpkgs.linuxPackages.wireguard`), but I'm not sure which of them I should install.
Fare has joined #nixos
<symphorien>
there is a module iirc
<symphorien>
it should install exactly what is needed
<lorilan>
it says `Setup: Encountered missing dependencies: base >=4.5 && <4.12, template-haskell >=2.2 && <2.14` but adding template-haskell in the cabal file does not change anything and pining a specific version of base give me an infinite recusion during evaluation of the nix expr
alexteves has quit [Remote host closed the connection]
<lorilan>
I asked the question on #haskell, without answers so far. But since it's a bit of "cross-concern" I thought I would try here
<{^_^}>
[nixpkgs] @primeos pushed to master « quiterss: Set QT_PLUGIN_PATH (fixes a few problems) »: https://git.io/fAe2F
<__monty__>
Does ghc-mod support ghc 8.4.3 even?
inquisitiv3 has quit [Ping timeout: 256 seconds]
michalrus has joined #nixos
<lorilan>
I don't know, it really is my first steps with the language
<lorilan>
__monty__, ok … I'll try ghcid but it's really frustrating to give up like this. Until now I feel I've more tweaked nix conf than actually code
<michalrus>
Lemme try.
<__monty__>
lorilan: The problem is haskell's tooling. It's not on par with what you're used to probably. Oh, I just noticed you're specifying ghc861, that's WAY too new for ghc-mod afaik.
<__monty__>
lorilan: I actually don't really miss any IDE features though. I get completion and near-instantaneous type-checking. That's nicer than anything eclipse gave me for java.
<lorilan>
__monty__, ok, completion is kind of 50% of the feature I'm looking for (the other 50% being a good rename refactoring)
<lorilan>
by the way what's up with these number ? ghc 8.4.3 has been released last may, what is this 861 ?
<ongy>
hm, is there something I need to set up, before I can use nixos containers?
<lorilan>
ho ! does the 6 stands for june ?
<__monty__>
lorilan: It's GHC 8.6.1 and that's *very* recent.
<__monty__>
lorilan: No, previous version was 8.2.2, I'm not sure how GHC versioning works, it does seem to skip odd second numbers.
<ongy>
Trying to start a container I defined (and the nixos-rebuild switch) I get in the log: /nix/store/iw231wi0fpckbghbv8wy018mmd3na1yk-container-init: line 28: /nix/var/nix/profiles/system/init: No such file or directory
<__monty__>
It's not dates though.
<lorilan>
__monty__, it's what I thought but then when I saw on https://www.haskell.org/ghc/ that the last released was 8.4.3 I thought it's a bit weird
<__monty__>
lorilan: For the rename, I would just combine global with substitute in vim. Haven't done that yet though. Almost all the renames I want to do don't cross module boundaries and substitute is ok for that purpose.
<lorilan>
__monty__, is it like a kind of an "early access" version ? ^_^
<lorilan>
I talk about the rename from my scala experience but I don't know if I'll need it for haskell
inquisitiv3 has joined #nixos
<__monty__>
Do you use vim? I can list all the extensions I use but it won't be very useful if you don't use vim...
<lorilan>
yes I use it, but until now I only used it for small tasks. I use it to edit haskell files but still learning it m.p
<__monty__>
lorilan: Stable branches are numbered x.y, where y is even. Apparently the second component is even *is* a thing.
<lorilan>
:p
<lorilan>
ok, noted !
<{^_^}>
[nixpkgs] @eadwu opened pull request #45304 → Linux update on 8.18.18 → https://git.io/fAeaA
<lorilan>
__monty__, when you say stable branches, you're talking about ghc itself ?
<lorilan>
__monty__, because the version seems to all have a x.y.z schema
<__monty__>
lorilan: I think the extensions relevant to completion are neocomplete.vim and neco-ghc.vim, you'll also want either hasktags or fast-tags for navigation and then ghcid (this is pretty minimal, a couple niceties are vim-indent-objects, vim-easy-align, haskell-vim, vim-commentary, vim-bracketed-paste, vim-haskellConcealPlus, hlint-refactor-vim and vim-hoogle and I've been looking into vim-brittany, ale
<__monty__>
and the like.)
<ongy>
ok, disregard me. I derped and put "virtualization." before my `containers =` and stuff wasn't found
<ongy>
so different question: is there a "strict" mode that validates all keys against matching something?
<__monty__>
lorilan: Yes, it's always x.y.z but y is always even for releases, because they happen from a stable branch.
<__monty__>
lorilan: ghc861 is just a name for the package without dots because those mean something in nix.
<lorilan>
__monty__, so ghc7103 is the exception :p
<__monty__>
No, that's 7.10.3 : )
<lorilan>
__monty__, that's a big list of plugin ! thank you !
<lorilan>
__monty__, erf … the absence of dots is misleading
<ongy>
because that's not a decimal . ;)
<__monty__>
In principle 861 should be 806, I guess nix conventions don't entirely align with ghc conventions.
<__monty__>
7.10.3 would be 710, ghc convention is xyy with 0 for the first y if it's single digit and just dropping the patch version.
<inquisitiv3>
Is there a reason why it's called "Package names" when they're called "derivates" in Nix?
<lorilan>
__monty__, well versioning scheme can become a hell as I recently discovered at work so I won't mind a little misalignment between the two :p
<__monty__>
Do you mean derivations, inquisitiv3?
<__monty__>
lorilan: Read up on the controversies around the PVP if you want versioning drama : )
<monad_cat>
I'm trying to override a single package in haskellPackages, but trying to build `my-packages` errors out with infinite recursion. What am I doing wrong? https://www.irccloud.com/pastebin/Jp5f4j50/
<inquisitiv3>
__monty__: Yep
<michalrus>
Dezgeg: it works consistently, thank you. ♥
<foldingcookie>
what does it mean that when I do `nixos-rebuild switch` I get errors about the option `system.nixos.stateVersion` set in configuration.nix not existing?
mayhewluke has quit [Ping timeout: 256 seconds]
<__monty__>
inquisitiv3: So the question was directed at my use of package name? I guess I could've said derivation name, just wanted to distinguish it from attribute name.
<foldingcookie>
also, unrelatedly, how can I resolve name collisions that cause channels to be skipped?
<monad_cat>
__monty__: in which place?
<foldingcookie>
I think I must have misnamed something and now nix-channel --update does nothing
<Dezgeg>
ok, I'll pick it
<__monty__>
monad_cat: In your definition of haskellPackages.
mayhewluke has joined #nixos
<monad_cat>
__monty__: so you mean `super.haskell.packages` instead of `super.haskellPackages`?
<inquisitiv3>
__monty__: You used the term, but it isn't only you. E.g. if you search channels with `nix search [pattern]` you will get search matches that list "Package name" in addition to attribute name.
<{^_^}>
[nixpkgs] @dezgeg pushed to release-18.03 « nixos/qemu-vm: Always add a virtio RNG device to the quest »: https://git.io/fAeVl
<__monty__>
inquisitiv3: Ah ok. So the attribute name is basically the name in nix the derivation is assigned to, while the package name is an attribute in the record that describes the package. This is supposed to be more human readable but it turns out to be muy inconvenient because it means nix has to evaluate all the derivations just to list their names.
Fare has quit [Ping timeout: 272 seconds]
revtintin has quit [Quit: WeeChat 1.9.1]
<inquisitiv3>
__monty__: And it's very confusing, because 1) according to Nix documentation there's no such thing as "package" in the Nix, and 2) new users is confused which name they should use and what they means.
Fare has joined #nixos
<__monty__>
inquisitiv3: Yes, in nix you write expressions that describe packages and are evaluated into derivations which can be evaluated to build the package. 2) is an unfortunate side effect and harms nix's UX>
tychog has joined #nixos
<monad_cat>
__monty__: `super.haskell.packages` ends up not having `override` on it
<__monty__>
Yeah, you need to specify the ghc version so super.haskell.packages.ghcXYZ.override.
johanot has joined #nixos
<__monty__>
haskellPackages is an alias for some haskell.packages.ghcXYZ, currently 8.2.2 is my guess but I'm not actually sure.
patrl has joined #nixos
<adisbladis>
firefox
adisbladis has left #nixos ["ERC (IRC client for Emacs 26.1)"]
kolb has quit [Quit: ZNC 1.6.3+deb1ubuntu0.1 - http://znc.in]
<{^_^}>
[nixpkgs] @wucke13 opened pull request #45305 → apmplanner2: init at 2.0.26 → https://git.io/fAewa
patrl has quit [Ping timeout: 272 seconds]
<lorilan>
I have a following question on my haskell/cabal/nix setup. whene I try to run `ghcid` I run into a "<command line>: can't load .so/.DLL for: libz.so" error
<lorilan>
now if I edit the LD_LIBRARY_PATH env var to include the path to said lib, it works fine
<ongy>
so, I have xpra in my packages=[] for my user. But after `nixos-rebuild switch` it's not available to the user. Any idea how to debug? (also not as winswitch which afaik is the old name of the project)
<lorilan>
but isn't the nix-shell supposed to handle this for me ?
<__monty__>
The current haskellPackages is haskell.packages.ghc843 btw.
Anton-Latukha has joined #nixos
<__monty__>
Oh, and 8.6.1 hasn't been released yet. Not sure why it's included in nixpkgs already.
<__monty__>
Maybe for ghc devs using nix?
<monad_cat>
__monty__: I have this now, but it complains that an attribute `compiler` is missing. I tried adding `compiler = super.haskell.packages.ghc822.compiler` at the same level as `overrides`, to no avail https://www.irccloud.com/pastebin/3KecuAKB/
<ongy>
hmm, how can I get the user env up, after I su into my user?
<__monty__>
monad_cat: When does it complain?
<__monty__>
monad_cat: Oh, wait. it should be haskellPackages = super.haskell.packages...
<monad_cat>
then it just goes to infinite recursion :(
<__monty__>
You need to use the long form for the time override too.
<__monty__>
And you might want to use ghc843, it's the current default in nixpkgs.
<monad_cat>
I've just added `haskell.compiler = super.haskell.compiler` but it compiles about something else
<monad_cat>
is there maybe a well-documented way of overriding a specific haskell package somewhere?
<monad_cat>
with `ghc843` it complains that `ghc822` is missing even though it's nowhere to be found in that file
<__monty__>
Using overrides isn't the current best practice though. You might want to read up or look for examples of overlays.
<monad_cat>
thanks __monty__, I'll adapt this and report with results
<monad_cat>
oh? checking...
<Thra11>
What's the significance of gcc-wrapper (as opposed to just gcc)?
goibhniu has quit [Ping timeout: 268 seconds]
MinceR has quit [Ping timeout: 255 seconds]
MinceR has joined #nixos
iyzsong has joined #nixos
<{^_^}>
[nixpkgs] @7c6f434c pushed to master « mono514: init at 5.14.0.177 »: https://git.io/fAerH
oida has quit [Quit: byez]
Fare has quit [Ping timeout: 272 seconds]
<hyper_ch>
can I give two users the same userid?
orivej has joined #nixos
<infinisil>
hyper_ch: Nope
<hyper_ch>
it works when I edited the passwd directly in debian/ubuntu... I could just give them the same user and group id and both could login with different passwords
<__monty__>
monad_cat: Oh, you can drop the myHaskellPackages. That's for packages I'm developing. The overrides go in haskell843...{ overrides = <HERE> };
<{^_^}>
[nixpkgs] @NeQuissimus pushed 4 commits to release-18.03: https://git.io/fAeol
<__monty__>
monad_cat: I noticed you switched to myEnvFun instead of buildEnv. Did you read up on the difference? With a nix-shell I think you'll want to use buildEnv. I use the myEnvFuns so I can load my haskell env when I develop and don't have multiple haskell envs causing collisions.
<monad_cat>
if only there were typings on the nix lang :P
<monad_cat>
infinite recursion then
iyzsong has joined #nixos
endformationage has joined #nixos
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #45306 → nixos/geoclue2: add ability to whitelist agents and append to config → https://git.io/fAeoV
<__monty__>
Ok, let's do time = super.time, forget about callHackage for a second.
<monad_cat>
it's building there
<monad_cat>
then*
<__monty__>
Can you do just callHackage or replace the first _ with self and do self.callHackage?
<monad_cat>
undefined variable in the first case, infinite recursion in the second
graphene has quit [Read error: Connection reset by peer]
graphene has joined #nixos
<__monty__>
I'm hoping someone more knowledgeable takes over : ) No idea why the callHackage call causes infinite recursion tbh.
<asymmetric>
[override] is used to override the arguments passed to a function.
<asymmetric>
The function overrideAttrs allows overriding the attribute set passed to a stdenv.mkDerivation call, producing a new derivation based on the original one.
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<asymmetric>
ah i think i see.. overrideAttrs overrides the argument of mkDerivation, which is an attribute set
<infinisil>
(Ohh, --builders != --option substituters, I was having trouble with the latter one)
<oldandwise>
tried that... error is unable to open SSH connection to 'ssh://192.168.2.164': cannot connect to '192.168.2.164'; trying other available machines...
<clever>
oldandwise: oh, but what about sudo ssh 192.168.2.164 nix-store --version
<clever>
you may need to set the user in that cmd
<oldandwise>
now, it keep asking for password, and password does not work.. won't let me in...
<clever>
oldandwise: try with user@ip in the cmd
<clever>
sudo changes the default user for ssh
<oldandwise>
'sudo ssh johnny@192.168.2.164 nix-store --version' asked for password, is accepted, and prints result 'nix-store (Nix) 2.0'
jtojnar has joined #nixos
<clever>
ah, then your not using an ssh agent, so it looked in /root/.ssh/id_rsa instead of /home/johnny/.ssh/id_rsa
<clever>
sudo nix-build --builders ssh://johnny@192.168.2.10 '<nixpkgs>' -A cscope --max-jobs 0
hiroshi- has joined #nixos
<oldandwise>
unable to open SSH connection to 'ssh://johnny@192.168.2.120': cannot connect to 'johnny@192.168.2.120'; trying other available machines...
<clever>
oldandwise: try starting ssh-agent, set the vars it showed, then ssh-add, then do the above cmd again
hiroshi has quit [Ping timeout: 248 seconds]
hiroshi- is now known as hiroshi
joebobjoe has joined #nixos
graphene has quit [Remote host closed the connection]
<clever>
so the remote nix builder is now "working"
<clever>
but the remote machine wont accept the storepath
<clever>
a: add johnny to the trusted users on the remote machine
<clever>
b: add your ssh key to root on the remote machine and switch to root
<clever>
c: setup nix keypairs to sign builds, and configure the 2 machines properly
<clever>
do one of the above to fix it
<oldandwise>
k... doing option#1 in /etc/nixos/configuration.nix nix.trustedUsers = ["johnny"];
<tychog>
how does one put a nix setup in git? I tried a git init in /etc/nixos/, but found it not to persist across rebuilds. use-case: annotating/viewing history, backing up / sharing my setup.
<clever>
adding yourself to the trustedUsers on the local machine would also get rid of the need to use sudo
* oldandwise
crossing fingers...
wrl has quit [Read error: Connection reset by peer]
JonReed has joined #nixos
magnetophon has joined #nixos
<magnetophon>
I'm having trouble compiling some, but not all pkgs. I get: "error: while setting up the build environment: getting attributes of path '/etc/hosts': Permission denied". It's not a config issue, since I've build a really minimalistic config and tried from there, with the same result. the permissions of the file in question look ok. What can I try next?
aexoxea has quit [Quit: Goodbye!]
arjen-jonathan has joined #nixos
wrl has joined #nixos
<tychog>
@magnetophon: try sudo?
<magnetophon>
tychog: thanks, but I already tried using both my user and root acount. or am I misunderstanding you?
periklis has joined #nixos
<tychog>
magnetophon: no, in that case I'm not sure either. fwiw I can stat /etc/hosts just find without sudo.
<tychog>
btw /etc/hosts should symlink to /etc/static/hosts then to some /nix/store entry.
<JonReed>
magnetophon: You can also reference your Github issue here ( https://github.com/NixOS/nixpkgs/issues/41651 ) so that people who can help you (I don't really know what's going on) have more info to deal with
<{^_^}>
#41651 (by magnetophon, 10 weeks ago, open): error: while setting up the build environment: getting attributes of path '/etc/hosts': Permission denied
<gchristensen>
inside a build, /etc/hosts isn't the same as your machine's /etc/hosts
bennofs has joined #nixos
<magnetophon>
JonReed: thanks. I avoided that, since I made that issue into a bit of a mess: hard to get info out of
<LnL>
gchristensen: yep :D
tychog has quit [Quit: WeeChat 2.1]
<magnetophon>
tychog: mine goes: /etc/hosts -> /etc/static/hosts /home/me/myNixosConfig/hosts and that file has: Access: (0644/-rw-r--r--) Uid: ( 1000/ bart)
<magnetophon>
so it looks like that's my issue, right?
<gchristensen>
it won't be inside a nix build
joebobjoe has joined #nixos
<magnetophon>
gchristensen: so you are sure that the solution is not to change the permissions of the hosts file in my home dir?
<gchristensen>
inside a build, /etc/hosts isn't the same as your machine's /etc/hosts
<magnetophon>
LnL: I did "chown root /home/me/nixosConfig/hosts" and also "chmod -R 777 /home/me/nixosConfig/hosts", but get the same result
<LnL>
doesn't matter, /home/me isn't readable for other users
<magnetophon>
LnL: 2 questions: how come this setup worked for so long for me then? how do I fix it? (I want hosts to point to a blacklist I can easily download and keep up to date, preferably inside my nixos config git repo)
<magnetophon>
LnL: for now I'll rebuild with a default hosts file, and see if it fixes the issue. thanks!
<LnL>
I don't know, I'd expect lots of things to break if you do that
<magnetophon>
LnL: it works now!!!! great! I still don't understand why it didn't work after rebuilding with a minimal config though... must have been PEBCAC....
<oldandwise>
thanks clever
<magnetophon>
Many thanks LnL. Ive been strugling with this for over a month. Now I can go back to contributing to NixOS! :D
<magnetophon>
LnL: are you LnL7 on github? I want to credit you in my issue closing remark.
periklis has quit [Remote host closed the connection]
<{^_^}>
[nixos-artwork] @samueldr merged pull request #33 → Adds a revision of the logo SVG file with matching font → https://git.io/fNhMh
<{^_^}>
[nixos-artwork] @samueldr pushed 3 commits to master: https://git.io/fAe1l
mayhewluke has quit [Ping timeout: 272 seconds]
Wizek has joined #nixos
<Wizek>
hello
<Wizek>
anyone knows how to use `nix-shell -p 'haskell.packages.ghc843.developPackage { root = ./.; src = ./.; }' -j4 --run 'cabal new-repl'`?
<mpickering>
I think the `new-repl` here is the error
<Wizek>
It seems to complain if I remove src attr or keep it
<mpickering>
what's the error exactly?
<Wizek>
'developPackage' at /nix/store/cc5i4y0hv1y8igqscy568sxxc0s4zlyg-nixpkgs-18.09pre149415.8395f9aa85e/nixpkgs/pkgs/development/haskell-modules/make-package-set.nix:207:7 called with unexpected argument 'src', at (string):1:94
<Wizek>
This is what ended up working `nix-shell -E '(import <nixpkgs> {}).haskell.packages.ghc843.developPackage { root = ./.; }' -j4 --run 'ghcid -c "cabal new-repl" -T main'`
<Wizek>
clever: yup. Btw, the woes seem not to be over. As it turns out developPackage doesn't give me cabal on path that lead to an abi error likely due to version mismatch. I tried asking nix for cabal with `-p cabal` but apparently that's mutex with `-E`. Any ideas?
<aanderse>
anyone know bundix well? i'm looking at some ruby stuff that wants me to call bundle like so:
<aanderse>
bundle install --without development test
<gchristensen>
manveru does
<clever>
Wizek: nix gives you cabal as a library, not a binary
<aanderse>
if i pass the --without development test then the Gemfile skips over some deps
<clever>
Wizek: so you have to compile and run Setup.hs and use that as your cabal binary
<aanderse>
i'm trying to figure out how to get bundix to skip those deps as well
<clever>
Wizek: you can also just runhaskell Setup.hs
<aanderse>
it appears bundix doesn't pass args onto bundler
joebobjoe has joined #nixos
<Wizek>
clever: I'd rather use ghcid somehow, or is that not very possible?
<clever>
Wizek: i use ghcid -c "runhaskell Setup.hs repl"
<Thra11>
Does nixpkgs have any rules or guidelines for naming patch files?
aanderse has quit [Ping timeout: 276 seconds]
hotfuzz has joined #nixos
<manveru>
oh, he already left?
Havvy has quit [Ping timeout: 260 seconds]
<symphorien>
Thra11: if it is a patch for a CVE, it should be named after the CVE
<symphorien>
otherwise, I don't know
<samueldr>
Thra11: not sure, but if I were to write one up, it would be "make them using git format-patch" as you can also add metadata (commit message) to them that way https://git-scm.com/docs/git-format-patch
<samueldr>
* when possible
<clever>
i just do `git diff > reason.patch
<clever>
or `diff -ru` if i dont have a .git
<gchristensen>
Anton-Latukha: hey
Drakonis has joined #nixos
endformationage has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
revtintin has quit [Quit: WeeChat 1.9.1]
<Thra11>
In this case, I've just copied a patch from archlinuxarm's build sources, so it does already have a name. Not sure if I should get nix to fetch it from archlinuxarm instead.
<clever>
Thra11: there is a pkgs.fetchpatch function
<clever>
works a lot like fetchurl
<Thra11>
Yes, I think I've seen it in use.
<Thra11>
I guess it depends whether there's a stable url to download the patch from
graphene has quit [Remote host closed the connection]
<clever>
yeah
<clever>
and if its a nix only patch
graphene has joined #nixos
b has quit [Quit: Lost terminal]
Havvy has joined #nixos
vmandela_ has quit [Quit: Leaving]
kisik21 has joined #nixos
<kisik21>
An interesting idea struck me - is it possible to bootstrap LFS (in broad sense - Linux with all packages built from scratch) from NixOS? Assuming FHS hierarchy in the resultant system.
aarvar has joined #nixos
<clever>
kisik21: it might be possible to create the /tools/ set from nixos, just follow the usual directions and make sure cc-wrapper doesnt inject too much junk
<kisik21>
Maybe just, y'know, somehow bootstrap /tools/-like hierarchy with Nix?
hyper_ch has quit [Remote host closed the connection]
<kisik21>
I'm too lazy to go through all of instructions of building the intermediate toolchain
<kisik21>
It
<kisik21>
it's too long
<kisik21>
and too manual
<kisik21>
oh, my musl cross-compiler is ready
<clever>
kisik21: you can probably just bind-mount /nix into the chroot and use nix-shell -p as a fake /tools
<clever>
/tools is more about having a full toolchain that doesnt live in /usr/
<clever>
and nix already counts as that
<kisik21>
That would be interesting
<kisik21>
and my musl cross-compiler doesn't work...
<clever>
kisik21: this is what i have tested in the past
<clever>
try just putting that directly into nix-shell -E '....' ?
Drakonis has joined #nixos
hyper_ch has joined #nixos
<oldandwise>
i'm keep on getting this `__divmoddi4` error even if i do remote build. I'm only interested in a command line cli of octave. How can I do this?
<kisik21>
clever: works.
<symphorien>
oldandwise: if you eval on 32 bit, then the derivation is 32 bits and the remote builder will build 32bit even if it is 64bits capable
<kisik21>
Would be nice to get rid of hello part though.
<clever>
kisik21: you can also do .mkDerivation { name = "name"; }
<oldandwise>
if the `__divmoddi4` is in GUI, ... i only want cli
graphene has quit [Remote host closed the connection]
<symphorien>
I guess the configure script will give up on building the CLI in this case
<symphorien>
the GUI*
<oldandwise>
if this `divmoddi4` is going to be fixed soon..i'll just wait
<symphorien>
this is a 32bits problem right ?
<oldandwise>
seems so...
<symphorien>
so I am not sure it will e ever fixed
<symphorien>
there are less and less 32 bits users and 32 bits is increasingly broken
acarrico has quit [Ping timeout: 272 seconds]
<symphorien>
unless you are motivated enough to fix it, of course :)
acarrico has joined #nixos
Fare has quit [Ping timeout: 272 seconds]
<kisik21>
If I haven't enabled nixpkgs.allowUnfree, would my system be perfectly free software, including every part that is coming from NixOS? (kernel and firmware included)
<emily>
depends how high your standards are
<emily>
the stock kernel isn't linux-libre, for instance
<emily>
you might be interested in GuixSD, which is based on Nix but much more GNU-y?
<kisik21>
emily: are there linux-libre packages?
<kisik21>
emily: also GuixSD is not nix-based, despite sharing similar concepts
<gchristensen>
GuixSD is guaranteed to be all-free, since they don't even allow unfree software to be available
<emily>
I don't think so, but I don't know for sure.
<emily>
kisik21: Guix uses Nix under the hood, from my understanding.
<emily>
not Nix-the-language.
<emily>
Nix-the-software/store-model.
<gchristensen>
I wonder why we don't have linux-libre available
<gchristensen>
or if the reason is just, nobody interested in doing so has done it
<kisik21>
Probably no one ever bothered to write a derivation
<kisik21>
I've never used linux-libre before...
<jeaye>
emily: Guix uses all of its own code.
<emily>
jeaye: oh, okay. sorry for my error.
<emily>
it still uses the Nix store model, though, right?
<gchristensen>
yeah, and they used to use nix-daemon
<kisik21>
Yeah, but it's /gnu/store
<jeaye>
It uses the same principles, but that's all, emily.
<kisik21>
They like the brand
<emily>
gchristensen: I guess the only real reason to care about linux-libre is ideological, and so anyone who would package it would probably be dissatisfied with nixpkgs' attitude to licensing in general?
silver_ has joined #nixos
rprije has quit [Remote host closed the connection]
rev_strangehope has quit [Ping timeout: 272 seconds]
<emily>
it tends to only show up in the kind of distros that get FSF approval, I feel
<Dezgeg>
what does linux-libre even provide if you simply don't install any firmware packages?
<symphorien>
even without firmware, the linux source contains some blobs whose license is at best unclear
<jeaye>
Dezgeg: Linux itself comes with binary blobs.
silver has quit [Read error: Connection reset by peer]
<clever>
Dezgeg: ive noticed that some of my wifi drivers have support for open-source firmware, at least in terms of loading it, but ive never actually found said firmware
<gchristensen>
you have to explicitly turn on unfree firmware (hardware.enableRedistributableFirmware)
<Dezgeg>
you can do ls -la /run/current-system/firmware/
rev_strangehope has joined #nixos
<emily>
Dezgeg: Linux itself has some blobs inside
<Dezgeg>
didn't all the firmware blobs get removed from latest versions?
<emily>
I think the argument is that they're tiny enough that they're legally unproblematic or something
<kisik21>
how does the kernel build infrastructure works even? where are the packages, where is the source? it doesn't look like a normal derivation to me!
<kisik21>
`nix edit nixpkgs.linuxPackages.kernel`
<Dezgeg>
yes it's split into quite many pieces
<Dezgeg>
sources are in e.g. pkgs/os-specific/linux/kernel/linux-4.14.nix
<kisik21>
Oh, that looks like something one can build on
<kisik21>
Let's say I've modified the derivation to download sources from other place. How to try to build the kernel with default config?
<kisik21>
You can assume I have an overlay, if it's needed.
<kisik21>
(and how to write it to an overlay anyway?)
<kisik21>
s/write/add/
<symphorien>
easiest way is nixos-rebuild -I nixpkgs=/path/to/clone
<kisik21>
symphorie: I don't have a checkout of nixpkgs with my kernel added in.
<kisik21>
I have a file and I have an overlay and I don't know how to integrate it with an overlay...
<symphorien>
well this I don't know
<kisik21>
where to inject the super.callPackage os-specific/linux/kernel/linux-libre-4.14.nix? and yes, I have my overlay hierarchy based on nixpkgs' one... if one day I'll decide to push my changes for the whole world to see, it will be easier to integrate.
<kisik21>
should I even use callPackage?
<kisik21>
Dezgeg: how the source package you mentioned gets called? nixpkgs.kernelPackages.linux_something?
<Dezgeg>
it is linux_4_14 in all-packages.nix IIRC
<kisik21>
just linux_4_14?
<kisik21>
no kernelPackages?
<Dezgeg>
and linuxPackages_4_14 is built from the linux_4_14
<kisik21>
so I would have to copy half of nixpkgs to my overlay?
<kisik21>
let me see all-packages.nix
<kisik21>
okay, so it has the package in top-level
<kisik21>
and then...
<kisik21>
mmhm
<kisik21>
I got it
<kisik21>
What does the myriad of patches for linux-4.14 in nixpkgs do? Are these critical to have a stable system?
neonfuz has quit [Quit: WeeChat 1.9]
aarvar has quit [Quit: Leaving.]
sm0rux has quit [Ping timeout: 256 seconds]
worldofpeace_ has joined #nixos
<{^_^}>
[nixpkgs] @Thra11 opened pull request #45310 → vim-qml: init at 2018-07-22 → https://git.io/fAeQg
worldofpeace has quit [Ping timeout: 260 seconds]
vcunat has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @Thra11 opened pull request #45311 → vim-lastplace: init at 2017-06-13 → https://git.io/fAeQw
ambro718 has joined #nixos
<ambro718>
Hi. I am trying to move a nixos installation to a new disk. I set up partitions and copied boot and root filesystems (with rsync -aHAX), then used nixos-enter to get into a chroot, update the configuration file with new drive paths, and tried nixos-rebuild boot. But it gives an obscure error: https://paste.ubuntu.com/p/rwdW3fWtDQ/
Anton-Latukha has quit [Quit: Leaving.]
slyfox has quit [Ping timeout: 240 seconds]
<ambro718>
Am I doing something wrong? How is this supposed to be one? Note that just using nixos-install from the host system would not be good as it would use the wrong nixpkgs and it would download lots of unnecessary things because it would use the host's nix store.
<symphorien>
try disabling sandbox
<ambro718>
how?
<kisik21>
something like --option no-sandbox? i'm not sure
<symphorien>
edit /etc/nix/nix.conf and put here sandbox=false
<Dezgeg>
nixos-install would be the solution, and it has been fixed to not use the host store
<Dezgeg>
I don't know if it handles NIX_PATH or -I nixpkgs sanely, though
<kisik21>
should
<kisik21>
nothing prevents it from handling it
<Dezgeg>
yep, it should be fixed of course if it doesn't
<ambro718>
Dezgeg: so how do I do it? Do I need to specify NIX_PATH relative to the mouted root?
init_6 has quit [Ping timeout: 240 seconds]
<ambro718>
BTW I can't edit /etc/nix/nix.conf, it's unwritable in nix store. Is there a command line option?
arjen-jonathan has quit [Ping timeout: 255 seconds]
<Dezgeg>
I suppose if you try it and get it wrong it will warn and complain
<Dezgeg>
maybe ideally it'd use the host store for instantiation so all paths were as if they were outside the chroot
<ambro718>
How to I pass nix-build options to nixos-rebuild?
joebobjoe has quit [Ping timeout: 268 seconds]
<kisik21>
ambro718: the same way? IIRC almost all nix and NixOS tools share their command line options
<ambro718>
Dezgeg: how is using the host store ideal? Using the existing store in the installed system seems much more appropriate because it happens to have almost everything needed.
Fare has joined #nixos
<Dezgeg>
instantiation would only create the small .drv files
<kisik21>
ambro718: last time I was forced to reinstall my system, it used EVERYTHING from target store. No downloads.
<Dezgeg>
but yes actual copying would happen there
semilattice has quit [Ping timeout: 244 seconds]
slyfox has joined #nixos
abueide has joined #nixos
<ambro718>
okay "--option build-use-sandbox false" solved the error
drakonis__ has joined #nixos
jtojnar has quit [Ping timeout: 244 seconds]
jD91mZM2 has quit [Quit: WeeChat 2.0]
<ambro718>
seems like the install went fine with nixos-rebuild from chroot now, hope it actually works else I'll have to reboot and setup all the cryptsetup and mounts again
Drakonis has quit [Ping timeout: 256 seconds]
<kisik21>
ambro718: If you write a good configuration.nix, nixos-install is the only thing you'll need to do. And most configuration.nix files are good by default.
<kisik21>
(for now, definition is simple - the bad one won't even be built)
<ambro718>
kisik21: what about fixups of /dev paths in hardware-configuration.nix? And I still need to fixup the resume_device and resume_offset stuff for hibernation.
<ambro718>
the bootloader install device had to be updated to the new /dev/disk/by-id/.. path and the filesystems to new /dev/disk/by-uuid/ paths
abueide has quit [Read error: Connection reset by peer]
<kisik21>
ambro718: No hibernation stuff whatsoever, swap on LVM on LUKS, surprisingly worked out of the box.
<kisik21>
I've configured it via boot.kernelParams!
<kisik21>
did I do it right?
<ambro718>
kisik21: your resume device is pointing to what, a cryptsetup thing?
sm0rux has joined #nixos
<ambro718>
kisik21: I have my swap inside the root filesystem as a file, for the simple reason that I only have one password to enter at boot.
<ambro718>
though are you solving that by putting LVM inside cryptsetup?
<kisik21>
Yeah. One flash drive with a second keyfile partition to rule them all.
<kisik21>
And a passphrase - just in case.
<ambro718>
ah ok, good to know. I'm sticking with no lvm and swap file for now since I know this works for me :)
trevthedev has joined #nixos
<kisik21>
My setup waits 10 seconds for a special flash drive to be connected to the right side of the computer (for unknown reasons, this is important!), and fall backs to a passphrase if a keyflash is not available. (Usually it is, because it's inserted at boot)
<{^_^}>
[nixpkgs] @Thra11 opened pull request #45312 → qtcreator: enable on aarch64 and armv7 → https://git.io/fAe7N
foldingcookie has quit [Ping timeout: 260 seconds]
troydm has quit [Ping timeout: 244 seconds]
<ambro718>
I think the flash drive is just convenience, it doesn't solve the "evil maid" issue AFAIK.
<kisik21>
I have no maids at home, sadly.
<trevthedev>
same
<kisik21>
And my relatives are too incompetent to perform a real evil maid attack...
<ambro718>
i.e. someone may modify the boot code on your system without you knowing and then when you boot up and insert key / passphrase they have it
<kisik21>
I know!
<ambro718>
:)
<{^_^}>
[nixpkgs] @TravisWhitaker opened pull request #45313 → ghc: Use 8.2.2 binary for boot, no parallel builds on aarch64. → https://git.io/fAe7p
<kisik21>
But really, no one at my home even knows what is an evil maid attack
<{^_^}>
[nixpkgs] @TravisWhitaker closed pull request #45166 → ghc: Use 8.2.2 binary for boot, no parallel builds on aarch64. → https://git.io/fNh1S
<ambro718>
ok time to reboot :)
<kisik21>
good luck!
ambro718 has quit [Quit: Page closed]
ambro718 has joined #nixos
<kisik21>
ambro718: did it work?
<ambro718>
Hah it booted perfetly :) Doesn't usually work on the first try.
<kisik21>
That's NixOS, it's normal
aarvar has joined #nixos
<kisik21>
It always works on a first try
<tilpner>
Unless you're debugging bootloaders or drivers
<kisik21>
I'm talking about end-user experience
<tilpner>
s/debuggin/configuring/
<kisik21>
if you're working with bootloaders, it always fails at least one time
<kisik21>
tilpner: well, maybe
<kisik21>
never tinkered with it beyond setting a few boot options
jtojnar has joined #nixos
<ambro718>
oh one thing I've learned is to always boot in EFI mode, or you can't install EFI bootloader. Seems so backward.
<kisik21>
no EFI computers except an Intel Atom tablet.
<kisik21>
And y'all know how broken Intel Atom is
<ambro718>
all new computers have EFI
<kisik21>
I know.
<kisik21>
Wanna have one. EFI seems cool.
<kisik21>
No need for bootloaders at least...
<ambro718>
I don't think you would see any difference.
mayhewluke has quit [Ping timeout: 276 seconds]
<kisik21>
EFI Shell makes a difference.
<kisik21>
Seems like it can even boot Linux without GRUB, if you remember the commands.
joebobjoe has joined #nixos
<kisik21>
I'm starting to think this is my last hope to boot that Atom tablet
<ambro718>
if you say so :) I just need it to load my grub.
mayhewluke has joined #nixos
trevthedev has quit [Quit: WeeChat 2.0]
<kisik21>
GRUB never got past "Loading linux and initrd..." for me on EFI...
thetet has left #nixos [#nixos]
<kisik21>
I'm starting to think something is wrong with the handover to Linux kernel
aminb has quit [Quit: WeeChat 2.2]
<kisik21>
oh, what bootloader does NixOS install USB uses on EFI/
<ambro718>
grub2
<ambro718>
oh sorry no idea
<ambro718>
but it probably is grub2 IIRC
<kisik21>
No wonder it doesn't work then. GRUB sadly never worked for me, being a good tool everywhere else though.
aminb has joined #nixos
<kisik21>
oh, my new linux-libre derivation is starting to build
<kisik21>
nice! expecting something awesome to land in the $out dir
<{^_^}>
[nixpkgs] @LnL7 merged pull request #44630 → gtk3: add x11Support for darwin → https://git.io/fNDFg
<ambro718>
I learnt all I need to get the efi grub working is 1) make a partition with bios_grub flag (that is actually required because for some reason the nixos setup also wants to install bios stuff) 2) boot.loader.grub.efiInstallAsRemovable = true; which is good if you want to move disk to another computer and expect it to boot
<kisik21>
what does the second option do exactly to grub? looks promising
<ambro718>
kisik21: I think the default setup without this "just" adds a boot entry to the EFI configuration telling it what to run from which partition etc. That option also does some installation on the disk itself allowing an EFI firmware to detect your bootable thing automatically and let you boot it even if it has no advance configuration of that thing.
aarvar has quit [Ping timeout: 265 seconds]
<kisik21>
oh I see
<ambro718>
so if I move disk to a different computer, I will supposedly be able to boot from it (if not otherwise then via boot override)
<kisik21>
BOOTX64.EFI
<kisik21>
check for file named like that in your ESP, I bet it would be present there
<ambro718>
yes
<kisik21>
ok
<kisik21>
cool!
rtjure has quit [Ping timeout: 272 seconds]
<clever>
ambro718: bios_grub is only needed if you forgot to set boot.loader.grub.device = "nodev";
<clever>
ambro718: youve accidentaly configured nixos to both legacy and efi at the same time (a common mistake)
<kisik21>
but doesn't it allow for hybrid drive?
<kisik21>
something bootable on both BIOS and UEFI?
<ambro718>
clever: ah, good to know. I don't mind though.
<clever>
kisik21: you can also just do that on purpose, to get exactly that
<kisik21>
Would be a nice trick to show on parties.
<kisik21>
And make a recovery USB drive.
<kisik21>
Or both at the same time.
<clever>
install as removable is also good for usb drives
<clever>
boot.loader.grub.efiInstallAsRemovable
<kisik21>
kinda obvious, *removable*!
<clever>
this configures grub to use the path that is used on removable drives
rtjure has joined #nixos
<clever>
which the uefi firmware will load without having the efivars setup
<kisik21>
also Windows likes to clobber it
<kisik21>
so no Windows on that drive
<kisik21>
Windows protection
<kisik21>
sounds like it's against a rootkit
<kisik21>
is Windows hating allowed here?
arjen-jonathan has joined #nixos
<clever>
kisik21: as long as you also bash darwin/apple? :P
<kisik21>
Ave NixOS! who needs darwin anyway when we have NixOS
<clever>
:D
<kisik21>
seriously, I can't imagine my life without Nix now
<kisik21>
It's too cool to stick it on a shelf
<kisik21>
It almost became my religion
<kisik21>
but I think it's more of a topic for #nixos-chat, isn't it?
<clever>
probably
<kisik21>
ok, going on-topic - I have some progress with linux-libre. It's building right now, 9 workspaces away from irssi window.
<ambro718>
just yesterday I set up a coworker with vim+youcompleteme in centos via nix in 10 minutes, after he has already been compiling various llvm stuff for hours :(
Anton-Latukha has joined #nixos
<clever>
ambro718: i often scp my vim.nix file to another machine, nix-build it, and then just manually jam it into $PATH
<ambro718>
people just don't realize how useful nix is, you can get almost any piece of SW running on almost any linux distro.
<kisik21>
clever, ambro718: I just use home-manager.
<clever>
ambro718: the biggest problem ive had, is that f7/f8 dont work, because that machine had keybinds in screen for f7/f8, so vim never got them, lol
<clever>
kisik21: in the above case, i wanted to use my vim, without changing the defaults for other users on the machine
<ambro718>
I don't use vim myself so I wouldn't know the details, I know they were happy with it :)
<kisik21>
home-manager doesn't change defaults for other users on the machine. If you don't have your users sharing one account, obviously
<ambro718>
home manager seems interesting but I see a giant warning about experimentalness :)
<clever>
kisik21: shared user on a shared machine
<kisik21>
ambro718: oops! seems like I haven't noticed it
<kisik21>
no, really, it's working too good to be beta
<kisik21>
or alpha
<kisik21>
Oh, I've had a question for a long time! How to add more perl packages to irssi closure? Need some things for trigger.pl to work.
<JonReed>
Is `nix repl` available by default on NixOS or it comes from some package?
<kisik21>
nix-repl uses Perl, so it's a separate package.
<kisik21>
or wait
<clever>
JonReed: nix repl is part of nix 2.0
<kisik21>
oh, nice, what's nix-repl package is then?
<JonReed>
I used "nix-repl" before, now switched to unstable and it says that "nix-repl" package no longer exists
<kisik21>
so it got integrated!
<kisik21>
That's good
bennofs has joined #nixos
<kisik21>
One of my most beloved tools is nix-shell though. Trying out apps (even complex ones, like nixpkgs.gnome3.evolution) and not clobbering the environment.
drakonis__ has quit [Read error: Connection reset by peer]
kisik21 has quit [Quit: leaving]
<ambro718>
mate desktop is packaged now in nixos-unstable right?
joebobjoe has quit [Ping timeout: 276 seconds]
<ambro718>
is nixos-unstable reasonably stable now? I'd like to give it a try before the 18.09 release.
goibhniu has joined #nixos
Drakonis has joined #nixos
<gchristensen>
no, nixos-unstable will be branched in to release-18.09 and then will be stabilized there
<ambro718>
ah ok, I'm trying it own anyway
<gchristensen>
ok
<ambro718>
otherwise I always end up with issues with the new release and then fixes need to be backported :)
rprije has quit [Remote host closed the connection]
<gchristensen>
that is the point of the stabilization process! :)
Thra11 has quit [Ping timeout: 240 seconds]
rprije has joined #nixos
<JonReed>
`nix-prefetch-url` now also comes by default with NixOS on unstable, right?
acarrico has joined #nixos
<clever>
JonReed: its part of the nix package
<clever>
so its available on anything that has nix
<JonReed>
clever: Ok. Thanks. That's great.
<infinisil>
,locate bin nix-prefetch-url
<{^_^}>
Found in packages: nix1
__monty__ has quit [Quit: leaving]
<infinisil>
Ah, it doesn't display nixStable, because the package name is the same, and it prefers shorter attribute names
<ambro718>
I figured that from some point on, "command-not-found" works also if you don't use channels. How does that work?
aarvar has joined #nixos
<JonReed>
locate bin google-chrome-stable
<joepie91>
JonReed: you're missing a comma at the start
<JonReed>
, locate bin google-chrome-stable
<{^_^}>
Couldn't find any packages
<joepie91>
huh? that should not have worked
<joepie91>
... infinisil?
<joepie91>
the bot is space-tolerant?
<LnL>
unfree
<infinisil>
Yeah, nix-index can't know about unfree stuff because hydra doesn't build it
ambro718 has quit [Quit: Konversation terminated!]
<JonReed>
Is there something on nix that has the same functionality as `locate` (finding a package for command that you haven't yet installed)?
<joepie91>
infinisil: yes, but they did `, locate` instead of `,locate`
<infinisil>
Ah heh
<infinisil>
The way it works is: Throw away the ",", separate into space-separated words, match commands on the list of words
<infinisil>
Notably the word-splitting is done with Haskell's words function, which drops all spacing
justanotheruser has quit [Ping timeout: 272 seconds]
graphene has quit [Read error: Connection reset by peer]
graphene has joined #nixos
arjen-jonathan has quit [Ping timeout: 276 seconds]
asymmetric has joined #nixos
thetet has joined #nixos
thetet has left #nixos [#nixos]
kisik21 has joined #nixos
justanotheruser has joined #nixos
justanotheruser has quit [Read error: Connection reset by peer]
Thra11 has joined #nixos
graphene has quit [Read error: Connection reset by peer]
graphene has joined #nixos
<Lisanna>
> let a = { b = 0.5; }; in a.b * 2
<{^_^}>
value is a float while an integer was expected, at (string):169:26
<Lisanna>
:/
<Lisanna>
> 0.5 * 2
<{^_^}>
1
<JonReed>
Is there a way to specify another `/boot` location for `nixos-rebuild switch`? Something ("systemd-1 on /boot type autofs") has mounted itself to /boot, so I can't mount my usb device there and want to mount it to another path and supply that path to `nixos-rebuild`.
<mpickering>
How does the `inNixShell` attribute work
<Lisanna>
welp, floats are broken
<mpickering>
It seems that if I use a derivation which mentions it as a build input to `mkShell` then it is set to `True`
<mpickering>
which seems wrong
<Lisanna>
> let a = 0.5; in a * 2
<{^_^}>
1
Guanin has quit [Read error: Connection reset by peer]
Guanin has joined #nixos
justanotheruser has joined #nixos
jtojnar has quit [Read error: Connection reset by peer]