<yegortimoshenko>
ahstro: well, they probably don't build a static binary for npm release, which is why it won't work outside fhs chrootenv
ylwghst has quit [(Remote host closed the connection)]
ylwghst has joined #nixos
kkini has joined #nixos
__monty__ has joined #nixos
ylwghst has quit [(Remote host closed the connection)]
<__monty__>
Is there a way to have a remote machine act like a transparent cache? So a miss would install the relevant package into the cache's nix store and be reported as a hit, just a slow one?
<rycee>
infinisil: I searched a bit for a patch putting XDG support in curl but couldn't find any, not even a reported issue. I thought that was quite surprising.
<infinisil>
Kinda surprising, curl has so many features
<__monty__>
MichaelRaskin: I probably want both : ) Currently it's set up as a remote builder but there's no reason to do the downloads on my wifi then upload deps to the builder then download the result.
<rycee>
__monty__: Note, the code there is a bit intertwined with nixops stuff. For my setup I extracted and cleaned it up a bit into a proper NixOS module.
<MichaelRaskin>
Well, if you never build anything locally, won't every dependency be in the remote store anyway?
<__monty__>
MichaelRaskin: I assume so but the remote store isn't automatically used as a cache.
<manveru>
ahstro: well, would be glad if you figure it out :)
<__monty__>
What I mean by transparent cache is that it'd build things that are missing, or get it from cache.nixos.org.
<MichaelRaskin>
Well, you can forbid cache.nixos.org on the endpoint machine, but leave it enabled on the builder
<__monty__>
MichaelRaskin: Then the local machine is completely without cache.
<__monty__>
Should I open an issue about the build-max-jobs not working?
<manveru>
wish i knew more about haskell with nix...
<__monty__>
manveru: You can always ask in #haskell ; ) I'm just getting started with haskell+nix myself.
<LnL>
__monty__: yeah, you could also check nix-unstable maybe it's fixed there
<manveru>
well, that mkDerivation looks like nothing i've ever seen before
<ahstro>
HAHAH!!! YES! People, we have a build!
<manveru>
maybe addSetupDepends?
<manveru>
i guess in the worst case we can just sed that damn file and set a fixed hash
<manveru>
ahstro: how?
<ahstro>
manveru: I barely know... Moved some stuff about. Now I'm going to figure out why it works
<manveru>
can you paste a diff?
<manveru>
s/paste/gist
ylwghst has quit [(Remote host closed the connection)]
deech has joined #nixos
ylwghst has joined #nixos
<manveru>
ooh
deech has left #nixos []
deech has joined #nixos
<manveru>
well, i got git to work, but turns out that the .git is gone
Wizek has quit [(Quit: Connection closed for inactivity)]
c0bw3b has left #nixos []
asuryawanshi has joined #nixos
<deech>
Hi all, can anyone offer advice on installing NixOS using only WiFi? I followed the instructions here (https://chris-martin.org/2015/installing-nixos) for getting wpa_supplicant to work but it's not connecting.
ma27 has quit [(Ping timeout: 240 seconds)]
tgunb has quit [(Ping timeout: 260 seconds)]
<__monty__>
LnL: I was missing the .ssh/config stuff, since I use a non default key file. But it's still not working. Terminal ssh access is simple now.
<MichaelRaskin>
there is a parameter of fetchgit called something like leaveDotGit
ambro718 has quit [(Ping timeout: 252 seconds)]
<tilpner>
deech - Easiest is probably using the graphical ISO to connect to wifi, then install networkmanager during nixos-install, so you never have to touch wpa_supplicant
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bendlas pushed 1 new commit to master: https://git.io/vFCNB
<NixOS_GitHub>
nixpkgs/master e64dc25 Herwig Hochleitner: Revert "services.xserver: assert that either desktop- or window manager is not "none""...
NixOS_GitHub has left #nixos []
<deech>
Is networkmanager included in the ISO? Also an issue I had with the Graphical ISO was that Plasma locks the screen after a while and doesn't take a blank password.
asuryawanshi has quit [(Ping timeout: 255 seconds)]
<tilpner>
deech - I think it is. Or another graphical network management thing, it's been a while
<__monty__>
LnL: I'll troubleshoot further tomorrow, I'm admitting defeat for today. nn everyone
__monty__ has quit [(Quit: leaving)]
yegortimoshenko has joined #nixos
<deech>
tilpner: Awesome, I'll try that! Any advice on the screen locking?
<manveru>
ahstro: i think... i got it to build
<ahstro>
manveru: Cool! :D
<tilpner>
deech - Don't let it lock :/
<manveru>
it's busy eating all my cpu atm
<manveru>
will know in a minute
<tilpner>
(unhelpful, I know. Don't know about the password)
<tilpner>
(Or disable it in the settings after booting, I guess)
<deech>
tilpner: Ok thanks! I'll open an issue.
markus1189 has joined #nixos
betaboon has quit [(Quit: WeeChat 1.9.1)]
<manveru>
ahstro: it's failing in Elm.Docs now...
rosa has joined #nixos
betaboon has joined #nixos
<manveru>
seems unrelated
<ahstro>
manveru: Disable Haddock :)
<manveru>
what's that?
markus1199 has quit [(Ping timeout: 240 seconds)]
<manveru>
doHaddock = false?
<manveru>
let's see
<ahstro>
dontHaddock
amfl has quit [(Read error: Connection reset by peer)]
ylwghst has quit [(Remote host closed the connection)]
ahstro has quit [(Ping timeout: 260 seconds)]
ylwghst has joined #nixos
ylwghst has quit [(Remote host closed the connection)]
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
takle has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] matthewbauer opened pull request #1664: Setup nix_path correctly in nix-profile-daemon (master...patch-4) https://git.io/vFCx5
NixOS_GitHub has left #nixos []
EvilMachine has joined #nixos
orivej has joined #nixos
lambdamu has joined #nixos
ylwghst has joined #nixos
lambdamu_ has quit [(Ping timeout: 240 seconds)]
ylwghst has quit [(Client Quit)]
<EvilMachine>
Hello… I have a question: I’m wondering how flexible NixOS is, with its central configuration in a afaik limited environment. Could I use it? My systems are usually relatively custom. I currently use Gentoo on an ARM single-board server, and on my desktop, and e.g. the ARM server is *heavily* customized. I have countless self-made tools and scripts, hooking into udev, cron jobs, ACPI events, sensors, mobile phone IR-like rem
<EvilMachine>
ote control, self-written home automation, self-written init system extension and custom event system, plus, soon, a custom Plan-9-like file system supporting circular loops. And I’m writing a graphical shell to replace the “desktop” paradigm.
<EvilMachine>
I fear that switching to NixOS from Gentoo, will be pointless, since all that custom stuff will not be integratable with the central configuration.nix.
<EvilMachine>
But it’d be pretty cool if I *could*.
ylwghst has joined #nixos
<infinisil>
EvilMachine: There aren't any fundamental problems with ARM, self-made tools and stuff, udev, cron jobs, acpi, sensors, no idea about remote control, filesystem should be no problem too. What sounds like a problem though is the init system stuff, nixos doesn't play well with anything other than systemd
<infinisil>
EvilMachine: And you can split your config however you like, nix is very flexible in that regard
<EvilMachine>
infinisil: Ah, understood. systemd is anti-Unix cancer. It turns the entire point on its head. If I wanted that, I’d use Windows. So thank you for your time. (The little that you have, until my OS shall stomp out said cancer. ;)
EvilMachine has left #nixos []
<infinisil>
Really, he left just like that? lol
rosa has quit [(Quit: rosa)]
<infinisil>
I'm not unix enough to get the "systemd is cancer" point, it worked pretty well for everything I needed it for
python476 has quit [(Ping timeout: 248 seconds)]
<MP2E>
I don't have any strong opinions towards or against any init system. I just use whatever works. and yeah it seems to be fine
<MP2E>
*shrug*
xustanotheruser has quit [(Ping timeout: 258 seconds)]
<ertes>
i have strong opinions against systemd, but the value of NixOS outweighs the cost of systemd for me
<ertes>
also if i were, like EvilMachine, to write my own OS, i would write it using nix
<gfixler>
ertes: what's the worst thing about systemd?
<ertes>
nix itself has nothing to do with systemd
mbrgm has quit [(Ping timeout: 248 seconds)]
<ertes>
gfixler: it's opaque and complicated… and it has caused trouble for me in the past
<gfixler>
ertes: is there a better option? (this is not my wheelhouse - just curious)
<ertes>
for example at some point systemd kidnapped the syslog socket, and i only realised that when i really needed logs and found that they were empty
<gfixler>
gross
<ertes>
gfixler: not sure… my first instinct would be s6, but s6 doesn't support anything linux-specific
justanotheruser has joined #nixos
mbrgm has joined #nixos
<ertes>
recently there was a different system announced on the skaware mailing list that was linux-specific, but it was in its infancy, and i couldn't really evaluate it, because it wasn't actually released yet
justanotheruser has quit [(Client Quit)]
justanotheruser has joined #nixos
<infinisil>
Sooo, systemd is kinda bad, but we don't have a better replacement?
<ertes>
infinisil: i would still go with s6 and layer the linux-specific stuff on top of that
<ertes>
requires some coding on my part though, but i don't have to reinvent the init system itself
<ertes>
process supervision and service dependencies (s6-rc) are taken care of, as well as many other aspects like socket activation (although i consider that an anti-pattern for the most part)
yegortimoshenko has quit [(Read error: Connection reset by peer)]
asuryawanshi has joined #nixos
ylwghst has quit [(Quit: Lost terminal)]
kier has quit [(Ping timeout: 258 seconds)]
ylwghst has joined #nixos
ylwghst has quit [(Client Quit)]
ylwghst has joined #nixos
asuryawanshi has quit [(Ping timeout: 258 seconds)]
kier has joined #nixos
<infinisil>
Okay then :) I'll try to keep s6 in mind
vaibhavsagar has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
vaibhavsagar has joined #nixos
asuryawanshi has joined #nixos
asuryawanshi has quit [(Ping timeout: 248 seconds)]
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<rosa>
Does nix os use the standard /lib* and /usr/lib* paths
ylwghst has quit [(Ping timeout: 248 seconds)]
ylwghst has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] aszlig pushed 1 new commit to master: https://git.io/vFWfa
<NixOS_GitHub>
nixpkgs/master 316de02 aszlig: python/meliae: Fix version string for download URL...
NixOS_GitHub has left #nixos []
ylwghst has quit [(Ping timeout: 248 seconds)]
rosa has quit [(Ping timeout: 248 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 252 seconds)]
theseriousadult has joined #nixos
rosa has joined #nixos
ma27 has joined #nixos
ylwghst has joined #nixos
rosa has quit [(Ping timeout: 240 seconds)]
proteus-guy has joined #nixos
k_sze has joined #nixos
fragamus has joined #nixos
srdqty has quit [(Ping timeout: 248 seconds)]
srdqty has joined #nixos
b has quit [(Quit: Lost terminal)]
asuryawanshi has joined #nixos
asuryawanshi has quit [(Ping timeout: 255 seconds)]
damke_ has joined #nixos
damke has quit [(Ping timeout: 240 seconds)]
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
fragamus has joined #nixos
jacob has joined #nixos
k_sze has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ma27 opened pull request #31268: services.xserver: fix defaults of X11 (master...x11-defaults) https://git.io/vFWTO
NixOS_GitHub has left #nixos []
ma27 has quit [(Ping timeout: 248 seconds)]
hellrazo1 has quit [(Ping timeout: 248 seconds)]
hellrazo1 has joined #nixos
<MasseR>
This is a longshot, but I have an old 32bit install with nix updates from ~½ year ago. Apparently 32 bit is no longer properly supported. Is it possible to use nix to change to 64bit system without a complete reinstall?
<hyper_ch>
MasseR: you sure you use 32bit and your hardware is 64bit compatible?
<MasseR>
should be yeah
<MasseR>
It's not *that* old
<hyper_ch>
MasseR: download 64bit is
<hyper_ch>
run it
<hyper_ch>
mount your root system in /mnt
<hyper_ch>
make a copy of your hardware configuration nix first
<hyper_ch>
and configuration.nix
<hyper_ch>
follow normal install instructions
<hyper_ch>
but you can already use your existing configratuion files
marusich has quit [(Quit: Leaving)]
takle has joined #nixos
<hyper_ch>
and just cut down on stuff that get installed at first because it might try to build stuff in the live environment
<hyper_ch>
(so I just do a minimal install then)
<hyper_ch>
and once that done, boot into that minimal install, restore your full previous configuration.nix and hardware nix and rebuild
theseriousadult has quit [(Ping timeout: 258 seconds)]
<hyper_ch>
that's how I'd upgrade from 32bit to 64bit
ma27 has joined #nixos
<MasseR>
Thanks. I'll try
<hyper_ch>
depending on how much stuff it builds it might be that the live system can't do everything.. that's why I said cutting down on things there
<hyper_ch>
and just make sure you have backup copy of configuration and hardware-configuration nix files
ma27 has quit [(Ping timeout: 240 seconds)]
<rgrinberg>
Hi, I installed gdb using nix but the symlink to the gdb binary wasn't made. Anyway I can debug this?
<sphalerite>
rgrinberg: how did you install it?
<rgrinberg>
the way I install everything: $ nix-env -i gdb
<sphalerite>
nix-env's awfulness strikes again
<sphalerite>
You want nix-env -f '<nixpkgs>' -iA gdb instead
<sphalerite>
It's much more predictable and much faster
<gfixler>
Back at it; Pill #3 says "Now that's interesting. When only nix-1.7 was installed, bin/ was a symlink to nix-1.7. Now it's a real directory, no symlink."
<gfixler>
I missed the moment where that happened.
<gfixler>
I thought this was still nix-1.7
<sphalerite>
gfixler: there's also the bit where it refers to 1.7 >.>
<rgrinberg>
sphalerite: what do I feel in for <nixpkgs>?
rosa has joined #nixos
<sphalerite>
rgrinberg: literally '<nixpkgs>'
<rgrinberg>
sphalerite: hmm. that doesn't work. it says it installed gdb but the symlink still isn't there
<rgrinberg>
Note that I'm using nix on OSX (if that makes a difference)
<rgrinberg>
It does say it installed gdb though: installing ‘gdb-8.0’
<sphalerite>
gfixler: the merging part happens when you install another thing besides nix, in 3.2 (installing nix-repl) and the beginning of 3.3 (installing man)
<sphalerite>
rgrinberg: where are you expecting the symlink to appear?
<gfixler>
sphalerite: that was the only thing I could possibly guess, but was still unsure
<rgrinberg>
~/.nix-profile/bin (that's where all other symlinks are located)
<sphalerite>
rgrinberg: what does `nix-build '<nixpkgs>' -A gdb ; ls result/bin` say?
<rosa>
how is nix's dynamic linker/loader configured
<sphalerite>
It probably is a macOS-specific issue then as you suspected, it's fine on my linux machine here. I've currently lent my mac to a friend so I can't test it
<sphalerite>
rosa: using rpaths in the executables and libraries
<rgrinberg>
sphalerite: ah well. back to homebrew for gdb. How am I'm waiting for the day when I can get rid of homebrew
<rosa>
ok
<sphalerite>
runpaths*
<sphalerite>
rgrinberg: ##nix-darwin may also be helpful
<rosa>
what is the minimum gcc version required
<rosa>
as my gcc 5.3.1 doesnt support -R nor -rpath
<sphalerite>
rosa: you shouldn't need to worry about that, since nixpkgs handles nix's dependencies
<rosa>
I know but i want to manually create one
<sphalerite>
And rpath has been around for a long time, you're probably just using it wrong. Since it's a linker option, it has this really nasty way of being called, something like -Wl,-rpath
<sphalerite>
How do I get the blank ExecStart= that's used to override an option in a service for systemd?
<rosa>
As i want to attempt getting libc to be loaded from a non system directory
<kyren_>
hey, I was wondering if there was a nixos-ey way of starting a virtualbox vm on startup
<rosa>
add it to the start up script?
<rosa>
every distro should have a start up script somewhere
<rosa>
Otherwise auto starting xorg would not be possible
<kyren_>
I mean, ultimately that comes from configuration.nix, but that's kind of what I'm asking
<kyren_>
it's a bit weird though since the vm would be stateful, other distros have a configuration file for virtualbox that allows this though, I'm just wondering what the best approach is
<kyren_>
I could always make some kind of custom systemd script or something, but I didn't know if there was a simpler / better way
datakurre has quit [(Remote host closed the connection)]
datakurre has joined #nixos
ambro718 has joined #nixos
MP2E has quit [(Remote host closed the connection)]
<sphalerite>
kyren_: yeah I think a systemd service is the way to go
<kyren_>
yeah, I can just make a user service I guess, thanks!
<NixOS_GitHub>
nixpkgs/master 37d5539 Peter Simons: Merge pull request #31192 from mulderr/master...
NixOS_GitHub has left #nixos []
simukis has joined #nixos
asuryawanshi has joined #nixos
<sphalerite>
My login shells don't seem to be sourcing my bashrc. Is this normal behaviour?
betaboon has quit [(Ping timeout: 240 seconds)]
<hyper_ch>
sweet, latest nixos unstable small fixed the filezilla popup annoyance :)
asuryawanshi has quit [(Remote host closed the connection)]
<hyper_ch>
sphalerite: no
<hyper_ch>
sphalerite: well, did you say to use bash as default shell?
<hyper_ch>
sphalerite: do you have in your .profile the entry to run .bashrc?
<sphalerite>
hyper_ch: I didn't say anything in particular, bash is the default shell
<sphalerite>
No, but I shouldn't need that AFAIU
<hyper_ch>
I thought upon login etc... .profile is run
<hyper_ch>
and .profile runs then the .bashrc
<sphalerite>
man bash says that bashrc is "The individual per-interactive-shell startup file"
<sphalerite>
So it should be loaded by every interactive bash AFAIU
<hyper_ch>
no idea
<sphalerite>
And no, .profile may be read by non-bash shells so it really shouldn't source bashrc
<hyper_ch>
but check your .profile just to be sure :)
<sphalerite>
This is only for login shells as well, running bash from an existing shell works just fine
<ArdaXi[m]>
Doesn't bash source profile for login shells and bashrc for interactive shells?
<hyper_ch>
it's all computsy automagic stuff :)
iyzsong has joined #nixos
<ArdaXi[m]>
According to the man-page, they're exclusive, so a login shell not sourcing .bashrc is expected behaviour
<kyren_>
sorry to bother again, I have one more annoying question about virtualbox actaully, there seems to be some stuff in the package about "enableExtensionPack", but I can't find it in "man configuration.nix" and I'm not sure how to use it
<sphalerite>
ArdaXi: right... Guess I'm symlinking .bash_profile to .bashrc
<hyper_ch>
hmm, damn man pages... they contain just too much real facts...
<sphalerite>
Why is there even such a distinction
<ArdaXi[m]>
Linus: You don't really want to do that, especially if you have non-idempotent env vars in there
<ArdaXi[m]>
Because if you have `export PATH="/some/dir:$PATH"` your path will grow with every shell you start
<rosa>
It didnt work
<sphalerite>
ArdaXi: nah, only aliases
<ArdaXi[m]>
I would recommend sourcing your `.bashrc` from `.bash_profile` instead
<ArdaXi[m]>
Just to keep the distinction for moments it is meaningful
<sphalerite>
kyren_: it's an option for the package iirc
<rosa>
-Wl,-rpath./lib.so results in "/usr/bin/ld: unrecognized option: -rpath./lib.so
<sphalerite>
kyren_: so you'll want to add an overlay that sets it to true for the vietualbox package
<sphalerite>
rosa: you're missing a comma there. What are you trying to achieve anyway?
<hyper_ch>
good morning, vcunat
<rosa>
Where
<vcunat>
hyper_ch: good morning :-)
<hyper_ch>
vcunat: in the filezilla popup issue, why does your "closing" appear sooner than my reply that it works again. despite you having it closed later? its somewhat weird
<hyper_ch>
ok, you replied already
<vcunat>
it is weird
<vcunat>
a GitHub bug probably
<hyper_ch>
file a bug against github? :)
<vcunat>
I don't know of any bugtracker
<vcunat>
I had asked support for some fixes a couple times
<hyper_ch>
ok :)
<vcunat>
but it's probably not worth for such a tine one-time issue
<hyper_ch>
also weird, before my comments was indicated "an hour ago" now it's back to "44 minutes"
<hyper_ch>
and now 43...
<hyper_ch>
I guess github's timeline is wibbly wobbly timey-wimey stuff
<yegortimoshenko>
can /nix/store contain fifo pipes and/or devices?
<sphalerite>
kyren_: good to hear! Fwiw packageOverrides is the old, less awesome version of overlays
<sphalerite>
yegortimoshenko: no
thc202 has joined #nixos
<vcunat>
such things would be impure (and e.g. not transferrable to another machine)
<yegortimoshenko>
sphalerite: what about hard links?
<sphalerite>
why does nix-env from nixUnstable always give me "unexpected end-of-file" if I try to install something? I use `nix-shell -p nix` to revert to 1.11 temporarily as a workaround, but it's not nice
<sphalerite>
yegortimoshenko: hard links are allowed but managed by nix
scribbler has quit [(Remote host closed the connection)]
<sphalerite>
also not sure how they behave if shared with file outside the nix store
<vcunat>
well, the information about hardlinking isn't encoded/preserved
<sphalerite>
Yeah
<sphalerite>
yegortimoshenko: what are you trying to achieve?
scribbler has joined #nixos
<kyren_>
I didn't see how to use an overlay in the system-level configuration.nix, is that a thing that exists / is easy / makes sense as a concept?
<vcunat>
nix has an auto-hardlinking feature
<vcunat>
(optional, off by default)
<yegortimoshenko>
oh, i'm writing an utility that produces a statically linked binary from path to nix store executable...
<sphalerite>
gfixler: even better, nix 1.12 has `nix why-depends`
<yegortimoshenko>
it essentially builds a chroot environment and unpacks a tar archive from memory
<sphalerite>
gfixler: you may also like nix-store -q --tree
<sphalerite>
and --graph!
<sphalerite>
yegortimoshenko: not sure what any of that has to do with fifos, device nodes or hard links?
<Mateon1>
Hi, I seem to be having an issue with the unstable channel. It seems there is a syntax error in a nix expression: unexpected $undefined, expecting IND_STR or DOLLAR_CURLY or IND_STRING_CLOSE, at /nix/store/vrlhx68hkb1bqmf14jhip9yly7l92023-nixos-18.03pre119292.cfafd6f5a8/nixos/pkgs/os-specific/linux/bcc/default.nix:29:27
<gfixler>
sphalerite: I don't even fully follow that, but it sounds exciting
<Mateon1>
Is that an issue on my side (like outdated nix), or did something break on unstable?
<gfixler>
sphalerite: yeah, graph and tree are amazing
<yegortimoshenko>
sphalerite: i unpack a tar archive (created via `tar cf closure.tar $(nix-store --query --requisites <path>)`) and i'd like to know what kinds of files it can contain
<hyper_ch>
FRidh[m]: already in full support mode this early on a sunday morning?
scribbler has quit [(Ping timeout: 248 seconds)]
<sphalerite>
gfixler: nix why-depends walks through a transitive dependency path showing you which file in each path references the next
<yegortimoshenko>
this reuses much of chrootenv rewrite code, and should make it possible to effortlessly build "static binaries" for other linux distros
<sphalerite>
yegortimoshenko: aah right so it's more about the assumptions you can make than trying to put nasty things in the store :) yeah it's fine. I don't see why you're worried about hardlinks though?
<sphalerite>
yegortimoshenko: I think we already have something like that, hang on
<gfixler>
sphalerite: don't think I have why-depends working here
<sphalerite>
gfixler: it's in 1.12, which is available in nixpkgs as nixUnstable
<sphalerite>
although we could probably factor it out to work in nix-on-other-OS systems
<ArdaXi[m]>
Yeah, I see, no idea why that derivation is defined in the module, rather than as a package
<sphalerite>
to convince people to switch to nixos? :p
<gfixler>
from my /etc/bash.bashrc: # if the command-not-found package is installed, use it
<ArdaXi[m]>
Though, nix-index provides something similar
<Mateon1>
You can probably just copy that perl script somewhere on your ubuntu system, and call into it instead
<sphalerite>
true, and I think nix-index is more reliable?
<ArdaXi[m]>
I'd use that instead, yeah
hotfuzz_ has joined #nixos
<sphalerite>
it's certainly more versatile
<sphalerite>
just requires an expensive cache build
<ArdaXi[m]>
To be fair, the NixOS one requires that too, just not one on your side
<ArdaXi[m]>
And one that used to be very prone to breakage for that reason
hotfuzz has quit [(Ping timeout: 248 seconds)]
<sphalerite>
right
<sphalerite>
I love nix 1.12
<sphalerite>
sshfs + nix copy --all = boom instant binary cache so I don't need to worry about removing expensively built stuff in a GC on my chromebook
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vFWtx
<NixOS_GitHub>
nixpkgs/master 07eeeb3 Frederik Rietdijk: Python: move expressions in python-modules to their own folders
NixOS_GitHub has left #nixos []
<MichaelRaskin>
You mean that nix-serve is needed less now?
<MichaelRaskin>
Ah, it also automates enumeration
<sphalerite>
That and it's less of a fuss to set up a binary cache in different places
<sphalerite>
I think
erictapen has joined #nixos
<sphalerite>
tbh I've not really used nix-push so I may be overestimating how hard it is
<sphalerite>
well… it doens't have a manpage by the looks of it, that's not a good sign
scribbler has joined #nixos
<sphalerite>
nope, it's just 1.12's nix-shell not pulling in manpages… I think
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vFWqc
<NixOS_GitHub>
nixpkgs/master 6254141 Frederik Rietdijk: Python pkgs: remove old/unused patches
NixOS_GitHub has left #nixos []
disasm has quit [(Remote host closed the connection)]
ambro718 has quit [(Ping timeout: 248 seconds)]
<joehh_>
sphalerite: certainly a man page on nix 1.11
asuryawanshi has joined #nixos
<sphalerite>
joehh_: yeah
asuryawanshi has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vFWqy
<NixOS_GitHub>
nixpkgs/master 14da187 Frederik Rietdijk: Python update-python-libraries: fetch and update asynchronously
NixOS_GitHub has left #nixos []
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Itkovian has joined #nixos
Wizek_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to staging: https://git.io/vFWmG
<NixOS_GitHub>
nixpkgs/staging 5f3b84e Nikolay Amiantov: cc-wrapper: disable POSIX compatibility
NixOS_GitHub has left #nixos []
erictapen has quit [(Ping timeout: 240 seconds)]
marzzzello has joined #nixos
leat has quit [(Ping timeout: 255 seconds)]
ixxie has joined #nixos
proteus-guy has quit [(Remote host closed the connection)]
c0bw3b has joined #nixos
raxius has joined #nixos
<Mateon1>
A while ago I asked about breakage in the unstable channel, it seems that there is a nix syntax error there. Is that an issue on my side (something outdated), or did unstable break?
<Mateon1>
The issue is in pkgs/os-specific/linux/bcc/default.nix on line 29
<sphalerite>
It's weird, the unstable channel shouldn't advance if it's broken
<sphalerite>
I'll take a look
<Mateon1>
The exact error is: error: syntax error, unexpected $undefined, expecting IND_STR or DOLLAR_CURLY or IND_STRING_CLOSE, at /nix/store/vrlhx68hkb1bqmf14jhip9yly7l92023-nixos-18.03pre119292.cfafd6f5a8/nixos/pkgs/os-specific/linux/bcc/default.nix:29:27
<MichaelRaskin>
I think there was a weird combo when _some_ 1.11.x versions of Nix worked, but not all of them.
<MichaelRaskin>
It has been fixed since in the master branch.
<Mateon1>
Ah, so I just need to wait for the fix to be pushed to unstable
<sphalerite>
evaluates fine for me, but I'm running 1.12
<Mateon1>
I'm on 1.11.7
<sphalerite>
uh... why?
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<sphalerite>
that has some security bugs iirc, you should really update
<MichaelRaskin>
Is 1.12 _released_?
<sphalerite>
MichaelRaskin: no
damke has joined #nixos
<sphalerite>
I mean update to nix 1.11.15
<MichaelRaskin>
Ah, but 1.11.7 is quite old, yes
<Mateon1>
Hm... How can I update? I'm using nixos, and `nix-env -q '.*nix.*'` only shows nix-repl
<MichaelRaskin>
I would call nix-unstable 1.12-pre to avoid confusion
<sphalerite>
Mateon1: which nixos version are you on?
ixxie has quit [(Ping timeout: 240 seconds)]
<sphalerite>
Looks almost like you're still on 16.09 or something D:
<Mateon1>
I'm on version 17.03
damke_ has quit [(Ping timeout: 240 seconds)]
<sphalerite>
You need to upgrade to 17.09, .03 is no longer supported
rosa has quit [(Quit: rosa)]
<sphalerite>
but even on 17.03 I think you should have a newer version than 1.11.7
<sphalerite>
weird
<Mateon1>
Ah, I have that set in system.stateVersion, will adjusting that update my system?
<sphalerite>
no, definitely not!
<sphalerite>
you shouldn't need to touch stateVersion
<FreakingOut1987>
anyone have a good estimate on how much space /nix would need on a separate partition?
ambro718 has joined #nixos
Itkovian has joined #nixos
erictapen has joined #nixos
nh2 has quit [(Ping timeout: 264 seconds)]
<Mateon1>
FreakingOut1987: On my system it takes 70 gigabytes, but I never ran a garbage collection (Cause I'm unsure how to prevent something I built but didn't install from getting deleted).
<Mateon1>
Whoops, sorry, I read the wrong number, it's 110 gigabytes
<FreakingOut1987>
holy crap
<manveru>
FreakingOut1987: depends heavily on what you install...
<FreakingOut1987>
manveru, you think 10GiB would be enough?
<FreakingOut1987>
if I actively curate lol
<manveru>
i guess... you'd have to be very conservative
<MichaelRaskin>
Well, it is a good idea to have twice as much space as an actual install needs. Because a glibc update makes you update everything, and in Nix you first get the new stuff then remove the old stuff.
<MichaelRaskin>
(There are ways around that, but it is complicated)
tgunb has joined #nixos
<manveru>
if all you need is like i3, a term, and a browser, it should be ok
<FreakingOut1987>
hmm okay
hellrazo1 has quit [(Ping timeout: 248 seconds)]
ison111 has quit [(Ping timeout: 240 seconds)]
hellrazo1 has joined #nixos
kyren_ has quit [(Quit: Page closed)]
<hyper_ch>
vcunat: what do you mean by what's my dns setup?
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
ma27 has quit [(Ping timeout: 240 seconds)]
Itkovian has joined #nixos
asuryawanshi has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
asuryawanshi has quit [(Ping timeout: 240 seconds)]
FRidh has joined #nixos
fpletz has quit [(Quit: ^D)]
Anton-Latukha has joined #nixos
<Pneumaticat>
oh manveru: were you the person who asked about how to teach cups how to print using ghostscript and foo2hbpl1 like a year ago?
<Pneumaticat>
did you ever figure that out?
<manveru>
heh...
<manveru>
not really
rosa has joined #nixos
<Pneumaticat>
alas :B
<Pneumaticat>
I've got a dell C1760nw, so it seems I'm in the same situation
<manveru>
yeah
<manveru>
i got it kinda working, just not with cups
<Pneumaticat>
ah
<Pneumaticat>
your command was very helpful though, so thank you :)
<Pneumaticat>
it's the only way I could get it to work too
<manveru>
:)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh force-pushed python-unstable from 80d2a86 to eec55d4: https://git.io/v5aIf
<NixOS_GitHub>
nixpkgs/python-unstable eec55d4 Frederik Rietdijk: python.pkgs: maintenance updates
NixOS_GitHub has left #nixos []
<manveru>
it sometimes refuses to print some docs... so i have to use my macbook for those
<Pneumaticat>
oh
<manveru>
still not sure what causes it
<Pneumaticat>
weird omo
<Pneumaticat>
I've only tested with one pdf so far so shrug
<manveru>
aye
<manveru>
i don't print much these days, so i don't mind much
<Pneumaticat>
yeah me too
<manveru>
but it's definitely the last time i'll get a printer from dell
<Pneumaticat>
thankfully I have another black and white printer that I use far more frequently
<Pneumaticat>
yeah omg
ma27 has joined #nixos
dza_ has joined #nixos
mithsv has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to python-unstable: https://git.io/vFWGW
<NixOS_GitHub>
nixpkgs/python-unstable d2b008a Frederik Rietdijk: python.pkgs.six: 1.10.0 -> 1.11.0
NixOS_GitHub has left #nixos []
<dza_>
Hi. I compiled simple (https://pastebin.com/wVRKybYv) program with nixpkgs.gcc (using different verions 49,5,7). gcc -g3 -O0 -ggdb src/main.cc -o main I ran program under gdb and did several step commands. Step command jumps through lines as if it compiled without debugging info. Here gdb log https://pastebin.com/Jgv2ycUQ If I compile this program with default ubuntu gcc and debug it with nixpkgs.gcc everything is good.
<dza_>
How should I compile program with debug info with nixpkgs.gcc ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vFWG7
<NixOS_GitHub>
nixpkgs/master 5fde24c Frederik Rietdijk: python.pkgs.urwid: fix build
NixOS_GitHub has left #nixos []
nh2 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] svanderburg pushed 2 new commits to master: https://git.io/vFWGN
<NixOS_GitHub>
nixpkgs/master 5633431 Maximilian Bosch: statsd: repackage with node2nix
<NixOS_GitHub>
nixpkgs/master 51536b2 Sander van der Burg: Merge pull request #31235 from Ma27/statsd-with-node2nix...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh force-pushed python-unstable from d2b008a to 29e2462: https://git.io/v5aIf
<NixOS_GitHub>
nixpkgs/python-unstable b1d00a7 Frederik Rietdijk: python.pkgs: maintenance updates
<NixOS_GitHub>
nixpkgs/python-unstable 29e2462 Frederik Rietdijk: python.pkgs.six: 1.10.0 -> 1.11.0
NixOS_GitHub has left #nixos []
joehh_ has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] edolstra pushed 1 new commit to master: https://git.io/vFWGj
rtjure has quit [(Read error: Connection reset by peer)]
kahiru has quit [(Ping timeout: 248 seconds)]
<gfixler>
I see nix-env --upgrade, and that it upgrades everything it can, and I think "But that could break dependencies everywhere!"
<gfixler>
then I realize
<CrazedProgrammer>
the power of nix :)
fpletz has quit [(Changing host)]
fpletz has joined #nixos
<gfixler>
generations are a list, right, not a tree?
<gfixler>
if I roll back from 5 to 4, then create a new generation, that's a new 5 that overwrites the old 5?
rtjure has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] svanderburg pushed 1 new commit to master: https://git.io/vFWZ2
<NixOS_GitHub>
nixpkgs/master cf610f8 Sander van der Burg: fast-cli: pinpoint to a 1.x version, since 2.x requires nodejs 8 or greater
NixOS_GitHub has left #nixos []
<CrazedProgrammer>
gfixler: should create generation 6, at least that's how it works for the nixos configuration
<gfixler>
ah, so new tacks onto the end, even if you're not at it
<CrazedProgrammer>
yep
<gfixler>
if 5 is crap, can I delete it so I never accidentally roll back to it?
damke_ has joined #nixos
damke has quit [(Ping timeout: 240 seconds)]
asuryawanshi has joined #nixos
asuryawanshi has quit [(Remote host closed the connection)]
nh2 has quit [(Ping timeout: 240 seconds)]
asuryawanshi has joined #nixos
<c0bw3b>
gfixler yes you can with nix-env --delete-generations <gen_number>
<c0bw3b>
so nix-env --list-generations first
<gfixler>
c0bw3b: cool, thanks
<c0bw3b>
and you need to do it in root or sudo if you want to list the system global gens and not your user env gens
<gfixler>
didn't know there were system global gens
<c0bw3b>
well these are the ones listed in Grub when you boot
p4cman has quit [(Quit: Connection closed for inactivity)]
<gfixler>
at what level are drivers, e.g. video, printer, and wifi?
<Orbstheorem>
Hi, I added "displayManager.session.script = "~/.xinitrc" to my configuration.nix (full https://paste.gnugen.ch/raw/Y03N) but when I rebuild I get the error message "cannot merge definitions of services.xserver.displayManager.session given in /nix/..... and /nix.... and /etc.nixos.configuration.nix
ma27 has quit [(Ping timeout: 240 seconds)]
<Orbstheorem>
Is there a better way to have my xinirc called?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vFWZF
<NixOS_GitHub>
nixpkgs/master b50693d Tuomas Tynkkynen: kernel, initrd: Remove legacy ubootChooser
NixOS_GitHub has left #nixos []
<c0bw3b>
gfixler : system most likely
<c0bw3b>
everything from /etc/nixos/configurations.nix (options services packages) will be system-wide
ma27 has joined #nixos
<Mateon1>
How can I `lock` a built directory in the nix store, so garbage collection doesn't delete it?
leat has quit [(Ping timeout: 248 seconds)]
<c0bw3b>
Mateon1 : you create a symlink to it somewhere outside of the nix store
<LnL>
nix-build -o foo will create an indirect root for you
<Mateon1>
Is that enough? I have symlinks to those directories in my /home
<LnL>
or you can create a symlink in /nix/var/nix/gcroots/...
<Mateon1>
Ah, I'll try that, just to be sure
ma27 has quit [(Ping timeout: 246 seconds)]
ma27 has joined #nixos
<Mateon1>
Okay, great, that worked, and I freed 26400 MiB on the garbage collection
<c0bw3b>
26GB ?!
<MichaelRaskin>
Not that much.
<c0bw3b>
no yheah one can always do more but i guess i'm a nix-collect-garbage maniac then because I never reach that point :p
marzzzello has quit [(Remote host closed the connection)]
<MichaelRaskin>
A single generation can take that much for me
Itkovian has joined #nixos
FreakingOut1987 has quit [(Remote host closed the connection)]
ma27 has quit [(Ping timeout: 248 seconds)]
ma27 has joined #nixos
<Mateon1>
Deleting all old generations freed up more space, another 32000 MiB
<sphalerite>
Orbstheorem: if you put a script called .xsessionrc in your home it completely replaces any sessions selected in the display manager. Not sure if that fits your use case but it could be helpful?
rosa has quit [(Quit: rosa)]
rosa has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 2 new commits to master: https://git.io/vFWCT
<NixOS_GitHub>
nixpkgs/master 91de995 Franz Pletz: browserpass: 1.0.6 -> 2.0.7
<NixOS_GitHub>
nixpkgs/master b032b35 Franz Pletz: linux_mptcp: 0.92.1 -> 0.93
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 3 new commits to release-17.09: https://git.io/vFWCn
<NixOS_GitHub>
nixpkgs/release-17.09 f826b44 Franz Pletz: browserpass: 1.0.6 -> 2.0.7...
<cocreature>
Hey, is there a way to apply to a custom pkgs to a machine in a nixos test? E.g. I have http://nixpaste.lbr.uno/HHbgrEc5?nix but the machine doesn’t use by patched pkgs since make-test seems to fetch its own afaict
nh2 has quit [(Read error: Connection reset by peer)]
<Twey>
Is there a function in nixpkgs to convert a Nix list into a bash array to pass through the environment?
<hyper_ch>
2 spaces indents are just horrbile IMHO :)
<gchristensen>
nixpkgs dictates 2-space indent for nix code
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Profpatsch pushed 1 new commit to master: https://git.io/vFW44
<NixOS_GitHub>
nixpkgs/master 14f232d Piotr Bogdan: ultrastardx: fix build
NixOS_GitHub has left #nixos []
<Twey>
gchristensen: Yeah, I don't use this style for things in nixpkgs (though I have plenty of gripes with the nixpkgs style)
<Twey>
hyper_ch: If you do it that way then 2-space vs 4-space makes virtually no difference anyway
<gchristensen>
cool :)
<Twey>
hyper_ch: The whole point is that the 2-space looks much nicer in Pico style (and I happen to prefer Pico style because I dislike having whole lines dedicated to terminators of things)
<hyper_ch>
Twey: optically it makes a huge difference
<hyper_ch>
I have no idea what pico style is
<LnL>
is there a way to use fetchpatch for a subproject or do I need to commit the patches then?
<hyper_ch>
also, to my knowledge, there's no world shortage on spaces-for-indents :)
<Twey>
hyper_ch: I used to have opinions on how many spaces was the right number of spaces, until I shifted between a bunch of codebases and realized that really it's the shape of it that matters. So long as you have more than one the shape is perfectly visible (though once you go over about six you end up having to insert a heck of a lot more linebreaks)
<hyper_ch>
:)
<c0bw3b>
Twey: what is Pico style? i have no idea and you got me curious :)
<Twey>
I don't like wasting vertical or horizontal space. I'm a big fan of newlines for separating things, but I feel that gets diluted a lot if you have the Java syndrome of spending half your vertical space on lines that are just ‘}’
<Twey>
IMO single delimiters aren't nearly important enough to warrant having their own line
pie_ has quit [(Remote host closed the connection)]
pie_ has joined #nixos
<Twey>
Though I've been generating a lot of Nix lately and using a super-sparse vertical form with linebreaks for just about everything, because it's easier to code :þ
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vFW4x
<NixOS_GitHub>
nixpkgs/master 0d9f2f0 Tuomas Tynkkynen: platforms.nix: Clean up more 'uboot' legacy...
NixOS_GitHub has left #nixos []
zarel has quit [(Remote host closed the connection)]
jcpetruzza has joined #nixos
p4cman has joined #nixos
stanibanani has quit [(Ping timeout: 240 seconds)]
tgunb has joined #nixos
<jcpetruzza>
hey, i'm installing nixos 17.09 on an old macbook. I think I need efifb loaded while booting (I'm not seeing the luks decrypt prompt otherwise, just a blank screen), but the module seems to be missing
asuryawa_ has joined #nixos
<jcpetruzza>
I added "efifb" to `boot.initrd.kernelModules` but the logs say the module was not found, and I can't find it either when searching the nix store
<jcpetruzza>
any ideas?
Harekiet has left #nixos []
asuryawanshi has quit [(Ping timeout: 255 seconds)]
<hyper_ch>
no idea what efifb is
<Dezgeg>
it's built-in I think
<jcpetruzza>
efifb is so that you can use the framebuffer of efi for output
arianvp2 has joined #nixos
<jcpetruzza>
if it is built-in, it is not running during boot. do you know how I can check if it is there?
kp__ has joined #nixos
joncfoo has quit [(Ping timeout: 246 seconds)]
iyzsong has quit [(Ping timeout: 260 seconds)]
<Dezgeg>
well it shows up as CONFIG_FB_EFI=y in /proc/config.gz, dunno why it isn't working
<hyper_ch>
I avoid efi as much as I can
joncfoo has joined #nixos
<gchristensen>
hyper_ch: then you may choose to not participate in this conversation with a user who must use efi
<MichaelRaskin>
I think NixOS has CONFIG_FB_EFI=y
<MichaelRaskin>
So EFI framebuffer support should be built in
<jcpetruzza>
I'd expect to see efifb related output on journalctl -b but there is none. I was using ubuntu on that machine before, and can see the efifb output on dmesg there.
pierrec1 has joined #nixos
<MichaelRaskin>
Hm. Did you try asking GRUB to add video=efifb:macbook to the kernel command line?
<pierrec1>
Hi guys
pie_ has quit [(Read error: Connection reset by peer)]
<pierrec1>
Just installed nixos and I'm a bit unsure about a couple of things...
<jcpetruzza>
Yeah, I tried `boot.kernelParams = [ "video=efifb:macbook,SVIDEO-1:d" ]` earlier
pie_ has joined #nixos
<pierrec1>
Like I would like to use firefox 57 or 58 (devedition I guess)
<pierrec1>
but I'm not sure what incantation I need in my configuration.nix to use it?
<jcpetruzza>
I didn't see efifb output then either
<jcpetruzza>
@MichaelRasking Checked and I also have CONFIG_FB_EFI=y, btw
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 3 new commits to master: https://git.io/vFW09
<NixOS_GitHub>
nixpkgs/master 611829b Franz Pletz: imagemagick: 6.9.9-20 -> 6.9.9-21
<NixOS_GitHub>
nixpkgs/master 4f8c533 Franz Pletz: imagemagick7: 7.0.7-8 -> 7.0.7-9
<NixOS_GitHub>
nixpkgs/master 7113039 Franz Pletz: wireguard module: add device name environment var...
NixOS_GitHub has left #nixos []
<averell>
firefox-bin is at 56.0.2, firefox-beta-bin and firefox-devedition-bin are available, and versions differ depending on which channel. you can just add it like any other package
<lars_>
how can i get nm-applet working in plasma?
<lars_>
i have networkmanager and networkmanagerapplet in configuration.nic
<lars_>
*nix
<MichaelRaskin>
jcpetruzza: I am not sure if vga= option could help
<adisbladis>
lars_: plasma-nm is included in plasma
<pierrec1>
@averell: thanks for the tip. I'll try firefox-devedition-bin
<lars_>
adisbladis: bash: plasma-nm: command not found
<MichaelRaskin>
pierrec1: and then there is also Mozilla's Nix overlay with fresh Firefox versions
<symphorien>
lars_: I don't know about plasma, but networkmanagerapplet provides the command nm-applet (which is gtk-based)
<adisbladis>
lars_: Its not a separate command. Provided you have the networkmanager service enabled it should pop up in the tray automatically.
<lars_>
nm-applet says about wifi-networks that "device not ready"
<pierrec1>
@MichaelRaskin: I saw that repo on github but I'm not sure how to use it yet... Are overlays explained in the documentation somewhere?
<adisbladis>
lars_: systemctl status network-manager
<manveru>
is there an easy way to make a nixos-manual given a specific nixpkgs without using the nixos module?
<vcunat>
hyper_ch: you answered all of my question, but it didn't help me to get closer to the problem unfortunately.
<pierrec1>
thanks
<hyper_ch>
vcunat: but why not set it to retry?
<lars_>
adisbladis: Unit network-manager.service could not be found.
<adisbladis>
lars_: Did you enable the service or did you just add the package to systemPackages?
<vcunat>
hyper_ch: it's more of a decision for wireguard upstream anyway
<lars_>
i just added it to systemPackages
<hyper_ch>
vcunat: so I should file bug there?
<Orbstheorem>
sphalerite: > Orbstheorem: if you put a script called .xsessionrc in your home it completely replaces any sessions selected in the display manager. Not sure if that fits your use case but it could be helpful?
<hyper_ch>
it's a dns issue somewhere... if I use the lan IP it works
<lars_>
im trying to get the wifi working from the default generated config
<Orbstheorem>
Usefull, thanks!
<vcunat>
but you'll probably get the same answer from glibc's cache
<vcunat>
(for some time)
<adisbladis>
lars_: Ahh, to actually run the service you should add "networking.networkmanager.enable = true;" to your configuration.nix
<vcunat>
negative answers have their time-to-live as well
pierrec1 has quit [(Remote host closed the connection)]
<sphalerite>
manveru: nix-build nixpkgs/nixos -A config.system.build.manual
<vcunat>
I personally don't think it's a mistake not to retry
<adisbladis>
lars_: Exactly. If you enable the service it gets installed anyway.
<vcunat>
hyper_ch: I would be interested why glibc returns the negative answer at that point (presumably that's what happens), but it seems difficult to find out
<sphalerite>
vcunat: that multiple negation though!
<vcunat>
clearly I'm not a native BBC-English speaker
<vcunat>
:-)
<sphalerite>
Failing to avoid multiple negation can make not being misunderstood difficult
<sphalerite>
:D
<adisbladis>
sphalerite: And that would be double plus ungood!
<hyper_ch>
using double negations in daily language is a normal thing and corretly understood as single negation
<hyper_ch>
"nobody didn't say anything"
<gchristensen>
usually only just spoken I think?
<Dezgeg>
yeah, right
<sphalerite>
hyper_ch: not necessarily, it depends on how it's used :p
<Twey>
hyper_ch: That's not really idiomatic… ‘nobody said nothing’ is the usual colloquial double negation in English
<Twey>
But yeah, dialect- and situation-dependent
<hyper_ch>
Twey: I don't know english :)
<Twey>
If you're speaking to a logician, they probably didn't mean it that way :þ
<sphalerite>
For example, "it wouldn't be unwise" is double negation that works out positively
<hyper_ch>
it's only my 4th language, so I have shortcomings there
<Twey>
hyper_ch: Sure, no criticism, just correction ;)
<sphalerite>
language is fun
<lars_>
have you heard of lojban?
<sphalerite>
Yes, it's scary
<Twey>
Lojban isn't scary, it's warm and friendly
ylwghst has quit [(Ping timeout: 260 seconds)]
<vcunat>
Lojban is nicely designed
<vcunat>
reminded me of Prolog
<gchristensen>
I'm not sure lojban can be described as friendly or warm
<vcunat>
now on NixCon we had a suggestion to start writing nixos docs in Lojban :-)
<avn>
fun idea ;)
<gchristensen>
that will be a big help with the docbook debates, an even harder tool to get started with :)
<MichaelRaskin>
I wonder if there is a grammar checker for Lojban or maybe Ithkuil
doublehp has joined #nixos
<vcunat>
harder? Lojban is the easiest human language I've seen
<doublehp>
when running apps with /bin/su -c, apart from the $PATH and stdin, what else can differ from an interactive shell ?
<doublehp>
I have a bug in a script that works fine from user console, but not from su; i wonder about env variables
ylwghst has joined #nixos
<doublehp>
/bin/su -c '/home/dhp/.sh/fetch_youtube.sh 2>&1' fails when run by root, but script works from user shell . it includes a call to /home/dhp/.nix-profile/bin/youtube-dl . so, maybe NIX env is not set properly under su
<sphalerite>
doublehp: How does it fail? And why would you run youtube-dl as root, that seems like a bad idea
<ldlework>
vcunat xu do jimpe
<ldlework>
mi se bangu la lojban
<ldlework>
mi finti la karda :)
<lars_>
i've found saying some simple things in lojban very hard
<ldlework>
if you can call a function you know lojban
<vcunat>
:-)
<lars_>
yea but you have to know a specific function to every situation
<doublehp>
sphalerite: youtube-dl fails internally, on some links; work for 95% links, and fails sometimes; always the same links; so it has something to do with an internal call of youtube-dl
<ldlework>
you mean like every language?
<doublehp>
but those links always work fine from user console
<lars_>
and the positional arguments without keywords is hard to remember
<ldlework>
without keywords? lol
<lars_>
no, i mean that things such as adverbs
<ldlework>
fa fe fi fo fu
<doublehp>
i have checked, it's not related to $PATH, so, the problem may be an alias, or an other env var
<ldlework>
whats hard about that
<ldlework>
xunre bolci
<ldlework>
adverb
radvendii has joined #nixos
<lars_>
the fafefifofu are only syntactic, not semantic
<ldlework>
red ball
<sphalerite>
doublehp: an actual error message would be helpful. But I also really don't think you should be running youtube-dl as root, why are you trying to?
<ldlework>
a keyword system would multiply required vocab up to 5x
<ldlework>
i dont get that argument at all
<lars_>
many languages have keywords that denote the semantic meaning in a sentence
<doublehp>
root runs su -c user !!!
<ldlework>
not predicate specific argument keywords
<doublehp>
sphalerite: the actual error message is not helpfull at all. Really
<lars_>
i'm talking about keywords but really mean prepositions and cases
ryantrinkle has quit [(Ping timeout: 240 seconds)]
<ldlework>
nothing hard about prepositions either
<radvendii>
idris is giving me weird errors about ld missing gmp. This seems like a nix problem. I've installed idris by putting haskellPackages.idris in my systemPackages, and I tried putting gmp there too but it didn't fix the issue
<lars_>
take for example the engish preposition "to"
<radvendii>
is there something else I need to do to install idris properly?
<lars_>
usually, in sentences with multitransitive verbs, to marks the things are going to
<ldlework>
right you can do that with lojban as well
<doublehp>
sphalerite: for 90% other links, it works fine; but I have about 10 links throu 300 whic failed with same issue
<lars_>
how?
<ldlework>
maybe you should read la karda
<sphalerite>
doublehp: what does this have to do with nix? This youtube-dl isn't installed through nix
<ldlework>
if youve had trouble
<sphalerite>
(the error message was helpful!)
<doublehp>
$ which youtube-dl => /home/dhp/.nix-profile/bin/youtube-dl
<ldlework>
i authored it, to make it as easy as possible to learn. it is very popular and covers prepositions
<ldlework>
if you think there is something lojban cant do, its probably you just havent learned it yet
<radvendii>
ooh, can y'all give me the elevator pitch for lojban? what does it have on volapuk/esperanto/ido?
thblt has joined #nixos
<doublehp>
sphalerite: ls -l /home/dhp/.nix-profile/bin/youtube-dl => /home/dhp/.nix-profile/bin/youtube-dl -> /nix/store/ymmck83fk6f4cvzsmip9fgblzafykxcq-youtube-dl-2017.10.20/bin/youtube-dl
<sphalerite>
doublehp: yeah but it's involving some code that lives in /usr/lib64 which isn't nix-managed. Try `pip uninstall youtube-dl`as root
<ldlework>
you can use fi'o to use any predicate place as a preposition
<sphalerite>
radvendii: no ambiguity
<ldlework>
and there are tons of shortform BAI preps
<doublehp>
sphalerite: you are right; under su, it's not using the NIX one; how do I make su use NIX env ?
<ldlework>
radvendlii if i wernt mobile i would
<radvendii>
sphalerite: there is no way to make a sentence that could have resulted from two different syntax trees?
<lars_>
never knew about the prepositions
<doublehp>
/bin/su -c 'which youtube-dl' dhp => /usr/bin/youtube-dl # this is a start
<sphalerite>
doublehp: adding -l to the su command might help
<sphalerite>
radvendii: I believe so. I'm not an expert
<doublehp>
nope
<doublehp>
ah ... I had set path the wrong way
<lars_>
and how would you say you are doing something _fast_ or _sloppily_ and such?
<radvendii>
sphalerite: interesting. I'll look into it
jensens has quit [(Ping timeout: 255 seconds)]
<doublehp>
sphalerite: you were right in the fact, under su, I am not using su; and when using "/bin/su -c '/home/dhp/.nix-profile/bin/youtube-dl ..." it works fine. So ...
ylwghst has quit [(Ping timeout: 240 seconds)]
<ldlework>
radvendii search la karda
<lars_>
jbovlaste had 500 error so no idea what radvendii means
<avn>
even you can build nixos from ubuntu, and make it bootable (although is not so well supported and documented)
<lfish>
Hello. I'm following the nix pills and I'm having trouble with building graphviz in the 12th one. I'm on nixos. The problem is with ./configure when calling nix-build graphviz.nix (I'm using all the scripts from the series so far). I have no trouble with configure from a nix-shell. Any ideas?
<lars_>
and with what can i see what the device is?
<sphalerite>
lsblk/blkid
<sphalerite>
How do you usually identify it? :)
<lars_>
with gparted when i made it
<lars_>
and previously i have used ubuntu and its installer set that automatically
Ivanych has quit [(Ping timeout: 248 seconds)]
<marantz>
anyone here ever get ofxclient working on nixos? used nix-env to install it, but it seems to depend on python-keyring which depends on python-secretstorage but using nix-env to install the individually doesn't setup the linkage they need to find eachother? I'm pretty new to nixos so maybe I don't know how to install python packages correctly
<clever>
lars_: if you had mounted home to /mnt/home/, nixos-generate-config would have configured it for you
<lars_>
manual didn't say in the installation steps :)
<marantz>
manual? ofxclient docs don't know about nixos, but there is something in nix-pkgs for it
trevorriles has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vFWwJ
<NixOS_GitHub>
nixpkgs/master 0610584 Vladimír Čunát: factor-lang: fix libGL when the OS uses non-mesa...
NixOS_GitHub has left #nixos []
<lars_>
i think nixos needs a gui installer (or an ncurses one) and some sensible configuration for a default gui
<lars_>
that would bring more users
<sphalerite>
lars_: manveru is working on a gui installer :)
<sphalerite>
Also, I think the issue with a graphical installer is that it might set a false precedent which would lead a lot more people to install nixos, but not actually retain them
<sphalerite>
Because nixos is pretty tinker-heavy for getting stuff to work
<joehh_>
is there a reliable way to move /nix to a different partition?
<sphalerite>
but idk
<joehh_>
the root disk I've got it on is full
<sphalerite>
joehh_: mv :D
<joehh_>
:)
<clever>
joehh_: ive done it once before, i had to use a debug flag in the initrd, and manualy mount the new /nix before continuing the boot
<clever>
joehh_: and you need to boot from something else to perform that mv
<sphalerite>
joehh_: more seriously, I'd boot into the installer, copy it over, mount it into place, nixos-generate-config --root /mnt, and nixos-install
asuryawa_ has quit [(Remote host closed the connection)]
<sphalerite>
Well, it's ready for them if they have a friendly nerd who does all the sysadmin stuff, in which case it's perfect. But for a non-technical user who has to manage it themselves, nixos really isn't a good fit
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej pushed 2 new commits to master: https://git.io/vFWwo
<sphalerite>
I'd even go so far as to say linux distros in general aren't a good fit for them
<MichaelRaskin>
We haven't yet scaled our processes to merge the PRs with the same speed as they are added…
<lars_>
id like to get linuxes to the point where they are a good fit for an average user
<sphalerite>
So many of the solutions for issues with ubuntu are "type these commands which can only really be reversed by restoring a backup"
<MichaelRaskin>
sphalerite: next you would say that computers are not a good fit for them
hexamod has joined #nixos
<lars_>
exactly that is the reason i'm trying nixos
<sphalerite>
MichaelRaskin: idk, macOS for instance seems a lot more suited. Not that I like macOS, but it's better suited for that use case IMHO
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to release-17.09: https://git.io/vFWwD
<NixOS_GitHub>
nixpkgs/release-17.09 75bc6fc Vladimír Čunát: factor-lang: fix libGL when the OS uses non-mesa...
NixOS_GitHub has left #nixos []
<clever>
sphalerite: one great thing with nixos, i can just take you config, throw it into a vm, and perfectly reproduce your system, right down to the software/config problems
joehh_ has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg closed pull request #31218: Remove manual rpath settings now that meson is fixed (master...meson-rpath) https://git.io/vFcbD
NixOS_GitHub has left #nixos []
<clever>
sphalerite: as long as its not a hardware issue
<sphalerite>
They certainly have a good and intuitive software installation story
joehh_ has joined #nixos
<MichaelRaskin>
sphalerite: the main thing I know about Macs, is that they can deliberately fail to work with a WiFi network that is OK for literally everything else.
<sphalerite>
clever: absolutely, and I think nixos has great technical foundations to be much better than macOS for end users. But in terms of the chrome it's still a loooong way off
<clever>
sphalerite: yeah
<lars_>
clever: i would imagine that story would make it support for normal people a lot simpler
<lars_>
IT-support
leat has quit [(Ping timeout: 240 seconds)]
<clever>
lars_: yep, as long as the end-users dont try to forcibly modify files under /nix and "sudo make install" random junk
damke has quit [(Ping timeout: 240 seconds)]
<sphalerite>
MichaelRaskin: oh?
pierrec_ has quit [(Quit: pierrec_)]
<lars_>
if they know how to install make and use sudo, then they are not average users anymore :D
<lars_>
but yea they are still the kind of users i am
<sphalerite>
MichaelRaskin: fwiw I have that issue with one of my laptops that's running nixos as well ;)
<MichaelRaskin>
To make IT support feasible, we need a cryptolocker actually hit double-digit percentage of worldwide personal computer base.
<sphalerite>
lars_: they don't necessarily know what they're doing, they might have just googled how to do something and found these instructions that say to run sudo make install
<MichaelRaskin>
sphalerite: well, there it is more like «no Apple device works, no non-Apple device fails»
<rycee>
Quick question. Anybody seen an error like this before? "error: creating symlink from ‘/etc/nixos/result.tmp-27440-1730106898’ to ‘/nix/store/ci9j6ms78lyklicjq8b6i5n3z4xh85ll-home-manager-generation’: Permission denied"
<MichaelRaskin>
sphalerite: and «deliberate» means it connects, works for 30 seconds, stops working
<rycee>
"/etc/nixos/result.tmp-27440-1730106898" seems very odd to me.
<lars_>
sphalerite: but if their environment doesnt have make :)
<MichaelRaskin>
In a repeatable way.
<clever>
rycee: what is your working directory?
<lars_>
but i get your point
<clever>
lars_: oh, and there are the users that just nix-env -iA nixos.gcc
<clever>
lars_: and expect the -dev packages to fix everything
<sphalerite>
MichaelRaskin: nice… any idea of the political motivation behind building in that sort of bug?
<MichaelRaskin>
I think now there are better workarounds available, but still, broadcom.
pierrec_ has joined #nixos
<MichaelRaskin>
But Apple doesn't have the excuse of having no idea what Broadcom gear wants: they actually can get Broadcom to provide documentation and even drivers
<tanonym>
If I want to set up a ZFS NixOS box as a personal fileserver and backup where is a good place to start reading up on fileserver setup and such?
<tilpner>
codygman - Then it won't even look into /etc/nixos
<sphalerite>
codygman: if you prefer a symlink you can use that too though
<sphalerite>
gchristensen: just some aesthetic damage ;)
* tanonym
hunts around for a refurbished Toughbook to replace my current Lenovo laptop.
srdqty has joined #nixos
mithsv_ has joined #nixos
lfish` has joined #nixos
<codygman>
tilpner, sphalerite: I think I'll add the nixos-config environment variable. Thanks!
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vFWoO
<NixOS_GitHub>
nixpkgs/master 587037c Vladimír Čunát: lilypond: disable parallel building...
<orivej>
clever: re. "parse it into an AST, apply some mutations, then serialize it back out" — what kinds of mutations? purely syntactic (where the AST is enough), or partially semantic (where it is useful to know the values)?
<clever>
orivej: lets say i want to use a gui to enable services.openssh.enable
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<clever>
orivej: but i want to also preserve any functional code in the nix file
mw has left #nixos []
radvendii has quit [(Ping timeout: 240 seconds)]
<clever>
orivej: and if that node already exists with a value of false, it should change it to true, rather then add an invalid duplicate entry
<orivej>
I see, thank you
radvendii has joined #nixos
* clever
goes offline for a few hours
FossiFoo has joined #nixos
<FossiFoo>
hi. i'm trying to get flutter.io to work, but it seems to ship at least dart as a prebuilt exe and that won't run. what is the easiest way around these kind of things?
erictapen has quit [(Ping timeout: 246 seconds)]
<the-kenny>
FossiFoo: easiest way is likely using a FHS user env. That emulates a "normal" linux filesystem layout inside a shell :)
<the-kenny>
The other approach is patching the binary via patchelf, which might be easy, but gets more and more annoying the more executable there are. And it breaks down when there's some sort of package installer or auto-update mechanism.
<__monty__>
rycee: I'm looking into nix-binary-cache-proxy and I'm wondering whether I can even use nixops to deploy it to a non nixos machine running nix in single user mode?
fendor has quit [(Ping timeout: 240 seconds)]
pie_ has joined #nixos
<sphalerite>
__monty__: I don't think you can use nixops to deploy anything non-nixos
<vcunat>
yes, nixops is only for nixos
<lars_>
does anyone know how to install R in nixos?
<vcunat>
disnix is much more universal
<vcunat>
(it can reportedly deploy services even to *BSD and Windows)
<lars_>
there seems to be 2 packages, nixos.R and nixos.rWrapper
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vFWiE
<NixOS_GitHub>
nixpkgs/master 9c5bf72 Frederik Rietdijk: python.pkgs: maintenance updates
<NixOS_GitHub>
nixpkgs/master 5d21308 Frederik Rietdijk: python.pkgs.six: 1.10.0 -> 1.11.0
NixOS_GitHub has left #nixos []
<lars_>
is that necessary or does the r in nixpkgs already implement that?
<lars_>
i mean, why is that in nixpkgs manual and not already in the nix expression?
<sphalerite>
because not everybody needs those exact packages
radvendii has quit [(Ping timeout: 264 seconds)]
<lars_>
but, why the setting of an environment is not in nixpkgs and people could install r packages imperatively using r?
<sphalerite>
because that's less reproducible
<sphalerite>
You can do it imperatively though
<lars_>
if i just install nixos.r can i install r packages using r itself?
<sphalerite>
Maybe
mithsv has quit [(Quit: mithsv)]
<sphalerite>
It might work, but nixpkgs tends to expect you to use nixpkgs rather than one of the many language-specific package manager
<sphalerite>
s
mithsv has joined #nixos
<sphalerite>
rWrapper is the nixpkgs-supported way in any case
<sphalerite>
you could also do something like `nix-shell -p 'rWrapper.override {packages = with rPackages; [foo bar baz]}'` to get the packages you need
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej pushed 2 new commits to master: https://git.io/vFWPJ
<symphorien>
<lars_> if i just install nixos.r can i install r packages using r itself? << if you do so, imperatively installed R package might break if you update r and then garbage collect the former version of r
<FossiFoo>
i hate that everybody makes their software so magical... i'm becoming rms style grumpy
Isorkin has quit [(Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org)]
kiloreux_ has joined #nixos
<sphalerite>
FossiFoo: looks like you have the nix disease :D
<FossiFoo>
i can curl "https://pub.dartlang.org/api/packages/node_preamble", but apparently dart's "pub" tool can not because of that "Handshake error in client (OS Error: | CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate(ssl_cert.c:345))"
fragamus has joined #nixos
<FossiFoo>
why the hell does all of this always have to be so "easy"
<sphalerite>
maybe NIX_SSL_CERT is getting unset or something
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej pushed 2 new commits to master: https://git.io/vFWPR
<sphalerite>
or NIX_SSL_CA_CERT or whatever, can't remember the exact name
kiloreux has quit [(Ping timeout: 246 seconds)]
<FossiFoo>
sphalerite: is that supposed to be an env var?
<sphalerite>
it is for something or other, I don't know exactly though. I think it's only for non-nixos systems. I really don't know what I'm talking about :p
<FossiFoo>
i now get a new warning: "collision between `/nix/store/v0s4641iz551wnl1y97kvnbw0gv1izda-nss-cacert-3.32.1/etc/ssl/certs' and `/nix/store/bb7s6m8vawqab5djl18pvbimangdrvzh-flutter-chrootenv-etc/etc/ssl/certs'" but otherwise its the same
<sphalerite>
lars_: replace `packages = [` with `packages = with rPackages; [`
mithsv has quit [(Quit: mithsv)]
mithsv has joined #nixos
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<lars_>
so rPackages is in pkgs namespace?
<sphalerite>
yes
<lars_>
how could i have found that myself?
<sphalerite>
if you do nix-repl '<nixpkgs>' you'll get a REPL with tab-completion that has all of pkgs in scope
<sphalerite>
MichaelRaskin: I seem to recall someone having trouble recently because of combining sudo and su
<sphalerite>
but sudo -i already does the login shell bit! :)
mithsv has quit [(Quit: mithsv)]
qknight__ has joined #nixos
mithsv has joined #nixos
<qknight__>
clever: can hydra also checkout git submodules?
<MichaelRaskin>
Look at sudo config. Can you trust your understanding of what precisely sudo is going to do?
mithsv has quit [(Client Quit)]
<hyper__ch>
how would I alter a file in nix store though the command line
<sphalerite>
fair enough haha
mithsv has joined #nixos
<qknight__>
clever: you know, using user@remote with /home/hydra/.ssh/config's ssh key for a closed repository
catern_ is now known as catern
martinklepsch|BN is now known as martinklepsch
pmade_ is now known as pmade
x1n4u- is now known as x1n4u
pikarudolph is now known as pikajude
<MichaelRaskin>
hyper__ch: that's risky. Are you sure there are no workarounds?
pikajude has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
hyper__ch is now known as hyper_ch
<sphalerite>
Dezgeg: how is your binary cache kept up to date?
<sphalerite>
ooh hyper_ch has grown another underscore
<hyper_ch>
MichaelRaskin: yes, I need to konw the content of the resolv.conf when wireguard starts... so I want to alter its unit file to add a cat /etc/resolv.conf as first execstart
<hyper_ch>
I shrunk again
<MichaelRaskin>
Maybe change the build?
<sphalerite>
hyper_ch: you should do that by modifying the corresponding nixos option
__monty__ has left #nixos []
pikajude has joined #nixos
bitchecker has quit [(Ping timeout: 240 seconds)]
<hyper_ch>
sphalerite: nixos wireguard has no options for adding execstart or something
<MichaelRaskin>
You can remount /nix/store/ rw, but there are many interesting consequences.
<FossiFoo>
fwiw, curl works with or without SSL_CERT_FILE set
leat has joined #nixos
prooftechnique has quit [(Ping timeout: 240 seconds)]
<MichaelRaskin>
Editing expression is much less risky plan
<sphalerite>
hyper_ch: yeah you might need to alter the module
<jmc_fr>
tilpner: tty2 requires a "nixos login", and my user name has no password so far, so unable to log in
<ArdaXi[m]>
`sudo -i` on its own means "Start a login shell as root"
Lisanna has joined #nixos
boegel has joined #nixos
<jmc_fr>
:MichaelRaskin trying to login as "Azerty", but still in "Qwerty" - I know how to fix it with "loadkeys fr" but what is the equivalent for "configuration.nix" ?
<sphalerite>
Alright, I think I've come to the conclusion that running unstable on my chromebook is not workable.
<gchristensen>
too many rebuilds / not enough cache?
<sphalerite>
jmc_fr: i18n.consoleKeyMap
<jmc_fr>
:ArdaXi[m] this is ok for me, got it from the Manual, but why "-i" ?
<Lisanna>
sphalerite: speaking of, why does the default Nix installer set you up to pull from nixpkgs-unstable anyways?
lars_ has quit [(Quit: Page closed)]
MinceR has quit [(Ping timeout: 240 seconds)]
jtojnar has quit [(Quit: jtojnar)]
<sphalerite>
gchristensen: yep
<sphalerite>
jmc_fr: the "login shell" bit
<Lisanna>
also, I'm getting a syntax error for something that looks like valid syntax to me, does this look like valid syntax? in [ c // { name = "${name}-${c.name}"; foo = foo'; } ]
<jmc_fr>
sphalerite: OK, "-i" like "logIn shell bIt" ... ;-)
anton__ has joined #nixos
<Lisanna>
the error it's reporting is "error: syntax error, unexpected UPDATE, at <...>"
<sphalerite>
jmc_fr: exactly haha
<sphalerite>
jmc_fr: or like "log In"
<sphalerite>
Lisanna: put parentheses around the update expression
<sphalerite>
i.e. before c and after }
<Lisanna>
what update expression?
<Lisanna>
...uhh, okay
<sphalerite>
`a // b` is an update expression
<jmc_fr>
so I put i18n.consoleKeyMap = "fr" for french keys
<jmc_fr>
what about i18n.defaultLocale ?
<Lisanna>
that fixed it... but why?
<MichaelRaskin>
jmc_fr: you explicitl mentioned z/y, and y is like the only thing azerty leaves in the qewerty place.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee pushed 3 new commits to master: https://git.io/vFWDQ
<NixOS_GitHub>
nixpkgs/master 9e2f54a Sauyon Lee: python.pkgs.faulthandler: init at 2.6
<NixOS_GitHub>
nixpkgs/master a5f5bee Sauyon Lee: python.pkgs.pyobjc: init at 4.0b1
<sphalerite>
but that's the direction it goes in before failing
<MichaelRaskin>
That's true
<Lisanna>
well, that makes me sad ):
<MichaelRaskin>
And of course for function calls it is impossible even in principle to disambiguate.
<MichaelRaskin>
You don't like parentheses?
mithsv has quit [(Quit: mithsv)]
<Lisanna>
no, I'm sad that the parser can't figure that out
mithsv has joined #nixos
<Lisanna>
i.e. that it doesn't eliminate invalid branches in ambiguities
<MichaelRaskin>
Well, that avoids garden path parsing at least.
<sphalerite>
yeah I think it's sensible
<sphalerite>
if you really don't want the parens, use a let! :p
<Lisanna>
...actually, some people think I use too many parens in my Nix code <.<
<sphalerite>
I find that putting complex expressions inside lists is confusing, so I'd prefer the let binding myself
<MichaelRaskin>
Hm, maybe we should go eat these people.
<infinisil>
s/eat/eat with/ ???
<MichaelRaskin>
No, eat these people. You know, trolls want food.
<Lisanna>
I feel like that might violate the Nix contributing code of conduct or something...
<Lisanna>
...actually, wait, Nix doesn't have one... okay, let's go eat them
scribbler has joined #nixos
<MichaelRaskin>
Yeah, it still runs on «someone thinks it is completely out of hand, and nobody wants to contradict this opinion»
<ee1943>
I've noticed a lot of people have local checkouts of nixpkgs
<ee1943>
what's the point of that?
<vcunat>
contributing, for example
<vcunat>
many use cases for nixpkgs checkouts can be replaced by overlays, nowadays
<jmc_fr>
still fighting with my keymap
<ee1943>
like having the latest versions of packages?
<ee1943>
as a usecase for overlays
<jmc_fr>
I did i18n.consoleKeyMap = "fr"
<jmc_fr>
then nixos-rebuild test
<infinisil>
overlays can only change packages
JosW has quit [(Quit: Konversation terminated!)]
<vcunat>
ee1943: channels tend to run only a few days behind
<jmc_fr>
but I'm still in qwerty
<infinisil>
with a local nixpkgs you can make any change to nixpkgs, including nixos, and see the result in your system
<MichaelRaskin>
jmc_fr: not sure that would work without reboo
<MichaelRaskin>
reboot
<judson>
I'm wondering if something like nox could do something scons like with the .nix files it loads? I guess the problem would be that it would take as long to check the ages of files...
<vcunat>
yes, text-console stuff is probably not restarted on system activation
<jmc_fr>
MichaelRaskin: switch ? or reboot ?
<ee1943>
infinisil: I see. I had a local checkout to add a dictionary to hunspell, but the loss of the binary cache kinda sucks
<ee1943>
I guess I should have used an overlay in this case
<vcunat>
ee1943: that makes no difference to binary cache
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vFWSf
<NixOS_GitHub>
nixpkgs/master 8c190c3 Tuomas Tynkkynen: lib/types.nix: Disable 32-bit integer types for now...
NixOS_GitHub has left #nixos []
<vcunat>
ee1943: you get it the same if you use a nixpkgs checkout
<sphalerite>
judson: as in cache evaluation?
<vcunat>
(but of course, if your expressions change hashes to something that's not in binary cache, you're out of luck, regardless of that change being caused by overlay or whatever else)
<ee1943>
hmmm, weird. I used the master branch and ended up rebuilding firefox etc
<judson>
sphalerite - yeah.
<sphalerite>
ee1943: yeah don't use master, use one of the unstable branches
<judson>
Although, experimenting with e.g. `find ~/.nix-defexpr/channels/nixpkgs/ -mmin -30` definitely takes less time than `nix-env -qa`
<tilpner>
jmc_fr - If you XFCE to use a different keymap, set services.xserver.layout = "fr";
<jmc_fr>
tilpner: ooookay again ....in the console it's ok ... how to get it under XFCE ?
<tilpner>
*if you want
<jmc_fr>
ok, going to try
mithsv has quit [(Quit: mithsv)]
mithsv has joined #nixos
mithsv has quit [(Client Quit)]
mithsv has joined #nixos
<jmc_fr>
tilpner: it works fine .... thks also MichaelRaskin !
<jmc_fr>
guys, I simply love the nixos way of life !
<jmc_fr>
coming from 15+ years in linux (but not dev, just for my current usage) : I love the configuration.nix thing
ftzm has joined #nixos
<infinisil>
jmc_fr: You can also do `i18n.consoleUseXbkConfig = true; services.xserver.layout = "fr";` btw
marzzzello has joined #nixos
<infinisil>
jmc_fr: Nice to hear! Loving it too :D
<jmc_fr>
infinisil: consoleUseXbkConfig = true instead of consoleKeyMap = "fr", is that right ?
<jmc_fr>
just to understand the logic
<c0bw3b>
yes that's it
<c0bw3b>
consoleUseXkbConfig = true says to use the same settings as X for the console
<infinisil>
consoleUseXkbConfig just makes the console use the same as for X11, which is useful if you also set xserver.xkbVariant or so
<jmc_fr>
c0bw3b: ok, thks
ftzm has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
<c0bw3b>
au fait :) https://nixos.org/nixos/options.html all possible options are listed here / with a short description to help understand what they do
<jmc_fr>
c0bw3b: good to know, effectivement
<infinisil>
The same is available in `man configuration.nix`, if you're into manpages
ambro718 has joined #nixos
<justin-sleep>
anyone here do Android development on NixOS? How do you deal with accepting the licenses for the SDK?
<jmc_fr>
I'm not into manpages, I'm into womanpages ;-) (... emacs user...)
<infinisil>
I had to use android-studio for university, but it wouldn't run correctly on my nixos :/
jacob has quit [(Quit: Lost terminal)]
<Lisanna>
why can't the nix-repl or any of the tracing tools print a lambda? that seems like a really useful function to have ):
<Lisanna>
makes debugging kind of hard
<justin-sleep>
infinisil: android-studio just gives me a grey screen, so I gave up on that
<justin-sleep>
it also did that on my older gentoo installation, though, so doubt that was nixos-specific
<infinisil>
justin-sleep: Same happened to me, what DE/WM are you using?
<justin-sleep>
bspwm
<justin-sleep>
probably that honestly
<infinisil>
Because I tried android-studio in a NixOS VM with KDE and it worked no problem there
<jmc_fr>
guys, now that I have my first nixos working (in a VirtualBox), what next ? I just take the configuration.nix and use it as is for my real install on hardware ?
<Lisanna>
jmc_fr: that's pretty much what I did
<MichaelRaskin>
We-ell
<MichaelRaskin>
You'd better not forget to regenerate hardware-config
<Lisanna>
and update the boot options
<Lisanna>
like grub device
<jmc_fr>
MichaelRaskin: oh yes ! good to remember
<MichaelRaskin>
And mount options, too…
python47` has quit [(Read error: Connection reset by peer)]
<MichaelRaskin>
Ah no, these get generated
<jmc_fr>
Lisanna: ok ok, not totally straight
<tilpner>
And hope your hardware is well supported :/
<Lisanna>
jmc_fr: but in essence yes, I prototyped my first configuration.nix on a virtualbox :)
<jmc_fr>
hardware : let's see ...
<tilpner>
Make sure to enable networkmanager before nixos-install-ing, in case you're stuck without lan
<jmc_fr>
how often do you "sudo apt-get update && sudo apt-get upgrade" or that knd of things ?
<jmc_fr>
(well, it's not only "how often" but also "how ...")
<tilpner>
I only do that every few weeks, or when I hear about an important update I want to have
<infinisil>
networkmanager breaks horribly for me..
<infinisil>
Have been using wpa_supplicant manually for all the time
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
FRidh has quit [(Quit: Konversation terminated!)]
<tilpner>
On a default installation, you would "sudo nixos-rebuild switch --upgrade"
<tilpner>
Well, that's the closest equivalent to the apt-get line you posted. You don't always need to switch
<justin-sleep>
has no one gotten android development working successfully? or am I missing something?
<catern>
blargh, I feel worried that nixops will kill nix/nixpkgs because it's a distraction from the really valuable things to do with nix
<tilpner>
justin-sleep - Sort of
<justin-sleep>
After installing android-sdk, $ANDROID_HOME isn't set, for one thing
<justin-sleep>
do I need to change it after every rebuild?
<tilpner>
I don't remember that being a problem, but I was using android-studio
vcunat has quit [(Quit: Leaving.)]
<tilpner>
You could set environment.variables.ANDROID_HOME = ...; to automate the path update
<infinisil>
catern: nixops will kill nix/nixpkgs? how do you mean that?
<jmc_fr>
why is my firefox a nightly
<jmc_fr>
?
mithsv has quit [(Quit: mithsv)]
<Lisanna>
catern: seeing as nixops kind of depends on nix / nixpkgs, I don't see how that follows at all
mithsv has joined #nixos
<Lisanna>
if anything nixops will bolster nix / nixpkgs by getting more users
<jmc_fr>
Nightly 56.0.2 istead of firefox .... ?
<MichaelRaskin>
jmc_fr: it's fine
<MichaelRaskin>
There are trademark use rules
<MichaelRaskin>
Our build in Nixpkgs is not a Certified Proper Way To Build Firefox.
mithsv has quit [(Client Quit)]
mithsv has joined #nixos
mithsv has quit [(Client Quit)]
<infinisil>
jmc_fr: firefox can't be redistributed under the "firefox" name due to legal reasons
<infinisil>
You can compile it yourself with the firefox name though
<infinisil>
it's not an actualy nightly version
mithsv has joined #nixos
<MichaelRaskin>
Then I think Mozilla Nix Overlay (that thing exists) has expressions to make the Official Firefox Binaries work on NixOS.
<MichaelRaskin>
(release/beta/nightly)
hellrazo1 has quit [(Ping timeout: 240 seconds)]
<infinisil>
Am using that currently
<infinisil>
actual nightly works well :D
Itkovian has joined #nixos
<jmc_fr>
ok
hellrazo1 has joined #nixos
<catern>
infinisil: Lisanna: because it's a distraction from the really valuable things to do with nix
<jmc_fr>
when you do a nixos-rebuild switch --upgrade, how do you know what changed, what got upgraded ?
<infinisil>
Ohh, the devops hype thing
<c0bw3b>
infinisil ugh yes... *sigh*
<infinisil>
catern: I'm not sure what you mean exactly by distracting from the valuable things, nixops builds on nixos, nixpkgs and nix
<Yaniel>
jmc_fr: because "firefox" is a registered trademark and the artwork is copyrighted
<Yaniel>
the application is the same, nix just ships the unbranded version
erictapen has quit [(Ping timeout: 248 seconds)]
snikkers has joined #nixos
<sphalerite>
justin-sleep: I also got android studio working fine
<sphalerite>
In i3, fwiw
MP2E has joined #nixos
<jmc_fr>
Yaniel: infinisil: MichaelRaskin: #1 firefox is a trademark, but not nightly ? and #2 nightly/nixos is not the mozilla nightly but is firefox in fact ??
<justin-sleep>
hmm, I'm not sure why it's not working for me
endformationage has quit [(Quit: WeeChat 1.9.1)]
<justin-sleep>
sphalerite: it just freezes on a grey screen after startup
<justin-sleep>
I'm using openjdk 1.8.0_152
<MichaelRaskin>
jmc_fr: Mozilla wants that when people see «Firefox» crash, they have some reasonably good idea if it is Mozilla's fault.
<jmc_fr>
MichaelRaskin: okay, it makes sense
<MichaelRaskin>
The name «Nightly» for _software_ is hopefully hard to trademark…
<sphalerite>
jmc_fr: the Firefox you get from the Firefox attr in nixpkgs is, other than the branding, basically the same as "real" Firefox
<MichaelRaskin>
But this is _our_ evaluation, not Mozilla's.
<jmc_fr>
trademark "nightly" : ;-)
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
<MichaelRaskin>
I guess Mozilla will get it invalidated
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
<jmc_fr>
when you do a nixos-rebuild switch --upgrade, how do you know what changed, what got upgraded ?
<MichaelRaskin>
Well, in the beginning it shows you what needs to be done to get stuff into store.
CcxWrk_ has quit [(Quit: ZNC 1.6.4 - http://znc.in)]
CcxWrk has joined #nixos
<MichaelRaskin>
Which doesn't help much if you reshuffle stuff between two already-built endpoints.
<MichaelRaskin>
In general, it doesn't provide a summary
<jmc_fr>
MichaelRaskin: but not asking to confirm ? I'm currently doing one, it dod not ask for anything
<MichaelRaskin>
It is not asking to confirm, no.
ison111 has quit [(Quit: WeeChat 1.9.1)]
justbeingglad has joined #nixos
<infinisil>
You can always rollback anyways
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vFWQt
<NixOS_GitHub>
nixpkgs/master 30f6d63 Tim Steinbach: linux: 4.14.0-rc7 -> 4.14.0-rc8
NixOS_GitHub has left #nixos []
<MichaelRaskin>
I think NixOS is about thinking in terms of stable states, not in term of transitions
<infinisil>
There are release notes for every major release though
<c0bw3b>
jmc_fr i have the habit of running nixos-rebuild dry-build first
<c0bw3b>
so it tells me what will be fetched and installed and stop
<jmc_fr>
infinisil: MichaelRaskin: ok
<c0bw3b>
then I can proceed with the real nixos-rebuild switch.. or not!
<Yaniel>
you can also build the new state without switching and then switch later IIRC
<infinisil>
nixos-rebuild build
<jmc_fr>
c0bw3b: ok, dry-build, seems a good idea. Coming from debian, I have the mpression of at least a little control of what's going on with anupgrade
<MichaelRaskin>
It will also try to build as much as possible in case of failure
hiratara has quit [(Ping timeout: 246 seconds)]
rct has joined #nixos
edwtjo has joined #nixos
edwtjo has quit [(Changing host)]
edwtjo has joined #nixos
acarrico has joined #nixos
nand0p has joined #nixos
pchiusano has joined #nixos
p4cman has joined #nixos
CodeWarrior has joined #nixos
feepo has joined #nixos
mjvoge02 has joined #nixos
philipcristiano has joined #nixos
Itkovian_ has joined #nixos
yrashk has joined #nixos
schaary has joined #nixos
carter has joined #nixos
CodeWarrior has quit [(Ping timeout: 246 seconds)]
<jmc_fr>
thks for everything, guys. I really very much enjoy the nixos approach !
hiratara has joined #nixos
sk23[m] has quit [(Ping timeout: 240 seconds)]
freeman42x has quit [(Ping timeout: 240 seconds)]
grahamc has quit [(Ping timeout: 240 seconds)]
gudea[m] has quit [(Ping timeout: 252 seconds)]
tobim[m] has quit [(Ping timeout: 252 seconds)]
corngood has quit [(Ping timeout: 252 seconds)]
Khorne[m] has quit [(Ping timeout: 252 seconds)]
ison[m] has quit [(Ping timeout: 252 seconds)]
mrdaak[m] has quit [(Ping timeout: 252 seconds)]
r3mfKm[m] has quit [(Ping timeout: 252 seconds)]
matrixkrav has quit [(Ping timeout: 252 seconds)]
reactormonk[m] has quit [(Ping timeout: 252 seconds)]
taohansen has quit [(Ping timeout: 252 seconds)]
cornu[m] has quit [(Ping timeout: 252 seconds)]
retrry[m] has quit [(Ping timeout: 240 seconds)]
yochai[m] has quit [(Ping timeout: 240 seconds)]
AndersonTorres[m has quit [(Ping timeout: 240 seconds)]
jack[m] has quit [(Ping timeout: 240 seconds)]
efx[m] has quit [(Ping timeout: 240 seconds)]
dkellner[m] has quit [(Ping timeout: 240 seconds)]
trikl[m] has quit [(Ping timeout: 240 seconds)]
Sovereign_Bleak has quit [(Ping timeout: 240 seconds)]
tommyangelo[m] has quit [(Ping timeout: 246 seconds)]
aniketd[m] has quit [(Ping timeout: 246 seconds)]
aminech[m] has quit [(Ping timeout: 246 seconds)]
mtncoder[m] has quit [(Ping timeout: 246 seconds)]
pstn has quit [(Ping timeout: 246 seconds)]
jluttine[m] has quit [(Ping timeout: 255 seconds)]
<c0bw3b>
w00t !
WinterFox[m] has quit [(Ping timeout: 248 seconds)]
admin[m]1 has quit [(Ping timeout: 255 seconds)]
JameySharp[m] has quit [(Ping timeout: 255 seconds)]
codyopel has quit [(Ping timeout: 255 seconds)]
spacekitteh[m] has quit [(Ping timeout: 255 seconds)]
Barnabas[m] has quit [(Ping timeout: 255 seconds)]
Bane^ has quit [(Ping timeout: 260 seconds)]
Nobabs27[m] has quit [(Ping timeout: 246 seconds)]
nixo[m] has quit [(Ping timeout: 276 seconds)]
danielrf has quit [(Ping timeout: 276 seconds)]
smbarte2[m] has quit [(Ping timeout: 276 seconds)]
EB[m] has quit [(Ping timeout: 276 seconds)]
Leo[m]1 has quit [(Ping timeout: 276 seconds)]
seif[m] has quit [(Ping timeout: 276 seconds)]
Dezgeg[m] has quit [(Ping timeout: 276 seconds)]
adisbladis[m] has quit [(Ping timeout: 276 seconds)]
Pneumaticat has quit [(Ping timeout: 276 seconds)]
sargon[m] has quit [(Ping timeout: 276 seconds)]
Ralith has quit [(Ping timeout: 264 seconds)]
Manish[m] has quit [(Ping timeout: 264 seconds)]
stites[m] has quit [(Ping timeout: 264 seconds)]
Elephant454[m] has quit [(Ping timeout: 264 seconds)]
dalaing has quit [(Ping timeout: 264 seconds)]
magnap has quit [(Ping timeout: 264 seconds)]
equalunique[m] has quit [(Ping timeout: 264 seconds)]
herzmeister[m] has quit [(Ping timeout: 264 seconds)]
M-liberdiko has quit [(Ping timeout: 240 seconds)]
ninegua[m] has quit [(Ping timeout: 240 seconds)]
wizzup[m] has quit [(Ping timeout: 240 seconds)]
trevorriles[m] has quit [(Ping timeout: 240 seconds)]
nocent has quit [(Ping timeout: 240 seconds)]
the_m4ur1[m] has quit [(Ping timeout: 240 seconds)]
sudoreboot[m] has quit [(Ping timeout: 240 seconds)]
thomad[m] has quit [(Ping timeout: 246 seconds)]
moredhel1 has quit [(Ping timeout: 246 seconds)]
peel[m] has quit [(Ping timeout: 246 seconds)]
AlanPearce[m] has quit [(Ping timeout: 246 seconds)]
itorres has quit [(Ping timeout: 246 seconds)]
Itkovian has quit [(Ping timeout: 258 seconds)]
puffnfresh has quit [(Ping timeout: 240 seconds)]
zigschots20[m] has quit [(Ping timeout: 240 seconds)]
abbafei[m] has quit [(Ping timeout: 240 seconds)]
unlmtd has quit [(Ping timeout: 240 seconds)]
MawKKe[m] has quit [(Ping timeout: 240 seconds)]
voobscout[m] has quit [(Ping timeout: 240 seconds)]
kainospur[m] has quit [(Ping timeout: 240 seconds)]
zoya-kosova[m] has quit [(Ping timeout: 240 seconds)]
dtz has quit [(Ping timeout: 240 seconds)]
aspiwack[m] has quit [(Ping timeout: 240 seconds)]
Yaniel has quit [(Ping timeout: 240 seconds)]
randomenduser[m] has quit [(Ping timeout: 255 seconds)]
Oo[m] has quit [(Ping timeout: 255 seconds)]
icetan has quit [(Ping timeout: 255 seconds)]
AdamSlack[m] has quit [(Ping timeout: 255 seconds)]
Phil[m]1 has quit [(Ping timeout: 255 seconds)]
jsv[m] has quit [(Ping timeout: 255 seconds)]
tokudan[m] has quit [(Ping timeout: 255 seconds)]
kitten[m] has quit [(Ping timeout: 255 seconds)]
hedning[m] has quit [(Ping timeout: 255 seconds)]
bennofs[m] has quit [(Ping timeout: 255 seconds)]
offlinehacker[m] has quit [(Ping timeout: 255 seconds)]
jyp[m] has quit [(Ping timeout: 255 seconds)]
thematter[m] has quit [(Ping timeout: 255 seconds)]
Wysteriary[m] has quit [(Ping timeout: 255 seconds)]
StuK[m] has quit [(Ping timeout: 255 seconds)]
krawiec[m] has quit [(Ping timeout: 255 seconds)]
Li[m] has quit [(Ping timeout: 255 seconds)]
pvn[m] has quit [(Ping timeout: 255 seconds)]
malteof[m] has quit [(Ping timeout: 255 seconds)]
spawnthink[m] has quit [(Ping timeout: 255 seconds)]
musicmatze[m] has quit [(Ping timeout: 255 seconds)]
bdimcheff has quit [(Ping timeout: 255 seconds)]
ArdaXi[m] has quit [(Ping timeout: 255 seconds)]
demyan[m] has quit [(Ping timeout: 246 seconds)]
AsherGottlieb[m] has quit [(Ping timeout: 246 seconds)]
sziszi[m] has quit [(Ping timeout: 246 seconds)]
apocolocyntos[m] has quit [(Ping timeout: 246 seconds)]
qrilka[m] has quit [(Ping timeout: 246 seconds)]
dylanjust[m] has quit [(Ping timeout: 246 seconds)]
WilliamHamilton has quit [(Ping timeout: 246 seconds)]
nkpart[m] has quit [(Ping timeout: 246 seconds)]
etcinit[m] has quit [(Ping timeout: 252 seconds)]
AmineChikhaoui[m has quit [(Ping timeout: 252 seconds)]
rnhmjoj[m] has quit [(Ping timeout: 252 seconds)]
bhipple[m] has quit [(Ping timeout: 252 seconds)]
Phyra[m] has quit [(Ping timeout: 252 seconds)]
ycy[m] has quit [(Ping timeout: 252 seconds)]
sirius[m] has quit [(Ping timeout: 252 seconds)]
Kallegro[m] has quit [(Ping timeout: 252 seconds)]
baconicsynergy[m has quit [(Ping timeout: 252 seconds)]
pierrebeaucamp[m has quit [(Ping timeout: 252 seconds)]
sphalerite has quit [(Ping timeout: 276 seconds)]
scott1 has quit [(Ping timeout: 248 seconds)]
jlle[m] has quit [(Ping timeout: 248 seconds)]
M-berdario has quit [(Ping timeout: 264 seconds)]
edef[m] has quit [(Ping timeout: 264 seconds)]
xurxo[m] has quit [(Ping timeout: 248 seconds)]
akavel[m] has quit [(Ping timeout: 248 seconds)]
eqyiel[m] has quit [(Ping timeout: 248 seconds)]
mpuppe[m] has quit [(Ping timeout: 248 seconds)]
wmertens[m] has quit [(Ping timeout: 248 seconds)]
octalsrc[m] has quit [(Ping timeout: 248 seconds)]
berot3[m] has quit [(Ping timeout: 248 seconds)]
DIzFer[m] has quit [(Ping timeout: 248 seconds)]
EuAndreh[m] has quit [(Ping timeout: 248 seconds)]
Obscurity[m] has quit [(Ping timeout: 264 seconds)]
M-fishy has quit [(Ping timeout: 264 seconds)]
moredread[m] has quit [(Ping timeout: 264 seconds)]
noctuid has quit [(Ping timeout: 264 seconds)]
maralorn[m] has quit [(Ping timeout: 264 seconds)]
fearlessKim[m] has quit [(Ping timeout: 264 seconds)]
dibblego[m] has quit [(Ping timeout: 264 seconds)]
myklam[m] has quit [(Ping timeout: 264 seconds)]
teh[m] has quit [(Ping timeout: 264 seconds)]
bachp has quit [(Ping timeout: 264 seconds)]
NickHu has quit [(Ping timeout: 248 seconds)]
benkolera has quit [(Ping timeout: 248 seconds)]
florianjacob has quit [(Ping timeout: 248 seconds)]
olejorgenb[m] has quit [(Ping timeout: 248 seconds)]
nahamu has quit [(Ping timeout: 240 seconds)]
kevincox has quit [(Ping timeout: 276 seconds)]
mhsjlw[m] has quit [(Ping timeout: 276 seconds)]
revoltmedia[m] has quit [(Ping timeout: 276 seconds)]
Johnny44[m] has quit [(Ping timeout: 276 seconds)]
peterhoeg has quit [(Ping timeout: 276 seconds)]
nh2[m] has quit [(Ping timeout: 276 seconds)]
7F1AAQYQ9 has quit [(Ping timeout: 276 seconds)]
regnat[m] has quit [(Ping timeout: 276 seconds)]
Exee7uvo[m] has quit [(Ping timeout: 276 seconds)]
mankyKitty[m] has quit [(Ping timeout: 276 seconds)]
<tobiasBora>
I'd like to know, is there an "efficient" way to deal with nixos, so that when I want to install a new package, I can get it within a few seconds ? Because on my raspberry pi, when I run "nixos-rebuild switch", it takes something like one minute to achieve, while my configuration file is nearly empty. So if I want to install a new program, I "lost" at least 1mn for nothing...
<symphorien>
nix-shell -p package
<symphorien>
but the package will be available only in the resulting shell
<catern>
nix-env -i
<c0bw3b>
if you know the package "attribute name" (usually identical to the package name itself) the fastest thing to do is nix-env -iA nixos.package
<tobiasBora>
symphorien: catern the thing is that these commands won't update the /etc/nixos/configuration.nix right? Can I somehow at the end automatically merge the new modifications with the configuration.nix, so that my system is fully configured using the /etc/*.nix files ?
goibhniu has joined #nixos
mithsv has quit [(Ping timeout: 240 seconds)]
<infinisil>
catern: lol, won't that install everything?
<infinisil>
ah you mean with an argument
<infinisil>
tobiasBora: You could strip the modules you don't need, which would probably make rebuilds a lot faster
<tobiasBora>
infinisil: you mean like putting for example all the user configuration in a separate module, and import it only the first time ?
<tobiasBora>
infinisil: I think I'm not yet comfortable enough with nix to understand why it will increase the speed. How nix uses this list during the switch process ?
<jmc_fr>
aaaargh I killed my virtualbox by filling totally the disk
<jmc_fr>
after a nixos-rebuild --upgrade
<jmc_fr>
disk is full, and I cannot anymore login ...
<jmc_fr>
well in fact I can login as root, but only in a console, not in xfce
<infinisil>
tobiasBora: nixos has tons and tons of options, all of these options come from modules, and this list there are all the modules there are
leat has quit [(Ping timeout: 248 seconds)]
<jmc_fr>
any way to save my virtualbox ?
<infinisil>
tobiasBora: To create all options, nixos needs to interpret all these modules
<MichaelRaskin>
Well, you can nix-collect-garbage -d
Itkovian has joined #nixos
<MichaelRaskin>
But it looks like your VirtualBox is too small
<tobiasBora>
infinisil: but nixos is not supposed to be lazy, and interpret these modules iff the user file wants to use it ?
<jmc_fr>
MichaelRaskin: 4 Gb
<infinisil>
tobiasBora: Removing modules means that nix has to do a lot less work, and it's known that nixos-rebuild time corresponds with the amount of modules
nallar has joined #nixos
Ross has quit [(Ping timeout: 240 seconds)]
nallar is now known as Ross
<MichaelRaskin>
jmc_fr: Ouch
<MichaelRaskin>
That's way too small.
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
<infinisil>
tobiasBora: it still needs to evaluate all of them, because: say you have foo.enable = true; which is invalid, but it can't know this unless it checks in every module, because it might be that some module declares this option
<jmc_fr>
MichaelRaskin: how much should I have ?
leat has joined #nixos
<tobiasBora>
infinisil: ok thank you. And do you have a way to create a clone of the official nixpkg, that is always consistant with it, except for the module file?
<c0bw3b>
jmc_fr at least 10GB
<MichaelRaskin>
Well, it depends on what you want to install
<jmc_fr>
btw nix-co
<jmc_fr>
nix-collect-garbage saved my life so far
<MichaelRaskin>
But basically, your store should be able to hold _twice_ your full system
<MichaelRaskin>
Just because that's how rebuilds after glibc upgrade work.
justbeingglad has left #nixos []
<jmc_fr>
not sure if I can extend my virtualbox once it's done
<MichaelRaskin>
And then there is a question of wanting to keep anything else around.
<MichaelRaskin>
Dunno on VirtualBox side, I would expect it to be possible, though
<MichaelRaskin>
Inside you can just resize the partition, then the FS
<MichaelRaskin>
After you resize the image externally
<infinisil>
tobiasBora: Hmm, I guess cloning it and regularily rebasing on the channel is the best you can do
<tobiasBora>
infinisil: ok thanks
<jmc_fr>
but hey we are on nixos ... just copying the configuration.nix, and build a newmachine from scratch - maximum 5 minutes
<tilpner>
Or nix repl: nix-repl '<nixpkgs>', then emac<TAB>
<tilpner>
("nix repl '<nixpkgs'>" if you have nixUnstable)
snikkers has quit [(Ping timeout: 240 seconds)]
<tobiasBora>
tilpner: it does not work on bash?
<tilpner>
Don't know, try the repl suggestion
<jefflovejapan>
hi all, I'm trying to set up a nix environment for MIT's 6.828 operating systems class. In order to do the coursework I believe I need a patched version of qemu. I believe I can install it by adding qemu to environment.systemPackages and setting values with overrideAttrs but it doesn't seem to work.
unlmtd has joined #nixos
cornu[m] has joined #nixos
lfish` has quit [(Ping timeout: 248 seconds)]
ArdaXi[m] has joined #nixos
nixo[m] has joined #nixos
jyp[m] has joined #nixos
MawKKe[m] has joined #nixos
jluttine[m] has joined #nixos
AlanPearce[m] has joined #nixos
nkpart[m] has joined #nixos
abbafei[m] has joined #nixos
sirius[m] has joined #nixos
Phyra[m] has joined #nixos
moredhel1 has joined #nixos
grahamc has joined #nixos
indefini has joined #nixos
regnat[m] has joined #nixos
dylanjust[m] has joined #nixos
berot3[m] has joined #nixos
mankyKitty[m] has joined #nixos
primeos[m] has joined #nixos
efx[m] has joined #nixos
WilliamHamilton has joined #nixos
codyopel has joined #nixos
aspiwack[m] has joined #nixos
peterhoeg has joined #nixos
14WABOXIJ has joined #nixos
bachp has joined #nixos
davidar has joined #nixos
NickHu has joined #nixos
nh2[m] has joined #nixos
mith[m] has joined #nixos
timclassic has joined #nixos
zoya-kosova[m] has joined #nixos
Nobabs27[m] has joined #nixos
TimePath has joined #nixos
the_m4ur1[m] has joined #nixos
M-liberdiko has joined #nixos
Kallegro[m] has joined #nixos
baconicsynergy[m has joined #nixos
wak-work has joined #nixos
moredread[m] has joined #nixos
Oo[m] has joined #nixos
octalsrc[m] has joined #nixos
sudoreboot[m] has joined #nixos
demyan[m] has joined #nixos
peel[m] has joined #nixos
rycee has joined #nixos
AndersonTorres[m has joined #nixos
matrixkrav has joined #nixos
Exee7uvo[m] has joined #nixos
olejorgenb[m] has joined #nixos
teh[m] has joined #nixos
itorres has joined #nixos
Li[m] has joined #nixos
Elephant454[m] has joined #nixos
trikl[m] has joined #nixos
hl has joined #nixos
noctuid has joined #nixos
Drakonis[m] has joined #nixos
kevincox has joined #nixos
tokudan[m] has joined #nixos
Johnny44[m] has joined #nixos
randomenduser[m] has joined #nixos
Geeky[m] has joined #nixos
FRidh[m] has joined #nixos
danielrf has joined #nixos
myklam[m] has joined #nixos
reactormonk[m] has joined #nixos
spacekitteh[m] has joined #nixos
viaken[m] has joined #nixos
herzmeister[m] has joined #nixos
a123123123[m] has joined #nixos
revoltmedia[m] has joined #nixos
aminech[m] has joined #nixos
sargon[m] has joined #nixos
magnap has joined #nixos
florianjacob has joined #nixos
dpc has joined #nixos
thematter[m] has joined #nixos
necronian has joined #nixos
wmertens[m] has joined #nixos
qrilka[m] has joined #nixos
Wysteriary[m] has joined #nixos
spawnthink[m] has joined #nixos
offlinehacker[m] has joined #nixos
sphalerite has joined #nixos
nocent has joined #nixos
jsv[m] has joined #nixos
Phil[m]1 has joined #nixos
krawiec[m] has joined #nixos
bdimcheff has joined #nixos
copumpkin has joined #nixos
benkolera has joined #nixos
pstn has joined #nixos
freeman42x has joined #nixos
trevorriles[m] has joined #nixos
Obscurity[m] has joined #nixos
yochai[m] has joined #nixos
apocolocyntos[m] has joined #nixos
bhipple[m] has joined #nixos
adisbladis[m] has joined #nixos
aniketd[m] has joined #nixos
WinterFox[m] has joined #nixos
bennofs[m] has joined #nixos
edef[m] has joined #nixos
dtz has joined #nixos
mpuppe[m] has joined #nixos
Dezgeg[m] has joined #nixos
kitten[m] has joined #nixos
puffnfresh has joined #nixos
pvn[m] has joined #nixos
Yaniel has joined #nixos
equalunique[m] has joined #nixos
dkellner[m] has joined #nixos
Sovereign_Bleak has joined #nixos
AdamSlack[m] has joined #nixos
admin[m]1 has joined #nixos
seif[m] has joined #nixos
chominist[m] has joined #nixos
Pneumaticat has joined #nixos
sk23[m] has joined #nixos
pierrebeaucamp[m has joined #nixos
ycy[m] has joined #nixos
mrdaak[m] has joined #nixos
voobscout[m] has joined #nixos
tommyangelo[m] has joined #nixos
fgaz[m] has joined #nixos
thomad[m] has joined #nixos
bendlas has joined #nixos
dash has joined #nixos
onito[m] has joined #nixos
ison[m] has joined #nixos
stites[m] has joined #nixos
StuK[m] has joined #nixos
Leo[m]2 has joined #nixos
malteof[m] has joined #nixos
wizzup[m] has joined #nixos
mtncoder[m] has joined #nixos
DIzFer[m] has joined #nixos
taohansen has joined #nixos
musicmatze[m] has joined #nixos
paperdigits[m] has joined #nixos
scott1 has joined #nixos
Ralith has joined #nixos
rnhmjoj[m] has joined #nixos
M-berdario has joined #nixos
dibblego[m] has joined #nixos
fearlessKim[m] has joined #nixos
Barnabas[m] has joined #nixos
hedning[m] has joined #nixos
jack[m] has joined #nixos
EuAndreh[m] has joined #nixos
dalaing has joined #nixos
r3mfKm[m] has joined #nixos
zigschots20[m] has joined #nixos
icetan has joined #nixos
kainospur[m] has joined #nixos
Khorne[m] has joined #nixos
etcinit[m] has joined #nixos
EB[m] has joined #nixos
M-fishy has joined #nixos
eqyiel[m] has joined #nixos
akavel[m] has joined #nixos
corngood has joined #nixos
<tilpner>
Rip Matrix
ninegua[m] has joined #nixos
guest521[m] has joined #nixos
gudea[m] has joined #nixos
mhsjlw[m] has joined #nixos
maralorn[m] has joined #nixos
Singularity[m] has joined #nixos
sziszi[m] has joined #nixos
tobim[m] has joined #nixos
Deleh[m] has joined #nixos
jlle[m] has joined #nixos
AllanDaemon[m] has joined #nixos
retrry[m] has joined #nixos
AsherGottlieb[m] has joined #nixos
AmineChikhaoui[m has joined #nixos
Vincenzo[m] has joined #nixos
smbarte2[m] has joined #nixos
JameySharp[m] has joined #nixos
Manish[m] has joined #nixos
xurxo[m] has joined #nixos
lecorpsnoir[m] has joined #nixos
<jefflovejapan>
the output from the command above is:
<MichaelRaskin>
tilpner: it has just respawned, if it goes down again, we will get a second iteration of the same!
<tilpner>
MichaelRaskin - Yeah, I also had problems with NickServ just a few minutes ago, and couldn't connect to the appservice. Maybe that was related
<tilpner>
(The @appservice-irc:matrix.org bot thing)
<tilpner>
jefflovejapan - Do you have an error message and a paste of the relevant section of your systemPackages?
c0bw3b has left #nixos []
<jefflovejapan>
yeah, i have two different error cases, one when i just try to add qemu to systemPackages, and one when I try to modify it
<jefflovejapan>
with vanilla qemu in systemPackages I get:
<jefflovejapan>
sorry, collected garbage and it's taking a minute to run again
<tobiasBora>
tilpner: ok thank you very much!
simukis has quit [(Ping timeout: 248 seconds)]
<tobiasBora>
By the way it's not possible to use several environment.systemPackages ? I would like to define the program I'd like to install in several places in the file for readability, or even in several files for modularity...
<tilpner>
It is possible, you can define systemPackages in multiple files and the contents will get merged
Acou_Bass has quit [(Ping timeout: 240 seconds)]
Acou_Bass has joined #nixos
<jefflovejapan>
creating symlink from '/nix/var/nix/profiles/system-2-link.tmp-1978-1066974405' to '/nix/store/<hash>-nixos-system-nixos-17.09.1997.1a8a95e879': Permission denied
<jefflovejapan>
environment.systemPackages = with pkgs; [ wget vim qemu ];
<tilpner>
jefflovejapan - Did you run nixos-rebuild without root?
<jefflovejapan>
i ran `sudo -i nano` to modify configuration.nix then nixos-rebuild switch
<tilpner>
nixos-rebuild switch needs to be run as root
<tilpner>
You can build qemu without root, but you can't activate it globally without root
<jefflovejapan>
awesome, thanks
<jefflovejapan>
if i try to override attrs, i get the following
<tobiasBora>
tilpner: I get an error error: attribute ‘environment.systemPackages’ at /etc/nixos/configuration.nix:55:3 already defined at /etc/nixos/configuration.nix:52:3
ivanivan has joined #nixos
ivanivan has quit [(Client Quit)]
<tilpner>
tobiasBora - I said that you can define systemPackages in multiple files, not multiple times in the same one
<tobiasBora>
tilpner: ohh ok. Too bad, but better than nothing
<tobiasBora>
thank you
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
srdqty1 has quit [(Quit: WeeChat 1.9.1)]
<tilpner>
tobiasBora - You can use a big let-in to define systemPackages in multiple pieces, then merge them manually at the end
<jefflovejapan>
The option value `environment.systemPackages.[definition 39-entry 3]` in `/etc/nixos/configuration.nix` is not a package.
matthewbauer has joined #nixos
<tilpner>
jefflovejapan - I can't see your config, but you probably forgot to wrap it in parentheses
<tilpner>
jefflovejapan - That is partly true, it would help to see your configuration
<tobiasBora>
tilpner: oh ok, I forgot that I nix was a pure language
Itkovian has joined #nixos
fragamus has joined #nixos
<tobiasBora>
tilpner: but you cannot for example do something like : " let p = [emacs] in .... let p = [firefox] ++ p in ... env.systemPackages = p", where p is always a fresh variable ?
<tilpner>
You could do something like that, yes. It doesn't mutate the original list though. I see no advantage over defining systemPackages as usual though
rizary has quit [(Read error: Connection reset by peer)]
rizary has joined #nixos
noobly has joined #nixos
<noobly>
anyone here using drracket on 32 bit?
<tilpner>
Given how much trouble you've had with it, maybe consider using another editor?
<noobly>
lol no
<noobly>
i do, but sometimes the course I'm following specifically requires htdp/bsl instead of racket, so occasionally I'll recycle this problem from my to-do list and give it another go
<noobly>
i mean you get in htdp/bsl in terminal as an extension but that seems much more difficult
<ivanivan>
I've installed the alacritty package on Ubuntu a couple times, and it always builds from source. Curious why that might be?
<tilpner>
It's been 4 months since I first tried to help you with drracket, I don't remember what the problem was
<tilpner>
ivanivan - What channel are you on (nix-shell -p nix-info --run nix-info)? Do you have overrides for alacritty?
<noobly>
Yeah, I left my laptop for quite some time and didnt leave myself notes of how to resume.. But currently I get the error "cannot find rm"
srdqty has joined #nixos
<noobly>
and that;s after making the shell script executable
<ivanivan>
tilpner: i'm on the nixpkgs and nixos channels. i've tried installing from both with the same results.
<tilpner>
ivanivan - nixos-17.09 has binary substitutes available, I just installed it without building
<tobiasBora>
tilpner:Ok thank you!
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<tilpner>
ivanivan - Paste the output of "nix show-config" to gist.github.com please
* tilpner
hopes that's a nixStable thing
ssmike has quit [(Ping timeout: 240 seconds)]
<cbarrett>
If there was an effort to get a FreeBSD stdenv going I'd hack on it
<ivanivan>
tilpner: i don't have a "nix" command (not on nixos). is there a nix-env equivalent?
<tilpner>
It's not... of course
<tilpner>
I guess you can paste /etc/nix/nix.conf, but it has way less info
python476 has joined #nixos
<neonfuz>
Hey
<neonfuz>
so I have an issue
srdqty has quit [(Ping timeout: 260 seconds)]
<neonfuz>
my wireless is unstable (that's another issue), but whenever my internet goes out and comes back (after I manually restart the wpa_supplicant daemon), firefox won't load pages
srdqty has joined #nixos
<ivanivan>
tilpner: i don't even have a /etc/nix/ directory. the manual for nix mentions sysconfdir/nix/nix.conf but doesn't say how to discover what sysconfdir is. i do have a ~/.config/nixpkgs/config.nix if that's at all useful
<neonfuz>
and it's more specific than that: if I tried refreshing while my wifi is down, when it comes back I can't refresh to load the page, BUT I can open new tabs to a different domain, BUT if I copy paste the url of a tab that won't load, it won't load that url
<neonfuz>
so it seems like some sort of bizarre thing where it tries to resolve a domain while the internet is down, see's that it's down, and caches that
<neonfuz>
that's the only sort of explanation I can think of as to why I can load new urls but not old ones
<neonfuz>
but I'm wondering if somehow nixos regenerating my /etc/resolv.conf is messing with firefox? or some other sort of firefox / os interaction?
<neonfuz>
or some compile flag for firefox that needs to be set?
Wizek_ has quit [(Ping timeout: 240 seconds)]
srdqty has quit [(Client Quit)]
srdqty has joined #nixos
<ivanivan>
tilpner: wow, got nothing
<ivanivan>
even with sudo
<tilpner>
I don't have that particular issue, and you'd probably not ask if you were using e.g. dnsmasq... If you don't find answers here, maybe mozilla/#firefox knows more about caching behaviour of FF
noobly has quit [(Ping timeout: 260 seconds)]
<ivanivan>
tilpner: i do have a /nix/var/nix/ directory, though no nix.conf in there
<tilpner>
ivanivan - Sorry, I don't think I can help you. I don't have any experience with Nix outside of NixOS :/
srdqty has quit [(Ping timeout: 268 seconds)]
<ivanivan>
tilpner: s'alright, I appreciate the attempt :)
<matthewbauer>
cbarrett: I think you can get nix on freebsd. stdenv isn't pure though
<ivanivan>
i need to find a different terminal emulator anyway, as alacritty doesn't seem to like my system