<foldingcookie>
I run a service that compiles software and caches build artifacts
<pxc>
if you expand those examples, you'll see that they use `/var/cache/<something>` for their cache directories, and then you can see how they make sure that directory is present by following the links to the source under the entry 'declared in'
<foldingcookie>
I guess making a subdir in /var/cache is fine, and I should let nix know about it, probably by doing something like those services
<foldingcookie>
and then set up Rust and Haskell toolchains
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ottidmes>
I found a workaround to my problem that fits my needs, I will just dynamically add --option extra-substituters to my nixops/nixos-rebuild to allow "not always on" subsituters
<foldingcookie>
I guess urxvtcd (script that auto-starts urxvtd) isn't packaged for nixOS?
Soni has quit [Quit: Leaving]
<ottidmes>
foldingcookie: This is all I can find: urxvt_autocomplete_all_the_things urxvt_perl urxvt_perls urxvt_tabbedex urxvt_font_size urxvt_theme_switch urxvt_vtwheel
Fare has joined #nixos
<foldingcookie>
yeah, that's what I was seeing
<foldingcookie>
I'm still not to the point of writing my own nix packages yet...
<foldingcookie>
but it's getting close
<pxc>
Nix seduces users into making small contributions that way, hehe
<pxc>
foldingcookie: that NixOS options webpage is a good place to search for services; sometimes package names are not clear. And services in NixOS all use systemd, so the launcher for the urxvt daemon seems unlikely for inclusion in NixOS
<foldingcookie>
pxc: I'm still not sure if I trust systemd user sessions enough to abandon my venerable .xinitrc...
<pxc>
that webpage may not match your version of Nixpkgs/NixOS if you're on unstable or playing with the upcoming 18.03 release. In such cases you can search for the same things with nixui
<foldingcookie>
what's nixui?
<pxc>
foldingcookie: give it a try! NixOS makes it easy to roll back if you don't like it :-P
<pxc>
nixui is a utility for examining available packages and services. it uses whatever Nixpkgs your system is actually using, so it'll always be 'in sync' with your actual system in that sense
<foldingcookie>
cool
<pxc>
it's in Nixpkgs, so you can install it with `nix-env` to give it a try
<pxc>
you can also examine NixOS options with `nixos-option` at the command-line
<foldingcookie>
oh it's a web browser
<foldingcookie>
I'll probably stick with nixos-option
<pxc>
already got enough instances of Google Chrome in your life? ;-)
<foldingcookie>
more than :D
<pxc>
I feel you
<pxc>
FWIW, I use systemd user sessions to launch the Emacs daemon on startup and it has never failed and always launches fast enough that I can't catch it loading when I run `emacsclient`
<pxc>
and I have a big fat Spacemacs setup, so it takes several seconds to launch Emacs, lol
ryanartecona has joined #nixos
ashgillman has quit [Ping timeout: 260 seconds]
xcmw has joined #nixos
dan_b has quit [Ping timeout: 240 seconds]
alhariel has quit [Ping timeout: 264 seconds]
<ottidmes>
checking nixui, did not know it yet, but seems to be old, I mean "nodejs-4.8.7"
<pxc>
yeah, it is old. I think it's a hackathon project which has seen few updates
<iMatejC>
that project is more or less deprecated
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
ashgillman has joined #nixos
<ottidmes>
jep, not worth its 145MB any more, just tried it, hoping it was a local version of /nixos/options.html and packages.html, but its not
maximiliantagher has quit [Ping timeout: 240 seconds]
maximiliantagher has joined #nixos
<pxc>
iMatejC: do you know any suitable alternatives?
maximiliantagher has quit [Remote host closed the connection]
<pxc>
hm, maybe I misremembered some of what it did
maximiliantagher has joined #nixos
<pxc>
or maybe it's just finally broken on Nix 2.0. I'm seeing messages on stderr baout being unable to open the Nix store.
thc202 has quit [Ping timeout: 240 seconds]
kerrhau has joined #nixos
kerrhau has joined #nixos
kerrhau has quit [Changing host]
<pxc>
sorry for unwittingly giving bad advice re: nixui :-(
disasm has quit [Quit: WeeChat 2.0]
maximiliantagher has quit [Ping timeout: 240 seconds]
dan_b has joined #nixos
<Lisanna>
argh, those patches didn't seem to help with the memory usage of build-remote ):
muzzy has joined #nixos
ma27 has quit [Ping timeout: 256 seconds]
ashgillman has quit [Ping timeout: 264 seconds]
aarvar has joined #nixos
<jtojnar>
any idea what is up with QEMU on master?
<jtojnar>
qemu-system-x86_64: -netdev user,id=user.0,,hostfwd=tcp::2222-:22: Parameter 'id' expects an identifier
<jtojnar>
Identifiers consist of letters, digits, '-', '.', '_', starting with a letter.
<Lisanna>
...guess I'm just gonna have to add more memory to my system
<kaychaks>
another attempt at installing `Jupyter`, this time failing coz of this error -
<kaychaks>
```
<kaychaks>
```
<kaychaks>
QtWebEngine will not be built.
<kaychaks>
Using Xcode version , but at least version 7.3 is required to build Qt WebEngine.
<kaychaks>
I've Xcode 9.2
blankhart has joined #nixos
disasm has joined #nixos
loonquawl has quit [Quit: loonquawl]
alhariel has joined #nixos
newhoggy has joined #nixos
<disasm>
and that's the final reboot of my server for hopefully a long, long time (barring any major kernel vulnerabilities).
xcmw has quit [Ping timeout: 246 seconds]
xcmw has joined #nixos
newhoggy has quit [Ping timeout: 264 seconds]
maximiliantagher has joined #nixos
kiliankoe has quit []
pkill9 has quit [Ping timeout: 264 seconds]
maximiliantagher has quit [Ping timeout: 264 seconds]
logzet has quit [Ping timeout: 265 seconds]
logzet has joined #nixos
Ariakenom has quit [Quit: Leaving]
<Lisanna>
anyone have any other suggestions for making build-remote not use so much memory? the recent patches to NixOS/nix master didn't seem to help at all. I looked at the systemd resource management options but there's no way to force something to fallback to swap if it passes its threshold :/
markus1189 has joined #nixos
cx405 has left #nixos ["Konversation terminated!"]
Supersonic has quit [Ping timeout: 248 seconds]
n0qqe has joined #nixos
markus1199 has quit [Ping timeout: 264 seconds]
srdqty has quit [Ping timeout: 260 seconds]
noqqe has quit [Ping timeout: 260 seconds]
n0qqe is now known as noqqe
srdqty has joined #nixos
Supersonic has joined #nixos
alhariel has quit [Quit: Leaving]
kerrhau has quit [Ping timeout: 264 seconds]
alhariel has joined #nixos
ottidmes has quit [Ping timeout: 240 seconds]
ma27 has joined #nixos
logzet has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
<infinisil>
gchristensen: Whoa, this article you apparently commissioned uses Alloy :O
<gchristensen>
Yep!
<infinisil>
Never thought I'd see Alloy outside of my university
<infinisil>
Um, but the last sentence "I didn’t actually try any of these so they might be trivial or impossible. Have fun!"
<infinisil>
What? You wrote a ton of Alloy and didn't even verify it?
maximiliantagher has quit [Ping timeout: 260 seconds]
spietz has quit [Ping timeout: 246 seconds]
<gchristensen>
=)
ryanartecona has quit [Quit: ryanartecona]
newhoggy has joined #nixos
alhariel has quit [Ping timeout: 264 seconds]
alhariel has joined #nixos
newhoggy has quit [Remote host closed the connection]
kreisys has quit [Read error: Connection reset by peer]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
marusich has joined #nixos
lopsided98 has quit [Remote host closed the connection]
newhoggy has joined #nixos
garbas has quit [Ping timeout: 245 seconds]
garbas has joined #nixos
newhoggy has quit [Ping timeout: 256 seconds]
drakonis has joined #nixos
nuncanada has quit [Quit: Leaving]
<coconnor>
what article is this?
ericsagnes has joined #nixos
jimmylu2333 has joined #nixos
jimmylu2333 has quit [Excess Flood]
jimmylu2333 has joined #nixos
jimmylu2333 has left #nixos [#nixos]
null_ has joined #nixos
dnovosel has joined #nixos
MP2E has quit [Remote host closed the connection]
lopsided98 has joined #nixos
newhoggy has joined #nixos
newhoggy has quit [Ping timeout: 264 seconds]
newhoggy has joined #nixos
marusich has quit [Ping timeout: 265 seconds]
Rusty1_ has quit [Quit: Konversation terminated!]
Myrl-saki has joined #nixos
marusich has joined #nixos
newhoggy has quit [Ping timeout: 263 seconds]
schoppenhauer has quit [Ping timeout: 265 seconds]
schoppenhauer has joined #nixos
marusich has quit [Ping timeout: 265 seconds]
marusich has joined #nixos
mkoenig has quit [Ping timeout: 264 seconds]
mkoenig has joined #nixos
dnovosel has quit [Ping timeout: 245 seconds]
newhoggy has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
newhoggy has quit [Ping timeout: 246 seconds]
<Lisanna>
wtf... nix-build is giving me a different hash if I build it from the channel vs. build from a local directory
<Myrl-saki>
clever: Wow. Optimizing dependency trees is really useful.
<Myrl-saki>
clever: Currently, if I change my HTML, I have to rebuild my server, my client, and my client.
<Myrl-saki>
Err, I just said my client twice.
* Myrl-saki
facepalm
s2mitrov has joined #nixos
isHavvy has joined #nixos
srjek has joined #nixos
<s2mitrov>
any rust folks around? i'm trying to get rust setup on nixos, but rustup doesn't really work (nor do I think I want it to? I'm pretty sure it fills the same role as nix, so in theory I shouldn't need it, right?) so I'm not really sure how to install the rust language server for neovim without it as it isn't in nix-env -qa or whatever either.
michas_ has joined #nixos
Havvy has quit [Ping timeout: 260 seconds]
<pxc>
s2mitrov: I'm trying to get started playing with Rust on NixOS atm, too. I'm _just_ getting started though, so idk how I'm going to work yet
Xal has joined #nixos
<Xal>
how can I add a dependency like rake to a gem I'm trying to build with bundix?
<Xal>
right now it tries to build and complains "sh: rake: command not found"
TheAppleMan has quit [Quit: No Ping reply in 120 seconds.]
<s2mitrov>
pxc: yeah, i only spent like half an hour or so searching around but i wasn't able to find too much from rust folks about nix
<s2mitrov>
i found some post directly mentioning rustup+nix but it was in japanese, so not really useful to me as someone who doesn't speak japanese :p
orivej has quit [Ping timeout: 260 seconds]
bsima has quit [Quit: Bye!]
robstr has joined #nixos
<pxc>
s2mitrov: I know one person who has done it and documented it, but he's a YouTuber so it's in a format that's kind of annoying to use as a reference. Right now I got sidetracked because I noticed that my Emacs systemd user service is starting for the SDDM user, which seems like a bug
<s2mitrov>
oh sweet
<s2mitrov>
what's their channel name? or what should i search to find the video?
srjek has quit [Ping timeout: 245 seconds]
davidlt_ has joined #nixos
<pxc>
I should be clear, I'm not sure about LSP specifically
davidlt has quit [Ping timeout: 265 seconds]
<s2mitrov>
that's alright, anything is better than nothing i suppose
<s2mitrov>
could be that i end up figuring out a solution from somthing in their video
vidbina has joined #nixos
<pxc>
I can't find the videos I wanted for some reason (I commented on some at one point, so idk why I can't find them) but here's the GitHub account for it: https://github.com/tsoding
simukis has joined #nixos
<pxc>
the rust projects have `default.nix` files he uses for the development environments
<s2mitrov>
great, i'll check that out, thanks :)
<fearlessKim[m]>
I ran `cabal2nix --no-check .` on https://github.com/rdnetto/powerline-hs, then starts nix-shell, it starts some tests `test suite global-posix-test: fail` (it doens't find /usr/local or $HOME), how can I skip these tests ? The default.nix already has doCheck = false;
Jackneillll has joined #nixos
Jackneilll has quit [Ping timeout: 240 seconds]
<Lisanna>
What other than the nix expression itself can change the store path (hash) of a derivation?
<pxc>
Lisanna: the store paths of all the deps, right? the same expression with different versions of Nixpkgs will get different hashes
<Lisanna>
pxc I consider that to be part of the expression... since the entire expression will include <nixpkgs>, which includes source / build information
<pxc>
ah ok
<Lisanna>
I'm wondering if there's anything else
<sphalerite>
Lisanna: I don't think anything other than the attrset passed to builtins.derivation is considered
alex`` has joined #nixos
<pxc>
how come? I saw your earlier message but wasn't sure of the context. Sounds like you've hit something really weird. Is that right?
<Lisanna>
pxc yeah, a nix-build with apparently the exact same arguments run in my systemd service is giving a different outpath than nix-build run on my regular shell manually
<pxc>
s2mitrov: the Rust Language Server is in the Mozilla Nixpkgs overlay for Rust. Just found it
<Lisanna>
even though I've made sure the NIX_PATH has the same paths for each entry
<pxc>
s2mitrov: see, for example, rustChannels.stable.rls-preview
marusich has quit [Quit: Leaving]
<sphalerite>
Lisanna: well there's a number of impure builtins like builtins.getEnv, builtins.readFile, etc
<Lisanna>
sphalerite I don't use those afaik
<sphalerite>
Lisanna: most of that stuff is restricted to the top level in nixpkgs/pkgs/top-level/impure.nix, maybe you could try building <nixpkgs/pkgs/top-level/default.nix> instead of <nixpkgs> (the latter of which is essentially an alias for <nixpkgs/pkgs/top-level/impure.nix>)
<sphalerite>
you'll need to explicitly pass a localSystem value, like "x86_64-linux"
<Lisanna>
sphalerite okay, I'll add that to my list of things to try next
<Lisanna>
it doesn't happen with all packages, just one of them
<Lisanna>
and it's a custom package
<sphalerite>
it could be something like nixpkgs config or an overlay which isn't included in the systemd service's environment
<sphalerite>
which should be eliminated by using pkgs/top-level/default.nix rather than impure.nix
vidbina has quit [Ping timeout: 260 seconds]
<Lisanna>
okay
<Lisanna>
(I don't *think* it's a nixpkgs config difference, the systemd service is part of a module, and it's getting the same nixpkgs as my regular shell)
<Lisanna>
and I don't change anything that would affect the package anyways
<sphalerite>
you could also use nix-diff to compare the drvs and see what the actaul difference is
<Lisanna>
yeah, was going to try that next
<sphalerite>
any haskell+emacs users who can advise on how to get haskell-mode to compile stuff? Currently trying to use emacs in a cabal2nix-based nix-shell, but it wants to use cabal to build, and cabal isn't included in cabal2nix shell expressions
<sphalerite>
I *think* the appropriate fix would be either to get cabal included in the shell or to get haskell-mode to use runhaskell Setup.hs instead of cabal, but I'm not sure how to do either of those. I'd also quite like to get ghc-mod working
<pxc>
s2mitrov: no, it just creates the symlink in the overlays directory
<pxc>
sorry my previous messages were a little half-baked because I'm watching TV as I type and forgetting drafts of these messages between edits. I'm a mess lol
<Lisanna>
<nixpkgs> in nixos module systemd service is much much newer than <nixpkgs> in my shell
<Lisanna>
wait.. no they're not
<Lisanna>
argh, nvm
<pxc>
s2mitrov: you can also specify overlays for use in NixOS (as opposed to just the Nix tools, as your user/interactively or in nix-shell) https://nixos.org/nixos/options.html#overlays
<sphalerite>
Lisanna: use the nix-diff!
<Lisanna>
sphalerite I don't think I can actually... I haven't been able to reproduce one in the other
<sphalerite>
Lisanna: can't you just use nix-instantiate?
<Lisanna>
OMG OK I just made some progress
<Lisanna>
for some reason the pkgs input into my module did NOT match what <nixpkgs> is set to
<Lisanna>
where on earth does the NixOS imports system get "pkgs" from anyways?
<sphalerite>
something something importing nixpkgs with the args specified by config.nixpkgs
<Lisanna>
:/
<sphalerite>
use nix-diff! I'm sure it'll be enlightening :)
<Lisanna>
how am I supposed to call nix-diff on the pkgs from { config, pkgs, ... }??
<Lisanna>
it's ok though, that was the issue, now I just need ot figure out where pkgs actually comes from, because it's not coming from <nixpkgs>
<Lisanna>
"The first line ({ config, pkgs, ... }:) denotes that this is actually a function that takes at least the two arguments config and pkgs. (These are explained later.)"
<Lisanna>
...how much later though ):
<s2mitrov>
pxc:so it runs and links the overlay into ~
eliaslfox has quit [Read error: Connection reset by peer]
<s2mitrov>
~/.config/nixpkgs/overlays, sorry accidentaly enter :p
<Lisanna>
I think the manual is lying, I do not see any further explanation <_<
<s2mitrov>
the overlay is there, but I can't query `nixos.latest.rustChannels` eg
<s2mitrov>
did a rebuild and rebooted as well to no success, fwiw
<s2mitrov>
though i haven't yet figured out how to add `rust-overlay.nix` to my `configuration.nix`
<s2mitrov>
not sure that would make a difference though considering the nixpkgs-mozilla repo doesn't mention it oranything
hamishmack has quit [Quit: hamishmack]
<pxc>
s2mitrov: what versions of Nix and Nixpkgs/NixOS are you on?
<hyper_ch>
hmmmm, something is blocking nixos-unstable
<pxc>
s2mitrov: there are additional steps for adding it to `configuration.nix`, but they're simple. I have it set up on my system. We can go over it once we get it working with `nix-env` and friends :-)
<s2mitrov>
pxc: nixos-version is 17.09.3129.13dcd022f01b (Hummingbird)
<s2mitrov>
nix-env (Nix) 1.11.16
<sphalerite>
Lisanna: you're supposed to call nix-diff on the drvs that nix-instantiate gives you in the two different environments
<Lisanna>
sphalerite oh
<Lisanna>
okay, I'll remember that for future reference :)
<sphalerite>
so you've solved your issue now?
<pxc>
s2mitrov: I can't test with older Nix on my system anymore, it seems :-(
<s2mitrov>
so what, run `nix-channel --update nixpkgs`?
<sphalerite>
pxc: why not?
<sphalerite>
pxc: nix-shell -p nix1 ?
<s2mitrov>
or do I need to switch to unstable and update nixos itself to a newer version?
<pxc>
but when I try to use `nix1`, installs fail with the message `error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied`
<Lisanna>
sphalerite yeah, I think so
<pxc>
Lisanna: what was it, in the end?
<Lisanna>
pxc pkgs from { config, pkgs, ... } was different from <nixpkgs> for some reason... fixing it by having my custom channel and module specify exactly what version of nixpkgs it uses rather than depending on whatever the user has in their env
orivej has joined #nixos
<s2mitrov>
hmm.. is it normal for `nix-channel --list` to be empty?
<pxc>
so `nix-env -iA nixos.rustChannels.stable.rust` just says there's no such attribute or what?
<s2mitrov>
oh
<s2mitrov>
hmm..
<s2mitrov>
that works but im confused now
<s2mitrov>
why couldn't i query that before?
orivej has quit [Ping timeout: 256 seconds]
<pxc>
were you using `nixpkgs` instead of `nixos` at the beginning before?
<s2mitrov>
i.e `nix-env -qa nixos.rustChannels`
<s2mitrov>
nope
John882 has joined #nixos
<pxc>
take a closer look at that error message!
<pxc>
> ... matches no _derivations_
<pxc>
rustChannels isn't a derivation; it's just an attribute set
<s2mitrov>
ahhh
<s2mitrov>
is there a way to query/see what's inside an attribute set, then?
<pxc>
hmm
<pxc>
actually I'm not sure I'm satisfied with what I just said now that I'm doing some more playing
<Lisanna>
what are all of the possible arguments ot builtins.fetchTarball? It's not documented from what I can see.
<Lisanna>
also... why on earth does it produce a string path instead of a derivation?
<pxc>
s2mitrov: I think `nix-env -qa` only shows you things available as exposed from a specific expression, i.e., things from `pkgs/top-level/default.nix`. If you pass it an appropriate `--file` option it will probably do what you expected
leotaku has joined #nixos
<pxc>
I know certain things (like the contents of most of `haskellPackages`) don't show up in `nix-env -qa`-style searches because there are so many they'd slow things way down
<s2mitrov>
ah
<pxc>
there's probably a better way, but I check for the presence of things packages using tab completion inside `nix repl` (`nix-repl` for Nix 1.x)
<s2mitrov>
so I just tried to install rls-preview, and like you said it's included with rust
<leotaku>
is it possible to define a "service.something" in configuration.nix without enabling it, to then enable it with "systemctl start"?
<pxc>
once the repl starts use `:l <nixpkgs>` and then start typing attribute names (without the channel prefix) and hit tab
<s2mitrov>
how would i find `rls-preview`? ex. `which rustc` works fine but not rls-preview
<s2mitrov>
that sounds pretty good, i'll add nix-repl to my conf
<etu[m]>
Hi, I'm trying out Nixops for the first time today on DigitalOcean. My machines hangs for 90 seconds during boot due to `A start job is running for sys-subsystem-net-devices-enp0s4.device`. If that device doesn't exist, why is it enabled? :)
<pxc>
s2mitrov: the binary is just `rls`
<s2mitrov>
well that would explain it, haha
<pxc>
leotaku: idk about for all services, but at least some have a `.install` option, which is like `.enable` but it just puts the systemd unit somewhere and doesn't enable it, e.g., https://nixos.org/nixos/options.html#services.emacs.install
<leotaku>
pxc: thanks but the service i want doesn't have that
<Lisanna>
nvm... appears to have fixed... itself? 0_o
robstr has quit [Remote host closed the connection]
<Lisanna>
ugh, I hate things that fix themselves
robstr has joined #nixos
Izorkin has joined #nixos
<pxc>
‘‘‘‘fix’’’’ themselves
<pxc>
intermittent problems are definitely awful
<pxc>
s2mitrov: you wanna go over using the overlay in NixOS or would you rather just explore it on your own later?
rogue_koder has quit [Ping timeout: 260 seconds]
<s2mitrov>
i'd definitely appreciate help with it :)
blahdodo has quit [Ping timeout: 264 seconds]
John882 has quit [Ping timeout: 240 seconds]
robstr has quit [Ping timeout: 264 seconds]
<s2mitrov>
the idea is to get comfy with nix/nixos running as a vm, and cram as much as i can into config so that when i think i can switch from windows -> nixos fully i can just have everything working right out of the box more or less
blahdodo has joined #nixos
<pxc>
that's a good plan for a smooth transition
<pxc>
I have found that just jumping in is pretty, uh, motivating, when it comes to NixOS :-D
John882 has joined #nixos
<pxc>
but I live my life as a series of distractions, a few hours here and there
<s2mitrov>
i saw that earlier, but i'm kind of confused with the example
<s2mitrov>
they've essentially embedded the contents of an overlay file directly, right?
<s2mitrov>
is there some way to do it where i still keep `rust-overlay.nix` separate and then just have that be in overlays?
<pxc>
mhm
<pxc>
on my system /etc/nixos is a symlink to ~/.config/nixpkgs. You may not want to go that far; alternatively you can put your Rust overlay in /etc/nixos, and link _that_ into your overlays dir under ~/.config/nixpkgs
<pxc>
then in your nixos configuration, in that option
<pxc>
instead of adding overrides in there manually, you can use `import` statements
magnetophon has joined #nixos
<pxc>
my dotfiles are a mess, so don't look to them for examples generally
<pxc>
that's how you do global shell config, and NixOS will insert your config into the generated /etc/profile files and company
leotaku has quit [Client Quit]
s2mitrov has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
John882 has joined #nixos
ma27 has joined #nixos
John882 has quit [Ping timeout: 264 seconds]
<aminechi1haoui>
Hi everybody, I'm trying to have sandboxed build run perf record on a script/binary, is there a way to get perf running inside a build without dropping sandoxing ?
i-am-the-slime has joined #nixos
<aminechi1haoui>
this seems to be only writable by root inside chroot -> `-rw-r--r-- 1 nobody nogroup 0 Mar 17 09:32 /proc/sys/kernel/perf_event_paranoid`
<Dezgeg>
well, you need to enable that system-wide
John882 has joined #nixos
<aminechi1haoui>
Dezgeg: hm ok so there is no other workaround, btw I wonder why the default is to disable that for unpreviliged users. It makes me feel I'm doing something wrong :D
John882 has quit [Ping timeout: 240 seconds]
<Dezgeg>
I guess some people fear the perf interface is so buggy that it could be exploited
John882 has joined #nixos
coot has joined #nixos
John882 has quit [Ping timeout: 256 seconds]
John882 has joined #nixos
Turion has joined #nixos
John882 has quit [Ping timeout: 260 seconds]
pxc has quit [Ping timeout: 265 seconds]
John882 has joined #nixos
<Turion>
I have this strange error again whenever I "nix-env -iA anything", I get "error: unexpected EOF reading a line"
Ariakenom has joined #nixos
<Turion>
while building path(s) ...user-environment
dan_b has quit [Ping timeout: 240 seconds]
<Turion>
It even persists if I do it via su
leotaku has joined #nixos
robstr has joined #nixos
John882 has quit [Ping timeout: 240 seconds]
leotaku has quit [Ping timeout: 263 seconds]
Turion has quit [Ping timeout: 248 seconds]
John882 has joined #nixos
hamishmack has joined #nixos
John882 has quit [Ping timeout: 268 seconds]
John882 has joined #nixos
robstr_ has joined #nixos
davidlt has joined #nixos
thc202 has joined #nixos
davidlt_ has quit [Ping timeout: 256 seconds]
Turion has joined #nixos
pSub_ has joined #nixos
John882 has quit [Ping timeout: 246 seconds]
pSub_ has quit [Client Quit]
pSub_ has joined #nixos
pSub_ has quit [Client Quit]
pSub_ has joined #nixos
pSub_ has quit [Client Quit]
pSub_ has joined #nixos
John882 has joined #nixos
i-am-the-slime has quit [Ping timeout: 246 seconds]
pSub_ has quit [Client Quit]
John882 has quit [Ping timeout: 260 seconds]
davidlt_ has joined #nixos
davidlt has quit [Ping timeout: 264 seconds]
John882 has joined #nixos
<robstr_>
Morning
mudri has joined #nixos
<robstr_>
can someone tell me, what is the preferred way to resolve the `haskellPackage.ghc-mod` problem https://github.com/NixOS/nixpkgs/issues/36604 I dont get how this error can occur, It was working before
<LnL>
but nix-build -E 'with import <nixpkgs> {}; haskell.lib.doJailbreak haskellPackages.ghc-mod' should work either way
<robstr_>
Right, i missed to update the channel...
<robstr_>
currently i specify everything inside the configuration.nix (splitted) and use a sudo nixos-rebuild, i dont get the real difference/benefit of using what you wrote
<robstr_>
there are so many ways to specify development env
<jmc_fr>
yes yes, the error message tells "/mnt//" with double slash ... ????
<jmc_fr>
The regular /mnt/etc/nixos/configuration.nix does exist
rauno has quit [Ping timeout: 260 seconds]
<thblt>
Hi! Is it possible to add packages to a running nix-shell from inside the shell?
<thblt>
(to avoid rebooting the Emacs running in a project's build shell whenever I need to add or remove a lib or something))
<Mic92>
How can I find out in a script if a package or its dependencies is not marked as broken?
cfricke has quit [Quit: WeeChat 2.0]
<fendor>
thblt, imo, you can just execute nix-env -i to install packages, they will only be present in your nix-shell
<Mic92>
builtins.tryEval "${junit}"
ottidmes has joined #nixos
orivej has joined #nixos
<thblt>
fendor: thanks, will try that
<gchristensen>
clever do you have any magic tricks for provider the password to sudo across an ssh connection?
<gchristensen>
preferably using a program on the the local side to provide it
<gchristensen>
clever: ^
robstr_ has quit [Quit: WeeChat 1.9.1]
rauno has joined #nixos
pSub_ has joined #nixos
pSub_ has quit [Client Quit]
pSub_ has joined #nixos
pSub_ has quit [Client Quit]
pSub_ has joined #nixos
pSub_ has quit [Client Quit]
<ottidmes>
gchristensen: Might be a stupid suggestion, but I am going to make in it nonetheless, could you not create a user with an invalid password (like you do if you want an inaccessible root), so the only way to login into that user is via having the right SSH key or having sudo access, and then you give the user passwordless access via sudoers to the few things it needs access to
<thblt>
gchristensen: from a script or manually? Manually, I'd use some combination of pass + xdotool
<gchristensen>
ottidmes: I can't :(
<gchristensen>
thblt: from a script
<samueldr>
pty allocation issues?
xcmw has joined #nixos
<samueldr>
SUDO_ASKPASS + -A, would it work through ssh just like forwarding an agent does?
<gchristensen>
samueldr: I can allocate a pty (passing -t) but I don't want to paste a bunch of times
<gchristensen>
ooooohhh
<LnL>
yeah, askpass but sudoes is a much better solution if possible
robstr_ has joined #nixos
<robstr_>
while building my project i receive `missing header file: zlib.h` I added `zlib` and `zlib.dev` as dep. Is there a known problem?
<{^_^}>
→ bf06f445 by @ryantm: fricas: 1.3.2 -> 1.3.3
<{^_^}>
→ 5693c5da by @gebner: Merge pull request #36986 from ryantm/auto-update/fricas
mduggie has quit [Ping timeout: 264 seconds]
Turion has quit [Remote host closed the connection]
<infinisil>
Are PR's really the best strategy to update packages..
<octe>
i'm trying to install nixos with encrypted root, but after booting the installation it just says "waiting for device <uuid i specified in configuration.nix>"
fl3 has joined #nixos
xcmw has joined #nixos
<{^_^}>
[nixpkgs] @gebner pushed 2 commits to release-18.03: https://git.io/vxYhe
<{^_^}>
→ b1053e61 by @xeji: rename: fix build
<{^_^}>
→ 6e6417c0 by @xeji: libdynd: fix build w/gcc7
<fl3>
infinisil: I am really new to nixos, to avoid XY problem, could you please give me tips on how to get zsh with grml-zsh-config as my shell? I added programs.zsh.enable and "shell = pkgs.zsh" to my configuration.nix. What else should I do?
<clever>
fendor: and what does ls -l ~/.nix-profile/ say?
<clever>
but if you fix the symlink, nix will notice your using those things
<{^_^}>
[nixpkgs] @LnL7 opened pull request #37246 → chuck: fix darwin build → https://git.io/vxYhW
<fendor>
it links to somewhere in /nix/store
<clever>
can you paste the exact output of the ls command?
davidlt_ has joined #nixos
dvim has joined #nixos
<infinisil>
fl3: I'll look into it hold on
dvim has quit [Client Quit]
<freeman42x]NixOS>
should ghc-8.4.1 appear when querying: nix-env -f "<nixpkgs>" -qaP -A haskell.compiler on nixos stable + nixpkgs unstable ? (did a a nix-channel update) wondering if it was not packaged yet or I am just doing something wrong
<clever>
drwxrwxrwt 8 root root 8 Jun 18 2016 /nix/var/nix/profiles/per-user/
<clever>
drwxr-xr-x 3 clever users 21 Mar 8 19:26 /nix/var/nix/profiles/per-user/clever
<infinisil>
fl3: Hmm, that package doesn't seem to be properly packaged
<clever>
fendor: you need to own your per-user directory
<das_j>
Nice. So I'm currently running some machines on Ubuntu with Ansible. However, I really like NixOS (on my private machines) so I think about a switch from Ansible to nixops. Is nixops as stateless as Ansible? Or will it create state files on my local machine?
<infinisil>
fl3: if it would've been done properly it would work without doing anything
<fendor>
clever, really sure i do, could not open lok file in `/nix/var/nix/profiles/default.lock`
dvim has joined #nixos
<clever>
das_j: nixops uses a state file to keep track of what machines have been deployed
<das_j>
clever: Is that on my local machine or on the remote one?
<clever>
fendor: create a symlink from .nix-profile to /nix/var/nix/profiles/per-user/$USER/profile
<clever>
das_j: the local machine
<das_j>
Damn it. So if we were working as a team, we'd need a central machine where the nixops runs are performed?
<clever>
das_j: it needs that to know where the remote machines even are
<clever>
das_j: yeah, thats how its typically done
<infinisil>
fl3: Wait, is this zsh config meant to replace your own .zshrc???
<ij>
adisbladis[m], Hi. I see you've packed perkeep on master. Did you try using it / does the UI work? Perkeep's UI seems to be unable to load an asset / react-with-addons.js.
<fendor>
clever, i think now it works!
<fendor>
thanks!
<fl3>
infinisil: hmm, give me a minute, I'll check on my arch machine
<das_j>
So I'll probably end up with something like "ssh machine 'cd /var/src/myrepo; git pull; nixos-rebuild switch'"...
silver_hook has quit [Quit: ZNC 1.6.5+deb1 - http://znc.in]
<clever>
das_j: nixops does the nixos build on the local machine, then copies it to the remote one with nix-copy-closure
<fendor>
in my home folder there is a weird file `result@` what is that?
<clever>
fendor: thats a symlink with the name result
<tilpner>
das_j - Look at nix-deploy, you can use it without a state directory, so deploying from different devices should be fine
<clever>
fendor: ls -l result
<fl3>
infinisil: it looks that it should only create /etc/zsh folder with zshrc
chisui has joined #nixos
<infinisil>
fl3: Ah, so a global default configuration..
maximiliantagher has joined #nixos
<tilpner>
fl3 - You could try calling ${grml-zsh-config}/etc/zsh/zshrc from your own zsh. E.g. from interactiveShellInit or loginShellInit
<das_j>
tilpner: That really looks like what I need. Thank you for pointing me into the right direction
<clever>
fendor: nix-build creates a result symlink pointing to the result
<infinisil>
Yeah what tilpner said should work fl3
<clever>
fendor: ahh, that one specifically is from `nixos-rebuild build`
<clever>
fendor: you can safely delete it
<clever>
fendor: also, `ls -l result` is very different from `ls -l result/`
<fendor>
clever, cool, thanks!
<fendor>
clever, dang it, yeah i see now ^^
<fl3>
tilpner: it will not be in conflict with previously installed /etc/zshrc?
alhariel has joined #nixos
<tilpner>
fl3 - I don't know, I don't use grml, so I'm not familiar with it. You can try though
<fendor>
similar question, i have a bunch of symlinks of the form .nix-profile-\d-link-\d-link, where \d is some number, are those also build artifacts?
<fendor>
*in my home folder
<infinisil>
fl3: This won't change /etc/zshrc at all, it just sources the grml config
<tilpner>
das_j - Check PMs
<infinisil>
fl3: Which probably has the same effect
JosW has joined #nixos
silver_hook has joined #nixos
silver_hook has quit [Changing host]
silver_hook has joined #nixos
maximiliantagher has quit [Ping timeout: 264 seconds]
<fl3>
just to clarify things - /etc/zshrc is created by nixos-rebuild, right? No package could write to /etc, each config file modified in /etc is the result of nixos-rebuild?
<clever>
fl3: some things in /etc are writable, but packages that are installed cant just create files when installed
<clever>
fl3: if you ls -l /etc/zshrc youll see its a symlink
<clever>
but /etc/passwd is a normal writable file
<ottidmes>
Got any simple way to test if the grml config is working, I have it installed, but it could very well be that I have not actually be using it all this time...
leotaku_ has joined #nixos
<fl3>
That symlink was created by nix-env -i zsh? Or its because I made some changes in configuration.nix?
<clever>
fl3: only configuration.nix can manage /etc/
<{^_^}>
→ 4abfb0b3 by @shlevy: help2man: Make safe to use in bootstrap stdenv.
<{^_^}>
→ a546d776 by @shlevy: glibc: Make 2.27 the default.
romildo_ has quit [Read error: Connection reset by peer]
<{^_^}>
→ 6d7e964b by @shlevy: xfsprogs: Fix build on glibc-2.27
romildo_ has joined #nixos
romildo_ has quit [Read error: Connection reset by peer]
romildo__ has joined #nixos
romildo__ has quit [Read error: Connection reset by peer]
spear2 has quit [Remote host closed the connection]
romildo has joined #nixos
romildo has quit [Read error: Connection reset by peer]
romildo_ has joined #nixos
fl3 has quit [Quit: Lost terminal]
romildo_ has quit [Read error: Connection reset by peer]
<ottidmes>
infinisil: any idea how to fix my keymap to allow those keys registered as japanese, it says "symbols ignored" after warning the key could not be found, and thus ignoring my mapping
<infinisil>
ottidmes: does remapping with the xkb file not work?
romildo_ has quit [Read error: Connection reset by peer]
i-am-the-slime has joined #nixos
romildo_ has joined #nixos
romildo_ has quit [Read error: Connection reset by peer]
romildo__ has joined #nixos
romildo__ has quit [Client Quit]
<ottidmes>
infinisil: I tried, I have for example: key <I101> { [ XF86Excel ] }; which originally was Hiragana_Katakana, however when I reload it, I get: Warning: Key <I101> not found in evdev+aliases(qwerty) keycodes Symbols ignored
<{^_^}>
→ 68abbd6f by @ryantm: most: 5.0.0 -> 5.0.0a
<{^_^}>
→ f4d0ca98 by @Mic92: Merge pull request #37227 from ryantm/auto-update/most
<ottidmes>
infinisil: Thanks again :D changing it to HKTG worked
<fl3>
What does it mean? "error: cannot auto-call a function that has an argument without a default value (‘lib’)"
<ottidmes>
my keyboard is just weird, its technically a mouse as well, its made in china, but has japanese keycode even though it is just an US international keyboard with some additional media keys
<ottidmes>
infinisil: So I mapped it like: key <HKTG> { [ XF86Excel ] }; even though I will probably assign some different meaning to it, it makes sense to me to map to what it represents on the keyboard instead of its semantics
<infinisil>
ottidmes: Ah and I just found out there's the FK14 key which will automatically map to XF86Excel, so probably you could put just `<FK14> = 101;` to the xkb_keycodes section and it'll work too
<{^_^}>
→ 5b118925 by @ryantm: pidgin-sipe: 1.23.0 -> 1.23.2
<{^_^}>
→ 291d18d2 by @Mic92: Merge pull request #37240 from ryantm/auto-update/pidgin-sipe
endformationage has joined #nixos
<infinisil>
ottidmes: Oh, yeah my mistake
<infinisil>
Never mind
zzamboni has joined #nixos
<srjek>
f13: Have you added a nixos-hardware line to your imports in /etc/nixos/configuration.nix ? And if so, what hardware did you add? (I'm wondering if it's the same issue as https://github.com/NixOS/nixos-hardware/issues/52 )
nD5Xjz has quit [Ping timeout: 240 seconds]
pkill9 has joined #nixos
<ottidmes>
infinisil: It now at least no longer gives any warnings about the symbols I defined (still give plenty for other symbols, not sure how to fix) and my mappings now all work, so they can now actually be put to some use :D
vaninwagen has joined #nixos
<infinisil>
Yeah I also have these warnings, they don't really matter
<infinisil>
You could look in the xkb directory to find something that defines them
<ottidmes>
infinisil: I checked and indeed, they are set in various files of the included xkb_symbols, e.g. 255 is defined in /etc/X11/xkb/symbols/inet as hibernate
Fare has quit [Ping timeout: 260 seconds]
<ottidmes>
infinisil: And you were right about logind capturing those keyboard events, so I just disabled them via services.logind.extraConfig
chessai has joined #nixos
zzamboni has joined #nixos
<infinisil>
ottidmes: indeed, using it to make my power key suspend instead of stutdown
<infinisil>
Was really annoying to accidentally hit the power button and have it shut down..
nD5Xjz has quit [Ping timeout: 256 seconds]
<mpickering>
There's no permission setting which allows being able to edit the issue tracker but not commit is there?
<ottidmes>
infinisil: I made it so that my poweroff and reboot command no ask me if I want to shut it down showing explicity the machine name, had it happen a few times already that I rebooted my desktop instead of the remote machine... (e.g. being used to call nixos-rebuild boot and then reboot, and then start using nixops and still calling reboot out of habit... not nice :P)
leotaku_ has joined #nixos
<ottidmes>
* no = now
leotaku_ has quit [Client Quit]
Myrl-saki has joined #nixos
zzamboni has quit [Quit: Leaving.]
leotaku_ has joined #nixos
zzamboni has joined #nixos
ThatPako has joined #nixos
<fl3>
srjek: no, I did not yet add it to configuration.nix
<srjek>
huh
<ThatPako>
https://github.com/rycee/home-manager this only allows you to configure your user's profile the same way the system packages are managed, right?
<{^_^}>
→ fe8c36ad by @gebner: Merge pull request #37105 from Ekleog/st-0.8
<sphalerite>
ThatPako: rather than installing, say, tmux, you install a wrapper script named tmux that calls the actual tmux and passes the path to a (nix-managed) config file to it
<{^_^}>
→ 9c790169 by Timo Kaufmann: givaro: 4.0.2 -> 4.0.4
<{^_^}>
→ 77835bd3 by @gebner: Merge pull request #36461 from timokau/givaro-4.0.4
nD5Xjz has quit [Ping timeout: 246 seconds]
<sphalerite>
ThatPako: I'm using this approach rather than home-manager because it's simpler and I'm not really sold on using the module system in more places
nD5Xjz has joined #nixos
slack1256 has joined #nixos
<sphalerite>
ThatPako: some packages have existing support for generating wrapper scripts. vim_configurable for example
<fl3>
srjek: hmm, I have no idea what does that error means, but nixos-rebuild worked just fine with imported line, the problem is only in nix-env :|
<fl3>
sphalerite: the error persist even if I dont use any files, just exec commands from setup section https://github.com/NixOS/nixos-hardware (nix-channel add && nix-channel update)
nD5Xjz has joined #nixos
leotaku has quit [Ping timeout: 264 seconds]
<sphalerite>
fl3: hm, this shouldn't happen AFAIU… What's does ls /nix/var/nix/profiles/per-user/root/channels say?
<coconnor>
and, at least myself, I'm boring about usenames
<tilpner>
Any idea why "nix eval --raw nixpkgs.hello" errors with "attribute 'nixpkgs' in selection path 'nixpkgs.hello' not found"?
<ottidmes>
infinisil: I assume your xsession.profileExtra option in mine.xUserConfig add stuff to your ~/.xprofile file? Is adding ${pkgs.xorg.xkbcomp}/bin/xkbcomp ${keymap} $DISPLAY there necessary if you already have it in sessionCommands?
<tilpner>
(It's an example from --help, so it should work)
zzamboni has quit [Quit: Leaving.]
<infinisil>
ottidmes: Yeah not both of those are needed, i should refactor that
<ottidmes>
tilpner: Depends on how you have your channels setup
<tilpner>
ottidmes - Sure, but I can't find any docs on where nix eval looks for channels
dvim has quit [Ping timeout: 264 seconds]
<tilpner>
ottidmes - So I don't know how to set up my channels so that nix eval will find them
<coconnor>
fl3 's issue is familiar. There was an API change for modules related to the "lib" argument.
<coconnor>
that was a long while ago
<tilpner>
(I don't use channels, I was hoping to make this work with NIX_PATH)
<ottidmes>
infinisil: Which one should be kept? BTW little nitpick, you have with pkgs; [ pkgs.xorg.xkbcomp ]; (pkgs. not necessary with your with ;))
<infinisil>
ottidmes: Certainly the global one with sessionCommands, because otherwise I wouldn't have my keyboard config at the display-manager
<infinisil>
I guess with multiple users it would make sense to keep both of those thougg
<clever>
infinisil: nixos already sources .xprofile, before it runs .xsession
<coconnor>
tilpner: I don't use channels as well.
<tilpner>
ottidmes - Woah. That changed the error, but it really shouldn't have
<infinisil>
clever: Well I've been using it for a while now and no bugs seen so far
<fl3>
coconnor: hmm, no idea how to fix it :(
<infinisil>
clever: What's the problem with sourcing .xprofile twice?
<coconnor>
fl3: I can tell you the changes required to the module to try. However, that requires building that channel from source.
<tilpner>
ottidmes - Actually, no, false alarm
<tilpner>
coconnor - And does nix eval --raw nixpkgs.hello work for you?
<ottidmes>
infinisil: "Allow the user to execute commands at the beginning of the X session." and generally commands are not idempotent, calling them twice can do stuff like starting programs twice and whatnot
<clever>
infinisil: if it runs anything like a window manager or another progream in the background
<infinisil>
(would be sourced twice if it wasn't checked)
<clever>
infinisil: yeah, id have to look at what other distros do to know what can hapen there
nD5Xjz has quit [Ping timeout: 256 seconds]
<ottidmes>
mpickering: stdenv.lib == _module.args.lib (the one passed in the attrset to each module) == import <nixpkgs/lib>, i.e. if you check nixpkgs/lib/default.nix, there you can find the definitions (imports the subsequent nix files that contain the actual definitions)
<clever>
ottidmes: its also at pkgs.lib
<tilpner>
It seems Nix 2.0 forgot how to look for path elements :/
<coconnor>
fl3: did you also send out a gist of your configuration.nix ?
<mpickering>
so I have to look at the source code is what you're saying?
zzamboni has quit [Client Quit]
<infinisil>
clever: ottidmes: Here are the full .xsession and .xprofile of home-manager (you need to enable an option for it to manage the xsession though)
<fl3>
coconnor: I tried it firstly with the default one, the issue was exectly the same
<tilpner>
I'll make sure there's an issue for this
<slack1256>
Should "nix run nixpkgs.haskellPackages.ghcWithPackages (p: with p; [ lens ]) " run without problems?
<clever>
infinisil: ah, i see
<gchristensen>
probably not, slack1256
<gchristensen>
you probably need to quote the third argument
zzamboni has joined #nixos
<ottidmes>
mpickering: yeah, the source code is as far as I know the best way to understand what lib functions there are, and what they do, and it helps learning nix as a "feature" :P
<slack1256>
oh, "nix run 'nixpkgs.haskellPackages.ghcWithPackages (p: with p; [ lens ])' " also fails
<{^_^}>
[nixpkgs] @LnL7 opened pull request #37253 → communi: fix darwin build → https://git.io/vxOL0
<gchristensen>
I don't know if that should work :)
<jtojnar>
hedning[m]: that just makes not sense, it worked yesterday when I added the install_dir but I cannot make it work today
<mpickering>
slack1256: What is going wrong?
<clever>
$ nix run '(haskellPackages.ghcWithPackages (p: with p; [ lens ]))'
<clever>
error: undefined variable 'haskellPackages' at (string):1:2
<{^_^}>
[nixpkgs] @angerman opened pull request #37254 → [WIP] mingw-w64 for haskell cross compilation with ghc. → https://git.io/vxOLw
<fl3>
coconnor: hmm, maybe I just did not add modified channel properly :(
<infinisil>
ottidmes: the xsession file is the whole x session, once it's done running your user is logged out, so it stops stuff when its done
<clever>
$ nix run '(with import <nixpkgs> {}; haskellPackages.ghcWithPackages (p: with p; [ lens ]))'
<clever>
slack1256: its more verbose then i was expecting, but this appears to be working
<ottidmes>
infinisil: Ow, that explains then (I obviously never used the file...)
<infinisil>
ottidmes: yeah, and how nixos handles it is that if ~/.xsession exists it will use that, otherwise it will start the stuff defined in services.xserver (display manager and such)
<ottidmes>
infinisil: Ah, I see, "Allow the user to setup a custom session type."
<slack1256>
clever: Yes, I just tried with the parens but without the import of <nixpkgs>. Thank you for helping me out.
newhoggy has joined #nixos
<coconnor>
nix run seems to inspect the provided argument to determine if it's an expression or package path
<slack1256>
*import of <nixpkgs>, it doesn't work.
<coconnor>
slack1256: that would require nixpkgs being defined in NIX_PATH. I suspect your system does not have that
zzamboni has quit [Client Quit]
<slack1256>
mpickering: nix run wants to replace nix-shell but not yet.
<coconnor>
"nix run nixpkgs.haskellPackages.lens" builds but I don't know if the result is the same as that "ghcWithPackages" expression
newhoggy has quit [Remote host closed the connection]
<clever>
coconnor: that wont include a ghc, and ghc wont be modified to look for it
<clever>
the biggest difference i can see, is that `nix run` doesnt get normal compile-time packages or handle setup hooks
<clever>
so its more suited to just run a program, and not build things
newhoggy has joined #nixos
<clever>
ghc is a weird exception, due to how it works in nix
leotaku has joined #nixos
<clever>
coconnor: ghcWithPackages creates a bash script that sets export NIX_GHCPKG='/nix/store/0pv3ghl8087f0dhw9k7475299n8hqfii-ghc-8.2.2-with-packages/bin/ghc-pkg' and a few other vars
<clever>
then runs the real ghc
newhoggy has quit [Remote host closed the connection]
<clever>
it will also buildEnv all of the libraries, and their deps, into a single directory
<clever>
which is very different from how nixos handles gcc/clang
<clever>
for c based compilers, nixos just appends -I flags to an env var, and the gcc wrapper forces those in, so an app is free to clear $CFLAGS and still get the cflags
<clever>
i think the problem, is that ghc cant accept multiple flags for where to find deps?
<clever>
so they have to be in a "single directory"
zzamboni has joined #nixos
<fl3>
coconnor: updated modified module - and its not fixed, the issue was not in the with pkgs.lib :(
slack1256 has quit [Remote host closed the connection]
<coconnor>
fl3: This is why I'm confused. As of 15.03 the arguments to modules must include a "lib" argument and not "with pkgs.lib;". Typically go like { config, pkgs, lib, ... }:
<coconnor>
fl3: pkgs.lib is supposed to result in an infinite recursion now "Any use of module arguments such as pkgs to access library functions, or to define imports attributes will now lead to an infinite loop at the time of the evaluation"
<clever>
coconnor: i think that only applies to the imports attribute
nD5Xjz has joined #nixos
<clever>
it needs to scan all imports recursively, to find nixpkgs.config, to create pkgs
<ThatPako>
sphalerite: so packages like vscode_with-extensions allows you to define the extension in your .nix while vscode would remove them after installing a new version?
<clever>
so pkgs cant depend on the result of config
<coconnor>
gotcha.
<sphalerite>
ThatPako: yes to the first bit, no to the second
<hedning[m]>
jtojnar: yeah, that's really strange. Tried out the libgweather patch and I'm getting the wrong typelib path too :(
<sphalerite>
vscode would probably store them in a stateful path (dotfiles), and they would persist through upgrades.
<ottidmes>
clever: I tried to place my custom lib also in pkgs, tried many alternatives, but the only solution that works all the time for me is just using a direct import, which should be cached, so its not that bad
Ross has quit [Ping timeout: 264 seconds]
nallar is now known as Ross
<clever>
ottidmes: what are you trying to do?
<ottidmes>
clever: I tried to have certain lib functions available everywhere, via a module argument or config/pkgs.libs
Ross has quit [Client Quit]
<manveru>
Xal: you figured it out?
nD5Xjz has quit [Ping timeout: 264 seconds]
<clever>
ottidmes: that should just work if you { config, pkgs, lib, ... }: and maybe with lib;
<roconnor>
sphalerite: hmmm, interesting argument about GC roots. I hate unix.
<ottidmes>
clever: only if you define those lib functions in your nixpkgs checkout, otherwise you will get infinite recursion
<clever>
ottidmes: ahh, yeah
<clever>
ottidmes: if you want something custom you could do _module.args.mylib = ...
<clever>
then you can { config, pkgs, lib, mylib, ... }:
<ottidmes>
clever: Yeah, I tried that, but no, I could not
<ottidmes>
clever: Although, maybe I could for most modules, but not for all, because then it will be part of config, and config is determined by imports, and if your imports use your lib functions, you've got a loop
<clever>
ottidmes: yeah, you cant use mylib for imports, thats the main restriction
zzamboni has joined #nixos
blankhart has quit [Read error: Connection reset by peer]
<coconnor>
hrm. New error in this binary cache setup "file 'nar/pf6i9aisgyjdvs0i3xvari0m6asdfpd7.nar.bz2' missing from binary cache". Seems like a corrupt store?
Ross has joined #nixos
<clever>
coconnor: which binary cache?
newhoggy has joined #nixos
newhoggy has quit [Remote host closed the connection]
<ottidmes>
clever: And I would like to be able to add to these libs in different config, so I might have a shared lib, a lib for a class of machines (backup server e.g.) and a lib for a specific machine, by just using with import /path/to/file I still have that flexibility (and just extend the way I want in the files themselves)
blankhart has joined #nixos
<coconnor>
clever: this is a nix-serve binary cache I have running locally.
<clever>
coconnor: you likely ran a garbage collection and deleted that path
<coconnor>
clever: I think it's stale binary cache entries in the nix sqlite DB
<clever>
coconnor: yeah, is the client nix1 or nix2?
<clever>
fl3: -iA will still work, and its better anyways
newhoggy has quit [Ping timeout: 248 seconds]
<fl3>
hm, yes, -iA works fine.
<clever>
the problem, is that -i will search the .name attribute of every package, on every channel
<clever>
and it fails when loading the nixos-hardware channel
<clever>
it also wastes a ton of ram and cpu reading every package under the sun
<clever>
but -iA nixos.hello tells it to use the hello package in the nixos channel, so it can skip nixos-hardware entirely
iyzsong has quit [Ping timeout: 263 seconds]
<fl3>
ok, I got it! Now I want to fix it just to know more about nix and to help in this issue https://github.com/NixOS/nixos-hardware/issues/52. Any tips on what I should read before I'll get it?
<clever>
i suspect it will be fixed by just adding a default.nix in the root of the project, that contains { ... }: {}
<ottidmes>
Is there a way to prevent collisions when rebuilding your config for e.g. services.server.windowManager.bspwm.package = pkgs.writeScriptBin "bspwm" '' while true; do bspwm || break done ''; (I joined the lines for pasting, is actually multi lined)? Or another example, if I want to wrap nixos-rebuild, that will probably complain as well with a similar warning
<ottidmes>
sphalerite: I thought they were all the same, while :; do bspwm; done, or the one with true, or the one you supplied? as in, : is a special true value in bash, or does it have performance implications (doubt they will be anywhere near significant)
<sphalerite>
ottidmes: `:` is the same as `true`, they're both builtins which do nothing and return true
<sphalerite>
ottidmes: the key in mine is that bspwm is the loop condition so you don't need the || break
<sphalerite>
but you can substitute true for the : at your leisure :)
<ottidmes>
sphalerite: Ah, like so, that makes more sense
<ottidmes>
sphalerite: I would never write it myself, I just copied this from the examples, but somehow it did not register as a code smell, thanks :)
<sphalerite>
I usually use : for "do nothing" (when the exit code is ignored) and true for "return true" (when the exit code is relevant, like in a loop condition) but that's just a matter of personal preference
<ottidmes>
sphalerite: Agreed, was just about to do it like that, thinking the same, true when you want to be explicit about it being truthy, and : for a noop
<ottidmes>
clever: nope, I just double checked, worked like I expected it to, hiPrio sets the meta.priority attribute on any deriviation and that in turn works as advertised when adding the deriviation in systemPackages, I get no more collision errors for bspwm :)
<clever>
ah, yeah, systemPackages is a buildEnv
<clever>
was bspwm already in systemPackages for another reason?
alhariel has joined #nixos
<clever>
and wont that bash script now run itself and create a fork-bomb?
<ottidmes>
well, it is my window manager, which make heavy use of its cli interface
<fl3>
How to use gtk+ as nix-shell argument? -p "gtk+" give me error: syntax error, unexpected ')', at (string):1:104
<ottidmes>
clever: That could very well happen... it did work before when I had the collision though
<clever>
fl3: try nix-shell -p gtk2
<fl3>
clever: I am looking for libgtk-x11-2.0.so.0, which seems to be a part of gtk+, not gtk2
<clever>
gnome2.gtk.out 0 s /nix/store/rdwslb6cywp40dm9rv6aqgapfjcyrzpm-gtk+-2.24.31/lib/libgtk-x11-2.0.so.0
<clever>
fl3: that library is in gnome2.gtk
<ottidmes>
clever: I guess I should use loPrio, good catch! Since the bspwm module just uses the package provided to the package attribute to run bspwm directly from, while my general PATH bspwm should point the the binary, not my loop
<fl3>
wow nix-locate is awesome :)
<clever>
fl3: yeah
hiroshi has joined #nixos
leotaku has joined #nixos
alhariel has quit [Quit: Leaving]
blankhart has quit [Read error: Connection reset by peer]
blankhart has joined #nixos
<ottidmes>
hah, I kinda needed nix-locate to locate it to be nix-index :P but there always is google
clefru has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vidbina has quit [Ping timeout: 240 seconds]
<ottidmes>
which should have prio: collision between `/nix/store/ni9ilkivjp4d7ai6rpr6jhc44pfmhhmw-xf86-input-evdev-2.10.5/share/X11/xorg.conf.d/10-evdev.conf' and `/nix/store/wwgj4vrn0z78bq3mqalgdkcv91ihvlpj-xorg-server-1.17.4/share/X11/xorg.conf.d/10-evdev.conf' I guess xf86-input-evdev is the less general one, so I guess it should have the higher prio
<obadz>
isn't there a way to do a why-depends without building ? would have thought evaluating would be enough…
<clever>
ottidmes: and if you run realpath on both?
<ottidmes>
clever: on those colliding? they are already real paths, just double checked, but I get what I put in
<clever>
ottidmes: yeah, they may be symlinks to the same file
<ottidmes>
clever: doesnt it check for that?
<clever>
not sure
leotaku has quit [Client Quit]
<ottidmes>
clever: I could just disable exporting my x config, or I have to overlay the xf86inputevdev and xorg.xf86inputevdev packages with a hiPrio wrapper
alhariel has joined #nixos
leotaku has joined #nixos
nD5Xjz has joined #nixos
xcmw has joined #nixos
muzzy has quit [Read error: Connection reset by peer]
<ottidmes>
clever: This solved it for me: services.xserver.exportConfiguration = true; environment.systemPackages = with pkgs; [ (hiPrio xorg.xf86inputevdev.out) ];
<foldingcookie>
at present, if I set GST_PLUGIN_PATH=$HOME/.nix-profile/lib/gstreamer-1.0/ gstreamer works, but it seems like a workaround and certainly isn't documented
ma27 has quit [Ping timeout: 246 seconds]
ma27 has joined #nixos
<ottidmes>
foldingcookie: seems unrelated, but shouldn't gstreamer be installed in your system instead of nix-env?
<ottidmes>
foldingcookie: or are you running nix and not nixos
<michaelpj>
I'm trying to package a rust application with `buildRustPackage`, but it looks like it doesn't support git dependencies? Is that right? if so, is there a known workaround?
<LnL>
don't use git dependencies :)
<LnL>
or does that not count
<jeaye>
michaelpj: Git dependencies work directly against the kind of reproducible builds you would expect in a system like Nix, or arguably any reproducible setup.
<jeaye>
They're convenient, but asking for trouble.
<michaelpj>
I mean, I hear you, but it's not my project ;)
ThatPako has quit [Remote host closed the connection]
<michaelpj>
although, haivng said that, the Cargo.lock has a specific revision for the git dep, so it doesn't seem like it's that bad from a reproducibility standpoint
<vaibhavsagar>
okay, I've had another look and qtwebengine is currently not building on Hydra because the build of qtdeclarative failed, but qtdeclarative seems fine???
ma27 has quit [Ping timeout: 265 seconds]
<vaibhavsagar>
what is happening???
nD5Xjz has joined #nixos
blankhart has quit [Ping timeout: 240 seconds]
<elvishjerricco>
vaibhavsagar: Sometimes packages use overriden versions of dependencies, so the derivation that succeeds in hydra might be different than the one used by some package.
blankhart has joined #nixos
nD5Xjz has quit [Ping timeout: 256 seconds]
<obadz>
vaibhavsagar: this has been an annoyance for a past few days. until I realized I did not need this version qtwebengine
<obadz>
(of)
<Xal>
I'm trying to package a ruby application but nix-build keeps failing: sh: rake: command not found
<ottidmes>
Xal: "For tools written in Ruby - i.e. where the desire is to install a package and then execute e.g. rake at the command line, there is an alternative builder called bundlerApp."
<{^_^}>
→ 25164061 by @nlewo: Merge pull request #37089 from ryantm/auto-update/redir
nD5Xjz has joined #nixos
<ottidmes>
Xal: I have only shallow experience with Ruby and none in the contex of NixOS, so hopefully there are other that might help you out, but to do so, more information would be necessary, e.g. what does it fail on (on some paste website, do not copy it all here)
<ottidmes>
Xal: Or do you mean it then fails on: sh: rake: command not found
nD5Xjz has quit [Ping timeout: 264 seconds]
cnidario has quit [Read error: Connection reset by peer]
<Xal>
ottidmes: I just don't understand how defaultGemConfig and gemset.nix interact
<Xal>
if I do gemConfig = defaultGemConfig in my bundlerEnv, none of the native dependencies get pulled in, but if I specify them manually it works
<{^_^}>
→ cb735c39 by @nlewo: Merge pull request #37034 from ryantm/auto-update/liblouis
<{^_^}>
→ 96bb1795 by @ryantm: liblouis: 3.4.0 -> 3.5.0
<Xal>
leotaku: adding "gem 'rake'" to Gemfile and then doing bundle lock && bundix doesn't help
<leotaku>
Xal: that seems strange
<leotaku>
do you run "bundix --magic" to generate all files?
<Xal>
I've used bundle lock to generate Gemfile.lock because "bundle install" fails with "LoadError: cannot load such file -- pkg-config"
<Xal>
well, something seems to have worked now
<leotaku>
Xal: i don't think you even have to work with bundle to get bundix to work, you just point it at the Gemfile and it generates its stuff
<Xal>
leotaku: everything seems to work now, but I still find it strange I've had to muck around with gemConfig by copy pasting from defaultGemConfig
qknight has joined #nixos
<leotaku>
Xal: I actually also don't know anything about gemConfig, so theres nothing I can add to that
<qknight>
hey. i need to extend a mkDerivation with a phase-global tmp dir which is unique per mkDerivation. originally i've added a HOME=$TMPDIR on top of each phase, but it would be better if that wasn't required in each phase i'm about to override
<qknight>
that is for the emscripten toolchain which is a requirement since emscripten writes something to ~/.emscripten, a cache like feature for compile artefacts which i don't care for but can't be disabled
<qknight>
i've tried: HOME="$TMPDIR"; on the level, where name, src, buildPhase and similar is assigned, but the $TMPDIR won't be evaluated
<clever>
qknight: you need to do it at the bash level, like preConfigure = "export HOME=$TMPDIR";
<ertes>
after i nix-instantiate an expression, can i use the result with nix-shell? also is there a nix 1.12 equivalent to this?
<clever>
ertes: nix-shell accepts a lot of the same params as nix-instantiate, so you can just call it directly
<ertes>
ah, nevermind… it looks like i need to dereference the symlink
mkoenig has quit [Remote host closed the connection]
nD5Xjz has quit [Ping timeout: 246 seconds]
ma27 has quit [Ping timeout: 256 seconds]
ma27 has joined #nixos
mkoenig has joined #nixos
<ertes>
is there a way with cabal2nix to specify a certain commit/branch/tag of a local git repo?
<ottidmes>
I am trying to get dynamic substituters (substituters that might not be available) working nicely, so I thought about wrapping things like nix-build to check if a substituter is live, and then pass it --option extra-substituters accordingly. I am just wondering which executables would have to be wrapped, would nix (for nix 2.0 stuff) and nix-build (for nix 1.0 stuff) be enough?
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ertes>
i'm currently using a super-ugly overriding hack to change a 'cabal2nix .' derivation into one that uses fetchgit
<{^_^}>
[nixpkgs] @fpletz pushed commit from @DarkScythe97 to release-18.03 « microcode-intel: 20171117 -> 20180312 »: https://git.io/vxOBW
<{^_^}>
→ 6a71804b by @peti: hackage-packages.nix: automatic Haskell package set update
<{^_^}>
→ e772848b by @peti: haskell-tasty: drop obsolete override for ghc-8.4.x
<{^_^}>
→ b59905bf by @peti: haskell-conduit: use latest version when compiling with ghc-8.4.x
nD5Xjz has joined #nixos
<sphalerite>
ottidmes: nix-store -r is also affected by substituters
<ottidmes>
sphalerite: yeah, I just checked and nix-build states that is in turn uses nix-store --realize, so it makes more sense to go the lowest level in the toolchain
chessai has quit [Remote host closed the connection]
<ottidmes>
hmm, English spelling, --realise
<sphalerite>
ottidmes: I'm not sure it actually executes nix-store -r though
<sphalerite>
is it? I know that for optimise both works
<ottidmes>
sphalerite: "nix-build is essentially a wrapper around nix-instantiate (to translate a high-level Nix expression to a low-level store derivation) and nix-store --realise (to build the store derivation)."
<sphalerite>
essentially, but does it actually exec those two or is that just its function?
<sphalerite>
The nicest thing to do though would be to just patch nix itself
electroc1t is now known as electrocat
nD5Xjz has quit [Ping timeout: 264 seconds]
<ottidmes>
sphalerite: For what I am trying to achieve? Yeah, I could create a setting that specifies optional-substituters, or dynamic-substituters, that does what I want, which would be better, not sure how hard that is, I guess I will first try wrapping nix-store and see if that works (I am curious) and maybe then look at how much work it would be to add it to nix directly
nD5Xjz has joined #nixos
alex`` has quit [Quit: WeeChat 2.0.1]
xcmw has joined #nixos
nD5Xjz has quit [Ping timeout: 240 seconds]
<ottidmes>
never knew nix-shell was a symlink to nix-build
<tilpner>
Oh yeah, because zzzz yyyy wwww is such a good passphrase :/
<hyper_ch>
I think that german list needs an overhaul but it's the only one I found
zie has joined #nixos
* hyper_ch
looks forward to tilpner's improved german diceware word list
nD5Xjz has joined #nixos
ryanartecona has joined #nixos
<tilpner>
Nah, my passwords are all 40 random characters. If I used diceware I might have to remember all my passwords...
<hyper_ch>
pwgen -ync 40?
<hyper_ch>
tilpner: well, diceware is nice for unlocking your password vault or root encrypted computer
<hyper_ch>
:)
<ottidmes>
tilpner: oh oh, mine are only 32 random chars, but I am always surprised how sites I would think need to have the most secure password have the shortest max password (e.g. by bank's website)
coot has quit [Quit: coot]
<tilpner>
hyper_ch - pass generate -n foo 40
<zie>
how does one check the nix-build queue and status of the builders?
<ottidmes>
I am using pass too, awesome tool
<hyper_ch>
Question to swisslos: Why is there a limit of 16 chars for a password? Answer: Our password guidlines are based upon intensive research. A 16 char password is sufficient to provide maximum password safety.
<tilpner>
ottidmes - I know, my username is longer than my password :(
<hyper_ch>
ottidmes: I finally figured out why tab completion didn't work for me in pass
nD5Xjz has quit [Ping timeout: 260 seconds]
<ottidmes>
hyper_ch: Ow, why did it not? I am using zsh with pass, so far it always had a working autocomplete.
<MichaelRaskin>
16 characters with random selection _is_ probably sufficient, but some good password construction practices would benefit from 32… What about 6 random digits?
<hyper_ch>
tilpner: well, I use pass isnert -m xxx/xxx becuase usually I also provide username, associated email and url
<hyper_ch>
ottidmes: I didn't have programs.bash.enableCompletion = true; in my configuration.nix :)
<MichaelRaskin>
(yes, a bank)
<mpickering>
jtojnar: It seems your poppler upgrade patch doesn't build on darwin.
<hyper_ch>
I do think the 6 random digits isn't too bad for a bank card... because after 3 tries it gets locked
<MichaelRaskin>
hyper_ch: that's online banking, though
<mpickering>
Can you merge it please?
<ottidmes>
lol (or maybe I should be crying instead), I think actually my bank's password is in the top 3 least secure generated passwords I have in my manager
bsima has joined #nixos
zzamboni has joined #nixos
<hyper_ch>
MichaelRaskin: oh, online banking... is there some other authentication tool also required?
<hyper_ch>
like a hardware token or something?
<ottidmes>
hyper_ch: I always generate and then directly add those things you mentioned with edit, ever after I had it happen that I forgot what username I used for a certain website
<{^_^}>
→ 73b135e6 by @vcunat: poppler: fix build on Darwin
<{^_^}>
→ ed416557 by @7c6f434c: Merge pull request #35667 from vcunat/p/poppler-darwin
<ottidmes>
lol, I went to the github overview of NixOS, see 6 project (on my screen), developed in 6 different languages
JosW has quit [Quit: Konversation terminated!]
<hyper_ch>
so, time for some k-drama
<ottidmes>
I wish Nix was written in Rust, than I had a good reason to learn more Rust, now I have to go through C++ code (not a fan)
<mpickering>
thanks MichaelRaskin
zzamboni has quit [Quit: Leaving.]
<MichaelRaskin>
I guess when the release manager creates a PR and doesn't merge it people start assuming there is a reason.
<MichaelRaskin>
(zero Linux rebuilds, a macOS user who claims success, good enough for me if I ever notice)
<{^_^}>
[nixpkgs] @Ma27 opened pull request #37276 → Revert restrictive validation behavior for DM/WM defaults in the X module → https://git.io/vxOEr
alex`` has joined #nixos
mog has quit [Ping timeout: 256 seconds]
robstr_ has quit [Quit: WeeChat 1.9.1]
robstr has quit [Remote host closed the connection]
robstr has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
<{^_^}>
[nixpkgs] @LnL7 pushed to master « gargoyle: fix darwin build »: https://git.io/vxOuZ
robstr has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @LnL7 pushed to release-18.03 « gargoyle: fix darwin build »: https://git.io/vxOuc
bitchecker has quit [Ping timeout: 268 seconds]
loonquawl has joined #nixos
mounty_ has joined #nixos
bitchecker has joined #nixos
nullvoid8 has joined #nixos
<{^_^}>
[nix] @zimbatm opened pull request #1984 → Document min-free and max-free → https://git.io/vxOui
shabius has quit [Quit: Leaving]
dan_b has joined #nixos
<michas_>
Hi, I would like to slightly adapt my xkeyboard layout (caps should be dead_diaeresis) by adding an additional xkbOption. What is the best way to do this in nixos? Is there some way to specify such things in configuration.nix?
shabius has joined #nixos
ixxie has quit [Ping timeout: 240 seconds]
sigmundv has quit [Ping timeout: 246 seconds]
<sphalerite>
michas_: services.xserver.xkbOptions
<michas_>
sphalerite: yes, I could specify an existing option there. unfortunately I first need to define a custom option before I can use it there. :)
raynold has joined #nixos
nD5Xjz has joined #nixos
<michas_>
(Those are defined under xkeyboard-config/share/X11/xkb/)
hiratara has quit [Ping timeout: 245 seconds]
<sphalerite>
ooooh. Not sure about how to do that.
<ottidmes>
michas_: I configured mine today with services.xserver.displayManager.sessionCommands = '' ${pkgs.xorg.xkbcomp}/bin/xkbcomp ${keymap} $DISPLAY ''; where keymap is my config defined with pkgs.writeScript "keymap.xkb" '' ... '';
<ottidmes>
michas_: I did not have sphalerite's "ooooh" moment, so I might not know what you are talking about, if so, just ignore me :P
nD5Xjz has quit [Ping timeout: 260 seconds]
<sphalerite>
that does sound like it might be the right thing
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<michas_>
ottidmes: There are already options like caps:none or caps:escape to give the caps key a more useful meaning. I usually type us-dvorak and it is handy to have a dead_diaeresis key to produce german umlauts. Therfore I would like to add (and use) a caps:diaeresis option.
nD5Xjz has joined #nixos
zzamboni has joined #nixos
<ottidmes>
michas_: Ah, so you meant you want to create your own xkb option. Why make it an option, why not just define what you want directly in your config? I just use the menu key as my compose key and use that to create umlauts. Not that I ever really use them, even though I should
<ottidmes>
I use the spelling checker to fix my umlauts :P
<sphalerite>
ah gotta love those gfortran builds
<sphalerite>
ottidmes: writing German on a US keyboard?
nD5Xjz has quit [Ping timeout: 260 seconds]
gspia has quit [Read error: Connection reset by peer]
<ottidmes>
sphalerite: No, Dutch
<sphalerite>
wait, Dutch has umlauts too?
<sphalerite>
TIL
<michas_>
On my other "normal" system I usually edit /usr/share/X11/xkb/symbols/capslock to add my option. It feels kind of clearer to have a base keybord with a suitable option. (That's what options are for.) But "redefining" the whole keyboard would probably lead to the same result. - let me think how your solution works. :)
<sphalerite>
I usually use altGr + [ to make umlauts myself
<michas_>
I hate those altGr stunts. moving hands like that really gets me out of the typing flow.
<sphalerite>
thumb 1cm to the left for altgr, pinky 1cm up and right to [
<sphalerite>
works fine for me personally :p
nD5Xjz has joined #nixos
<sphalerite>
but different (key)strokes for different folks.
simendsjo has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<ottidmes>
sphalerite: Pff, I began to doubt myself (not whether we have them, but whether umlaut is the right term for them), but yeah, we have umlauts, but not German umlauts :P "In Dutch, spellings such as coëfficiënt are necessary because the digraphs oe and ie normally represent the simple vowels [u] and [i], respectively."
<sphalerite>
aaaah right
<sphalerite>
they have that sort of thing in French as well, although it's really weird because it's not on the letter it's affecting directly
nD5Xjz has quit [Ping timeout: 265 seconds]
<sphalerite>
like ambiguë — it prevents the u from getting "swallowed" by the g. But it's on the e, which doesn't get pronounced at all.
<sphalerite>
iirc.
xcmw has joined #nixos
<sphalerite>
I think in that case it's more accurately called a diaeresis, while umlaut refers specifically to a vowel sound changing independent of context. Not an expert though
<ottidmes>
sphalerite: that is just overcomplicating things if you ask me, I dropped the French as soon as I was allowed to in school. On-topic: I can could also use --fallback to make my subsituter optional, but from what I saw it needs to first timeout, which is not ideal, so I will try to add the option anyway
<{^_^}>
→ 0724300b by @ryantm: datamash: 1.2 -> 1.3
<{^_^}>
→ b10d9ab6 by @pSub: Merge pull request #37278 from ryantm/auto-update/datamash
throwup has joined #nixos
<sphalerite>
umm... what might cause warning: substituter 'local' does not have a valid signature for path '/nix/store/s8jv3yihga3bpwlhf8b143n9ifm8g1c8-libvorbis-1.3.5-dev' ?
<sphalerite>
why would 'local' get used as a substituter at all?
<throwup>
does anyone here know what is going on with the nixos-unstable channel? It hasn't been updated for quite some time now. I heard that some of the hydra builds are failing?
nD5Xjz has joined #nixos
<ottidmes>
sphalerite: What is your nix.conf?
pxc has quit [Ping timeout: 246 seconds]
<sphalerite>
ottidmes: substituters = https://cache.nixos.org /mnt/ oh maybe it's the /mnt having unsigned versions of those paths
<pbogdan>
is it possible to enable network access in NixOS tests?
<ottidmes>
throwup: because as far as I know unstable is like the most bleeding edge to the next release, but because we are right on the edge of a new release, they froze 18.03 trying to get to 0 failures, so I guess unstable is basically inactive until 18.03 gets released, at which time it becomes like 18.09pre
<throwup>
ottidmes: but unstable-small still gets regular updates
<ottidmes>
throwup: could be that they just do not put effort into it, and small just happens to not be broken yet?
<throwup>
ottidmes: that does sound reasonable
<throwup>
ottidmes: what does "right around the corner" mean in this context?
<Mic92>
disasm: To be honest I never really used powerdns on nixos. I added myself, when the guy adding the package to nixos wanted a second maintainer.
<Mic92>
I have used powerdns before thoug
<disasm>
Mic92: would you like me to add myself as maintainer on powerdns as well? :)
nD5Xjz has joined #nixos
<Mic92>
disasm: why not
<Mic92>
it even has a test
<disasm>
we'll see how it works in a second... Compiling was easy, I love nix derivations :)
<disasm>
are nixos modules self documenting? triggered rebuilding nixos manual!
<sphalerite>
yes
<disasm>
that's awesome :)
<disasm>
can't believe I didn't realize that before!
<sphalerite>
how else is options.html supposed to work? :p
<disasm>
very true!
nD5Xjz has quit [Ping timeout: 240 seconds]
<ottidmes>
how does one access that manual, I have it enabled, but I only have it enabled so that the manpages work
<sphalerite>
man configuration.nix
<sphalerite>
or nixos-help
<disasm>
I've actually never used options.html (or at least haven't in close to a year). I find `git grep` faster.
<sphalerite>
disasm: you may also like `man configuration.nix` :)
<sphalerite>
exposes the structure a little more nicely than just reading the source
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @MichielDerhaeg to release-18.03 « spotify: 1.0.69.336.g7edcc575-39 -> 1.0.72.117.g6bd7cc73-35 »: https://git.io/vxOVb
<ottidmes>
how about that, I always disregarded man configuration.nix when people suggested it to others, thinking it was just the basics about how to setup your first configuration.nix
<makefu>
disasm: in irc you can link to the options.html page more easily :)
<sphalerite>
nope!
<ottidmes>
the nicer options.html found on nixos.org is not being generated locally I see, or is it? Changing the URL to options.html of the local build just gives me the big list
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @MichielDerhaeg to release-17.09 « spotify: 1.0.69.336.g7edcc575-39 -> 1.0.72.117.g6bd7cc73-35 »: https://git.io/vxOVj
<disasm>
makefu: yeah, I usually link to github :)
<clever>
ottidmes: that one uses an options.json that can be generated from nix
<clever>
ottidmes: but there is no easy way to make the javascript load the new json
knupfer has quit [Ping timeout: 265 seconds]
<ottidmes>
clever: I had hoped it was just exactly the same as the online version, but then extended with what you have locally
thc202 has quit [Ping timeout: 246 seconds]
ma27 has quit [Ping timeout: 246 seconds]
<disasm>
hmmm, editing the nixos module I just made doesn't trigger a rebuild of the service :(
<clever>
disasm: i think it doesnt take the imports of configuration.nix into account
<clever>
only the nixos modules listed in nixpkgs/nixos/modules
<disasm>
clever: yeah, it's in nixpkgs/nixos/module-list.nix
<disasm>
it deployed fine the first time, but had a typo in systemd service
<clever>
ah, and your changing the NIX_PATH to find it?
<ottidmes>
Hmm, I should create an issue for this, I just verified again, and indeed, some manpages are missing when you disable services.nixosManual, I get that man configuration.nix is gone, but why would nixos-rebuild's manpage disappear as well?
<CrazedProgrammer>
i have found something that i think is a little strange. i was optimising my boot times and one thing i did is not letting network.target wait for network-manager.service. i noticed that it still took 3 seconds to get from getty to actual login, and upon inspecting `systemd-analyze plot > /tmp/plot.svg`, i found that systemd-logind.service was taki
<CrazedProgrammer>
ng a whopping 5 seconds to run: https://i.crzd.me/emvjMEJR.png does anybody know why this could happen?
<ottidmes>
clever: Ehh, but how does that change my issue, my issue is with the fact that I do not want to generate the whole customized manual to get access to the static nixos-rebuild manpage, so in my opinion it should be separated from that
<clever>
ottidmes: yeah, that does seem like something that could be split out
<michas_>
Hi, is there an easy way to download the source of some package?
<clever>
michas_: nix-build '<nixpkgs>' -A hello.src
<ottidmes>
clever: It _should_ be split out :P I mean, it is actually the only reason why I re-enabled services.nixosManual again, which took forever to build, luckily it only seems to be so slow initially
amir_ has joined #nixos
<symphorien>
hello, I am adding a patch to fix the build of gosmore, whose source files are in dos style line ending, but when checking the file in git, git tells me that the file will be converted to unix style line ending. Then the patch is rejected by patch...