xkapastel has quit [Quit: Connection closed for inactivity]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzzโฆ]
Decoy_ has quit [Ping timeout: 250 seconds]
<infinisil>
samueldr: Yeah I've started tagging WIP PR's when I see them for the WIP searches
<mankyKitty>
morning
<jackdk>
sup
<mankyKitty>
I have nix haskell pkgs question... A dependency is building an executable that I don't want, is it possible to alter its derivation so that the exe is not built and it's dependencies are pruned ?
o1lo01ol1o has joined #nixos
<mankyKitty>
SAAAAAAARRRRRRRRRRPPPPP
<clever>
mankyKitty: which dependency, and which executable?
gspia has quit [Ping timeout: 240 seconds]
<mankyKitty>
'hw-json' is the package, I only need the lib, not the exe
<clever>
mankyKitty: not seeing any obvious flag to just turn off executables
Decoy_ has quit [Ping timeout: 250 seconds]
<mankyKitty>
neither am I, I could maybe only target the `lib:hw-json`, not sure that'd do what I really want though
<clever>
mankyKitty: does it really take that long to build the executable?
<clever>
mankyKitty: and nix should cache things, and only build it once
<mankyKitty>
in truth, no, I'm being picky. My package has to add an override to pull in the version of this package that I want, and that means I'm missing out on some caching goodness. So I'm just trying to reduce the hit a bit.
<clever>
ah
<clever>
but once its built once, its cached locally
<clever>
until something else changes like your nixpkgs rev
<mankyKitty>
yep
vk3wtf has quit [Ping timeout: 264 seconds]
<elvishjerricco>
mankyKitty: Cabal takes a positional argument for building an individual component. You can't build a non-unary subset of components though, so no lib + tests - exes
<elvishjerricco>
mankyKitty: So I think you could just do `appendConfigureFlag drv drv.pname` to have it only build the lib.
<mankyKitty>
hrmm
acarrico has joined #nixos
alex``` has quit [Ping timeout: 245 seconds]
<mankyKitty>
that's interesting, okay awesome, I can't be explicit about which target I want to build because that doesn't work if both tests and benchmarks are enabled. I'm super not interested in disabling tests, so I might just wear this for now. I'm not sure the time invested is worth the time saved... something something there's an xkcd about this.
silver_ has quit [Read error: Connection reset by peer]
<elvishjerricco>
mankyKitty: There is https://github.com/angerman/nix-tools. We've made a per-component builder, so there's one derivation per component. This is completely separated from the nixpkgs haskell infra though
<mankyKitty>
that's wild, and totally overkill for this, I think. :D But still, very cool and I'll put that in the box to use later
<clever>
mankyKitty: nix-tools also has cross-compile support
o1lo01ol1o has joined #nixos
andreabedini has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
halfbit has joined #nixos
gspia has joined #nixos
dermetfan has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates ยซ hackage-packages.nix: automatic Haskell package set update ยป: https://git.io/fhaL7
<{^_^}>
[hydra] @samueldr opened pull request #633 โ Add hydra-dev-server which uses the classic Catalyst server โ https://git.io/fhatn
orivej_ has quit [Ping timeout: 246 seconds]
lord| has quit [Quit: WeeChat 2.3]
squidpickles has left #nixos [#nixos]
Guest72488 has quit [Ping timeout: 272 seconds]
clr__ has joined #nixos
lord| has joined #nixos
clr_ has quit [Ping timeout: 252 seconds]
kvda has joined #nixos
clr__ has quit [Read error: Connection reset by peer]
vk3wtf has joined #nixos
clr__ has joined #nixos
clr_ has joined #nixos
marusich has quit [Remote host closed the connection]
clr__ has quit [Ping timeout: 264 seconds]
infinii has joined #nixos
marusich has joined #nixos
sigmundv_ has quit [Ping timeout: 272 seconds]
<CMCDragonkai>
I'm trying to debug a nix-build
<CMCDragonkai>
I used nix-build -K
<CMCDragonkai>
And I have a build directory in /tmp
<CMCDragonkai>
I create a bash shell and source the env-vars
<CMCDragonkai>
now what?
<CMCDragonkai>
what can you do inside here? I need to run the tests to see if they work
<clever>
CMCDragonkai: depending on the package, it could just be `make check` or `make tests`
<CMCDragonkai>
It's a python package.
<clever>
CMCDragonkai: then you need to lookup the python way to run tests
<clever>
CMCDragonkai: 2019-01-22 22:14:21 < clever> also, i open the shell for this, by running `nix-shell /nix/store/foo.drv` on the drv that failed to build
<fresheyeball>
clever: those are they
<clever>
CMCDragonkai: your missing the entire stdenv
<CMCDragonkai>
clever: So using a nix-shell is better for this problem than using nix-build -K?
<clever>
fresheyeball: and pkgs.nix?
<clever>
CMCDragonkai: you can use nix-shell to open the right shell, then cd into the dir left-behind from nix-build -K
<clever>
CMCDragonkai: and you can ignore env-vars
<fresheyeball>
clever: I posted both
<clever>
ah, there
<clever>
fresheyeball: pkgs.nix doesnt accept any arguments
<CMCDragonkai>
clever: Ah ok so you need both nix-build -K to get the left over directory and nix-shell ...drv to get the proper shell environment. This should really be combined into a single debugging tool
<clever>
fresheyeball: so you want `--arg pkgs 'import ./pkgs.nix'`
<clever>
CMCDragonkai: most of the time, you can also skip the -K, and just reproduce the failure in nix-shell, but it depends on whats failing, and if you want to wait for another build
the-kenny has quit [Ping timeout: 245 seconds]
the-kenny-w has joined #nixos
<clever>
fresheyeball: also, you can replace `{ gitignore = gitignore; }` with `{ inherit gitignore; }`
<CMCDragonkai>
Yea but my drv expression is written in my branch of nixpkgs. So I don't have the source with me in some local directory. So `nix-build -K` at least leaves that in the `/tmp`.
ilya-fedin has quit [Quit: Connection closed for inactivity]
<fresheyeball>
clever:++
<clever>
CMCDragonkai: the .drv depends on the source, so it must exist in /nix/store/
<fresheyeball>
clever++
<{^_^}>
clever's karma got increased to 81
<clever>
CMCDragonkai: and running nix-shell on the .drv will point $src to it, and the genericBuild function will unpack that source for you
<CMCDragonkai>
clever: See I didn't know that. So using only nix-shell you can use a function in the env to bring in that source to my CWD.
<clever>
CMCDragonkai: nix-shell sets up the same env vars that nix-build would have been using to do the build, so you can always access the src it would have been building
<CMCDragonkai>
clever: Do you know of a way to run tests of a program in Nix builder, that needs to use a real TTY for testing and now redirect the test STDOUT?
<CMCDragonkai>
clever: Because the package performs curses tests?
<clever>
CMCDragonkai: was already thinking about that, after i noticed curses in the comments
<iqubic>
Is it possible to do Haskell development and have cabal-install only installed in my nix-shell sandbox?
<clever>
iqubic: `runhaskell Setup.hs` == cabal
<clever>
iqubic: so you can just `runhaskell Setup.hs configure` or `ghcid -c "runhaskell Setup.hs repl"`
<iqubic>
Clever: Are there ways around needing cabal installed in order to run `cabal init`? I don't want to pollute my main environment with cabal.
<CMCDragonkai>
clever: I see recommendations of using `expect`.
<clever>
iqubic: nix run or nix-shell
<CMCDragonkai>
clever: Is there documentation for libtsm?
<clever>
CMCDragonkai: unknown
infinii has quit [Ping timeout: 240 seconds]
<iqubic>
I see.
infinii has joined #nixos
vk3wtf has quit [Ping timeout: 252 seconds]
hke has joined #nixos
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 244 seconds]
Mateon3 is now known as Mateon1
<iqubic>
How does nix-shell figure out which packages to install? I know that it reads from shell.nix, but I don't know what specifically in shell.nix defines which packages to load into the sandbox.
<iqubic>
Can someone enlighten me?
<clever>
iqubic: it will read the derivation that the default.nix returns, make sure all the deps of that derivation exist in /nix/store/, and then set the env vars in the derivation
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<iqubic>
I thought `nix-shell` used shell.nix if that was found. I thought `nix-shell` only looked at default.nix if shell.nix wasn't found.
<clever>
iqubic: nix-shell will load either shell.nix or default.nix, in either case, the file it loads must return a derivation (or a set, when using -A)
<clever>
it will then make all the deps of that derivation exist (downloading and/or building), and set the env vars from the derivation
<iqubic>
Cool.
<teto>
is there a way to run nix-review with uncommitted code ? the example only shows the usage with a git rev
<iqubic>
What exactly does callPackage do?
<iqubic>
I'm using `nixpkgs.packages.haskell.${compiler}.callPackage ./foo.nix`
<clever>
> builtins.functionArgs ({ a, b ? 5 }: a + b)
<{^_^}>
{ a = false; b = true; }
<clever>
iqubic: it will import the given file, then use functionArgs to query what args it accepts, then give it those args, from the set callPackage came from
<iqubic>
Where `foo.nix` is created with `cabal2nix . > foo.nix`
<clever>
iqubic: you want callPackage ./foo.nix {} as well
<iqubic>
Now, what does the import statement do?
<clever>
iqubic: it will load the given file, and return the top-level value in that file
<iqubic>
I see.
<iqubic>
So I have this in my shell.nix, and I'm not quite sure what the .env does.
<iqubic>
That's not really all that big at all. Instead of putting in tons of work to only have cabal installed in my nix sandboxes, I'm just going to put it into my environmentPackages in configuration.nix
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzzโฆ]
<infinisil>
clever: i don't like the Setup.hs thing because: it's longer than cabal and isn't integrated into standard tools, cabal works fine pretty much always, I don't like the useless Setup.hs file in my projects (i delete it)
<clever>
iqubic: its more about the cabal version, `cabal` will not always be the right version, and that will break things for you later on
<iqubic>
clever: I'm fine with that.
<clever>
infinisil: the generic-builder.nix in nixpkgs always uses Setup.hs, even if your project is missing it (a default one is provided)
<clever>
and nix only provides Cabal (the haskell library) not cabal-install (the binary your used to)
<infinisil>
Why doesn't cabal-install just see if there's a Setup.hs and exec that instead
<clever>
infinisil: infinite recursion
<clever>
the default file:
<clever>
import Distribution.Simple
<clever>
main = defaultMain
<clever>
will just call the main from cabal-install
<clever>
which will then see the Setup.hs and run it
<clever>
which will then see the Setup.hs and run it
<jackdk>
one is extra libraries to link against, and the other looks for libraries using pkg-config, it seems
<iqubic>
does cabal2nix support both conventions?
<clever>
unknown, try one and see what happens
<jackdk>
they are not conventions, they do different things. If the library you depend on does not provide a .pc file, pkg-config won't find it
vk3wtf has quit [Ping timeout: 268 seconds]
acarrico has quit [Ping timeout: 245 seconds]
<iqubic>
and it looks like there's also a c-sources thing too.
<clever>
thats for when you have c code in the same project as the haskell, and it should build both at once
<iqubic>
huh?!? How is that different from the pkg-config thing?
<clever>
pkg-config is pre-installed stuff to find using pkgconfig
<clever>
c-sources is wrappers included with the haskell source, that do things like implement something haskell cant do, and haskell then ffi's into it
<iqubic>
I see. I'm not sure which one of these is the right one to use for my project. I'm also not sure which of these cabal2nix will support.
<clever>
cabal2nix doesnt have to do anything special with c-sources, thats entirely handled by cabal at build-time
<iqubic>
looks like I've got some experiementing to do.
<iqubic>
clever: I'm not sure how that's possible. I must be misunderstanding how c-sources works.
<iqubic>
Is that used if you write your own c code and want haskell to FFI into that?
<ar1a>
is there an alternative to styx for haskell dev? it doesn't have everything i want and the repl breaks backspaces too
<clever>
yeah
eadwu has quit [Quit: WeeChat 2.3]
<wedens>
anyone has experience using additional openssl engines with nix? I'm not sure how to tell openssl where to find the engine
<iqubic>
Actually, I don't run ask dante to run the repl with --pure, and it works fine.
vk3wtf has joined #nixos
<iqubic>
I'm not sure whether the pure version is better or the impure version is better.
halfbit has joined #nixos
slack1256 has quit [Ping timeout: 250 seconds]
slack1256 has joined #nixos
<ar1a>
alright i just (setq dante-methods-alist (delq (assoc 'nix dante-methods-alist) dante-methods-alist)) and no worries
halfbit has quit [Ping timeout: 252 seconds]
<iqubic>
did that work?
<iqubic>
ar1a: ^^^
<ar1a>
iqubic: yes
<ar1a>
now i have another error! i add "hs-discord" to my build-depends, regen the nix file with cabal2nix and i get "error: anonymous function at /home/aria/projects/regbot/regbot.nix:1:1 called without required argument 'hs-discord', at /nix/store/g5m6s88309dvicnbkd9d7gdhb54hkh66-nixos-19.03pre166950.5e6ae9b6a51/nixos/pkgs/development/haskell-modules/make-package-set.nix:87:27"
<ar1a>
alright, i tried to install it and it throws me Setup: Encountered missing dependencies:
<ar1a>
aeson >=1.0 && <1.2
<ar1a>
does cabal not fetch dependencies?
<slack1256>
Have you set that dependency on the cabal file?
<ar1a>
slack1256: you mean putting aeson in the cabal file?
<slack1256>
Yeah, oherwise how could cabal know it had it?
mizu_no_oto has joined #nixos
<ar1a>
i have discord-hs in the cabal file, and base
<ar1a>
that's it
kvda has joined #nixos
<slack1256>
Put aeson too
<wedens>
ar1a: you modify cabal file then you run cabal2nix
<ar1a>
surely it resolves dependencies....
<ar1a>
wedens: yeah i have
<slack1256>
Yeah, but you probably are using aeson outside of just discord-hs right? So it has to be available to you, not just transitively to discord-hs
<ar1a>
alright, chucked aeson in dependencies above discord-hs, rebuilt with cabal2nix, ran nix-build and it gave me the same error
<ar1a>
nope, my main.hs is the stock putStrLn
<ar1a>
if i try a different library like discord-haskell it gave me aeson and a few more - aeson containers req and juicypixels
<wedens>
how do you build?
<ar1a>
`nix-build`
reinhardt has joined #nixos
<wedens>
without an argument?
<ar1a>
yep. default.nix has just the import nixpkgs and haskellPackages.callPackage
<wedens>
ar1a: can you paste your nix files somewhere?
<ar1a>
man idk. this just seems like so much boilerplate for such a common issue
<wedens>
it's a link to hackage
<wedens>
on that page
<ar1a>
its so hard to believe you have to do this for every dependency that has older versions
<ar1a>
eh dont worry about it. i was just gonna rewrite an app i already had in haskell but all this mixed with the library being basically a 1:1 REST mapping has turned me off
<wedens>
for example, package A requires aeson > 1.4 and package B requires aeson < 1.3. at least in nix you can solve this manually (e.g. by `doJailbreak` which basically removes constraints)
<simpson>
ar1a, wedens: Some languages even permit linking multiple versions of a library into a single application! Such languages are surprisingly *more* accepting of strict versioning requirements.
<wedens>
what makes nix appear more difficult is that it throws away dependency solver
<wedens>
but it's a feature
<teto>
praetorg: sysctl deals with runtime knobs. you should override (attrs?) the extraConfig parameter of a certain kernel
johann__ has joined #nixos
johann__ has quit [Read error: Connection reset by peer]
<praetorg>
teto ok
<wedens>
ar1a: btw, you can just use cabal with new-* commands without doing dependency management in nix
<teto>
I am not sure why haskell folks add upper bound constraints, it makes it that much harder to use
<ar1a>
wedens: oooh, any resources on using those?
<srhb>
bryan1_: Not really when it's read from Prelude. You'd have to replace it with something else. Although I think we ship most packages with profiling built, so you should just need to rebuild your own with profiling to get a nice trace.
<Mic92>
ivegotasthma: in that context I mean that for NixOS we can configure globally as we can control LOCAL_ARCHIVE, while nix and nixpkgs might be also used in other linux distributions where the locales come from somewhere else.
<bryan1_>
srhb: thanks.. last time i built my stack project with --profile it took nearly an hour :/
<ivegotasthma>
Mic92: thanks for the info
<ivegotasthma>
Is there a document somewhere that describes what NixOS adds on top of an already existing nix installation?
<ivegotasthma>
because nix can manage the whole system by itself, correct?
infinii has joined #nixos
<bryan1_>
srhb: need to switch to using nix pkgs for my builds...
Makaveli7 has joined #nixos
<jasongrossman>
ivegotasthma: No, Nix doesn't manage the central parts of the operating system (kernel, etc.). NixOS does. So they're very different.
<ivegotasthma>
jasongrossman: how does nixos manage that? isn't it using the nix pkg manager?
<jasongrossman>
Yes. It's a bloody miracle, that's how! But it does.
Lisanna has joined #nixos
slack1256 has joined #nixos
<srhb>
bryan1_: Yeah, the nix cache helps a lot :)
<jasongrossman>
See Eelco Dolstra's original papers if you want to see how it works.
<wedens>
srhb bryan1_ unless you pin nixpkgs it and don't update frequently enough :/
<wedens>
that's where you'll start setting up local hydra instance, I guess
Lisanna has quit [Client Quit]
<srhb>
wedens: I do have a local Hydra instance, but I don't really experience the need to update that often.
<srhb>
wedens: When I do I usually just need to bump single packages, in which case callHackage or callCabal2nix in an overlay serves me just fine
<ar1a>
how can i search nodePackages with nix search?/
<wedens>
srhb: what if you bump base? :D
<srhb>
wedens: I don't. :P
<srhb>
Not without bumping nixpkgs proper
<Mic92>
ivegotasthma: nix manages everything inside /nix and then we have scripts that manages the rest like restarting services, setting up the bootloader etc
<wedens>
I don't know what's expiration policy in official cache. I'd like to know that
<srhb>
wedens: We don't expire anything.
<srhb>
wedens: There's years and years of packages in the cache.
<Mic92>
the script itself are also part of the nix store
<wedens>
srhb: cool. that's good to know that nix infrastructure can afford that much disk space :)
<srhb>
ar1a: I don't think you can.
<srhb>
wedens: s3 buckets are infinite! But I'm sure donations are very welcome.
<Mic92>
srhb: it is fastly now as far as I know
<srhb>
Mic92: I thought that was just the CDN
<srhb>
(As in, it replaced cloudflare)
<Mic92>
is this not the same?
slack1256 has quit [Remote host closed the connection]
<srhb>
No, S3 is the backing storage, Cloudfront was the CDN/ ~http gateway (with local caches around the globe) and now Fastly is the CDN
<srhb>
I don't think there's a good reason to switch away from S3, I can't think of a good alternative. If one came up where we actually got the cost savings from the actual deduplication on the backing store, it'd probably be a huge deal though.
<srhb>
But I don't think any cloud providers think that's a good deal. :-)
<srhb>
ar1a: nix-env -qaP -A nixpkgs.nodePackages isn't too slow as an alternative
<ar1a>
ty
Makaveli7 has quit [Quit: Leaving]
Makaveli7 has joined #nixos
Lisanna has joined #nixos
<Lisanna>
Is it possible to download a derivation (.drv) from an http binary cache?
<{^_^}>
[nixpkgs] @FRidh pushed 540 commits to python-unstable: https://git.io/fhaBD
<wedens>
Lisanna: `nix-store -r /nix/store/....` can realise non-existing path from binary cache, afaik
<{^_^}>
[nixpkgs] @FRidh pushed 2 commits to python-unstable: https://git.io/fhaB5
<niksnut>
yeah, but cache.nixos.org doesn't provide .drvs
doyougnu has quit [Ping timeout: 245 seconds]
<Lisanna>
niksnut: Okay - I confirmed that this works through my hydra cache. Which is unfortunate, since I would like to keep some of the derivations for my cache's build products private
mtesseract has joined #nixos
<Lisanna>
for some fixed-output derivations
<srhb>
Lisanna: If you're uploading drvs to your cache, you can just filter them out in a proxy or whatever. :)
<srhb>
But easier would probably be to not upload them in the first place.
<Lisanna>
srhb: that's a possible option - I'm not sure what format the URI taks when downloading from binary caches
<Lisanna>
I'm not uploading them necessarily - hydra is just building them
<Lisanna>
well, instantiating them and them building them
<srhb>
Lisanna: Ah, you're serving Hydra's store directly?
<Lisanna>
srhb: yea
<teto>
gchristensen: would it be possible to prefix the output with the command used to generate it ? would help reproduce problems locally
<srhb>
Lisanna: The "easy" solution is to not do that.
<teto>
(I know they exist in the README)
<Lisanna>
srhb: what's the most straightforward option to not do that?
<Lisanna>
srhb: so if I set that to a location other than /nix/store, hydra will serve that location as the binary cache instead of the host's /nix/store, and derivations for build products won't be pushed there?
<srhb>
Lisanna: By default, yeah. In fact, I'm not quite sure how to even make Hydra publish drvs automatically to that location.
<srhb>
Lisanna: There's probably some obscure option :-)
sigmundv_ has joined #nixos
<Lisanna>
OK, sounds like an easy enough change to make
<srhb>
Lisanna: And you can prepopulate it with your existing paths using nix copy --to thatStoreUri [all non-drvs you want to serve]
o1lo01ol1o has joined #nixos
goibhniu has joined #nixos
o1lo01ol1o has quit [Ping timeout: 272 seconds]
mtesseract has quit [Quit: My MacBook has gone to sleep. ZZZzzzโฆ]
gagbo has joined #nixos
gagbo has quit [Client Quit]
gagbo has joined #nixos
mtesseract has joined #nixos
slack1256 has quit [Remote host closed the connection]
alex``` has joined #nixos
knupfer has joined #nixos
<Lisanna>
is the netrc-file from nix.conf used for curl requests during fetchurl builds?
<Lisanna>
or is it only for resolving URIs for binary caches / NIX_PATH locations
lassulus has quit [Ping timeout: 246 seconds]
sppky has joined #nixos
lassulus has joined #nixos
elibrokeit has quit [Ping timeout: 252 seconds]
erictapen has joined #nixos
elibrokeit has joined #nixos
infinii has quit [Ping timeout: 250 seconds]
<Lisanna>
answer: yes, the builtins.fetchurl supports this. The nixpkgs one doesn't appear to though
mounty has quit [Quit: Konversation terminated!]
mounty has joined #nixos
civodul has joined #nixos
<Lisanna>
but builtins.fetchurl can't be used in restricted-eval mode ):
<ivegotasthma>
rycee: can home-manage copy a folder to a location? ie home.file.<name?>.copy ? I have my firefox profile in a private repo, if I want to move it over to a new machine this would cause the least headache.
<Myrl-saki>
Seems like channel.nix is imported when you use installation-cd-minimal.
<wedens>
ivegotasthma: iirc you can just specify a directory as a source
<ivegotasthma>
if it's not a copy the symlink will change the contents of the repo with history / junk / etc.
<ivegotasthma>
wedens: but it does a symlink, not a copy
<ivegotasthma>
same with recurse
<Myrl-saki>
Found it.
<Myrl-saki>
# Include a copy of Nixpkgs so that nixos-install works out of
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @DrWowa to master ยซ teamviewer: 13.1.3026 -> 14.1.3399 ยป: https://git.io/fha2t
<{^_^}>
[hydra] @edolstra merged pull request #632 โ hydra-queue-runner: better error message if nix-store can not be started โ https://git.io/fh2gq
* Myrl-saki
just learned that I have no idea about NixOS's release schedule at all.
orivej has quit [Ping timeout: 244 seconds]
<{^_^}>
[nixpkgs] @edolstra pushed to master ยซ cyrus-sasl: Fix broken download site ยป: https://git.io/fhaae
LogicAside has quit [Remote host closed the connection]
StardustX has quit [Remote host closed the connection]
StardustX has joined #nixos
StardustX has quit [Client Quit]
protocol has quit [Quit: WeeChat 2.2]
LogicAside has joined #nixos
<Lisanna>
will hydra run localhost builds using nix-daemon
<srhb>
Myrl-saki: Usually the freeze happens right around 1/3 and 1/9 and release is a bit more than a month later :)
ThatDocsLady has quit [Quit: Leaving]
knupfer has quit [Quit: knupfer]
<srhb>
Lisanna: iirc the only difference between localhost and remote builds is that there's special logic to avoid using ssh locally, and instead nix-store --serve --write is called directly
<lewo>
Lisanna: yes
<lewo>
and I confirm what said srhb
ThatDocsLady has joined #nixos
hyper_ch2 has quit [Ping timeout: 256 seconds]
hyper_ch2 has joined #nixos
<{^_^}>
[nixpkgs] @adrianparvino opened pull request #54494 โ Support wrapping a file system under LUKS โ https://git.io/fhaVi
<Myrl-saki>
Can I have comments for #53600 and #54494?
<{^_^}>
https://github.com/NixOS/nixpkgs/pull/53600 (by adrianparvino, 2 weeks ago, open): nixos/modules/system/boot/stage-1.nix: Add support for mounting files encrypted with luks
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #54495 โ sshguard (nixos): fix syslog identifiers and pid file โ https://git.io/fhaVQ
<etu>
Myrl-saki: #53600 has conflicts, I think people shy away a bit extra when it's like that :)
<{^_^}>
https://github.com/NixOS/nixpkgs/pull/53600 (by adrianparvino, 2 weeks ago, open): nixos/modules/system/boot/stage-1.nix: Add support for mounting files encrypted with luks
<Myrl-saki>
etu: Oh crap.
<Myrl-saki>
etu: Thanks, I just realized that right now.
<Myrl-saki>
I have to rebase mine against master, right?
<Myrl-saki>
Like, delete history?
<etu>
if you rebase on master you will rewrite your changes to be applied on top of master
<Myrl-saki>
Right.
<etu>
When you do that you will get a merge conflict
sinner has joined #nixos
sinner is now known as Guest95490
<etu>
and when the rebase is done you'll have to force push it to github since your branch there contains old history instead of your new fresh history :)
o1lo01ol1o has joined #nixos
<Myrl-saki>
I 100% hope there's a test for resize2fs.
<Myrl-saki>
Hint: seems like there's not.
<Myrl-saki>
I might as well add the tests for that, since I'll probably be the one breaking things.
o1lo01ol1o has quit [Ping timeout: 245 seconds]
marvin2 has joined #nixos
mbrock has joined #nixos
<srhb>
Myrl-saki: I think there might be indirectly via the installer tests, but I'm not sure.
tmaekawa has joined #nixos
mekeor has joined #nixos
orivej has joined #nixos
simukis has joined #nixos
simukis has quit [Remote host closed the connection]
simukis has joined #nixos
Makaveli7 has quit [Quit: Leaving]
__monty__ has joined #nixos
hyper_ch2 has quit [Ping timeout: 256 seconds]
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<ldlework>
Anyone use vscode? When I try to open a file it dissapears.
<ldlework>
:P
<srhb>
ldlework: strace might be helpful.
<ldlework>
never learned how to use it
<ldlework>
it's scary
<srhb>
ldlework: To a first approximation, strace -o file yourcommand -- make it crash, pastebin the file.
<ldlework>
srhb: you should know that it does some kind of forking
<jboy>
I followed this helpful guide trying to get Yubikey and gpg-agent to work for ssh auth on NixOS, but it isn't working for me. Does anyone currently have this working? https://rzetterberg.github.io/yubikey-gpg-nixos.html
o1lo01ol1o has joined #nixos
sb0 has left #nixos [#nixos]
<etu>
jboy: Have you enabled services.pcscd.enable = true; in your config?
<etu>
jboy: I'm using yubikey with gpg on nixos, but haven't tried it for ssh yet
<gchristensen>
etu: we should probably delete that package
<jboy>
Maybe I'll submit a pull request on the blog post
<initiumdoeslinux>
etu: I am here on my laptop, I had to boot another OS
<jboy>
\o/
<initiumdoeslinux>
nickserv didn't rename me, don't know how this works :)
<etu>
initiumdoeslinux: oh :)
<mpickering>
tilpner: Are you also on NixOS?
<initiumdoeslinux>
etu: I don't think I've ever witnessed a build script with sleep
<initiumdoeslinux>
let alone that many
<initiumdoeslinux>
witchcraft
<gchristensen>
this is a horrible package :?
<tilpner>
mpickering: Yes
tilpner has quit [Quit: WeeChat 2.3]
tilpner has joined #nixos
Jetien has joined #nixos
hyper_ch2 has quit [Ping timeout: 256 seconds]
<etu>
gchristensen: The package refer to how AUR does install that package, but if I look at the pkgbuild from AUR it doesn't do shady magic like that. So it can probably be improved.
iyzsong has joined #nixos
<gchristensen>
etu: maybe when arch installs it, it can talk to the user's X...
<tilpner>
It did in the past, but it seems they found a way around it, or it stopped being necessary
o1lo01ol1o has quit [Ping timeout: 244 seconds]
fendor has joined #nixos
mbrock has quit [Ping timeout: 245 seconds]
<etu>
tilpner: Yeah, so we can probably copy their updated install instructions to lake it less shady
rauno has quit [Ping timeout: 240 seconds]
initiumdoeslinux has quit [Remote host closed the connection]
<gchristensen>
Mic92: my interest in this PR is waning :/
rauno has joined #nixos
kp__ has joined #nixos
samrose has joined #nixos
estrom has joined #nixos
rauno has quit [Ping timeout: 268 seconds]
<estrom>
etu: how do I override the teensyarduino package, so that I can try out the arch-way of building it?
fuzzy-id has joined #nixos
sphalerite has quit [Ping timeout: 252 seconds]
<Mic92>
gchristensen: isn't it almost done?
<Mic92>
I mean except documentaiton
<{^_^}>
[nixpkgs] @buffet opened pull request #54498 โ grim: init at 1.0 โ https://git.io/fhaNi
<gchristensen>
mmm I guess probably
<gchristensen>
the code in there is so ugly :|
<gchristensen>
hard to muddle through
<samrose>
if you are using a kernel other than config.boot.kernelPackages.kernel.dev how do you also account for config.boot.kernelPackages.kernel.modDirVersion; ?
iyzsong has quit [Read error: Connection reset by peer]
<tokudan[m]>
what's the name of the script in /nix/var/nix/profiles/system-433-link that I need to run to set a specific generation as the current one in the boot loader?
npmccallum has joined #nixos
<tokudan[m]>
is that just the activate? from reading it seems to do a lot of things that are pretty unclear
<symphorien>
bin/switch-to-configuration boot
<symphorien>
it also calls activate but activate is not enough
babic has joined #nixos
<tokudan[m]>
symphorien: thanks :)
<tokudan[m]>
let's see if the system comes up again after reboot
<gchristensen>
tokudan[m]: that won't make it the default
<tokudan[m]>
ah :(
<tokudan[m]>
well, the broken configuration is bootable, just misses a lot of services
<tokudan[m]>
so I need to change the grub configuration manually?
<gchristensen>
you can't pick the old version at the bootloader?
init_6 has quit [Ping timeout: 245 seconds]
<etu>
estrom: It's so messy so I don't exactly know where to begin... :(
<tokudan[m]>
i only got ssh to the running system right now :(
eadwu has quit [Quit: WeeChat 2.3]
<tokudan[m]>
on a mobile phone
<etu>
estrom: Maybe I can look at it this weekend or so, but we can write an issue about it
<gchristensen>
ooooof
<symphorien>
you can use grub-reboot to choose the default entry
__monty__ has joined #nixos
hellrazor has joined #nixos
<Church->
Ooooh
<Church->
Got a new app I need to package and upstream today
<Church->
And then we'll have Chromecast streaming via firefox
<Myrl-saki>
tokudan[m]: `nixos-rebuild switch -p ...` should also work.
<tokudan[m]>
Myrl-saki: only seems to work with a local configuration.nix
<tokudan[m]>
Myrl-saki: but as this is nixops, the system cannot rebuild itself ;)
<symphorien>
this all boils down to bin/switch-to-configuration.nix
<symphorien>
-.nix
<Myrl-saki>
tokudan[m]: Right. The code snippet I showed shows that using `--rollback` means that no configuration building is done.
<symphorien>
the caveat gchristensen hinted at is that it will only ensure the generation is available in the boot loader, but not make it the first one
<tokudan[m]>
symphorien: yeah, that's the basic problem I have right now :)
mtesseract has quit [Quit: My MacBook has gone to sleep. ZZZzzzโฆ]
<tokudan[m]>
reboot after grub-reboot is in progress...
<Myrl-saki>
For comparison, this is what `pathToConfig` is set to when you use non-rollback.
<Myrl-saki>
pathToConfig="$(nixBuild '<nixpkgs/nixos>' --no-out-link -A system "${extraBuildFlags[@]}")"
tilpner has quit [Ping timeout: 268 seconds]
tmaekawa has joined #nixos
o1lo01ol1o has quit [Ping timeout: 246 seconds]
xwvvvvwx has quit [Ping timeout: 240 seconds]
<Taneb>
I notice by poking around Hydra's source there's a concept of a failure with output
<gchristensen>
prety sure that was a misfeature, but yeah
_kwstas has quit [Quit: _kwstas]
<Taneb>
I'd like to use it to keep track of stats of builds, but mark them as failures if another thing fails
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
fuwa has quit [Remote host closed the connection]
<samueldr>
tests/jobs/basic.nix has an example (a test) for failing with output I think Taneb
<samueldr>
(in the hydra source repo)
nikola_i has quit [Remote host closed the connection]
<sphalerite>
so my server just disappeared off the face of the inernet just about an hour ago. Resetting it from Hetzner's admin console thing brought it back. Nothing unusual in the journal before its disappearance, but nothing at all after the point of disappearance either. What could this be? My first guess is kernel panic, but any other ideas would be appreciated
<tilpner>
But adding those parameters doesn't help with ext4, and are possibly ignored by zfs
<sphalerite>
hm ok
<tilpner>
Is your server doing anything... important? (Stupid question, I know. They usually do)
<adisbladis>
My nixos hetzner vm: "up 107 days"
<sphalerite>
weechat, a couple of websites, nothing economically critical
<tilpner>
adisbladis: I never had problems with the cloud offering, and this serverboerse server didn't have problems until 2019
<sphalerite>
err actually there's some research stuff that runs on it as well which is quite important to my dad, but not so availability-critical
<sphalerite>
i.e. it's a pain if it's down, but doesn't cause tonnes of damage
<tilpner>
Nevermind then, I was going to ask you to leave it in rescue mode for a weekk
<infinee>
Hi, I booted a nixos usb on this thinkpad x201 but have no idea if I'm using EFI or Grub. I'm at the nixos-generate-config step and not sure how to customize my configuration.nix file with regards to booting
<sphalerite>
infinee: nixos-generate-config shoudl automatically detect whether you're on EFI or BIOS boot
<sphalerite>
infinee: and enable GRUB for BIOS boot or systemd-boot for EFI by default, but you can use GRUB on EFI too
<infinee>
sphalerite, ok then it must be BIOS because I don't have a loader.systemd-boot entry
<sphalerite>
infinee: if you don't know you need one or the other, just go with what it autogenerates :)
<tilpner>
sphalerite: You might as well start extended smart checks, but don't expect that to help
tilpner has quit [Read error: Connection reset by peer]
eadwu has quit [Quit: WeeChat 2.3]
xwvvvvwx has joined #nixos
tilpner_ has joined #nixos
<tokudan[m]>
symphorien: no matter which entry i select with grub-reboot, the server always comes up with the same /run/booted-system target. no idea what's going on there, I'll have to figure that out when I got a decent keyboard. thanks for that command though, i didn't know about it
tilpner_ is now known as tilpner
eadwu has joined #nixos
<tilpner>
sphalerite: (Disconnect, I hope you didn't say anything)
<sphalerite>
tilpner: nope :) also we have logs ;)
<tilpner>
sphalerite: Part of the reason for the zfs->ext4 switch is, that ext4 triggers this behaviour more frequently, so I can try if different IO schedulers can avoid this, without waiting 4 days each time
<sphalerite>
tilpner: ext4 on a zvol? :p
<tilpner>
That's not going to help
<tilpner>
sphalerite: What channels is your server on? Did you recently switch/mix them?
<sphalerite>
tilpner: 18.09, some user software from unstable
<tilpner>
Interesting, mine was on unstable entirely, for the per-interface firewall module changes
<tilpner>
The deployment that started this, upgraded Linux 4.14.88 -> 4.19.12
<tilpner>
(But it still happens on 4.20.3 (building 4.20.4 now), the 5.0.0-rc* break switch-to-configuration)
<gchristensen>
anyone know what this message means? warning: data remaining[225792 vs 242346]: gaps between PE/COFF sections? in the context of this PR ^
endformationage has joined #nixos
Dedalo has joined #nixos
<bryan1_>
grahamc: Do you have any additional suggestions for #2643; will be around all day to fixup anything you want.
<{^_^}>
nix#2643 (by buecking, 1 day ago, open): install: Check for a valid umask before running multi-user installer.
<gchristensen>
oh
<bryan1_>
this issue wasted 3hrs of my life sadly.. would hate for anyone to go through what I did...
<gchristensen>
it is on my to-do list of running in my test matrix (http://gsc.io/report-single-user-default.html) but it is slightly low on the list due to some work and family things
xok has joined #nixos
<xok>
hello all
<bryan1_>
I can write a test, does your CI cover all the oses?
<bryan1_>
gchristensen: understood..
<gchristensen>
it may be tough to get going, but if you want a project :)
<bryan1_>
gchristensen: How is that gsc.io matrix generated?
<tilpner>
> lib.getVersion perl # or... you know, the simple thing
<{^_^}>
"5.28.1"
<gchristensen>
xok: do you want the perl version number, or are you looking for the perl executable?
<xok>
gchristensen: I want to get the correct directory for modules...
<asymmetric>
is there a shortcut for "${pkgs.foo}/bin/foo"?
mizu_no_oto has joined #nixos
<tilpner>
asymmetric: Not really. If you do that a lot in one file, you can let inherit (pkgs) foo; in ...
<sphalerite>
asymmetric: not in nixpkgs afaik
<tilpner>
Then you'll only have to do "${foo}/bin/foo", which is slightly better if foo is a long name
<sphalerite>
asymmetric: but you can do let fooBin = name: "${pkgs.${name}}/bin/${name}"; in โฆ
<xok>
gchristensen: this is how I run the script right now: PERL5LIB=/run/current-system/sw/lib/perl5/site_perl/5.24.3 perl rss.pl
nikola_i has quit [Remote host closed the connection]
<sphalerite>
of course that only works for packages with the same attribute and binary name :)
<xok>
how do I dynamically get that PERL5LIB=/run/current-system/sw/lib/perl5/site_perl/5.24.3 perl rss.pl
nikola_i has joined #nixos
<asymmetric>
sphalerite: right. seems like it could be a nice addition to the stdlib
<tilpner>
sphalerite: If your server does funny things again, or if it doesn't, I'd appreciate any opinions and observations you might have
<symphorien>
xok: you should probably "package it properly" as a derivation
<sphalerite>
asymmetric: not really, because it depends on pkgs, which isn't allowed in lib, and because it's not suitable for stuff that doesn't have that property
<symphorien>
it will likely be a better idea than depending on /run/current-system
<asymmetric>
is anyone else having trouble with cachix? pushes are failing on my travis tests
<gchristensen>
cc domenkozar ^
hellrazor has joined #nixos
<gchristensen>
bryan1_: thank you for being interested in running those tests :)
<bryan1_>
gchristensen: I'm very new to nixos and the various installation methods. Should I use a specific version of nix-build?
<gchristensen>
shouldn't matter
<bryan1_>
gchristensen: no problem.. it's time to learn
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
<gchristensen>
bryan1_: what kind of system do you have to run the tests?
<bryan1_>
gchristensen: I have a VM sitting on 64 processors
<bryan1_>
:)
<gchristensen>
oh cool
<gchristensen>
you don't need my hw then :P
<bryan1_>
it's day time so server may be under some load.. should be no problem.. i'll scream otherwise..
xwvvvvwx has quit [Ping timeout: 250 seconds]
<ottidmes>
is there an easier way to get a Nix expression at some position in a Nix file in its unevaluated form than parsing the file with hnix and going through the expression tree to figure out what the expression is and only print that? no builtin that says, print the Nix code at this point rather than the evaluate it?
<gchristensen>
ottidmes: ...whatchyadoin?
<xok>
symphorien: thanks, but the script itself needs to be in a writeable directory because it alters some data in a current directory...
<xok>
symphorien: how do I get just the part which would look something like this? /run/current-system/sw/lib/perl5/site_perl/5.24.3
<symphorien>
does the script modify itself ?
<infinee>
sigh. take 2. first install attempt resulted in flashing cursor on reboot
<xok>
symphorien: no...
<symphorien>
then it can be read only
<ottidmes>
gchristensen: thinking of a way to make the ultimate updater, I already have everthing in place to get the fetcher arguments and determine the hash automatically, but how to replace it for the new values, that is still the question
<xok>
symphorien: yes, you are right, but I am not an author of the script and it would be pain to start re-writing it...
<gchristensen>
ottidmes: ah
<xok>
I am just trying to move the whole project in a standard DigitalOcean droplet with NixOps...
<gchristensen>
ottidmes: fwiw, rnix's implementation is whitespace and comment preserving, ie: nix in -> rnix -> nix out is bit-perfect
<ottidmes>
gchristensen: so now I can say nix-prefetch openraPackages.engines.bleed --rev master --output nix, and I would get the updated fetcher arguments with the rev replaced with master and a corresponding sha256
<symphorien>
then package it properly, and copy it before using it to the directory you want
<symphorien>
this way it will be in the right directory AND you benefit of the magic of stdenv
<ottidmes>
gchristensen: so the GET part I have figured out, but the SET part needs some thought, I will checkout rnix, thanks!
<gchristensen>
yeah, I'd recommend manipulating the AST and just writing the file back out
<gchristensen>
,jdwhat
<{^_^}>
"Did you mean jDwhat?"
<gchristensen>
,jDwhat
<{^_^}>
jD91mZM2
worldofpeace has joined #nixos
<gchristensen>
,jdwhat = jD91mZM2
<{^_^}>
jdwhat redefined, was defined as "Did you mean jDwhat?"
<xok>
how do I list methods and commands in nixops (or nixos)?...
<nefix>
Hey there. I'm trying to follow this guide: https://nixos.wiki/wiki/Vim, but I can't add a custom Vim plugin. I'm stuck at the part I'm supposed to run `nix-shell -p vimPlugins.pluginnames2nix --command "vim-plugin-names-to-nix"`, and returns the following: `error: attribute 'pluginnames2nix' missing, at (string):1:94`
orivej has quit [Ping timeout: 268 seconds]
<nefix>
Thanks in advance!
<xok>
for example ${lib.getVersion perl} for example?..
<xok>
how do I check what other methods does ${lib} support?..
<symphorien>
for the content of lib: nix repl "<nixpkgs>"
erasmas has joined #nixos
<symphorien>
type lib. then tab
mtesseract has quit [Quit: My MacBook has gone to sleep. ZZZzzzโฆ]
<tilpner>
Though I run Riot in a chromium --app instance, because the above got annoying
<nefix>
symphorien: so I added the plugin I'm trying to add to the vim names and run update.py, what I'm supposed to do next? (The nixpkgs repository is just clonned, no idea how am I supposed to "import" it to my system
<tilpner>
nefix: I had to keep updating the pinned source, and it broke. Riot can't function without a browser or internet anyway, so might as well use chromium
<nefix>
where do you all store your repository? It feels weird that the whole system is going to use my user path for getting packages
<tilpner>
/cfg
<symphorien>
nefix: well the gist is instead of using pkgs.vimPlugins.foo use (import /path/to/clone {}).vimPlugins.foo
<lassulus>
if I run `systemd-run --pty --property=DynamicUser=yes curl example.com` I get `curl: (27) Out of memory` without DynamicUser it works, any idea how to fix this? it seems to be nixos specific and works on archlinux
<nefix>
Hmmm
<nefix>
symphorien: I like your approach
lawlesseel has quit [Quit: Leaving]
<tilpner>
lassulus: Works here
<lassulus>
huh
lawlesseel has joined #nixos
<lassulus>
stabe or unstable?
<tilpner>
unstable
<nefix>
As for the Matrix client, I like how Riot looks. Could you add a .desktop entry for the chromium thing?
<tilpner>
nefix: You may want to also pass --user-data-dir, I've been meaning to do that
<tilpner>
infinisil: What's your usecase?
<lucus16>
I can't tell what file it's reading, though I'm guessing it might be the socket with the nix-daemon
<tilpner>
lucus16: strace is the tool you need to answer "what file is it reading"
<nefix>
So where am I supposed to add it? I tried to add the declaration in "let ...... in" but it's complaining about makeDesktopItem not being found and inside the array it's not working neither
<nefix>
tilpner: ^
<tilpner>
strace -vfefile nix-shell ...
<infinisil>
tilpner: Well I'm using rofi to start executables, having a million binaries on the path gets me a lot of search results when typing
<lucus16>
tilpner: Indeed, but strace does not work on macos and its macos equivalent is somehow disabled as well
<tilpner>
lucus16: Right, macOS, sorry
<tilpner>
nefix: Either change that to be pkgs.makeDesktopItem and pkgs.chromium, or do with pgks; in front of it
<lucus16>
It doesn't seem to be an issue when I run nix-shell as root
<nefix>
error: The option value `home.packages.[definition 9-entry 7]' in `/home/nefix/.config/nixpkgs/home.nix' is not of type `package'.
<nefix>
I hope there's noone named error
<lucus16>
I noticed the directory .nix-profile points to doesn't exist, but I'm not sure if that is cause or result
<tilpner>
infinisil: You could launch rofi with PATH=${makeBinPath thingsYouCareAbout}, and hope rofi doesn't need to call anything
<infinisil>
tilpner: That will still include all binaries from those packages
<infinisil>
Lots of packages have a couple binaries out of which you really only use one
<tilpner>
So you want to specify somewhere which binaries you care about? That sounds quite tedious
<tilpner>
You could of course build a directory of symlinks, put that into an empty PATH, and hope for the best
<tilpner>
But after all that effort, you probably won nothing over makeDesktopItems
<tilpner>
nefix: You'll have to paste whatever you tried, I'm not going to guess what you typed
<infinisil>
Yeah, it would be possible but tedious
<tilpner>
I don't see a way around having to specify which binaries are important and which aren't
<infinisil>
Maybe in the future all packages could declare their "main" binaries, and you could build a PATH from that
<nefix>
home.packages = with pkgs; [ makeDesktopItem {
<nefix>
great
<nefix>
home.packages = with pkgs; [ makeDesktopItem { name = "Riot"; exec = "${pkgs.chromium}/bin/chromium --app=https://riot.im/app"; }
shibboleth has quit [Quit: shibboleth]
alex``` has joined #nixos
<nefix>
tilpner: ^
<tilpner>
with pkgs; [ ( ... ) ];
<nefix>
Oh
<tilpner>
makeDesktopItem is a function, but right now it's putting that function into a list instead of applying it
<tilpner>
The function and its arguments aren't packages, thus the error message
<nefix>
tilpner: thanks :D
fusion809 has quit [Remote host closed the connection]
<nefix>
tilpner: > You may want to also pass --user-data-dir, I've been meaning to do that < what did you mean?
lunik1 has quit [Quit: WeeChat 2.3]
<tilpner>
Right now, your wrapper shares state with all other chromium instances
<tilpner>
Which might not be what you want
<nefix>
I see
knupfer has quit [Ping timeout: 264 seconds]
fusion809 has joined #nixos
<tilpner>
E.g. you'll be logged in on any other chromium instance you start, if you logged into Riot on this --app instance
mekeor has quit [Ping timeout: 245 seconds]
<tilpner>
But if you pass --user-data-dir $HOME/.local/web-wrappers/riot, that won't happen
<nefix>
like running chromium in a separated container?
<tilpner>
No, it's just telling chromium where to find its session data
<nefix>
I see
<nefix>
Thanks
ubert has quit [Quit: Leaving]
nschoe has quit [Quit: Program. Terminated.]
ddellacosta has joined #nixos
<{^_^}>
[nixpkgs] @flokli pushed commit from @memberbetty to release-18.09 ยซ aws-google-auth: use python3 (#52445) ยป: https://git.io/fhVER
Tucky has quit [Quit: WeeChat 2.2]
rauno has joined #nixos
<bryan1_>
gchristensen: Is there a place to add assertions? I've added an image and just wondering if I should be greping for some expected output somewhere
<ottidmes>
gchristensen: I verified that I got all I need to make an automatic nix-update-fetch (i.e. update a call make to a fetcher) work, all I need to figure out is to make rnix work, I got the position of the attribute name in a file, now I just need rnix to replace its corresponding value, seems easy enough considering the span info is available, its just I never really used Rust, do you have per chance an example
<ottidmes>
of a simple Nix package that uses rnix, or would rustPlatform.buildRustPackage with a src of ./. just work to test this?
<gchristensen>
bryan1_: what do you want to assert?
nschoe has joined #nixos
erictapen has joined #nixos
<bryan1_>
gchristensen: I want to assert that the multi-user installer fails
<gchristensen>
oh, you can't really assert that
<nefix>
So, going back to adding my custom vim plugin, how can I run automatically the hook? (Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }})
<bryan1_>
gchristensen: so here's the thing. I want to make sure that the PR i've created doesn't break anything.. So 1. should I make a release and update the matrix script to install from it? Or should I tweak the preinstall on the image to pull from my branch?
worldofpeace has quit [Remote host closed the connection]
<bryan1_>
I know that setting umask to 027 (for example) will cause the multi-user installer to fail..
mekeor has joined #nixos
<bryan1_>
but I don't knwo if the sed command is universal on all flavours of nix/bsd
<gchristensen>
Ankhers: I do want to move ahead with it, preferrably in C++ inside of Nix or inside of Hydra
<Ankhers>
gchristensen: Straight C++? No more Erlang?
<gchristensen>
Ankhers: yeah -- it'd be much better to implement it directly in Nix, otherwise a lot of weirdness has to be implemented (like pretending a build is still going while it is actually restarted)
squidpickles has quit [Quit: squidpickles]
<gchristensen>
Ankhers: but, it doesn't have to be :)
<symphorien>
nefix: the lazy solution is that it is idempotent so run this function all the time in your vimrc
nschoe has quit [Ping timeout: 250 seconds]
<nefix>
I can't, since it tries to modify the store
<nefix>
symphorien: ^
<symphorien>
then you must make a derivation for their binary thing (or even compile it from source) and then patch all usage of their bundle in the plugin
<symphorien>
to replace the path by the store path of the bundle
<Ankhers>
gchristensen: Gotcha. Well, I haven't written C++ in a few years. But let me know if you want help. I'll try and do what I can.
<{^_^}>
[nixpkgs] @andir pushed 54 commits to staging-18.09: https://git.io/fhV2t
<leotaku>
does anyone here know how to have a systemd timer run at two specific clocktimes in a NixOS configuration? The normal way to do this seems to be multiple OnCalendar entries, but I'm afraid NixOS does not support that.
sanscoeu_ has joined #nixos
Judson has joined #nixos
Judson is now known as Guest48960
<{^_^}>
[nixpkgs] @danbst merged pull request #53501 โ doc: don't overwrite makeFlagsArray in the example โ https://git.io/fhsnb
johnw has quit [Remote host closed the connection]
dmc has joined #nixos
<leotaku>
infinisil: yes
sigmundv_ has quit [Ping timeout: 272 seconds]
pareidolia has quit [Client Quit]
<infinisil>
Can you gist the relevant nix file(s)?
<infinisil>
I'll try it out myself actually
ixxie has quit [Ping timeout: 245 seconds]
squidpickles has joined #nixos
<leotaku>
infinisil: Oh I think I have found the problem: I am not using the "systemd.timers" configuration but the restic backup service, which claims to pass the timers to "systemd.timers" but sets the type to "attrsOf str".
<infinisil>
Yeah the list thing I said works
<infinisil>
for systemd timers
nikola_ has joined #nixos
nikola_i has quit [Ping timeout: 240 seconds]
squidpickles_ has joined #nixos
<leotaku>
infinisil: So what do? Should I create an issue pull request for this problem?
squidpickles has quit [Ping timeout: 244 seconds]
squidpickles_ is now known as squidpickles
<leotaku>
Because this seems to be unwanted behavior.
<rycee>
ivegotasthma: No, Home Manager cannot do copies of directories or files through the `home.file` option. You can use `home.activation` to insert a script that will do it for you, though.
<{^_^}>
[nixpkgs] @danbst pushed commit from @samueldr to master ยซ nix-universal-prefetch: init at 0.2.0 (#53436) ยป: https://git.io/fhVwP
<infinisil>
leotaku: That can be the option of timerConfig for restic, I think
ixxie has joined #nixos
nefix has quit [Ping timeout: 256 seconds]
<rycee>
ivegotasthma: Something like https://is.gd/Bttv2F but with the copy command you want to run.
fuzzy-id has quit [Ping timeout: 250 seconds]
<leotaku>
infinisil: Im in the process of trying it.
asymmetric has quit [Ping timeout: 240 seconds]
ixxie has quit [Client Quit]
<ivegotasthma>
rycee: thanks!
freeman42x has joined #nixos
<ivegotasthma>
In nixos, is it possible to rename a user defined in my configuration.nix? https://dpaste.de/dFxO/raw I want to rename "asthma" to something else.
<rycee>
ivegotasthma: Instead of `dag.entryAfter` you may have to use `config.lib.dag.entryAfter`.
dmc has quit [Ping timeout: 240 seconds]
nikola_ has quit [Quit: Leaving]
<bryan1_>
gchristensen: when I built a release from my PR, I replaced the `pre = ` line in `matrix.nix` w/the path of the release, added a new image w/umask 027 then ran `/bin/bash tests.sh`. I know I skipped some steps here but I do have a `nix-test-matrix-log(.tar)`. So now what do I do?
<fresheyeball>
I am having a deployment fail because logrotate is looking for a file that is not yet created
<fresheyeball>
can I make it wait?
<bryan1_>
the age old question
<infinisil>
fresheyeball: You could use systemd tmpfiles to make sure it exists
<mdash>
ivegotasthma: if the uid stays the same yes
<fresheyeball>
infinisil: I don't know this?!
<ivegotasthma>
mdash: thanks
<symphorien>
fresheyeball: logrotate certainly has an option to ignore missing filea
<infinisil>
fresheyeball: I mean, I don't know much about logrotate, but if all you need is an empty file, systemd.tmpfiles is a good way to make sure it exists. Search through nixpkgs to find examples of how to use it
<symphorien>
*files
<leotaku>
infinisil: I have confirmed that your suggestion actually works.
dmc has joined #nixos
<leotaku>
Are there any special shenanigans one has to go through in order to submit a nixpkgs pull request.
<samueldr>
leotaku: having a github account, maybe some reading
<samueldr>
and even then, contributions can be made without a github account :)
<samueldr>
adding a test isn't required, but sure is a good addition
<infinisil>
fresheyeball: Should work yeah, systemd.services.logrotate.after = ...
jonreeve has joined #nixos
<jonreeve>
Is anyone else unable to update for the past few days? Here are the errors I've been getting. Not sure really what package is failing, or how to solve this. ttps://hastebin.com/obociwamiv.coffeescript
<sphalerite>
nikola_i: how is it not working? Just no change at all?
Guanin has quit [Ping timeout: 240 seconds]
<nikola_i>
no listing of modified keyboard in KDE's Keyboard Hardware and Layout settings
nefix_ has quit [Quit: Page closed]
<sphalerite>
nikola_i: you'd probably need to put it in the xkb dir for kde to detect it
<nikola_i>
i cannot put it is /etc/X11/xkb/symbols as it is RO directory. so i added a variable in configuration.nix and placed the keymap in .config/xkb/
<sphalerite>
nikola_i: yeah you'd put it in the xkb dir using services.xserver.xkbDir
<sphalerite>
although you'll want to be careful, Ithink you might deactivate all the standard keyboard layouts with that
<nikola_i>
sphalerite: yea changing the xkb dir looks non trivial process to me. is there any other way to include just the new keymap to the existing xkb directory
<nikola_i>
or somehow use it from a different directory
<jonreeve>
spalerite: I don't *think* so. Is there a way to check?
<clever>
Dedalo: add just that file to your imports list
<jonreeve>
sphalerite: Sorry, spelling your username wrong above, might not have notified you
<Guest78>
question on fetchgit...i'm getting permission denied on a fetch from a private bitbucket repo. I can see that it's reading my ~/.ssh/config file because it throws a "gssapiauthentication unknown" error, but it doesn't seem to respect the IdentityFile i've configured
<Guest78>
is there something that nix-build is doing to prevent it from using the IdentityFile I've configured in that file?
<rain1>
How do I get Data.Vector for ghc? I tried nix-env -f "<nixpkgs>" -iA haskellPackages.vector but it didn't do it
<nikola_i>
jasongrossman: if enable services.xserver.exportConfiguration do i need to run nixos-rebuild for it to take effect?
<jasongrossman>
nixos-rebuild switch, or something similar, yes.
<jasongrossman>
I mean sudo nixos-rebuild switch.
erictapen has quit [Ping timeout: 240 seconds]
<tilpner>
,library rain1
<{^_^}>
rain1: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
dermetfan has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixpkgs] @bachp opened pull request #54508 โ WIP: Overlayfs test โ https://git.io/fhViu
<nikola_i>
jasongrossman: i have that option enabled already. if i run nixos-rebuild a whole lot of new packages will start getting downloaded. i haven't updated my system for a while. is there a way to load and test the new keymap manually? i tried `xkbcomp filename $DISPLAY`
<jasongrossman>
nikola_i: You know that upgrades won't be downloaded unless you specify --upgrade, right? So I'm not sure that you will be downloading much, unless you've added new packages to your configuration. Anyway, if you can't rebuild frequently then you're not going to enjoy using NixOS, I'm afraid, because that's how you reconfigure things.
<tilpner>
You can query without rebuilding everything
<tilpner>
But it won't be in /etc
oskar has joined #nixos
nikola_i has quit [Remote host closed the connection]
<Dedalo>
clever: how can I do that? Right now I'm using `<nixos-hardware/lenovo/thinkpad/x1/6th-gen>`. Do I need to download the file locally, using a relative path, or I can use the file url? Which is the right syntax?
Guest78 has quit [Remote host closed the connection]
<tilpner>
oskar: I don't see it either. Usually there are tricks, but someone carefully guarded this function against all overrides :/
<clever>
Dedalo: if you have a channel called nixos-hardware, then you can use <nixos-hardware/common/pc/laptop/cpu-throttling-bug.nix>
<{^_^}>
[nixops] @AmineChikhaoui pushed 2 commits to master: https://git.io/fhVPM
<oskar>
what are my options? is that file on my computer somewhere so I can edit it?
<tilpner>
oskar: Best option I can give you is inherit (callPackage (path + /pkgs/applications/virtualization/docker) {}) dockerGen; and then call it yourself as planned
<tilpner>
(with pkgs;)
<{^_^}>
[nixops] @AmineChikhaoui pushed to master ยซ minor style fixes ยป: https://git.io/fhVXt
<Dedalo>
clever: thanks
<oskar>
ok, will see if I can figure that out. thanks tilpner
oskar has quit [Quit: Page closed]
yayforj has joined #nixos
<tilpner>
> > let inherit (pkgs.callPackage (pkgs.path + /pkgs/applications/virtualization/docker) {}) dockerGen; in dockerGen # oskar
<{^_^}>
error: syntax error, unexpected '>', at (string):215:1
<tilpner>
> let inherit (pkgs.callPackage (pkgs.path + /pkgs/applications/virtualization/docker) {}) dockerGen; in dockerGen # oskar
<{^_^}>
<LAMBDA>
<clever>
tilpner: /pkgs/applications is an abolute path, starting at /, the root dir
<clever>
tilpner: you want to quote that part of the path
<{^_^}>
[nixpkgs] @primeos pushed to master ยซ scons.src: Update the hash (tarball was modified) ยป: https://git.io/fhVDB
<samrose>
I have a rather simple nix expression test I am running. How can I specify not to also evaluate the 'jdk' package in this nix expression test I am running in hydra?
<sphalerite>
primeos: that seems odd, did you check what's changed in the scons tarball?
jomik has quit [Quit: WeeChat 2.2]
<bryan1_>
gchristensen: Does this look correct ` pre = "/nix/store/5q66f5vcd990ac9948ml027nn4k847vd-nix-2.3pre6621_92d08c0";` This is the path returned after running `$ nix-build release.nix -A build.x86_64-linux
<bryan1_>
also, do you want me to send you the matrix.tar ?
<gchristensen>
sure!
<gchristensen>
bryan1_: I forget how exactly to do it :/ it is a bit tough because the system builds in a VM and won't have access to the tarball
<bryan1_>
gchristensen: yes, it's not obvious.. i've been thinking how to improve the test script to assist w/this
eadwu has quit [Read error: Connection reset by peer]
<gchristensen>
there is a directory in that project with a rust program. it'll take the output from the builds and create a report.html like I linked before
eadwu has joined #nixos
<bryan1_>
gchristensen: if you have any ideas how to confirm that i'm *really* testing my changes that would be helpful..
<bryan1_>
Okay.. i clobbered everrything and just restarted another test :(
<bryan1_>
i wasn't sure if I was doing it correctly the first go
znc has joined #nixos
znc is now known as Guest88038
Denommus has quit [Read error: Connection reset by peer]
eadwu has quit [Read error: Connection reset by peer]
nikola_i has quit [Ping timeout: 250 seconds]
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<gchristensen>
samrose: jdk being unfree in hydra shouldn't cause your problems: hydra skips things which don't evaluate porperly
<samrose>
gchristensen: yes indeed :) so it is skipping this test :-D
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<leotaku>
In the nixpkgs pull request template, what does "Tested using sandboxing" mean? Does it mean that I have tried building/enabling the pkg/service with sandboxing, or that I have run some actual "tests" with sandboxing.
<gchristensen>
samrose: look in the evaluation log and figure out why?
<samrose>
gchristensen: ok, thanks for that suggestion
<{^_^}>
nix#2643 (by buecking, 1 day ago, open): install: Check for a valid umask before running multi-user installer.
<gchristensen>
samrose: presumably it'll say "failed to evaluate X because <<jdk>> is unfree"
<gchristensen>
LnL: bryan1_ is trying to run my nix install matrix since I can't do it right now :|
<samrose>
gchristensen: yes actually I was just going to write that
<LnL>
ah that
<samrose>
gchristensen: it is indeed stating "Package โoraclejdk-8u191โ has an unfree license (โunfreeโ), refusing to evaluate.'
fendor has quit [Ping timeout: 272 seconds]
nikola_i has joined #nixos
<samrose>
gchristensen: so I am trying to think of either how to not care as you say (like in my expression I can tell it allow unfree which is fine I suppose) or to tell hydra in my expression not to evaluate this package
<bryan1_>
gchristensen: which script do I run to build a tarball?:
averell has quit [Quit: .]
<clever>
leotaku: as a random example, net-snmp will check for the existance of files in /etc/ to during ./configure, and bake the answer into the source
<bryan1_>
ahh
<clever>
leotaku: due to the nix sandbox, it tries to open "unknown" rather then "/etc/mtab"
<clever>
and then all disk based operations fail
<LnL>
bryan1_: I think you want binaryTarball.x86_64-linux (and friends)
<bryan1_>
It looks like release should have built them..
<gchristensen>
-A binaryTarball.x86_64-linux
averell has joined #nixos
<bryan1_>
oh
<LnL>
the release contains a bunch of builds, tarball (source), build (binaries), binaryTarball (tarball with installer?)
<leotaku>
clever: That I already knew. But does "tested using sandboxing" simply mean that the pkg builds? What does "tested" mean in this context?
sanscoeu_ has joined #nixos
chessai has joined #nixos
<clever>
leotaku: mostly that it builds in the sandbox and still works when ran
<leotaku>
clever: ok, thanks
<clever>
leotaku: some people file PR's that do network during the build
<leotaku>
clever: Because they do not know any better? Or for valid reasons?
<clever>
they just never turned on the sandbox, so they dont even notice the build being naughty
<LnL>
bryan1_: just checked, that's the tarball with the installer scripts, etc.
<bryan1_>
LnL: thanks for checking.. seems to be doing something w/o failure
<ottidmes>
can a Rust package using Nighly be included into Nixpkgs, I mean would a PR for it ever be accepted? are there any pre existing examples of this?
<gchristensen>
ottidmes: nightly isn't really available in nixpkgs
timor has joined #nixos
sanscoeur has quit [Ping timeout: 240 seconds]
<LnL>
bryan1_: unpacking a tarball like that and running nix-2.2prexxx/install is what the installer script on nixos.org will do
<ottidmes>
gchristensen: I was afraid of that, considering the need for the mozilla overlay, I tried to compile rnix, but it uses rowan, which in turn seems to require nightly
<symphorien>
there is an escape hatch: export RUSTC_BOOTSTRAP=1 unlocks nightly power
<symphorien>
unfortunately, stable is forked several months before the release, so you get an outdated and buggy nightly
<symphorien>
so not all packages will accept to compile
<ottidmes>
symphorien: ah, thank you, I knew about that flag actually, but I thought all it did was ignore some warnings, let me try
pepesza has quit [Ping timeout: 240 seconds]
<leotaku>
So I've just created my first nixpkgs pull request. I'm unsure if it fits all of the requirements. Should I simply submit it and fix any potential problems later, or would that be bad form?
doyougnu has quit [Ping timeout: 240 seconds]
<samrose>
gchristensen: I am going to see if there is some place in my hydra build input where I can specify allowUnfree = true
anderslundstedt has quit [Ping timeout: 240 seconds]
<tilpner>
leotaku: Ask questions about things you suspect are wrong, and then just submit it
<clever>
samrose: the point where release.nix somehow imports ../.. i think
pepesza has joined #nixos
random_yanek has quit [Ping timeout: 240 seconds]
<timor>
When I try to rebuild my system config, libreoffice is being recompiled. When I install it via nix-env, it is not recompiled. I suspect that an overlay is responsible for that, and that some overridden dependency causes the rebuild. Is there a way to find out why libreoffice is being compiled?
<ottidmes>
symphorien: it seems to fail on stable, but I guess it is OK, as long as it runs on nixos-unstable, I do not care if it takes for the next stable release to be working, but too never be able to merge it with Nixpkgs would make this project not worthwile, so I am going to check unstable now
<clever>
timor: use nix-diff on the 2 .drv files to see how they differ
anderslundstedt has joined #nixos
<{^_^}>
[nixpkgs] @LeOtaku opened pull request #54514 โ nixos/restic: change type of timerConfig option โ https://git.io/fhV9V
<clever>
timor: also, libreoffice is broken on unstable, there is a chance you have a 2nd channel, and its just grabbing an older (still working) version
<gchristensen>
samrose: you can add an Input to the hydra jobset called nixpkgsArgs, with the type nix expression, with the value { inHydra = true; allowUnfree= true; }
<gchristensen>
samrose: you can add an Input to the hydra jobset called nixpkgsArgs, with the type nix expression, with the value { config = { inHydra = true; allowUnfree= true; }; }
<timor>
clever: regarding your second answer, do you mean that that nix-env is grabbing the older (still working) version?
<clever>
timor: yeah
<timor>
clever: thanks
<clever>
timor: you can see if it is, by comparing the versions they are claiming to install, but thats not 100%
<bryan1_>
what's `pre` called here `installUrls.pre` a record of installUrl?
<gchristensen>
bryan1_: probably a mistake having committed it
<bryan1_>
gchristensen: Sorry, I think pre means prelrease.. build I'm wondering what the nix names are for these branches of configs.. is nix a language or a config format?
<gchristensen>
nix is a language
<bryan1_>
s/build/but
<bryan1_>
so installUrl.pre is a method on installUrl?
<gchristensen>
ah
<ottidmes>
symphorien++ I got it failing correctly on unstable, i.e. the errors I get now are due to the project being wrong, not the Rust compiler :)
<gchristensen>
bryan1_: ^ it is getting the value from the record by that name
<samrose>
gchristensen: cool thanks I will try it
<bryan1_>
ty
winem_ has joined #nixos
random_yanek has joined #nixos
<ottidmes>
gchristensen: I experimented a bit wit the examples of rnix and the dependencies, but it just seems to fail for me when using rnix 0.5.0, because rnix itself has some incompatibilities with the version of rowan used it seems
<ottidmes>
even tried using the master branch directly, since I copied the examples from master, but that too failed with the same 4 errors
<rain1>
How do I list the files in a package?
<averell>
anyone seeing wonky output from "uptime"?
hamishmack has joined #nixos
<Synthetica>
rain1: just ls the folder in /nix/store
<gchristensen>
averell: lgtm: 16:20:04 up 5 days 5:57, 1 user, load average: 0.35, 0.49, 0.47
<rain1>
the problem with ls /nix/store/*-ocaml-*/ is that i get multiple results, is there a way with the nix command line tools to list just for one package
<averell>
hm. it tells me up 410 days, with a 4.19.17 kernel, and it's not the only box. weird.
<ottidmes>
jD91mZM2: are you around? for rnix 0.5.0 I am getting error[E0599]: no method named `with_children` found for type `&rowan::SyntaxNode<parser::Types, R>` in the current scope in git/checkouts/rnix/src/types.rs:583:29
<tdeo>
rain1: find "$(nix-build -A ocaml '<nixpkgs>')" works for me
<tilpner>
averell: I don't know how uptime is tracked. If it's a counter, this shouldn't happen, but if it just saves a timestamp, broken system time might do it. Do you use ntp? Did you alter your time manually at some point?
<primeos>
sphalerite: (It was actually a bit unfortunately as I've already expected that it might change with the official announcement but neither "nix-store -r --check $(nix-instantiate -A scons.src)" nor @GrahamcOfBorg did catch it)
<averell>
hm, could be. it's showing correct time, but maybe someone did something on the host
<tilpner>
averell: Also try sudo hwclock --show
johnw has joined #nixos
<tilpner>
Is asking all people with access an option? c.c
<rain1>
it seems there was only ber_metaocaml ocaml ocaml_3_12_1 ocaml_4_02
<rain1>
thanks
<rain1>
https://bpaste.net/show/7f3b84d53c1f when I tab complete there are lots of new versions of ocaml but it doesn't have 4.07 - am i doing this correctly?
<symphorien>
rain1: ah sorry, not even needed: ocamlPackages_latest.ocaml is 4.07
mtesseract has quit [Quit: My MacBook has gone to sleep. ZZZzzzโฆ]
<simpson>
reilithion: I think that it starts out secure, but then rapidly loses security as various network-facing services are enabled.
<simpson>
You can probably follow the same practices that you've followed on other distros.
<reilithion>
simpson: I've always been behind a NAT before. If I go forward, this'll be the first time I've administered a machine with a public IP. I'll still be behind an organizational firewall, but I'm unwilling to trust that blindly.
knupfer has joined #nixos
<simpson>
reilithion: Well, the NAT probably did nothing for you before, in terms of firewall behaviors or security properties.
<simpson>
So, again, follow whatever practices you've had before.
<simpson>
Or ask your local networking professional.
<adisbladis>
simpson: Well, with firewall enabled you need to open ports explicitly (the notable exception being ssh)
<adisbladis>
simpson: As opposed to most other distros that come with no firewalling enabled (citation needed)
<simpson>
adisbladis: To a degree? Linux ain't Windows and "block the ports" doesn't make sense as blanket advice.
<simpson>
More importantly, there's no way that I know as much about reilithion's deployment as they do.
aramiscd has quit [Ping timeout: 268 seconds]
<timor>
Is anyone here using spacemacs?
<ar1a>
i use doom-emacs :P
<jackdk>
I use GNU emacs :P
<adisbladis>
Aren't most nixos peeps using emacs? :P
<adisbladis>
simpson: My point was mostly that the NixOS default firewall setup is pretty restrictive and you should be pretty well off.
<adisbladis>
reilithion: ^
<ar1a>
adisbladis: we can only hope
<__monty__>
adisbladis: That's what the disciples of the beast *want* you to think.
aramiscd has joined #nixos
kvda has joined #nixos
jasongrossman has joined #nixos
<reilithion>
Hmm. Does the firewall have a way to open ports that a given trusted program listens on?
<ar1a>
is there a way to get the firewall to allow a subnet? i want my LAN to be unrestricted
doyougnu has joined #nixos
<adisbladis>
ar1a: You can always use networking.firewall.extraCommands
<adisbladis>
But no convenient way
jonreeve has quit [Ping timeout: 245 seconds]
<ar1a>
weechat
simukis has quit [Quit: simukis]
alex``` has quit [Read error: Connection reset by peer]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzzโฆ]
alex``` has joined #nixos
knupfer has quit [Remote host closed the connection]
<rnhmjoj>
is there an ada compiler in nixpkgs? gnat seems to have been remove
<Sophos[m]>
TIL of the package which. Something kinda usefull when using a pure nix shell (nix-shell --pure). it was weird not having which. thought i broke something... :/
orivej has joined #nixos
sigmundv_ has joined #nixos
zukaboo has joined #nixos
<ar1a>
Sophos[m]: the program that shows you where stuff is?
<Sophos[m]>
yep
<ar1a>
check out whereis too
<Sophos[m]>
what's the difference from which?
<{^_^}>
[nixpkgs] @Infinisil closed pull request #23590 โ Introduce concept of NixOS support states โ https://git.io/vyRwG
<Sophos[m]>
i have not heard of whereis
<adisbladis>
Sophos[m]: type is a good one too (and a bash builtin)
<makefu>
or `command -v`
<Sophos[m]>
wow, `type -a` that's really neat
<Sophos[m]>
ar1a: what's this `whereis` command? it's not a builtin nor a nixpkg afaict
<ar1a>
Sophos[m]: might be a zsh thing
<ar1a>
it was already installed on my nixos and i never installed it
<clever>
Sophos[m]: there is also which
<clever>
some shells even alias which to something like 'alias | which --some-flag' to get type-like support, but at that point, just use type!
<ar1a>
they just said 10 messages ago they just discovered which
<Sophos[m]>
clever: which needs to be installed in a pure nix-shell environment. Learned that the hard way just now
<Sophos[m]>
however, type is bash builtin and already available
<clever>
Sophos[m]: yeah, i just use type for everything now
justanotheruser has quit [Quit: WeeChat 2.2]
<clever>
Sophos[m]: the problem, is when you tell somebody to "type foo" and the literally type in "foo"
<clever>
Sophos[m]: another fun one, when sharing a screen via 'screen', "can you see this?" -> "yes" -> yyyyyyyyyyyyyyyyyyyyyyyyyyyyy.....
<ar1a>
lmao
<clever>
ar1a: which reminds me, one of the really old "smart" phones before modern ones, there was a root shell on tty1 that got all keyboard input, but the gui was controlling the display, so you never noticed
<clever>
ar1a: until you send `rm -rf /` as a txt, and the phone bricks itself
<ar1a>
wow. before my time :P
justanotheruser has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhVjl
<{^_^}>
[nixpkgs] @devhell opened pull request #54519 โ nixos-generate-config: Include extraGroups "wheel" โ https://git.io/fhVju
kitl_ has joined #nixos
<kitl_>
This question may be very silly, but I've failed at googling my way to an answer: If I build a Haskell binary w/ nix, will I be able to run it on another computer that doesn't have nix?
<ar1a>
yes, the only thing it links to is libc
<ar1a>
iirc
<bgamari>
kitl_, you'll likely want to produce a statically linked binary
<bgamari>
nh2, I was playing around with your dwarf patch and noticed that it's apparently not possible to further override the dwarf package set
<nh2>
kitl_: so if you use what I built there (instructions included), you can build a fully static binary, that doesn't depend on even libc, and it will run on pretty much any Linux
<bgamari>
either that or I have missed something
<bgamari>
e.g. haskell.packages.ghc861.dwarf.override doesn't take an `overrides` argument
eadwu has quit [Quit: WeeChat 2.3]
<{^_^}>
[nixpkgs] @Infinisil merged pull request #54514 โ nixos/restic: change type of timerConfig option โ https://git.io/fhV9V
<kitl_>
bgamari, nh2, ar1a: Thank ye, thank ye! That looks promising, nh2. And I may as well just build something simple and move it between machines to see if it just works.
<nh2>
bgamari: hmm, that doesn't sound good. Should I be using something other than `packages."${name}".override`?