<clever>
elvishjerricco: the autoreconfhook adds itself to the preConfigure list
leotaku has joined #nixos
<clever>
and its difficult to know which preConfigure runs first
abueide has quit [Read error: Connection reset by peer]
mayhewluke has joined #nixos
jperras has quit [Quit: WeeChat 2.2]
<Dezgeg>
no it doesn't? it adds a phase, not a hook
leotaku has quit [Remote host closed the connection]
<clever>
ahh, was mixing that up with the hooks
kyren has joined #nixos
<clever>
that makes sense then why it runs before preconfigure
* clever
heads off to bed
<kreisys>
gn8
<Dezgeg>
but yeah it's easy to mix up preConfigure (the hook) and preConfigurePhases (the phases)
MP2E has joined #nixos
jasongrossman has quit [Ping timeout: 244 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m0rphism has quit [Ping timeout: 268 seconds]
hlolli has quit [Remote host closed the connection]
Drakonis has joined #nixos
Drakonis has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
Drakonis has joined #nixos
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @orivej to master « gdal: build with xml support »: https://git.io/fN5tJ
erickomoto has joined #nixos
<erickomoto>
Hello everyone! Quick question: is there a way to specify that I want to install jython but I want it to replace python? So, `!#/usr/bin/env python` should run jython. One possible way to do this is to clone nixpkgs and modify jython's default.nix, but could I do it in a different way?
<ivan>
fwiw I am getting terrible speeds from cache.nixos.org again on AT&T u-verse
<ivan>
e.g. 70KB/s on copying path '/nix/store/jj6hcp5a8rpbvxdkhc8b41shdc49r7r2-go-1.10.3' from 'https://cache.nixos.org'...
hamishmack has joined #nixos
jperras has joined #nixos
<ivan>
because I generally don't experience peering issues I wonder if it's something with my nearby cloudfront having a slow connection to the upstream host
<growpotkin>
Does anyone know how to find the correct "cargoSha256" for a project? They mention in the manual to plug in a dummy value, let the build fail, and then to find the correct value in the failed build.
<growpotkin>
I haven't had any luck digging it out of my failed build though.
halfbit has joined #nixos
jmeredith has quit [Quit: Connection closed for inactivity]
halfbit has quit [Ping timeout: 256 seconds]
leotaku has joined #nixos
leotaku has quit [Client Quit]
leotaku has joined #nixos
erickomoto has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lassulus_ has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
init_6 has quit [Ping timeout: 244 seconds]
lassulus has quit [Ping timeout: 260 seconds]
lassulus_ is now known as lassulus
hakujin3 has quit [Ping timeout: 256 seconds]
init_6 has joined #nixos
worldofpeace_ has quit [Ping timeout: 256 seconds]
trevthedev has joined #nixos
<trevthedev>
It's me trev again, Hi :)
<growpotkin>
Anyone use Rust around these parts? I keep getting hung on this "duplicate version of package `rust-crypto` vendored from two sources" line.
<trevthedev>
so I realized that my Nix Computer never really used my GPU much for any 3D rendering and instead games ran off of my CPU. Which can explain why Skyrim Special Edition only ran at 15FPS on max
<growpotkin>
oh yeah, you need them video drivers my dude.
<trevthedev>
yea
jperras has quit [Quit: WeeChat 2.2]
<trevthedev>
I was coming to ask why Wine doesn't support 64bit, and why we have to override, as installing Wine64 is a huge pain and it compiles from source and networking with steam doesn't seem to work well
<trevthedev>
(I want to fully get away from Windows but I'm a gamer and I'd like to use Wine, as KVM is a bit of a pain for my liking)
<growpotkin>
I mean... Steam is a clusterfuck on NixOS haha. Sorry to be the bearer of that news.
erickomoto has joined #nixos
<trevthedev>
Steam native works fine for me
<growpotkin>
I have my windows partition exclusively for my games
<trevthedev>
and on Wine32
<growpotkin>
How!?
<trevthedev>
Though on Wine64 it doesn't let me download games and says "Content Unreachable"
<growpotkin>
I swear I spent like a day and half trying to get mine to work.
<Drakonis>
trevthedev, you can run nixos unstable
<trevthedev>
I don't quite remember why or how but I did something and t installed perfectly
<Drakonis>
it has an updated wine package that provides the correct binaries
<trevthedev>
does unstable have wine64?
<MP2E>
probably need nixos unstable for steam to work
iyzsong has joined #nixos
<Drakonis>
it has 64 bit and Wow
<trevthedev>
Steam native works fine on stable here
<trevthedev>
Ah
<trevthedev>
thanks
<Drakonis>
Wow lets you do 32 and 64 on the same install
worldofpeace_ has joined #nixos
<Drakonis>
also wine staging
<Drakonis>
if you're really into running newer software
<trevthedev>
thanks :)
erickomoto has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<trevthedev>
there's some sort of "name collision" issue when I try to download from the unstable channel
<Drakonis>
oh yeah a key detail here
<Drakonis>
it is a subpackage for wine
<trevthedev>
oh
<trevthedev>
oh?*
<Drakonis>
wineWowPackages
<trevthedev>
Ah, thanks :)
<Drakonis>
it will probably default to stable
<Drakonis>
you may want to append .staging or .unstable depending on which one you need
<trevthedev>
as long as I can do 64 I'm fine XD
<Drakonis>
steam is by default 32 bits
<trevthedev>
yea
Izorkin has quit [Ping timeout: 244 seconds]
silver has quit [Read error: Connection reset by peer]
sir_guy_carleton has joined #nixos
Anton-Latukha has quit [Quit: Leaving.]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jmeredith has joined #nixos
erickomoto has joined #nixos
erickomoto has quit [Client Quit]
hamishmack has joined #nixos
alexteves has quit [Remote host closed the connection]
<dmj`>
why do I get this on nixos
<dmj`>
warning: Nix search path entry '$HOME/.nix-defexpr/channels' does not exist, ignoring
<emily>
because bugs
<emily>
(as i undersatnd it)
<dmj`>
:(
<trevthedev>
My drivers are still downloading xd
<fresheyeball>
dmj`: are you mr miso?
<trevthedev>
how long does amdgpu-pro take normally?
<dmj`>
fresheyeball: lol
<fresheyeball>
no?
<dmj`>
fresheyeball: yea
<fresheyeball>
well all righty then
<fresheyeball>
now I know how to recognize you in more place
<dmj`>
fresheyeball: ;)
<fresheyeball>
places*
<dmj`>
fresheyeball: trying to set my hydra back up
<dmj`>
and my acme certs aren’t renewing on nixos
sigmundv has quit [Ping timeout: 240 seconds]
jasongrossman has joined #nixos
<dmj`>
waiting for clever to wake up
<dmj`>
haskell packages seems to be a garbage fire right now
<dmj`>
cabal2nix is broken
<fresheyeball>
dmj`: what you talking about?
<fresheyeball>
I have such good happy success
<dmj`>
fresheyeball: what channel
<fresheyeball>
18.03
<fresheyeball>
for projects I pin to a hash
<fresheyeball>
as in a git hash
<dmj`>
right
<fresheyeball>
what are you experienceing?
<dmj`>
I’m on nixpkgs-unstable
<fresheyeball>
wwwwhhhyyyyy?
<dmj`>
the lastest hash
<dmj`>
because nixpkgs-unstable is relatively stable
<fresheyeball>
then use a different hash haha
<fresheyeball>
just rev back a bit
<dmj`>
I’m drinking that channel kool-aid rn
<fresheyeball>
dmj`: ooo, I never touched the stuff
<dmj`>
yea, its kind of like pulling the rug out from under you when you update
<dmj`>
I get the whole lets be like “sudo apt-get update"
<dmj`>
but so much for reproducability
<fresheyeball>
uh, I have a better idea
<fresheyeball>
how about lets be as reproducible as possible
<fresheyeball>
and not be imperative that way
iyzsong has quit [Read error: Connection reset by peer]
<dmj`>
I guess I have too much faith in the curation process
<fresheyeball>
dmj`: I have an alternative you can consider
<fresheyeball>
do you know about the <> syntax?
<dmj`>
fresheyeball: I usually pin
<dmj`>
yes, <nixpkgs> is a path
<fresheyeball>
right
<fresheyeball>
I just add different ones to my NIX_PATH
<fresheyeball>
basically serves the purpose of pins
<fresheyeball>
er
<fresheyeball>
serves the purpose of channels I mean
<fresheyeball>
drakonis: there is no good migration tool
<fresheyeball>
drakonis: I just want it to run
<Drakonis>
rip
<fresheyeball>
Test::Requires [build_requires] <- tons of error look like this
<Drakonis>
in this land, its probably easier to roll your own thing
<fresheyeball>
dmj`: checking
Maxdamantus has quit [Remote host closed the connection]
Maxdamantus has joined #nixos
<trevthedev>
wait
<trevthedev>
nix finally downloaded my drivers and now it's downloading them again... wat
<growpotkin>
Let me try this one again: anyone run into issues with duplicate versions in cargo building rust packages?
<fresheyeball>
dmj`: why is it perl specific
<fresheyeball>
gross
<trevthedev>
well, guess im getting my drivers again ;-;
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<maerwald>
monospace font seems broken in vim, underscore is not visible, never had this on any distro
<benley>
hey so if I were to try rewriting the nixos-option script in a language other than bash ... does it particularly matter what language that should be? Like does it need to a minimal build closure, or is it sufficient to have a minimal runtime closure?
mayhewluke has quit [Ping timeout: 272 seconds]
worldofpeace_ has quit [Ping timeout: 256 seconds]
<dmj`>
fresheyeball: no idea
<dmj`>
I am inconsolable that my ACME certs can’t renew
iyzsong has joined #nixos
aarvar has quit [Ping timeout: 260 seconds]
init_6 has quit [Ping timeout: 244 seconds]
trevthedev has quit [Quit: WeeChat 2.0]
Fare has quit [Ping timeout: 244 seconds]
<kalbasit[m]>
I'm writing a pkg that provides a script to automate few tasks at work. I find `substitute` and `substituteInPlace` very useful. Is there a way to access them from a script?
hakujin3 has joined #nixos
<{^_^}>
[nixpkgs] @benley opened pull request #44886 → google-cloud-sdk: include docker-credential-gcloud script → https://git.io/fN5Y1
<elvishjerricco>
fresheyeball: Build dependencies aren't automatically made runtime dependencies
<Drakonis>
elvishjerricco, sucks and should be changed
<elvishjerricco>
I disagree
<Drakonis>
i mean
<elvishjerricco>
I don't want every C project depending on GCC at runtime
<elvishjerricco>
for no reason
<Drakonis>
i want to have a field i can determine which runtime dependencies i need
<elvishjerricco>
ohhh
<elvishjerricco>
Yea that'd be nice
<Drakonis>
i had some headaches with rclone-browser because of that
<Drakonis>
it would get rid of a variety of dumb hacks
<elvishjerricco>
fresheyeball: Anyway, so any tool that's on the path at build time (in nix-build), is only there because it's a runtime dependency of the build definition (the .drv). The runtime dependencies of a build output are determined rather stupidly: It literally scans the output for any store paths mentioned in any files and considers those to be runtime deps.
<elvishjerricco>
So just referencing programs that ought to be on the path won't trigger that
simukis has joined #nixos
<hyper_ch>
weird, if I upgrade to latest nixos-unstable-small, then I don't have any audio devices in kde
<dmj`>
why am I getting error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied
<Drakonis>
its immutable isn't it
<dmj`>
oh, the problem was nix-repl, should have been nix repl
<benley>
maerwald: it just runs that wrmsr command once a minute to keep the throttling threshold set sanely
<emily>
i didn't know about nixos-hardware, thanks!
<maerwald>
benley: that doesn't really do the same afais
<hyper_ch>
emily: what abou tit?
<benley>
maerwald: not quite, yeah. I don't think anyone has packaged that lenovo-throttling-fix set of scripts for nixos but it looks like it would not be that hard
<emily>
hyper_ch: it's nice to know that there's an organised repository for that kind of hardware tweak thing
ericsagnes has joined #nixos
<maerwald>
benley: well, I can't really do that
<maerwald>
no time or interest in getting into nixos packaging
NightTrain has quit [Quit: Lost terminal]
<maerwald>
so I would chooose whatever hack works to make this run
<{^_^}>
[nixpkgs] @bbarker opened pull request #44887 → ats-pkg init at 3.2.1.8 → https://git.io/fN5Ob
<benley>
it's a lot less annoying than debian/ubuntu/fedora/etc packaging, for what it's worth :-P
<maerwald>
doubt it
<benley>
I have one of the thinkpads affected by the throttling problem, but I've just been too lazy to package up that thing
<benley>
even though it would probably take like 20 minutes
<maerwald>
from what I've seen nixos packaging is more annoying than gentoo packging
<benley>
oh? I haven't done anything with gentoo so I can't compare
<maerwald>
so getting into that for a single package is not really sane
<maerwald>
well, gentoo packaging at least has very nice documentation
<maerwald>
while with nix you are mostly left with semi-structure documentation blobs
<benley>
nixpkgs has pretty thorough documentation; have you seen the manual?
<maerwald>
yes.
<maerwald>
that's why I'm saying it
<maerwald>
thorough and unstructured
<joepie91>
on paper, Nix packaging is extremely pleasant
<joepie91>
in practice, documentation (especially regarding existing ecosystem practices) is sorely lacking, as is debugging tooling that *could* exist given the guarantees that Nix provides about the environment
<maerwald>
is it even specced?
<joepie91>
maerwald: define 'specced'
<maerwald>
A formal specification
<joepie91>
of?
<maerwald>
uhm, nixpkgs
<maerwald>
and how the PM behaves
<growpotkin>
The nix documentation is perfect and has no mistakes, or gigantic sections that literally tell you to use depreciated code... and if you disagree you're all big babies.
<joepie91>
I mean, nixpkgs is just a collection of Nix expressions that evaluate to a package set
<joepie91>
there's... not really anything to formally spec
<maerwald>
right and there are no community policies either
<joepie91>
as to the expectations of the package manager; these *are* documented in the manual, not a formal spec, but reasonably exhaustive
<joepie91>
the main issue is the bit inbetween
<maerwald>
which is why nix packaging is just anarchy
<growpotkin>
You say that like its a bad thing
<joepie91>
ie. how to get from your goal to something that the package manager expects with reasonable efficiency
<joepie91>
honestly I feel like part of the problem is that Nix is specified/documented like a package manager, but functions like a programming language
<joepie91>
a lot of the things not covered by documentation seem to be a result of that mismatch
<maerwald>
maybe, enough reasons for me not to get into nix packaging, it would just annoy me
<growpotkin>
One thing that I always thought would really really help, is if we actually utilized the "discussion" sections of the manuals on nix.org
<growpotkin>
I always wind up digging through github issues or something to find things that could have been discussed much more easily outside of Github's issue tracker
<joepie91>
growpotkin: '
<joepie91>
oops
<joepie91>
growpotkin: 'discussion sections'? *
<growpotkin>
Wow now of course I cant find them..
<growpotkin>
Okay so on the nix manuals, usually like individual articles, there will be a button on the right that says something like "discussion". But there is never any posts in the "discussions"
<joepie91>
I've... never seen that?
<joepie91>
also, I don't think we've had 'individual articles' for some time now?
<growpotkin>
I always thought it would have been a much nicer place to leave little comments and clarifications. Yeah hold on I need to actually find one now.
<joepie91>
but yeah, discoverability is... not great
<growpotkin>
I have googled about a billion things "nix" and this has never once appeared
<joepie91>
given the JS-heavyness I strongly suspect it's not very search-engine-indexable
<joepie91>
it *does* have some sort of search-engine-targeted static content I believe, Discourse
<joepie91>
but I've been suspecting for a while that Google and other search engines place JS-heavy sites in an alternate bucket of 'crawl less frequently' or so
<joepie91>
possibly even penalizing them for loading time
trevthedev has quit [Ping timeout: 260 seconds]
jD91mZM2 has joined #nixos
trevthedev has joined #nixos
<Enzime>
any idea why there's two floottys in nixpkgs
<joepie91>
Enzime: convention is to provide applications as a top-level package but libraries in python-packages
<joepie91>
possibly it is both? although in that case I would expect the former to use the latter
<joepie91>
so probably an oversight rather than an intentional decision
<Enzime>
joepie91: afaik it's just an application
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<Enzime>
seems like it should be removed from python-packages.nix
<jD91mZM2>
Does Nix have anything against breaking changes like removing a package?
<joepie91>
jD91mZM2: as in, tooling to prevent it?
<growpotkin>
Well since I haven't asked in about an hour : anybody 'round here have experience building rust packages? I'm trying to add one for "spotifyd" and I'm getting that version duplication error with Cargo.
alex`` has joined #nixos
<jD91mZM2>
joepie91: I mean does breaking changes get merged etc?
<joepie91>
jD91mZM2: policy in nixpkgs is, as I understand it, to maintain 'stability' on the release channels, in the sense that packages are not removed, nor upgraded to significant new versions
<joepie91>
at least not without good reason
<joepie91>
(potentially-)breaking changes typically get rolled into the next release
<jD91mZM2>
Ah, nice
<joepie91>
on `unstable`, of course, everything goes :)
<jD91mZM2>
So after updating to a new stable you might need to change your config?
<joepie91>
(it's not uncommon for people to install a few packages from unstable that need more regular updating)
<joepie91>
jD91mZM2: yeah; you will typically get a deprecation message during evaluation if you're using an old config API
<joepie91>
these changes are also listed in the release notes
<{^_^}>
[nixpkgs] @Enzime opened pull request #44889 → Remove redundant flootty package and update the correct package → https://git.io/fN53D
<joepie91>
I've mostly seen aliases kept around for at least one extra release cycle after deprecation
<jD91mZM2>
Cool! When is the next update btw? Next month, 18.09?
<joepie91>
but I don't think there's a strict policy on this
<growpotkin>
I think the only one that needs explanation is the "noZwc" option. There is this super annoying side effect of antigen, where it generates a .zwc file, which stops zshrc from "updating". I am sure there is some reason it is done but I just wanted to disable it. If you don't want it set noZwc = false (if you end up using antigen)
init_6 has joined #nixos
endformationage has quit [Ping timeout: 240 seconds]
<growpotkin>
Oh wait I the "env" settings are actually in the existing zsh config module already haha. You don't need my module. Let me check my config for how I was doing that. its like "programs.zsh.login" or something.
<growpotkin>
yeah "programs.zsh.shellInit" you can add exports there and they will end up in /etc/zshenv
<jD91mZM2>
Once again, system wide
<growpotkin>
oh you are trying to do user environments?
<jD91mZM2>
EDITOR and VISUAL and PATH are all overwritten :|
<jD91mZM2>
Maybe not PATH, not sure, but at least all the other things
<growpotkin>
I think I need more context. What are you trying to accomplish?
<jD91mZM2>
I just want to se $EDITOR, but the global /etc/zshenv keeps overriding it
<jD91mZM2>
I can set it system-wide, sure, so that's solved, yay, but there really should be a way to do it per-user
<growpotkin>
oh I source my user's .zshenv at the end of my zshenv to fix that
<growpotkin>
same for zshrc and vimrc and all that stuff
<growpotkin>
so basically the users . files append the global configs and can overwrite some of their settings if they need to
<growpotkin>
it fixes the usual behavior where the global config existing will stop the user's configs from loading at all or visa versa
orivej has quit [Ping timeout: 248 seconds]
<jD91mZM2>
But then again why use /etc/zshenv and not just /etc/environment, the thing Arch and Ubuntu and everything uses
<growpotkin>
because then we wouldn't feel "clever" when we make things work by hacking chains of configs together
<growpotkin>
Its an important part of the process haha
<jD91mZM2>
GOOD point
<emily>
the answer is often that nixos predates the nicer way of doing things, I think
<emily>
see also: symlink trees and environment variables over containers/overlay filesystems/etc.
<jD91mZM2>
I feel like NixOS' way is better than containers
<jD91mZM2>
No need to have 500 copies of your filesystem inside your filesystem
<maerwald>
nixos way is much more leaky
<emily>
oh, I mean more using linux namespaces
<emily>
not doing things the way docker does
* jD91mZM2
googles linux namespaces
<maerwald>
containers are a more consistent abstraction, but have other shortcomings
<emily>
the underlying namespace technology that docker etc are based on
<growpotkin>
they slow
<emily>
basically, allowing you to have multiple separate root filesystem trees, etc.
<emily>
they're... not slow ;w;
<growpotkin>
And there is not NEARLY enough lambdas.
<jD91mZM2>
I mean letting each program pretend it's in the root feels like a hack
<maerwald>
what? :D
<emily>
having a different view of / for every process is what plan 9 does
<jD91mZM2>
What happens if you ask the user for input?
<emily>
i don't think ensuring every global resource can be namespaced is a hack
<emily>
although not having global resources would be ideal
<jD91mZM2>
`ls /etc` for example
<maerwald>
a consistent abstraction is one where the program doesn't have to know in what environment it runs in... so basically the opposite of what you said
<maerwald>
nix is a hack ;)
<growpotkin>
We should go back to the good ol' days before multi-programming and just have A LOT of machines around the house.
<jD91mZM2>
I was thinking optimally programs would just not use root and hard-code paths
<growpotkin>
No more environment issues.
<emily>
well, namespaces are frankly a better security solution than the archaic unix user system, imo
<emily>
but i'll certainly not disagree that linux has a lot of cruft
<jD91mZM2>
Oh yeah, definitely more secure and consistent.
<MichaelRaskin>
Nix uses namespaces for biulds, but we want installed Nix software to work on other distributions with user namespaces off
<growpotkin>
Are you asking about how to add a custom package? Or how to install a package as a user?
<maerwald>
I want to add a package, as I said
<maerwald>
I don't see how overriding packages helps here
<benkolera>
You can add a package to the set because is is a function of record to record?
garbas has quit [Ping timeout: 248 seconds]
<maerwald>
I have no idea what that means
<growpotkin>
You can fill .nixpkgs.config with derivations or call packages just like you would any of the other nixpkg paths
<growpotkin>
sorry "~/.nixpkgs/config.nix"
<{^_^}>
[nixpkgs] @7c6f434c pushed to master « vim_configurable: make gvim command launch GUI again »: https://git.io/fN5Gc
<benkolera>
So what is your intent for installing the package? For it to be nix-env installed or used to build a project? If it is the latter there's a nicer way than fiddling with nixpkgs.
<benkolera>
I can write an example if I have a little more info. :)
<Enzime>
maerwald: here's an example from my computer (these files are both inside ~/.config/nixpkgs)
<Enzime>
not actually sure if you can/are meant to add new packages to nixpkgs using overlays
<Enzime>
need to figure out how to do that
Izorkin has joined #nixos
<growpotkin>
You can
<growpotkin>
I think it's a little easier to just add to your path though
freeman42x]NixOS has quit [Ping timeout: 276 seconds]
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<benkolera>
Ahh. I should learn that too. :)
<Enzime>
also are we meant to be adding overlays into
<Enzime>
~/.config/nixpkgs/overlays.nix
<Enzime>
or ~/.config/nixpkgs/overlays/*
kyren has joined #nixos
<growpotkin>
I couldn't tell you. I have all of my stuff system wide haha
<Enzime>
growpotkin: how do you make system-wide overlays?
<growpotkin>
add an overlays folder to your path, and then make add an "overlays.nix" in that folder
<Enzime>
growpotkin: when you say path, you're referring to the nix path, right?
<growpotkin>
yeah
<Enzime>
are you adding it as <nixpkgs-overlays>?
<growpotkin>
yes
jmeredith has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @pSub pushed 0 commits to add-missing-licenses: https://git.io/fN5Gr
growpotkin has quit [Remote host closed the connection]
mayhewluke has joined #nixos
<joepie91>
jD91mZM2: you just popped up on my twitter feed with your mad-science jrust project :P
<{^_^}>
[nixpkgs] @pSub pushed 177 commits to add-missing-licenses: https://git.io/fN5Gi
garbas has joined #nixos
<tertle||eltret>
i just played a game of Dota on my nix machine
<tertle||eltret>
graphics drivers are still an issue on Linux im afrad
<joepie91>
tertle||eltret: oh, for sure
<tertle||eltret>
even with the Nvidia blob, its still at least 30fps behind windows
trevthedev has quit [Ping timeout: 272 seconds]
trevthedev has joined #nixos
<maerwald>
that's rarely an issue with the driver,but with the game
<maerwald>
some games are faster
vidbina has joined #nixos
sophiag has quit [Ping timeout: 265 seconds]
<tertle||eltret>
im not so sure
vmandela has joined #nixos
<jD91mZM2>
joepie91: You're welcome :D
<jD91mZM2>
I love how more people are starting to call me "mad scientist". Before jRust it was just one person. Now I must officially have that title :D
<jD91mZM2>
joepie91: True! Also there's almost nothing useful to make nowadays that hasn't already been made
<jD91mZM2>
The most useful program I have is literally just a command line prompt rewritten in Rust so it's faster
hakujin3 has quit [Ping timeout: 240 seconds]
<joepie91>
jD91mZM2: that one I have to disagree on :) there's lots of useful things to make, but most of them are both very finicky and economically uninteresting
<jD91mZM2>
joepie91: Example?
<jD91mZM2>
Btw we should move to #nixos-chat
<joepie91>
yeah
<leotaku>
Is it worth using nixops for 1 local server? I currently just ssh, but it's starting to annoy me.
<{^_^}>
[nixpkgs] @pSub pushed 0 commits to add-missing-licenses: https://git.io/fN5nA
<nioncode>
how can I make a service not start at boot, but make it possible to start it manually with `systemctl start xx`? if I set systemd.service.xx.enabled = false then the service gets masked and I can not start it manually anymore
silver has joined #nixos
<srhb>
nioncode: It depends on the service a bit, but usually by altering wantedBy
oida has joined #nixos
<nioncode>
srhb: so simply setting wantedBy = []? I'll try that now, but I have to rebuild VirtualBox first
thc202 has joined #nixos
<srhb>
nioncode: NixOS option lists generally merge with ++, so you'll probably need lib.mkForce [] instead of just = [] :)
vmandela has quit [Ping timeout: 240 seconds]
garbas has quit [Ping timeout: 240 seconds]
ng0 has quit [Quit: Alexa, when is the end of world?]
oida has quit [Ping timeout: 250 seconds]
jophish___ has quit [Quit: WeeChat 2.0]
jophish has joined #nixos
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
<vaibhavsagar>
why are we building all haskell packages with profiling enabled now?
<vaibhavsagar>
this seems like a recent change because 18.03 doesn't have this behaviour
garbas has joined #nixos
vmandela has joined #nixos
<cocreature>
vaibhavsagar: because it’s pretty convenient when you don’t have to recompile things when you want to use profiling and having both profiling and non-profiling builds in the cache basically doubles load, see https://github.com/NixOS/nixpkgs/issues/22340
<{^_^}>
#22340 (by peti, 1 year ago, closed): Build profiling libraries in 'haskellPackages' by default?
<thebloggu>
hello. I'm using nix in macOS and I can't install the telnet package even though I can find it in the search online. can someone help me understand why?
<tilpner>
thebloggu - How are you trying to install it?
<tilpner>
(If not using -A, the name is inetutils)
<aminechikhaoui>
looks like telnet isn't supported on darwin
<thebloggu>
tried both `nix-env -iA nixos.telnet` and `nix-env -I telnet`. inetutils worked but install a different ping utility that somehow doesn't have privileges to open sockets on normal users. I wanted just telnet
<aminechikhaoui>
it has platforms = stdenv.lib.platforms.gnu; so I guess only linux is supported
<thebloggu>
aminechikhaoui: oh ok. can you tell me how can I check it? from the online package search I couldn't find the type of build and I assumed it supported all
<thebloggu>
tilpner: btw, I didn't give you the output for `nix-env -iA nixos.telnet`: "error: attribute 'nixos' in selection path 'nixos.telnet' not found"
<tilpner>
thebloggu - nix-env -iA nixpkgs.telnet
<tilpner>
But that will still give you ping
<tilpner>
There is no package that provides just telnet. You could create one, that just copies telnet from the telnet package
<thebloggu>
tilpner: right: `ping: Lacking privilege for raw socket.`
<tilpner>
I don't know how to have suid ping on darwin
<thebloggu>
tilpner: ok, but could I ask you to guide me through it? I just installed nix so I'm still trying to understand how to work with it
<tilpner>
First, do you want to have telnet installed globally? Maybe a nix-shell works for you?
<thebloggu>
tilpner: for now it makes no difference for me, I'm the only user of my machine. whatever is easier or a best practice
<tilpner>
That defines a package that contains just telnet, not ping
<tilpner>
The interesting part will be installing it cleanly
<tilpner>
Do you know about overlays, or already have a nixpkgs fork?
ambro718 has quit [Ping timeout: 244 seconds]
<thebloggu>
tilpner: no
<tilpner>
Then for now we'll just put it in a file, and you can clean that up once you learn about overlays
<thebloggu>
tilpner: ok. I created telnet.nix and pasted the command above
Maxdaman1us has quit [Ping timeout: 240 seconds]
<tilpner>
That's not quite enough. You need put "with import <nixpkgs> {};" above that, the bot implicitly does the same
<tilpner>
Then, nix-env -if telnet.nix
<thebloggu>
tilpner: ok, just got: (..) "error: packages '/nix/store/b6qdsrzwvqf7byw47mm2v49351ldkda6-just-telnet/bin/telnet' and '/nix/store/48f8g4gkhyqj66qhi5fx0aik2w6bw4wj-inetutils-1.9.4/bin/telnet' have the same priority 5; use 'nix-env --set-flag priority NUMBER INSTALLED_PKGNAME' to change the priority of one of the conflicting packages (0 being the highest priority)" (..)
<thebloggu>
probably because I have inetutils installed?
<tilpner>
You still have the old inetutils package installed. Our new package conflicts with it
<thebloggu>
tilpner: ok
<tilpner>
You could uninstall inetutils if you don't need anything but telnet from it
<thebloggu>
tilpner: done. I have just-telnet installed
<tilpner>
(You don't need to, but I have never set priorities with nix-env, so I'm guessing too)
orivej has joined #nixos
<tilpner>
Good. You should have telnet now, without ping or any of the other tools
<thebloggu>
tilpner: ok, working fine, thank you. just tested both and it works as expected
Maxdamantus has joined #nixos
<thebloggu>
tilpner: just a question, I imagine this wouldn't be updated with nix-env --upgrade?
<thebloggu>
tilpner: or is it just like any other package?
<tilpner>
I don't think it would be
<tilpner>
I don't think I've ever used nix-env --upgrade, so I don't really know what it does
<tilpner>
It might work if you overlay just-telnet
<tilpner>
But not the way we've done it right now
<thebloggu>
tilpner: from what I've seen it upgrades all the packages in the environment. but I might be wrong. I'm used to the traditional yum, apt
<wucke13>
I have a problem with steam. One game does not start, exiting with libGL errors immediately. However, other games and steam itself run fine. 32Bit OpenGL and Pulse packages are enabled. Had someone something simialary?
<cocreature>
wucke13: which game?
<wucke13>
synergy does not run, hl2 does run well.
<cocreature>
don’t know anything about synergy (never tried to run it) but some games have wrapper scripts that reset ld_library_path instead of only adding to it. in that case, changing the wrapper script usually works
<wucke13>
Even more odd: i have two systems sharing almost everything configuration wise. on the one synergy runs fine, on the other not. Most significant difference, the one system has a nvidia gpu and nvida driver (synergy runs well), the other intel integrated gpu (synergy does not run well).
ambro718 has joined #nixos
erikl has joined #nixos
<wucke13>
Good point though cocreature. Synsergy comes with a launcher script.
pie_ has joined #nixos
ericsagnes has quit [Ping timeout: 256 seconds]
<wucke13>
cocreature: would you mind taking a look at the script? For me it looks like ld_library_path is extended, but not reset... https://pastebin.com/d5DEKHQE
johanot has quit [Remote host closed the connection]
<cocreature>
wucke13: hm yeah that looks fine, sry not sure what the problem is
<wucke13>
I have a hotfix. In `.local/share/Steam/steamapps/common/Synergy/bin/` rm or mv the file `libstdc++.so.6`. Oddly, it works fine now.
<wucke13>
Many thanks to you, cocreature
<teto>
haskell related, I am trying to use developPackages { source-overrides = { ghc-mod = "5.7.0.0" }} but nix-shell prints "5.8.0.0' when dealing with ghc-mod. Any hint ?
<erikl>
In NixOS, is it safe to assume that everything except the home folder and the nix configuration files (e.g., the one in `/etc/nixos/configuration.nix`) can be regenerated by `nixos-rebuild`?
<srhb>
erikl: /var typically holds databases and other volatile, stateful stuff that cannot be reconstructed.
<MichaelRaskin>
And stuff managed by nix-env is not derived from configuration.nix
ericsagnes has joined #nixos
<erikl>
hmm, so backing up `configuration.nix` and the home folder is not enough to replicate the same system?
<srhb>
erikl: It is iff you're not using nix-env profiles and you don't have any data.
<erikl>
(yes, but I don't use nix-env to install things)
<srhb>
(outside of /home)
<erikl>
great!
MinceR has quit [Ping timeout: 244 seconds]
<erikl>
Thanks.
<srhb>
erikl: Oh and with regards to "sameness" -- the new system would also need to use the same version of nixpkgs.
<erikl>
So if I want a fresh install to replicate my current NixOS, I just need to boot from the installer image, format the disk, provide my current `configuration.nix`, and copy the content in my current home folder?
<srhb>
erikl: Basically yes. :) (I just did this 10 minutes ago.)
<erikl>
wow, how often do you do this? is it a common practice?
<srhb>
It's easier to talk about what configuration.nix will do: It will regenerate your system, with the system packages, system configuration. Everything else is your responsibility.
<srhb>
erikl: I tend to do it regularly to see how the installer is doing.. I'm weird though.
<srhb>
erikl: But since it's such a quick process if everything is working, meh.. :P
<gchristensen>
leotaku: hmmm in your nixops config for that system, do you have a line saying nixpkgs.system = "aarch64-linux"? (I'm assuming you're deploying to a rasppi which is aarch74
<erikl>
srhb: do you do that within your currently running NixOS or a separate bootable USB/CD?
<MichaelRaskin>
erikl: also, for example, CUPS printer list might live in a writable directory in /etc/
<srhb>
erikl: It differs :)
<srhb>
erikl: In this case I did it on my running system, by removing one disk from my mirror, installing on that.
ambro718 has quit [Ping timeout: 272 seconds]
<leotaku>
gchristensen: I tried it with and without your line but neither one seems to work.
<gchristensen>
what are you deploying to?
<srhb>
This is weird. grub is unstable to install itself into the efi boot manager, but systemd-boot can just fine. efibootmgr -c gives: "Could not prepare Boot variable: No such file or directory"
<srhb>
I tried stracing that, and there's an ENOENT on /sys/devices/pci0000:00/firmware_node/uid, but I don't know if that's a red herring.
endformationage has joined #nixos
<leotaku>
gchristensen: rpi 3 model b
<MichaelRaskin>
srhb: there is a question if the FS for access to EFI variables is mounted; and copying over BootX64.EFI can work even without changing the variables
<srhb>
MichaelRaskin: Oh, that would make sense indeed!
<gchristensen>
well.... I hate to be rude, but the only reason I can imagine it doesn't work is if it isn't in the right place. so, I just want tomake sure it is in the right place ):
<gchristensen>
:)
<leotaku>
gchristensen: yo're not at all being rude! Where would the right place be?
<leotaku>
I tried putting it in the deployment specification as well as the already running nixos system.
<gchristensen>
:/ all I can say is it works for me on 18.03
<gchristensen>
leotaku: are you on unstable?
<leotaku>
gchristensen: yes, unstable
<gchristensen>
clever: did nixpkgs.system change in unstable?
<jasom>
so I just did a reinstall of nixos and when I reboot, it runs through systemd and then just sits there. I have no VCs and no login shells and no sddm, despite having that set in my configuration.nix any ideas?
vidbina has quit [Ping timeout: 260 seconds]
johanot has joined #nixos
mayhewluke has joined #nixos
ambro718 has joined #nixos
<leotaku>
gchristensen: how is the nixpkgs of the deployed machines set?
<leotaku>
Is it just that of the controller?
<gchristensen>
yea, NIX_PATH of the env you'redeployin from
vcunat has quit [Ping timeout: 256 seconds]
<clever>
gchristensen: ive not noticed nixpkgs.system change on unstable, but i have noticed it being weird on mac
<{^_^}>
[nixpkgs] @danieldk opened pull request #44902 → python/grpcio: fix darwin build → https://git.io/fN5EC
<ivan>
does anyone else patch their kernel just for ACS override for VFIO? too much of a weird thing to be in nixpkgs?
<leotaku>
gchristensen: on 18.03 i get this error: "error: a 'aarch64-linux' is required to build '/nix/store/dl3kihf1w3c3gr9sn891avn3zmx46x1a-append-initrd-secrets.drv', but I am a 'x86_64-linux'"
<gchristensen>
good! that means it worked!
<gchristensen>
sorry I can't solve _that_ now, I have to go. but you're on the right track!
<clever>
leotaku: if you clone this repo, add the relative path of qemu.nix to your imports, and set qemu-user.aarch64 = true;, then your machine can magically run aarch64 binaries
<clever>
it will also configure nix to understand that, so the above error wont happen
<elvishjerricco>
Does NixOS have a setting to display a splash screen after stage 1 while booting rather than the stage 2 output?
<samueldr>
I didn't want to unilaterally merge #33686, since it changes a bunch of things, but the lack of activity after my latest update makes me think I should do it and wait for someone to scream :/
<srhb>
Bizarre. I can also alter the boot order, but not create new boot entries...
Mateon1 has quit [Ping timeout: 244 seconds]
Mateon2 is now known as Mateon1
<srhb>
Wonder if my firmware is just toast.
<infinisil>
samueldr: This only changes the installation iso grub menu? Not the one for the grub when you have it installed on a normal machine?
<samueldr>
another one :/ what model (trying to keep traces in IRC)
<samueldr>
infinisil: exactly, this is **only** the installer
<samueldr>
it changes the bios-boot (legacy) bootloader's appearance, and replaces systemd-boot by grub for one that will work much better on 4k displays
<samueldr>
s/for one that/, which is one that/
<samueldr>
(just because on most hidpi UEFI implementations, the text is still ant-sized small)
<infinisil>
samueldr: To build it I use `nix-build nixos/release.nix -A iso_graphical`, right?
<samueldr>
whatever worked previously
* samueldr
verifies notes
<samueldr>
this isn't the command I had noted, but mine was the roundabout way to do the same
<samueldr>
it should affect the minimal iso too
<infinisil>
Ah right
<infinisil>
Okay I'll try to build and verify this on my 2 machines
<infinisil>
verify it working*
<samueldr>
♥
<infinisil>
:)
<sphalerite>
looks great from the screenshots :)
<infinisil>
Indeed!
<samueldr>
infinisil: have a hidpi screen?
<infinisil>
Unfortunately not
<samueldr>
there is a new option to force 1080p or 720p for more readable text (under accessibility)
<samueldr>
this is one thing I was hoping got verified to work on at least one laptop with higher res
<infinisil>
While in the grub screen?
<samueldr>
the option is in the grub screen, and it affects the linux framebuffer VT
<samueldr>
I verified that on my 1080p laptop it forced 720p
<samueldr>
but I would have liked to know if it worked on actually high-res displays too
<samueldr>
(my bet is "totally")
<sphalerite>
I'd try it, but don't have a USB stick handy :/
<infinisil>
What's the worst thing that could happen on hires screens?
<sphalerite>
it's funny because my rooted android device is a bacon
<sphalerite>
clever: samueldr did ask about a *rooted* android phone
<samueldr>
clever: which is why I asked for rooted android :)
<jasom>
Out of curiousity, is there a way to aaffect what filesystems are mounted in the initrd? I tried having /nix on a separate filesystem and it did not boot.
<samueldr>
infinisil: AFAICT, the realistic worse is that nothing happens (still tiny text) and the pessimistic worse is garbage on the display
<clever>
jasom: configure it normally under the fileSystems config in configuration.nix
<samueldr>
infinisil: but that would be *for that boot*
<infinisil>
Yeah that sounds fine, as long as people can still boot their machine
<sphalerite>
meh it's not on f-droid
<samueldr>
yeah :/ it's not OSS, though it's also distributed outside play store.
acarrico has quit [Ping timeout: 256 seconds]
ennui has quit [Ping timeout: 272 seconds]
<jD91mZM2>
Can Nix paths have spaces in them?
<jD91mZM2>
I mean like `./testing 123`
alexteves has joined #nixos
<srhb>
jD91mZM2: Nope.
<srhb>
jD91mZM2: You can use builtins.path to rename them if need be.
<jasom>
grr... nix-env -qa '*' shows nothing
<jD91mZM2>
srhb: What characters are valid in paths? a-zA-Z0-9 and /?
growpotkin has joined #nixos
<MichaelRaskin>
I think [-+_] are also OK
<srhb>
jD91mZM2: I doubt / is okay. that would be strange.
<MichaelRaskin>
Wait, paths have to contain / as separator
<srhb>
Maybe there's a bug in the stable installer.
<jasom>
I downloaded the iso on Wednesday
<srhb>
jasom: I'll grab a copy and check later, thanks.
<Thra11>
clever: Thanks
<jasom>
srhb: another oddity is I set a hashedPassword for root in my configuration file, and set immutableUsers, but it still querried me for a root password during the install process.
<srhb>
jasom: Indeed, there's no check for that iirc.
<jasom>
srhb: from the manual: "Note: To prevent the password prompt, set users.mutableUsers = false; in configuration.nix, which allows unattended installation necessary in automation."
<clever>
jasom: i suspect that might have been broken by the nixos-install rewrite
<clever>
jasom: the code to make it work is missing from nixos-install.sh
<samueldr>
serial works, and with -serial none too
<samueldr>
infinisil: just now pushed
<infinisil>
Doing the thing
Anton-Latukha has quit [Ping timeout: 248 seconds]
vcunat has joined #nixos
<jD91mZM2>
Are there any proposals to improve (aka delete) the path system? Asking because I really don't want to have to figure out how to implement this in my parsr
<jD91mZM2>
s/parsr/parser
<samueldr>
I wouldn't think so
<infinisil>
jD91mZM2: Why would that be removed??
<jD91mZM2>
idk, just hoping
<samueldr>
in my toy parser I didn't have issues as it's well documented
<jD91mZM2>
I'm doing tokenizing and parsing as separate steps
<jD91mZM2>
Also it doesn't currently support any kind of lookaheads
<samueldr>
(btw, the toy parser I made used a PEG and AFAICT it's impossible for a PEG because of lookaheads)
<jD91mZM2>
So like a+b/3-2 would become a path in Nix, but I can't know that because I can only look ahead one character
<clever>
> a+b/3-2
<{^_^}>
/var/lib/nixbot/state/nixpkgs/a+b/3-2
<clever>
ouch
<jD91mZM2>
Of course I can make it not lookahead, but that was my favorite feature :(
<jD91mZM2>
s/not lookahead/do a lookahead/g
<jD91mZM2>
I guess with a lookahead I could also avoid allocations so that's kinda a win... but... :(
<samueldr>
pretty sure that for real-world nix you'll need that :/
<infinisil>
samueldr: Not sure if this is related, but I get some (non-fatal) errors during the nix-build: /build/.attr-0: line 18: console: command not found /build/.attr-0: line 18: gfxterm: command not found /build/.attr-0: line 18: serial: command not found
<samueldr>
jD91mZM2: I assume the parser is in lolcode^W java-like rust?
<clever>
infinisil: you need a newer nix-daemon
<samueldr>
OH
<samueldr>
no
<samueldr>
clever: he's right
<MichaelRaskin>
Well, PEG does have lookaheads
<jD91mZM2>
samueldr: It's written in LOLCODE, translated to PHP using the first LOLCODE parser, and ran in a Rust macro that converts PHP to Rust, and ran inside jslinux
wucke13 has quit [Quit: WeeChat 2.0]
<samueldr>
MichaelRaskin: I could have misremembered the thing I needed that the PEG parser I used doesn't have
<infinisil>
clever: I do? What's this got to do with that?
<clever>
infinisil: the nix daemon needs to support passing derivation attributes as files
<samueldr>
clever: nah
<samueldr>
that's <<EOF ... EOF rearing it's ugly head
<clever>
samueldr: ah
<infinisil>
I'm running 2.0.4
<clever>
and it just happens to be beside an attr that was passed as a file
<samueldr>
clever: anything particular you want to point out?
<clever>
nothing yet
<samueldr>
clever: btw, infinisil is testing my changes
<jD91mZM2>
samueldr: Nice! I'm not using any framework. What are the advantages?
<clever>
modevar = grub_env_get ("gfxmode");
<clever>
set gfxmode=auto
<clever>
i can see where it checks things that nixos's grub.cfg was setting
<{^_^}>
[nixpkgs] @Ericson2314 pushed to codeowners « .github/CODEOWNERS: Add myself as for some stdenv stuff »: https://git.io/fN52X
<samueldr>
jD91mZM2: no idea, I stumbled upon LPEG stuff which looked fun while I was doing lua stuff, then wanted to implement `nixfmt` but there are no parsers which keep *all* information about nix code (spaces, comments)
FruitieX has quit [Ping timeout: 240 seconds]
<samueldr>
jD91mZM2: so I looked for a PEG in ruby for my first use of one, and first try at real-world parsing
<samueldr>
jD91mZM2: oh right, scratch that revisionist history; I used parslet in the past to parse posix-shell
<samueldr>
try to parse posix shell
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #44908 → .github/CODEOWNERS: Add myself as for some stdenv stuff → https://git.io/fN52D
<jD91mZM2>
Cool! My first parser was just a math parser. Started off operating on a list, calculating stuff in the right order, but then a friend told be about recursive descent parsers
tertle||eltret has joined #nixos
<clever>
samueldr: it looks like the gfxpayload has to do with what mode grub puts the gpu into, after you pick an os
<clever>
samueldr: so that the linux is happy with the "current" mode on startup
<tertle||eltret>
got my KVM in today. now im running in twin turbo
<samueldr>
clever: maybe I missed something, but how is this relevant?
<clever>
samueldr: just checking everything related to gfx in my config
<clever>
so i know if they are relevant or not
<samueldr>
ah okay, thanks
<samueldr>
I thought this was specifically about *something*
<clever>
if loadfont ($drive1)//converted-font.pf2; then
<clever>
i'm guessing you can just put the serial command into an if block, to detect its failure
<clever>
but you need to then get gfx to work without expecting serial
<samueldr>
clever: already used `if serial; then...` to fix the issue :)
<clever>
ah
<samueldr>
what's happening is that `if serial` the (failure) output can be seen for an instant
<clever>
ahh
<samueldr>
which could be fine, but messy
<samueldr>
but I made a small detour into this other conversation instead of looking up if it was possible to silence it
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<neonfuz>
so do imports get "deep merged"
<infinisil>
samueldr: It seems that i get the mentioned error on all kinds of things
<neonfuz>
like if you have imports in a file, do the sets you're importing get merged, or what
<infinisil>
firmware setup, hidpi screen
<samueldr>
yep
<samueldr>
I'm looking into an alternative
<infinisil>
And these resolution suggestions don't seem to work either with the same error
* samueldr
kind of hate sh-like grub config
Dedalo has joined #nixos
freeman42x]NixOS has joined #nixos
<neonfuz>
I'm getting "<variable> is already defined at <file>" errors when importing the same path (in this case services.xserver) in 2 different imports
<neonfuz>
is there a way to import many files and merge them? or no
<clever>
neonfuz: imports already does that
<neonfuz>
I feel like I could import and then //, but that would be bad, essentially I'm just trying to clean up my configuration.nix
<neonfuz>
it does?
<clever>
neonfuz: yes
<clever>
neonfuz: what is the attribute that is colliding?
<neonfuz>
so I have "services.xserver.displayManager.lightdm.autoLogin.user" in a file I created for my user, and then I define more things in the main config file in "services.xserver = ...", and it's erroring for me
<clever>
neonfuz: and what is the exact error?
<neonfuz>
error: attribute 'services.xserver' at /etc/nixos/user/sage.nix:25:3 already defined at /etc...
<clever>
neonfuz: can you pastebin sage.nix?
<tertle||eltret>
a lot of my installed applications are showing in the start menu?
<neonfuz>
Oh, I found the error... thanks
<infinisil>
tertle||eltret: #42910
<neonfuz>
I had defined services.xserver twice in sage.nix
<tilpner>
I did pass --ignore-liveness, but I was deleting an unrelated store path
<tilpner>
Or so I though
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #44908 → .github/CODEOWNERS: Add myself as for some stdenv stuff → https://git.io/fN52D
<{^_^}>
[nixpkgs] @Ericson2314 pushed to master « .github/CODEOWNERS: Add myself as for some stdenv stuff »: https://git.io/fN5Vc
hakujin4 has joined #nixos
<clever>
tilpner: never use ignore liveness, thats how you break everything :P
hakujin2 has quit [Ping timeout: 256 seconds]
<clever>
tilpner: if it refuses to delete something, use `nix-store --query --roots` to see why
<clever>
and nix why-depends to find the link between them
schmittlauch[m] has joined #nixos
<tilpner>
clever - I copied a squashfs with nix-copy-closure, and then compared the local and remote sha256. They differed (!), so I thought I would delete just that path and re-copy
<tilpner>
Guess I can set up this server... again
hakujin3 has quit [Ping timeout: 256 seconds]
<clever>
tilpner: try the rollbacks in grub first
<tilpner>
I don't know how to
<clever>
if you can find one that didnt depend on that squashfs
<schmittlauch[m]>
ohai
<tilpner>
It's a remote server, I only have ssh
<clever>
tilpner: ah, then your depending heavily on what the hoster provides
<tilpner>
(Hetzner)
<schmittlauch[m]>
Are the Nix and NixOS manual already available in epub or do I have to build that myself from the docbook sources?
<Brains>
That is my cue... I am trying to run SpaceChem (Steam version, but from bash) and I'm looking for some troubleshooting tips. I tried steam-run'ing the launcher but I get an error about a missing DLL.
<Brains>
(I'm looking more for docs so that I can troubleshoot the other problematic Steam games I already know I'll have to fiddle with... They fail differently, of course.)
<rhomboidcactus>
so, I'm new to nixOS and decided to try it out, liking so far, at first all my packages were going into `environment.systemPackages`, I'm using allowUnfree = true in my `configuration.nix`. After a while I look at the the nixos options and found that you can make certain packages availiable only the a user via `users.user.username.packages`, but now it does not let me install unfree packs.
<clever>
Brains: what dll is missing?
<Brains>
clever: In this particular case, it is libnative.so... Which I didn't see the first time, but now I see is a dll in the local dir.
Maxdamantus has quit [Ping timeout: 240 seconds]
<clever>
rhomboidcactus: can you pastebin your configuration.nix?
<clever>
Brains: youll need to add . to LD_LIBRARY_PATH
<rhomboidcactus>
sure, just give me a sec
<Brains>
clever: Doesn't steam-run end up replacing my current LD_LIBRARY_PATH?
<clever>
Brains: i dont think so, it just creates a /lib and /usr/lib with namespaces
<Brains>
clever: So I should be able to just LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH steam-run ./spacechem-launcher.sh? That gives the same error.
<benley>
anyone know how to override something haskellPackages to get a non-stripped binary with debug symbols?
<benley>
*something in haskellPackages
<clever>
Brains: have you read spacechem-launcher.sh yet?
<Brains>
clever: It is really simple, just sets MONO_CFG and MONOPATH before calling mono on SpaceChem.exe
<clever>
Brains: what happens if you just nix-shell -p mono and then run mono directly on the binary?
<clever>
ive had that work for me before
<samueldr>
infinisil: (while waiting a bunch for iso builds) I finally managed to get a config that doesn't add error messages
<samueldr>
infinisil: also note that once you select something in hidpi and accessibility, you will end up in a menu looking like the top-level menu; it isn't it's the choice of configuration *including* the option
<samueldr>
(I'm unsure if an earlier comment was referring to this sub-menu)
<Brains>
clever: Slightly different stack (I believe native mono is much more recent than the bundled mono), but same complaint.
* Brains
is slightly fried at the moment from yard work and feels like he's missing something obvious.
emacsomancer has joined #nixos
<schmittlauch[m]>
infinisil: Do I need to clone the nixpkg repo again or is this lying around in my nixos installation anyways? If yes, where?
<infinisil>
samueldr: So it runs without error now, but all these suboptions in the hidpi menu don't do anything as far as i can see
<schmittlauch[m]>
I consider switching my only daily working sysgtem from Gentoo to NixOS, so I need to understand stuff rather well.
* schmittlauch[m]
starts reading
<samueldr>
you mean that once you select one, you're in a menu with four options, right infinisil?
<infinisil>
Yeah
<samueldr>
they are the four options you also see at the root menu
<infinisil>
Yup
<samueldr>
that's the only way to select e.g. 720p + one of those
<samueldr>
no way to toggle bits within grub to then build a command line
<infinisil>
Oh, so these settings are for when you actually boot it?
<MichaelRaskin>
schmittlauch: don't you have a handful of bootable USB drives with Gentoo lying around?
<samueldr>
yes
<infinisil>
Like the running system?
<infinisil>
I see
<samueldr>
exactly
<samueldr>
they are kernel command line arguments
<infinisil>
samueldr: Okay one more error: firmware setup throws "can't find command fwsetup"
<samueldr>
hmmm, I may just as well drop it if it isn't working everywhere
* samueldr
verifies
<infinisil>
,locate bin fwsetup
<{^_^}>
Couldn't find any packages
<samueldr>
AFAIK it's an UEFI feature
<schmittlauch[m]>
MichaelRaskin: no, but I probably put a bootable backup on an external HDD before doing the final switch. I currently try to reproduce my setup as close as possible in VirtualBox to get to know NixOS.
<infinisil>
Hmm I see
<samueldr>
just counter-verified, and it loads the firmware setup menu on my c720p
<samueldr>
(and IIRC I verified it on my other machines in the past)
<MichaelRaskin>
schmittlauch: yes, that's not as a replacement to preparing the switch well, just a routine risk management step
<infinisil>
samueldr: How about a wrapper that displays a more informative error message when the command is not available
<infinisil>
If that's possible
<samueldr>
I do wonder
<schmittlauch[m]>
Do I already want to get started using a home directory manager or can I trivially add that later?
teoma has joined #nixos
<samueldr>
could you help me? get to the grub cmdline, (press C) then type fwsetup ; echo $?
Ariakenom has quit [Read error: Connection reset by peer]
<infinisil>
0
<samueldr>
hmm, weird
<infinisil>
(this was harder than I thought, because I don't have my dvorak layout!)
__monty__ has joined #nixos
Ariakenom has joined #nixos
<samueldr>
haha
<infinisil>
But yeah, this is weird, I guess it doesn't behave the same as bash with this
<infinisil>
s/weird/unexpected
<samueldr>
it's its own language, which looks a lot like bash/sh
<infinisil>
yea
<samueldr>
but it *will* set $? on failure when commands fail appropriately
<samueldr>
I guess fwsetup doesn't
<Drakonis>
finally, nixos-unstable isn't broken
<samueldr>
was nixos-unstable broken?
<schmittlauch[m]>
So there's a build file for the nixos manual in nixpkgs. Is there also one for the nix manual?
<samueldr>
okay, so the command *really* isn't setup, and $? == 0 when an unknown command is called
Maxdamantus has quit [Ping timeout: 240 seconds]
<samueldr>
(instead of the conventional 127 like bash does)
<rhomboidcactus>
clever, If I change the package back to `envionment.systemPackages` it installs fine, it's probably me doing something bodgy with the config.
<samueldr>
schmittlauch[m]: it's in the nix repository
<clever>
rhomboidcactus: your importing a 2nd copy of nixpkgs, which reads /root/.config/nixpkgs/config.nix
<clever>
rhomboidcactus: you want just { pkgs, ... }:
<rhomboidcactus>
clever, ahh thanks, it makes sense!
timokau has joined #nixos
<rhomboidcactus>
clever, it worked, thank you very much!
Maxdamantus has quit [Ping timeout: 248 seconds]
<Dedalo>
look who is here today :-)
<Dedalo>
How can I start the wifi from command line during the NixOS installation? I have tried with ifconfig wlan0 up with no luck. I'm on Lenovo X1 Carbon 6th gen.
MP2E has joined #nixos
<clever>
Dedalo: does the network have a password?
<rhomboidcactus>
Dedalo, I used nmtui
<Dedalo>
yes the network has a password
<{^_^}>
[nixpkgs] @costrouc opened pull request #44914 → libxnd and libndypes: init at 0.2.0dev3 → https://git.io/fN5or
<samueldr>
infinisil: I was able to hide the message and show a message "If this failed, your EFI system doesn't support this feature."
<Dedalo>
I guess I will have to connect a cable...
<clever>
Dedalo: dod ypu try nmtui?
<Dedalo>
yep, I don't have it apparently
<clever>
Dedalo: then we want wpa_cli and wpa_passphrase
<clever>
Dedalo: is it wep or wpa?
<Dedalo>
it's wpa of course
<clever>
Dedalo: run `wpa_passphrase name password > /etc/wpa_supplicant.conf` and then `systemctl restart wpa_supplicant`
<clever>
using the exact name of the network
<infinisil>
samueldr: Nice! Will test again, and on the other machine as well
<Dedalo>
clever I try, let's see if it works
<typetetris>
when are staging and master usually merged?
<samueldr>
infinisil: you can be as nitpicky as you want, worse is (like the weird submenu structure) it's a limitation of grub
<samueldr>
infinisil: there is one option that I couldn't validate would work 100% of the time, the rEFInd option... when it is booted as a CD-ROM (like within qemu), it won't work because the `search` command of grub can't find the iso9660 FS using uuid... and other search options all seem to fail
<samueldr>
but on my devices, through USB boot, it worked fine
<Dedalo>
clever I have tried but it didn't work
* samueldr
wonders if anyone even boots using a real CD or DVD
<Dedalo>
I didn't get any error, but I can't ping google
<clever>
Dedalo: one sec
<infinisil>
samueldr: Yeah works fine for me too
<infinisil>
samueldr: Why does the hidpi option not have an icon on the left?
<clever>
Dedalo: if you run `iwconfig` does it show an essid being set?
<samueldr>
infinisil: because there are none :)
<samueldr>
maybe one should be added
tadni has joined #nixos
<infinisil>
Alright
<infinisil>
samueldr: The timer on the bottom, can this be made into a continuous bar instead of a step-wise one?
<samueldr>
grub limitation :(
<clever>
Dedalo: also try `wpa_cli -i wlan0` then check `status`, `scan`, `scan_results`, and `list_networks`
<samueldr>
it updates once a second
<infinisil>
samueldr: Alright, can a time be added too instead of just the bar?
<Dedalo>
clever nope, all I see if enp0s31f6 no wireless extensions, lo no wireless extensions and wlp2s0 IEEE 802.11 ESSDI: 0ff/any
<tadni>
So I'm fumbling around in NixOS to see if it'd be feasible for some mostly Scala self-teaching over the next couple of months; Was arguing with myself a few weeks ago if I should go Arch or not and try a chroot of NixOS and for awhile was happy with that solution ... now want to dogfood on real hardware already; In-theory as long as I set up a nix-shell env suited for it (scala dev) it should be pretty
<tadni>
trivial to get up and running?
<samueldr>
iirc yes infinisil, I have to verify
<clever>
Dedalo: check wpa_cli then
<Dedalo>
clever I get: Could not connect to wpa_supplicant: wlan0
<Dedalo>
I think the problem is that it doesn't see the interface wlan0
<clever>
Dedalo: because your card is called wlp2s0
<leotaku>
Is it possible to somehow find out if a particular piece of software is cached on cache.nixos.org?
<Dedalo>
clever fail
<clever>
Dedalo: ip link set wlp2s0 up
<clever>
in a different shell
<Dedalo>
clever operation not possible due to RF-kill
<clever>
Dedalo: your wifi is disabled with the rfkill switch
<clever>
use the physical switch or fn key to turn it on
<clever>
Dedalo: also try the rfkill command
<Dedalo>
oh....
<Dedalo>
now it works
<Dedalo>
There is no light on that key
<Dedalo>
I had to press F8
Cale has joined #nixos
<Dedalo>
clever thank you very much
<clever>
yep
<Dedalo>
I'm going to add these instructions to my readme before I forget everything, in like 10 minutes
<Dedalo>
how do you know so much about networking, are you a sysadmin?
<MichaelRaskin>
rfkill is what you learn by owning a laptop…
<infinisil>
samueldr: Alternate suggestion for the firmware setup error: "If you see this, your EFI system ..."
<clever>
MichaelRaskin: one of my older laptops had a physical switch with 3 positions, off, on, and a momentary position to open the wifi GUI
<MichaelRaskin>
Wow
<clever>
MichaelRaskin: but the spring for the momentary position would make it snap back hard enough to pass the detent and sometimes switch itself off :P
<MichaelRaskin>
Just wow
<clever>
and obviously, linux doesnt support that 3rd position out of the box
<MichaelRaskin>
I sometimes use rfkill voluntarily
<MichaelRaskin>
Wait, doesn't it just send some keycode?
<clever>
probably, i just never bothered to bind it to any gui
<MichaelRaskin>
Which X server might even vaguely associate with WiFi
<clever>
i only used raw wpa_cli and never installed a gui for it
<MichaelRaskin>
I don't always use wpa_cli. Sometimes just a raw wpa_supplicant invocation
<clever>
:D
rhomboidcactus has quit [Quit: Leaving]
<clever>
ive had the fun of using wpa_supplicant for the first time, with no wifi access to look up how the heck it works :P
<MichaelRaskin>
Ah ah
<MichaelRaskin>
The real question is whether you have the example config somewhere
<shapr>
clever: not even wicd?
<clever>
shapr: nope
<shapr>
I did that a few times, did not enjoy manual wpa_supplicant use
<Dedalo>
first time I heard about wpa_supplicant guys
<clever>
Dedalo: its the only way to connect to wpa networks
<clever>
for wep and unencrypted, you can use iwconfig bare
Maxdamantus has joined #nixos
<MichaelRaskin>
wpa_supplicant.conf is nice: very low rate of format change, and can be versioned
<clever>
Dedalo: youll also want to copy /etc/wpa_supplicant.conf to /mnt/etc/wpa_supplicant.conf and also networking.wireless.enable = true; when installing, then it will continue to work after installing
jonreeve has quit [Quit: Konversation terminated!]
<infinisil>
There are nixos options for that now, so you don't actually need to write to that stateful file
<infinisil>
networking.supplicant.*
<Dedalo>
clever but before I need to create the zfs volume, I still didn't do that
<Dedalo>
otherwise I can't mount mnt
<Dedalo>
I have just the boot volume now
<Dedalo>
need to create swap and mnt
<clever>
Dedalo: yeah, once you have the root mounted, then you can copy the config
<Dedalo>
anyway before to do that I'm going to update my readme, so just in case I need them later
<gchristensen>
for a user to read a file, must it also have permission to read the directory it is in?
<samueldr>
nice resolution infinisil :/
<gchristensen>
lgtm:)
<MichaelRaskin>
gchristensen: is this read-vs-exec question?
<inquisitiv3>
What is the best way to keep configuration.nix in a Git repo? Is it to simply create a git repo in the same directory as configuration.nix is located? Feels little unsafe to run git with `sudo`.
<infinisil>
2560x1440 :)
<clever>
inquisitiv3: i dont see any issues with running git as root, but the name configuration.nix will conflict when you add more hosts
<inquisitiv3>
MichaelRaskin: Your first suggestion seems to be the simplest and cleanest one. Thanks for the tip!
<samueldr>
> Various names are used for the instruction set. Prior to the launch, x86-64 and x86_64 were used, while upon the release AMD named it AMD64.
<{^_^}>
error: syntax error, unexpected ',', expecting ')', at (string):166:68
<inquisitiv3>
infinisil: The torrents should have several seeders.
simukis has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @griff opened pull request #44916 → nixos/tests: Set DefaultTimeoutStartSec very high → https://git.io/fN56x
<Dedalo>
I'm deciding the size of the swap partition and I don't know if make any sense to hibernate the system. Does it? Some of you use hibernation on a laptop or you always put it to sleep?
disasm has quit [Quit: WeeChat 2.0]
<clever>
Dedalo: hibernation draws zero power, so the battery will last longer