<drakonis>
hmm, how do i deal with power management?
<drakonis>
my cpu and gpu are running at full speed
<drakonis>
its eating my battery
ddellacosta has joined #nixos
dycan has joined #nixos
mexisme has joined #nixos
<dycan>
Hi all, I setup ngnix in local computer. http and https ://localhost works fine. But in my nixos CGE deployment. http shows index.html correctly. But https got ERR_TIMED_OUT. I telnet remoter_server 443. It connects. Where can I look into this problem?
m0rphism has quit [Ping timeout: 246 seconds]
<infinisil>
dycan: Did you open the https port?
<kvda>
Nginx logs?
<dycan>
infinisil: I can telnet remote_server 443. Does that count?
<infinisil>
Ah right, I somehow didn't see that
<dycan>
kvda: Good advice! Let me look into the log.
Ilya_G has joined #nixos
laika___ has quit [Remote host closed the connection]
<selfsymmetric-mu>
drakonis: I don't know if this is right but I personally say `network.networkmanager.enable = true;` and then use `nmcli` to manipulate WiFi.
<drakonis>
ah and my touchpad is still borked
<drakonis>
its not borked on other distributions
<drakonis>
i would like to just connect so i can work from inside the system
<Ralith>
how can I get a nix-shell environment with lld set up as the linker? I see mention of `llvmPackages_8.lldClang` but it doesn't seem to actually be a stdenv or anything
<selfsymmetric-mu>
samueldr: I haven't heard of that and would like to check it out. What's your config?
<drakonis>
changing the cpu governor has improved things a little bit
<selfsymmetric-mu>
samueldr: What makes it sometimes more practical? The graphical interface?
<samueldr>
selfsymmetric-mu: you just need to enable network-manager, and yeah, a dialog-like interface to pick networks, and settings
<samueldr>
in my case it's because my SSID has non-latin characters
<samueldr>
┻━┻ミ\(≧ロ≦\)
<samueldr>
(that's the SSID)
<iqubic>
Is that really the SSID you chose?
felixfoertsch has joined #nixos
<samueldr>
yes
<iqubic>
I didn't know SSIDs supported any unicode characters.
Ilya_G has quit [Ping timeout: 245 seconds]
felixfoertsch23 has quit [Ping timeout: 258 seconds]
<samueldr>
>> Originally IEEE 802.11 defined an SSID as being up to 32 bytes, but didn’t specify how to interpret the string (US ASCII? ISO-8859-1? Some IBM/Windows “code page”? UTF8? UTF16?), nor did it state any limitation on acceptable values.
<jlv>
The nixpkgs is just a branch with deoplete-dictionary added to vim-plugin-names (and generated vimPlugins updated)
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos
<infinisil>
Maybe add a bunch of -vvvvvvv's to see what it's doing
<infinisil>
Won't work with home-manager though
<infinisil>
You'll have to use some nix-* invocation for -v's
<clever>
fresheyeball: the nix-ssh user is configured to never give a shell, and to directly run nix-store, so its more secure when the keyfile lacks a passphrase
<clever>
jlv: the `import ./nixpkgs {}` is likely loading the same overlay, causing infinite recursion
delan has quit [Read error: Connection reset by peer]
boxdot has joined #nixos
<debclair>
Hello! I recently heard an opinion about NixOps "not being declarative" because of the Nix expression language being "turing complete". I wanted to know what's true about the statements and what makes NixOps declarative. If there's any literature you could recommend that would be great also.
delan has joined #nixos
delan has joined #nixos
delan has quit [Changing host]
<debclair>
Nevermind, I found the information.
zupo has joined #nixos
mexisme has joined #nixos
debclair has quit [Quit: Leaving]
<rople>
binary subsitutes explains it, guix needs them authed, whereas nix does it by default
dycan has quit [Ping timeout: 276 seconds]
Ilya_G has joined #nixos
drakonis has quit [Quit: WeeChat 2.4]
emptyfl4sk has joined #nixos
Ilya_G has quit [Ping timeout: 245 seconds]
fusion809 has joined #nixos
<fresheyeball>
is there a way to tell nix not to use the source folder name in the nix-store path?
emptyfl4sk has quit [Ping timeout: 276 seconds]
<fresheyeball>
if I have 2 directories with identical contents
<fresheyeball>
but different names
<fresheyeball>
nix rebuilds because the folder name is different
<teto>
wth with the "LightDM auto-login requires that services.xserver.desktopManager.default". Seems like the string is freeform and when I try to fix it i get stack overflow (possible infinite recursion). I just want it to work as before.
nexgen2 has quit [Remote host closed the connection]
<teto>
manveru: thanks but even with that it still crashes, stack overflow (possible infinite recursion) . I even removed my overlays to check it wasn't that
<manveru>
teto: that's why i'm asking for your config, there's clearly something non-standard going on :)
Tucky has joined #nixos
<manveru>
a wrong module config shouldn't result in infinite recursion
hmpffff has joined #nixos
<teto>
I tried to comment all my custom config to fallback on vanilla settings but seems useless
<manveru>
you can also try running with `sudo nixos-rebuild -vvvvv` to see what nix is doing
<manveru>
errr, add `switch` to that :)
<manveru>
or `build`
<talyz>
tobiasBora: By default, nix-mode doesn't attempt to indent correctly. If you add :config (setq nix-indent-function 'nix-indent-line) to your use-package call, it will.
<teto>
manveru: I did but that just says evaluating file '/home/teto/nixpkgs/lib/sources.nix before dying
<tobiasBora>
talyz: It seems that nix-indent-line does not indent the if statement, which is kind of an issue
<tobiasBora>
manveru: I tried smie-indent-line, nix-indent-line and indent-relative, but none of them manage to indent both if and multiline strings correctly... any idea?
<etu>
tobiasBora: Have you reported this with a small test case?
<manveru>
tobiasBora: i just run nix-format-buffer with nixfmt...
<etu>
tobiasBora: Because we have regression tests in nix-mode since earlier this year.
<etu>
tobiasBora: (we had some before as well, but since earlier this year we have it for indentation as well)
<teto>
johanot: the journal shows only "accepted connections"
Ariakenom has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #68407 → libnotify: use 3rd party patch to support replacing a notification → https://git.io/Jeq9a
<johanot>
teto: :(
<teto>
seems the message is linked with https://github.com/NixOS/nix/pull/3006, not sure if it explains the stack overflow. Will try to reboot on older generations but because of a lack of HDD, I usually don't have a lot
<{^_^}>
nix#3006 (by matthewbauer, 6 weeks ago, merged): Run test to determine if sandboxing is available
veske2 has quit [Quit: This computer has gone to sleep]
veske2 has joined #nixos
dom` has joined #nixos
<teto>
nevermind, that's one of my addition. switching to pristine unstable makes it go away. Sorry :'( what is strange is that I never had the problem before :/ and with the lightdm issue, I thought both were linked.
hyper_ch2 has quit [Remote host closed the connection]
bahamas has quit [Ping timeout: 240 seconds]
veske2 has joined #nixos
<jschievink>
what do you usually do if you're working in some upstream repo that uses bash scripts with `#!/bin/bash` shebang? patching them and remembering not to commit that change seems like a very annoying solution
<jschievink>
I know that `bash script.sh` works, but here I can't do that since one script directly invoked another
felixfoertsch has quit [Ping timeout: 246 seconds]
<dom`>
ghuntley: I'd like to have a nixos machine on azure
<dom`>
ghuntley: I can see what might be instructions on how to create a vhd but I don't understand them enough to attempt using them
psyanticy has joined #nixos
o1lo01ol1o has joined #nixos
emptyfl4sk has quit [Ping timeout: 258 seconds]
evilmonads has quit [Ping timeout: 258 seconds]
Ilya_G has quit [Ping timeout: 244 seconds]
o1lo01ol1o has quit [Ping timeout: 245 seconds]
arianvp has quit [Quit: WeeChat 2.4]
arianvp has joined #nixos
<__monty__>
jschievink: Wouldn't setting up a nix-shell help? (direnv and especially lorri can make it pretty painless.
<__monty__>
)
<arianvp>
why hasn't anybody come up with declarative config for weechat for nixos?
<arianvp>
maybe somebody has?
<arianvp>
what do you all use to configure weechat on your nixos machines?
<jschievink>
__monty__: that will bring `bash` into my `PATH`, yeah, but the scripts use an explicit `/bin/bash` shebang, which isn't where that bash is located
<__monty__>
Ah, patch them to use #!/usr/bin/env bash? Only explicit paths that should ever be in a shebang are /bin/sh and /usr/bin/env, imo.
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
Neo-- has joined #nixos
Profpatsch has joined #nixos
Profpatsch has left #nixos ["WeeChat 0.4.3"]
<Mic92>
Izorkin: I don't think we should do that yet. Is it really 100% compatible with iptables?
<Mic92>
It should be an option though.
mawis has joined #nixos
veske2 has quit [Quit: This computer has gone to sleep]
<Mic92>
Izorkin: However networking.firewall.package could default to iptables-nft if nftables is enabled.
<{^_^}>
[nixpkgs] @andir merged pull request #68409 → [19.03] buildRustCrate: add support for renaming crates → https://git.io/JeqHl
<{^_^}>
[nixpkgs] @andir pushed 2 commits to release-19.03: https://git.io/JeqQC
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @andir merged pull request #68410 → [19.09] buildRustCrate: add support for renaming crates → https://git.io/JeqHR
<{^_^}>
[nixpkgs] @andir pushed 2 commits to release-19.09: https://git.io/JeqQl
<Izorkin>
Mic92: iptables-compat correct work in my home server, use libvirt and docker. If packages are built using iptables-legacy, then the firewall works with iptables-compat - there will be no conflicts?
<rauno>
How can i pass package arguments with nixops/nixos config ?
<Mic92>
Izorkin: packages using iptables-legacy would mess up the firewall if nftables is actually used right?
hoijui has joined #nixos
<__monty__>
rauno: Usually it's just changing `pkgs.somePkg` to `(pkgs.somePkg.override { foo = pkgs.bar; snafu = true; })`.
veske2 has joined #nixos
mawis has quit [Ping timeout: 250 seconds]
o1lo01ol1o has joined #nixos
<rauno>
okay __monty__ but when its installed via module ?
<alexarice[m]>
rauno: use an overlay?
<Izorkin>
Mic92: iptables-compat automatically converts rules to nft format. iptables-compat uses the nftables firewall.
<Mic92>
Izorkin: Yeah. But is there an aquivalent for every iptables extension in nftables as well?
<Mic92>
Izorkin: At some point we could switch to nftables as the backend however the question is, how the transition would look like.
bahamas has joined #nixos
bahamas has joined #nixos
mawis has joined #nixos
<Mic92>
I mean there are probably people that would get upset if we break their firewall rules and they have to get in a plane to reboot their machines...
<Mic92>
Izorkin: I believe you that it works for rules generated by our firewall modules, but do you know how well the other commands here work? http://ipset.netfilter.org/iptables-extensions.man.html There is `networking.firewall.extraCommands` which allow to pass arbitrary iptables commands.
<Mic92>
Izorkin: The article mentions in the end that nft does not support all features of nftables. Hence I would propose that we first make iptables-nft optional for those who want to try and then think about the next steps.
<Mic92>
I need get to work now.
<Izorkin>
Mic92: Ok, not need rename iptables-legacy and iptables-compat?
<__monty__>
rauno: Hmm, some modules allow you to specify the package. If that's not the case an overlay seems like a good idea.
<Mic92>
Izorkin: we could rename it iptables-legacy, and have an iptables-compat package. (or a similar name)
<hyper_ch2>
is nftable ready for actual usage?
grumble has joined #nixos
<Izorkin>
Mic92: not need to change PR?
<rauno>
alexarice[m], __monty__ seems like it works yes, havent use overlays before
<rauno>
nixpkgs.overlays =
<rauno>
[ (self: super:
<rauno>
{
<rauno>
# enable ceph and issci for libvirt
<rauno>
libvirt= super.libvirt.override {
<rauno>
enableCeph = true;
<rauno>
enableIsci = true;
<rauno>
};
<rauno>
})
<rauno>
];
<rauno>
oops, sorry for not using pastebin :|
<alexarice[m]>
looks correct to me
<Izorkin>
hyper_ch: me use nftables in virtual machines
zupo has quit [Ping timeout: 245 seconds]
<rauno>
vyorkin has quit [Remote host closed the connection]
<hyper_ch2>
Izorkin: :)
<Twey>
I notice that the Nix store seems to collect memory roots during running ({memory:100} -> /nix/store/8q37mq51bj1yfs1zprsv1yj134gs6488-dbus-glib-0.110) and they don't necessarily go away. Recently I'm running pretty close to my hard drive limit, and I've noticed that I frequently run out of space and have to reboot-then-GC in order to free up space to do things.
asymptotically has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
hyper_ch2 has joined #nixos
ThatDocsLady_ has joined #nixos
zupo has joined #nixos
ThatDocsLady has quit [Read error: Connection reset by peer]
<__monty__>
I'm on a very resource constrained 32bit machine. Apparently there's no binary for taskell so I'm trying to at least disable tests. `(taskell.override { doCheck = false; })` fails with unexpected argument 'doCheck'. What am I doing wrong?
<makefu>
.override only lets you override parameters which are provided via callPackage. This is somewhat confusing, esp. when you do this the first time
captn3m0 has quit [Ping timeout: 246 seconds]
emptyfl4sk has quit [Ping timeout: 276 seconds]
rople has quit [Quit: rople]
rople has joined #nixos
veske has quit [Quit: This computer has gone to sleep]
<{^_^}>
[nixpkgs] @lheckemann pushed commit from Eamonn Coughlan to release-19.09 « rstudio: fix build with new hunspell-dicts »: https://git.io/JeqbN
<__monty__>
Hmm, overrideAttrs (as: { doCheck = false; }) fails to prevent compiling tasty and hedgehog. Is this because a dependency also wants tests? Can I recursively set `doCheck = false` for a package?
<alexarice[m]>
ah that's less hacky than what I was thinking
<alexarice[m]>
looks good to me
pbb has joined #nixos
<ddima>
manveru: wasm-pack tries to write stuff to $HOME which is verboten (this is easier to fix), but furthermore it also tries to go and download stuff off the web, which is also forbidden, so likely it would require some patching around (or flags I am not aware of) to get it working.
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #68355 → skydive: remove it from nixpkgs → https://git.io/JeLYD
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JeqNp
<ddima>
manveru: with nix-shell you could toy around with it a bit more liberally
<__monty__>
Hmm, was thinking of a smaller hammer but that'll do : )
<manveru>
ddima: jup, i did that all today and yesterday :|
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @nlewo to release-19.09 « skydive: remove it from nixpkgs »: https://git.io/JeqAT
<manveru>
ddima: i know the issues it causes, but not how to actually make it see the dependencies
orivej has quit [Ping timeout: 245 seconds]
<manveru>
ddima: my last idea would be to somehow wrap the rustc executable and force the `--extern` flags in that way
<ddima>
manveru: ahk, I thought you were unsure about the permission denieds etc.
<alexarice[m]>
__monty__: I'm not sure if this will stop pulling in test dependencies. I had a similar problem a while back with some test package not building on ghcjs and the only fix was to set the package to null in the override and then disable tests
<manveru>
no, i straced it, it tries to find/create the crates.io repo in $HOME
<manveru>
just tried to make the example as basic as i could, as none of my attempts have worked so far
<manveru>
in the worst case i'll have to just run wasm-pack manually and add the output to the repo...
<manveru>
should be platform-independent anyway, right?
<__monty__>
infinisil: Hmm, that hammer's *too* big. Now it's trying to build ghc. : s
<infinisil>
Huh, I thought I tested that it doesn't do that
orivej has joined #nixos
Makaveli7 has quit [Quit: WeeChat 2.6]
<infinisil>
No I'm sure, it doesn't do that for me
<infinisil>
__monty__: Such an overlay: https://gist.github.com/105c8d1eaca984ff5c69f9bf87d0eb8c with nixpkgs master (bd61f91fd10ee730c66b721876c728e62f23691b), and `nix-build -A haskellPackages.primitive --arg overlays '[ (import ./overlay.nix) ]'` doesn't build GHC
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<__monty__>
infinisil: I'm also setting library profiling and maxbuildcores, would that make a difference?
orivej has quit [Ping timeout: 240 seconds]
growpotkin has joined #nixos
<infinisil>
Remove them to see :)
<infinisil>
I wouldn't think it should, because the ghc build shouldn't be overridden with such an overlay
asymptotically has quit [Quit: Leaving]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ddima>
manveru: have you tried using the other path, with rustBuildPackage instead of carnix?
<ddima>
manveru: I suspect it might be a bit friendlier because it has all those cargo fixups already in there
<manveru>
ddima: this is with crate2nix, as cranix wouldn't even parse my dependencies without crashing
<manveru>
i guess i could use rustBuildPackage... but that has issues with reproducibility, afaik
<__monty__>
infinisil: Yeah, with the overlay the set of things to be built is undoubtedly bigger. Didn't see ghc at a glance with just `doCheck = false` but it's still too much building so giving up on taskell again, for now.
<ddima>
manveru: dont think Im aware yet of reproducibility issues with buildRustPackage - it should still respect Cargo.lock etc, you might have to generate one first though with the deps from the submodules etc.
drewr has quit [Quit: ERC (IRC client for Emacs 26.3)]
<dhess>
What's the "hip" way to convert Python projects (requirements.txt + venv) to Nix these days?
<mdash>
dhess: pypi2nix works in many cases
<dhess>
It's always been so hit-and-miss for me in the past
<dhess>
mdash: cool thanks
<__monty__>
I used buildPythonPackages mere hours hence : )
dom` has quit [Ping timeout: 245 seconds]
drewr has joined #nixos
<dhess>
__monty__: you mean, just manually creating a derivation from the requirements.txt?
ng0 has quit [Ping timeout: 260 seconds]
<dhess>
That's about the only successful way I've done it in the past, and it's fine for projects with not much velocity, but for actively developed projects, I'm looking for something automated.
<__monty__>
Oh, the project didn't have one. Now I see the problem.
<dhess>
Python packaging is such a disaster.
<dhess>
Multiple simultaneous disasters, in fact.
<mdash>
dhess: true :(
<__monty__>
Yep, and py2 will be sorely missed.
<dhess>
__monty__: oh god, that will be the mother of all disasters.
<dhess>
there will be so, so many popped boxes because of that decision.
<Twey>
My coworker has discovered that his nix-shell is being pinned to a particular core, meaning that any builds he does in it are effectively single-threaded… is there any way to stop this happening?
<symphorien>
Twey: is is a build at evaluation time because of IFD ?
nspin has joined #nixos
<bahamas>
does anyone have a nix setup for django projects? specifically, I'm interested in how to handle non-Python files like templates and static files
dom` has quit [Ping timeout: 276 seconds]
<bahamas>
assuming that the python builder doesn't handle them automatically. if it does, should I just put everything in a `src` directory?
<niksnut>
Twey: strange, nix-shell is supposed to reset its CPU affinity
<niksnut>
you could check whether nix-shell -p hello --run 'taskset -p $$' prints ff
<dom``>
also nix-shell -p azure-cli does not work so the nix / nixos / azure story is not great right now
<{^_^}>
[nixpkgs] @worldofpeace pushed 4 commits to master: https://git.io/JeqjL
misuzu has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/Jeqjq
<{^_^}>
[nixpkgs] @peti merged pull request #68362 → ghc: compile with DWARF support by default → https://git.io/Jeq0m
inkbottle has quit [Ping timeout: 244 seconds]
jtojnar has quit [Ping timeout: 268 seconds]
dansho has joined #nixos
<yorick>
anyone know anything about buildDunePackage? I have a multiple-package project, but it can't find any of the dependencies of the one I want to build
dasj19 has quit [Quit: dasj19]
jtojnar has joined #nixos
Zer0xp has quit [Ping timeout: 240 seconds]
rudzha has joined #nixos
waleee-cl has joined #nixos
veske2 has quit [Quit: This computer has gone to sleep]
<joko>
Hey, I would like to modify a Ruby app (https://github.com/asciidoctor/asciidoctor-reveal.js), is there a tutorial to follow? For what is worth, I have managed to use the upstream gem, but I want to make some changes to its source code before using it
dom`` has quit [Ping timeout: 276 seconds]
rudzha has quit [Client Quit]
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @Ma27 to release-19.09 « matrix-synapse: fix startup »: https://git.io/JemJE
<joko>
What I've tried so far: bundix -l to generate gemsets.nix, generate a shell.nix file with bundlerEnv, but "bundle exec rake build" inside the shell fails, mentioning "There was an error parsing `Gemfile`: There are no gemspecs at /nix/store/j0jbj8nl07sdimwm9mcn97b6wjiikgqx-gemfile-and-lockfile. Bundler cannot continue."
<manveru>
joko: try just `rake build`
emptyfl4sk has joined #nixos
<joko>
manveru: same error... One more hint: "Asciidoctor.js 1.5.9 requires an unreleased Opal 0.11.99.dev"
<{^_^}>
[nixpkgs] @Pamplemousse opened pull request #68426 → pythonPackages.ana: init at 0.06 → https://git.io/JemJb
vyorkin` has joined #nixos
<{^_^}>
[nixpkgs] @Pamplemousse opened pull request #68428 → pythonPackages.cooldict: init at 1.04 → https://git.io/JemJN
<{^_^}>
[nixpkgs] @Pamplemousse opened pull request #68429 → pythonPackages.mulpyplexer: init at 0.08 → https://git.io/JemJp
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<yorick>
nspin: hm, trying that, it says builder for '/nix/store/ndaq50did82mrixq3lz5ar23m7cadvgh-ocaml4.07.1-tezos-stdlib-0.0.1.drv' failed to produce output path '/nix/store/flrl8rbg9aipyr3axa1pz6kzpy1130lm-ocaml4.07.1-tezos-stdlib-0.0.1'
<clever>
yorick: any messages above that?
<yorick>
installing, post-installation fixup, strip is ...
<alexarice[m]>
`vnstat` definitely thinks I'm downloading something, thanks for the help
<alexarice[m]>
clever++ srhb++
<{^_^}>
clever's karma got increased to 199, srhb's karma got increased to 75
Ilya_G has joined #nixos
<clever>
alexarice[m]: you can also use `iftop` (it needs root) to see exactly which host is doing the traffic
veske2 has quit [Ping timeout: 245 seconds]
<alexarice[m]>
I think I was more confused as my nix doesn't seem to be showing the curl output very well
rembo10 has joined #nixos
Ilya_G has quit [Ping timeout: 245 seconds]
<nspin>
yorick: My bad, there are OPAM files in the tezos repo. However, after a look a the opaline source, it seems that the tezos repo layout isn't handled correctly by opaline.
<{^_^}>
[nixpkgs] @Pamplemousse opened pull request #68430 → pythonPackages.z3-solver: init at 4.8.5.0 → https://git.io/JemTY
<yorick>
nspin: does the tezos repo have .install files?
<nspin>
Those are generated by dune. You can see the state of the build at the point where it fails (in this case, at the very end) with the -K parameter to nix-build
<yorick>
okay, great! :)
emptyfl4sk has joined #nixos
<{^_^}>
[nixpkgs] @furrycatherder opened pull request #68431 → nixos/dnsmasq: add an option to log DNS queries → https://git.io/JemTC
<yorick>
nspin: yes! that built stdlib, thanks!
<{^_^}>
[nixpkgs] @AmineChikhaoui opened pull request #68432 → Ktorrent: cherry-pick 5.1.0 -> 5.1.2 update to 19.09 → https://git.io/JemTB
emptyfl4sk has quit [Ping timeout: 246 seconds]
init_6 has quit [Ping timeout: 240 seconds]
<nspin>
yorick: It appears that `ln -s src/lib_stdlib/{*.opam,*.install} ` in preInstall does th trick.
<nspin>
Great!
<judson_>
I'm trying to write a module that piggybacks on another.
<judson_>
I've got two expressions like:
<yorick>
nspin: okay, now it can't find vendored dependencies
<evanjs>
So I know it came up the other day, but is the weechat service sort of borked? I followed the instructions to modify screenrc, but still get "Access to session denied"
virus_dave has quit [Remote host closed the connection]
<judson_>
clever, I'm trying mkMerge anyway on options, and get value is a string while a set was expected, at <19.03>/lib/modules.nix:219:25
<clever>
yeah, sounds like it wont work
drakonis has quit [Ping timeout: 276 seconds]
virus_dave has joined #nixos
seekerus3r[m] has joined #nixos
pro-src has left #nixos [#nixos]
misuzu has joined #nixos
<srhb>
alexarice[m]: I keep a gc root around for the source just in case :)
Ilya_G has joined #nixos
<alexarice[m]>
srhb: Is it usual to need to reboot after redoing fonts, I've messed them up pretty bad
<srhb>
alexarice[m]: I couldn't say, I don't tend to mess with them a lot. I imagine rebooting would always be overkill however.
<evanjs>
Hrm. Are there any guidelines for contributing to Nix documentation? e.g. What items can/should be documented? I added a module to hardware but I do not see any xml files in hardware, so is there a better place for it/does hardware documentation belong in the manual?
<srhb>
(Even if it's probably easier than the minimal fix)
<evanjs>
Questions like that
<alexarice[m]>
I just deleted a load that I had randomly put on when I first installed but it appears some of those were definitely in use
<alexarice[m]>
ah turns out `source code pro for powerline` is not part of `source code pro`
<clever>
judson_: some modules in nixpkgs, put the options into a dedicated nix file, then import it in several places
<judson_>
clever, in this case I'm trying to extend a module from nixpkgs in my own config.
<clever>
judson_: ah, not sure then
<judson_>
There's a thing I'm finding that I do quite a lot, which is build "behavior" modules out of others.
<judson_>
In this case it's a little tweak on taskserver, but it requires acme and httpd (or whatever webserver) so I'm not sure if it would suit nixpkgs.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<judson_>
I've been advised to look at NUR to distribute these, and I'm considering it.
<judson_>
I might just copy and paste...
<judson_>
But it seems like mkOption (or the options parameter to moduleEval) does something with the options set...
<hpfr[m]>
How is regular libreoffice not in the cache? My laptop is trying to build it right now :(
<srhb>
hpfr[m]: Which channel?
<__monty__>
hpfr[m]: I've seen this happen before. Probably because it's huge and would unnecessarily hold up channels.
<dom```>
symphorien: I am slightly confused: it seems I can nix-env -i and stuff gets installed but I can't do nix-shell
<hpfr[m]>
Home manager, updated a few days ago
<srhb>
hpfr[m]: I mean which nixpkgs channel
jgeerds has joined #nixos
wildtrees has joined #nixos
<srhb>
hpfr[m]: The big (nixos-, not small) ones should only lack libreoffice if it's actually broken, in which case building it locally won't help you.
<srhb>
Unless a transient error occurred.
<symphorien>
dom```: what happens when you nix-shell ?
<hpfr[m]>
Nixos unstable, updated a few days ago
<symphorien>
(and by the way, don't use nix-env -i without -A)
<srhb>
hpfr[m]: That's the corresponding Hydra build..
o1lo01ol1o has quit [Remote host closed the connection]
<srhb>
hpfr[m]: Which looks good to me. Might you have an overlay interfering with a dependency or something like that? You can check if your output hash matches the one on Hydra
<hpfr[m]>
srhb: So it should be getting from cache then
Myhlamaeus1 has joined #nixos
zupo has joined #nixos
<srhb>
hpfr[m]: Yes, I can do the following: nix-store --realise /nix/store/k8mgdibpysm6cgy0rbny0n4ibbh9nh26-libreoffice-6.2.6.2
dsx has joined #nixos
<hpfr[m]>
srhb: I have overlays for my kernel and keepassxc so I doubt it
<srhb>
hpfr[m]: What does `nix eval nixpkgs.libreoffice.outPath` say?
<{^_^}>
[nixpkgs] @jtojnar pushed commit from @manveru to release-19.09 « sup: remove »: https://git.io/JemIO
evilmonads has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @peti opened pull request #68436 → pythonPackages.pytest: Revert "4.6.5 -> 5.1.0 in case of Python 3" → https://git.io/JemIZ
aiowej has joined #nixos
emptyfl4sk has joined #nixos
<aiowej>
Hi. A year ago when I last touched my nix machine, I ran a program with nix-shell -p. Since then a new version of the program came out, which is in the nixpkgs github page, and is now using python3. When I run `nix-env -u` followed by `nix-shell -p my-program`, I still get the old version. How can I flush the old one out of my system, and only run the latest version? Many thanks
logzet has joined #nixos
logzet has quit [Client Quit]
cdepillabout has joined #nixos
<clever>
aiowej: `nix-env -u` will only update things installed by `nix-env -i`, and only to the latest version in your current channel
<clever>
aiowej: you first need to `nix-channel --update` to download the new package list, and probably dont need `nix-env -u`
bahamas has joined #nixos
dom``` has quit [Ping timeout: 240 seconds]
dom``` has joined #nixos
Myhlamaeus1 has quit [Remote host closed the connection]
<srhb>
hpfr[m]: Well.. Now you've managed to get me worried. :-)
<srhb>
I see two distinctly different libreoffice drvs producing the same output..
<evanjs>
Okay, trying it out a bit, it looks like if I just put the <hardware-module>.xml file next to the nix expression, assign it via meta.doc, and build the documentation, it'll simply place it between Input Methods and Profiles. Not sure if that's random or where hardware stuff goes but *shrugs*
<evanjs>
(If there were any docs in <nixpkgs/nixos/modules/hardware> I'd use those as reference
dom``` is now known as cinimod
orivej has quit [Ping timeout: 240 seconds]
dermetfan has joined #nixos
<niksnut>
Twey: right, that does an import-from-derivation so it will be bound to a single CPU
<aiowej>
clever: Thanks for replying. It doesn't really change anything - running `nix-channel --update` only prints "unpacking channels..." and exits. I assume it's because nix-channel --list shows no entries. So I did `nix-channel --add https://nixos.org/channels/nixos-19.03 nixos`, and am now running `sudo nixos-rebuild switch`. Doing so ironically tells me to run `nixos-rebuild` - it tells me "error: evaluation aborted with the following
<aiowej>
error message: ' This version of Nixpkgs requires Nix >= 2.0, please upgrade:", followed by instructions to run `nixos-rebuild`. How can one get out of this trap?
<clever>
aiowej: you want to do the --update as root, not add another channel to non-root
_ris has joined #nixos
ixxie has joined #nixos
<aiowej>
clever: Thanks again for replying. `sudo nix-channel --list` shows the added entry. `sudo nix-channel --update` shows "downloading Nix expressions from 'https://releases.nixos.org/nixos/19.03/....." and another line about downloading, and then "unpacking channels...". Thereafter running `sudo nixos-rebuild switch` gives the same error about evaluation failing with the message "This version of Nixpkgs requires Nix >= 2.0, please
<aiowej>
Will that install unstable nixos? I'd prefer the stable kind - as I'm obviously not savvy enough to wing this
<aiowej>
clever:
<clever>
aiowej: it will install whatever version your channel is pointing to
<aiowej>
Thank you
<evanjs>
Okay, so better question. Rather than document how to get OpenRazer working on i3, I've noticed some services just _turn DBUS on_. If OpenRazer requires the socketActivated option on some wms, might it be appropriate to just enable the option when the openrazer hardware module is enabled?
<tokudan[m]>
trying to install NixOS on a Dell XPS 13 9380 from a usb stick: I'm unable to boot the installation. i get about a second of blinking led on the usb stick, then it stops and no message on the screen. usb stick made using dd if=nixos-graphical-19.03.173476.09e633d6805-x86_64-linux.iso of=/dev/sdb bs=4096.
<__monty__>
Hmm, having trouble with a python package: "Could not find a version that satisfies the requirement dbus-python>=1.1" but the dbus-python in nixpkgs is 1.2.4, surely that's >=1.1?
<digitalgrease>
__monty__: is it being called with the right version of python/pip
<__monty__>
digitalgrease: I'm not sure, tried both pythonPackages and python3Packages. Afaik it should be compatible with either.
zupo has joined #nixos
Raylier has joined #nixos
<aiowej>
clever: Thank you for replying again. It still is failing, after running the two first commands you sent I ran the third, `nixos-rebuild boot --fast`. Then I got a hellofalong error about failing to evaluate fold something. For debugging I published the full error at https://pastebin.com/DNXEuP4s.
<srhb>
zacts: The announcement on nixos.org is likely to contain a link, like it does right now for 19.03 :)
<aiowej>
srhb: maybe that would have been a better idea... I'm totally lost about all this.
<zacts>
so I do Not want to just do; s/system.stateVersion = 19.03/system.stateVersion = 19.09/ and then nixos-rebuild switch --upgrade
<zacts>
it's more involved than that
ixxie has quit [Ping timeout: 244 seconds]
<srhb>
zacts: Don't touch stateVersion ever. :P
<zacts>
Ok :-)
<aiowej>
clever: it printed a lot - building a lot of packages. Ending in "Installation finished. No error reported." so that's nice. Are there now any further steps to take to be on the lastest version of Nix, or am I now on the very edge of stable?
<zacts>
hm... I wonder if I can try and test out 19.09 now before it's released
<srhb>
zacts: You absolutely can. No warranty though :)
<zacts>
well, if I encounter issues I can just rollback right?
<srhb>
zacts: Sure, unless we broke something that breaks something for you permanently.
<zacts>
oh
<srhb>
Probably not, but that's testing for you :-P
<zacts>
well, this isn't a crucial server. I'll just make backups.
<srhb>
That sounds sensible ;-)
<clever>
aiowej: you then need to reboot
<aiowej>
clever: Thank you. Running `nix upgrade-nix` should not do it?
<aiowej>
clever: the `nix` command is now available, unlike before
<clever>
aiowej: the switch-to-configuration already changed the version of nix
<aiowej>
clever: Ok. I'll reboot the computer. Cross your fingers! Thanks for helping me out
<clever>
yep
<__monty__>
clever: Does this mean the mac os code is missing removal of the route? http://ix.io/1UKS
<{^_^}>
[nixpkgs] @gnidorah opened pull request #68440 → openxray: init at 421 → https://git.io/JemLC
<clever>
__monty__: toxvpn doesnt remove the routes when a friend goes offline, but still tries to re-add them when they come back online
orivej has joined #nixos
<clever>
__monty__: should be safe to ignore
<__monty__>
clever: Sure but I didn't notice this on linux so far. Is it quieted there?
<clever>
__monty__: i think so
shibboleth has quit [Quit: shibboleth]
<__monty__>
I'll put it on the todo list : )
<{^_^}>
[nixpkgs] @jonringer opened pull request #68441 → nixos/nextcloud: fix postgresql/redis test → https://git.io/JemLE
asymptotically has joined #nixos
<{^_^}>
[nixpkgs] @lopsided98 opened pull request #68442 → openjdk8: use lndir instead of single symlink to JRE → https://git.io/JemLg
<{^_^}>
[nixpkgs] @zimbatm opened pull request #68444 → repmgr: init at 4.4.0 → https://git.io/JemtU
<jlv>
Anyone here with vim plugins experience? I've been stuck trying to get deoplete-dictionary added for a while. It looks like it cannot find some source files from deoplete. Adding deoplete as a dependency just causes more errors.
<jlv>
As far as I can tell, the deoplete-dictionary directory is supposed to be merged with deoplete-nvim, and only the deoplete-nvim plugin is loaded, which will then find the new source added to its directory by deoplete-dictionary, but we can't really do that in nix.
evanjs has joined #nixos
o1lo01ol1o has joined #nixos
asymptotically has quit [Remote host closed the connection]
asymptotically has joined #nixos
civodul has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @jtojnar opened pull request #68446 → gnome-multi-writer: init at 3.32.1 → https://git.io/JemtG
emptyfl4sk has quit [Ping timeout: 276 seconds]
<{^_^}>
[nixpkgs] @andir pushed 35 commits to staging-19.03: https://git.io/JemtZ
ixxie has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<nhill>
So I can't see where it's setting the user as `mpd` and how I would change that
<symphorien>
Maybe the module changed between your nixpkgs revision and master
<nhill>
symphorien: you talking to me?
<symphorien>
Yes
<nhill>
don't understand what you're going for
<nhill>
I updated channels
<symphorien>
Run nixos-version please
<nhill>
18.09.2574.a7e559a5504 (Jellyfish)
<nhill>
Haven't updated yet. The problem is pulseaudio is running as my local user, but when mpd wants to output audio it fires up another pulseaudio under the mpd user
<nhill>
So I have two pulseaudio daemons competing for the sound card.
<nhill>
I just want to change the user of the mpd service to my local user
<symphorien>
ah you are not looking at the right file
wfranzini has quit [Remote host closed the connection]
<nhill>
I'm imagining it's got to just be a simple config option
<nhill>
clever: I think I need to enable tcp pulseaudio module and allow connections, but I have no idea how to set pulseaudio options like this in nixos
<clever>
nhill: the unix socket stuff should still work, i'm just not sure how to setup the discovery
<clever>
nhill: if you keep pavucontrol open, it will force the proper pulseaudio daemon to keep working, and give you better feedback when things are working
<nhill>
clever: makes no difference
<nhill>
clever: I am either able to use mpd, but it opens it's own pulseaudio... or mpd cannot play
<nhill>
I restarted everything with pavucontrol open
azdle has quit [Read error: Connection reset by peer]
<kiwaalkjdskjdkjf>
hi. i installed the terminal emulators `urxvt` and `st` with nix on debian. i can't type in umlauts (öäü) in there. urxvt doesn't react at all and st writes a question mark when i type in an umlaut. what's wrong?
<{^_^}>
[nixpkgs] @d-goldin opened pull request #68461 → zeroc-ice-36: fix build for gcc8 → https://git.io/JemOm
Ilya_G has joined #nixos
ddellacosta has joined #nixos
growpotkin has quit [Ping timeout: 245 seconds]
growpotk- has joined #nixos
Ilya_G has quit [Ping timeout: 244 seconds]
<Zer000>
I'm trying to use the haskellPackages.squeal-postgresql package in my development, but the version in nixos is 0.4 and marked as broken. I see that on hackage there is a more recent version, is there any way I can override that haskell package in my shell.nix?
Ilya_G has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
Ilya_G has joined #nixos
Ilya_G has quit [Read error: Connection reset by peer]
fendor_ has quit [Ping timeout: 246 seconds]
Ilya_G has joined #nixos
ddellacosta has quit [Ping timeout: 244 seconds]
dermetfan has joined #nixos
tyrion-mx has joined #nixos
<tyrion-mx>
Hello, I am new to nixos, I am wondering why I get "command not found" when I try to run "gpg", given that I have "programs.gnupg.agent = { enable = true; enableSSHSupport = true; };" in my configuration.nix
Ilya_G has quit [Ping timeout: 246 seconds]
<infinisil>
tyrion-mx: You did a nixos-rebuild switch?
<tyrion-mx>
Yes, many time since I added that option
<Acou_Bass>
did you also enable programs.gnupg as well? not sure why you'd have to but could explain it
<tyrion-mx>
Not sure if it is a good way to debug the issue, but doing `nix-store -qR /nix/var/nix/profiles/system | grep gnupg` gives me two entries
<infinisil>
Acou_Bass: There's no such thing to enable
<infinisil>
typetetris: What's your PATH?
<Acou_Bass>
ahh my mistake, misread the one you have enabled :P sorry
<Acou_Bass>
hmm
<Acou_Bass>
what are the two entries that command gives you?
coderobe has quit [Read error: Connection reset by peer]
mbrgm has quit [Ping timeout: 276 seconds]
mbrgm_ is now known as mbrgm
vonfry has quit [Client Quit]
asymmetric has joined #nixos
vonfry has joined #nixos
kvda has joined #nixos
endformationage has quit [Ping timeout: 245 seconds]
<tyrion-mx>
I am using lxappearance to set the gtk theme to breeze, but I get errors that the icons are missing even though I installed the breeze-icons package
<tyrion-mx>
any hints?
emptyflask has joined #nixos
<{^_^}>
[nix-pills] @shepting opened pull request #116 → Spelling fix for learned. → https://git.io/Jem3m
tyrion-mx has quit [Remote host closed the connection]
Ilya_G has joined #nixos
alex`` has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @JustinLovinger opened pull request #68464 → vimPlugins.deoplete-dictionary: init at 2019-04-16 → https://git.io/Jem3Y