gchristensen changed the topic of #nixos to: Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://botbot.me/freenode/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64
freeman42x[NixOS has quit [Ping timeout: 240 seconds]
gamambel has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] sorki opened pull request #34510: nixops-dns: init at f6c3f79 (master...nixops-dns) https://git.io/vNbu8
NixOS_GitHub has left #nixos [#nixos]
<infinisil> Whoooaaaaaa
johnw has joined #nixos
<infinisil> Nix 1.12 / 2.0 will have FLOATS!
stephenjudkins has quit [Remote host closed the connection]
thanegill has quit [Quit: Page closed]
stephenjudkins has joined #nixos
<jtojnar> why are floats such a big deal?
lstanley has joined #nixos
nuncanada3 has quit [Ping timeout: 256 seconds]
<infinisil> well because like every language has them, except nix
<infinisil> i'm not sure where floats would have a practical usage for nix but still :D
zzamboni has joined #nixos
zzamboni has quit [Read error: Connection reset by peer]
zzamboni1 has joined #nixos
zzamboni1 has quit [Client Quit]
crucialrhyme has joined #nixos
judson has quit [Ping timeout: 252 seconds]
<Profpatsch> Yeah, have yet to see a use case for floats in nixexpressions.
<Profpatsch> I just hope there will be no arithmetic support for floats oO
<infinisil> Profpatsch: there is
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar pushed 2 new commits to master: https://git.io/vNbzP
<NixOS_GitHub> nixpkgs/master 729cf93 Spencer Baugh: supervise: 1.1.0 -> 1.2.0
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 2f98747 Jan Tojnar: Merge remote-tracking branch 'catern/upsup'
<infinisil> Profpatsch: i mean what use would floats be if you can't do anything with them
<crucialrhyme> i remember reading i think in the nix pills that even integer division isn't actually used anywhere in any of the nixpkgs expressions, is this still true?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar closed pull request #34443: supervise: 1.1.0 -> 1.2.0 (master...upsup) https://git.io/vN7q5
NixOS_GitHub has left #nixos [#nixos]
<infinisil> crucialrhyme: probably
TonyTheLion has quit [Quit: Page closed]
<crucialrhyme> what's the easiest way to get a nix-shell that has everything in my /etc/nixos/configuration.nix, plus a few other packages?
dtulig has joined #nixos
<infinisil> crucialrhyme: you mean everything in environment.systemPackages?
<crucialrhyme> infinisil: yeah
<nixy> crucialrhyme: Wouldn't your nix-shell already have access to system packages? Or do you mean with --pure?
<crucialrhyme> ohhhh you're right. my main use of nix shells up until now had been with an FHS compatible environment to use conda
<crucialrhyme> but yeah i can just use normal ones
<nixy> Yeah if you're just looking to layer packages on top of system ones you can do `nix-shell -p nmap` or something
LoggerZZZ has joined #nixos
LoggerZZZ has quit [Read error: Connection reset by peer]
ditadi has joined #nixos
hakujin has quit [Ping timeout: 240 seconds]
ditadi has quit [Client Quit]
ditadi has joined #nixos
mkoenig has quit [Ping timeout: 260 seconds]
judson has joined #nixos
<iqubic> Why can't you just run a program installer on NixOS?
mkoenig has joined #nixos
<iqubic> Why is that not a thing that works.
judson is now known as Guest95165
<iqubic> error: need temporary directory with execute permissions! tried "/run/shm", "/dev/shm", "/tmp", "/home/avi", ".", "/home/avi"
<iqubic> error: couldn't execute temporary file
<crucialrhyme> none of those directories even exist on nixos, which is a huge breaking change from normal linux distros
<infinisil> iqubic: i'd think you'd have used nix long enough by now to understand that stuff needs patching
<iqubic> Oh. So how do I get that thing to be run?
<nixy> Yeah, nixos departs from the FHS (filesystem hierarchy standard) pretty hard
<crucialrhyme> well, home does
<iqubic> infinisil: I didn't actually think that would work to be honest.
<crucialrhyme> it's possible to create a nix-shell environment that is fhs-compatible, so has all that stuff just within the environment. i use that for Anaconda Python
<nixy> Pretty sure something like that is used to make steam work too
<samueldr> iqubic: is your home mounted with `noexec`?
<samueldr> and /dev/shm exists for nixos,
<crucialrhyme> there's a tutorial. depending on how complicated the installer is, it could likely be adapted for your case
<iqubic> samueldr: I don't think so.
<iqubic> crucialrhyme: The installed is just one *.run file that I execute.
<crucialrhyme> yeah that's exactly the same as here
<iqubic> So what should I do?
<samueldr> that is, unless the installer itself checks in weird and wrong way for "execute permissions" for dirs, though, installers are expected not to run properly on nixos most of the time
<iqubic> Oh, so it won't work? That stinks.
<iqubic> Is there a way to force this to work?
<crucialrhyme> that link is a good starting point
<nixy> iqubic: You can always run whatever you need to in a virtual machine, if you don't care to learn how to get it to work with nix
LoggerZZZ has joined #nixos
<crucialrhyme> you have to add the installer to the nix store
ryanartecona has quit [Quit: ryanartecona]
<iqubic> nixy: I know.
<iqubic> I know that I can also just run the thing on Windows.
<iqubic> I dual boot Windows and Linux for just this reason,
<iqubic> So I'll do that.
randomstrangerb has quit [Ping timeout: 256 seconds]
<clever> samueldr: it might be that the ld.so path is wrong, and the bash script assumes the error is due to noexec
<iqubic> Are we stil talking about my error?
<samueldr> yeah, anything going wrong and assuming that `scary command` means noexec
<clever> iqubic: yeah
<iqubic> Oh, I see.
ditadi has quit [Quit: WeeChat 2.0]
<crucialrhyme> that's not an unreasonable thing to do (i triple boot nixos, ubuntu, and windows, for when i absolutely need stuff that just won't work on nixos and needs a gpu so can't be in a vm)
randomstrangerb has joined #nixos
ditadi has joined #nixos
ottidmes has quit [Ping timeout: 252 seconds]
LoggerZZZ has quit [Read error: Connection reset by peer]
<iqubic> I'd like to do this on NixOS, but I'm not sure I'll be able to do that.
LoggerZZZ has joined #nixos
mkoenig has quit [Ping timeout: 268 seconds]
<crucialrhyme> based on my own experience as a beginner trying to build things with nix, it might be a weekend project to get it working, but a very educational one
<crucialrhyme> it takes a certain kind of depraved individual to find that fun, though
<clever> :D
* samueldr takes a long look in the mirror
ma27 has joined #nixos
alex`` has quit [Quit: WeeChat 1.9]
<iqubic> I'd find it fun
digitus has quit [Quit: digitus]
LoggerZZZ has quit [Read error: Connection reset by peer]
<crucialrhyme> what software is it?
<crucialrhyme> there are proprietary things like Mathematica in nixpkgs, with the idea being you just have to provide the installer file yourself
cement has quit [Ping timeout: 255 seconds]
LoggerZZZ has joined #nixos
LoggerZZZ has quit [Read error: Connection reset by peer]
jmiven_ has joined #nixos
jmiven has quit [Quit: co'o]
mkoenig has joined #nixos
crucialrhyme has quit [Quit: WeeChat 2.0]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar pushed 1 new commit to master: https://git.io/vNba3
<NixOS_GitHub> nixpkgs/master 93532b0 Kevin Liu: looking-glass-client: init at a10
NixOS_GitHub has left #nixos [#nixos]
<iqubic> This is a prprietary PC game that's not in nixpkgs. If I really want, I can just get steam and try it that way. But I find that this game works better if I use the installer vs oing through steam.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar closed pull request #34386: looking-glass-client: init at a10 (master...looking-glass) https://git.io/vNyxC
NixOS_GitHub has left #nixos [#nixos]
<samueldr> I successfully used steam-run (without steam) to run a game in the past
<samueldr> maybe your installer will be happy with what steam-run gives?
guts has quit [Quit: WeeChat 1.9.1]
<Lisanna> is sourcing /etc/profile from a systemd.service a good idea? I need things like the NIX_REMOTE=daemon setting and my proxy settings, but I don't necessarily want the systemPackages to all get put into the service's path.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] sorki opened pull request #34511: nixos/nixops-dns: init (master...nixops-dns-module) https://git.io/vNbwe
NixOS_GitHub has left #nixos [#nixos]
<pie_> dtz, any idea how to fix this? does it even need fixing?: luaotfload | db : Reload initiated (formats: otf,ttf,ttc); reason: "File not found: lmroman10-regular."
<pie_> this is from a lualatex run
jmiven has joined #nixos
<dhess> so I have this in a derivation: `src = pkgs.lib.cleanSource ./foo.tar.xz;`
<dhess> but it seems like it's trying to clean the tarball file rather than the unpacked directory
<dhess> how can I do that?
<clever> dhess: cleanSource doesnt understand how to unpack things
jmiven__ has joined #nixos
<dhess> clever: right, so how can I unpack it first and then use that as the src?
oida has quit [Ping timeout: 240 seconds]
phdoerfler has quit [Quit: Leaving.]
MP2E has quit [Remote host closed the connection]
jmiven__ has quit [Client Quit]
jmiven__ has joined #nixos
<Lisanna> dhess aside from the obvious and possibly slightly painful way of doing a stdenvNoCC with just the unpackPhase?
<Lisanna> tbh that's what I'd do
jmiven_ has quit [Quit: co'o]
<dhess> Lisanna: hmm obvious to you maybe, but not to me. Got any examples of that?
jmiven_ has joined #nixos
jmiven has quit [Ping timeout: 276 seconds]
<Lisanna> dhess ah, sorry, wasn't the intended tone of that message
<dhess> Lisanna: I am also sorry, I forgot the :)
<dhess> didn't mean to be snarky, just admitting that I haven't used or seen stdenvNoCC before
<dhess> anyway.. so maybe create a package that just uses stdenvNoCC, unpacks it, and then pass that package as an input to this one?
radvendii has quit [Quit: WeeChat 2.0]
<Lisanna> do something like that, and then yeah, just pass the result of that drv to the thing you were trying to run
<dhess> Lisanna: ahh great, thank you!
jmiven_ is now known as jmiven
<dhess> in some ways that is actually less painful because I will re-use that unpacked source all over the place
nixy has quit [Quit: ZNC 1.6.5 - http://znc.in]
<dhess> so with this approach i don't have to repeat all those unpacking steps
<Lisanna> :)
nixy has joined #nixos
jmiven__ has quit [Ping timeout: 248 seconds]
nixy has quit [Client Quit]
nixy has joined #nixos
<dhess> Lisanna: I have also never seen that `*Phase = ":"' trick, what does setting a phase to ":" mean?
<Lisanna> it means don't do anything for that phase
<andi-> : = true
<Lisanna> if you just set it to "" then it will use the stdenv default
<dhess> huh, that is... non-intuitive :) but ok, good thing to know
<Lisanna> since it interprets "" as "not set, use the bash default for that var"
nixy has quit [Client Quit]
<Lisanna> some of them like fixup have an explicit "dontFixup" option
<dhess> right
nixy has joined #nixos
<Lisanna> others might, but they're not documented, I can't keep them straight
<Lisanna> = ":"; will work for all of them :)
ryanartecona has joined #nixos
<dhess> ok let me try this, it seems like it will work well for what I need
nixy has quit [Client Quit]
nixy has joined #nixos
<dhess> ok so now I've got a derivation named "testSrc", which is the result of callPackage on that stdenvNoCC.mkDerivation, and I'm passing it to the original derivation that wants to cleanSource it... how do I get the store path of testSrc so that I can do `src = pkgs.lib.cleanSource` on it?
jmiven has quit [Quit: co'o]
jmiven has joined #nixos
<dhess> looks like just `builtins.storePath testSrc`, but nix-build is complaining that it doesn't exist.
<dhess> probably needs to be a buildInput :)
Sonarpulse has quit [Ping timeout: 264 seconds]
<dhess> hmm no
jmiven_ has joined #nixos
<dhess> error: string ‘/nix/store/x20b543yil7mbf2hp3w5fzbyy6i7cgbx-test-src-1’ cannot refer to other paths, at /nix/store/337ijgmgq1nx6jq5pi796xgqrxpy6f20-15aa4fcf753994c8a22f3ff09bb98d0934c5f288.tar.gz-unpacked/lib/sources.nix:45:17
oida has joined #nixos
<clever> dhess: the things imported by filterSource and cleanSource must have no dependencies
jmiven has quit [Ping timeout: 276 seconds]
jmiven_ is now known as jmiven
<dhess> clever: so this testSrc package I'm creating with stdenvNoCC doesn't have any explicit dependencies in the derivation, other than stdenvNoCC I guess? Is that the dependency you mean?
<infinisil> dhess: (":" is actually just a bash builtin that does nothing)
<dhess> infinisil: I did not know that!
<clever> dhess: runtime dependencies
<clever> dhess: generally, you shouldnt be using cleanSource on a tar, only on a working directory
<clever> dhess: if its a tar, clean it up in postUnpack
<dhess> clever: converting the tar to an unpacked directory was the point of the stdenvNoCC.mkDerivation pre-step
CodeWarrior has joined #nixos
<acowley> No unstable updates in over a week and now hydra is 500'ing. Anyone know what's up?
<clever> dhess: why do you want to run cleanSource on it?
<dhess> clever: I guess I should explain. I have written some new cleanSourceWith filters and I want to test them.
<clever> ah
<clever> i think it would be best to just have the input data not be in a tar
<dhess> so I am creating a tarball with all the "bad" files, and I want to create a derivation that sources it, cleans it, then in checkPhase make sure the files don't exist.
randomstrangerb has quit [Ping timeout: 268 seconds]
<infinisil> acowley: http://howoldis.herokuapp.com/ says nixos-unstable got updates (nixpkgs-unstable didn't though, no idea what's up)
<dhess> clever: yeah I can make it a directory in the Git repo, but then I run into issues like many of the files that you want to filter are in the .gitignore :)
randomstrangerb has joined #nixos
<dhess> I can make exceptions for them. But I figured that just stuffing a tarball in there would be easier.
<clever> dhess: you may want to look at how nix's tests test filterSource, it runs nix inside nix
<dhess> clever: I tried that but I cannot import into the store in a test.
<dhess> well, not the way that test is set up
<dhess> and it won't work on a Hydra either, I don't think.
<acowley> infinisil: Yes, sorry, I meant nixpkgs-unstable. Its tests have been passing for several days now, but there's been a queue of jobs that won't finish.
<clever> dhess: nix does it by operating on a secondary store within the tmpdir
<dhess> also it's quite a bit of hoop-jumping. I think my idea to write derivations that use the "bad" directory/tarball as the source is quite clever actually. :)
<dhess> clever: yes and as soon as you try to cleanSource something it starts complaining that the store is not writable, or that bash isn't in there, etc.
oida has quit [Ping timeout: 256 seconds]
<dhess> clever: and you need a Nixpkgs to stand on, and I'm trying to do that without impurities, etc.
<dhess> anyway I spent most of the day trying to make that approach work, and there be dragons.
<dhess> this approach is very simple and fits nicely with Hydra. it'll be fine, I was just hoping I could import from a tarball
<dhess> which I can, I guess... I just can't clean it
<dhess> I guess I'll just put everyting in a local directory, refer to it directly, and make .gitignore exceptions for the crufty files.
Fare has quit [Ping timeout: 248 seconds]
ryanarte_ has joined #nixos
<dhess> it would be cool if cleanSource could unpack a thing, though.
<clever> dhess: cleanSource just uses filterSource behind the scenes, and filterSource is meant to filter things as they get copied from the mutable filesystem to the immutable nix store
<clever> dhess: and most fo that filtering is to prevent the hash from changing
<dhess> yeah that is why I'm writing new cleanSourceWith filters.
<clever> but if the input is another derivation, you already locked the hash of things in with a fixed-output derivation, so it doesnt really work there
<jtojnar> Why would `$ nix-instantiate -E 'args@{foo, ...}: builtins.trace args {}' --arg foo 5 --arg bar 6` not see the bar argument?
<dhess> had all kinds of weird rebuilding things going on in my Nix-based Haskel projects
hakujin has joined #nixos
ryanartecona has quit [Ping timeout: 240 seconds]
<dhess> now they're all fixed but all of the filters only exist in that one project. I want to separate them out into an overlay that I can import into other projects.
<dhess> maybe upstream them when they're more mature
<dhess> clever: ahh right that makes sense about the hash of the other derivation. So it's probably a good thing that this didn't work.
Lisanna has quit [Quit: Lisanna]
silver has quit [Read error: Connection reset by peer]
ma27 has quit [Ping timeout: 256 seconds]
LoggerZZZ has joined #nixos
LoggerZZZ has quit [Read error: Connection reset by peer]
hakujin has quit [Ping timeout: 276 seconds]
LoggerZZZ has joined #nixos
hakujin has joined #nixos
ryanarte_ has quit [Quit: ryanarte_]
chisui has quit [Ping timeout: 260 seconds]
hakujin has quit [Ping timeout: 240 seconds]
LoggerZZZ has quit [Read error: Connection reset by peer]
LoggerZZZ has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LoggerZZZ has quit [Read error: Connection reset by peer]
slyfox has quit [Ping timeout: 240 seconds]
LoggerZZZ has joined #nixos
eceuv has joined #nixos
<eceuv> What's the benefit of hydra over nix on any other CI server (e.g. Jenkins, CircleCI)?
LoggerZZZ has quit [Remote host closed the connection]
LoggerZZZ has joined #nixos
stephenjudkins has quit [Remote host closed the connection]
pkill9 has quit [Ping timeout: 256 seconds]
Arcaelyx has joined #nixos
xcmw has joined #nixos
<clever> eceuv: hydra keeps a cache of all of your depdencies, so you dont haev to wait for travis to redownload them every time
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterromfeldhk opened pull request #34513: fastlane: -> 2.79.0 (master...fastlane) https://git.io/vNbPc
NixOS_GitHub has left #nixos [#nixos]
<clever> eceuv: hydra can serve the resulting binaries to you and speed up your own local builds
<clever> eceuv: the queue times on hydra can be much shorter, even with the paid travis plan, ive found myself waiting hours for a job to even start
yann-kaelig has quit []
<eceuv> Ah, I think the first should be configurable on any reasonable CI tool but the second advantage does sound unique
<eceuv> Thanks
<clever> some CI tools do have caching, but they just upload the files to a place like S3
<clever> and the nixos cache is already on S3
<clever> so you gain nothing there
LoggerZZZ has quit [Read error: Connection reset by peer]
mbrgm has quit [Ping timeout: 248 seconds]
LoggerZZZ has joined #nixos
mbrgm has joined #nixos
MP2E has joined #nixos
mkoenig has quit [Ping timeout: 276 seconds]
d4g has joined #nixos
<jtojnar> sigh, how does the --arg work? The at sign matches the arguments properly when passed explicitly `nix-instantiate -E '(args@{foo, ...}: builtins.trace args.bar {}) {foo=5;bar=6;}'`
<jtojnar> but `nix-instantiate -E 'args@{foo, ...}: builtins.trace args.bar {}' --arg foo 5 --arg bar 6` just fails
mkoenig has joined #nixos
d4g_ has quit [Ping timeout: 256 seconds]
<bhipple[m]> If I want to build another gmake target in a pkg, is there something like `makeTargets = []`?
<bhipple[m]> that I can pass to the stdenv builder
<dtz> anyone know a good way to use an input as a nativeBuildInput but get a string to its path?
<dtz> normal usage "${input}" gets it as buildInput, and there are buldPackages and targetPackages for the others but...
<infinisil> dtz: huh what?
<dtz> bhipple: "makeFlags", "buildFlags", etc.
<bhipple[m]> I see there's `buildFlags = ["x", "y"]` that I can pass and that works; not sure if idiomatic or not
<bhipple[m]> ty
<infinisil> dtz: you want to get input as a nativeBuildInput? Then just do nativeBuildInputs = [ input ]
<dtz> don't think there's a buildTargets, although there's a checkTarget and installTargets
<dtz> infinisil: I want to refer to the path of a nativeBuildInput in a string, like buildCommand = ""${nativePackages.perl}"; only if nativePackages was a thing :D
* dtz just quickly grep'd to make sure it wasn't
<dtz> mostly I avoid this situation but editing this derivation would be quite a lot easier and cleaner if I could refer to it directly
<infinisil> dtz: why not just use perl directly? the build is on the 'native' host already (the one that builds it)
<clever> dtz: sonarpulse may know more
<acowley> I've had a PR waiting for a couple weeks. It's not blocking me or anything, but can anyone suggest someone I could nudge about it so it doesn't get too stale? https://github.com/NixOS/nixpkgs/pull/33950
<infinisil> dtz: and you can refer to a derivation directly, `let out = mkDerivation { ... out ... }; in out`
<dtz> infinisil: yeah maybe it's a sign this is a bad idea ;) :P
<dtz> oh, hmm
rardiol1 has quit [Remote host closed the connection]
crucialrhyme has joined #nixos
dramforever has joined #nixos
<crucialrhyme> i had to leave abruptly, how did things work out for iqubic?
<crucialrhyme> also, is there a nice kde cpu/memory/etc toolbar thing that can be installed from nixpkgs?
Supersonic112 has quit [Disconnected by services]
dramforever has quit [Client Quit]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] acowley opened pull request #34514: libqalculate: fix build with clang (master...libqalculate-clang) https://git.io/vNb1c
NixOS_GitHub has left #nixos [#nixos]
<infinisil> crucialrhyme: I cite (from a couple minutes after you left): iqubic> This is a prprietary PC game that's not in nixpkgs. If I really want, I can just get steam and try it that way. But I find that this game works better if I use the installer vs oing through steam.
<infinisil> no other messages regarding that
Supersonic112_ has joined #nixos
<crucialrhyme> well, hopefully they do end up taking a look at how Mathematica is packaged up, it's probably a close analogy
<infinisil> whoa hold on, mathematica is packaged :O
Supersonic112_ is now known as Supersonic112
<joepie91> crucialrhyme: System Load Viewer applet is okay-ish
<joepie91> included by default with plasma I think
<crucialrhyme> yeah it's real good and somebody keeps it up to date
<crucialrhyme> you just have to DL the installer file and put it in the nix store
<infinisil> crucialrhyme: Ah, never mind, I thought of matlab, not mathematica (because matlab is not packaged in nixpkgs)
<crucialrhyme> which is indeed why i still have an ubuntu partition
<infinisil> I checked out the matlab installer a bit ago and thought about packaging it, but it's rather complicated
<infinisil> I could use the FHS thing I guess, but I'd rather have a nice nix package instead
<iqubic> What does steam-run do?
* infinisil goes to sleep now
<acowley> Thank you for looking at that PR infinisil!
fresheye1 has joined #nixos
<jtojnar> thanks clever, the thing I did not realize was that the evaluator calls the functions implicitly
<fresheye1> quick question
LoggerZZZ has quit [Ping timeout: 260 seconds]
<fresheye1> do nix containers provide isolation like docker containers?
thc202 has quit [Ping timeout: 256 seconds]
ryanartecona has joined #nixos
<clever> fresheye1: one issue they have, is that the guest can read the entire nix store, and i'm not entirely sure how solid root is in the guest
LoggerZZZ has joined #nixos
<fresheye1> clever: why is that an issue?
<clever> depends on what you may want to keep secret within the nix store
<jtojnar> there is a warning in manual https://nixos.org/nixos/manual/index.html#ch-containers
<fresheye1> clever: I want to run crypto wallets securely and with isolation
<jtojnar> but IIRC Docker suffers the same problem
<fresheye1> jtojnar: can't we help this by disabling login as root?
<jtojnar> probably
<fresheye1> makes sense
<fresheye1> so basically the answer is yes, yes it provides isolation like docker, and also warning, root still counts
<iqubic> How long does steam-run take to install?
<clever> iqubic: depends heavily on your download speed
<iqubic> It looks like it is compiling this from source.
griff_ has quit [Quit: griff_]
<iqubic> Why is NixOS compiling Mono from source? Don't binaries of it iexxist.
<iqubic> *exist.
<clever> iqubic: are you on a channel?
<iqubic> I'm using the 17.09 channel, yeah.
<clever> dont know then
bitchecker has quit [Ping timeout: 268 seconds]
bitchecker has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
mahalel_ has left #nixos [#nixos]
stepcut has quit [Remote host closed the connection]
toraritte has joined #nixos
<iqubic> This is weird as all heck.
<iqubic> running this command:
<iqubic> steam-run DROD_5_The_Second_Sky_v5.1.0.6513_Setup.run
<iqubic> Yeilds this:
<iqubic> /nix/store/90spl3zwv9rd865kdr1x14fshs5xq8bm-steam-run: line 9: exec: DROD_5_The_Second_Sky_v5.1.0.6513_Setup.run: not found
<iqubic> What the heck is going on there.
<iqubic> The *.run file there is the thing I want to run to set-up my game properly.
<samueldr> it will need a path, ./DROD[...], otherwise it checks in PATH, iqubic
<iqubic> Ah.
<iqubic> Alright, fonts are not working here.
bitchecker has quit [Ping timeout: 248 seconds]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<iqubic> Is there a fix for that?
<iqubic> I tried "steam-run ./DROD..." there.
<iqubic> Clearly I'm missing the fonts needed. But I have no idea how to fix this, because I have no idea what font it is trying to display.
bitchecker has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
LoggerZZZ has quit [Read error: Connection reset by peer]
ditadi has quit [Quit: WeeChat 2.0]
hakujin has joined #nixos
badi has quit [Quit: Konversation terminated!]
hakujin has quit [Ping timeout: 256 seconds]
iqubic has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
matthewbauer has joined #nixos
iqubic has joined #nixos
<iqubic> testing
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 65170e9 adisbladis: Merge pull request #34504 from dywedir/tlp...
<NixOS_GitHub> nixpkgs/master 4311beb dywedir: tlp: 1.0 -> 1.1
<NixOS_GitHub> [nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vNbS9
NixOS_GitHub has left #nixos [#nixos]
c0ffee152 has quit [Quit: Lost terminal]
<genesis> i wonder if someone has success to get opengl working on gentoo with nix apps
toraritte has quit [Ping timeout: 240 seconds]
justan0theruser is now known as justanotheruser
matthewbauer has quit [Ping timeout: 240 seconds]
schoppenhauer has quit [Ping timeout: 240 seconds]
schoppenhauer has joined #nixos
reinzelmann has joined #nixos
matthewbauer has joined #nixos
azertyieio has joined #nixos
babyflakes has joined #nixos
<genesis> why not compiling mesa with proper flag to get proper driver ?
rogue_koder has quit [Quit: Konversation terminated!]
<iqubic> So anyone know how I can fix my fonts issue?
hamishmack has quit [Quit: hamishmack]
<iqubic> This is what I get when trying to use a program with steam-run:
slack1256 has joined #nixos
asuryawanshi has joined #nixos
asuryawanshi has quit [Ping timeout: 252 seconds]
Rusty1 has quit [Quit: Konversation terminated!]
<ldlework> How do I install gumbo?
<ldlework> nm
Izorkin has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Izorkin has joined #nixos
hamishmack has joined #nixos
<ldlework> How do I install specific python pip packages with home-manager?
justan0theruser has joined #nixos
<iqubic> How long have you been using NixOS ldlework?
<ldlework> iqubic what is the point of that question
<ldlework> I understand that there is `python27.withPackages` but I cannot call it and the result to home.packages
<ldlework> So I do not know how to use it, since I have only installed regular package names
<ldlework> home.packages = [ pkgs.libgumbo pkgs.python27.withPackages (ps: with ps; [ gumbo ]) ];
<ldlework> this installs libgumbo, but it doesn't know what I'm doing with python27.withPackages, neither do I
<clever> ldlework: wrap the entire call to withPackages in ( and )
<ldlework> OK
justanotheruser has quit [Ping timeout: 256 seconds]
simukis has joined #nixos
<ldlework> clever, hmm, so I guess you cannot just install arbitrary pip packages this way?
<ldlework> Since gumbo is an undefined variable
<clever> ldlework: first, search the rest of nixpkgs for the string gumbo, and find out where its used and how
<clever> /home/clever/apps/nixpkgs/pkgs/top-level/all-packages.nix: gumbo = callPackage ../development/libraries/gumbo { };
<clever> /home/clever/apps/nixpkgs/pkgs/top-level/aliases.nix: libgumbo = gumbo; # added 2018-01-21
<clever> ldlework: at one point, libgumbo was an alias for gumbo, but now only libgumbo resolves
<ldlework> clever I already have libgumbo installed
<ldlework> I need python library
<ldlework> which provides py bindings
<clever> and there is no python variant of it in nixpkgs
<ldlework> clever so there's no generalized "install a package from pip" thing?
<clever> nope
<clever> only hackage has really good support for that kind of thing in nix
matthewbauer has quit [Ping timeout: 256 seconds]
crucialrhyme has quit [Quit: WeeChat 2.0]
hamishmack has quit [Quit: hamishmack]
<iqubic> Well, I looked at the steam run terminal output and that tells me how to fix my font issues.
rauno has quit [Remote host closed the connection]
zzamboni has joined #nixos
hiroshi has quit [Ping timeout: 240 seconds]
coot has joined #nixos
coot has quit [Client Quit]
zzamboni has quit [Quit: Leaving.]
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 265 seconds]
Mateon3 is now known as Mateon1
eceuv has quit [Ping timeout: 268 seconds]
asuryawanshi has joined #nixos
asuryawanshi has quit [Ping timeout: 240 seconds]
Itkovian has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor pushed 2 new commits to release-17.09: https://git.io/vNbdJ
<NixOS_GitHub> nixpkgs/release-17.09 c829483 Bjørn Forsman: lttng-modules: 2.10.0 -> 2.10.5...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/release-17.09 89ae7b8 Bjørn Forsman: liburcu: 0.9.3 -> 0.9.5...
rauno has joined #nixos
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zzamboni has joined #nixos
tanonym has joined #nixos
rauno has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 240 seconds]
Arcaelyx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hyper_ch2 has joined #nixos
rauno has joined #nixos
azertyieio has quit [Ping timeout: 276 seconds]
griff_ has joined #nixos
zzamboni has quit [Quit: Leaving.]
tanonym has quit [Ping timeout: 264 seconds]
<genesis> why nixos use a tmp directory /run to store opengl drivers ?
jensens has joined #nixos
zzamboni has joined #nixos
ma27 has joined #nixos
<MasseR> how do I add python dependencies to vimHugeX?
griff_ has quit [Ping timeout: 276 seconds]
<MasseR> (for example I'm trying to use taskwiki plugin which requires some python libraries to be present at runtime)
sigmundv_ has joined #nixos
kreetx has joined #nixos
slyfox has joined #nixos
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nixos
spear2 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl opened pull request #34515: ocamlPackages.tyxml: 4.0.1 -> 4.2.0 (master...ocaml-tyxml-4.2.0) https://git.io/vNbbC
NixOS_GitHub has left #nixos [#nixos]
<sphalerite_> genesis: they're not stored there, they're stored in the nix store
<sphalerite_> genesis: but they're linked there and referred to through those paths since they're a runtime detail — we don't want to link applications against a specific opengl driver
aminechikhaoui has quit [Ping timeout: 256 seconds]
justan0theruser is now known as justanotheruser
Itkovian has joined #nixos
Lisanna has joined #nixos
ertes has quit [Ping timeout: 268 seconds]
asuryawanshi has joined #nixos
ThatDocsLady has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
anton__ has quit [Ping timeout: 246 seconds]
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Izorkin has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Izorkin has joined #nixos
<infinisil> 657 PR's..
Tucky has joined #nixos
jsgrant has quit [Remote host closed the connection]
hakujin has joined #nixos
anton__ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dywedir opened pull request #34516: tiled: 1.1.1 -> 1.1.2 (master...tiled) https://git.io/vNbNd
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vmandela opened pull request #34517: doxygen: 1.8.11 -> 1.8.14 (master...doxygen) https://git.io/vNbNF
NixOS_GitHub has left #nixos [#nixos]
hakujin has quit [Ping timeout: 265 seconds]
apeyroux has joined #nixos
jensens has quit [Ping timeout: 256 seconds]
ma27 has quit [Ping timeout: 252 seconds]
zzamboni has quit [Quit: Leaving.]
griff_ has joined #nixos
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] aneeshusa opened pull request #34518: openssh: Document default Kerberos support (staging...document-default-kerberos-in-openssh) https://git.io/vNbAG
NixOS_GitHub has left #nixos [#nixos]
<lewo> Hi. Who is going to Fosdem this year? Would be nice to meet some of us!
Shados has quit [Ping timeout: 252 seconds]
Shados has joined #nixos
apeyroux has quit [Remote host closed the connection]
tanonym has joined #nixos
eceuv has joined #nixos
dan_b has joined #nixos
<andi-> lewo: <-
<andi-> lewo: I also intended to send a mail to the ML regarding that.. Maybe others will also be there :-)
gilligan_ has joined #nixos
gilligan_ has quit [Client Quit]
eceuv has quit [Ping timeout: 248 seconds]
aminechikhaoui has joined #nixos
<fpletz> lewo: andi-: will be at fosdem too ;)
<andi-> fpletz: ahh nice
* etu will sadly not be there :/
Shados has quit [Ping timeout: 246 seconds]
Shados has joined #nixos
garbas has joined #nixos
raynold has quit [Quit: Connection closed for inactivity]
<lewo> thx for your mail andi- :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] matthiasbeyer opened pull request #34519: rofi: 1.4.2 -> 1.5.0 (master...update-rofi) https://git.io/vNbxO
NixOS_GitHub has left #nixos [#nixos]
asuryawanshi has joined #nixos
randomstrangerb has quit [Ping timeout: 256 seconds]
randomstrangerb has joined #nixos
sigmundv__ has joined #nixos
<rauno> has anyone used the open-iscsi package ?
<clever> yes
<rauno> everything worked like it should be ?
<rauno> somewhy it's screaming about initiatorname
<clever> last time i used it, yes
<rauno> did you just create new config under /etc/iscsi ?
<rauno> as there's ro version under nix/store also
<clever> i think i used the CLI args to configure it
<Rovanion> Is it possible to run nix without root and without /nix existing? Is it possible to run nix entirely out of $HOME?
<clever> Rovanion: yes, but you either need to use user namespaces, or recompile everything from scratch
tanonym has quit [Remote host closed the connection]
griff_ has quit [Quit: griff_]
Itkovian has joined #nixos
fyuuri has joined #nixos
<Rovanion> clever: When I tried to use nix-user-chroot I got the error "unshare(): Invalid argument". Does that mean that my kernel doesn't have user namespaces? uname -a says I'm on 3.10 but since its CentOS it could be patched quite the bit.
LoggerZZZ has joined #nixos
i-am-the-slime has joined #nixos
griff_ has joined #nixos
fyuuri has quit [Ping timeout: 248 seconds]
<clever> Rovanion: its also a config option, and they could have just turned it off
<Rovanion> So where do I go for the option of rebuilding everything?
<clever> Rovanion: build nix from source, and configure the prefix, storepath, and varpath to all live within $HOME
MP2E has quit [Remote host closed the connection]
<hyper_ch2> clever: I think I might abuse your kexec for booting my nixos notebook with update zfs and integrated encryption stability patch... so that I can create a new encrypted dataset in the new format
ottidmes has joined #nixos
<hyper_ch2> so how would I do the local login on the notebook or does that work because in your kexec you provide a ssh key
Neo-- has joined #nixos
<clever> hyper_ch2: any config you put into this area will become active once the kexec boots up
<clever> so you can just set initialPasswords and ssh keys on whatever you want
<hyper_ch2> ah right... initial password :)
<hyper_ch2> I forgot about that
<hyper_ch2> I'm out of house/office and no usb key available to properly burn the custom install iso to it
LoggerZZZ has quit [Remote host closed the connection]
<clever> hyper_ch2: how big is your /boot/ ?
LoggerZZZ has joined #nixos
LoggerZZZ has quit [Read error: Connection reset by peer]
<hyper_ch2> 500M
<hyper_ch2> nah, gonna try kexec.. at worst it won't work :)
<clever> hyper_ch2: https://github.com/cleverca22/nixos-configs/blob/master/rescue_boot.nix may also be of interest to you
<clever> that does basically the same thing, but via the bootloader
i-am-the-slime has quit [Ping timeout: 276 seconds]
leat has quit [Ping timeout: 265 seconds]
<sphalerite> Anyone know a convenient way to check if one file's contents are a prefix of another's?
<sphalerite> ooh I could use head and sha256sum
fyuuri has joined #nixos
<sphalerite> yep that worked
<hyper_ch2> but kexec is so much fun... it worked the first time I used it in a vm for testing :)
alex`` has joined #nixos
<sphalerite> the bootloader option gives you a recovery option if you break (all the generations of) your system though
* hyper_ch2 is sure clever has already devised a way on how to make a computer boot with a nixos-installer by just staring at it
<hyper_ch2> sphalerite: not going to break generations :)
<sphalerite> so yeah I too recommend the rescue boot option
<sphalerite> hyper_ch2: well if you're messing with your zpool you might
<sphalerite> e.g. if you upgrade the pool version but only have generations which support the older pool version
i-am-the-slime has joined #nixos
<hyper_ch2> boot with zfs patch 8684 applied, load current encrypted dataset, create new encrypted dataset with new format, zfs send | receive the Nixos childset, export both, re-import old with a different name... re-import new with current name
<clever> having a backup installer in /boot would let you fix it
<sphalerite> I had that issue at one point and it was a pain not being able to boot anything without a USB stick
<hyper_ch2> I've already done it on my home server
<sphalerite> clever is a wizard. Disregarding wizards' advice is not a good idea :p
<sphalerite> I mean, you can do it of course. But the recovery boot option is more reliable since you don't need a working existing system to use it.
<sphalerite> Could also come in useful further in the future.
<hyper_ch2> now, is clever more like Gandalf-type or Saruman-type :)
<clever> i last used that /boot variant to move /nix from the / dataset to the /nix dataset
<hyper_ch2> ok, /boot has 406 MB free space
orivej has joined #nixos
<hyper_ch2> the generated custom install is is 533M
<clever> dang
thc202 has joined #nixos
<hyper_ch2> or do the activationScripts add so much stuff?
reinzelmann has quit [Ping timeout: 276 seconds]
<clever> hyper_ch2: yeah, that pulls in konsole and a ton of crap
vidbina_ has joined #nixos
<hyper_ch2> rebuilding now this with latest spl/zfs and stability patch: https://github.com/sjau/nix-expressions/blob/master/customIso.nix
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Infinisil opened pull request #34520: tasknc: update (0.8 -> 2017-05-15), fix, cleanup and man pages (master...fix/tasknc) https://git.io/vNbjO
NixOS_GitHub has left #nixos [#nixos]
orivej has quit [Ping timeout: 265 seconds]
<infinisil> Whew, just did a major fix of tasknc, if anybody is interested, this PR fixes it ^^
<hyper_ch2> I still fail at making a third option for zfs on nixos.... one option that already pulls the stability patch etc.... :(
<hyper_ch2> btw, also discovered another bug with the stability patch applied and it was fixed a few hours later :)
<dhess> hyper_ch2: what's this about stability patches? Got a link(s)?
s33se has quit [Quit: WeeChat 1.9.1]
<hyper_ch2> dhess: it's for zfs encryption... if you don't use it - don't worry about it :)
<dhess> hyper_ch2: I am planning to.
<dhess> once it's stable :)
s33se has joined #nixos
s33se has quit [Client Quit]
<hyper_ch2> dhess: I'd suggest to wait until you can use zfs with that stability patch because it has a format change at requires you to re-create encrypted datasets
coot has joined #nixos
s33se has joined #nixos
s33se has quit [Client Quit]
<hyper_ch2> clever: 469M still more than the 408M free
<hyper_ch2> ok, kexec it is then :)
s33se has joined #nixos
<dhess> hyper_ch2: does ZFS on Linux support in-place encryption of an unencrypted dataset?
<hyper_ch2> dhess: what do you mean?
reinzelmann has joined #nixos
<dhess> hyper_ch2: can I do something like "zfs set encryption=on tank/foo" to enable it on tank/foo if tank/foo already exists but is unencrypted?
<hyper_ch2> no that won't work
<hyper_ch2> encryption is required on dataset creation
<dhess> ugh :(
<dhess> that's too bad
<dhess> do you know if there are plans to implement that?
<hyper_ch2> dhess: you could create an encrypted dataset (I name mine "encZFS") and then just snapshot an unencrypted one and send it to that "container": zfs snapshot tank/someDS@now ; zfs send tank/someDS@now | zfs receive tank/encZFS/someDS
<dhess> I have like... about 50T of data that I want to encrypt
<hyper_ch2> dhess: because of inheritance the newly created DS will be encrypted
<hyper_ch2> afterwards you could move it back though with raw sending
<hyper_ch2> zfs send -u tank/encZFS/someDS@now | zfs receive tank/someDS
LoggerZZZ has joined #nixos
<dhess> sure I understand how it would work. I just don't have the space to do it.
alexteves__ has joined #nixos
<hyper_ch2> zpool destroy solves all space problems :)
ssmike has joined #nixos
randomstrangerb has quit [Ping timeout: 248 seconds]
randomstrangerb has joined #nixos
<joko> Is encrypted ZFS mature enough? I saw on Reddit a benchmark with not so good results
<joko> (compared with ZFS over LUKS)
<joko> Ah, no, there was no ZFS over LUKS - https://imgur.com/a/zqJhD
LoggerZZZ has quit [Remote host closed the connection]
LoggerZZZ has joined #nixos
LoggerZZZ has quit [Read error: Connection reset by peer]
<dhess> the enc 4k read performance looks pretty good, actually
<dhess> writes not so much :)
<dhess> oh no
<dhess> well the write max is fantastic, it's just the average is pretty bad
<dhess> that seems promising, at least.
bongsun has joined #nixos
<dhess> for my purposes, those read numbers would be good enough, and the writes, I don't care about very much
s33se has quit [Quit: s33se]
Itkovian has quit [Remote host closed the connection]
<hyper_ch2> joko: native zfs encryption contains bugs :)
s33se has joined #nixos
<hyper_ch2> and that image... the people in #zfsonlinux said that test was poorly conducted
Itkovian has joined #nixos
<hyper_ch2> clever: I tried to run: nix-build '<nixpkgs/nixos>' -A config.system.build.kexec_tarball -I nixos-config=./myconfig.nix -I nixpkgs=/home/hyper/Desktop/git-repos/nixpkgs.zfs -Q but it tells me: error: getting status of '/home/hyper/Desktop/git-repos/nix-tests/configuration.nix": no such fuile or directory
<clever> hyper_ch2: with --show-trace ?
spinus has joined #nixos
<spinus> hello, chromium and opera in latest master are broken for me, all webkit interface is blinking and does not work, anybody had similar issue and maybe found the cause?
<clever> hyper_ch2: does the new myconfig.nix have the same imports as the original configuration.nix?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] kamilchm opened pull request #34521: vim-elixir: 2017-10-20 -> 2018-02-01 (master...vim-elixir) https://git.io/vNNff
NixOS_GitHub has left #nixos [#nixos]
<hyper_ch2> I was in the wrong folder :)
<clever> that will do it
<hyper_ch2> still git root instead of kexec folder
<hyper_ch2> it's doing lots of things now
vidbina_ has quit [Ping timeout: 276 seconds]
Myrl-saki has joined #nixos
LoggerZZZ has joined #nixos
<hyper_ch2> so, anyone's going to FOSDEM?
* clever heads to bed
asuryawanshi has quit [Remote host closed the connection]
s33se has quit [Quit: s33se]
<ij> Can I make buildGoPackage rename the output binary?
s33se has joined #nixos
lonokhov has joined #nixos
s33se has quit [Client Quit]
fyuuri has quit [Quit: WeeChat 2.0.1]
coot has quit [Quit: coot]
hiroshi has joined #nixos
fyuuri has joined #nixos
s33se has joined #nixos
fyuuri has quit [Client Quit]
i-am-the-slime has quit [Ping timeout: 248 seconds]
asuryawanshi has joined #nixos
Neo-- has quit [Ping timeout: 240 seconds]
Neo-- has joined #nixos
ssmike has quit [Ping timeout: 240 seconds]
vidbina_ has joined #nixos
jensens has joined #nixos
LoggerZZZ has quit [Remote host closed the connection]
LoggerZZZ has joined #nixos
LoggerZZZ has quit [Read error: Connection reset by peer]
ma27 has joined #nixos
<sphalerite> ij: not sure about the particularities of buildGoPackage but assuming it's just a wrapper around mkDerivation you can put a postInstall phase in
<ij> And just mv it?
elurin has joined #nixos
fresheye1 has quit [Ping timeout: 240 seconds]
yegortimoshenko has quit [Remote host closed the connection]
yegortimoshenko has joined #nixos
s33se has quit [Quit: s33se]
s33se has joined #nixos
griff_ has quit [Quit: griff_]
freeman42x[NixOS has joined #nixos
_rvl has quit [Quit: ZNC 1.6.5 - http://znc.in]
_rvl has joined #nixos
Neo-- has quit [Ping timeout: 252 seconds]
<fearlessKim[m]> I can't do `import <custom>/secrets.nix;` ? nix looks for <custom>/default.nix
ma27 has quit [Ping timeout: 256 seconds]
asuryawanshi has quit [Remote host closed the connection]
elurin has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
asuryawanshi has joined #nixos
<aminechikhaoui> fearlessKim[m]: use import <custom/secrets.nix> if custom is something in the nix path
_rvl has quit [Client Quit]
<aminechikhaoui> oh I was thinking of it as imports = [ .. ], not sure if ^ works
_rvl has joined #nixos
pietranera has joined #nixos
<fearlessKim[m]> aminechikhaoui: y it works thanks
aarvar has quit [Ping timeout: 248 seconds]
<aminechikhaoui> cool
vidbina_ has quit [Ping timeout: 248 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] magnetophon opened pull request #34522: infamousPlugins: init at 0.2.03 (master...infamousPlugins) https://git.io/vNNIT
NixOS_GitHub has left #nixos [#nixos]
LoggerZZZ has joined #nixos
LoggerZZZ has quit [Remote host closed the connection]
<lassulus> I'm very sad about this issue: https://github.com/NixOS/nixpkgs/issues/34364
<lassulus> any idea how to fix it?
s33se has quit [Quit: s33se]
LoggerZZZ has joined #nixos
i-am-the-slime has joined #nixos
s33se has joined #nixos
leat has joined #nixos
vidbina has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] womfoo opened pull request #34523: librarian-puppet-go: init at 0.3.9 (master...init/librarian-puppet-go-0.3.9) https://git.io/vNNIH
NixOS_GitHub has left #nixos [#nixos]
spinus has left #nixos [#nixos]
ok2 has quit [Quit: Terminated with extreme prejudice - dircproxy 1.2.0]
ok2 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] xrvdg closed pull request #33838: Idris: fix "addEnvHooks: command not found" (#33820) (master...idris1.2.0) https://git.io/vNnwa
NixOS_GitHub has left #nixos [#nixos]
fyuuri has joined #nixos
s33se has quit [Ping timeout: 256 seconds]
jgeerds has joined #nixos
ThatDocsLady has quit [Remote host closed the connection]
jtojnar has quit [Quit: jtojnar]
ThatDocsLady has joined #nixos
jtojnar has joined #nixos
iqubic` has joined #nixos
ssmike has joined #nixos
Guest27207 has joined #nixos
ssmike has quit [Client Quit]
iqubic has quit [Ping timeout: 276 seconds]
ssmike has joined #nixos
s33se has joined #nixos
fyuuri has quit [Ping timeout: 268 seconds]
swayf has joined #nixos
rardiol1 has joined #nixos
hamishmack has joined #nixos
<genesis> sphalerite : is it a nix service that provide link to the /run/opengl-* at runtime ? i donno who would link application against a specific opengl driver
<sphalerite> genesis: see nixpkgs/nixos/modules/hardware/opengl.nix
<genesis> 'cause i wonder if mimic this behaviour on host distrib would be better
<genesis> than LD_ hacks (that doesnt work on my distro)
<genesis> thx
<hyper_ch2> so, sending my Nixos dataset to the new encryption container
<sphalerite> oh yeah, that's the biggest pain point of running nix on other linux distros
dan_b has quit [Ping timeout: 260 seconds]
silver has joined #nixos
fyuuri has joined #nixos
<hyper_ch2> fearlessKim[m]: I use this for import https://github.com/sjau/nixos/blob/master/configuration.nix#L11
asuryawanshi has quit [Ping timeout: 264 seconds]
ma27 has joined #nixos
i-am-the-slime has quit [Ping timeout: 248 seconds]
dan_b has joined #nixos
slack1256 has quit [Ping timeout: 268 seconds]
asuryawanshi has joined #nixos
sigmundv__ has quit [Ping timeout: 264 seconds]
genesis is now known as Guest8351
Guest8351 has quit [Killed (hobana.freenode.net (Nickname regained by services))]
genesis has joined #nixos
<genesis> sorry my OS crashed on nix-env :'D
ma27 has quit [Ping timeout: 256 seconds]
hakujin has joined #nixos
hakujin has quit [Ping timeout: 255 seconds]
ssmike has quit [Quit: ssmike]
sigmundv__ has joined #nixos
ssmike has joined #nixos
i-am-the-slime has joined #nixos
infinisil has quit [Quit: Configuring ZNC, sorry for the join/quits!]
infinisil has joined #nixos
xcmw has joined #nixos
<tokudan[m]> hydra seems to be broken
<tokudan[m]> DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI connect('dbname=hydra;user=hydra;','',...) failed: could not connect to server: No such file or directory
jensens has quit [Ping timeout: 256 seconds]
coot has joined #nixos
<sphalerite> tokudan: yeah since yesterday evening
<sphalerite> People have been pinged afaik
<sphalerite> (evening European time)
alexteves__ has quit [Ping timeout: 248 seconds]
fyuuri has quit [Ping timeout: 240 seconds]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tokudan[m]> ok
sigmundv__ has quit [Ping timeout: 240 seconds]
xcmw has joined #nixos
lonokhov has quit [Quit: Lost terminal]
ThatDocsLady has quit [Remote host closed the connection]
ThatDocsLady has joined #nixos
coot has quit [Ping timeout: 240 seconds]
<dtz> LnL: did your fix for ICU end up somewhere / merged? :)
<LnL> no, those fixes are on my llvm-5 branch
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #33853: teleport: init at v2.4.0 (master...add_teleport) https://git.io/vNnxH
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #34397: awstats: add tools directory (master...fix/awstats-tools) https://git.io/vNSME
NixOS_GitHub has left #nixos [#nixos]
<dtz> LnL: okay s'all good, turns out I was looking for a different icu fix anyway :D
<LnL> yeah it's the version from opensource.apple.com that was broken
pkill9 has joined #nixos
iyzsong has joined #nixos
kriztw_ is now known as kriztw
pie_ has quit [Ping timeout: 256 seconds]
yann-kaelig has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Infinisil opened pull request #34524: physlock: add allowAnyUser option (master...physlock-allowAnyUser) https://git.io/vNNGY
NixOS_GitHub has left #nixos [#nixos]
griff_ has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil> tmplt: srhb: Regarding the discussion we had recently about physlock for non-root: See PR above ^^
Tobba has quit [Read error: Connection reset by peer]
Tobba has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar opened pull request #34525: gnome3.gexiv2: re-enable bindings (master...gexiv-gir) https://git.io/vNNGN
NixOS_GitHub has left #nixos [#nixos]
pie_ has joined #nixos
<niksnut> looking into hydra
alex`` has quit [Quit: WeeChat 2.0.1]
alex`` has joined #nixos
reinzelmann has quit [Quit: Leaving]
<hyper_ch2> *happily converting notebook to new zfs*
<fearlessKim[m]> hyper_ch2: I kindof like the asserts in your cxonfig
Izorkin has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<hyper_ch2> fearlessKim[m]: well, just for testing whether that stuff actually contains any info :)
Izorkin has joined #nixos
<hyper_ch2> some smart people told me about that way
<infinisil> Which asserts?
<infinisil> Ah nice, i should check for empty strings more often too
<Unode> hi all, I'm trying to add a python package to nixpkgs. Some tests fail and it's an upstream issue. https://github.com/jeetsukumaran/DendroPy/issues/74 , what's the common practice? disable the test suite entirely or patch the source to disable the failing test?
<hyper_ch2> patch source to disable failing test and make a notice in the nix expression I think
<Unode> ok, I'll go for that
<Unode> thanks
Rusty1 has joined #nixos
kier has quit [Read error: Connection reset by peer]
kier has joined #nixos
alex`` is now known as alexherbo2
orivej has joined #nixos
alexherbo2 is now known as alex``
rauno has quit [Remote host closed the connection]
adisbladis has quit [Ping timeout: 260 seconds]
alexteves__ has joined #nixos
Shados has quit [Ping timeout: 246 seconds]
waleee has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ttuegel opened pull request #34526: plasma-integration: Fix font style name bug with Qt >= 5.8 (master...bugfix/plasma-integration/font-style) https://git.io/vNNWT
NixOS_GitHub has left #nixos [#nixos]
Shados has joined #nixos
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
phdoerfler has joined #nixos
mkoenig_ has joined #nixos
mkoenig has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] spacefrogg opened pull request #34527: nixos/installer-tools: Fix missing extraBuildFlags reference (master...nixos-install) https://git.io/vNNWj
NixOS_GitHub has left #nixos [#nixos]
<Orbstheorem[m]> Hello, I'm working with pipenv to run flake (via tox), but I get a locale problem. I think it might be nixos-related since I see the line `/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)` in the error logs. But as far as I know, nixos ships with all locales. Errors, nix-info: https://paste.gnugen.ch/raw/lEq3 I can't use nix-shell, only pipenv because my workmates are not under nixos. Is there any
<Orbstheorem[m]> chance that sh can't see 'en_US.UTF-8'?, do you think something else might be wrong?
<Unode> Orbstheorem[m]: is this error only visible on a nixOS machine?
<Orbstheorem[m]> Unode: yep
pmahoney has joined #nixos
<pmahoney> has anyone successfully booted nixos installer iso in xhyve? roughly following https://coderwall.com/p/hayhng/virtual-develop-environment-with-xhyve but it fails "Timed out waiting for device /dev/root"
LoggerZZZ has quit [Remote host closed the connection]
LoggerZZZ has joined #nixos
pierron_ is now known as pierron
Neo-- has joined #nixos
<Kim> Huh. Home-manager seems interesting
bfrog has quit [Ping timeout: 276 seconds]
<genesis> what intel user have exactly with : $ ls /run/opengl-driver/ -lR
LoggerZZZ has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master bbfca0f Vladimír Čunát: knot-resolver: 1.5.3 -> 2.0.0 (feature update)...
<NixOS_GitHub> [nixpkgs] vcunat pushed 2 new commits to master: https://git.io/vNN4v
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master b31642a Vladimír Čunát: knot-dns: 2.6.3 -> 2.6.4 (bugfix)
kakuzade has joined #nixos
<etu> genesis: Do you need that output? http://ix.io/F7k -- on nixos-unstable
LoggerZZZ has joined #nixos
<genesis> hum
<genesis> thanks
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar pushed 1 new commit to master: https://git.io/vNN4M
<NixOS_GitHub> nixpkgs/master f8c59e0 Jan Tojnar: gnome3.gexiv2: re-enable bindings...
NixOS_GitHub has left #nixos [#nixos]
zzamboni has quit [Ping timeout: 248 seconds]
ThatDocsLady has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar closed pull request #34525: gnome3.gexiv2: re-enable bindings (master...gexiv-gir) https://git.io/vNNGN
NixOS_GitHub has left #nixos [#nixos]
xcmw has joined #nixos
ThatDocsLady has joined #nixos
LoggerZZZ has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 2 new commits to master: https://git.io/vNNBz
<NixOS_GitHub> nixpkgs/master 943592f Shea Levy: Add setFunctionArgs lib function....
<NixOS_GitHub> nixpkgs/master 43f647e Shea Levy: Merge branch 'dynamic-function-args'
NixOS_GitHub has left #nixos [#nixos]
<pmahoney> ah, the trick for booting the nixos installer iso in xhyve seems to be to grab the exact kernel commandline from the grub config, e.g. "init=/nix/store/rx0cw436lg6lw79dp3iliwmnv6yx1l93-nixos-system-nixos-17.09.2875.c2b668ee726/init root=LABEL=NIXOS_ISO boot.shell_on_fail loglevel=7" where the full path to init and the root disk label are critical
LoggerZZZ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy closed pull request #34466: Add setFunctionArgs lib function. (master...dynamic-function-args) https://git.io/vN5aV
NixOS_GitHub has left #nixos [#nixos]
<genesis> ln -s /nix/store/z5j0dnyf1h9v3c5263hvb9hp8xpsvx11-mesa-noglu-17.2.6-drivers/* /run/opengl-driver/
<genesis> makes my glxinfo works but not openarena.
<genesis> a bit of progress :)
<genesis> i need to find the proper expression nix use to populate the directory
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #34528: pythonPackages.aiohttp: 2.3.9 -> 2.3.10 (master...aiohttp) https://git.io/vNNRZ
NixOS_GitHub has left #nixos [#nixos]
peti has joined #nixos
hamishmack has quit [Quit: hamishmack]
<peti> Yo, GNOME3 gurus. I have a question. When I enable GNOME3 as desktop manager, the module automatically enables NetworkManager, too. I don't need or want NetworkManager, though. Is there a way to disable NM without breaking anything?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #34529: pythonPackages.pytest-aiohttp: disable tests (master...pytest-aiohttp) https://git.io/vNNRK
NixOS_GitHub has left #nixos [#nixos]
<genesis> system.activationScripts.setup-opengl apparently
cogrendel has joined #nixos
hamishmack has joined #nixos
dan_b has quit [Ping timeout: 248 seconds]
<hyper_ch2> peti: networking.networkmanager.enable = false;
asuryawanshi has quit [Ping timeout: 263 seconds]
<taktoa> does anyone know how I could override emscriptenStdenv to generate WebAssembly files (by adding the `-s WASM=1` flag to all `emcc` invocations)
ssmike has quit [Remote host closed the connection]
<peti> hyper_ch2: Yes, I know. But will this affect the GNOME desktop in some way? I suppose it's enabled by default for a reason?
<kakuzade> Hi. I have a small problem with my kde installation. Some qt applications that do not show the native theme (breeze). The problematic applications are qBittorrent, SMplayer and Sigil; I have installed them from the unstable NixOS channel; Lyx shows the topic correctly. Kde is installed from the stable channel 17.9. Any ideas?
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Baughn> https://github.com/NixOS/nixos-homepage/pull/181 <- Can someone look at this nixos-homepage PR? Should be straightforward.
ssmike has joined #nixos
xcmw has joined #nixos
<hyper_ch2> peti: that's the good thing about nixos... alter your configuation.nix... rebuild... test.... if you don't like it, boot into old generation
griff_ has quit [Quit: griff_]
nix-gsc-io`bot has joined #nixos
vidbina has quit [Ping timeout: 256 seconds]
<nix-gsc-io`bot> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/fefa9ef7562 (from 2 days ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
nix-gsc-io`bot has quit [Client Quit]
<genesis> how could i execute system.activationScripts.setup-opengl from opengl.nix ?
ryanartecona has joined #nixos
vidbina_ has joined #nixos
<Baughn> genesis: What is the problem you're trying to solve?
dan_b has joined #nixos
<genesis> make opengl working on gentoo
<genesis> populate /run/opengl-driver via nix
erasmas has joined #nixos
<genesis> i try to understand nix-repl, but not sure it's a good path.
MercurialAlchemi has quit [Ping timeout: 240 seconds]
<Baughn> Hmm.
<Baughn> So, /run/opengl-driver is the *driver*. It has to be the same one that's actually running your GPU, otherwise things won't work.
<Baughn> On NixOS that Just Works(tm), but since you're on Gentoo...
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/c1d9aff56e0 (from 3 days ago, history: https://channels.nix.gsc.io/nixos-17.09)
nix-gsc-io`bot has quit [Client Quit]
coot has joined #nixos
zarel has joined #nixos
<Baughn> Well, I'd recommend one of two options. Either try NixOS (it's nice, honest!), or you could manually populate /run/opengl-driver using symlinks to the actual driver in /usr.
cement has joined #nixos
i-am-the-slime has quit [Ping timeout: 248 seconds]
<genesis> Baughn ln -s /nix/store/z5j0dnyf1h9v3c5263hvb9hp8xpsvx11-mesa-noglu-17.2.6-drivers/* /run/opengl-driver/ works with glxgears.
<Baughn> genesis: What GPU do you have?
<genesis> and i was also trying to add intel to https://github.com/deepfire/nix-install-vendor-gl
pie_ has quit [Ping timeout: 240 seconds]
<genesis> intel i965
<Baughn> And what driver is in /usr/lib?
<genesis> /usr/lib64/mesa/i965_dri.so
peti has left #nixos ["WeeChat 1.8"]
ThatDocsLady has quit [Remote host closed the connection]
<Baughn> There you go, then. But unless it's the exact same driver version, it won't work too well.
<genesis> it seems it can work with nix package, so it could be better..
<Baughn> API mismatches always cause trouble.
ThatDocsLady has joined #nixos
<Baughn> You get a choice. Either have a mismatch between the application and the GL library, or between the GL library and the running GL driver.
<genesis> mismatches because not build against the kernel ?
<Baughn> That, and what's running in the X server.
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Baughn> I'd pick the "mismatch between application and GL library" option, because that API is actually *supposed* to be replaceable. Applications built against one driver should work fine with another, let alone minor version changes.
<Baughn> So. In short.
<genesis> oki, but https://github.com/NixOS/nixpkgs/issues/9415 doesnt work for me.
<Baughn> Delete what you've put in /run/opengl-driver.
<Baughn> Then make a symlink from /usr/wherever/libGL.so* to /run/opengl-driver.
<sphalerite> one day we will have glvnd and everything will be wonderful
<sphalerite> (wishful thinking. Probably won't happen, heh.)
<Baughn> Or just use LD_LIBRARY_PATH.
<Baughn> genesis: The long and short of it, though, is that this will never work *great* and you should try NixOS.
<avn> sphalerite: I have PoC of libglvnd switching ;)
<genesis> ^^
<sphalerite> oooh
<sphalerite> or LD_PRELOAD
zzamboni has joined #nixos
<avn> sphalerite: https://github.com/NixOS/nixpkgs/pull/34461 feel free take a look, and tell your suggestions there
<Baughn> LD_PRELOAD is usually the wrong choice. :P
<Baughn> That's for *overriding* libraries.
<genesis> doesnt work anyway
<sphalerite> avn: I don't really understand the details of how it works so I'm not sure if I can provide any useful input :p
<Baughn> genesis: How does it fail?
LoggerZZZ has quit [Remote host closed the connection]
pie_ has joined #nixos
ThatDocsLady has quit [Ping timeout: 256 seconds]
<sphalerite> avn: actually I do have one piece of useful input! It's called vulkan, not vulcan
<sphalerite> although it doesn't concern the changes in that PR
LoggerZZZ has joined #nixos
<avn> sphalerite: yes, but mentioned in description ;)
<avn> Sadly my video is vulkan incapable ;)
zarel has quit [Ping timeout: 256 seconds]
<pmeunier> Hi! I'm trying to compile some Haskell code using stack --nix, and it complains about my /run being full (I think, the actual error is "no space left on device"). Any idea?
<pmeunier> (I'm not familiar with the Haskell infrastructure)
<Unode> pmeunier: check available space on your local disk
<michaelpj> is your `/run` in fact full?
spietz has joined #nixos
fyuuri has joined #nixos
dbmikus has joined #nixos
leat has quit [Ping timeout: 256 seconds]
<pmeunier> Unode: they're not
<pmeunier> michaelpj: it's not
<genesis> Baughn $ LD_LIBRARY_PATH=~/.nix_libs glxinfo
<genesis> name of display: :0
<genesis> Illegal instruction (core dumped)
<pmeunier> michaelpj: (although it might get full while stack is working)
<genesis> [13147.689991] traps: glxinfo[13012] trap invalid opcode ip:7f435f84a2bc sp:7fff2303ad48 error:0 in ld-2.26.so[7f435f82d000+25000]
<Baughn> genesis: No, what I meant was using `LD_LIBRARY_PATH=/usr/lib glxinfo`.
<Baughn> Or wherever libGL.so is.
<pmeunier> and actually /run is a tmpfs, so I suspect it's rather a memory problem than a disk problem, but I was hoping there would be a workaround
acarrico has joined #nixos
<Baughn> genesis: LD_LIBRARY_PATH doesn't override the built-in paths, so it'll still use Nix' libraries for everything else.
<genesis> Baughn glxinfo: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
<michaelpj> pmeunier: I guess I'm not sure what your question it: it sounds like `/run` gets full while stack is running, and this causes it to fail. You could fix that by making sure you have more space available. I don't know why it uses space in `/run`, though
<Baughn> genesis: Interesting. Hm. Well, you could use LD_PRELOAD instead.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 374d6dc Joachim F: Merge pull request #34509 from dotlambda/ttwatch...
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vNN2V
<NixOS_GitHub> nixpkgs/master 8377958 Robert Schütz: ttwatch: 2017-12-31 -> 2018-02-01
NixOS_GitHub has left #nixos [#nixos]
<Unode> pmeunier: I agree with michaelpj . It shouldn't use /run at all.
hakujin has joined #nixos
<genesis> $ LD_PRELOAD=/usr/lib64/libGL.so.1:/usr/lib64/mesa/i965_dri.so glxinfo
<genesis> glxinfo: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
<genesis> it won't work that way.
<dtz> shlevy: is there discussion / context for the "dynamic function args" commit? :D
spietz has quit [Quit: WeeChat 1.9.1]
guts1 has joined #nixos
<Baughn> genesis: What's linking to libz?
orivej has quit [Ping timeout: 252 seconds]
<guts1> help! i did a nixos-rebuild --upgrade switch, tried to reboot, and all of my configurations are gone. there is nothing to select in the boot menu
<Baughn> genesis: (You can check with ldd.)
FRidh has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<Baughn> guts1: Oops! Well, I don't know why that happened, but you can use the installation CD/USB to fix it (assuming it doesn't recur) -- nixos-install will do the job.
<guts1> i have booted an older nix installation, and I have remounted my system onto /mnt. how do I go about fixing that installation?
<Baughn> Anticipating my demands. :P
<guts1> i tried nixos-install, and it didn't seem to do anything. maybe it thinks the rebuild was successful?
<Baughn> If it's already on /mnt, then just run nixos-install.
<guts1> i'll edit the configuration file a tiny bit and rerun nixos-install
<Baughn> Hmm. What's its output?
<Baughn> guts1: nixos-install 2>&1 | curl -F 'f:1=<-' ix.io
<samueldr> guts1: similar symptoms (no new generations in the boot menu) are often caused on UEFI boot when ESP isn't mounted as /boot on the running nixos system
<samueldr> (though, I haven't read your specifics, sorry if it isn't relevant)
rardiol1 has left #nixos [#nixos]
ryanartecona has quit [Quit: ryanartecona]
<guts1> will nixos-install use the channel specified inside my mounted system?
<samueldr> if memory doesn't fail me, it won't
<samueldr> it uses NIX_PATH as is defined in the running system
<guts1> hmm okay, so I need to change that to the one in /mnt to get this working ..
azertyieio has joined #nixos
orivej has joined #nixos
lambdafan has joined #nixos
<lambdafan> how do I change the owner of postgres?
<shlevy> dtz: Yeah :) Also the PR it's a part of has some
<lambdafan> I'm looking through postgres.nix but can't locate the place in the script that would do this. SO I'm thinking there's another script that defines the owner
<samueldr> lambdafan: if you're talking about the PostgreSQL superuser, services.postgresql.superUser manages it, but it's an internal configuration
<lambdafan> samueldr: I mean the user account that owns the postgres daemon.
<lambdafan> I want to change it from the user postgres to a different one
hyper_ch2 has quit [Quit: Page closed]
Sonarpulse has joined #nixos
<lambdafan> oh I see it happening in preStart
endformationage has joined #nixos
<samueldr> the systemd service may also need to be changed (serviceConfig)
<lambdafan> thanks :)
<lambdafan> I may need help in changing it but I am going to take a stab at it and see what happens
ryanartecona has joined #nixos
fyuuri has quit [Ping timeout: 268 seconds]
<guts1> why does nixos-install download cached packages to the local installation... my USB isn't big enough to hold all my systems packages and I ran out of space
yegortimoshenko has quit [Remote host closed the connection]
<guts1> should I remove all my system packages from the /mnt configuration and go again, then add them back once I get it booting again?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] unode opened pull request #34530: samtools-old: init at 0.1.19 (master...samtools-old) https://git.io/vNNwm
NixOS_GitHub has left #nixos [#nixos]
<samueldr> doesn't it download to the overlayfs/unionfs of a tmpdir (RAM) and squashfs?
<samueldr> though, I see that it is still an issue :)
fyuuri has joined #nixos
yegortimoshenko has joined #nixos
<spacefrogg> guts1: You should not attempt to install a full-blown system directly from the installer...
<guts1> im trying to repair my system
<guts1> nixos-rebuild deleted all my boot entries
* samueldr is looking up docs on the --chroot option
ertes-w has quit [Quit: Bye!]
<spacefrogg> guts1: Try nixos-install --chroot instead and run nixos-rebuild again
<viric> nixos-install --chroot cripples $NIX_PATH a bit, I just experienced
<guts1> i tried that, but I'll give it another go
<viric> unset NIX_PATH after the chroot and source /etc/profile
<viric> (or maybe the new NIX_PATH will be good for you)
<spacefrogg> also mkdir /run/user/0 as it is also left out
kakuzade has quit [Quit: Page closed]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] unode opened pull request #34531: RAxML: init at 8.2.11 (SSE3 & MPI) (master...raxml) https://git.io/vNNw6
NixOS_GitHub has left #nixos [#nixos]
spietz has joined #nixos
leat has joined #nixos
<guts1> im getting a bunch of "Running in chroot, ignoring request" messages, and it fails at "/nix/store/1hkp2n...-update-users-groups.pl" line 20
<guts1> I think I'm going to downgrade to a stable channel and see what happens
<guts1> although! it looks like I have entries in my /boot/loader/entries directory. maybe I'll just try to reboot here...
<guts1> wish me luck
guts1 has quit [Quit: WeeChat 2.0]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vNNrS
<NixOS_GitHub> nixpkgs/master 0bfa9a9 Tuomas Tynkkynen: ethtool: 4.13 -> 4.15
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] unode opened pull request #34532: pysam: init at 0.13 (master...pysam) https://git.io/vNNrH
NixOS_GitHub has left #nixos [#nixos]
zzamboni has quit [Quit: Leaving.]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] unode opened pull request #34533: dendropy: init at 4.3.0 (master...dendropy) https://git.io/vNNoU
NixOS_GitHub has left #nixos [#nixos]
goots has joined #nixos
<goots> it worked, yay!
Tucky has quit [Quit: WeeChat 2.0.1]
LoggerZZZ has quit [Remote host closed the connection]
<samueldr> goots: (assuming you're guts1) it may still be a partial fix, depending on whether the issue was /boot not being mounted if it's an UEFI system
sigmundv_ has quit [Ping timeout: 256 seconds]
<samueldr> it might have brought up the existing generations in the boot menu, but the next generations wouldn't if the root cause isn't fixed (if that's the issue)
<goots> it is a UEFI system. so you're saying during boot my /boot partition didn't mount and that's why it couldn't find my configurations?
LoggerZZZ has joined #nixos
<samueldr> is your ESP mounted at /boot right now?
<goots> yes
<samueldr> then either you fixed it (yay) or it wasn't your issue
<goots> its possible it failed though, I have my boot partition on a fairly old USB stick
<goots> not sure why I did that
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
goots has quit [Quit: WeeChat 1.9.1]
cfricke has joined #nixos
cfricke has quit [Client Quit]
alexteves__ has quit [Ping timeout: 256 seconds]
spietz has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
dan_b has quit [Ping timeout: 256 seconds]
coot has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] aszlig pushed 1 new commit to master: https://git.io/vNNir
<NixOS_GitHub> nixpkgs/master 2a09b42 aszlig: nixos/tests/make-test.nix: Fix eval error...
NixOS_GitHub has left #nixos [#nixos]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/89ae7b83e45 (from 21 hours ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
<nix-gsc-io`bot> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/42b9b8f7c86 (from 28 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
nix-gsc-io`bot has quit [Client Quit]
<lambdafan> initdb: file "/run/current-system/sw/share/postgres.bki" does not exist
ssmike has quit [Remote host closed the connection]
<lambdafan> how can I guarantee postgres.bki gets a link in /run/current-system/sw/share/
<lambdafan> I checked, it exists in the sotre
<lambdafan> store
taktoa has quit [Quit: taktoa]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #34534: fastjet: Fix build w/clang5 (master...fix/fastjet-clang5) https://git.io/vNNix
NixOS_GitHub has left #nixos [#nixos]
taktoa has joined #nixos
iyzsong has quit [Ping timeout: 255 seconds]
<samueldr> lambdafan: `environment.pathsToLink`
<lambdafan> nice, thanks
toraritte has joined #nixos
fyuuri has quit [Quit: WeeChat 2.0.1]
fyuuri has joined #nixos
<lambdafan> samueldr: that says it wants a list of directories, but the share directory exists in /run/current-system/sw
Izorkin has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<lambdafan> samueldr: I'm trying to guarentee that postgres files get links in /run/current-system/sw/share/
fyuuri has quit [Client Quit]
Izorkin has joined #nixos
fyuuri has joined #nixos
<infinisil> lambdafan: hmm, the postgres package should actually install this there automatically
ssmike has joined #nixos
spietz has joined #nixos
<lambdafan> inifinisil: let's assume I borked it somehow. How can I start an install over cleanly?
<infinisil> lambdafan: where are you installing it? your configuration.nix or nix-env?
<infinisil> you pretty much shouldn't be able to bork it with nix tbh
<lambdafan> inifinisil: configuration.nix
<dtz> QQ @ nvidia drivers being broken for non-zero amount of time, waiting on someone who knows the update policy
<infinisil> lambdafan: alright you do have the postgres executable on PATH right?
stephenjudkins has joined #nixos
<gchristensen> dtz: update them
<dtz> gchristensen: I would! But unclear which is supposed to be used for "stable" haha. I suppose if no one responds then maybe no one cares enough to yell at me for getting it wrong? :D
toraritt1 has joined #nixos
rardiol1 has joined #nixos
<gchristensen> dtz: for stable, try not to do major bumps
<gchristensen> just bumps within the same series
xcmw has joined #nixos
<lambdafan> inifinisil: checking
<thoughtpolice> Mmmm, speaking of, the nvidia drivers also need an update for 4.15, I think.
the_real_plumps has quit [Remote host closed the connection]
<thoughtpolice> I should get around to that.
<dtz> it's... .their versioning is confusing? haha. "long-lived branch" has newer version #, newer major vesion, than short-lived, which is what we appear to have been using (short-lived)
<dtz> thoughtpolice: that's what I'm talking about :D
<lambdafan> inifinisil: [nix-shell:~]$ which postgres
<lambdafan> /run/current-system/sw/bin/postgres
orivej has quit [Ping timeout: 276 seconds]
<gchristensen> dtz: *hides*
toraritte has quit [Ping timeout: 248 seconds]
taktoa has quit [Ping timeout: 248 seconds]
* dtz offers e-hugs and a gold star to thoughtpolice
<dtz> gchristensen: haha xD
<Dezgeg> well probably not a good idea to use linux_latest if you use out-of-tree modules
raynold has joined #nixos
<thoughtpolice> Yes, I always pin my kernels to specific versions personally, but yes for the nvidia drivers its especially troublesome. (I want 4.15 for a test but I've been willing to wait.)
<dtz> It would appear so. I didn't think latest was for unknowns, thought that's what testing was for
the_real_plumps has joined #nixos
<Dezgeg> testing is -rcX
<thoughtpolice> Yeah, testing is actually, right now, behind _latest technically
<infinisil> lambdafan: do `cd $(realpath $(dirname $(which postgres)))`
<dtz> oh, okay re:testing being for rc's
<thoughtpolice> (It always is until the merge windows close and new -rc's are cut, anyway)
<infinisil> lambdafan: then `cd ../share` and check if postgres.bki is there
<infinisil> (or just both cd's in one)
LoggerZZZ has quit [Remote host closed the connection]
<thoughtpolice> dtz: Regarding the nvidia drivers I believe they're a few point releases behind (38x vs 390) on master, although I'm personally not super clear on their release policy. I believe 390.x is the latest "longer term" driver series they're releasing when I looked the other day, so bumping our version to the 390.x series should be fine (which has 4.15 fixes).
<lambdafan> mlitchard@quux-server> `cd $(realpath $(dirname $(which postgres)))` ~/projects/git/quux/quux-tools
<lambdafan> mlitchard@quux-server>
LoggerZZZ has joined #nixos
<lambdafan> inifinisil: nope, not in path
<thoughtpolice> Although I'm not sure how long we keep the older drivers around (the other series). Personally I always go with the latest, of course, because I'm dangerous
<dtz> xD. Well doesn't seem that dangerous to go with long-lived branch, but teehee I understand
<dtz> nvidia should just publish an overlay or something
<dtz> ;)
<lambdafan> inifinisil: when I do that command in the nix-shell I end up here
<lambdafan> inifinisil: [nix-shell:/nix/store/5dvg16p1kihdgq2nny2jl5b6viwbf2xk-system-path/bin]
taktoa has joined #nixos
<lambdafan> inifinisil: and that directory contains postgres
<infinisil> lambdafan: oh wait, the other way around: cd $(dirname $(realpath $(which postgres)))
<infinisil> not in a nix shell
<infinisil> lambdafan: you should then be in a directory like /nix/store/<hash>-postgresql-<version>/share and this file should be there
<infinisil> and if it's installed (having the binary usually means it's installed), then the file should also be there
bongsun has quit [Quit: Connection closed for inactivity]
<lambdafan> infinisil: outside of the nix-shell that command does not give expected results
<infinisil> lambdafan: alright, let's start here: what's your configuration.nix and what does nix-info output?
<lambdafan> infinisil: I'll post the configuration.nix, one sec
freeman42x[NixOS has quit [Ping timeout: 240 seconds]
Neo-- has quit [Ping timeout: 256 seconds]
LoggerZZZ has quit [Remote host closed the connection]
<lambdafan> infinisil: https://pastebin.com/2CG22429
<lambdafan> infinisil: nix-info system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 1.11.16, channels(mlitchard): "nixos-17.09-17.09.2875.c2b668ee726", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
LoggerZZZ has joined #nixos
<thoughtpolice> dtz: I have a build of linuxPackages_latest.nvidia_x11 going right now (e.g. 4.15 + 390.25), I'll let you know how it goes.
<thoughtpolice> Oh, it's done already. Well, it builds.
<thoughtpolice> dtz: http://termbin.com/5j1y
<dtz> \o/
<dtz> my hero
* dtz swoons
<thoughtpolice> I'm currently on tip of master on my server so rebuilding some part of my closure will take a bit, but I imagine it should come back clean. (I have a lot of cores so I assume it's yearning for some work anyway.)
<thoughtpolice> Rust or something was updated.
cfricke has joined #nixos
<dtz> haha yeah
<genesis> libGL error: unable to load driver: i965_dri.so with openarena, seems more robust than glxgears/glxinfo :)
toraritte has joined #nixos
toraritt1 has quit [Ping timeout: 248 seconds]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/89ae7b83e45 (from 22 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [Client Quit]
nuncanada has joined #nixos
digitus has joined #nixos
jmiven has quit [Quit: co'o]
goibhniu has quit [Ping timeout: 248 seconds]
jmiven has joined #nixos
yegortimoshenko has quit [Remote host closed the connection]
yegortimoshenko has joined #nixos
waleee has quit [Quit: WeeChat 2.0]
<infinisil> lambdafan: hmm, you did call nixos-rebuild switch, right?
<infinisil> lambdafan: i just checked, postgresql100 of your nixpkgs version should definitely have this file in $out/share/postgres.bki
randomstrangerb has quit [Ping timeout: 240 seconds]
<infinisil> although I just noticed that environment.pathsToLink doesn't include "/share", but only "/share/{doc,icons,...}"
randomstrangerb has joined #nixos
<infinisil> lambdafan: maybe try setting `environment.pathsToLink = ["/share"];` in your configuration.nix
Myrl-saki has quit [Ping timeout: 260 seconds]
<infinisil> nah that won't work, because symlink's and dirs reasons
toraritt1 has joined #nixos
xcmw has quit [Ping timeout: 240 seconds]
toraritt1 has quit [Client Quit]
freeman42x[NixOS has joined #nixos
<lambdafan> infinisil: I verified I invoked nixos-rebuild switch
<lambdafan> infinisil: still no joy
<infinisil> alright yeah, I understand now
xcmw has joined #nixos
toraritte has quit [Ping timeout: 240 seconds]
<lambdafan> infinisil: if this is 10.01 specific, I can drop down to 9
<infinisil> lambdafan: nah, nothing to do with that
<infinisil> I'll see for a workaround
thaega has joined #nixos
Guest27207 has quit [Ping timeout: 256 seconds]
LoggerZZZ has quit [Remote host closed the connection]
LoggerZZZ has joined #nixos
<infinisil> Ah, /share does work, not sure why that's not in by default
<infinisil> lambdafan: you can fix it by setting environment.pathsToLink = [ "/share" ];
<lambdafan> infinisil: oh nice. thanks for your help. I'll put that in
<lambdafan> infinisil: I suppose I need to add a pr now
<infinisil> Although it pulls in every /share from every installed package, which isn't a problem really, not sure about it
<samueldr> probably something about packages purity, using /share makes it easier to make packages depend on /share instead of the actual paths of the dependencies used...
<infinisil> lambdafan: I'd open an issue instead, this is not a sensible solution
stepcut has joined #nixos
<lambdafan> infinisil: will do
jtojnar has quit [Ping timeout: 252 seconds]
<infinisil> samueldr: I don't get that
xcmw has quit [Ping timeout: 276 seconds]
yegle has quit [Quit: WeeChat 2.0]
<lambdafan> infinisil: nice thanks for your help. I've made notes about hwo this is a work-around to remind me to open up an issue
<samueldr> hmm, I don't know how to put it into words right, it's a bit fuzzy, but /share is often used to stuff runtime-dependent bits shared between some packages, e.g: icons, themes, sometimes scripts. When linking /share in its entirety, it becomes easy to rely on it instead of linking to the /nix/store/.../share folder of the *actual* dependency
<samueldr> instead of software using the /nix/store/.../share folder of the dependency**
<samueldr> that's all a guess, I have no hard proofs that's the reason /share isn't the default
ryanartecona has quit [Quit: ryanartecona]
<infinisil> ah i see
<samueldr> (I was talking about environment.pathsToLink, not pathsToLink of a package is there's such a thing)
ssmike has quit [Remote host closed the connection]
<infinisil> samueldr: i think it would be an obvious red flag when somebody patches stuff to link to /run/current-system/sw/.. though
<samueldr> hmm, yeah, my argument still applies, but when done at the package level it's now an "API" instead of a system wide setting
ssmike has joined #nixos
yegle has joined #nixos
MichaelRaskin has joined #nixos
<infinisil> Is there an open PR count histogram somewhere?
<infinisil> because it seems to be accelerating
<samueldr> I had raw data a couple of months ago IIRC
thaega has left #nixos ["ERC (IRC client for Emacs 25.2.2)"]
<infinisil> I guess I'm not helping by opening 2 today heh
fresheye1 has joined #nixos
coot has joined #nixos
<infinisil> samueldr: beautiful
<samueldr> with... improperly labelled graphs https://stuff.samueldr.com/screenshots/2017/11/20171123231828.png
<samueldr> I still have the script around to generate the data
<yegle> What's the equivalent of /etc/nixos/configuration.nix when use nix on a Linux system?
<fresheye1> quick question
<fresheye1> I have nixos on a macbook pro
<samueldr> though it caches nothing, works only in RAM, which makes it use a godawful amount of memory
<infinisil> samueldr: nice!
<fresheye1> and when it get's plugged in to a charger
<fresheye1> it turns itself on
<fresheye1> can this be disabled?
<infinisil> yegle: there is none, configuration.nix is the thing that makes NixOS NixOS
<infinisil> yegle: it manages all of the system, it can't just work under another linux distro
<yegle> infinisil: then how can I do basic things like configuring timezone for apps installed via nixpkg?
<infinisil> yegle: probably with your distro somehow, no idea how it's done for others
<yegle> For some reason all apps installed via nix think the timezone is UTC :-(
<infinisil> yegle: nix packages should respect this stuff like normal, nothing ties them to NixOS
<infinisil> yegle: no idea what's up with that, can you give me an example of one (preferable a small program)
fresheye1 has quit [Ping timeout: 240 seconds]
pietranera has quit [Quit: Leaving.]
<yegle> tmux, it's showing 18:09, Feb 2
<yegle> whereas my local time (Pacific Time) should be 10AM Feb 2.
tmaekawa has joined #nixos
<yegle> Hmm strace show something interesting, running `strace date` in nix-shell shows that it was trying to read /nix/.../share/zoneinfo
<yegle> Ah, installing tzdata fixed my problem :-)
yegle has left #nixos ["WeeChat 2.0"]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] jammerful opened pull request #34535: audiofile: Update Patch File Location (master...audiofile) https://git.io/vNN5E
<infinisil> well then
tmaekawa has quit [Client Quit]
coot has quit [Ping timeout: 240 seconds]
<infinisil> oh, fresheye1 left, i wanted to reply to them -.-
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #34536: qgit: 2.6 -> 2.7 (master...update/qgit-2.7) https://git.io/vNN5M
NixOS_GitHub has left #nixos [#nixos]
<LnL> aaah, the intermittent rust failure is still there
ryanartecona has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] copumpkin pushed 2 new commits to master: https://git.io/vNN57
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master d198355 jammerful: audiofile: Update Patch File Location...
<NixOS_GitHub> nixpkgs/master f6fb8e3 Daniel Peebles: Merge pull request #34535 from jammerful/audiofile...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 closed pull request #34521: vim-elixir: 2017-10-20 -> 2018-02-01 (master...vim-elixir) https://git.io/vNNff
NixOS_GitHub has left #nixos [#nixos]
vidbina_ has quit [Quit: Lost terminal]
xcmw has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] kristoff3r opened pull request #34537: pythonPackages.pwntools: fix build (master...fix-pwntools) https://git.io/vNNdp
NixOS_GitHub has left #nixos [#nixos]
fuyuuri has joined #nixos
<infinisil> LnL: Oh no
cfricke has quit [Quit: WeeChat 2.0]
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
fyuuri has quit [Ping timeout: 252 seconds]
92AACSNGR has joined #nixos
07IACE4TW has joined #nixos
<92AACSNGR> nixpkgs/master 25225f0 Anthony Cowley: libqalculate: fix build with clang...
<07IACE4TW> [nixpkgs] LnL7 closed pull request #34514: libqalculate: fix build with clang (master...libqalculate-clang) https://git.io/vNb1c
<92AACSNGR> [nixpkgs] LnL7 pushed 2 new commits to master: https://git.io/vNNFS
07IACE4TW has left #nixos [#nixos]
<92AACSNGR> nixpkgs/master 6d788e9 Daiderd Jordan: Merge pull request #34514 from acowley/libqalculate-clang...
92AACSNGR has left #nixos [#nixos]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/9a5fe79d072 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [Client Quit]
viric has quit [Ping timeout: 264 seconds]
orivej has joined #nixos
jtojnar has joined #nixos
LoggerZZZ has quit [Remote host closed the connection]
LoggerZZZ has joined #nixos
swayf has quit [Remote host closed the connection]
<pikajude> well
swayf has joined #nixos
<pikajude> I can't seem to enable library profiling for the "fail" haskell package
<pikajude> how odd
<gchristensen> success: fails as advertised
<pikajude> what a failure
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] thoughtpolice pushed 1 new commit to master: https://git.io/vNNxW
<NixOS_GitHub> nixpkgs/master d8ba530 Austin Seipp: nvidia-x11: stable 387.34 -> 390.25...
NixOS_GitHub has left #nixos [#nixos]
<dtz> \o/ \o/
swayf has quit [Ping timeout: 265 seconds]
rardiol1 has left #nixos [#nixos]
vidbina has joined #nixos
ssmike has quit [Ping timeout: 246 seconds]
<genesis> Dezgeg : any improvement on libcapsule ?
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<vidbina> how can I enable the udev.packages for a package I'm testing through nix-build?!? The package has been WIP for a month and I've upgrade since, I've tried checking checkout out my topic branch and attempting to nixos-rebuild against it with `udev.packages = [ nameofpackage ];` in my nixos-configuration but then my machine pulls in all the old builds in order to satisfy the WIP nixpkgs. I've considered just
<vidbina> rebasing the entire WIP branch on top of my `nixos-version --revisoin` and take it from there. Is there a clever way to just set `udev.packages` in a nix-build run or must I venture down this path of pain?
xcmw has joined #nixos
<thoughtpolice> vidbina: Maybe you could something like 'let myPackage = pkgs.callPackage /absolute/path/to/your/pkgs/default.nix { };' then use myPackage inside of udev.packages inside your configuration -- in other words, simply evaluate the expression using your NixOS's copy of nixpkgs.
<thoughtpolice> Alternatively yes you can just rebase on top of whatever NixOS version you're using and rebuild with that.
<tobiasBora> Hello !
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vidbina has quit [Ping timeout: 240 seconds]
<infinisil> tobiasBora: hi! do you have a question?
vidbina has joined #nixos
<freeman42x> I would like to add https://github.com/lamdu/lamdu to nixpkgs but it has dependencies of some C/++ libraries.
<freeman42x> Is it ok if I package a C library dependency and submit it to nixpkgs? Or do I need to package everything before submitting? (I might never finish packaging all of it, but I will try)
<tobiasBora> I'd like to know, I need to install geckodriver to make my script working. However, geckodriver is not packed in nix, so I need to do it myself. And on the website, I can find the binaries and the source code. Should I always put the source in the nix package, or can I also provide a link to the official binaries if needed ?
LoggerZZZ has quit [Remote host closed the connection]
<freeman42x> This is the library I would need to package first as lowest level dependency: http://anttweakbar.sourceforge.net/doc/
LoggerZZZ has joined #nixos
<thoughtpolice> tobiasBora: builds-from-source are preferred for a number of reasons (easier to overrides/configure for users, ensures the build is pure, etc) so yes, always use the source if you can. In the event you do use the source, binary packages are mostly redundant anyway (because Hydra will build them for you).
<infinisil> tobiasBora: um, geckodriver is packaged though?
fuyuuri has quit [Ping timeout: 240 seconds]
<tobiasBora> thoughtpolice: ok thank you. But if needed I can specify an additional binary ??
<tobiasBora> infinisil: really? I checked a few days ago, I should have miss it
<infinisil> > committed on Nov 3, 2017
<thoughtpolice> tobiasBora: You can, but in the event of having source code there's almost never a need, and it likely would not be accepted upstream anyway (why would it, if the source packages are there?) The reason we do it for *some* packages is because they're prohibitively expensive to compile, licensing things, or stuff like that.
<thoughtpolice> If you really wanted it, you could do it locally of course.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #33897: Avoid package attributes starting with a digit (master...digits) https://git.io/vNC4p
NixOS_GitHub has left #nixos [#nixos]
zzamboni has joined #nixos
fyuuri has joined #nixos
hiroshi has quit [Ping timeout: 256 seconds]
<thoughtpolice> Plus, most of the time, building from source is easier than writing a custom expression that uses patchelf or whatever, outside of the most hostile/annoying packages. The geckodriver package itself is a good example of that as infinisil linked -- it would probably be longer and more error prone if you packaged a binary, anyway!
<elvishjerricco> Does anyone know how to configure GitHub pull request integration with Hydra?
<elvishjerricco> ^ shlevy?
fyuuri has quit [Ping timeout: 256 seconds]
vidbina has quit [Quit: leaving]
<thoughtpolice> elvishjerricco: There's a terse example here -- https://github.com/NixOS/hydra/commit/c6f07534359dd567b6dfe9397dc22e1f90925397#commitcomment-22262264 -- basically use the 'githubpulls' type on a specific repository, it will pull it as an input, and then you can create jobsets out of those.
<thoughtpolice> This assumes you already have a declarative hydra config
mizu_no__ has joined #nixos
johnsonav has quit [Remote host closed the connection]
<elvishjerricco> thoughtpolice: Does it not need any sort of authentication?
<elvishjerricco> for public repos
zzamboni has quit [Quit: Leaving.]
<M-dpetranek> I installed emacs on macos with nix, but when I launch it all the keystrokes show up in the terminal instead of in emacs
<M-dpetranek> has anybody else seen this issue?
<thoughtpolice> elvishjerricco: That's not handled by the PR plugin ;) That's handled by the Status plugin, which does need authorization. Essentially if you read https://github.com/NixOS/hydra/blob/master/src/lib/Hydra/Plugin/GithubPulls.pm, all it does is it interrogate the GH API for the configured repo, and gets a list of PRs, and writes them as a .json file to the store
<thoughtpolice> Then that file is passed to your declarative build as an input, so you can read the json file.
<thoughtpolice> Then you just create jobsets declaratively like usual -- the GitHub PR .json file contains the ref you want to build, so you just include that
<thoughtpolice> 'info.head.ref'
<hyper_ch> Mic92: now I really need your help... encryption stability patch has now been merged with zfs master.... I still think I should add a third option for zfs for the new encrypted ds format but I just fail to make it correctly
catch22 has joined #nixos
<elvishjerricco> thoughtpolice: Ok... I have not yet used declarative jobsets or the github status plugin. I have a lot to learn :P
<thoughtpolice> elvishjerricco: I've been meaning to set up a better example for my bcachefs-tools fork, but it's relatively simple. Basically: Hydra takes a .json file describing a build and reads it. This file tells hydra where to get inputs from, and what to evaluate (a file). So for example it says "clone 'foobar' from ... and evaluate the file 'hydra.nix' inside it".
<thoughtpolice> elvishjerricco: It then tries evaluating that file (after cloning or whatever) and that evaluation should result in another .json file, and that file describes every job in a jobset.
<Mic92> hyper_ch: not before wednesday ...
ssmike has joined #nixos
<thoughtpolice> elvishjerricco: Here's an example of the first .json file, which tells Hydra what to evaluate. It says "evaluate default.nix from input 'src'", and 'src' is a git repository (pointing to the same gist, in fact)". Thus, hydra evaluates the default.nix, inside that gist, first off -- https://gist.github.com/thoughtpolice/b3832241c3495e0be3de0e98346cb425#file-hydra-json
<elvishjerricco> thoughtpolice: Ok. How do you configure Hydra to look at that JSON file to begin with?
<elvishjerricco> This looks very nice btw :)
<thoughtpolice> elvishjerricco: Create a project on Hydra, and Edit it. Set the "declarative spec file" to hydra.json, for example, and set "Declarative input type" to "Git Checkout" and the repository containing hydra.json
<elvishjerricco> thoughtpolice: Ahh
<thoughtpolice> elvishjerricco: https://imgur.com/a/IgIT4
<thoughtpolice> elvishjerricco: Anyway, if you follow default.nix, it basically just writes out 'spec.json' which Hydra expects, and that json file contains information about every build. In this case I convert the attrset to JSON, but you can see the structure in 'convert'
<samueldr> infinisil: re-imported the data here https://nix.samueldr.com/nixos-pull-requests-2018-02-02.gnumeric
* infinisil downloads that
<thoughtpolice> elvishjerricco: Each json set produced by 'convert' describes one particular jobset. In this case, I have a jobset for each (only a single one called 'new-man' for now). Each jobset says to further evaluate release.nix inside the 'hydra' input, which again points to the same gist.
<thoughtpolice> And that release.nix contains a jobset -- a set of builds wrapped up as a set, is all.
randomstrangerb has quit [Ping timeout: 276 seconds]
<thoughtpolice> elvishjerricco: Note that hydra passes the inputs in the .json file, specified in the "inputs" section of the .json, to each nix expression you ask it to evaluate.
<thoughtpolice> Thus release.nix takes both 'nixpkgs' and 'bcachefs-tools' as inputs.
randomstrangerb has joined #nixos
<thoughtpolice> elvishjerricco: It's a bit roundabout in this case because I lock the nixpkgs revision although that's not necessary in this case, really.
<elvishjerricco> thoughtpolice: Very nice. Thanks. That gist is super helpful.
<MichaelRaskin> freeman42x: if you can test that the things you add actually work, this is a sufficient condition to submit them, in my opinion
<elvishjerricco> thoughtpolice: One more question: How do you configure the github status stuff?
<thoughtpolice> elvishjerricco: So if you understand all this, then the githubpulls plugin is very simple. It simply calls your evaluation to create spec.json with another argument, 'prsJSON', which is just a .json file describing all the open PRs
ssmike has quit [Ping timeout: 240 seconds]
<thoughtpolice> And you can just create jobsets for each of these, like any branch or whatever
ryanartecona has quit [Quit: ryanartecona]
<thoughtpolice> elvishjerricco: That one requires a modification to Hydra's server config to specify the Github authorization key, IIRC, as well as a little extra fiddling. I don't have an example on hand right now but I could probably get one working without too much issue later.
<freeman42x> MichaelRaskin: that is just a lib, I will be able to test it once I package entire Lamdu project (which I might not be able to). But the library might be useful for someone
swayf has joined #nixos
<elvishjerricco> thoughtpolice: An example would be wonderful.
swayf_ has joined #nixos
bpa has joined #nixos
xcmw has joined #nixos
<MichaelRaskin> freeman42x: well, just enable its tests
<freeman42x> MichaelRaskin: based on the files it has it does not seem tot have any tests
swayf has quit [Ping timeout: 265 seconds]
<MichaelRaskin> And it doesn't have any example code included? Oh well, I guess we'll have to settle on the mere build success. Maybe indicate that this is a beginning of a series towards lamdu that you don't want to become a large and a paint to merge
kini has quit [Quit: No Ping reply in 180 seconds.]
asuryawanshi has quit [Ping timeout: 260 seconds]
LoggerZZZ has quit [Read error: Connection reset by peer]
LoggerZZZ has joined #nixos
coot has joined #nixos
<elvishjerricco> clever: Thanks. Is there an explanation on what each of these parts is? Like, is the name in `github_authorization` the name of user/org the key belongs to? What are the `inputs` and `excludeBuildFromContext` fields?
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever> elvishjerricco: for github status, when a build passes, it will find the input of the given name (cardano in the case of line 80), and lookup where on github it came from, and what rev it was in the eval
<clever> elvishjerricco: it will then lookup the org/user owning that repo in github_authorization
<clever> elvishjerricco: and post a static check, like travis does
<elvishjerricco> clever: Does that work for PRs opened by random people, considering it won't have access to their fork?
<clever> elvishjerricco: yeah
<thoughtpolice> Yes, because GitHub implicitly mirrors all changes in forks in the master
<thoughtpolice> So a revision in a single fork is actually available in the master copy, too.
<elvishjerricco> ah. that explains a lot of weird behavior about GitHub forks :P
<thoughtpolice> In fact, you can even use that to your advantage to pull in PRs as named refs, but anyway yeah.
<elvishjerricco> Thanks guys! This should get me pretty far
<gchristensen> indeed, elvishjerricco, try `git fetch origin +refs/pull/APRNUMBER/head:pr`
kini has joined #nixos
randomstrangerb has quit [Ping timeout: 248 seconds]
randomstrangerb has joined #nixos
xcmw has joined #nixos
leotaku has joined #nixos
<leotaku> nixos newbie in need of some help here: how would I install some python packages in my configuration.nix without having to repeat "python36Packages" a bunch of times?
<lejonet> leotaku: with python36Packages; could help
<pmahoney> leotaku: you can replace something like '[ python36Packages.a python36Packages.b ]' with 'with python36Packages; [ a b ]'
Lisanna has quit [Remote host closed the connection]
<leotaku> but how would I add this to my existing list of non-python packages? can I just put "with thing; [ stuff ]" inside my packages list?
simukis has quit [Ping timeout: 276 seconds]
<pmahoney> leotaku: it won't hurt the existing list to have 'with python36Packages;' in front of it, unless some names in python packages overlap other package names
<pmahoney> you could concat two lists like (with python36Packages; [ ... ]) ++ [ other stuff ]
<leotaku> pmahoney: oh the list concatination approach sounds good, I think I will try that
Itkovian has quit [Read error: Connection reset by peer]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 1 new commit to master: https://git.io/vNAYL
<NixOS_GitHub> nixpkgs/master 00cafb4 Michael Raskin: scowl: support installing just words.txt...
NixOS_GitHub has left #nixos [#nixos]
Itkovian has joined #nixos
coot has quit [Quit: coot]
Lisanna has joined #nixos
yann-kaelig has quit []
aarvar has joined #nixos
<freeman42x> is this proper naming for a lib folder? AntTweakBar
<ottidmes> I am happy with how I have structured my overall NixOS configurations, but my dotfiles are still being done ad hoc per machine, so I was looking at what way people manage their dotfiles and the two dotfiles management approached I liked the most are home-manager or yadm (not nix specific), but I cannot seem to find anybody using home-manager online. Does anybody know publicly hosted repos that use
<ottidmes> home-manager?
* infinisil lifts his hand
ryanartecona has joined #nixos
* rycee also uses home manager :-)
<infinisil> Well I actually now use a nixos configuration with home-manager combined, and it's a bit hard to navigate, but here: https://github.com/Infinisil/system
<ottidmes> rycee: lol
zarel_ has joined #nixos
<infinisil> heh
<ottidmes> infinisil: Thanks, I will look into it, I was planning the same, combining it with my other Nix configuration
mizu_no__ has quit [Quit: Computer has gone to sleep.]
<leotaku> ottidmes: do you plan on using it on a system you have root access to and are the single user on?
aarvar has quit [Quit: Leaving.]
<ottidmes> leotaku: I plan to use it for multiple systems, on all I have root access, but on some I am not the only user
<freeman42x> trying to build the hello-world package from nixpkgs fork. any suggestions? [neo@nixos:~/Forks/nixpkgs/pkgs/applications/misc/hello]$ nix-build >>> error: cannot auto-call a function that has an argument without a default value (‘stdenv’)
<infinisil> freeman42x: nix-build -A hello
<infinisil> in the nixpkgs directory
<freeman42x> infinisil: I can't just build it from its own directory?
<MichaelRaskin> No, because it depends on the rest of Nixpkgs
<ottidmes> freeman42x: I have an alias that allows me to build from whatever directory contains my package like this: nix-build -E 'with import <nixpkgs> { }; callPackage ./. { }'
<MichaelRaskin> You can import default.nix directly, then apply nixpkgs-imported callPackage to it.
zarel has joined #nixos
phdoerfler has quit [Remote host closed the connection]
<infinisil> ottidmes: this doesn't use the directories nixpkgs though, but the one you have in your nix path
phdoerfler has joined #nixos
aarvar has joined #nixos
<infinisil> you'd have to do something like 'with import ../../.. {}; ...` instead
<infinisil> (but dynamically search up the tree until top-level nixpkgs is found
<MichaelRaskin> Sometimes it is better to take nixpkgs from NIX_PATH, as it allows to test packages outside of Nixpkgs tree
zarel_ has quit [Ping timeout: 248 seconds]
<ottidmes> Right, I use it to allow me to test packages outside nixpkgs
<ottidmes> and nixpkgs is explicitly defined in my NIX_PATH to point to my local nixpkgs checkout
<freeman42x> ottidmes: cheers, I had something similar for building Haskell packages, only a small difference
<MichaelRaskin> I have actually put a similar script into nixpkgs maintainers/scrits…
MinceR has quit [Ping timeout: 256 seconds]
<ottidmes> MichaelRaskin: nix-call-package I presume
<phdoerfler> I believe I have asked this before and gotten a response but I can't find it in my IRC logs, so here I ask again: How can I run things after the auto upgrade?
<MichaelRaskin> Yes
<infinisil> phdoerfler: "run things"?
<phdoerfler> for example after the auto upgrade I'd like to run a script that checks if there is a new kernel version and then notifies me
MinceR has joined #nixos
<phdoerfler> infinisil: sorry if I was not clear. You know what I mean now?
<infinisil> yeah, a systemd service would be appropriate
<ottidmes> I did not know this maintainers/scripts directory existed, I will check it out, nice to know :-)
LoggerZZZ has quit [Remote host closed the connection]
<phdoerfler> infinisil: I'm a systemd noob and a nix noob. Especially do I have little knowledge about how nixos interacts with systemd. Can you point me to some documentation?
LoggerZZZ has joined #nixos
<phdoerfler> infinisil: if there is any of corse :)
<infinisil> phdoerfler: you'll want to set something like `systemd.services.postUpgrade = { description = "..."; partOf = [ "nixos-upgrade.service" ]; after = [ "nixos-upgrade.service" ]; script = "echo hi"; };
<leotaku> ottidmes: I actually like having all of my configuration in one place (configuration.nix) instead of also using other files (eg. ~/.config/nixpkgs/home.nix) for this I use the currently WIP home-manager NixOS module. Would you be interested in looking at something that utilizes this approch?
<phdoerfler> infinisil: ok thanks. With that, my limited nix-fu and by using this: https://www.reddit.com/r/NixOS/comments/4gj8bc/how_to_writing_a_systemd_service/ I should have everything I need hopefully?
<infinisil> phdoerfler: the available options: https://nixos.org/nixos/options.html#systemd.services and what most of them mean can be found in `man systemd.unit` (the PartOf, After, ... stuff)
<phdoerfler> infinisil: sweet! Thank you! I shall not that down
<infinisil> and if you prefer man pages, all nixos options are in `man configuration.nix`
<phdoerfler> oh I had no idea
<phdoerfler> I don't know if you realize but you answer like 70% of all my questions here
<phdoerfler> so kudos to you :)
<gchristensen> !m infinisil
<[0__0]> You're doing good work, infinisil!
<infinisil> haha :)
<phdoerfler> and gchristensen answers another 20% or something like that
<phdoerfler> :p
<ottidmes> leotaku: What does that implicate, does it mean that I would have to do nixos-rebuild to change my home settings?
leotaku has quit [Ping timeout: 268 seconds]
<ottidmes> infinisil: "Most user-level stuff is not here, as I’m in the process of splitting it in its own repository." Why the split? I have no user stuff yet, but I was planning on keeping it together with my other config stuff, so I would be interested in your reasoning why you would like to separate them
<infinisil> ottidmes: oh, good call, that readme is really old
<infinisil> meanwhile i put it all together
<freeman42x> Sorry, going to have lots of questions :) How can we tell the build proess to use zip for downloading the src? I am getting `do not know how to unpack source archive https://vorboss.dl.sourceforge.net/project/anttweakbar/AntTweakBar_116.zip`
<infinisil> freeman42x: fetchzi
<infinisil> p
<ottidmes> ah ok, I am likely to do this as well, just combine them together, but I do separate my configs on machine level, e.g. my server config does not need to know all the stuff of my desktop
leotaku has joined #nixos
<clever> freeman42x: or, just add unzip to the buildInputs
<clever> freeman42x: that lets fetchurl and stdenv unpack it
<freeman42x> infinisil: got an example for that, can't figure it out
<clever> freeman42x: try sticking to fetchurl, and just add unzip to the buildInputs of the derivation using it
<infinisil> ottidmes: i'm using the modules folder for that: modules provide some functionality, and each machine imports the ones it needs
<freeman42x> this is what I currently have: https://paste2.org/w7vFws4z
<phdoerfler> I got another question: How do I set the mail address the cron daemon should send its complaints to? I tried this: https://github.com/NixOS/nixos/blob/master/modules/services/scheduling/cron.nix#L56 but then nixos complained security.setuidOwners was deprecated and I should use security.wrappers instead. But it won't tell me how :p
<phdoerfler> ok I phrased that question badly
<clever> freeman42x: oh, thats not even a fetchurl
<infinisil> ottidmes: and there's profiles for e.g. a desktop, or a server, which bundles more stuff and modules together
<phdoerfler> I know how I set the mail, but how do I make it work?
zzamboni has joined #nixos
<freeman42x> I'm also streaming this, if it helps with helping :) https://www.twitch.tv/freeman42x
<leotaku> oops, I apparently got disconected for some time, I hope I did not miss anything
zzamboni has quit [Client Quit]
<clever> freeman42x: then add buildInputs = [ unzip ];
<infinisil> freeman42x: haha this is the first time i've seen somebody stream Nix
<freeman42x> infinisil: easier to get help if I am streaming :p
<freeman42x> how do I obtain the fetchurl sha256?
<gchristensen> !tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<clever> freeman42x: simplest way is to just wait for it to fail, then it tells you the right one
<infinisil> leotaku: https://git.io/vNAZu
<ottidmes> infinisil: I started out with that approach as well, with my profiles (I called those machines) having modules their own modules, but most of them were shared in a shared modules folder, but now I have a main config folder I call nixcfg and each machine our machine group has a subfolder (well symlink to their repo) in it, and each those have their own config, modules, pkgs, scripts, lib, etc. making it really
<ottidmes> consistent, while still making it easy to share via e.g. <nixcfg/subfolder/modules/...>
<clever> freeman42x: needs an unzip on line 8
<infinisil> ottidmes: got that online?
<ottidmes> infinisil: not yet, planning to though
<infinisil> ottidmes: I'm actually slowly transfering my config to a new system I think is the best, it's started in my new-modules folder
<freeman42x> clever: I think it is missing this part <<To build the library on Linux, open a terminal, go in the directory src and type make>>
<clever> freeman42x: try postUnpack = "cd src";
<infinisil> ottidmes: the idea is that every single machine imports all modules from new-modules, but all of these modules don't have any effect unless an option of them is enabled
<clever> freeman42x: oh wait no
<clever> freeman42x: postPatch = "cd src";
<samueldr> infinisil: lovely, I was thinking of doing something similar
<leotaku> ottidmes: Sorry for the long waiting time, but yes, as far as I know the NixOS modules purpose is to link home configuration to the main system configuration ("which of course is changed by nixos-rebuild")
<ottidmes> infinisil: had to write my own install script though, because I make heavy use of NIX_PATH which the install script basically ignores
<infinisil> samueldr: nixos options are just so much nicer than file import hell
<clever> [clever@amd-nixos:~/Downloads]$ nix-locate cursorfont.h
<clever> xlibs.libX11.dev 3,118 r /nix/store/2802m84rk70vac9n6wz6d8cgzzzk2600-libX11-1.6.5-dev/include/X11/cursorfont.h
<samueldr> infinisil: exactly!
<clever> freeman42x: add xlibs to line 8, and xlibs.libX11 to the buildInputs
<infinisil> samueldr: this file imports all files in the current directory (with some conditions on filenames)
<clever> freeman42x: lists dont use ,
<samueldr> since you showed yours, I'm showing mine, though some parts are messy https://gitlab.com/samueldr/nixos-configuration
<clever> [clever@amd-nixos:~/Downloads]$ nix-locate GL/glx.h
<samueldr> I played around with the idea that the machines also describe their hardware through options https://gitlab.com/samueldr/nixos-configuration/blob/master/options/zr/hardware.nix
<clever> mesa.out 0 s /nix/store/nppbk91gbdnys2950grrl9zbpssx4iyg-mesa-17.0.3/include/GL/glx.h
ssmike has joined #nixos
<samueldr> then I can do some bad maths and decide what to do
<ottidmes> leotaku: Would then integrating it as a NixOS module not make it a disadvantage of sorts, a complete system rebuild seems more heavy weight then building it separately? Just like the only time I use nix-env is to try something out quickly or temporarily
MP2E has joined #nixos
<infinisil> samueldr: cool idea!
detran has joined #nixos
<clever> freeman42x: now you need to add mesa to line 8 and the inputs
<infinisil> samueldr: I'm jealous of your well organized config
<clever> freeman42x: i dont think the makefile includes an install rule, so `make install` just fails
<samueldr> haha, I still think of it as disorganized as there are still some overlap between profiles and modules, and now options
<ottidmes> One trick I have been using more recently is to just add { some = setting; } in imports, that allows you to create little blocks, without having to resort to many small files
<boxofrox> does `nix-build -E '(import <nixpkgs> {}).pkgname'` include overlays defined in configuration.nix?
<infinisil> samueldr: it's about 10x as organized as mine, i have imports/options/whatever all over the place
NinjaTrappeur has joined #nixos
hiratara has quit [Ping timeout: 276 seconds]
<phdoerfler> infinisil: With your help I made my first systemd unit and it was super easy except it doesn't get started when I run systemctl start nixos-upgrade.service so that's kinda not so great
<infinisil> Every week or so i say to myself "big refactor" which results in me changing 10 random percent of my config to a new style. cycle and repeat
<NinjaTrappeur> Hello, quick noob question here. Is there any way to install all the packages prepended by gnome3? Something like gnome3.*?
<infinisil> phdoerfler: hmm, the partOf and after was a guess, it seemed logical
<phdoerfler> infinisil: the guess looked good to me, too.
<infinisil> phdoerfler: do you get any errors? you can check with `journalctl -u postUpgrade -e`
<phdoerfler> no
<ottidmes> infinisil: I have settled on this one after trying many different approaches, for me it is the right balance between still allowing enough reuse and separation, but not overengineering everything
<lejonet> Hmm, is 64-bit nixos non-multilib? I'm getting a exec format error on a 32-bit, statically linked, busybox, which is breaking gcc-6.4.0
<phdoerfler> infinisil: if I start postUpgrade directly it runs and says hi. It just doesn't get started after the autoUpgrade automatically
<clever> lejonet: what does "file" say about the binary?
hiratara has joined #nixos
<lejonet> clever: /nix/store/lan2w3ab1mvpxj3ppiw2sizh8i7rpz7s-busybox: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, stripped
leotaku has quit [Ping timeout: 240 seconds]
<clever> lejonet: and if you run it manually?
<ottidmes> NinjaTrappeur: systemPackages = with pkgs; gnome3 ++ [ pkgs.foo ... etc... ]
<phdoerfler> infinisil: your journalctl line yields "no entries"
<lejonet> That is why I wonder :P (no-multilib shouldn't matter for a statically linked binary tho... its almost like the kernel is missing support)
<lejonet> clever: I get exec format error then too
<clever> [clever@amd-nixos:~/Downloads]$ /nix/store/lan2w3ab1mvpxj3ppiw2sizh8i7rpz7s-busybox
<NinjaTrappeur> ottidmes, oh I see. Thanks a lot!
<clever> BusyBox v1.23.2 () multi-call binary.
matthewbauer has joined #nixos
<clever> lejonet: that binary is valid on my 64bit machine
<clever> lejonet: what does md5sum say about it?
<lejonet> 62adedc1ec274cf01e46848def7e99f7
<clever> identical to mine
<lejonet> dafuq....
<clever> lejonet: the default kernel has 32bit support
spietz has quit [Ping timeout: 260 seconds]
earldouglas has left #nixos [#nixos]
<lejonet> I'm using the hardened profile, so using the linuxPackages_hardened... what is the kernel config option for 32-bit, so I can zgrep for it in /proc/config.gz
orivej has quit [Ping timeout: 240 seconds]
<infinisil> phdoerfler: okay, i just thought of this, a pretty different approach: just set `systemd.services.nixos-upgrade.serviceConfig.ExecStartPost = "${pkgs.bash}/bin/bash -c 'echo hi'";`
<lejonet> ah, ia32_emulation is not set, that could be it
<clever> infinisil: there is also ${stdenv.shell}
<clever> infinisil: which is just the absolute path to a shell
<clever> sh i think
<phdoerfler> infinisil: ok trying that now…
leotaku has joined #nixos
<infinisil> clever: yeah, no idea why I'm not using it all the time
<infinisil> clever: it's bash
<clever> ah
<infinisil> (well sh is also just symlinked to bash on nixos)
<lejonet> clever: yep, that would be it, damnit :P
* lejonet goes and finds the documentation of adding kernel config options in nixos
<phdoerfler> infinisil: yay this works, thank you so much!
<clever> infinisil: but bash will neuter itself if argv[0] == sh
<phdoerfler> clever: lol
<infinisil> Btw, if somebody wants to see some nice asciiart of systemd services dependencies, have a look at `man bootup`
<ottidmes> infinisil: you seem to mix home stuff and system stuff in your modules folder, I am a bit confused, where is your root home-manager file, the ~/.config/nixpkgs/home.nix?
<infinisil> phdoerfler: :)
<infinisil> clever: ah, yeah that makes sense
<cransom> thems some nice flow diagrams
<infinisil> ottidmes: I'm using https://github.com/rycee/home-manager/pull/97
<phdoerfler> infinisil: my curiosity is still unsatisfied as to why the systemd service guess from yours didn't work. How do I analyze that further?
<phdoerfler> aka how to systemd if things don't do
<infinisil> phdoerfler: read up on man pages, experiment, google, and ask in irc :P
<phdoerfler> okay
<kini> MichaelRaskin: `quicklisp-to-nix-system-info cl-mysql` gives me an error about not being able to find libmysqlclient_r.so; does some new build input need to be added to pkgs/development/lisp-modules/shell.nix ? I would have thought mysql.connector-c should have provided that library (just guessing)
<phdoerfler> maybe I'll remain ignorant for a little while longer :p
<phdoerfler> until I've succeeded with the automatic reboot on security updates nix module thing
dan_b has joined #nixos
<infinisil> phdoerfler: oh that sounds nice
<phdoerfler> and then I shall put it on github and then there shall be no more exploitable nixos servers
<phdoerfler> having studied it security I'm basically a bit paranoid about the whole thing and yeah that's why
<infinisil> \o/
<infinisil> i haven't encrypted my computer for a while now, because i redid the filesystem with zfs only and planned on using zfs encyption, but then realized it's probably a bit too early, and my backup thing wouldn't work, soo..
<phdoerfler> infinisil: stupid question: your one-liner: That does not overwrite any other postExec scripts for that service, right?
<phdoerfler> that's not how nix works, right?
<infinisil> phdoerfler: it would if there was set one
<phdoerfler> oh
<phdoerfler> curious
<phdoerfler> now it feels even more like a hack
<infinisil> phdoerfler: well if you were to integrate this into the upgrade module itself it's not a hack
<ottidmes> infinisil: Thanks, that is probably the module leotaku was talking about, do you or leotaku, perhaps know it would be possible to have both, part of your home config in the nixos config as a module, and part separate via home.nix, because see myself tweaking those home configs a lot, and I already dislike having to rebuild as often as I do right now, which would only increase if I let it handle my home config,
<ottidmes> which is more prone to iterative experimentation
<infinisil> phdoerfler: See nixpkgs/nixos/modules/installer/tools/auto-upgrade.nix
<MichaelRaskin> kini: I think it needs mysql and the shipped library is just a small adaptor for weirder linker tricks
<phdoerfler> infinisil: are you suggesting I do that and file a PR?
<phdoerfler> or something like this
<kini> MichaelRaskin: hmm, I tried replacing "mysql.connector-c" with "mysql" in shell.nix, but I'm seeing the same error
<phdoerfler> infinisil: but even if it were in the upgrade module others could then overwrite that, right?
<infinisil> ottidmes: I'm pretty sure there isn't a way to do that. The advantage of doing it all in one means that you can use all of the system config to influence your home config. This however means that you always need your system config if you want to build a new home-manager thing, so you necessarily have to build everything all the time
<leotaku> ottidmes: Yes, I am using exactly that module
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil> phdoerfler: yeah, but that's how all services work (and is also cool thing of the module system, you can change anything you want, well mostly)
<phdoerfler> infinisil: ok :)
<lejonet> Is there anyway to manually trigger just a rebuild of the kernel, not the whole conf?
<infinisil> phdoerfler: a pr that changes the auto-upgrade for a auto security reboots would make sense yeah
<MichaelRaskin> mysql does seem to provide libmysqlclient_r.so though
<MichaelRaskin> Maybe you need both…
<infinisil> lejonet: nope, the conf can depend on the kernel and the kernel can depend on the conf, they are linked together and build 1 derivation
<phdoerfler> infinisil: all it would do (for now) is to check if a new kernel version was there. That's not perfect but the "perfect" solution would be to take the rebootrequired.py script from debian and adapt it to nixos and that is way out of my comfort zone
<kini> MichaelRaskin: I tried putting both in shell.nix and got "collision between `/nix/store/xpv4xvv9n1j8zrvy8vna5g5zs10rwlqg-mariadb-connector-c-2.3.4/bin/mariadb_config' and `/nix/store/6kl22pij3n5qppcmlg3a6m8ny19yylqj-mariadb-10.2.12/bin/mariadb_config'"
<MichaelRaskin> Hm.
<kini> so I guess those two derivations aren't supposed to coexist in the same environment
<phdoerfler> that being said in the light if meltdown and whatnot I feel like "new kernel version = reboot" is not too bad
zarel has quit [Ping timeout: 265 seconds]
<infinisil> phdoerfler: do it like windows lol
<infinisil> ask you to reboot every hour or so and force it after a day haha
LoggerZZZ has quit [Remote host closed the connection]
<lejonet> infinisil: well, then I'm in a catch 22, can't compile the derivation because the kernel doesn't have 32-bit emulation turned on and can't turn on 32-bit emulation because I can't make a derivation :/
johnsonav has joined #nixos
zarel has joined #nixos
<ottidmes> infinisil: leotaku: Thanks for making me aware of this module, I think I will just use it. There is nothing stoppig me from first experimenting with some config files outside nix, and only then when I consider them stable, to put them in my home manager module.
<infinisil> lejonet: don't include the derivation in the first rebuild?
zarel is now known as zarel_
<phdoerfler> infinisil: haha :D
<lejonet> infinisil: well, it would seem like its an update that is pulling in gcc-6.4.0, I'm not adding that myself, would've just commented it out and do everything already then :P
LoggerZZZ has joined #nixos
<leotaku> ottidmes: I think that's a good Idea!
LoggerZZZ has quit [Remote host closed the connection]
<lejonet> infinisil: would seem like there is a way to compile a kernel module "manually", will try that
<bsima> Is there a "nixos by example" somewhere? I'm trying to build a stack haskell project and want to see examples
<leotaku> ottidmes: Also home-manager does not overwrite files you manually put/change in your home directory, so testing different dotfiles that way should generally be safe.
<kini> MichaelRaskin: fwiw, mysql.connector-c also provides the required library at /nix/store/xpv4xvv9n1j8zrvy8vna5g5zs10rwlqg-mariadb-connector-c-2.3.4/lib/mysql/libmysqlclient_r.so
<kini> so I guess the existing shell.nix isn't really incorrect, just something weird is going on
<MichaelRaskin> Hm.
<kini> I'm on a non-NixOS machine, would that make a difference?
<leotaku> ottidmes: If you want to keep using an configuration you can then add it to the main configuration and rebuild. This is kind of my workflow right now.
<infinisil> bsima: Check out https://github.com/input-output-hk/stack2nix which works pretty well
<lejonet> oh ofc that pulls in gcc-6.4.0 -.- damnit
<MichaelRaskin> Shouldn't; hopefully you do have sandboxing in this case, though
<kini> I'm not sure; how do I check?
<MichaelRaskin> nix-info, I think
<infinisil> kini: or just `grep sandbox /etc/nix/nix.conf`
pie_ has quit [Ping timeout: 240 seconds]
<infinisil> (nix-info is easier though
<kini> `nix-info` is: system: "x86_64-linux", multi-user?: no, version: nix-env (Nix) 1.11.16, channels(kkini): "nixpkgs-18.03pre126020.931a0b8be80", nixpkgs: /home/kkini/.nix-defexpr/channels/nixpkgs
<kini> (I had to `nix-env -i nix-info` first apparently)
<infinisil> haha
<kini> and /etc/nix/nix.conf doesn't exist on my system, it seems
<MichaelRaskin> Multi-user + sandbox does reduce problems
zzamboni has joined #nixos
<MichaelRaskin> For single-user you just lack access for some parts of sandbox
ssmike has quit [Ping timeout: 240 seconds]
<kini> Hmm... well, would anyone be willing to try to replicate my error on nixos, then? `cd $NIXPKGS/pkgs/development/lisp-modules/ ; nix-shell --pure --run "quicklisp-to-nix-system-info cl-mysql"`
<kini> Maybe I should install nixos on a vm in order to work on nix stuff. That would be unfortunate though... I hoped nixos was not a strict requirement for nix hacking...
mizu_no__ has joined #nixos
<Yaniel> so I accidentally tried packaging elisa (the new kde music player)
<MichaelRaskin> Multi-user Nix + sandboxing doesn't require NixOS
<ottidmes> leotaku: Ah good to know that my files will be safe when rebuilding and that it does not get in the way. Yeah, I was thinking of having the same workflow! But this weekend I plan to finish my backup solution, so I will probably wait before converting too much of my config files to this approach.
<Yaniel> went surprisingly easily except that the play button does not work
<MichaelRaskin> And doesn't manage much outside /nix
Izorkin has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Izorkin has joined #nixos
<Yaniel> also I have no idea how I should add its lib dir to the qt plugin path
<infinisil> Yaniel: link to nix file?
<kini> Oh, that's true. I guess I could do that. But there doesn't seem to be a binary installer for multi-user nix, right? Unfortunately I have some old CentOS-like system here so it's hard to compile Nix without already having a modern toolchain supplied by existing Nix
<Yaniel> https://0x0.st/sbUQ.nix working in applications/kde of nixpkgs
<kini> so ironically installing nixos in a VM would probably be easier than setting up multi-user nix on my machine
<kini> Yaniel: ehh, who needs a play button :)
<MichaelRaskin> If you have Nix in /nix, it is easy to convert it to multi-user
<Yaniel> yeah I mean why would I even want my music player to make any sound whatsoever
hiratara has quit [Quit: ZNC - http://znc.in]
<infinisil> well.. you know MPD?
<infinisil> It's a music player that doesn't produce any sound
<infinisil> wait
<infinisil> never mind
<Yaniel> instead it produces a very specific bit pattern on the soundcard output pins?
<infinisil> My mind was like "it uses alsa to play stuff, totally doesn't make sound on its own", but that's stupid
pie_ has joined #nixos
mizu_no__ has quit [Quit: Computer has gone to sleep.]
zarel_ has quit [Quit: IRC for Sailfish 0.9]
hiratara has joined #nixos
catch22 has quit [Ping timeout: 240 seconds]
<Yaniel> sooo any hints on that qt plugin?
<infinisil> kini: Btw, here is the thing you wanted to have run on nixos: https://git.io/vNAlQ
<kini> infinisil: thanks, good to see that it's not just me. Hmm.
<Yaniel> interestingly it does appear to add its bin directory to the plugin path but not its lib path
mizu_no__ has joined #nixos
<Yaniel> *lib dir
<infinisil> No idea
<infinisil> It's time for me to sleep though, nite!
mizu_no__ has quit [Quit: Computer has gone to sleep.]
zzamboni has quit [Quit: Leaving.]
<kini> MichaelRaskin: sorry, could you elaborate? I don't see anything about that in the nix manual...
catch22 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #34539: retdec: split up, greatly reduce in size (by default) (master...feature/retdec-smaller) https://git.io/vNA8K
NixOS_GitHub has left #nixos [#nixos]
johnw_ has joined #nixos
bpa has quit [Remote host closed the connection]
<kini> actually for that matter, I don't see a complete description of how to set up multi-user nix at all. It says "$ nix-daemon" should be run by root, perhaps in a boot script, but does that mean I should call it directly by its path in the nix store? Surely that will change as nix gets upgraded? The root user doesn't have its $PATH set up to use a nix environment, so just doing `nix-daemon` as root won't work...
<MichaelRaskin> I think you need to chown the store to root, create /etc/nix/nix.conf and launch nix-daemon
<MichaelRaskin> Well, you can nix-build -A nix -o /somewhere/nix
<kini> Is that what people usually do? Shouldn't the nix executables generally be running from inside /nix/ ?
<kini> Also thanks, TIL about the `-o` flag for nix-build :)
<MichaelRaskin> It is just a symlink
<MichaelRaskin> Nice
xcmw has joined #nixos
leotaku has left #nixos ["WeeChat 2.0"]
leotaku has joined #nixos
ertes has joined #nixos
azertyieio has quit [Ping timeout: 248 seconds]
iqubic` is now known as iqubic
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zzamboni has joined #nixos
xcmw has joined #nixos
xcmw has quit [Client Quit]
<iqubic> So I'm trying to run a thing with steam-run and fonts arent working.
<iqubic> Terminal gives this output: (DROD_5_The_Second_Sky_v5.1.0.6513_Setup.run:21252): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRe nderFc', script='common'
<iqubic> Where the *.run file is the thing that I am running.
<iqubic> How can I fix that?
spear2 has quit [Remote host closed the connection]
johnw_ has quit [Quit: Textual IRC Client: www.textualapp.com]
cement has quit [Ping timeout: 240 seconds]
azertyieio has joined #nixos
alexteves has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar pushed 1 new commit to master: https://git.io/vNARs
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master c70c964 Guillaume Maudoux: cups-filters: 1.16.0 -> 1.20.0
detran has quit [Ping timeout: 240 seconds]
<contrapumpkin> what's the proper way to add a random haskell package that isn't on hackage or stack to nixpkgs?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar created poppler-0.62.0 (+2 new commits): https://git.io/vNARz
<NixOS_GitHub> nixpkgs/poppler-0.62.0 e98e27b Jan Tojnar: poppler: 0.56.0 → 0.62.0
<NixOS_GitHub> nixpkgs/poppler-0.62.0 bf17d4d Jan Tojnar: poppler_qt4: downgrade 0.62.0 → 0.61.1...
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar closed pull request #34454: cups-filters: 1.16.0 -> 1.20.0 (master...cups-filters-update) https://git.io/vN7yW
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar deleted poppler-0.62.0 at bf17d4d: https://git.io/vNARa
NixOS_GitHub has left #nixos [#nixos]
<srid> I'm trying to install NixOS on thinkpad (P71) right now. The backspace key doesn't work (just inserts a space on terminal). Works on Firefox though.
<leotaku> srid: I had the same error half a week ago, how old is your .iso?
<srid> Downloaded it 1 hr ago
<lejonet> Do you have the right terminfo installed for your terminal? :P
<srid> It might be the same as https://github.com/NixOS/nixpkgs/issues/34364
<maurer> srid: Is it a terminal inside X generating this problem, or the VTYs?
<srid> maurer: both
detran has joined #nixos
<iqubic> What shell do you use? bash, zsh, fish, something else?
<srid> leotaku: nixos-graphical-17.09.2905.c1d9aff56e0-x86_64-linux.iso
<srid> iqubic: bash (though same behaviour with zsh)
<maurer> srid: Try export TERM=xterm
<srid> Doesn't work. Running `clear` gives `xterm` unknown terminal type.
<srid> (which is what the github issue talks about)
<maurer> Yeah, I was just checking b/c sometimes xterm data is hardcoded into stuff
<srid> TERM=vt100 works! (props to the comment in the github issue)
<phdoerfler> infinisil: sorry to bother you again, but in my mighty bash script (the reboot check) I use `file` and `perl` and when I have systemd run it it can't find neither of them. I'm assuming it "just" takes some #!${stdenv.bash.withPkgs [ file perl ]} or something. But what exactly?
<maurer> srid: Yeah, hardcoding >_>.
<maurer> srid: Try the thing from the last comment with the repair?
<maurer> It sounds like somehow a bad copy of ncurses landed on the iso
ryanartecona has quit [Quit: ryanartecona]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] razvan-panda opened pull request #34540: AntTweakBar: init at 1.16 (master...master) https://git.io/vNA0t
NixOS_GitHub has left #nixos [#nixos]
hakujin has quit [Ping timeout: 246 seconds]
<leotaku> srid: this seems to be a error with the terminfo db, I actually bit through installing nixos without a backspace and fixed it on the installed system by switching to unstable. (like one person in the github thread also describes)
<srid> Heh, that's what I was going to do (installing without backspace) ....
NightTrain has joined #nixos
<maurer> Heh, reminds me of the bad old days when I had to install gentoo blind b/c the install disk didn't have drivers for my GPU
<maurer> Every command I typed had || echo -e '\a
<maurer> '
<maurer> at the end :|
detran has quit [Ping timeout: 248 seconds]
<srid> blind? :O did you succeed?
<maurer> Yes, but it was painful
<maurer> I was also a kid though, so I didn't have as many demands on my time
<srid> in 2018 i have the same problem. 5k monitor is not recognized, but the 4k laptop screen works thankfully. (guess I need to fiddle with nvidia drivers later...)
dan_b has quit [Ping timeout: 268 seconds]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] jtojnar opened pull request #34541: poppler: 0.56.0 → 0.62.0 (master...poppler-0.62.0) https://git.io/vNA0r
<srid> btw, that nix-repair command worked
* srid proceeds to install nixos on this factory-fresh thinkpad, hoping nothing would break ...
<leotaku> srid: great!
<iqubic> I'm not sure how to fix my font issue.
<srid> grr. it didn't recognize my ssd. though I see /dev/nvme....
hakujin has joined #nixos
fuyuuri has joined #nixos
<maurer> srid: If you have NVME SSDs, they will present as /dev/nvmeXnX
<maurer> and once partitioned, there will be /dev/nvmeXnXpY
matthewbauer has quit [Ping timeout: 252 seconds]
<srid> I see. Ya, I see them.
<maurer> srid: Uh, just to check, since you seem to be running into a lot of my problems - are you planning on using ZFS over nvme? If so, there's a boot gotcha that I don't know if has been fixed yet
<srid> ZFS? Not particularly
<maurer> OK, should be fine then
fuyuuri has quit [Client Quit]
fyuuri has joined #nixos
<srid> I need to be creating a /boot partition (in addition to root) right?
<maurer> Only if your root is either encrypted or something grub can't speak
Tobba_ has joined #nixos
<maurer> well, grub/gummiboot/systemd-boot/whatever you're using
ryanartecona has joined #nixos
ryanartecona has quit [Client Quit]
<maurer> If you're trying to do UEFI boot, then yes, you need a separate /boot, and it must be VFAT
<maurer> I imagine this is documented in the manual though
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/00cafb4c8d4 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [Client Quit]
hakujin has quit [Ping timeout: 256 seconds]
Tobba has quit [Ping timeout: 248 seconds]
<samueldr> yes, for UEFI, the ESP needs to be mounted on /boot
<srid> So I need it, yes.
hakujin has joined #nixos
* srid ignores swap partition; 64G of memory ought to be enough for everything
<samueldr> and make sure /boot is in hardware-configuration
nuncanada has quit [Read error: Connection reset by peer]
<samueldr> or, well, where your mounts are configured if you change that
<leotaku> srid: this might be helpful: https://github.com/NixOS/nixpkgs/issues/9096
<samueldr> yeah, 64GB on my machine, I dropped the swap too, but if your use case often gets close to 64GB of actual use, don't hesitate to add swap, it helps as soon as there's stuff to evict from memory
nuncanada has joined #nixos
silver has quit [Read error: Connection reset by peer]
<srid> leotaku: I remember doing steps 1 & 2 on the Mac (not sure about 3).
silver has joined #nixos
detran has joined #nixos
<srid> error: changing mode of .... (ncurses in nix-store) to 40555: Read-only file system
<samueldr> hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
<samueldr> srid: which iso is it already?
<samueldr> c1d9aff56e0 ?
<srid> nixos-graphical-17.09.2905.c1d9aff56e0-x86_64-linux.iso
<srid> yes
hiroshi has joined #nixos
<srid> Looks like https://github.com/NixOS/nixpkgs/issues/32242 - but it was closed a week ago (?)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] womfoo opened pull request #34542: bonfire: bump arrow dependency (fixes build) (master...fix/bonfire-deps) https://git.io/vNAuc
NixOS_GitHub has left #nixos [#nixos]
<samueldr> that's why I said "hmmmmmmmmmmmmmmmm..."
detran has quit [Ping timeout: 248 seconds]
<samueldr> it looks like it, but it may not be
* samueldr is downloading the iso
freeman42x[NixOS has quit [Ping timeout: 248 seconds]
azertyieio has quit [Ping timeout: 248 seconds]
<elvishjerricco> Urgh. My hydra is not using the darwin machine that I have set up :/
detran has joined #nixos
<srid> samueldr: should I try the nightly instead?
<iqubic> t is hydra?
<samueldr> srid: it will not install the same nixos version
<samueldr> using unstable will install with the nixos-unstable channel
<samueldr> I'm wondering if it's related to the fix for terminfo, or if it's unrelated
<iqubic> what is hydra?
<lejonet> nixos build machine cluster kinda
<lejonet> it builds all the binpkgs
<samueldr> srid: which fix did you apply? the one with nix-store --repair-path?
<iqubic> Do I want to use hydra.
hakujin has quit [Ping timeout: 256 seconds]
<srid> samueldr: yes, I applied it on the ncursues dir, which is also where I see the Read-only file system error
<srid> so they might be related
<MichaelRaskin> iqubic: if you are not yet sure what it is, no you do not.
hakujin has joined #nixos
<srid> maybe I should reboot ... then go straight to mounting and running nixos-install (without the repair fix)
<samueldr> might be hard to type everything without making mistakes
<MichaelRaskin> (It looks like setting Hydra up correctly is not completely trivial; and it only makes sense if you want to do CI with Nix with multiple builders and complicated job structure etc.)
<iqubic> (DROD_5_The_Second_Sky_v5.1.0.6513_Setup.run:21252): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='common'
<samueldr> it may be easier to download a days old iso instead
<iqubic> Anyone know how to fix this error when running seteam-run.
<contrapumpkin> anyone know how to add ad-hoc haskell packages that aren't on hackage?
<srid> I believe there are just two more commands: mount ... and nixos-install. if that doesdn't work, i'll try days old iso
detran has quit [Ping timeout: 256 seconds]
Sonarpulse has quit [Ping timeout: 256 seconds]
<srid> (btw, I used copytoram when booting the ISO)
<samueldr> shouldn't affect anything
<samueldr> if I understand the bug correctly, any of them *may* be affected, but chances are probably low
<samueldr> oh, that's minimal image though
<samueldr> you had graphical
<srid> looks like it worked after a reboot and not using the repair fix
<srid> but i see an error regarding /boot No such file ordirectory
<samueldr> where/when?
<srid> on terminal (not gui), and this 4k screen is making me squint hard.
<srid> from systemd-boot-builder.py
<srid> bootctl --path=/boot install
<samueldr> a boot message or output from a command?
<samueldr> ah
<srid> should I mount the boot partition on /boot (instead of /mnt/boot)?
<lejonet> Hmm, something is really odd here, I'm still getting the "error: value is a string while a set was expected" even when not using my own checkout O.o
<samueldr> (I haven't yet installed using bootctl so I may be wrong)
<samueldr> are you manually running bootctl or is it from nixos-install?
hakujin has quit [Ping timeout: 276 seconds]
<srid> from nixos-install
<samueldr> okay, so it should use /mnt/boot normally, but since it's chrooted the command uses /boot
<elvishjerricco> contrapumpkin: You might be looking for `haskellPackages.callCabal2nix "<name>" src {}`
hakujin has joined #nixos
<srid> samueldr: let me upload the image ...
<contrapumpkin> elvishjerricco: hmm, not sure I get it. I want to add a package to nixpkgs but it isn't in hackage or stack
<srid> samueldr: ^^
<samueldr> and I'm assuming /dev/nv*1p1 is mounted as /boot, right?
<elvishjerricco> contrapumpkin: Well the `callCabal2nix` function is the easiest way to take a src and make it into a derivation. So the question is: In what context are you trying to add it? Just in your `configuration.nix`, or in a local project, or what?
<contrapumpkin> elvishjerricco: I want to make a haskell package available to everyone in nixpkgs
<contrapumpkin> but that is not in hackage
<contrapumpkin> so it doesn't get picked up by the standard machinery
<srid> samueldr: no, only p6 is mounted on /mnt
<elvishjerricco> Oh. So you're talking about a potential PR to nixpkgs?
<contrapumpkin> yeah
<elvishjerricco> contrapumpkin: ^
<contrapumpkin> I just don't know where to put it, because it obviously doesn't go into the autogenerated stuff
<elvishjerricco> One second, I think I have a link for you
<srid> samueldr: also p5 (not p1) is the boot partition.
<samueldr> ah, installation for UEFI boot assumes the ESP has to be mounted on /boot
<elvishjerricco> contrapumpkin: They did this for `haskell-ide-engine`: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-modules/hie-packages.nix
detran has joined #nixos
<samueldr> and, uh, BIOS boot (I need to verify this) is for use with GPT on legacy bios boot scheme IIRC
<elvishjerricco> I kinda think they should have used `callCabal2nix` to keep the boilerplate down, since this is a hand-written file, but it's fine either way
<srid> samueldr: i'm not clear on which partition I should mount to /boot. the EFI system partition (...n1p1) or the newly-created boot partition (..n1p5)?
<contrapumpkin> hmm okay
<contrapumpkin> thanks elvishjerricco
<contrapumpkin> yeah, saw that
hakujin has quit [Ping timeout: 256 seconds]
<srid> samueldr: I think I saw GPT when using cfdisk to create partitions.
<samueldr> srid: in this case, I'm pretty sure n1p5 is wrong, as it's a special type used mainly for grub for compatibility purposes https://en.wikipedia.org/wiki/BIOS_boot_partition
<contrapumpkin> elvishjerricco: since mine is just a standalone package, I guess I should just stuff it in initial-packages.nix
<elvishjerricco> contrapumpkin: Not sure. This will be a good question for peti when you open the PR :P
<samueldr> and then, I'm pretty sure that at most one ESP can be used per disk, the ESP is your n1p1 partition, which is of type "EFI System"
<contrapumpkin> yup
<srid> samueldr: But in https://github.com/NixOS/nixpkgs/issues/9096 step 3 (mounting) refers to the newly created partition in step 1