<OmnipotentEntity>
For people who are searching through logs in the future. To enable BaseMosaic on a 2 GPU NVidia setup so that I could use a third monitor, I generated an xorg.conf using the nvidia-settings tool, I extracted the Screen section (not including the Section "Screen" and EndSection parts), then I put it as a string into the configuration variable services.xserver.screenSection, I also needed to remove the line `Identifier "Screen0"`
<romanofski>
I built a library with enableDebugging and it produced a non-stripped library.. yet when I try to load the library or the depending executable gdb is telling me that no debugging symbols were found... did I miss anything? (partially followed: https://nixos.wiki/wiki/Debug_Symbols)
black-brick has quit [Ping timeout: 256 seconds]
<benwaffle[m]>
ooh, `nix-shell` is nice if e.g. i don't want to install redis on my laptop but i want to connect redis-cli to my docker container, I can just run `nix-shell -p redis`
jluttine has joined #nixos
<{^_^}>
[nixpkgs] @fpletz pushed 4 commits to release-19.03: https://git.io/fhAag
eadwu has joined #nixos
<Ashy>
i can't find any reference to updating the nixos doco for wayland in the wayland project on github or in the PR list etc
<Ashy>
is anyone working on the documentation for it?
<Ashy>
if not what's a good way for me to start a work in progress chapter for the nixos manual?
jluttine has quit [Ping timeout: 250 seconds]
<Ashy>
just send a PR to start the discussion?
<bemeurer>
hyperfekt: Yeah, interestingly it builds just fine on Travis
<thelounge52>
Is it possible to get some help with nixos-install? I'm getting `error: file 'nixpkgs/nixos' was not found in the Nix search path (add it using $NIX_PATH or -I)` after following Installing through a chroot (https://nixos.wiki/wiki/Installing_from_Linux)
eadwu has quit [Quit: WeeChat 2.4]
<thelounge52>
Been at it for several hours
__monty__ has quit [Quit: leaving]
ixxie has quit [Ping timeout: 246 seconds]
<ajs124>
thelounge52, what's in your NIX_PATH environment variable?
<ajs124>
and what's in /nix/var/nix/profiles/per-user/root/channels/nixos?
init_6 has quit [Read error: Connection reset by peer]
<thelounge52>
I don't have a "channels" dir/symlink in /nix/var/nix/profiles/per-user/root
eadwu has joined #nixos
<ajs124>
that's a problem. I don't remember installing nixos from another distro, but basically, what nixos-install is telling you is that it's not finding a nixpkgs checkout
<ajs124>
you can simply arrange for one in a location of your choice via a method of your choice and then point it at that. although you obviously shouldn't need to do that
<{^_^}>
[nixpkgs] @fpletz pushed 16 commits to release-19.03: https://git.io/fhAVq
<{^_^}>
[nixpkgs] @marsam opened pull request #56622 → shadowsocks-rust: init at 1.7.0 → https://git.io/fhAVm
<thelounge52>
I did so, but I'm getting "error: file 'nixpkgs/nixos' was not found in the Nix search path (add it using $NIX_PATH or -I)". I had this error before too
init_6 has joined #nixos
<ajs124>
how are you telling nixos-install about the path to the checkout?
<hyperfekt>
okay i can now apply .diffs to nixos but apparently i can't use the cache anymore :<
<lmat>
edef: Exactly like that. Maybe you're not running on a dead badget after all ^_^
<lmat>
perhaps you're using irssi?
<{^_^}>
[nixpkgs] @fpletz pushed 6 commits to release-19.03: https://git.io/fhAVw
<lmat>
Oh, is that why my terminal keeps "bell"ing!?
ym555 has joined #nixos
<lmat>
It keeps making that noise, and I couldn't figure out what it is; must be those notices
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhAVr
<lmat>
yup
<edef>
lmat: i am using irssi, yes
<{^_^}>
[nixpkgs] @aanderse opened pull request #56625 → set phpOptions per phpfpm pool, instead of applying to every phpfpm pool → https://git.io/fhAVK
<vivian_darkbloom>
Hey so I just installed nixos and now I need to connect to the internet to install packages. Funny enough, iw is not one of those packages included. Any thoughts on how I might connect to the network? It's not encrypted
<vivian_darkbloom>
Or should I just edit the config files and redo nixos-install. If so what should I add to the config files? Thanks
<srhb>
vivian_darkbloom: Redoing nixos-install is perfectly viable. Making sure that the install is internet-viable is somewhat important in this model :)
<vivian_darkbloom>
Hahaha
<srhb>
vivian_darkbloom: You'd mostly just need to redo all the mounts, edit your configuration and then do nixos-install again.
<srhb>
vivian_darkbloom: (I tend to prefer enabling networkmanager since I'm lazy)
<vivian_darkbloom>
hm. I really like netctl from Arch Linux, I wonder if that's available
srl295 has joined #nixos
<srhb>
vivian_darkbloom: It really is an Arch thing, I don't think we have something like it.
<srhb>
vivian_darkbloom: Recent network-managers have an nmtui command which is... Tolerable.
<srhb>
vivian_darkbloom: You're also free to use plain supplicant, but.. I think it's a relatively poor user experience.
<vivian_darkbloom>
:( yeah that's one of those things that annoys me whenever I try to leave Arch... Despite the fact that all their tools are written in bash and c they're actually pretty nice
<srhb>
Regardless, having *something* once you boot the real system is the important bit :)
<srhb>
You can always adjust later.
simukis has quit [Quit: simukis]
silver has quit [Read error: Connection reset by peer]
<vivian_darkbloom>
^^ I am kind of impressed by nix' installation process. One of the simplest I've seen so far
<srhb>
That's nice to hear!
<aanderse>
srhb: have a moment to help me out? i'm wondering what i'm messing up now with some ofborg testing...
<aanderse>
i ask ofborg to test redmine_3 and redmine_4
rprije has joined #nixos
<aanderse>
no test run because attribute 'redmine_3' in selection path 'tests.redmine_3' not found
<aanderse>
same for 4
<aanderse>
under nixos/tests/redmine.nix i have a redmine_3 and a redmine_4 test defined
<srhb>
aanderse: The entry point for ofborg is nixos/release.nix
<srhb>
aanderse: (or close to that)
<srhb>
aanderse: If you try nix-build nixos/release.nix -A redmine_3, you'll see there's no such thing
<srhb>
On the other hand, there _is_ an redmine.readmine_3 and redmine.redmine_4
<srhb>
So if you ask ofborg to check those, you're good.
black-brick has quit [Ping timeout: 256 seconds]
<srhb>
vivian_darkbloom: fwiw I think we could still present the process better. imo section 2.4 (installation summary) should be the very first thing new installees should be presented, because the conceptual overview is great (although the nano step really does need a great big disclaimer about what it really entails)
<vivian_darkbloom>
So what packages does a bare nixos install include? Like if you don't set any systemPackages I'm assuming bash is included
<srhb>
vivian_darkbloom: Right, it is. Basically there's a bunch of NixOS modules that are "enabled" by default, and they set environment.systemPackages to some list of packages
<srhb>
vivian_darkbloom: Each list of environment.systemPackages in different modules are concatenated together.
<srhb>
vivian_darkbloom: You'll see it's not actually possible to disable it (at least, not without forcibly preventing the import of the module, which will probably break your system in !FUN! ways)
<tA>
any idea why mpd wont detect my music library? ive set services.mpd.musicDirectory to the right path
<vivian_darkbloom>
Haha breaking Linux systems in !FUN! ways is my hobby, but only if the system's Debian >:)
<srhb>
vivian_darkbloom: Fair :-P
<hyperfekt>
srhb: it'll probably break a lot less than many other distros i would guess? since the interprete paths are patched
<srhb>
hyperfekt: Yes, very likely. Not just for that reason though, but the fact that the bash interpreter itself is ensured to be in /run/current-system/sw for other reasons than this module.
<srhb>
but yeah, the fully qualified shebangs make a huge difference for sure.
<srhb>
I'm mostly trying to say "don't disable this module" :-P
<srhb>
Anyway, bedtime. o/
<gchristensen>
srhb: your bed time? its _my_ bedtime :o
<srhb>
gchristensen: >_> Long friday. I swear I'm a responsible person. At times.
<gchristensen>
you do you, just know we're on the same schedule.
<hyperfekt>
what a coincidence, i was also about to go to bed
<gchristensen>
;)
<srhb>
I will take note :D
shibboleth has quit [Quit: shibboleth]
shibboleth has joined #nixos
shibboleth has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @disassembler pushed 2 commits to master: https://git.io/fhAre
<hyperfekt>
tA: What's the issue? The module seems to have sensible defaults. looks like the most important setting is dataDir, depending on where you have yours.
<vivian_darkbloom>
In nixos, should you still do sudo systemctl enable, and if not, what else should you use to enable services
<clever>
vivian_darkbloom: enable doesnt work on nixos
<hyperfekt>
tA: Mind that by default a new user is created with the name mpd to run the service which needs access to the data directory.
<tA>
hyperfekt: whats the difference between musicDir and dataDir?
<clever>
vivian_darkbloom: all services are enabled by editing configuration.nix and doing a nixos-rebuild switch
<{^_^}>
[nixpkgs] @disassembler pushed 2 commits to master: https://git.io/fhArf
<vivian_darkbloom>
clever: thanks
<hyperfekt>
tA: There's MusicDirectory, which seems to be normally a subdirectory of dataDir and contains the music files themselves I would guess. dataDir contains others as well, like playlists
<tA>
hyperfekt: i have dataDir at whatever the default is, and musicDir set to my folder, which ive chowned to mpd:audio
init_6 has joined #nixos
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
o1lo01ol1o has quit [Remote host closed the connection]
<tA>
sorry for all the music questions, but does the version of ncmpcpp in the repos not have visualiser support? or is there something from my config ive got missing?
<bemeurer>
If I am using Nix outside of NixOS (Gentoo) how can I add a new channel? Is it just `nix-channel --add https://nixos.org/channels/nixos-unstable nixpkgs` ?
<pksato>
read about the new exciting pedo-friendly linux distribution https://exherbo.com/
pksato has joined #nixos
pksato has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<andymandias>
I'm having trouble with getting fish-completions built even though it appears my very issue is fixed in the GitHub issue https://github.com/NixOS/nixpkgs/issues/56432
<{^_^}>
#56432 (by callahad, 3 days ago, closed): Collision between btrfs-progs and dosfstools, prevents nixos-rebuild
<andymandias>
if there's anyone who could handhold me through why it's not working for me, I'm a bit lost
iyzsong has quit [Ping timeout: 252 seconds]
mobile_c has quit [Read error: Connection reset by peer]
<srhb>
andymandias: What's your exact problem? :)
<andymandias>
well, as near as I can tell I need to get ignoreCollisions set for the buildEnv of the fish package? but I'm not entirely sure how to do so
mobile_c has joined #nixos
<srhb>
andymandias: What's it colliding with?
<{^_^}>
[nixpkgs] @Kaali opened pull request #56673 → Add Darwin support for ccls → https://git.io/fhA6d
binBASH has joined #nixos
<binBASH>
read about the new exciting pedo-friendly linux distribution https://exherbo.com/
binBASH has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<andymandias>
I think, possibly wrong here, that fish-completions are being built for each non-fish package that supports fish completions... and the versions generated for different packages are colliding
<andymandias>
giving errors like "collision between `/nix/store/c4mr5y71ri1i8ryv91q755ajkyrla96f-procps-3.3.15-fish-completions/kill.fish' and `/nix/store/ybgxpd7yz9d6513gg3knwvlzfc0zy9a9-coreutils-8.30-fish-completions/kill.fish'"
cyphase has joined #nixos
<andymandias>
where the collision is between procps fish completions and coreutils fish completions I suppose
<andymandias>
fish had been working fine up until I tried to do a nixos-rebuild switch today, so I'm hoping the collisions are not actually serious
Erasmus has quit [Quit: END-AUMF]
<srhb>
andymandias: I'm sure they're not (if it's just fish completions) but I'm wondering why you're suddenly seeing that.
shah^ has joined #nixos
<andymandias>
I'm wondering the same
<srhb>
andymandias: Is this on 18.09? How recent is your channel?
Glider_IRC__ has joined #nixos
<andymandias>
19.03, had previously been on unstable
<srhb>
andymandias: 19.03 is pretty much unstable insofar as it is not released yet.
simukis has joined #nixos
<andymandias>
oh, I see!
<andymandias>
I'll try 18.09
<jasongrossman>
I just assumed that the fix for this had not yet worked its way through to unstable, since unstable hasn't been updated for three days. It works fine for me in 18.09 ...
mobile_c has quit [Read error: Connection reset by peer]
<jasongrossman>
... and should work soon in unstable, I believe.
<srhb>
jasongrossman: Yeah, that's what I'm seeing too.
<srhb>
It is indeed in release-19.03 but not in nixos-19.03 yet. Mystery solved :)
<jasongrossman>
srhb++
<{^_^}>
srhb's karma got increased to 33
<jasongrossman>
I was right, but too lazy to check.
<srhb>
jasongrossman: ;)
<andymandias>
aha! okay so to make sure I'm understanding the fix should essentially be switch to 18.09 (and if I need 19.03 for some reason check back in a few days)?
Glider_IRC_ has quit [Ping timeout: 245 seconds]
mobile_c has joined #nixos
<srhb>
andymandias: Yes, it's in the release branch for 19.03 but it has not yet made it through CI due to failing tests, so the channel has not advanced yet.
<andymandias>
roger, thanks! much appreciated
<srhb>
Mind, 19.03 will not be released for approximately a month, so, same disclaimer as before :-)
Ariakenom has quit [Quit: Leaving]
<andymandias>
understood, had erroneously assumed because it showed up in https://nixos.org/channels/ it was the latest stable
mobile_c has quit [Read error: Connection reset by peer]
<pbb>
Hi, I'm writing a tool to visualize the dependencies of a nix derivation, similar to npm.anvaka.com. Is there any way to get the list of runtime dependencies from the binary cache without downloading the whole package? I can tell the build time dependencies by evaluating the package without building it, but the runtime dependencies can only be determined after the package is built, and I don't want to build every package i want to visualize.
<sluidfoe>
read about the new exciting pedo-friendly linux distribution https://exherbo.com/
erictapen has quit [Ping timeout: 250 seconds]
sinner has joined #nixos
erictapen has joined #nixos
sinner is now known as Guest38658
<{^_^}>
[nixpkgs] @volth opened pull request #56682 → network-scripting: do not run resolvconf if /etc/resolv.conf is managed manually → https://git.io/fhAPs
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fhAP8
<nh2[m]>
ah, this works:
<nh2[m]>
`nix-env -i --from-expression 'active: let x = (import <nixpkgs> {}); in x.mumble'`
<nh2[m]>
I guess that's what `If --from-expression is given, args are Nix functions that are called with the active Nix expression as their single argument.` means from the man page.
<nh2[m]>
Not sure what "the active expression" is though
<clever>
nh2[m]: nix-env -E requires that the expression be a function, and it will pass it the list of default expressions (from ~/.nix-defexpr/)
<clever>
that is the same list that nix-env -iA nixos.mumble is pulling from
thc202 has joined #nixos
<pbb>
tilpner: how would I use nix-store to determine the build time graph without pulling the derivation to my nix store?
<joko>
Hey, I am preparing a FileZilla update and is currently segfaulting, could anyone help me debug it?
jb55 has quit [Ping timeout: 245 seconds]
<pbb>
tilpner: I tried `nix-store --graphml -q /nix/store/az7pr7bsak70fyc539ic94lifj6282vn-gnome-control-center-3.30.3` without gnome-control-center installed, and it didn't give me the dependency graph
<{^_^}>
[nixpkgs] @srhb pushed commit from @pbogdan to release-19.03 « nixos/manual: fix build »: https://git.io/fhAXc
<teto>
could anyone have a look (aka merge if ok) https://github.com/NixOS/nixpkgs/pull/56191 ? I am working on a bunch of vim-plugins and it's painful not to be able to run the update script.py
<{^_^}>
#56191 (by tobim, 1 week ago, open): Restrict vim update.py to generated.nix
<{^_^}>
[nixpkgs] @jokogr opened pull request #56692 → pugixml: Fix pkg-config file installation and use fetchFromGitHub → https://git.io/fhAXP
<{^_^}>
[nixpkgs] @dotlambda closed pull request #56508 → python3Packages.aiounifi: init at 4 + a few other minor updates to satisfy HA → https://git.io/fhN9V
astrofog has quit [Remote host closed the connection]
<kyren>
hey, I'm doing a fresh install of nix on a new macos machine, and I'm getting 'error: unexpected end-of-file' on simple nix-shell invocations
<kyren>
in my /var/log/nix-daemon.log are lines like 'libc++abi.dylib: terminating with uncaught exception of type nix::Interrupted: interrupted by the user'
<kyren>
my google searches have led me to mojave bugs, but they all look resolved as of right now
<kyren>
possible confounding factors are that this is a restore from a backup with a previous nix install which I attempted to remove completely (but may not have)
<lejonet>
srhb: I'm now deploying ceph-13.2.4 to a machine that has never used ceph before, so not even a remote chance that the new ceph won't be used, so even more testing of the client part of ceph :D
Makaveli7 has quit [Quit: Leaving]
jomik has quit [Ping timeout: 244 seconds]
Ariakenom has joined #nixos
i1nfusion has quit [Remote host closed the connection]
Makaveli7 has joined #nixos
lawlesseel has joined #nixos
<kyren>
okay, so it turns out this is only a problem for my *user* account, root can use nix-shell, but my user account cannot nor can it install things with nix-env, the nix-env -i error is something like: Problem with the SSL CA cert (path? access rights?) (77)
immae has quit [Quit: WeeChat 2.3]
b has joined #nixos
rprije has quit [Ping timeout: 250 seconds]
<kyren>
ugh, okay I finally figured it out, it had something to do with stale channels? in root
arjen-jonathan has quit [Ping timeout: 264 seconds]
iyzsong has quit [Ping timeout: 259 seconds]
illegalprime has quit [Remote host closed the connection]
<srhb>
pbb: Not currently, we're just building a tooooon of stuff.
<pbb>
okay
<srhb>
pbb: That's why we have a nice binary cache after all :-)
<pbb>
yeah it's just really annoying that my rebuilds have been failing for days
endformationage has joined #nixos
<srhb>
pbb: If you feel "safe" you can always run the particular commit you want for a while.
<srhb>
But mind, these tests are there for your system's safety.
<srhb>
pbb: Multi-week delays are not at all uncommon on unstable, fwiw.
<srhb>
If you want fast fixes, the stable branches are the way to go.
<pbb>
I guess I should consider a stable installation with a few unstable packages again
<srhb>
Or using overlays to fix up packages locally when there's breakage like this, say..
<srhb>
Lots of options :)+
<pbb>
for now I will switch to nixpkgs master, I've already done so on my desktop and laptop without issues, just my servers are using the channel for automatic updates
lejonet has quit [Ping timeout: 244 seconds]
<pbb>
to be clear, I'm very aware that stuff on unstable breaks, I just find it annoying that the fix is there since 4 days but I can't get it through the channel
<{^_^}>
#34941 (by volth, 1 year ago, open): security.acme: simp_le -> dehydrated or certbot or acme.sh or lego
lejonet has joined #nixos
<philipp[m]>
emily: Maybe I should give it another shot. I've got my own dehydrated setup, but it's far from pr ready. Far.
<srhb>
pbb: I understand the annoyance. It's hard to avoid. :) The entire purpose of the channel is to run these tests and build these packages. If someone doesn't want that wait and is willing to run an arbitrarily untested commit, they can do so.
<srhb>
pbb: I think that's the best we can do..
<srhb>
pbb: (Well, more Hydra hardware is probably always welcome to speed things up.. :-P)
<pbb>
haha, I think I don't have anything big enough to make a difference
<ottidmes>
emily: I am using dehydrated too after problems with simp_le
<srhb>
Yeah, same here.. :)
<pbb>
I guess I'll have to find a way to do automatic updates on nixpkgs master, since the nixos-upgrade mechanism is only designed for use with channels
<pbb>
(and if I switch my servers to master now, it will go back to the channel tomorrow)
<emily>
yeah, I was planning on going for dehydrated
<emily>
although lego also looks decent
<emily>
good to know other people feel vaguely obligated to do it and I don't have to worry about it >.>
<emily>
(I'd also be happy just seeing people's setups for dehydrated to rip off, fwiw, especially if using DNS-01)
<le_jonge>
does anybody have a nixos instance on vpsfree.cz?
<Izorkin>
aanderse: What needs to be done next with submodules?
<manveru>
le_jonge: i do
stepcut has joined #nixos
<le_jonge>
manveru: i just registered freshly and logged in for the first time. it's running nixos 17.03 - wanted to upgrade to 18.09, but i run into problems if i just override the nixos channel and then do nixos-rebuild. is that something you have done successfully?
<aanderse>
Izorkin: well as it stands if you try to run almost any submodule it would fail
<aanderse>
your PR makes it so that none of those startup scripts are run as root anymore, and most of them rely on being run as root
<aanderse>
Izorkin: added a list of things i think need to happen first
vidbina has quit [Ping timeout: 264 seconds]
<Izorkin>
aanderse: ok
<aanderse>
Izorkin: also, i was wondering, how many distros run apache as non root?
vidbina has joined #nixos
<aanderse>
running apache as root is *the* standard, and concrete
<aanderse>
i'm all for your PR and i want to see it happen
<aanderse>
but i'd love to hear other about other distros running it as non root
<aanderse>
and have it tested
<aanderse>
after your PR is complete i might switch a dev web server at work to run this way
<aanderse>
see how that goes
<aanderse>
then try a production one
<Izorkin>
aanderse: I do not know too
<aanderse>
a non important production one... something that gets traffic
<aanderse>
because apache was really developed to run as root
<aanderse>
so i just want to make sure i don't end up screwed with a dozen apache servers running rootless in prod and having weird side effects in a year from now
<Izorkin>
aanderse: I checked the launch nginx and httpd, worked.
<aanderse>
i don't expect that to happen... but i just want to make sure thorough testing is completed
<Izorkin>
aanderse: nginx unit not worked, need root acces
orivej has quit [Ping timeout: 250 seconds]
m0rphism has joined #nixos
<aanderse>
Izorkin: i work at an apache shop, so can't really comment on nginx much, never really used it
lukego has joined #nixos
<lukego>
Hey, any ideas about how to get around this error? It's for an expression that works fine on my machine but errors like this on Travis-CI: /bin/sh: relocation error: /nix/store/7gx4kiv5m0i7d7qkixq2cwzbr10lvxwc-glibc-2.27/lib/libc.so.6: symbol _dl_exception_create, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference
klimi has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @hedning opened pull request #56705 → Fix trash-cli and meld's checkPhase after #53440 → https://git.io/fhAD9
jcob has joined #nixos
<jcob>
Hey all so I'm new to nixos and I have a few problems. 1. Eclipse. I need eclispe working for school stuff, with plugins. How the hecc am I supposed to use nix with eclipse?
<jcob>
2. Because I had to get something done last night, I went crazy with nix env -iA for a bit. How do I go back and remove all the packages I installed via that?
<jcob>
thanks
<__monty__>
jcob: nix-env -q lists the names nix-env -e lets you remove them by name.
<jcob>
Ah, thanks __monty__ :)
<__monty__>
nix-env -q > toberemoved.txt; vim toberemoved.txt; nix-env -e <toberemoved.txt # or something similar might work.
<__monty__>
The vim step is so you don't uninstall everything.
<jcob>
> using vim instead of emacs mfw
<{^_^}>
undefined variable 'using' at (string):219:1
<jcob>
oh and #3 nix puts everything in weird spots is there a rhyme or reason to it?
<jcob>
and by "everything" i mean build artifacts/software/libs etc
<tilpner>
nix-env -e \* works too, if you want to get rid of everything
<tilpner>
You'll have to ask that again in a little more detail
<tilpner>
(Answering "why is Nix weird?" is way too open-ended)
<drakonis>
copumpkin: i think your hardware is compromised? i spotted you appear in another network and spam channels
<tilpner>
drakonis: Check if they were registered on that network, and for how long
<jcob>
I guess I'll just have to learn it by experience why nix is weird haha
<drakonis>
unregistered
<jcob>
but also. Does anyone have a configured eclipse in nix
<jcob>
and if so how
<jcob>
like for instance if I wanted to add the pluging egit
<jcob>
what do
<tilpner>
drakonis: Then I see no reason to assume copumpkin has compromised hardware or secrets
<drakonis>
i have also seen folks i know from other channels show up
work_ has joined #nixos
<tilpner>
They probably just reuse names from public channels
imalsogreg has joined #nixos
<ottidmes>
is it possible to get the the runtime dependencies of a package at runtime in Nix (so not via nix-store)? not just buildInputs, but also things that are part of the string contexts used in the package?
<drakonis>
alright
<tilpner>
Easier than generating believable names
<copumpkin>
drakonis: huh?
<samueldr>
drakonis: #nixos-chat for further discussion, but it's "ye old freenode spam" that's back
<drakonis>
yes
<samueldr>
drakonis: was it on another irc server?
<jomik>
Am I missing something to get that feature? - I am building a plugin myself (defx).
<symphorien>
do you use vam or vundle or native nix plugins ?
<symphorien>
there is an issue where it only works with native nix plugins
NKataDelYoda has joined #nixos
<NKataDelYoda>
I've submitted a PR in nixpkgs, for a simple documentation update. I really struggled to find the correct process, branch, etc. for doing this, and now the PR is stagnant. Would appreciate some feedback/guidance :) https://github.com/NixOS/nixpkgs/pull/56415
<{^_^}>
#56415 (by BenSchZA, 3 days ago, open): nixos/jupyter: Fix documentation example for `jupyter.kernels`
<NKataDelYoda>
It says `Failed to enumerate outputs after merging to master`
<ottidmes>
NKataDelYoda: its quite normal for a PR to take quite a few days to be processed, its a volunteers and a lot of PRs are generated
<symphorien>
sorry I don't know, jomik
<jomik>
Damn :D Oh well, thanks :)
<ottidmes>
NKataDelYoda: also, I think your PR is not quite doing what you want, its an example, so it should not evaluate the actual example, which is does right now. You have to quote the string interpolation: "\${env.interpreter}"
<jcob>
is there some development bundle like build-essential but for nixos
<jcob>
does nix even do bundling of packages?
vidbina has quit [Read error: Connection reset by peer]
<ottidmes>
NKataDelYoda: Also, since there is an upcomming new stable release, the focus will be on that and less so on new PRs, so it probably will take slightly longer than usual
<simpson>
jcob: It sounds like you might be trying to build packages by installing build tools into your environment. This is an antipattern. What are you trying to do?
<jomik>
jcob: I don't think we have build essentials. I personally don't have any build tools installed system wide. I use nix-shell and a shell.nix file to set up an environment.
<jomik>
As simpson says.
<jcob>
simpson: oh nah I'm trying to set up my system for development
<jcob>
So I guess every project you make should have a nix file that you use to get make etc?
<simpson>
jcob: Generally, yeah, but for many projects you'll be able to reuse the nixpkgs expression. You may be surprised at how little Nix has to be written sometimes.
m0rphism has quit [Quit: WeeChat 2.4]
<simpson>
To be pithy, a fresh Nix installation is usually already set up for development.
jtojnar_ has quit [Client Quit]
<jcob>
I wonder how well that works with emacs though, given that emacs runs a single instance on your computer no matter how many directories your dealing with
<jcob>
i'll have to figure that out
vidbina has quit [Ping timeout: 250 seconds]
<manveru>
jcob: i recommend the direnv package for emacs
<jcob>
Odd, direnv doesnt use tramp(?) skimming over the code
<simpson>
jcob: Part of the Nix philosophy is that once we have a derivation for it, then it doesn't matter what it's written in, just what its API is.
mlen has joined #nixos
<jcob>
it seems like this would be a perfect tramp usecase
jtojnar_ has joined #nixos
jtojnar_ has quit [Remote host closed the connection]
jtojnar has joined #nixos
jtojnar has quit [Remote host closed the connection]
<jcob>
oh nvm I see, it updates process-environment and shell-path. I guess its a souped up version of exec-path-from shell
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhAya
<simpson>
manveru++ for direnv, interesting stuff.
<{^_^}>
manveru's karma got increased to 3
<jcob>
I must admit I am a little skeptical of direnv, just because I've never seen it before and playing around with the mess that is unix environment variables is like playing with fire
<NKataDelYoda>
ottidmes: Thank you! I realize it's just an example, but when using the example or a variation of it as the config option it doesn't evaluate properly, so that's what I corrected (I think). Regarding taking time, I appreciate that, just wasn't confident during the PR process, and think the contributor documentation is either hard to find or hard to follow - without some guidance maybe :)
gagbo has joined #nixos
OmnipotentEntity has quit [Remote host closed the connection]
<jomik>
You may want my direnvrc https://github.com/Jomik/dotfiles/blob/master/.config/direnv/direnvrc It is a bit involved, but it cleans out some env variables. PYTHONPATH and TE?MP(DIR)? should not be set, because it messes up with some programs - it messed up emacsclient and thefuck, for me.
<jomik>
jcob: I have had no problems with it loading/unloading stuff it shouldn't.
<jcob>
oof. Are you able to use emacsclient now jomik ?
<jomik>
Yep
<jomik>
I removed all `TE?MP(DIR)?` variables and that fixed emacsclient.
<jcob>
phew. I cant live without emacsclient
<jomik>
You can see my emacs set up with nix in that repo too.
<jcob>
speaking of which is there any chance you use lucid emacs
<jcob>
ok ill look through for sure haha
<jomik>
It is a bit involved as well - nix handles all my emacs config :P
<jomik>
I don't use lucid emacs :D
<jcob>
traitor to emacslisp smh
<jomik>
Hah, I am actually in the process of switching back to n?vim :D
<jcob>
:(
<jomik>
Evil has some quirky faults at times -.-
<jcob>
haha. I like evil more than vim actually
<jomik>
I do for some things, sure - but it drops my repeat quite often for some reason.
<jcob>
you just have to write ~10000 lines of emacs lisp and it will work exactly like you want ;)
<manveru>
i just use spacemacs for that tbh :P
<jcob>
Hm, I've never had a problem with it dropping
<jomik>
I can then do something like `init-envrc gnumake` to get a direnv with gnumake in.
<jcob>
ooh nice. Ill have to write that as an elisp function for sure haha
zupo has joined #nixos
<ivan>
did anything change about how buildInputs works in the last few days?
<noonien>
is there a way to profile nix?
<noonien>
i'm running nixos-rebuild on a raspberry pi zero w, and it starts really slow
<jomik>
What, do you use elisp in your terminal too? :P
<__monty__>
noonien: Expect it to end somewhere in the far future.
<tilpner>
noonien: You can pass different amount of "-v" (e.g. -vvvv) to nix, to get more info about what it's doing
<noonien>
oh, cool!
<tilpner>
noonien: If you wanted to profile Nix (the language), there is NIX_SHOW_STATS=1 NIX_COUNT_CALLS=1
<tilpner>
(If we're being strict, you can't profile languages. But you got what I meant)
zupo has quit [Ping timeout: 240 seconds]
jcob has quit [Ping timeout: 256 seconds]
<noonien>
i'm trying to get nixos running on it,, and i'm not really having any success so far. the sd image i have, i think, is build on an old version of the unstable channel
<noonien>
i'm trying to setup building on another machine(which also has a different architecture), but even so, just adding the buildMachines config makes nixos-rebuild fail
<samueldr>
noonien: if you started from dezgeg's image (linked on the nixos on arm wiki section) it's likely to be from ~september
<noonien>
running a rebuild without the config does nothing, as expected
<noonien>
samueldr: yes, i am
vid has joined #nixos
<noonien>
the pi zero only has one core, which kind of makes it also impossible to build stuff locally
vid is now known as Guest68667
<noonien>
btw, if i switch the channel to 18.09, that should work without problems, right?
<samueldr>
noonien: same as the other "raspberry pi 1" family, a pain to build locally :/
<samueldr>
you'll need to build, that's for sure
<{^_^}>
[nixpkgs] @offlinehacker opened pull request #56718 → brig: init at 0.3.0 → https://git.io/fhASo
<noonien>
if i set a x86_64 as a build machine, would nix be able to cross-compile?
<samueldr>
but it's likely that since the image you used as a base was built from unstable about when 18.09 was forked off, 18.09 should build
vidbina has quit [Read error: Connection reset by peer]
mizmorYodh has joined #nixos
<samueldr>
those images were built on a raspberry pi (for native compilation)
<samueldr>
cross-compilation with nix and nixpkgs is "incompatible" with native compilation, since the inputs are different
<noonien>
yes, i tried to build an image myself and could not
<samueldr>
so the answer is: maybe
<noonien>
hmm
<noonien>
i wonder if i can find a cloud provider with a lot of arm cores
<samueldr>
they'd have to be armv6
<noonien>
i see
<samueldr>
since some software detect features from the CPU
<samueldr>
and while armv7 can run armv6 code, and build for it, it might emit armv7 instructions
<noonien>
hmm, i wonder if qemu would work
Ralith_ has quit [Ping timeout: 245 seconds]
<samueldr>
qemu-system will, with some setup, but be slow
novakovic has joined #nixos
<samueldr>
qemu-user might, should, but last time I tried (1.5y ago) it seemingly had an issue
<jcob>
And i guess that config/nixpkgs is using home manager?
<jomik>
I also use home-manager and not a system wide configuration, so I have that in my `~/.config/nixpkgs/` I load that overlay in my home.nix then.
<jcob>
this is fun: emacs is unable to find any of the fonts I have installed through home manager
<andrewmiller>
Where does emacs look and where does home manager put them?
<leotaku>
jcob: nixos or nix on other distro/darwin?
<jcob>
leotaku: nixos
<leotaku>
jcob: then I have no clue
<jomik>
jcob: how did you install them in home-manager?
zupo has joined #nixos
<jcob>
I did home.packages = (with pkgs; [ ... fira-mono ... ]);
<jomik>
IIUC fonts need to be installed in the system? Can you install fonts as a user on linux normally? I think you need root, right? I have my fonts in my `/etc/nixos/configuration.nix` in the `fonts.fonts` property.
<jcob>
you usually can install in the system
<jcob>
theres like a .local font area
<leotaku>
have you tried running "fc-cache" manually?
<jomik>
Ooh, I guess actually true
<jcob>
Yeah fc-cache -f
<jcob>
if i do fc-list | grep Fira it shows up
linarcx has joined #nixos
<jomik>
Oooh, nice to know! I guess I'll move my fonts to home-manager then :D
<jcob>
emacs is and always has been fickle with fonts though
<linarcx>
Hi. I'm planning to install nixos from minimal iso into hard disk. So I Burn it into a USB flash drive, and follow the manual on the nixos website. In section 2.1.1 it says that to configure wifi internet you must enter this command: wpa_supplicant -B -i interface -c <(wpa_passphrase 'SSID' 'key'). After I enter, it says: Successfully initialized wpa_supplicant. But I can't ping any web site like Google. It says: Ping www.google.com : name or service
<linarcx>
not known. What's the problem?
<leotaku>
jcob: Have you restarted Emacs since installing the font?
<suzu>
uh so
<suzu>
nixos locked me out of my machine
<suzu>
> stopping the following units: sshd.service
<{^_^}>
error: syntax error, unexpected ':', expecting ')', at (string):219:29
<suzu>
i don't know why it did this
<jcob>
leotaku: yep
<suzu>
any ideas on how i can get back in lol
regulus- has quit [Ping timeout: 272 seconds]
ZeDestructor has quit [Quit: o.O]
<averell>
linarcx: maybe you only need dhcp, if you actually connected successfully
<laas>
suzu: I think you might want to boot the minimal installation image
<laas>
and do a nixos-install
<laas>
it won't override your existing stuff btw
<suzu>
yeah i could do that
<linarcx>
How to ensure i have internet connection?
<laas>
it'll just do the equivalent of a nixos-rebuild AFAIK
<suzu>
i overwrote my own nixos-rebuild cmd on the box
<suzu>
so i can't even manually administer it
<suzu>
lol
<laas>
however it may not fix it, since it may be a problem with your configuration
<laas>
dunno how you'd debug it then, --show-trace or something?
<suzu>
yeah i think i may have removed sshd somehow from my box
<leotaku>
jcob: are you by any chance running the systemd "emacs --daemon" service?
<suzu>
by adding nginx
<suzu>
/ is set merge, isn't it?
<suzu>
//
<linarcx>
averal: boot the minimain image? i can't connect to internet. what should i do?
<averell>
linarcx: assuming your wpa_supplicant command succeeded you could try running "dhcpcd"
<linarcx>
averall: ok, i'll try it now.
kreisys has joined #nixos
<suzu>
i think my merge may not be recursive
<Izorkin>
yl[m]: checked pr?
<suzu>
i'm doing (import a.nix) // (import b.nix) // (import c.nix) to make the derivation fro the box
<suzu>
is this stupid
<suzu>
?
<jomik>
jcob: Did you restart emacs and the daemon? I assume you use the service, from earlier :P
<leotaku>
suzu: you would usually just do "imports = [ ./a.nix ./b.nix ./c.nix ];" I belive.
<jcob>
jomik: Actually I dont use the service (yet) i couldnt figure out how to get it to work form home manager
<jcob>
from*
linarcx has quit [Remote host closed the connection]
<suzu>
ok, ill do that instead lol
<jomik>
jcob: `services.emacs.enable = true;`
<le_jonge>
weird. setting "services.hydra.enable = true;" attempts to build hydra from source! when i do `:b pkgs.hydra` in the nix repl, it gets it from the cache. the problem is that some test fails after building from source, so i can't use it. anyone can relate to that?
<jcob>
right but it seems to fail when i do it from home manager
<suzu>
wait i can't
<suzu>
some of my imports take arguments
<jomik>
fail?
<jcob>
i mean home-manager barfs, maybe I just typed it in wrong
<jcob>
tbh im not going to fix that until I've fixed a bunch of other things lol
<suzu>
i'll use builtins.recursiveUpdate
_kwstas has joined #nixos
<suzu>
i can fold it i suppose
<suzu>
with a list
zupo has quit [Ping timeout: 246 seconds]
<leotaku>
jcob: just to make sure, you are just using the "normal" emacs right now? no server/daemon?
<jomik>
jcob: make sure that you are using master home-manager, and not the release-18.09 version :P
<jomik>
But that's probably not this font issue - sorry :P
<noonien>
nixos-rebuild doesn't seem to notice i've changed some nix files, how can i make it aware of these changes?
<suzu>
in lib/lists.nix
<tilpner>
> lib.foldl # suzu
<{^_^}>
<LAMBDA>
<jomik>
noonien: Make sure that they are saved and that they are used :P
<srhb>
noonien: This seems unlikely, unless you're not importing those files in any way.
<suzu>
error: undefined variable 'lib'
<noonien>
they are
<tilpner>
suzu: pkgs.lib.foldl
<noonien>
they're imported, chnged, and saved
<jomik>
tilpner: So odd with all those things on pkgs :P
<srhb>
noonien: What did you change, what did you expect to happen? :)
<suzu>
can my top-level derivation for a nixos machine be a function that takes pkgs?
<jomik>
suzu: Yes.
<noonien>
i have a derivation, which i import in another deivation by using pkgs.CallPackage
<suzu>
great
jcob has joined #nixos
<noonien>
i've uncommented a line, to download more files, however, nix does not seem to noticec
<jcob>
Alright I installed the fonts to my system, then rebooted, and emacs still doesn't recognize them
<jcob>
lol
<noonien>
aaah, i think i know why
<srhb>
noonien: I think we need more details.
<jcob>
Yeah you probably do, I just dont know which are relevant
<noonien>
the derivation has the same sha
<noonien>
i wanted to run it anyway so i get an error so i can get the right sha
<tilpner>
suzu: You generally don't write the top-level derivation yourself. I think you meant the configuration.nix module, which can also take a lib argument
<srhb>
noonien: Maybe you're using a fixed output derivation and you're reusing a sha that's already in the store?
<srhb>
noonien: Right, that ^
<jomik>
noonien: What files? How are they not in use? Remember that nix saves files in a store, even if not in use, so if you uncommented and rebuilt, and they were already present, then you don't need to download them again.
<suzu>
tilpner: this didn't work, i needed to do error: undefined variable 'lib'
<suzu>
err
<srhb>
noonien: 52 zeros should do you :)
<suzu>
{ pkgs ? import <nixpkgs> {} }:
<tilpner>
suzu: Is this still your configuration.nix? Don't import pkgs yourself, it will be provided
<tilpner>
Use the header I sent above
<noonien>
srhb: i just change one letter and let it error out
<suzu>
it is. it was not provided
<jomik>
pkgs.lib
<srhb>
noonien: That works too :-)
<suzu>
i will let this deploy finish and then try your header
<noonien>
srhb: hmm, if i put all zeros, is it automatically changed when the derivation gets built?
<suzu>
i also wish to explore the derivation by hand as a sanity check before i deploy. can i do that?
<srhb>
noonien: Nope, it's just another probably-wrong sha :)
<suzu>
i made a change before that clobbered sshd and locked my box off lol
<noonien>
oh, ok
novakovic has quit [Ping timeout: 250 seconds]
<tilpner>
suzu: Yes, but I don't think it's practical
<suzu>
ok
<tilpner>
I certainly wouldn't have the patience to traverse the gigantic top-level closure to guess if sshd would work
<srhb>
suzu: You can set up a service that reboots into an old generation if you don't log on and execute a certain command.
<jcob>
how are programs supposed to find fonts>
<leotaku>
jcob: how are you choosing your font from emacs "M-x menu-set-font"?
<jcob>
?
<srhb>
suzu: (There's no ready-made solution for this, but it's very useful for remote machines)
JosW has joined #nixos
<jomik>
suzu: you can do a `let inherit (pkgs) lib; in ... ` to get lib into your top level derivation, you can also just take it as an argument, i.e. `{ pkgs, lib, ... }: `
gagbo has quit [Ping timeout: 268 seconds]
<suzu>
kk
<jcob>
leotaku: Nope! Weird, they show up in that one, despite the fact that they didnt show up in list-fontsets etc
<jcob>
thanks!
JosW has quit [Client Quit]
JosW has joined #nixos
<suzu>
hmm something is real wrong
<suzu>
i added nginx but it not accepting connections..
<suzu>
but i saw it build nginx and copy the closure
<srhb>
suzu: By default, only 22 is opened (to avoid being locked out)
<suzu>
{ config, pkgs, lib, ... }:
_kwstas has joined #nixos
<jcob>
leotaku: obvs its untenable to add the fonts to what emacs sees through the gui every time though. Do you have any clue about how they might be added non-interactively?
<suzu>
and it doesn't like it
<suzu>
called without required argument 'config'
_kwstas has quit [Remote host closed the connection]
<srhb>
suzu: Are you sure that that's the arguments to your _machine_ ?
<suzu>
when i nixops deploy -d conf -s statefile
<suzu>
ah
<jomik>
srhb: default says that it is empty tho? Or how is 22 opened? I want to close that :P
<srhb>
suzu: It should not just be at the top of your file.
<suzu>
thats what you meant
<srhb>
jomik: The ssh module opens it
<suzu>
i was wondering if it could be arguments to my _deployment_
<srhb>
suzu: Not easily, no
<suzu>
i suppose not
<srhb>
suzu: The module system does not work like that.
<suzu>
i wanted to use `lib` in computing the deployment
<suzu>
as i am folding a few imports together to make the derivation for hte machine
<suzu>
and using pkgs.lib.foldl
<srhb>
suzu: There's probably a cleaner way to organize that, but it'll be specific to how you're doing it.
<jomik>
srhb: Oooh :D Woops
Erasmus has quit [Ping timeout: 250 seconds]
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<suzu>
im just using { pkgs ? import <nixpkgs> {} }:
stepcut has quit [Remote host closed the connection]
lawlesseel has quit [Remote host closed the connection]
<suzu>
and not inheriting it into the machine config
stepcut has joined #nixos
<jomik>
you should not have the `? .. ` for a top level derivation.
<srhb>
suzu: I'd pick a different name for it to ensure you don't accidentally use pkgs from there, but sure :)
lawlesseel has joined #nixos
<suzu>
good idea
<suzu>
can i just pluck `lib` out?
stepcut has quit [Remote host closed the connection]
<suzu>
and leave the other children in pkgs unaccessible to me?
<suzu>
is (import <nixpkgs> {}).lib valid syntax? lol
<srhb>
It is.
<jomik>
Yes.
<suzu>
sweet
<jomik>
What file is this in? I thought this was your `/etc/nixos/configuration.nix`.
<srhb>
It sounds like a NixOps deployment
<suzu>
it's a nixops deployment, yeah
<srhb>
Where "machine" is a term for an individual node.
stepcut has joined #nixos
<suzu>
sorry if that wasn't clear
<jomik>
Oooh, my bad.
<suzu>
so yeah i am returning a set of node configurations
<suzu>
which are what a `configuration.nix` for a node would be
<suzu>
function from config, pkgs, and so on, to a node configuration
<suzu>
then i've got this cheeky thing
<jomik>
I see. I figured that it'd be called with the same arguments as what the system configuration is. I think you can get `lib` straight from the args?
<{^_^}>
[nixpkgs] @ryantm opened pull request #56726 → catimg: init at 2.5.0 → https://git.io/fhAHV
<jomik>
But are you calling the file yourself?
<suzu>
to smash a few imports together that come together to make the machine conf
<srhb>
jomik: The top level "network" definition is a dumb attrset really.
<suzu>
i don't call the file myself. nixops does
<noonien>
i'm building a derivation that requires python at runtime, how can i specify this requirement?
<suzu>
add it to the deps of the derivation noonien
<jomik>
Ahhh. I see. I should look at this :D
<srhb>
noonien: Have you tried looking at existing examples? It'll probably involve using a wrapper :)
lawlesseel has quit [Remote host closed the connection]
<suzu>
nixops requires that the deployment configuration is simply a set and not a function of any kind
lawlesseel has joined #nixos
<suzu>
i dislike how unsafe nix is
<suzu>
or rather, how ill-typed it is
<noonien>
I've looked at existing examples, yes, but i'm still confused as to what attribute to use. there's {native,}buildInputs, and deps*
<suzu>
it goes in deps iirc
<suzu>
buildInputs is for things needed to build the derivation, and not for using the output
<srhb>
noonien: Neither of those are super relevant unless you want to make python a dependency of any drv that has _your_ drv as a dependency (in which case, propagatedBuildInputs)
stepcut has quit [Ping timeout: 240 seconds]
<srhb>
noonien: Usually, you'll use wrapProgram and friends to create a wrapper around your executable that knows about python, and thus injects the runtime dep.
<suzu>
somebody should write a nice cookbook for nix
<suzu>
a new one!
<noonien>
Hmm, i've created a fetcher, and one things i fetch with this is a python script that needs to be relative to another path that was downloaded. This script also uses /usr/bin/env which doesn't seem to be available
<leotaku>
jcob: I basically use "(set-frame-font (format "%s-%d" font size) nil t))" where "font" is the font name and "size" is the default size (pt) as an integer.
<suzu>
iirc you need to ask nix-env for the python binary
<srhb>
noonien: You'll need to patch that out, yes. Maybe patchShebangs (if it's a shebang)
<srhb>
suzu: That should not be necessary.
<noonien>
it is, yes
<jcob>
leotaku: set-frame-font makes sense. My only qualms with that is that I would prefer to be able to use faces if possible
lawlesseel has quit [Remote host closed the connection]
linarcx has joined #nixos
<srhb>
noonien: patchShebangs will find things like /usr/bin/env $binary and replace them with /nix/store/.../bin/$binary for a $binary that is available in buildInputs.
lawlesseel has joined #nixos
<noonien>
yes, that's what i'm looking for! if somethig uses this derivation, will it also need to provide python as a build input?
<leotaku>
jcob: I don't quite follow. What would you like to achieve exactly?
<linarcx>
averell: i try dhcpcd. but it raise an error: read_config: fopen /etc/dhcpcd.conf: No Such file or directory.
<noonien>
if not, i should probably use propagatedBuildInputs like you suggested
<srhb>
noonien: Not if you use the wrapper approach that I suggested
<srhb>
noonien: Which I think you should, but it depends on the exact drv. :)
<noonien>
hmm, when should i wrap and when should i use propagatedBuildInputs?
<linarcx>
guys. i cant connect to internet after try: wpa_supplicant -B -i interface -c <(wpa_passphrase 'SSID' 'key') in minimal iso. what should i do?
<srhb>
linarcx: Does that thing do dhcp setup?
<noonien>
linarcx: did you replace 'interface', with the name of your interface?
<srhb>
linarcx: If not, you probably want to start dhcpcd or whatever we use in the minimal iso
<srhb>
ah, that too..
<linarcx>
noonien: yes.
<jcob>
leotaku: I figured out what I wanted to do. create-fontset-font lets you create from a spec
<suzu>
omg all the shit works
<srhb>
noonien: Usually if it's a binary, prefer the wrapper.
<noonien>
linarcx: also, you should check if you have the right interface name, try `ip a`, if this is not the issue, as srhb suggest, check if dhcpcd is running
<suzu>
ayy
<noonien>
srhb: in this case, it's a script
Glider_IRC__ has quit [Ping timeout: 246 seconds]
<linarcx>
srhb: i start dhcpcd and get an error.
<srhb>
noonien: I should have said executable, not binary. Wrapper in that case too :)
<drakonis>
i'm not sure if anyone's using the podman package right now
<drakonis>
but its yielding errors
<srhb>
linarcx: Can you pastebin it?
<linarcx>
noonien: yes i try it. it list for me 3 interfaces.
<leotaku>
linarcx: honestly using wpa-supplicant is a huge PITA if you don't know exactly what you are doing. If you have an ethernet cable/jack try using that if possible.
<srhb>
linarcx: Alternatively, the graphical installer includes network-manager which makes it so much simpler to get wifi.
<linarcx>
srhb: no, just a moment.
<linarcx>
srhb: i don't want to install plasma as default. i want i3 and minimal installation.
<srhb>
linarcx: The graphical installer just contains more stuff _in_ the installer
<srhb>
It has no impact on your final system
<srhb>
I tend to use it simply to get nmtui during installs, so I don't have to muck about with wpa supplicant.
<srhb>
(When I don't have an ethernet cable to jack in)
<linarcx>
in arch linux, they have wifi-menu. ncurses based wifi manager. so its nice to have it in nixos too.
<noonien>
srhb: do i still need `patchShebangs .` if i `wrapProgram`?
<srhb>
linarcx: iirc that's part of netctl, which is completely arch specific.
<srhb>
linarcx: Something similar would be great though, sure.
<drakonis>
"WARN[0000] unable to find /etc/containers/registries.conf. some podman (image shortnames) commands may be limited"
<srhb>
noonien: Yes, probably, they have entirely different purposes.
<noonien>
I see, thanks!
<srhb>
noonien: wrapProgram is simply used for moving $out/bin/binary to $out/bin/.binary and providing a _new_ $out/bin/binary which can, eg. set the path to python, or some env vars, or (...)
<srhb>
But the exact details really depend on what you're doing, so I'm sort of guessing blindly at what suits your needs :)
<noonien>
cool, i'll check what it does to the output
<linarcx>
srhb: i try dhcpcd. but it raise an error: read_config: fopen /etc/dhcpcd.conf: No Such file or directory.
<linarcx>
error is small. sorry if i paste it here.
<srhb>
linarcx: You probably want systemctl restart dhcpcd
<srhb>
linarcx: The config file location is likely defined in the service unit.
<linarcx>
srhb. hmm... i'll try it now.
<jcob>
I forgot how much fonts on emacs are hell on earth
<srhb>
jcob: I don't recall this being an issue. What's the trouble?
linarcx has quit [Remote host closed the connection]
<jcob>
On arch I had it set up so that the long pipe | would be displayed in a different font. Now with my jank setup trying to get emacs to recogize the system fonts, the thing that I used to get the pipes displayed in a different font doesnt work anymore
<jcob>
its always been fickle
<jcob>
lemme pastebin and show you
<ottidmes>
drakonis: you will need to either patch the package if possible (best option), use libredirect (to make lookups to that path redirect to another file), or configure the sandbox to allow access to that file (libredirect is the most hacky, but if patching is not an option, it is the only way to add the fix to nixpkgs, since sandbox paths are only locally configured)
<srhb>
jcob: Yikes, ok :-)
regulus_ has joined #nixos
jtojnar has quit [Quit: jtojnar]
<jcob>
https://pastebin.com/5kMqcQHz so here's the code. A few problems im noticing: Emacs by default does not recognize that the fonts in the configuration.nix fonts.fonts even exist. You have to create them, and set the frame font to them, for emacs to recognize em.
<jcob>
if you dont create them emacs loads the blocky unicode font
hyperfekt has quit [Ping timeout: 256 seconds]
<jcob>
if you dont set the frame font to them emacs renders them as squares
<jcob>
However, setting the frame font to them for some aweful reason messes up the fix-box-building-function i have there
<jcob>
it does nothing
<srhb>
jcob: Sorry, this is out ot my league. I don't recall having problems with emacs recognizing my system fonts though...
<jcob>
hahaha
<jcob>
I've had that problem on every os so far, and it always has a different fix
<jcob>
sorry srhb haha
<srhb>
Hm, maybe I did have that problem, I have this in my config: (add-to-list 'default-frame-alist '(font . "DejaVuSansMono Nerd Font-11"))
<srhb>
But that seems sensible to me...
<{^_^}>
[nixpkgs] @matthewbauer closed pull request #56272 → Avoid problematic test case of llvm6 on Android → https://git.io/fhb3B
rcshm has joined #nixos
<rcshm>
hi, just want to find out how i can add ~/.local/bin to my path in nixos? thanks for your help.
<jcob>
haha i can set the default frame but doing so limits me to one font :(
<rcshm>
thanks. but i think there should be just an easy way to extend this from configuration.nix.
<rcshm>
i will try that if there is no otherway i can find.
<symphorien>
rcshm: how about adding this to /etc/profile with environment.etc
<rcshm>
yes, if i can't find the way to do it through configuation.nix. then i will have to set it in each image i will create.
<symphorien>
use the option environment.etc
<rcshm>
i might just follow JonReed's of putting it in the shell.
<rcshm>
environment.pathsToLink didn't seem to work.
<rcshm>
that is the only thing i found.
<symphorien>
something like environment.etc."profile.d/foo".text = ''export PATH=$PATH:$HOME/.local/bin'';
<rcshm>
do you have any other to try symphrien?
<rcshm>
let me try that.
<symphorien>
or maybe you need to set appropriate permissions to the files
<rcshm>
so if i rebuild the image, it should show up i think if it works.
<suzu>
aight so i wanna run a binary that spits out a .nix file, and then build that .nix file
<suzu>
is there some idiom for this
<symphorien>
,IFD
<{^_^}>
import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2. This is a problem because it requires evaluating some, building some, and then evaluating the build result.
<JonReed>
rcshm: You can also do `programs.bash.shellInit = "PATH=$PATH:~/.local/bin`
<suzu>
how do i do IFD?
<suzu>
any simple examples out there?
<rcshm>
symphorien: it doesn't show up still.
<rcshm>
JonReed. maybe let me try that.
<symphorien>
noting in /etc/profile.d ?
<symphorien>
suzu: import (here is an expression for a derivation where $out is a nix file)
<rcshm>
let me check
<suzu>
k got it
<{^_^}>
[nixpkgs] @7c6f434c pushed to master « pythonPackages.wptserve: fix build by adding a local h2 3.0.1 instance »: https://git.io/fhA7f
<jcob>
Ok i managed to hack the emacs fonts into working. Now i have a different problem: I have a whole bunch of weird graphical glitches in nixos. E.g., right now in kde the "shadow" has random bits of the other window in it. Also my emacs fonts are rendering kinda ugly, even though I use xft backend. If theres a quick way to fix this id love to know, otherwise im done for the day lol
andrewmiller has quit [Remote host closed the connection]
wedens has quit [Quit: Connection closed for inactivity]
<rcshm>
interesting symphorien: bin:~/.local/bin': not a valid identifier
<rcshm>
i think it just doesn't work as i thought.
<symphorien>
does /etc/profile.d/foo contain what you expect ?
<jomik>
rcshm: What did you write to get that error?
<pie___>
so basically i would want to call the snippet from the stackexchange link. the emacs people dont seem to want to do anyhting about this and i dont think id be able to do anything about it
<pie___>
this seems like a kind of crappy workaround but idk.
<jomik>
pie___: Can't you create a package that does that?
<jomik>
And install it through nix.
<pie___>
jomik, not sure what you mean. the code needs to be run before any other init stuff, and site-init seems to be the only method to do that
<pie___>
package loading happens after .emacs or .emacs.d/init.el or whatever is loaded
<suzu>
what does this do matix ?
<jomik>
Ooooh, nvm then :D
<suzu>
i had thought i could simply do srcs = [ ./file1 ./file2 ]
<suzu>
and i'd get a build dir with just those files in it
<matix>
suzu: it allows you to combine files from multiple derivations
<{^_^}>
[nixpkgs] @ryantm opened pull request #56728 → Revert "hackage-packages.nix: automatic Haskell package set update" → https://git.io/fhA7Z
<pie___>
jomik, i mean im a total emacs noob and stuff but this is what ive discovered...
<jomik>
pie___: Well, some packages add things that you use in your init.el :)
<ryantm>
PR to fix master eval
<ryantm>
###### Things done
<ryantm>
<!-- Please check what applies. Note that these are not hard requirements but merely serve as information for reviewers. -->
<matix>
suzu: that's the thing that stores your currently installed packages, the ones that you installed with nix-env -i
<suzu>
i see
<suzu>
so, the source of this derivation is just two files
<pie___>
jomik, hm. i think thats just setting variables and stuff that get checked later, or defining callbacks that get called after packages are loaded
<suzu>
so i did srcs = [ ./file1 ./file2 ];
<suzu>
and it doesn't like it
<suzu>
is this not proper usage?
reinhardt has joined #nixos
<matix>
suzu: are file1 and file2 archives or just files?
<suzu>
just files
<suzu>
one is a .yaml and one is a .cabal
<suzu>
though that shouldn't matter
<matix>
suzu: then you need to provide file name for, i guess you could look at writeText or others
<matix>
ahh my bad writeText is for inline files
<jomik>
I think you can run a lot of things as soon as `(package-initialize)` is called. Which is called automatically by emacs after init.el has been loaded. But I personally call it at the top of my init.el.
<symphorien>
runCommand name { /* options */ } '' commands to create $out '';
<symphorien>
there are no phases, so you don't have to crate src of provide an installPhase
<boomshroom>
I know Rust nightly isn't in nixpkgs (for obvious reasons), but if I'm packaging a project with a pinned rust-toolchain, is it ok to include mozilla-nixpkgs in its dependencies?
<symphorien>
*or provide
<symphorien>
for inclusion in nixpkgs ?
<symphorien>
^ boomshroom
kreisys has quit [Client Quit]
<boomshroom>
I would package it out of tree, but what I'm doing specifically requires modifying libcChooser
<symphorien>
if it is for you, why shouldn't it be ok ?
<boomshroom>
(P.S. make it easier to build with custom libcs)
rcshm has quit []
<boomshroom>
I'm curious how much of nixpkgs can be built with relibc
<suzu>
> stack2nix can't be used within Nix, that defeats it's purpose (it's impure).
<{^_^}>
error: syntax error, unexpected ',', expecting ')', at (string):219:35
<suzu>
wHAT
<suzu>
why NOT
<suzu>
??
<dmj`>
suzu: why use stack at all?
<suzu>
i use it for local dev and do not want to use nix for that atm
<boomshroom>
stack2nix is used before Nix to create something Nix understands
<suzu>
but i wish to deploy with nix
<suzu>
so i want to use an ifd
<suzu>
,ifd
<{^_^}>
See: ,IFD
<suzu>
,IFD
<{^_^}>
import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2. This is a problem because it requires evaluating some, building some, and then evaluating the build result.
<suzu>
so i want to call stack2nix, get a .nix in the out, and then import that
<pie___>
is there an easy way to add environment variables to a package or do I need to overrideAttrs?
<suzu>
but running stack2nix inside my build phase for a stdenv derivation is fucking up completely
<boomshroom>
stack2nix should only be run when stack updates its own files.
<suzu>
it should only be run on changes to the stack.yaml
<boomshroom>
Then you package the outputs of stack2nix and hand them off to Nix when you want to build.
<suzu>
i want nix to run the stack2nix
<suzu>
i dont understand why this is closed as 'no'
<boomshroom>
What you really should use is a file-watch that runs stack2nix whenever stack.yaml updates.
<boomshroom>
stack2nix is something to run when packaging, not building
<matix>
is IFD implemented already?
<suzu>
ifd works
<suzu>
possibly not on hydra though
<matix>
hmm
<symphorien>
it is forbidden by hydra
<matix>
that gives a poor-man's solution to recursive nix
<symphorien>
by the bot also, I think
<dmj`>
the hydra forbids it !
<boomshroom>
If I'm adding a package, should I add my name to maintainer-list.nix, or is it autogenerated?
<symphorien>
you should do it by hand
<suzu>
boomshroom: sure. but why is it illegal to take the haskell source, and build a nix from it and then build that?
<suzu>
that seems perfectly sane
<suzu>
i do this with a yarn package and it works fine
<suzu>
the yarn (with no nixing) is an input. it builds a .nix and then builds that.
<suzu>
so the dev environment does not need nix. only the deploy
<boomshroom>
IFD is forbidden on Hydra? Then I guess I can't do `import "${fetchFromGitHub}"` to have dependencies not in nixpkgs?
<symphorien>
no you can't
<tilpner>
boomshroom: You can, but it needs to be enabled on the Hydra instance
<boomshroom>
Is stack2nix purely deterministic? If upstream packages update and it doesn't immediately change stack.yaml, would it change the derivation?
freeman42x has joined #nixos
<suzu>
i suppose not
<boomshroom>
I'm using nixpkgs-mozilla to get a specific build of rust and cargo.
<suzu>
it shouldn't change the derivation.
drakonis_ has joined #nixos
<suzu>
if your stack.yaml doesn't change, the derivation shouldn't either
drakonis1 has quit [Ping timeout: 250 seconds]
drakonis has quit [Quit: WeeChat 2.4]
orivej has quit [Ping timeout: 255 seconds]
_kwstas has joined #nixos
<boomshroom>
Is there a consensus on wether Nix should invoke a compiler directly vs call out to an external build system? (like the difference between cargo2nix and carnix)
jomik has quit [Quit: WeeChat 2.2]
<noonien>
how idiomatic is to create derivations using fetch*? i've got a script, and i need to make some modifications to it(fix the shebang, wrap it, etc), should i create a derivation for the sources, and another with the modifications i'm making? (i don't build anything)
scientist has joined #nixos
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
<{^_^}>
[nixpkgs] @kalbasit pushed commit from @r-ryantm to master « kubetail: 1.6.6 -> 1.6.7 (#56723) »: https://git.io/fhA7j
<suzu>
boomshroom how is this possible
<suzu>
i can install stack2nix into an env and use it
<suzu>
but taking it as a dep and invoking it shits everywhere wtf?
jcob has joined #nixos
<jcob>
sup nerds
drakonis has joined #nixos
<boomshroom>
Building stack2nix with nix is (mostly) deterministic, running it is not.
<suzu>
oh. i see
<suzu>
~_~
<suzu>
SAD
<jcob>
I have a pressing question: I have firefox and I need flash to do my homework, lol. All I could find was some random dude's video. Is there some official way to do it?
<suzu>
install chrome
<jcob>
LOL
<jcob>
over my dead body
<suzu>
im dead serious
<suzu>
install chrome, get the thing done, and then nuke it from orbit
<jcob>
yuck
<suzu>
ye ik
<jcob>
sounds like i need a vm and firefox haha ;P
<scientist>
hello you guys I have just finished creating my own keyboard layout in nixos, the only issue I am getting is an error, warning no symbol defined for keycode(I get this same error over a hundred times for a bunch of different keycodes), do any of you guys know how to fix this ?
drakonis_ has quit [Ping timeout: 252 seconds]
<jcob>
why is it such a technical challenge to get flash on firefox? genuinely curious. Is it something like eclipse where doing it would mess with where things are supposed to be stored?
<suzu>
it's just unsupported
<suzu>
flash is old hot garbage
<symphorien>
I have flash on firefox
<jcob>
symphorien teach me your ways
<scientist>
?
troydm has joined #nixos
<suzu>
okay FINE i will generate the damn nix from outside of nix
<scientist>
how do I define symbols with xkb ?
<suzu>
and i will delete stack tomorrow and just work with cabal
<boomshroom>
Install chrome? Better idea: `nix run nixpkgs.google-chrome-stable` Now you don't have to install it
<MichaelRaskin>
jcob: also, there is flashplayer-standalone
scientist has quit [Quit: WeeChat 2.2]
<MichaelRaskin>
(Also, there are nsjail and firejail, just in case you want to make sure that garbage fire called Flash doesn't stomp over too much)
reinhardt has quit [Quit: Leaving]
jcob has quit [Remote host closed the connection]
<boomshroom>
One thing I probably should have mentioned earlier is that Nix specifically gets upset if it doesn't know the hash of what its downloading. Naturally you can't generate the hash unless you can download it without the hash.
<scientist>
hello guys, do you know a simple way to map to define symbols for keycodes in xkb, I know there is a way to do it manually using xmodmap but that would take to long
<scientist>
?
jcob has joined #nixos
<jcob>
well
<jcob>
adding enableAdobeFlash = true didnt exactly do it
<suzu>
oh what am i even doing
<suzu>
fuck stack2nix
<suzu>
i can just have nix build a stack project directly
<jcob>
so, I changed my config to use firefoxWrapper, then used nixos-rebuild switch, & now I still dont have flash installed. Is there any way I could check which version of firefox im running
<jcob>
er, which package i have installed
<symphorien>
which firefox
<symphorien>
if it points to /run/current-system, then fine
<pie___>
why is stuff sometimes in pkgs sometimes in lib?
<pie___>
like why is writeText in pkgs
invokesus has joined #nixos
<symphorien>
if it points to ~/.profile, then it is installed with nix-env
<symphorien>
pie___: pkgs depends on lib, not the reverse
<symphorien>
writeText depends on stdenv (maybe, suddenly I have a doubt) so it can't be in lib
<jcob>
lol I had forgotten to rebuild my home mangaer
<jcob>
it had been using the local one the whole time :(
jcob has quit [Remote host closed the connection]
scientist has quit [Quit: WeeChat 2.2]
<pie___>
symphorien, uhhh ok i guess
<pie___>
it just seems like a random utility thing
jcob has joined #nixos
<jcob>
got flash now. thanks for all the help guys
<__monty__>
scientist: Maybe there's an #X or #X11 or something?
drakonis has joined #nixos
drakonis_ has quit [Ping timeout: 252 seconds]
<scientist>
__monty__ thanks i'll check it out, I got the my custom keyboard layout to work but I need to fix a few errors to get it to work properly
<boomshroom>
pbb: Really cool! It's amusing seeing a couple dependencies stretched out and disconnected suddenly get pulled in to the middle by another package.
<{^_^}>
[nixpkgs] @fpletz pushed 2 commits to release-19.03: https://git.io/fhA52
<__monty__>
scientist: It's not a very common thing to do. Makes you handicapped whenever you need to work on a machine that's not yours because of muscle memory. I use dvorak which is available basically anywhere but still has that effect.
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
justanotheruser has quit [Read error: Connection reset by peer]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jasongrossman has joined #nixos
_kwstas has quit [Quit: _kwstas]
<__monty__>
pbb: I mostly want it because it's making ranger look bad : ) Our only hard runtime dep is python but the buildtime deps are numerous apparently.
<boomshroom>
Makes sense. If it was handled server side on a machine, it should be able to read the drv file, but it wouldn't be as easy as just pulling the information from hydra
<pbb>
I'm not even sure if the info is in the .drv file
<pbb>
but yes, the local nix installation is just used to find out the derivation hash for the name/path that's entered
<MichaelRaskin>
I am excluded from the query about xkb by the «but no xmodmap»
<MichaelRaskin>
I _only_ do xmodmap (well, some simple three-layout setxkbmap to prepare the stage)
<jasongrossman>
I also used to use xmodmap, when I was doing similar things.
<jasongrossman>
But there is someone here who knows about xkb. Damn. My terrible memory.
<MichaelRaskin>
At some point I did try to write xkb layouts to suite what I want, indeed — but xmodmap has more ceonvenient dynamic behaviour
__monty__ has quit [Quit: leaving]
jb55 has quit [Ping timeout: 244 seconds]
<boomshroom>
How can I see what flags get passed to a derivation's build?
<jasongrossman>
MichaelRaskin: Ditto. (Although I dislike both of them.)
<boomshroom>
I'm seeing several libraries getting pulled into my build, including a library the package builds itself... twice.
<MichaelRaskin>
boomshroom: flags of which type?
<boomshroom>
`"-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil"` This is for relibc which packages its own libm and pthreads.
<boomshroom>
Also it should be clear why I wouldn't want to link libc into re*libc*.
<hyperfekt>
oh my god, unstable is so fresh that the build i'm doing from master didn't have to build a single dependency. it's so beautiful i could cry
<boomshroom>
When rolling back is so easy, there's no fear in installing the bleeding edge! :)
<hyperfekt>
im on a checkout from 2015 and gnu parted is still failing the same test. its impossible this has been consistently broken for the last 4 years
drakonis has joined #nixos
<boomshroom>
"Meh, it still works. Someone in the future can handle it."
<boomshroom>
`doCheck = false` I just had to enable it for the package I'm working on now because I want to work on something more interesting.
<hyperfekt>
haha i'm really close to doing that
<hyperfekt>
i wonder if we could make a repo where every unstable advance is a single commit for fast bisecting
<hyperfekt>
um. "error: some outputs of '/nix/store/gr9g5vcw73nyss9xz50cy5nidfl3swyl-parted-3.1.drv' are not valid, so checking is not possible"
<hyperfekt>
do i need to use a different nix version to build packages from 2014?
<hyperfekt>
oh nvm, looks like this version just isn't in the cache. why might that be
<boomshroom>
Anyone here familiar with how musl or ulibc were implemented in nixpkgs?
<suzu>
you tried reading the derivation?
<boomshroom>
The derivation looked normal, and I'm not having trouble building normally, it's getting an stdenv that uses it without using it to build said stdenv.
jcob has joined #nixos
<boomshroom>
Hmm... I notice now that they don't have many dependencies, and ulibc has this peculiar `buildPackages` argument.
<boomshroom>
Right now just Relibc with hopes of laying the groundwork to build Nix packages for Redox.
<hyperfekt>
That'll change your data directory, not your config file though but I figured since you gave a directory as an example that may be what you want
<steveeJ>
how can I insert my own top-level argument for the imports in configuration.nix?
<boomshroom>
`checking target system type... Invalid configuration `x86_64-unknown-linux-relibc': machine `x86_64-unknown-linux' not recognized` I didn't think that would be your problem with my target.
<jcob>
hyperfect: yeah. I just couldnt figure out the right scope
<hyperfekt>
jcob: Mind that by default ZNC runs as the user znc, which will have to have access to the directory.
<boomshroom>
Now to find a way to trick gcc and binutils into thinking relibc is a legit abi.
jcob has quit [Remote host closed the connection]
<jevonearth>
Hi all. How do I boot a nixos box into single user for the purpose of resetting the root password? on boot, I'm editing the boot string. putting `rw` before `init=` but init, it contains a long hash, I assume I want to change the last `init` part to `/bin/sh`...
ng0 has quit [Remote host closed the connection]
<hyperfekt>
steveeJ: Mind that of course you can't use that argument in the module that defines it, and also be careful not to replace an argument that is already passed by default.
<boomshroom>
Take out unknown and now it's complaining about relibc.
<hyperfekt>
jevonearth: That's a good question that I can't answer, but you could always just run nixos-install from the ISO again.
<jevonearth>
Issue here is that after `nix-install` it prompted for a password, and I screwed that up. It dropped me to the command prompt, and i ran `passwd` again, but I don't think I was chrooted (or whatever it does) to /mnt/
<judson_>
I'm back to my seemingly unique problem with Chromium: after an update, calls to chromium-browser (e.g. following a link from IRC) launch the _new_ version. Which has gotten more annoying, because somehow that also logs me out of Google.
<hyperfekt>
jevonearth: Well it won't take long, since you already have everything in the store. It's basically like running nixos-rebuild, except you get to change the root password.
<steveeJ>
hyperfekt: thanks for that link as well. the first attempt also leads to an infinite recursion, bedtime :D
<hyperfekt>
steveeJ: Alright, good night and good luck tomorrow. Ping me if I'm on and I'll do my best to help you.
<judson_>
Last time I dug in, there was an idea that somehow it was related to Chrome's environ file in /proc, which is getting chopped for some reason - but to 6192 bytes, which seems like a very weird number.
<{^_^}>
[nixpkgs] @matthewbauer pushed to release-17.09 « nixos-rebuild: get Nix from channel »: https://git.io/fhAd9
<jcob>
thanks!
<mizmorYodh>
Hi all! I'm kinda new to nixos and I'm trying to figure out how to do the nixos way. So I'm currently working on my configuration and I was wondering what's the best way to manage packages. Like, what packages should I put in the system environment vs the user environment for instance?
lord| has quit [Quit: WeeChat 2.4]
<jasongrossman>
mizmorYodh: The most NIXOS WAY is to put everything you want into the system environment and nothing in the user environment.
<jasongrossman>
mizmorYodh: Unless you're only one of several users.
Erasmus has joined #nixos
<jasongrossman>
mizmorYodh: Personally, I use nix-env when I'm in a hurry, and configuration.nix when I'm not in a hurry.
<srhb>
I tend to use nix-env as sort of "staging", occasionally moving things into systemPackages. But agreed, systemPackages is the "proper" way -- in that it's more declarative and safer.
<jasongrossman>
Also:
ixxie has quit [Ping timeout: 250 seconds]
lord| has joined #nixos
<mizmorYodh>
oh good to know, i really thought that separating things using nix-env was the way to go but i guess i was wrong haha!
<jasongrossman>
Hm. I thought the bot had an answer to this, but maybe it doesn't.
<samueldr>
think declarative vs. imperative: do you want to have a (couple) file(s) declaring the intended state of your system?
<samueldr>
or a previously ran couple imperative commands?