civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
freeman42xx has quit [Quit: Leaving]
<zeta_0>
nevermind i finally found some documentation
bukkitgerman8608 has quit [Ping timeout: 265 seconds]
bdju has quit [Read error: Connection reset by peer]
bdju has joined #nixos
is_null has quit [Remote host closed the connection]
dsiypl4_ has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixpkgs] @Pamplemousse opened pull request #85112 → [WIP] ptags: init at 0.3.2 → https://git.io/JvjgX
broccoli has joined #nixos
brococoli[m] has joined #nixos
glittershark has joined #nixos
<glittershark>
holy crap pkgs/development/node-packages/generate.sh takes a while
<glittershark>
I just wanted to add one node package :'(
codygman has quit [Read error: Connection reset by peer]
<numkem>
I've discovered cachix and it seems like a very nice service, is there one with emacs 27 or one that would cache the emacs overlay? my laptop isn't the most powerful and while it's not taking that long I'd like to be able to leverage a cache (also a nice way to understand how it works)
hoplaahei has quit [Quit: Konversation terminated!]
codygman has joined #nixos
codygman__ has quit [Ping timeout: 240 seconds]
reallymemorable has joined #nixos
<energizer>
idk why cache.nixos.org can't just host built versions of all the emacs packages
hoplaahei has joined #nixos
erictapen has joined #nixos
__init__ has quit [Remote host closed the connection]
<infinisil>
It's just a matter of somebody adding pkgs.emacs27
<hoplaahei>
I created a new 'download' dataset. It appears in hardware-configuration.nix in the same format as the root and home datasets after a nixos-generate-config --root /, but it doesn't mount on boot. What am I missing?
<hoplaahei>
For zfs I should have mentioned.
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JvjgA
<hoplaahei>
mountpoint is legacy
<infinisil>
hoplaahei: Does it appear in /etc/fstab?
<energizer>
infinisil: could hydra also build python packages with poetry2nix from single-package lockfiles?
<infinisil>
energizer: Yeah, pkgs.poetry is built like this already
<zeta_0>
i finally finished setting up shell.nix with ghcide and ghcWithHoogle, all i had to do with the env vars was copy them from sessionVariables in my home.nix, paste them into shell.nix's shellHook, and prepend them with export: https://dpaste.org/Qhyd
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « qjackctl: 0.6.1 -> 0.6.2 »: https://git.io/Jvj2f
simukis__ has joined #nixos
<numkem>
I keep reading and re-reading the documentation related to the channels. I can't seem to see the flow between a PR merged into master of nixpkgs and when it its the nixpkgs-unstable or nixos-unstable channel. I know it's related to an hydra build but how long does it usually takes for that to happen?
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « qsynth: 0.6.1 -> 0.6.2 »: https://git.io/Jvj2t
<hoplaahei>
infinisil: actually no. Shall I just manually create the entry? I'm wondering why it wasn't created automatically?
<infinisil>
energizer: Not really, but I guess it's there if the standard python infra doesn't work
simukis_ has quit [Ping timeout: 265 seconds]
rogue_koder has joined #nixos
<energizer>
infinisil: since i use poetry in my projects, it'd be nice to have all those packages already built on the poetry version instead of having to built numpy/scipy/... myself
<infinisil>
hoplaahei: Don't create it manually, this question was to find out where the problem lies
<infinisil>
hoplaahei: What does `nix-instantiate --eval '<nixpkgs/nixos>' -A 'config.fileSystems."/the/correct/path".device'` output (with the correct path inserted)?
<hoplaahei>
infinisil: it says configuration.nix wasn't changed because it already exists. But when I created the datasets from the installer, it didn't add any entries to configuration.nix. Does the installer have a separate way to add the fstab entries?
<energizer>
infinisil: would nixpkgs accept a list of packages to be built like that, just for convenience of having hydra-built packages available?
<numkem>
hyperfekt: in those cases, is it better to just do a nix-build switch -I <path_to_repo>?
<hoplaahei>
infinisil: that command (when run for the dataset I want to add 'download') says: "rpool/download"
qrnteen has quit [Quit: Leaving]
<infinisil>
energizer: Probably not. The usual idea with nixpkgs is to have a single set of latest dependencies that can be used for everything, without multiple versions of things
<hoplaahei>
But nixos-generate-config --root / does say 'warning: not overwriting existing /etc/nixos/configuration.nix'
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « pam_krb5: 4.8 -> 4.9 »: https://git.io/Jvj2W
<infinisil>
energizer: But tools like poetry2nix always build exact versions, meaning they would almost never match one from nixpkgs, and everybody might need a differetn one
<hoplaahei>
I thought it would be enough to generate the sources hardware-configuration.nix
<energizer>
infinisil: that's exactly the problem i have, i'm constantly having to build numpy :)
<hyperfekt>
numkem: as long as you make sure that the branch is based off of unstable, not master. or you'll rebuild the world. you can do what you suggested or outright set $NIX_PATH to point to the one you want
<infinisil>
hoplaahei: That's fine, nixos-generate-config writes the filesystem stuff in /etc/nixos/hardware-configuration.nix
<hyperfekt>
numkem: not necessarily recommended but it's very low friction
<numkem>
hyperfekt: interesting, I won't lie this is my 3rd try to use nixos as my personal driver and I'm trying to stick to it this time and go over the learning wall.
<energizer>
infinisil: how much work is involved in hosting a hydra instance?
anirrudh has quit [Quit: Leaving]
<infinisil>
energizer: Nah that won't happen. hydra would have to build all versions of numpy for every nixpkgs update then to satisfy everybody
<hoplaahei>
infinisil: I thought I did, but maybe I've been dumb...
<energizer>
infinisil: yeah that's what i want :-)
<numkem>
hyperfekt: I'm trying to understand the graph you linked, X is time as timestamp but Y is the number of builds? Would looks like using nixos-unstable-small would be better?
<hoplaahei>
I'll try and boot into it now
<hyperfekt>
i think if you'e familiar with git you should just point nixpkgs in $NIX_PATH to a checkout and use that for all your patching and pinning needs
<infinisil>
energizer: And hydra already builds tens of thousands of packages, constantly struggling due to the capacity
<{^_^}>
[nixpkgs] @jonringer pushed commit from @Frostman to master « docker-compose: 1.25.4 -> 1.25.5 »: https://git.io/Jvj2w
<infinisil>
hoplaahei: No need to reboot if you mean that. Just do a `nixos-rebuild switch` and see if it works after that
<energizer>
infinisil: maybe it could build $current_version of numpy that way?
<hyperfekt>
numkem: i think y might not be relevant at all ^^ the small variants don't build everything so using them is only advised if you need updates very quick and only use essentials or can build the rest yourself relatively quickly
<numkem>
hyperfekt: I'd like to get consul 1.7.2 that I did a PR for that was merged it last week. And per the branches, nixpkgs-unstable doesn't have it while nixos-unstable and nixos-unstable-small does. Yet the channel doesn't have it
<numkem>
hyperfekt: this might be more what I'd want. I only take some packages from unstable rather than the whole OS
<hyperfekt>
numkem: have you updated your channel? if your channel is nixos-unstable and the branch nixos-unstable has it and your channel is up to date it should be available
ottidmes has quit [Quit: Leaving]
<hoplaahei>
infinisil: no. There is still no entry for it in fstab, and the dataset isn't mounted
<infinisil>
energizer: That it does already with pkgs.pythonPackages3.numpy
<numkem>
hyperfekt: I've been doing nix-channel --update as root
<infinisil>
energizer: You might be able to instruct poetry2nix to use that version
<numkem>
hyperfekt: and a nix-rebuild switch
dsiypl4_ has quit [Quit: Leaving]
<hyperfekt>
but in general you can just trivially import any channel you want and use packages from there, it's only when you need updated NixOS modules that all those hoops need jumping through
<infinisil>
energizer: (but then dependencies will be inconsistent between Nix and non-Nix users)
<numkem>
hyperfekt: what do you know it picked it up just now... This is rather confusing release-cycle wise
<infinisil>
hoplaahei: Okay, run `nixos-rebuild build`, then check the file `result/etc/fstab`, does the entry exist there?
<energizer>
infinisil: then i have to override numpy in all the packages that depend on numpy. much easier (for me) to just have numpy built with poetry2nix in nixpkgs.python3Packages.numpy
<numkem>
hyperfekt: that's exactly what I wanted to see! Thanks!
<numkem>
hyperfekt++
<{^_^}>
hyperfekt's karma got increased to 4
<hoplaahei>
infinisil: my mistake. I forgot to remount the dataset this time round for the rebuild. It seems to have worked now. Thanks. Must have forgot to rebuild.
<infinisil>
hoplaahei: Cool :)
<hoplaahei>
one other thing... I created a zfs dataset for tmp with sync=disabled that I missed in the wiki guide. Is it safe to unmount tmpfs and mount the new /tmp and regenerate and rebuild? Or would I need a rescue environment? This isn't any mission critical server.
<hoplaahei>
It's nice the way it live mounts the new datasets.
bhipple has quit [Ping timeout: 256 seconds]
bhipple has joined #nixos
<clever>
hoplaahei: if you swap out /tmp, youll loose the unix socket for X11, and have to restart display-manager.service
<{^_^}>
[nixpkgs] @glittershark opened pull request #85115 → json2csv: init at 5.0.0 → https://git.io/Jvj2b
<numkem>
I'm trying to delete keys from ssh-agent and it doesn't cooperate, it says it did delete the key but it doesn't do anything. I see there are user entries in systemd for something that looks like an ssh-agent emulation... What can I do to remove the key? even ssh-add -D doesn't do anything
gammarray has quit [Remote host closed the connection]
<gchristensen>
numkem: is this a gpg-agent?
thc202 has quit [Ping timeout: 260 seconds]
<numkem>
gchristensen: yes, that is what I see the service has.
<gchristensen>
I spent an eternity trying to solve this problem
<numkem>
long story short, I want to remove the passphrase to a key and it keeps prompt it even after doing ssh-keygen -p -i <path_to_key>
<gchristensen>
oh I don't know that I can solve that
<gchristensen>
it reflects the state of mind you're in after fighting GPG for a day
<numkem>
gchristensen: haha, big fan of the tittle
<numkem>
gchristensen: that did something as I saw the key disappear but it's still prompting for password :/
<numkem>
gchristensen: omg... the tittle is really appropriate, the f'ing thing is caching the key... you have to remove it from the folder too
<numkem>
gchristensen: huge thank you! it's workning now
<numkem>
gchristensen++
<{^_^}>
gchristensen's karma got increased to 265
<gchristensen>
good luck :P
gammarray has quit [Client Quit]
<cole-h>
"you can learn something (??? not sure what exactly)" lol
codygman__ has joined #nixos
<codygman__>
If I want to build a derivation on top of emacs that simply renames it to "codygman-emacs" for instance, how would I do that? Would I have to just use `mv emacs codygman-emacs` in the builder maybe?
gammarray has joined #nixos
gammarray has quit [Client Quit]
hoplaahei has quit [Quit: Konversation terminated!]
gammarray has joined #nixos
sigmundv__ has quit [Ping timeout: 265 seconds]
broccoli has quit [Ping timeout: 250 seconds]
gammarray has quit [Remote host closed the connection]
gammarray has joined #nixos
<{^_^}>
[nixpkgs] @nh2 opened pull request #85119 → linux: Enable `CONFIG_NET_DROP_MONITOR` by default → https://git.io/Jvjax
gammarray has quit [Client Quit]
gammarray has joined #nixos
<srxl[m]>
I've got the following derivation I'd like to get added into nixpkgs, but I'm not sure where in the tree it should go. It's a language server for a BEAM language (elixir), but it doesn't use any of the existing BEAM tooling in nix, so I'm not sure where to put it. https://pastebin.com/7hENMXqF
<srxl[m]>
Any recommendations?
gammarray has quit [Remote host closed the connection]
glittershark has joined #nixos
<dsal>
Does anyone run uglifyjs (an npm-based program) under nixos? I use it as part of my elm workflow.
peelz has quit [Remote host closed the connection]
<glittershark>
Error: modDirVersion 5.4.30 specified in the Nix expression is wrong, it should be: 5.4.30-ck1
<glittershark>
guh
<glittershark>
this feels like it should be easier
<{^_^}>
[nixpkgs] @zowoq opened pull request #85122 → go packages: remove darwin security → https://git.io/Jvjw2
<henry_>
evils: Nix seems very nice and I'm glad I stumbled upon it. Right now, basically, I'm trying to compile it on ARM — specifically, on a Raspberry Pi 2, running Raspbian, with the armv7l architecture. I tracked down all of the dependencies, installed via APT and compiled when necessary, and ./configure registers them all. Now I'm running make and I'm encountering the following unfortunate fatal error:
<glittershark>
what was that about override discoverability? :P
<{^_^}>
#67808 (by lopsided98, 32 weeks ago, closed): pythonPackages.grpcio-tools: fix undefined symbol error on armv6l
<henry_>
But to the best of my knowledge my error has nothing to do with Python.
<morgrimm>
Are most nix store paths read-only in a nix shell?
<evils>
henry_: that's not a quick question :D, i'm sure there's people building it for rpi2, they probably hang out at #nixos-aarch64, i also suggest you check https://logs.nix.samueldr.com/nixos-aarch64 for relevant conversations
<henry_>
Ok then, lol.
<lopsided98>
henry_: You need to pass "-latomic" probably through CFLAGS
<lopsided98>
It should probably be fixed in Nix's build system, rather than having to add a hack in the Nix derivation...
<henry_>
Yes I can see how that might be a problem when I have armv7l and neither armv5tel nor armv6l
<glittershark>
man this is cool
<glittershark>
I would've never *dreamed* of throwing an unofficial patchset on my kernel while I was still running arch
<glittershark>
with nix I feel 100% confident
<henry_>
Can I safely assume that I can set CFLAGS with make and expect it to pass through?
<lopsided98>
I'm not sure, maybe just try it and see
<henry_>
Apparently not.
<henry_>
Hang on.
<henry_>
Nope, neither CFLAGS nor CXXFLAGS.
<glittershark>
I wonder if it'd be easier to cross-compile from a host system that already has nix
<henry_>
Looks like it might be LDFLAGS?
<glittershark>
...if you have one of those
<glittershark>
oh yeah -latomic would be an LDFLAG
<henry_>
Me, glittershark?
<glittershark>
yes you
<glittershark>
:}
<glittershark>
:)
<henry_>
;)
<glittershark>
ironic that the build system is hard to build
<glittershark>
but hey
<glittershark>
who watches the watchers
<glittershark>
who shaves the barbers
<glittershark>
who... reproducibly builds the reproducible build tool
<henry_>
Still nope. :(
<henry_>
lol though
<henry_>
It curves back in upon itself.
<lopsided98>
Maybe pass it to configure rather than make?
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<henry_>
Like the Ouroboros.
<glittershark>
cross compiling is supposed to be easy with nix, right?
<lopsided98>
Also, if you are running Raspbian, I believe you are running an armv6l userspace (-latomic isn't needed on armv7l). The reason you have to specify it manually is that you are compiling Nix manually outside of nixpkgs, so that the override I linked doesn't get applied
<henry_>
I'm trying that right now. ("Maybe pass it to configure rather than make?") It seems to be starting over, so maybe that's a good thing..?
<henry_>
I must admit to not really being up to speed on cross-architecture compilation.
<glittershark>
so nixpkgs has a `pkgsCross.raspberryPi` attr
<glittershark>
I'm building it right now bc I was curious
<glittershark>
if you have an x64 computer you could try just `nix-build -f '<nixpkgs'> pkgsCross.raspberryPi.nix`
<henry_>
Let me search that.
<glittershark>
that'll give you a cross-compiled nix you could hypothetically just toss over with `nix-copy-closure` or something
<glittershark>
...idk if nix-copy-closure works if the target system doesn't have nix installed
<glittershark>
it probably doesn't
<henry_>
I don't have anything against potentially distributing a binary, but ideally I'm going to incorporate this into a zero-config setup.
<lopsided98>
pkgsCross.raspberryPi is armv6l. Normally you would use pkgsCross.armv7l-hf-multiplatform on an RPi 2. The only reason Raspbian uses armv6l is so the same image can be compatible with all models
<glittershark>
ah
<henry_>
Interesting, lopsided98.
konobi has quit [Quit: konobi]
<henry_>
I wonder why they don't provide an option for pure armv7l+. Surely there are performance implications...
konobi has joined #nixos
work_ has quit [Quit: Connection closed for inactivity]
<srxl[m]>
oh boy, this is a problem I didn't notice until now...
<srxl[m]>
so, as part of building elixir-ls, i need to get it's dependencies with `mix deps.get`
<srxl[m]>
my idea to solve this was to jam all the dependency-fetching stuff into a fixed-hash derivation
<srxl[m]>
turns out, the output of that mix task is not reproducible
<srxl[m]>
the hash of the dependency fetching derivation is different ever run
<srxl[m]>
every*
jerryaldrichiii_ has quit [Read error: Connection reset by peer]
chagra_ has joined #nixos
chagra has quit [Ping timeout: 264 seconds]
Cale has joined #nixos
linarcx has joined #nixos
Darkmatter66 has joined #nixos
<dsal>
Apparently I can just install this npm through some nix-env magic I don't currently know. I'll figure out the nix-shell stuff later. Right now, it seems like a lot more work than just listing it in the tools I need in general.
Darkmatter66_ has quit [Ping timeout: 256 seconds]
<srxl[m]>
Anyone around here familiar with some of the BEAM stuff that could lend a hand here? I'd like to use the existing BEAM tooling if it's possible, but I don't think I can package elixir-ls with it
jerryaldrichiii has joined #nixos
<dsal>
neat.
<srhb>
srxl[m]: Wasn't most of that dropped in 20.03?
<zeta_0>
lorri+direnv+emacs-direnv = amazing
henry_ has quit [Quit: henry_]
<srxl[m]>
The hex snapshot is gone, but the builders like `buildMix` are still there
<zeta_0>
i still need to test out lorri more, but so far i really like it
Acou_Bass has joined #nixos
<srxl[m]>
I really hope it hasn't been torn out, and I'm just not seeing the issues relating to it
<srhb>
srxl[m]: I'm probably mistaken, just read the highlights. :)
palo1 has joined #nixos
OrangeTetra has joined #nixos
konobi has joined #nixos
palo has quit [Ping timeout: 265 seconds]
palo1 is now known as palo
endformationage has quit [Quit: WeeChat 2.6]
<srhb>
Anyone happen to know what might have recently broken gpg+yubikey? gpg --card-status claims "no such device" even though yubi tools see they card just fine.
<srhb>
A quick skim of commits doesn't reveal anything super suspect.
<energizer>
srhb: killed ssh-agent and code and did nixos-rebuild. now we'll see if it prompts me again
<energizer>
first time i open a terminal i'm prompted, which is as expected
<energizer>
and vscode is not prompting me (so far), so maybe that solved it
<srhb>
Odd.
<energizer>
anyway thanks :-)
<srhb>
Sure
zaeph1 is now known as zaeph
alexherbo2 has joined #nixos
<zeta_0>
when using builtins.fetchTarball, do i need setup `url` and `sha256` in order for the installation to stay permanently cached?
<energizer>
those dont seem related
<srhb>
zeta_0: Yes.
<energizer>
srhb: explain?
<srhb>
energizer: builtins.fetchTarball when given just an url as its argument relies on the ~/.cache/nix to determine whether to fetch for each kind of fetcher, iirc.
<srhb>
energizer: iow, it's an impurity
freeman42x[m] has joined #nixos
<srhb>
energizer: You might get a new version every hour, which is probably not what you ever want...
<energizer>
hrm, why does ~/.cache/nix exist?
linarcx has quit [Quit: WeeChat 2.8]
linarcx has joined #nixos
<srhb>
energizer: If you'll forgive my circular logic; to allow the builtin fetchers to work in this manner. ;-)
<srhb>
It does also deal with other things, like nar lookup failures etc.
<energizer>
srhb: haha alright
<srhb>
For that fetcher in particular, it's ~/.cache/nix/tarballs
<srhb>
zeta_0: Basically, don't ever use a fetcher without a hash of the output. :)
<srhb>
(builtins.fetchgit _may_ be the exception here, due to relying on the git shasum)
freeman42x has quit [Remote host closed the connection]
LysergicDreams has quit [Ping timeout: 256 seconds]
<zeta_0>
what do you guys think of this shell.nix?
freeman42x has joined #nixos
<dsal>
Playing with these ec2 images... I don't quite understand how to use them correctly. Apparently I launch the instance, then login as root on it and do a `nixos-rebuild` ? Is there a way to get it to do that automatically?
<srxl[m]>
not exactly practical if you're doing load balancers and stuff
<pjt_014>
Do you guys not use a vps via ssh?
<pjt_014>
hmm
<dsal>
You shouldn't even be able to log in to a system as root. But if there's a means of configuring the system, it should just use that configuration.
<srhb>
dsal: You can build your own image with your keys baked in.
<energizer>
pjt_014: ideally it'd be already set up correctly in the first place
<srxl[m]>
because you'd end up relying on like a cloudwatch alarm or something to tell you "hey, we scaled up and added a new instance, go run nixos-rebuild on it"
<srxl[m]>
and i don't thinik i need to explain how that's suboptimal :P
<srhb>
dsal: The idea is to produce a simple generic image from which to be able to build the actual system.
rauno has joined #nixos
<pjt_014>
I mainly use Vultr where I can't exactly do that I guess. I'm not doing any of that magic
<srxl[m]>
that would work
<srhb>
If you want a more specific image than that, you'll have to roll your own
<dsal>
Yeah, I figured the things that were available + a nixos configuration would be my system.
<dsal>
It's just so close to right that I feel like I'm missing something.
<srxl[m]>
get one instance all set up, then create an ami from it and just deploy that
<srhb>
You can roll your own version that does the rebuild even, if you want. It's just a systemd unit after all.
<srhb>
dsal: You're not.
<srhb>
There's no auto-switch functionality in that image.
<dsal>
Is there a reason not to do that? It seems like it'd be pretty helpful.
<srhb>
I've never desired it, because I prefer to roll my own specific image rather than relying on switcheroo magics at startup.
<srhb>
But other than that: Probably just no one was interested enough to do it.
<dsal>
I guess I don't understand why it'd accept a configuration as user data if it weren't going to apply it.
<dsal>
I'd think the hard part would be in getting the config there in the first place. So close to ideal. But I'm up too late to be doing any more with this anyway. My cows got out tonight and tomorrow I'm oncall. woo
<energizer>
i cant tell if that's an colloquialism or if you literally have cows that got out
<srhb>
dsal: I think most people push config to their remote machines rather than building on them, at least if they're not just using one pet server in the cloud...
<srhb>
dsal: SLeep tight :)
kreetx has joined #nixos
<dsal>
energizer: heh, they actually got out. too much excitement today.
<{^_^}>
[nixpkgs] @Lassulus pushed commit from @danielfullmer to master « pyrit: init at 2019-12-13 »: https://git.io/JvjXl
<{^_^}>
[nixpkgs] @vbgl pushed to release-20.03 « coqPackages.dpdgraph: fix build with OCaml ≥ 4.08 »: https://git.io/JvjXR
<sshow>
Have anyone here made a nix file for a custom Node.js script/package outside of NPM that I can take a look at? Need some pointers to get started.
jjakob has quit [Quit: No Ping reply in 180 seconds.]
jjakob has joined #nixos
shinichi__ has quit [Remote host closed the connection]
<emmanuelrosa[m]>
<symphorien "emmanuelrosa: maybe adapt this o"> In this case the dependent module is bitcoins, but otherwise yes I'd just enable it in my module.
<maddo>
A bit of a maybe niche question here: how is gaming on nix? Particularly interested in everyone experience with lutris games, binary downloaded games (i.e gog), steam games etc...
<emmanuelrosa[m]>
Ah, perfect symphorien Thanks!
<maddo>
since I could see potential issues with nix store not being FHS compliant
nikola_i has quit [Quit: Connection closed for inactivity]
<yuuki_>
Complete NixOS beginner here (installed yesterday). Trying to install neovim latest master *and* customize it. I have an overlay in `overlays/neovim.nix` which takes care of installing latest master (works). I call it with `nix-env -iA nixos.neovim`. Now I added another overlay `overlays/neovim-foo.nix` where I'm simply doing `neovim = super.neovim.override { ... }` to add my plugins. Upon re-running the `n
<yuuki_>
ix-env` command, I get error getting attributes of path '/home/myname/.config/nixpks/overlays/rust-lang/rust.vim' no such file or directory. It seems like `nix-env` is trying to do something relative to the overlays folder where my overlay is specified. I'm a bit lost at this point where I'm doing something worng
knupfer has quit [Read error: Connection reset by peer]
rhumbs has joined #nixos
knupfer has joined #nixos
jakobrs has joined #nixos
rhumbs has quit [Client Quit]
<jakobrs>
Is here a reason why nix-env -u uses so much ram?
<jakobrs>
It used up to 90% RAM while it was running,
<jakobrs>
s/RAM/memory
<jakobrs>
100% RAM and 50% swap usage
<jakobrs>
Totaling 7G
<freeman42x[m]>
it seems that CDROMs are not mounted by default under NixOS. what is the proper way to mount one?
<jakobrs>
freeman42x[m]: `sudo mount`?
<ar>
"mount /dev/sr0 /mnt" should work
<jakobrs>
Alternatively, mount it using whatever file manager you use
<freeman42x[m]>
I do not have a /mnt folder, is that ok?
<freeman42x[m]>
I am using Dolphin
<jakobrs>
It is normal to not have a `/mnt` folder
rauno has joined #nixos
<jakobrs>
you can just mkdir /mnt
<jakobrs>
or mkdir ~/thisismymountpoint or whateever
<freeman42x[m]>
so `mount /dev/sr0 /mnt` should work without a /mnt folder?
civodul has joined #nixos
<jakobrs>
You must create the mount point first
<ar>
mount only works with directories that exist, so you should create it first
<jakobrs>
but it can be called anything
knupfer has quit [Ping timeout: 260 seconds]
<jakobrs>
Is it normal to get collision warnings about vim conflicting with vim_configurable on nixos-rebuild switch?
<jakobrs>
It's weird because I don't manually configure vim in my configuration.nix
<jakobrs>
... thing I figured out why
<{^_^}>
[nixpkgs] @xaverdh opened pull request #85136 → cabal-install: wrap to put binutils into scope → https://git.io/Jvj11
ZaraChimera has quit [Remote host closed the connection]
<jakobrs>
programs.vim.defaultEditor adds `vim` to systemPackages even though `vimHugeX` is already there
jgeerds has quit [Ping timeout: 256 seconds]
m4ts has quit [Quit: bye]
ZaraChimera has joined #nixos
m4ts has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
domogled has quit [Read error: Connection reset by peer]
ZoomZoomZoom has joined #nixos
evertedsphere has quit [Ping timeout: 258 seconds]
jgeerds has joined #nixos
rnmhdn has joined #nixos
arjen-jonathan has joined #nixos
freeman42x has quit [Remote host closed the connection]
<MYMYRSRS>
If I want to use wg-quick manually, how should the firewall be set up?
felixfoertsch has quit [Ping timeout: 260 seconds]
<MYMYRSRS>
hen I manually use wg-quick to manage the wireguard connection, I found that the network.firewall of nixos will cause the wg-quick connection to fail
felixfoertsch has joined #nixos
<betaboon>
anyone knows if there is a way to allow the creation of tun devices within containers when using the nixops-container backend ?
<ZoomZoomZoom>
Have problems with Syncthing service starting as my main user:group due to memlock. `ulimit -l` shows unlimited, tried setting `security.pam.services.syncthing.limits` specifically but no luck.
<ZoomZoomZoom>
Any thoughts?
<freeman42x[m]>
any recommended way to write ISO from mounted CDROM on NixOS?
<ZoomZoomZoom>
freeman42x[m], Whu not unmount it?
Desetude has joined #nixos
<Desetude>
is there a nice way to compose functions in nix like . in haskell?
<freeman42x[m]>
I tried `dd if=/mnt/cdrom of=/home/user/Downloads/old.iso` and it errors saying that /mnt/cdrom is a directory
bhipple has joined #nixos
<Yaniel>
it *is* a directory
<freeman42x[m]>
Brasero or K3b might both work
<Yaniel>
try /dev/cdrom
<Yaniel>
or /dev/sr0
<jakobrs>
freeman42x[m]: If you run df /mnt/cdrom
<jakobrs>
that will tell you what device to use
<asheshambasta>
also, I've stumbled upon an issue that outputs: "<command line>: can't load .so/.DLL for: libz.so (libz.so: cannot open shared object file: No such file or directory)
<asheshambasta>
I'm running `nix-shell release.nix` and then attempting `cabal repl`
<asheshambasta>
am I doing something wrong here or is this a missing dependency? Googling about this doesn't help since I end up on related issues but these seem specific to stack.
bhipple has quit [Ping timeout: 256 seconds]
<jakobrs>
I think I've had problems with cabal, nix and zlib before
opthomasprime has joined #nixos
<{^_^}>
[nixpkgs] @minijackson opened pull request #85140 → 10.5.3 -> 10.5.4, add link to nixos test → https://git.io/JvjMS
<jakobrs>
Think there might be a field in the .cabal file you need to change/add zlib to
<jakobrs>
extra-libraries: z, right, you've already added it
<asheshambasta>
yeah, that doesn't make any difference.
<asheshambasta>
it cannot find a shared object file, could it be an issue with a missing entry in path? Or something similar?
<{^_^}>
[nixpkgs] @filalex77 opened pull request #85141 → _3mux-unstable: init at 2020-04-13 → https://git.io/JvjM5
<jakobrs>
I have no idea, I'm sorry.
plzbo[m] has joined #nixos
<jakobrs>
For be cabal repl doesn't work at all, "Could not resolve dependencies"
<jakobrs>
s/be/me
pbb has quit [Remote host closed the connection]
ok2` has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @rnhmjoj merged pull request #84954 → mnemosyne: Fix Qt related segfault and OpenGL warning → https://git.io/Jvh82
<Thra11>
asbachb: My line numbers might be off as not up to date. Just search for it in all-packages.nix.
nikola_i has joined #nixos
pbb has joined #nixos
<Thra11>
(Then search for linux_rpi4 in the same file)
<sajgon>
error: packages '/nix/store/zygyvrvjivi9fpqs12yff02649b90v2k-gcc-wrapper-9.2.0/bin/ld.gold' and '/nix/store/q354712mnkw3ky8b5crj7ir7dyv29ylj-binutils-2.31.1/bin/ld.gold' have the same priority 10; use 'nix-env --set-flag priority NUMBER INSTALLED_PKGNAME' to change the priority of one of the conflicting packages (0 being the highest priority)
<sajgon>
this is the conflict itself
<asbachb>
Seems to be removed from master branch?
<sajgon>
but I just want the ar binary
<nikola_i>
hi, how do i enforce the new boot parameters in configuration.nix. do I need to rebuild & switch? is there any other option?
<{^_^}>
[nixpkgs] @zimbatm pushed commit from @marsam to master « influxdb: 1.7.6 -> 1.8.0 (#85113) »: https://git.io/JvjyO
broccoli has joined #nixos
<Thra11>
asbachb: Ah ok. I was just looking at a local checkout.
<asbachb>
Thra11: I was quit puzzled since I searched nixpkgs project on github without any result.
invra has joined #nixos
invra has quit [Client Quit]
<asbachb>
*quite
invra has joined #nixos
invra has quit [Client Quit]
pbb has joined #nixos
<hsngrmpf[m]>
I'm wondering how to securely setup Postgresql with remote access in NixOS. The wiki's example for specifying a password is insecure and stores the password in /nix/store. Am i missing something?
<sshow>
How can I pass in `stdenv` to a `nix-build` shell call? `nix-build --keep-failed --arg pkgs '<nixpkgs>' --arg stdenv '<stdenv>'`
<jakobrs>
I think that should work? depends on your default.nix file
invra has joined #nixos
<sshow>
jakobrs: it starts with `{ pkgs, stdenv, ... }:`. Now it fails with " file 'stdenv' was not found in the Nix search path"
<jakobrs>
That's because '<stdenv>' is not in your $NIX_PATH. You probably want `--arg stdenv 'with import <nixpkgs>; stdenv'` instead
<jakobrs>
Basically, stdenv is not a channel, which is why it doesn't work.
<sshow>
okay. so that's the logic. enclosing in <> expects a channel name?
<jakobrs>
usually, yes.
<jakobrs>
By default, '<nixos-config>' is your configuration.nix, but otherwise it should be a channel.
<{^_^}>
[nixpkgs] @rnhmjoj pushed 6 commits to release-20.03: https://git.io/Jvjy0
<jakobrs>
with import <nixpkgs>; stdenv
<jakobrs>
can be replaced with
<jakobrs>
(import <nixpkgs>).stdenv
<jakobrs>
if that's clearer.
jgeerds has quit [Remote host closed the connection]
<sshow>
jakobrs++ thanks a lot
<{^_^}>
jakobrs's karma got increased to 1
<{^_^}>
[nixpkgs] @candeira opened pull request #85144 → lorri: add direnv as service dependency → https://git.io/Jvjyu
jgeerds has joined #nixos
zaeph has quit [Ping timeout: 265 seconds]
ChimeraZara has joined #nixos
zaeph has joined #nixos
ZaraChimera has quit [Ping timeout: 240 seconds]
ChimeraZara is now known as ZaraChimera
pbb has quit [Ping timeout: 265 seconds]
Desetude has quit [Quit: WeeChat 2.8]
freeman42x has joined #nixos
fusion809 has joined #nixos
GiGa has joined #nixos
GiGa has joined #nixos
GiGa has quit [Changing host]
inkbottle has joined #nixos
<GiGa>
Hello
chagra_ has joined #nixos
<GiGa>
has there been a change in the last few months to SMB support in the unstable channel?
morgrimm has joined #nixos
<GiGa>
I used to be able to browse to SMB shares in Nautilus / Thunar via smb://IP/Share
<GiGa>
but that no longer works.
ZaraChimera has left #nixos ["Closing Window"]
pbogdan has quit [Remote host closed the connection]
pbogdan has joined #nixos
<GiGa>
Message from Nautilus is "the specified location is not supported"
johnjay has quit [Ping timeout: 240 seconds]
yuuki_ has quit []
<jluttine>
anyone using rofi? i've written files /etc/rofi.conf and /etc/rofi.rasi but rofi doesn't seem to use neither..
<sshow>
stigo: ^
<jluttine>
i asked on rofi channel, and that's where they search for the system-wide configs..
<jluttine>
so i'm thinking if this is a nixos issue
fusion809 has quit [Quit: Leaving]
chloekek has quit [Quit: WeeChat 2.6]
chloekek has joined #nixos
<asbachb>
Can I link a local checkout of nixpkgs as a channel? (beside passing `-I nixpkgs` on every build)
jakobrs has quit [Quit: WeeChat 2.8]
zupo has joined #nixos
CMCDragonkai1 has joined #nixos
<CMCDragonkai>
Does the NixOS AMIs have passwords?
<CMCDragonkai>
After I SSH into them, they ask for a password
<stigo>
jluttine: try putting your configuration in ~/.config/rofi/ and see if that helps.
<jluttine>
stigo: yep, there it found it
CMCDragonkai_ has joined #nixos
<jluttine>
but i would like to write system-wide default configuration
<CMCDragonkai_>
Does the NIXOS AMI have a password for `ec2-user`?
<morgrimm>
Is there a way to specifically bust the nix-build cache? I'm testing building an expression, but changes to the build phases aren't reflected. Seems to still be flat out running make every time
<morgrimm>
Despite overriding `buildPhase` to only make the $out dir
jjakob has quit [Quit: No Ping reply in 180 seconds.]
<morgrimm>
gchristensen: I can't be changing the wrong one, I'm directly calling the package from the command line - it's very specifically this one package
<gchristensen>
is itcausing a rebuild?
<morgrimm>
Parts of it are being redownloaded, but I don't know if it's rebuilding entirely
notapache[m] has joined #nixos
jjakob has joined #nixos
<morgrimm>
Like I changed the buildPhase instructions to just `mkdir -p $out` to test, and it still runs make like nothing happened
<gchristensen>
if it is building again, the cache is busted
<morgrimm>
The install phase is running make install, that would do the trick - is that a default?
knupfer1 is now known as knupfer
<gchristensen>
yea
<morgrimm>
That's the issue then - thanks!
<gchristensen>
great!
<gchristensen>
btw morgrimm Nix doesn't really have a "cache" exactly. the build instructions are hashed and and then put in the store. if the build instructions are the same, there is no work to do. in this sense, there isn't a problem with cache coherence
<stigo>
jluttine: ah, rofi is trying to load $out/etc/rofi.conf from the nix store (according to strace), before it attempts ~/.config/rofi/, maybe some patches are needed.
teto has joined #nixos
<infinisil>
stigo: `rofi --help` shows me in the last line that it uses /home/infinisil/.config/rofi/config as the config file
<jluttine>
stigo: i'll add "--sysconfdir=/etc/" to configure flags
sabbot[m] has joined #nixos
<jluttine>
infinisil: it shows a similar line to me although i don't have such file under my home directory and it is in fact now using config file under /etc/ (i just patched it so)
dermetfan has quit [Ping timeout: 265 seconds]
gustavderdrache has joined #nixos
<jluttine>
stigo: i'll open a pr. i have a few questions, but i'll ask them on that pr
hmpffff has joined #nixos
freeman42x has quit [Remote host closed the connection]
<ornxka>
nix-build -v -j0 --builders 'ssh://builder i686-linux,x86_64-linux - - - - -' nixos.emacs25-nox gives me error: getting status of '/tmp/nixos.emacs25-nox': No such file or directory
<clever>
ornxka: you forgot the -A, so its trying to open the file nixos.emacs25-nox in the current dir
<{^_^}>
[nixpkgs] @LnL7 closed pull request #73937 → [WIP] darwin: update bootstrap-tools to use llvm_9 → https://git.io/JeiZJ
zupo has quit [Ping timeout: 256 seconds]
<ornxka>
ahhhhhhhhhh
<ornxka>
nix-build -j0 --builders 'ssh://builder i686-linux,x86_64-linux - - - - -' '<nixpkgs>' -A emacs25-nox this is whjat i was supposed to type
<ornxka>
the funny '<foo>' thing always trips me up
zupo has joined #nixos
ottidmes has quit [Quit: WeeChat 2.7.1]
ottidmes has joined #nixos
ottidmes has quit [Client Quit]
invra has joined #nixos
invra has quit [Client Quit]
<clever>
ornxka: think of it like #include <foo.h> in c/c++
<ornxka>
i see i see
<clever>
and how that interacts with -I on a compiler
<stigo>
jluttine: cool :)
<ornxka>
that is actually very informative
<LnL>
some things in the nix cli do make sense :p
ottidmes has joined #nixos
<ornxka>
i have at least four different nix packages repos (master, release, local packages, stuff in master that i want to modify without mucking up my git history, etc) so i end up having to use the -I options a lot
<ornxka>
some dayi ll actually read the manual...
alexherbo2 has quit [Read error: Connection reset by peer]
<evanjs>
ornxka: yeah it’s super helpful for the repl for example. Eg `nix repl ‘<nixpkgs>’ ‘<nixpkgs/nixos>’` vs `:l <nixpkgs>` and `:l <nixpkgs/nixos>` once you start `nix repl`
<ornxka>
what kind of stuff does the repl get used for?
<teto>
ornxka: I use to look at outPath, check certain values to make sure my overlay doesn't mess up things etc
<ornxka>
ahhh
<ornxka>
"look at outPath" that sounds like an improvement on my current workflow which is to ls -l /nix/store | grep whatever and copy paste the hash into my terminal
<teto>
can be cool to test some functions etc
gxt has quit [Ping timeout: 240 seconds]
<aanderse>
Izorkin: you could put in a PR like that, but i have no personal motivation to because i would explicitly have to disable most of those additions locally on most of my web severs
philr has quit [Ping timeout: 264 seconds]
<aanderse>
Izorkin: i support many ancient web applications that depend on those additions not existing in the systemd unit
<{^_^}>
[nixpkgs] @sorki opened pull request #85154 → nixos/tests/installer: test full disk encryption with both luks formats → https://git.io/JvjQn
waleee-cl has joined #nixos
dermetfan has joined #nixos
Grauwolf[m] has joined #nixos
<Izorkin>
aanderse: you can give an example configuration that breaks in sandbox mode?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rauno has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @DieGoldeneEnte opened pull request #85155 → coreclr: get clang from llvmPackages → https://git.io/JvjQz
<{^_^}>
[nixpkgs] @teto pushed to master « gitAndTools.gitbatch: init at 2019-12-19 »: https://git.io/Jvj7l
<nilsirl[m]>
clever: I ccextractor. I basically want to load its dependencies
<clever>
nilsirl[m]: are you trying to build ccextractor or use it?
<nilsirl[m]>
clever: build it
<clever>
nilsirl[m]: then you just want `nix-shell '<nixpkgs>' -A ccextractor` and dont need a shell.nix or default.nix
<nilsirl[m]>
clever: what I used to do is nix-shell '<nixpkgs>' -A ccextractor
<SumnerEvans[m]>
<chloekek "Is there a tutorial about automa"> Not necessarily a tutorial, but there is https://github.com/elitak/nixos-infect which may give you some ideas on how to go about that.
<nilsirl[m]>
but the thing is that clever I can't use that with direnv
<clever>
nilsirl[m]: you can also do: with import <nixpkgs> {}; ccextractor
<ottidmes>
gchristensen: awesome! I have been looking forward to it :)
<nilsirl[m]>
clever: and if I want to add extra dependencies, how would I do that?
<gchristensen>
:)
<clever>
nilsirl[m]: you can also do: with import <nixpkgs> {}; ccextractor.overrideAttrs (old: { buildInputs = old.buildInputs ++ [ extra ]; })
<nilsirl[m]>
ok thank you
<nilsirl[m]>
I'm totally lost with nix
<ottidmes>
gchristensen: so far I concur, now that I had to move over my server a few times within a span of a few months my automation has improved a whole bunch
<gchristensen>
nice
<hyper_ch>
gchristensen: you know lundman?
fenedor has joined #nixos
<ldlework>
gchristensen: you are doing the nix challenge for your servers
<ldlework>
:D
<gchristensen>
ldlework: each and every boot! :)
<ldlework>
gchristensen: what about your workstation ;)
<ottidmes>
gchristensen: would be rather wasteful, but imagine being forced to get your stuff back from a backup server on every reboot, that would force you to get your backups in order too (not finished reading, you might actually be doing that for I know)
<gchristensen>
oh wo,w
<qyliss>
hope you have internet!!
<qyliss>
(or a local backup server)
<qyliss>
but it is a cool idea
<ottidmes>
qyliss: got a local backup server and internet :P
<srk>
I've considered something like that with e.g. mega.co.nz, just point tool to right url, enter password, enjoy your data
<srk>
but most stuff is git anyways :D
<ottidmes>
but would be a waste of disk writes
sogatori has quit [Remote host closed the connection]
ok2` has joined #nixos
ambro718 has quit [Quit: Konversation terminated!]
<infinisil>
Could use something like IPFS to cache stuff
<infinisil>
Although, hopefully a less public version of IPFS
<simpson>
infinisil: Being public isn't the problem; being *searchable* or *enumerable* is the problem.
<infinisil>
I mean: You only delete stateful paths, excluding /nix/store and /ipfs
<infinisil>
Before shutdown you save all stateful data to /ipns/<your-system-hash>
<simpson>
Like, when using Somebody Else's Disks, there's no getting around that you've gotta do your own encryption and protect your own unguessable keys.
<clever>
simpson: one issue i can see with ipfs, is that i could query the cloud for everybody with a copy of a vulerable ssh version, then i have a list of IP's i can download it form
<infinisil>
Can't IPFS be used privately?
<clever>
simpson: i wonder if they are also running that ssh version? .....
<simpson>
clever: Sure, IPFS is incredibly bad for this.
<clever>
infinisil: last i checked, it reports the hash of every single file you have a copy of to the DHT, so others can then find your pubkey, and then ip
<simpson>
But more generally, yes, this is a sort of inverted DRM Problem. How does a group conduct business over a network, including referencing certain known-hazardous blobs, when the network authorities can snoop the network and know the signatures of those same blobs?
<clever>
infinisil: it also has a constant pubkey, mapping back to your pubip, so you can be tracked at all times
<infinisil>
I guess IPFS isn't of much use with a private network with only like 2 machines :P
<infinisil>
But anyways, something *like* IPFs, which uses hashes to identify files and directories
<ottidmes>
I havent found a use case of IPFS where I felt comfortable with using it for, but that could be my lack of understanding of IPFS
<infinisil>
Well I guess Nix does pretty much that with an optimizing store
<simpson>
infinisil: Look at the design of two extrema, BitTorrent and Tahoe-LAFS, first, I think. The main thing that's missing here is a treatment of DRM over the network.
<ottidmes>
gchristensen: lol'ed at this "my raspberry pi garage door opener", the thing with NixOS is, once set up everywhere, its so easy to make the same thing work everywhere, so I guess that must have been a case of, why not :P
<virtusviri7321[m>
Hey guys I've tried to install nix os on my spare netbook. All went right.
<virtusviri7321[m>
But I can't connect to my Wifi
<virtusviri7321[m>
But I have enabled network manager on the configuration.nix
devalot has joined #nixos
<ottidmes>
My dream system would have like mini chroots for every application, i.e. no global /etc /var/lib paths, but Nix gets close
freeman42x has quit [Ping timeout: 265 seconds]
<NobbZ[m]>
virtusviri7321 have you also enabled WiFi? If yes, please remove that line/comment it and rebuild, it's mutually exclusive with network manager and might cause problems
<ottidmes>
gchristensen: thanks for the post, definitely going to try on my next installs, considering I already have your exact ZFS setup, that should be easy :)
<gchristensen>
cool :D
<hyper_ch>
gchristensen: did you publish the post yet?
<infinisil>
ottidmes: I think qyliss is working on something like that with https://spectrum-os.org/
<ottidmes>
Only have to find a better solution of backups, I make them, but I restore them manually (i.e. still have to do that manually after reinstall) and how I back them up differs, I could probably standardize it more and try and make it completely automatic
erasmas has joined #nixos
<ottidmes>
spectrum-os.org’s server IP address could not be found.
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/Jvj5i
<infinisil>
Huh, works for me
<ixxie>
clever: success! I managed to get the thing working and packaged it into a github action which uses your kexec method to convert debian/ubuntu machines to NixOS: https://github.com/sparkletco/nixosify
<hyper_ch>
ottidmes: zfs?
zaeph has quit [Ping timeout: 256 seconds]
<ottidmes>
infinisil: Ah, it just refreshed, now it works, weird DNS hiccup
<ottidmes>
hyper_ch: yeah I am using ZFS already on all systems except my desktop and OS partitions of my local server (too lazy / afraid to reinstall at the moment), I guess I could just pinpoint the state files of whatever since they will be persisted on ZFS somewhere, I generally backup using the databases export/dump tools, but there really is no need if I send snapshots with ZFS, I think
growpotkin has joined #nixos
<evertedsphere>
gchristensen: holy crap
<hyper_ch>
ottidmes: :)
<evertedsphere>
that is a really cool post
<evertedsphere>
you do that with your personal systems too?
<ottidmes>
he plans too
<gchristensen>
evertedsphere: I have, uh, 1 system which doesn't do that
<bqv[m]>
ottidmes: can I see your config
<bqv[m]>
gchristensen: or yours
<bqv[m]>
Need a zfs config
<gchristensen>
my laptop and all but one server does, evertedsphere
<ottidmes>
srk: I am going with what is sure to work for now, the old way, i.e. separate unencrypted /boot, if encryption, LUKS encrypted ZFS, not ZFS's builtin encryption support
<srk>
ottidmes: yes, that's safe approach - I haven't had problems with zfs grub support except for that one issue above but it might depend on pool features and co which might change at any time, who knows
<srk>
better test! :)
asheshambasta has quit [Ping timeout: 272 seconds]
<srk>
like the issue with luks - I've installed a desktop, pimped it with home-manager and everything, was about to reproduce everything on a laptop but it wouldn't boot :D
<srk>
(after few months)
<srk>
it was easy to diagnose as I could compare the systems but it did bite few other people looks like
drakonis_ has quit [Read error: Connection reset by peer]
drakonis1 has joined #nixos
nikola_i has joined #nixos
<nikola_i>
5:07 PM <nikola_i> do i need to rebuild and switch after setting 'boot.initrd.checkJournalingFS = false'. is there any way to enforce it without rebuilding
justanotheruser has quit [Ping timeout: 260 seconds]
<ornxka>
anyone use vulnix?
<ornxka>
or is there something better
<VulNix>
huh?
<ornxka>
im looking for kind of notification when running buggy software on nixos
<ottidmes>
infinisil: I read some about Spectrum OS just now, seems exactly what I meant, looks like my future OS when it matures, nice to see too their use of Nix, so I could still bring things over if the time comes
<Izorkin>
Error build manual - intermediate.xml:40: validity error : xml:id : attribute value opt-boot.binfmt.registrations."_name_".fixBinary is not an NCName
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.python-nomad: 1.1.0 -> 1.2.1 »: https://git.io/Jvjxo
<DamienCassou>
I'm on NixOS. I need to be able to use a docker image. I've installed docker by adding it to `environment.systemPackages`. When I try to execute docker, I get:
<DamienCassou>
/nix/store/...-docker-19.03.8/libexec/docker/docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
<{^_^}>
[nixpkgs] @globin opened pull request #85165 → alertmanager: implement HA clustering support → https://git.io/JvjxK
<{^_^}>
[nixpkgs] @jonringer pushed commit from @sternenseemann to master « pythonPackages.pypandoc: 2018-06-18 -> 1.5 »: https://git.io/JvjxF
<Ilya_G>
I have a python service that is ran by systemd. I would like to be able to update the service code without having to rerun setup of the systemd configuration. If I understand correctly placing link into /run/system-current/sw/bin/ should accomplish that. I am trying to fund a configuration value that contains that folder. Any hints or suggestions
<Ilya_G>
on a different implementation?
<{^_^}>
[nixpkgs] @jtojnar pushed 391 commits to staging-next: https://git.io/Jvjxp
<DamienCassou>
Izorkin: thank you. I also had to add myself to the "docker" group
<clever>
Ilya_G: systemd on nixos actively ignores /run/current-system, you need to define it properly in the definition of the service
ambro718 has joined #nixos
<Ilya_G>
clever: My strategy is to add a link in a whatever path so that when I install new version of my service I simply restart systemd service and I am back in business. I jumped on /run/system-current/ because it was not profile dependent
<Ilya_G>
clever: I am not sure if this is the optimal path. I am also not sure what you mean by "you need to define it properly in the definition of the service"
<Ilya_G>
please clarify
<clever>
Ilya_G: if you import the programs default.nix in configuration.nix, then nixos-rebuild will rebuild the service, and restart the systemd service for you, so you dont need anything fancy
<virtusviri7321[m>
> virtusviri7321 have you also enabled WiFi? If yes, please remove that line/comment it and rebuild, it's mutually exclusive with network manager and might cause problems
<virtusviri7321[m>
I have enabled it on configuration.nix during the installation. Was it a fault?
<{^_^}>
error: syntax error, unexpected ID, expecting ')', at (string):296:47
<maralorn>
Ilya_g: If you want to be able to update your program without rebuilding the system you could do e.g. "nix-build -o /var/<your-path>/my-app" in your app and set ExecStart=/var/<your-path>/my-app in your systemd-config.
<maralorn>
Ilyia_G: But of course then you always have to update your app manually because a systemupgrade wont do it for you.
<clever>
Ilya_G: you could also make your own custom profile, nix-env --profile /nix/var/nix/profiles/per-user/clever/myapp -f foo.nix --set -A attribute.path
<clever>
and then you have the ability to do rollbacks, nix-env --profile /nix/var/nix/profiles/per-user/clever/myapp --rollback
<clever>
then mix with the 2nd half of maralorn's idea
cr4y1 has quit [Read error: Connection reset by peer]
WinchellsM has joined #nixos
ddellacosta has joined #nixos
<WinchellsM>
So in one of my dumbest moves of all time, I accidentally deleted /nix in NixOS (thinking I was on an SSH machine, but forgot to SSH!)
<maralorn>
Ilya_g: Using /run/systemd-current would not really accomplish anything (I think) because to change the app in /run/current-system you need to nixos-rebuild anyway and then you can just include the new built app correctly in the systemd unit directly with ExecStart=${my-app}/bin/my-app where my-app is somehow the derivation of your package.
<WinchellsM>
I still have /etc/nixos/configuration.nix but it's not letting me rebuild
<clever>
WinchellsM: how is it not letting you?
szicari has quit [Ping timeout: 246 seconds]
<WinchellsM>
Lots of "file 'nixpkgs/nixos' not found in Nix search path
<WinchellsM>
I also deleted all of my .nix-profile, etc in home folder
<clever>
WinchellsM: you need to run `nix-channel --update` to recover your copy of nixpkgs
<WinchellsM>
Ok
szicari has joined #nixos
<WinchellsM>
error: cannot connect to daemon at '/nix/var/nix/daemon-socket/socket': No such file or directory
<WinchellsM>
Now getting that^
<clever>
WinchellsM: and nix-daemon must be running
<maralorn>
WinchellsM: If nothing else helps rerunning nixos-install from an installer image can definitely fix your system. So don‘t panic
<WinchellsM>
:O Ok haha
<WinchellsM>
How do I run nix-daemon?
<clever>
WinchellsM: `nix-daemon`
hoijui has joined #nixos
<clever>
WinchellsM: you can always just mount the FS's under /mnt (from the installer iso) and run nixos-install, if all else fails
morgrimm has quit [Ping timeout: 256 seconds]
aleph- has joined #nixos
<WinchellsM>
Ok I think it's rebuilding everything :]
<WinchellsM>
Is there anything special I should do to recover `~/.nix-profile.d`, etc?
<clever>
WinchellsM: it will be remade automatically next time you install something with nix-env
<WinchellsM>
When I try to isntall something with nix-env I get
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.gphoto2: 2.2.1 -> 2.2.2 »: https://git.io/Jvjhq
<WinchellsM>
error: getting information about '/home/george/.nix-defexpr': No such file or directory
<clever>
WinchellsM: that gets remade automatically next time you open a terminal
<ornxka>
grrr nix-build -v -I nixos-config=config.nix --no-out-link -j0 --builders 'ssh://builder i686-linux,x86_64-linux - - - - -' '<nixos>' -A system complains with error: expression does not evaluate to a derivation (or a set or list of those
<clever>
ornxka: <nixpkgs/nixos>
<WinchellsM>
clever: Still getting that after even after opening a new terminal
<WinchellsM>
clever: Though `nixos-rebuild switch` hasn't finished yet.
<ornxka>
ahhh bless you
<clever>
WinchellsM: you may need to logout and back in, but i wouldnt do that into the switch finishes
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.PyChromecast: 4.2.0 -> 4.2.3 »: https://git.io/JvjjZ
<clever>
nikola_i: it will rebuild everything, but only update the bootloader config, so the changes wont take effect until you reboot
<philipp[m]>
Is there something special blocking the release of 20.03? Is there help needed?
zeenk has quit [Quit: Konversation terminated!]
<nikola_i>
when is 20.03 scheduled for release?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<philipp[m]>
In the third month of the 20th year after 2000? I thougth normally, the last day of the month was the target.
<{^_^}>
[nixpkgs] @flokli opened pull request #85170 → nixos/networking: fix setting MAC Address and MTU in networkd, fix tests → https://git.io/Jvjjl
<dsal>
20.03 is the best nixos version I've ever run.
zupo has joined #nixos
<srhb>
nikola_i: philipp[m]: Usually 3/2 parts through March.
<philipp[m]>
(Didn't mean to sound sarcastic or hostile there in case it came over that way)
jgeerds has joined #nixos
<srhb>
I didn't interpret it hostile at least. :) But no, I don't think we've ever(?) shipped 03 of the last day of March.
<srk>
you can check issues marked as blocker
<nikola_i>
srhb: i know its past due date. i meant is there a new approximate release week
<evertedsphere>
the idris package seems broken because of the Setup.hs being incompatible with cabal 3.0 (which removes the hooks that the setup.hs uses)
<srhb>
nikola_i: I don't think it's past due date.
<srhb>
nikola_i: I was trying to say: The release is usually around nowish into april. Not at the end of march.
<clever>
evertedsphere: what is it doing with the hooks and what could fail if they arent ran?
<evertedsphere>
i don't understand, to be honest, but apparently upstream has fixed the problem
<{^_^}>
[nixpkgs] @bcdarwin opened pull request #85171 → python3Packages.mayavi: update from Python 2 to Python 3 (and switch from wxPython to pyqt5) → https://git.io/JvjjN
<{^_^}>
[nixpkgs] @jonringer pushed commit from @rasendubi to master « cypress: 4.2.0 -> 4.3.0 »: https://git.io/Jfeel
<deni>
hodapp: I seem to have read that you have been fighthing with bluez and it's removal of gatttool and hcitool...did you bring the tools back or have you managed to work it out with bluetoothctl?
<dsal>
zeta_0: what do you mean? git doesn't use sha256
<clever>
zeta_0: nix-prefetch-git
Izorkin has joined #nixos
<evertedsphere>
clever: i don't think callCabal2nix would give me idris with prelude/base, just the plain idris executable + idris-as-haskell-library metadata, right
<clever>
evertedsphere: whats the difference?
<evertedsphere>
i need the idris prelude/base libraries to be installed too
<evertedsphere>
it's the difference between nixpkgs.idris and nixpkgs.haskellPackages.idris
<evertedsphere>
i believe the latter doesn't install the idris libraries
<{^_^}>
[nixpkgs] @jonringer pushed commit from @robertodr to master « highfive: init at 2.2 »: https://git.io/Jfeeg
drakonis1 has joined #nixos
o1lo01ol_ has quit [Remote host closed the connection]
<ornxka>
hm something weird has changed in nixos boot process since 19.09
<evertedsphere>
clever: i had to use pkgs.haskellPackages.override, not extend, otherwise my home-manager xmonad config said haskellPackages.override was missing...?
<ornxka>
i enter my password in and its wrong even when i know its right
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<evertedsphere>
idk but seems to be chugging along fine now
<ornxka>
its happened on two machines so far
<Emantor>
ornxka: maybe keyboard layout broke?
<clever>
evertedsphere: .override can undo other .override's so you may want to use .extend more
<ornxka>
maybe, ill might see if i can get into a shell so i can see whats actually going on
<zeta_0>
clever: thanks
mallox has quit [Ping timeout: 264 seconds]
o1lo01ol1o has joined #nixos
srid has joined #nixos
mallox has joined #nixos
drakonis_ has quit [Ping timeout: 250 seconds]
<zeta_0>
another quick question, in what link will i find examples of nix-prefetch-git in the nix documentation? https://nixos.wiki/
<clever>
zeta_0: probably in the nixpkgs manual
drakonis2 has joined #nixos
<noonien>
hello folks!
broccoli has joined #nixos
<noonien>
i want to start contributing to nixpkgs, and while doing so, i want to work and maintain my own nixpkgs fork
drakonis1 has quit [Ping timeout: 260 seconds]
<zeta_0>
cool, i found 3 matches in the nixpkgs manual
jasom has joined #nixos
<noonien>
preferably to use it on my system. is there a way to keep up updated? to track stable?
<noonien>
i want to contribute to nixpkgs, but keep my system stable
alexgaus[m] has left #nixos ["User left"]
<virtusviri7321[m>
Hey folks, just for understanding for the WiFi network - enabling it on configuration.nix should guarantee internet connection?
<noonien>
i was wondering if there's people that have a more streamlined workflow
<srk>
noonien: if you are careful it's possible to run unstable or even master as main driver while working on it simultaneously
<noonien>
i prefer my system to be stable without me being careful. it's the main reason i love nixos
<deni>
yorick: trying to package a nodejs thing or a python thing (which was my other option) seems to be more difficult than just using the tools that are provided
<srk>
noonien: I'm using two nixpkgs repos, one to build a system for and for git work
<srk>
*one
<deni>
yorick: specifically I was unable to package bluepy
<noonien>
srk: i see, do you cherrypick commits?
<yorick>
deni: well, I mean, gettig it to work in the first place is hard enough
<srk>
noonien: not really, running from master when stuff that I need builds
<MichaelRaskin>
noonien: you can also have stuff from master built and used on top of the system installed from stable
<deni>
yorick: I'm just frustrated that if I was on a more mainstream distro I'd be done with this already...nixos makes stuff really hard sometimes
<MichaelRaskin>
deni: you might have some luck with FHS envs…
<noonien>
MichaelRaskin: with cherrypicking? or just overlaying?
<srk>
noonien: it is surprisingly stable (desktop x86 setup, xmonad, bunch of dev environments..). linux_latest as well
aleph- has joined #nixos
erictapen has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @globin pushed commit from @lheckemann to release-20.03 « freeradius: make debug logging optional »: https://git.io/Jfeex
<MichaelRaskin>
noonien: no, just build from another checkout
<deni>
MichaelRaskin: I did try that out....last time was for running deconz...and it wasn't particularly succesfull.
ashesham` has joined #nixos
<MichaelRaskin>
Yeah, not always easy to guess what you need in that env
ardumont has quit [Ping timeout: 246 seconds]
<deni>
the bluetooth situation is a tire fire... I mean it's been a long time since I've seen soo much misinformation and outdated and misinformed info on the web about a linux topic.... it's even worse than the linux audio subsystem
<yorick>
deni: does arch still have gatttool?
cosimone has joined #nixos
<yorick>
iirc it's deprecated/gone upstream
<deni>
yorick: I have no idea...but debian does
<deni>
and I'm running the same version of bluez
<yorick>
yeah, debian would be a few years behind
ardumont has joined #nixos
asheshambasta has quit [Ping timeout: 265 seconds]
<nikola_i>
fsck is failing during boot on luks encrypted home partition with no network access. how do i deal with this. what are my options here?
<noonien>
hmm, is there documentation as to what the different branches in nixpkgs mean? how do the branches in nixpkgs-channels track nixpkgs?
<deni>
yorick: that's not true for unstable which I'm running....it's just that debian developers repackage stuff and don't drop things that will break a billion shell scripts :D
mallox has quit [Ping timeout: 258 seconds]
<hodapp>
deni: bluez... let me think back and figure out what I even did to solve this
mallox has joined #nixos
<deni>
yorick: I'm running bluez 5.50 both on nixos and on debian...but the debian version still has the legacy tooling present.
<deni>
hodapp: thanks!
<hodapp>
deni: honestly I think I just ended up using a Raspberry Pi
<hodapp>
a lot of this was 2+ years ago
ddellacosta has quit [Ping timeout: 250 seconds]
<deni>
hodapp: yeah I've been searching the IRC logs for stuff that's been discussed in the channel before... so I don't ask stuff that was solved before...that's how i stumbled upon your mention of this.
<deni>
hodapp: am I understanding correctly that the legacy tooling was available on the rpi so that's why you ended up using it?
<hodapp>
deni: believe so. let me boot my work laptop and see if I left any hints...
<yorick>
hodapp: personally I scrapped the entire BLE project
<yorick>
software support will get worse, somehow
<hodapp>
yorick: I didn't have the choice of this but I ended up having to switch tools/libraries
<hodapp>
all Python libs I tried were buggy and had many limitations. ended up using C directly, and some Go libraries
cosimone has quit [Quit: Quit.]
ashesham` has quit [Ping timeout: 246 seconds]
szicari has quit [Ping timeout: 246 seconds]
szicari has joined #nixos
<hodapp>
deni: it seems likely that I just downloaded BlueZ source (looks like I had 5.47) and built things like gatttool manually
<deni>
hodapp: I was afraid you were gonna say that! :D
<hodapp>
not sure how I did that but it looks like it took some finagling because the build kind of hid it
jakobrs has joined #nixos
<jakobrs>
If I just want to quickly write a prototype of something in Haskell
<jakobrs>
how do I do that?
<deni>
yorick: hodapp the thing is... bluetoothctl does seem to have support for the stuff that gatttool was used for....it's just a very much worse interface.
<jakobrs>
I presumably want to avoid having to write too much boilerplate before getting started
<deni>
yorick: hodapp one thing I'm unclear about BLE devices.... when I try to connect to my BLE sensor via bluetoothctl...it connects...but after 2-3 secconds it just disconnects. Is that normal? I mean are BLE devices designed to not maintain a stable connection and clients are to just connect->fetchinfo>disconnect all the time?
<hodapp>
deni: can't speak to bluetoothctl, but most BLE devices are able to maintain connections like this just fine
<srk>
noonien: not sure where to point you but nixpkgs-channels track nixpkgs when hydra builds and tests are passing
<noonien>
i see
<srk>
policy might differ per channel
<hodapp>
and IIRC it is usually the central, not the peripheral, that decides when to both connect and disconnect
<srk>
but unstable is deceptive since it *is* tested :)
<noonien>
unstable != untested
<srk>
yeah, deceptive :)
<deni>
hodapp: hmmm.... then it would seem that there is something wrong with my setup. Do you know if there are any sysctl settings (like timeout) that I can tweak to get a more stable connection if this is infact not normal?
<hodapp>
deni: I am only familiar with things like 'hcitool' that can tell you the connection handle and give some information on that
<srk>
noonien: sorry, I'm not into stable :)
cosimone has joined #nixos
<deni>
hodapp: got it. thanks for your help. this space is super confusing. I have no idea how to navigate any of it.
<noonien>
i think i'll have master checked out, onto which i create branches to be merged in the main repo. and then nixos-* which track nixos-channels onto which i cherry pick my changes
<srk>
sound good
<srk>
master is also handy for running tests
<noonien>
hmm, i wonder if i can have 2 trees for one repo
<srk>
there are git worktrees now
<srk>
think it's exactly what you want
<noonien>
oh, that's awesome!
cosimone has quit [Client Quit]
<hodapp>
deni: yeah, it's a mess with BlueZ. what are you trying to do?
<srk>
noonien: what local repo for system build allows me to do is to hack as root to fix some service or nasty bug quickly and then pull commit to my work repo and finish it there
<{^_^}>
[nixpkgs] @Mic92 merged pull request #85155 → coreclr: get clang from llvmPackages → https://git.io/JvjQz
<deni>
hodapp: basically I just wanted to write a script to write out the values into a text file from where I would ship them somewhere else by other means. Then I hit a wall
<noonien>
i quite like nix-channels --update
<srk>
noonien: I find this aspect of NixOS totally awesome
<noonien>
but i guess i'll just have to create some scripts
<noonien>
oh yes, no doubt, it's awesome being able to do this
<deni>
hodapp: the python libs are horrible...and I don't really want to go through the pain of packaging anything python related so I was hoping to just use the available CLI tooling. Keeping it simple. Or so I thought
zupo has joined #nixos
<srk>
(it's not for everyone ik but you've asked about workflows :))
<{^_^}>
[nixpkgs] @bhougland18 opened pull request #85174 → windowchef: init at 0.5.0 → https://git.io/JfevQ
gxt has quit [Ping timeout: 240 seconds]
sigmundv__ has quit [Remote host closed the connection]
<hodapp>
deni: about the only library that worked well for me was bluepy
<energizer>
on 4k, some gui elements are too small. is there a recommended setting for scaling these up?
<pie_[bnc]>
virtual machine + bluetooth usb forwarding <deni> hodapp: the python libs are horrible...and I don't really want to go through the pain of packaging anything python related so I was hoping to just use the available CLI tooling. Keeping it simple. Or so I thought
<pie_[bnc]>
or at least thats what i would try...idk
<deni>
pie_[bnc]: this seems incredibly complicated for such a simple task. :(
<pie_[bnc]>
we have different metrics for complicated :(
<pie_[bnc]>
not that im an authority on doing stuff easily
<pie_[bnc]>
wait
<pie_[bnc]>
did you try just using virtualenv?
<pie_[bnc]>
well the whole problem is the dealing with native libs mess
<hodapp>
pie_[bnc]: I found it much simpler to just use Go and go-ble/ble or currantlabs/ble. The problem with USB forwarding here is twofold: it's frequently not a USB device, and even if it is, you have to find a way to keep the device from being claimed so you actually *can* pass through the USB device
<deni>
pie_[bnc]: TBH I'm not sure how virtualenv would even work on nixos ... but I haven't tried it. I do have a philosophical opinion that I do not want to install dev tooling just to use something written a particular language. Even though I was a Pythonista
<pie_[bnc]>
deni: virtualenv works as always. just that due to the lack of classic fhs, things might not be able to find various other things
MightyJoe has joined #nixos
<deni>
pie_[bnc]: that's my definiton of does *not* work :D
<pie_[bnc]>
oh i misunderstood
<deni>
hodapp: what do you mean no way of specifying BLE device? that seems like kind of the core of the thing you would want it to do right?
cyraxjoe has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @globin opened pull request #85177 → sslscan: enabling scanning for sslv3 → https://git.io/JfeJN
<hodapp>
deni: err, I mean, which HCI device if you have several on your system
<hodapp>
not which BLE *peripheral*
<{^_^}>
[nix] @andir opened pull request #3492 → SourceExprCommand: allocate the vSourceExpr via uncollectable memory → https://git.io/JfeJp
<deni>
hodapp: ah ok...that makes much more sense
<deni>
hodapp: it's hardcoded hci0 I believe
7YSAAISIH has joined #nixos
<energizer>
jasom: i'll try xft.dpi
<energizer>
jasom: thanks
<hodapp>
it is. I had to frantically write a patch when we discovered that the onboard BLE device on certain Intel NUCs is flaky and due to it not being a USB device there was no good way (in conjuction with Balena/Docker) to blacklist it from ever being loaded, so even a separate USB dongle didn't help if we couldn't use it
<hodapp>
as this happened on the floor of a trade show...
knupfer has quit [Quit: knupfer]
<deni>
hodapp: ah I suppose it's a good time to bring up that I'm using a Intel NUC device .... the issues just keep piling up :D
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
<hodapp>
deni: my particular issue is that the device would just fall over and stop receiving packets with no warning
knupfer has joined #nixos
knupfer has quit [Client Quit]
<hodapp>
sometimes resetting the device would clear it, sometimes it required a reboot
knupfer has joined #nixos
<DamienCassou>
is there a place where I can write the wifi credentials I need and nixos takes care of installing them?
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Read error: Connection reset by peer]
knupfer has joined #nixos
<bbarker>
Was just looking at the emacs section, and the melpa packages (when I try to call the example shown at https://nixos.org/nixos/manual/index.html#module-services-emacs as a shell.nix dependency) show e.g. "error: undefined variable 'undo-tree'" - my assumption is that they should be defined in epkgs.melpPackages, so I'm confused about why this might be happening. Actually the error also occurs with `nix-build emacs.nix`, just as in the
<deni>
hodapp: I haven't looked at it in more detail yet... I'll let you know
henry_ has quit [Ping timeout: 256 seconds]
Nixola has quit [Ping timeout: 256 seconds]
Nixola has joined #nixos
Nixola is now known as Guest79640
rnmhdn has quit [Ping timeout: 264 seconds]
<bbarker>
Is there a way to configure which emacs packages are loaded in a particular invocation of nix-shell? Normally this would require editing ~/.emacs, which is a bit more global than desired here.
drakonis has quit [Read error: Connection reset by peer]
<pinkieval>
uh, ${foo} in comments are evaluated?
is_null has joined #nixos
<cole-h>
What kind of comments are you talking about?
<bbarker>
pinkieval, yes, unfortunately - i don't recall the logic but yes. I run into this in shellHook
<pinkieval>
in .nix
<cole-h>
,escape''
<{^_^}>
'' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
xkapastel has quit [Quit: Connection closed for inactivity]
jakobrs has quit [Quit: WeeChat 2.8]
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
civodul has joined #nixos
luc65r has joined #nixos
<energizer>
gchristensen: neat blog post today. one question i had looking at your config, where is your wifi password?
is_null has quit [Remote host closed the connection]
<gchristensen>
since it is a laptop, I just use nmtui
<gchristensen>
I wouldn't want to make that part of my config, since it'd make it too annoying to be at a coffee shop. .. not that I do that anymore
<pinkieval>
how do I express a dependency that is required only at runtime (but not at build time)?
<gchristensen>
pinkieval: run time dependencies are strictly a subset of build-time dependencies. (ie: you must specify it at build time)
<pinkieval>
hmm ok
<energizer>
gchristensen: also, when you do `import "${root}/secrets.nix";` does secrets.nix have your actual unhashed secrets in it? do they end up in the nix store?
<nikola_i>
how do i deal with failed dependency on luks encrypted /home
<gchristensen>
energizer: they don't really have secret-secrets, I just don't want to commit changes about where I am / when I travel / etc.
<clever>
energizer: i think you want `import (root + "/secrets.nix")` to stop it from copying the file into the store
<clever>
energizer: but what you pass the values to, may still write them to the store
<gchristensen>
but yes they get in to the store
<energizer>
gchristensen: i wish there were a word for opsec information that's not keys/passwords...
<nikola_i>
fsck is failing on /home with no network access. i am unable to rebuild with fsck disabled
<colemickens>
nikola_i: can you give more details? are you doing a new setup? did you modify an existing install and you're in a bad spot now?
<colemickens>
Hm. I'm kinda confused. Is /home a CIFS/NFS mount or why do you mention network access?
<nikola_i>
colemickens: I had a perfectly working 19.03 setup. the only modification i did since last boot was resintall youtube-dl. when i rebooted after a few days, it boots with fsck failing on luks encrypted home. i was trying to disable fsck on boot through configuration.nix. but lack of network access is preventing me from rebuilding
<clever>
energizer: ive not read that yet, but the general solution is to give the service the path to a secret, rather then the secret itself
<nikola_i>
colemickens: let me know any further information you need
<clever>
energizer: which also conflicts with having a secrets.nix, because you have no way to write it out from nix
cyraxjoe has joined #nixos
ratsclub has joined #nixos
<colemickens>
nikola_i: okay, I understand I think. That's a bit strange. I guess that your LUKS was getting decrypted and then fsck was running when mounting and failing I guess?
<nikola_i>
that is correct
<colemickens>
nikola_i: maybe others have suggestions but I would probably grab a nixos install media, boot it, cryptsetups luksOpen, and then fsck/mount manually.
MightyJoe has quit [Ping timeout: 240 seconds]
<colemickens>
with the assumption that if you fix the fsck error manually, that when you boot your nixos system again it completes successfully and you can be unblocked.
ratsclub has quit [Client Quit]
<noonien>
hmm, how could one get the hash of a package, given a nixpkgs path, from a script?
<energizer>
is lib considered part of nix, nixos, or nixpkgs?
<gchristensen>
nixpkgs
<noonien>
ah, cool, `nix-instantiate -I . -A pkgs.hello`
<noonien>
is there a way to get only the hash?
<energizer>
ok
<clever>
noonien: the `-I .` doesnt really do anything
j0hax has joined #nixos
<noonien>
hmm, the help page says the import paths i've given are propritized
<nikola_i>
colemickens: your approach hints me that probably something is wrong with fsck on my setup which can be corrected through install media. but what if i reboot again? will fsck succeed in that instance.
<clever>
noonien: `-I .` means to search for `<foo>` at `./foo`
<clever>
noonien: but if your never doing `<foo>` or `<nixpkgs>` then the NIX_PATH and -I get toally ignored
<noonien>
ah, i see
<clever>
noonien: and you didnt specify a filename, so it loads default.nix from the current dir
j0hax has quit [Client Quit]
<noonien>
i see, how can i specify the path to a nixpkgs checkout?
<colemickens>
nikola_i: I was assuming that when fsck failed in your boot, that you were unable to make an attempt recovery steps. Thus, my assumption would be that you can run fsck in a more aggressive repair mode than what occurs during the nixos boot.
<clever>
noonien: -I nixpkgs=~/nixpkgs
<colemickens>
nikola_i: but that also gets into dicey territory, letting fsck correct errors can lead to it doing the wrong thing.
bvdw has joined #nixos
<nikola_i>
colemickens: so how do i perform fsck without the install media
<noonien>
is it possible to get the hash of a derivation from nix-instantiate?
<energizer>
i want to add comments to each line of a multiline string that ends up in a config file, but i don't know the comment syntax of the target file. does nix have a syntax to help with this?
<clever>
noonien: which hash? the output path?
<colemickens>
I'm not sure, I don't know if nixos has a single user mode escape hatch. If you have another distro installed you could do it from there. Otherwise, eh, not at a lot of good options.
<clever>
$ nix-instantiate '<nixpkgs>' -A hello.outPath --eval
<Cadey>
how do i use clang from llvm 10 in a nixpkgs build?
knupfer has joined #nixos
morgrimm has quit [Ping timeout: 265 seconds]
<bqv>
pkgs.llvmPackages_10.clang
<bqv>
pkgs.llvmPackages_10.llvm
<bqv>
pkgs.llvmPackages_10.stdenv
maddo has quit [Quit: See ya]
<{^_^}>
[nixpkgs] @worldofpeace closed pull request #85150 → bookworm: fixing the executable name → https://git.io/JvjHJ
morgrimm has joined #nixos
<energizer>
is it possible to get a list of all of the declared options in my nixos install?
<bqv[m]>
man configuration.nix
arjen-jonathan has quit [Ping timeout: 265 seconds]
<energizer>
i mean programmatically
<{^_^}>
[nixpkgs] @globin pushed 2 commits to structured-attrs: https://git.io/JfeI9
<Cadey>
error: anonymous function at /home/cadey/code/nixpkgs/pkgs/development/compilers/zig/default.nix:1:1 called with unexpected argument 'llvmPackages',
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/JfeLB
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to release-20.03: https://git.io/JfeLE
nschoe has joined #nixos
<b42>
Cadey: afaik nix-build doesn't use the system channel unless you give it something like <nixpkgs> as an argument - with no arguments it builds default.nix in current directory
knupfer has quit [Ping timeout: 260 seconds]
<Cadey>
can i specify patches inline to the default.nix file?
<simpson>
I could have sworn so, but it's not in the manual. You could manually invoke patch with a heredoc literal in prePatch or postPatch.
<bqv>
energizer: say someone wants to debug something you're experiencing, you point them to your config, they can't solve the issue because something relevant is in hardware-configuration.nix that they can't see.
<bqv>
my point is there's no real reason to hide it and it's part of the evaluation, so most people just add it
<asbachb>
`because it lacks a valid signature`
<{^_^}>
[nixpkgs] @worldofpeace pushed to worldofpeace-patch-1 « bug_report.md: ask to notify maintainers »: https://git.io/JfetB
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JfetE
<{^_^}>
[nixpkgs] @worldofpeace pushed 0 commits to worldofpeace-patch-1: https://git.io/Jfetu
CMCDragonkai_ has quit [Quit: Connection closed for inactivity]
<pinkieval>
I'm messing around with an experimental compiler, and it's baking the path of its outputs into the binaries; so I need ${out} at build time. Is it possible? Or should I call the compiler in the install phase?
pbogdan has quit [Ping timeout: 258 seconds]
morgrimm has joined #nixos
opthomasprime has joined #nixos
opthomasprime has left #nixos [#nixos]
<Cadey>
how do i make a nix-build run the check phase?
LysergicDreams has quit [Ping timeout: 256 seconds]
morgrimm has quit [Ping timeout: 264 seconds]
LysergicDreams has joined #nixos
<b42>
pinkieval: it should be available at build phase, however it's a shell variable so $out not ${out}
morgrimm has joined #nixos
<simpson>
nix-build should run checks by default. Are you sure that the checks are defined and enabled?
<pinkieval>
b42: that's also what I thought, but it's being replaced by "ut"
<b42>
o_O
ambro718 has quit [Quit: Konversation terminated!]
<gchristensen>
is this in a makefile?
<Cadey>
simpson: i have a `checkPhase` defined, but it's not being run, how do i enable it?
<pinkieval>
gchristensen: oh. yes.
<pinkieval>
thanks a lot
<gchristensen>
makefiles only support single-letter variablesunless y... cool :)
<Cadey>
oh
<Cadey>
doCheck
<WinchellsM>
clever: Earlier you helped me restore my NixOS system after I deleted /nix on accident. Just wanted to thank you again for helping me out. My system is restored.
<pinkieval>
b42: thank you too
kelop[m] has joined #nixos
kelop[m] is now known as kelop[m]1
kelop[m]1 is now known as kelop[m]2
__monty__ has quit [Quit: leaving]
<clever>
WinchellsM: nice
<clever>
WinchellsM: i'm a bit surprised nix-build even worked, the binary should have been missing
<clever>
WinchellsM: did you ctrl+c mid way thru?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iqubic has quit [Remote host closed the connection]
nschoe has quit [Ping timeout: 256 seconds]
morgrimm has quit [Ping timeout: 264 seconds]
<bqv>
i love that if you leave cadey a minute or two, s/he just answers their own question
<bqv>
(that apparently failed to sync from matrix)
<Cadey>
bqv: i mean i tend to ask questions then read documentation and random nix build files in nixpkgs, then test it locally and worst case i can't find it and my question gets answered
<Cadey>
more efficent this way :D
<WinchellsM>
clever: Yes I ctrl+c'ed a few seconds after
<bqv>
i know, it's just now i'm defaulting to just leaving you to your devices and seeing how quickly you answer it yourself :p
<pinkieval>
Cadey: IRC as a cache for the documentation
<bqv>
lol
rogue_koder has quit [Ping timeout: 260 seconds]
iqubic has joined #nixos
<sshow>
I think I want to use node2nix with a remote repository, so that I can deploy it using nixops without having the sources locally. Am I thinking wrong? :S
<sshow>
all the docs says I use node2nix on a local package.json, and the .nix files appears besides it. But what about remote sources? I don't understand this yet.
<clever>
sshow: you then need to commit that default.nix to the repo, and load it with callPackage and fetchzip
broccoli has quit [Ping timeout: 256 seconds]
rogue_koder has joined #nixos
<Cadey>
pinkieval: i mean i have had some of my own questions show up in the IRC logs as cached by google
<Cadey>
so there's that
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<{^_^}>
[nixpkgs] @Xe opened pull request #85183 → zig: upgrade to 0.6.0 → https://git.io/JfemT
siers has joined #nixos
* gchristensen
does a celebratory update
<drakonis1>
you mean a little dance?
<cole-h>
How do you disable `generated/options-db.xml` and `manual-combined.xml`? Trying to build an ISO to test stuff locally and getting validity errors...
fendor has quit [Read error: Connection reset by peer]
<pinkieval>
dumb question: how do I skip the install phase?
<vika_nezrimaya>
disabling the manual should help?
<vika_nezrimaya>
pinkieval: installPhase = "";
<pinkieval>
nope
<pinkieval>
it runs make install
<virtusviri7321[m>
When will NixOS 20.03 released
<cole-h>
And how does one disable the manual? :P
<cole-h>
virtusviri7321[m: When it's ready :)
<Cadey>
virtusviri7321[m: you can use it today if you want fwiw
<ashkitten>
pinkieval: try installPhase = ":";
<Cadey>
i had to for my ryzen desktop
<pinkieval>
ah, dontInstall = true
<pinkieval>
but it's not documented
reallymemorable has quit [Quit: reallymemorable]
<pinkieval>
ashkitten: ah, I guess that works too
<virtusviri7321[m>
For sure let us celebrate in times of lockdown
philr has joined #nixos
<asbachb>
When my build machine is using building groups who should be used to ssh into
<vika_nezrimaya>
virtusviri7321[m: why not use unstable though? it's rolling release and it's not as unstable as you might think
<vika_nezrimaya>
I'm keeping a production server and a laptop on unstable and it doesn't break
<clever>
pie_[bnc]: what do you want to then do with the src?
<pie_[bnc]>
clever: python bindngs
<pie_[bnc]>
er
<pie_[bnc]>
they contain python bindings
<clever>
pie_[bnc]: id just use runCommand and unpackPhase then
<pie_[bnc]>
so, its the final product
<pie_[bnc]>
'k :I
<pie_[bnc]>
thanks
<infinisil>
NullA2394: There isn't a single matrix client. Matrix is just a protocol which can be implemented by anybody's client and server. You probably used Riot though (specifically https://riot.im/app/), which is currently the most used and complete matrix client
<NullA2394>
Yes I did
<infinisil>
You can of course use discord, though keep in mind that the vast majority of people will be here and not in discord