andi- changed the topic of #nixos to: NixOS stable: 19.09 \o/ https://discourse.nixos.org/t/nixos-19-09-release/4306/2 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || use ,channels for a list of Nix* related channels || nixcon videos: https://tinyurl.com/nixcon2019 || Link to the output of nix-info
<{^_^}> [nixpkgs] @petabyteboy pushed 5 commits to master: https://git.io/JfJw1
<{^_^}> [nixpkgs] @petabyteboy merged pull request #77762 → deluge 2.0.3 and libtorrentRasterbar 1.2.5 → https://git.io/JvUBJ
hmpffff has quit [Quit: nchrrrr…]
reallymemorable has quit [Quit: reallymemorable]
hmpffff has joined #nixos
hmpffff has quit [Client Quit]
reallymemorable has joined #nixos
morgrimm has joined #nixos
evertedsphere has joined #nixos
jbox has quit [Quit: WeeChat 2.8]
snicket has quit [Ping timeout: 240 seconds]
morgrimm has quit [Ping timeout: 240 seconds]
<energizer> i notice a lot of tasks that need to be done once when switching to config are done with a service. why is that?
AFKRozy has joined #nixos
philr_ has joined #nixos
<nh2> I'm trying to install a server. `nixos-install` runs through but on reboot I get dropped into the grub rescue shell and `ls /` shows nix/, etc/ and so on, but `ls /boot` is empty. Anyone ever seen that?
drakonis_ has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
evanjs has quit [Quit: ZNC 1.7.5 - https://znc.in]
evanjs has joined #nixos
drakonis1 has joined #nixos
drakonis_ has quit [Ping timeout: 258 seconds]
lurkless has quit [Remote host closed the connection]
justan0theruser has joined #nixos
morgrimm has joined #nixos
justanotheruser has quit [Ping timeout: 272 seconds]
kazimazi has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/10100a97c89 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JfJrs
ok2` has quit [Ping timeout: 250 seconds]
<kazimazi> Hi. I have a little problem with some vim plugins and would appriciate some help. I installed vim and declaratively and want to use coc.nvim and some other extensions such as coc-json. Coc works perfectly, but coc-json doesn't. In fact non of the coc-* vimplugins work (that I tested at least).
ok2` has joined #nixos
<{^_^}> [nixpkgs] @spinus closed pull request #67661 → androidenv: android licenses → https://git.io/fjxni
xO1 has quit [Ping timeout: 256 seconds]
m0rphism has quit [Ping timeout: 256 seconds]
wildtrees has quit [Quit: Leaving]
ixxie has quit [Quit: Lost terminal]
ixxie_ has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @nlewo merged pull request #85467 → yq-go: 3.2.1 -> 3.3.0 → https://git.io/JfJVG
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/JfJr8
pamplemousse has quit [Ping timeout: 258 seconds]
dansho has joined #nixos
leotaku has quit [Ping timeout: 265 seconds]
Vikingman has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
drakonis1 has quit [Ping timeout: 272 seconds]
lurkless has joined #nixos
<{^_^}> [nixpkgs] @petabyteboy opened pull request #85470 → blas: fix build → https://git.io/JfJrS
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/fed820b7b84 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
tet[m] has joined #nixos
<{^_^}> [nixpkgs] @bbigras opened pull request #85471 → spotifyd: add withMpris and withKeyring optionals → https://git.io/JfJoU
<{^_^}> [nixpkgs] @veprbl merged pull request #85466 → add myself (wamserma) to maintainer list → https://git.io/JfJ2F
<{^_^}> [nixpkgs] @veprbl pushed commit from @wamserma to master « maintainers: add wamserma »: https://git.io/JfJoq
<{^_^}> [nixpkgs] @das-g opened pull request #85472 → lektor: fix "ImportError: No module named pkg_resources" → https://git.io/JfJo4
Emantor has quit [Quit: ZNC - http://znc.in]
<{^_^}> [nixpkgs] @marsam opened pull request #85473 → bazelisk: 1.3.0 -> 1.4.0 → https://git.io/JfJoz
Emantor has joined #nixos
codygman has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @marsam merged pull request #85380 → packet-cli: init at 0.0.6 → https://git.io/JffE0
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfJoD
codygman has joined #nixos
tom43422 has joined #nixos
ris has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @marsam opened pull request #85474 → dune_2: 2.5.0 -> 2.5.1 → https://git.io/JfJKL
<tom43422> I have three NixOS servers (managed via NixOps): two HTTP servers A, B, and a monitoring server M. M monitors the vhosts on A and B. Currently M knows which vhosts to monitor because I hard code them in M's nix config. Ideally M would be able to learn about the vhosts on A and B by accessing the services.nginx.virtualHosts . What's a good way to do this?
thc202 has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #85470 → blas: fix build → https://git.io/JfJrS
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/JfJKO
<simpson> tom43422: When I last did this, I had my nixops configuration include a list of HTTP servers. This was also useful because I could map over that same list to build the HTTP servers themselves, not just the monitoring configuration.
<{^_^}> [nixpkgs] @das-g opened pull request #85475 → lektor: make available as application → https://git.io/JfJK8
<tom43422> simpson: Mmm. Where do you store the nginx config associated with each vhost? ( { serverName = ...; enableACME = ...; } )
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/2e08e8cb260 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<tom43422> I figure any solution that involves pulling per-machine config into the nixops config ultimately breaks modularity.
smatting_ has joined #nixos
iyzsong has joined #nixos
<simpson> tom43422: Ultimately, I ended up building a small chunk of JSON which maps each machine to a description-object, and loaded that JSON. I also happened to be in a situation where I was instantiating lots of servers with relatively uniform configuration.
<tom43422> Ah I see. So there's wasn't much per-machine config anyway. Yeah, uniformity is a great help for this sort of stuff.
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/fed820b7b84 (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/b76e3eab187 (from 13 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
smatting has quit [Ping timeout: 256 seconds]
<tom43422> I think something akin to NixOS modules in Nix (and thus available in NixOps, or any other layer for dealing with multiple machines) would solve this, but I don't know what that'd look like.
<tom43422> I suppose Guix could do this, because it's just plain old scheme.
codygman has quit [Ping timeout: 256 seconds]
smatting_ has quit [Ping timeout: 256 seconds]
<{^_^}> Channel nixpkgs-20.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/2e08e8cb260 (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-20.03-darwin)
codygman has joined #nixos
<gchristensen> tom43422: machines in a nixops network can look at other machines' configs
<tom43422> As a compromise, and it's not very Nix-y, but it preserves modularity: A and B could define a Nix attribute which contains a list of hosts that should be monitored. M would import that value.
pbogdan has quit [Ping timeout: 260 seconds]
<tom43422> gchristensen: Oh, great. So I can just iterate over each machine's services.nginx.virtualHosts?
<tom43422> map* of course!
<gchristensen> yeah
AFKRozy has quit [Ping timeout: 265 seconds]
<tom43422> gchristensen: Perfect, thank you.
<simpson> Huh, TIL.
<gchristensen> you're welcome@
codygman has quit [Ping timeout: 264 seconds]
h0m1 has quit [Ping timeout: 265 seconds]
codygman has joined #nixos
h0m1 has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
penguwin has quit [Quit: NO CARRIER]
penguwin has joined #nixos
bqv has quit [Read error: Connection reset by peer]
bkv has joined #nixos
sigmundv__ has quit [Read error: Connection reset by peer]
sigmundv__ has joined #nixos
gustavderdrache has quit [Quit: Leaving.]
slack1256 has joined #nixos
proofofkeags has quit [Remote host closed the connection]
<qy[m]1> can i gc only derivers?
penguwin has quit [Quit: NO CARRIER]
penguwin has joined #nixos
chr1sm has joined #nixos
proofofkeags has joined #nixos
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
<pie_[bnc]> Ericson2314: I saw you cmmenting on a HN bors thread, dunno how much you know about the space; do you know if there something I could set up a local copy of to do something similar? ideally with something I can set up with a plain git repository and taking merges from a staging branch or something, but im also open to stuff like gitlab I guess
<pie_[bnc]> I want to be able to run and prototype stuff locally
<pie_[bnc]> I.e. I think bors is tied to github?
codygman has quit [Ping timeout: 265 seconds]
<{^_^}> [nix-pills] @mhwombat opened pull request #136 → show new output for :b → https://git.io/JfJ6i
codygman has joined #nixos
nuncanada has quit [Quit: Leaving]
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
das_j has quit [Quit: killed]
ajs124 has quit [Quit: killed]
Scriptkiddi has quit [Quit: killed]
mrpi has quit [Quit: killed]
aw has joined #nixos
spacefrogg has joined #nixos
ajs124 has joined #nixos
das_j has joined #nixos
Scriptkiddi has joined #nixos
mrpi has joined #nixos
morgrimm has quit [Ping timeout: 256 seconds]
ashkitten has quit [Quit: WeeChat 2.8]
morgrimm has joined #nixos
ashkitten has joined #nixos
peelz has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @bhipple closed pull request #85455 → ghidra: 9.1 -> 9.1.2 → https://git.io/JfJ0E
sigmundv__ has quit [Ping timeout: 256 seconds]
<Ashy> i've forked nixpkgs to update a package version, what's the syntax to test it with nix-shell again?
mctl has quit [Quit: WeeChat 2.8]
<{^_^}> [nixpkgs] @bhipple merged pull request #84925 → ghidra: 9.1 -> 9.1.2 → https://git.io/JvhYa
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JfJ67
morgrimm has quit [Ping timeout: 256 seconds]
<Ashy> `nix-shell -I nixpkgs=. -p somepackage` doesn't seem to be doing the right thing
felixfoertsch has quit [Ping timeout: 272 seconds]
felixfoertsch has joined #nixos
<{^_^}> [nixpkgs] @bhipple opened pull request #85477 → [20.03] mesa-glu: use HTTPS instead of FTP → https://git.io/JfJ6F
teto has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @bhipple merged pull request #85430 → vscode, vscodium: 1.44.0 -> 1.44.1 → https://git.io/JfJvT
<{^_^}> [nixpkgs] @bhipple pushed 3 commits to release-20.03: https://git.io/JfJ6p
betamike has joined #nixos
bkv has quit [Ping timeout: 246 seconds]
nobrak``` has quit [Read error: Connection reset by peer]
bkv has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @eadwu opened pull request #85478 → manual/rl-2009.xml: fix build → https://git.io/JfJit
morgrimm has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<Ashy> ah nix-build seems to be building the new version: nix-build -I nixpkgs=/path/to/repo '<nixpkgs>' -A updated-package
kazimazi has quit [Quit: Leaving]
pamplemousse has joined #nixos
morgrimm has quit [Ping timeout: 265 seconds]
AFKRozy has joined #nixos
ericsagnes has quit [Ping timeout: 246 seconds]
sarcasticadmin has quit [Ping timeout: 260 seconds]
morgrimm has joined #nixos
<{^_^}> [nixpkgs] @veprbl merged pull request #85406 → sourcehut: 2020.04.16 → https://git.io/JffXP
<{^_^}> [nixpkgs] @veprbl pushed 16 commits to master: https://git.io/JfJi6
<pie_[bnc]> can nix-shell directly take a tarball url?
pamplemousse has quit [Ping timeout: 256 seconds]
morgrimm has quit [Ping timeout: 260 seconds]
<pie_[bnc]> ok yes yes it can
<pie_[bnc]> hm
waleee-cl has quit [Quit: Connection closed for inactivity]
<aleph-> Question for those who use the nginx-sso module with the nginx service. How does it work with web apps? Will it forward the login to the web app so I don't have to log in again? Was looking to just try it out using basic auth
ericsagnes has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 pushed 31 commits to staging: https://git.io/JfJiD
Izorkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
Izorkin has joined #nixos
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
fresheyeball has joined #nixos
proofofkeags has quit [Ping timeout: 256 seconds]
<pie_[bnc]> can I get nix-run -f https://github.com/nmattia/niv/tarball/master to work with nix-shell?
<pie_[bnc]> no variant of the flags I can come up with seems to do whatever nix run does
<pie_[bnc]> *nix run
morgrimm has joined #nixos
<{^_^}> [nixpkgs] @veprbl closed pull request #76400 → Update surf (2017-03-28 → 2019-02-08) → https://git.io/JeF7f
morgrimm has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #85468 → treewide: Get rid of -dumpmachine in favor of static info → https://git.io/JfJVK
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/JfJiF
<aleph-> Okay, how does this actually work. Documentation is... non-existant
drakonis_ has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
<aleph-> delroth: Iffin ya'll are around tomorrow. Mind if I bug you about nginx-sso since you added the service?
<aleph-> Minorly confused why if it takes in it's config via yaml we use builtins.toJSON?
<aleph-> Seems the service is failing out when reading my config.
<pie_[bnc]> aleph-: link?
<aleph-> Hmm, to?
chagra_ has joined #nixos
orivej has joined #nixos
xO1 has joined #nixos
chagra has quit [Ping timeout: 256 seconds]
drakonis_ has joined #nixos
<pie_[bnc]> aleph-: toJSON usage
<aleph-> Ah sec
<aleph-> Line 8
drakonis has quit [Ping timeout: 265 seconds]
<srxl[m]> How are BEAM application dependencies expected to be handled in nixpkgs?
<srxl[m]> For example, if I have a package with 5 dependencies, would I need to add a separate derivation for all 5 dependencies in nixpkgs?
<srxl[m]> and then from there, pass them all into `beamDeps`
<energizer> idk about beam specifically but that sounds pretty normal for nixpkgs
<srxl[m]> Yeah, I'm just wondering how node-env handles it
<srxl[m]> Because it doesn't seem to make a derivation for every dependency of a node package
lsyoyom has quit [Ping timeout: 260 seconds]
<srxl[m]> Think I might have an idea for how to handle this though
palo1 has joined #nixos
noonien has quit [Quit: Connection closed for inactivity]
palo has quit [Ping timeout: 240 seconds]
palo1 is now known as palo
lsyoyom has joined #nixos
mac10688 has joined #nixos
<energizer> srxl[m]: there's also the naersk/poetry2nix approach which is much more automated
<energizer> that works if your package format generates lockfiles
drakonis has joined #nixos
<srxl[m]> It does
drakonis_ has quit [Ping timeout: 246 seconds]
CMCDragonkai1 has joined #nixos
<dsal> How do nixos updates work? Do I just rebuild/switch regularly?
CMCDragonkai1 has quit [Remote host closed the connection]
<energizer> dsal: update channel and rebuild ya
<dsal> It's mildly confusing to me that `nix-channel --update` and `sudo nix-channel --update` do different things.
kleisli__ has joined #nixos
fresheyeball has quit [Quit: WeeChat 2.7.1]
<est31> you need to update the per-user nix packages as well
<est31> if you have installed them
<energizer> there is also system.autoUpgrade.enable
<srxl[m]> How's this poetry2nix meant to be used?
drakonis_ has joined #nixos
kleisli_ has quit [Ping timeout: 258 seconds]
drakonis1 has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
<energizer> srxl[m]: you make a default.nix with {poetry2nix}: poetry2nix.mkPoetryWhatever {projectDir = ./.;}
<srxl[m]> I meant more like how do you get it installed on a system?
<energizer> it's in nixpkgs
<energizer> recently
<{^_^}> [nixpkgs] @vcunat pushed 170 commits to staging-next: https://git.io/JfJPl
rooke has joined #nixos
<srxl[m]> ahhh, gotcha
drakonis_ has quit [Ping timeout: 246 seconds]
linarcx has joined #nixos
_viz_ has joined #nixos
<{^_^}> [nixos-homepage] @davidak opened pull request #396 → Rework community page → https://git.io/JfJPa
<{^_^}> [nixpkgs] @petabyteboy merged pull request #85478 → manual/rl-2009.xml: fix build → https://git.io/JfJit
<{^_^}> [nixpkgs] @petabyteboy pushed commit from @eadwu to master « manual/rl-2009.xml: fix build (#85478) »: https://git.io/JfJPr
kleisli_ has joined #nixos
Ralith_ has quit [Ping timeout: 260 seconds]
Ralith_ has joined #nixos
kleisli__ has quit [Ping timeout: 265 seconds]
Naptra has joined #nixos
asheshambasta has joined #nixos
h0m1 has quit [Quit: WeeChat 2.8]
rooke has quit [Quit: ZNC 1.6.5+deb1+deb9u2 - http://znc.in]
h0m1 has joined #nixos
palo1 has joined #nixos
rooke has joined #nixos
palo has quit [Ping timeout: 256 seconds]
palo1 is now known as palo
morgrimm has joined #nixos
growpotkin has joined #nixos
morgrimm has quit [Ping timeout: 264 seconds]
linarcx has quit [Quit: WeeChat 2.8]
<jluttine> how can i use `nix-build -A foobar` so that i'd do some overriding? so, i'd like to do `nix-build -A "foobar.override {someOption=true;}"` but this doesn't work (i didn't expect it to). so, what's the right way to do this?
rardiol has quit [Ping timeout: 264 seconds]
cosimone has joined #nixos
jrobeson has joined #nixos
slack1256 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @wamserma opened pull request #85480 → maintainers: add wamserma → https://git.io/JfJXd
<{^_^}> [nixpkgs] @wamserma opened pull request #85481 → maintainers: add wamserma → https://git.io/JfJXF
cole-h has quit [Quit: Goodbye]
jrobeson has quit [Remote host closed the connection]
konobi has quit [Quit: konobi]
markus1189 has joined #nixos
markus1189 is now known as predator117
predator117 is now known as markus1189
<{^_^}> Channel nixpkgs-20.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/a60473031a4 (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-20.03-darwin)
<{^_^}> [nixpkgs] @L-as opened pull request #85482 → age: 1.0.0-beta2 -> git-2020-03-25 → https://git.io/JfJ1q
morgrimm has joined #nixos
jbox has joined #nixos
mallox has joined #nixos
<jbox> how can I change if a systemd service restarts when I edit its config in configuration.nix? I remember being able to do it somehow
seanparsons has quit [Quit: ZNC 1.7.5 - https://znc.in]
seanparsons has joined #nixos
morgrimm has quit [Ping timeout: 260 seconds]
<clever> jbox: systemd.services.*.restartIfChanged.
<jbox> Thank you clever!
konobi has joined #nixos
AFKRozy has quit [Ping timeout: 258 seconds]
jakobrs has joined #nixos
maddo has joined #nixos
<jakobrs> Are the apt/ubuntu-style dependencies of Nix listed somewhere?
mallox has quit [Ping timeout: 260 seconds]
<jakobrs> I figured I wanted to try compiling Nix from source without using Nix, and the dependencies are somewhat hard to figure out (since they've got different names)
mallox has joined #nixos
<{^_^}> [nixpkgs] @lblasc opened pull request #85483 → luajit_2_0, luajit_2_1: bump to 2020-03-20, GC64 mode switch → https://git.io/JfJ1u
ATuin has joined #nixos
morgrimm has joined #nixos
<jakobrs> This must be the least helpful error message ever:
<jakobrs> $ make
<jakobrs> GEN doc/manual/manual.xmli
<jakobrs> make: *** [doc/manual/local.mk:23: doc/manual/manual.xmli] Error 1
dansho has quit [Quit: Leaving]
<jakobrs> Is there a way to not build the manual?
morgrimm has quit [Ping timeout: 256 seconds]
dermetfan has joined #nixos
alexherbo2 has joined #nixos
<energizer> is it possible to make a symlink to a target without the target getting copied into the store?
jbox has left #nixos ["WeeChat 2.8"]
<MichaelRaskin> Yes, ln -s works during the builds and symlinks to the outside are not processed as references
dermetfan has quit [Quit: WeeChat 2.7.1]
dermetfan has joined #nixos
<energizer> can i put a symlink in my ~ that way?
nixguest has joined #nixos
<nixguest> Hello. Quick question for the experts: I can tell that under /nix, the store directory is mounted RO via bind. Is there a specific reason that only this subdirectory is mounted this way? Does /nix/var have to be writeable or is it okay for me to mount the entire /nix as RO and then disable the bind mount of /nix/store? I'm experimenting with a
<nixguest> stateless server setup
<jakobrs> I thing you're going to have problems if you try to mount /nix ro
<jakobrs> unless you manually remount it rw before every nix operation
<nixguest> That is my intention, I should have mentioned
sogatori has joined #nixos
<nixguest> My idea is a separate partition for /nix, remounting rw when rebuilding
<jakobrs> Then I don't see what could go wrong
<jakobrs> but
Izorkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
<jakobrs> Why not just have /nix/store on a separate partition?
<nixguest> So I guess my real question is: Is /nix ever written to *outside* of rebuilds?
<jakobrs> /nix/var is pretty much just symlinks anyway
Izorkin has joined #nixos
<nixguest> Hmm
<nixguest> Mainly because I want as little as possible being writeable
<jakobrs> /nix/var contains garbage roots, profiles, logs, and sockets, mostly
<nixguest> Yeah, I was mostly worried about the logs
<jakobrs> I think the logs are specifically build logs
<jakobrs> I doubt it'll be a problem
<nixguest> I tried remounting /nix on a running system, it went fine. But I'm not intimate enough with NixOS to be sure that it won't be needed as part of maintenance (cron/timers)
<nixguest> Ah
<nixguest> I conclude the entire /nix on a separate read-only partition is alright then, given that it is mounted rw upon rebuilds
cosimone has quit [Remote host closed the connection]
<jakobrs> If you do `ls /nix/log/nix`, you'll see that there's only one folder, `drvs`
<jakobrs> Which is probably logs from building derivations
<jakobrs> but I can't guarantee anything
cosimone has joined #nixos
<nixguest> Of course not :D
<nixguest> Thank you for helping me, it was very useful
<jakobrs> nixguest: Also, I believe Nix remounts /nix/store via a systemd unit called nix-store.mount,
<jakobrs> You could try to modify that to remount your /nix instead
<nixguest> I believe nix.readOnlyStore can that care of that
<jakobrs> Yeah, but for remounting the entire /nix
<{^_^}> [nixpkgs] @rycee opened pull request #85485 → msmtp: 1.8.7 -> 1.8.8 → https://git.io/JfJMu
<jakobrs> you could possibly do it automatically if you change how nix-store.mount works
<nixguest> My plan was actually for having the entire partition mounted ro upon booting the system
<nixguest> Ah, I see
<nixguest> So that it is remounted rw automatically upon rebuilds
<jakobrs> yeah
<nixguest> Didn't think to be that clever about it haha
<nixguest> But I see your point :)
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
snicket has joined #nixos
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
m0rphism has joined #nixos
<yorick> why is fetchurl with a later unpackPhase preferred over fetchzip?
emptyflag has joined #nixos
<jakobrs> Will nix-daemon ever become a part of nix-command??
<jakobrs> s/??/?
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
<{^_^}> [nixpkgs] @rycee pushed to master « msmtp: 1.8.7 -> 1.8.8 »: https://git.io/JfJMi
<{^_^}> [nixpkgs] @rycee closed pull request #85485 → msmtp: 1.8.7 -> 1.8.8 → https://git.io/JfJMu
arstneio has joined #nixos
<asheshambasta> I'd like to fetch a repo from ghub and use its src (to traverse to subdirs), but using pkgs.fetchFromGitHub and using that value in a string as: "$src/foobar" gives me 'cannot coerce a function to a string
cosimone has quit [Remote host closed the connection]
Naptra has left #nixos ["Leaving"]
cosimone has joined #nixos
cosimone has quit [Client Quit]
emptyflag has quit [Remote host closed the connection]
<asheshambasta> more like "${src}/foobar"
koleesch has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<jakobrs> Why does nix-daemon want to mount /proc? can I disable this?
leotaku has joined #nixos
<evils> asheshambasta: something like this? `src = "{pkgs.fetchFromGitHub { .... }}/foobar";`
<{^_^}> [nixpkgs] @poscat0x04 opened pull request #85486 → haskellPackages: unbreak typerep-map, co-log and co-log-sys → https://git.io/JfJDY
<snicket> shall I label a package released under https://www.gnu.org/licenses/old-licenses/gpl-2.0.html as `gpl2` or as `gpl2Plus`?
<jakobrs> What is the purpose of .nix-defexpr?
chloekek has joined #nixos
<jakobrs> This looks like a bug: https://imgur.com/a/u6fGjGH
zaeph has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @das-g opened pull request #85487 → xkcdpass: make available as application → https://git.io/JfJDX
opthomasprime has joined #nixos
zaeph has joined #nixos
zoko has joined #nixos
alexherbo21 has joined #nixos
__monty__ has joined #nixos
alexherbo2 has quit [Ping timeout: 256 seconds]
alexherbo21 is now known as alexherbo2
<arstneio> I want to modify the `LD_LIBRARY_PATH` of a `shell.nix` created by `cabal2nix --shell . > shell.nix`, where do I do that?
<das-g[m]> Do you want to generate passphrases with the ease of `nix run nixpkgs.xkcdpass -c xkcdpass`? Then please review the one-line PR {^_^} just mentioned.
zoko has left #nixos ["Leaving"]
joehh1 has joined #nixos
<joehh1> hello, is there any way to convert json files to nix? I know I can read them in, but I want to migrate my config from json to nix to make use of function calls etc and have many to convert
<das-g[m]> Isn't valid JSON already valid nix?
<jakobrs> It's not exactly what you're asking for, but lib.importJSON can be used to read JSON in Nix
<das-g[m]> Or is the syntax just inspired by JSON
<jakobrs> json is not valid nix:
<jakobrs> > { "a": 3}
<{^_^}> error: syntax error, unexpected ':', expecting '.' or '=', at (string):304:6
<joehh1> thanks jakobrs, I was hoping then to be able to write the nix data structure out
Jackneill has quit [Read error: Connection reset by peer]
<lassulus> ABCC
<lassulus> C
<joehh1> something like lib.writeNix "myfile.nix" (lib.importJSON "myfile.json")
<lassulus> ACAC"}"B::"
<lassulus> ACAC"}"B::"
<lassulus> ""
<das-g[m]> um lassulus ... what are you trying to tell us?
<lassulus> CAAA
<lassulus> |\\
<lassulus> \
<lassulus> ||||||||||||\\?
<lassulus> "::C>CCCCCCCCCCCCCCCC?
<lassulus> "A
<lassulus> "|}|"}
dermetfan has quit [Ping timeout: 246 seconds]
<lassulus> |ups
<jakobrs> Wrong window?
<lassulus> I fell on the keyboard
<das-g[m]> are you alright?
<lassulus> yes :D
<das-g[m]> :-)
opthomasprime has quit [Remote host closed the connection]
opthomasprime has joined #nixos
<lassulus> but how did I generate those inputs? weird
<das-g[m]> Dunno whether Matrix let my previous message go through unjumbled, thus:
<das-g[m]> Do you want to generate passphrases with the ease of `nix run nixpkgs.xkcdpass -c xkcdpass`? Then please review the one-line PR #85487
<{^_^}> https://github.com/NixOS/nixpkgs/pull/85487 (by das-g, 16 minutes ago, open): xkcdpass: make available as application
zupo has joined #nixos
pbogdan has joined #nixos
opthomasprime has quit [Remote host closed the connection]
opthomasprime has joined #nixos
cr4y1 has joined #nixos
<jakobrs> Where am I supposed to source nix{,-daemon}.sh from?
Jackneill has joined #nixos
chagra_ has quit [Ping timeout: 256 seconds]
linarcx has joined #nixos
o1lo01ol1o has joined #nixos
linarcx has quit [Client Quit]
<jakobrs> Update: Just managed to bootstrap a mostly working Nix installation from source
<jakobrs> Essentially, I just built Nix from source, and then installed Nix using sudo `which nix-env` -iA nixpkgs.nix
<jakobrs> s|`which nix-env`|./inst/bin/nix-env|
<das-g[m]> Are you porting Nix to a new architecture?
o1lo01ol1o has quit [Ping timeout: 250 seconds]
_viz_ has quit [Remote host closed the connection]
<jakobrs> I just did this for fun, honestly
<jakobrs> And to see if it would work/how hard it would be
reallymemorable has joined #nixos
vika_nezrimaya has quit [Read error: Connection reset by peer]
morgrimm has joined #nixos
morgrimm has quit [Ping timeout: 260 seconds]
<maralorn> My curl ssl is broken on nixos stable: I always get that it can‘t find the local ca-bundle. How can that be?
lurkless has quit [Remote host closed the connection]
iyzsong has quit [Remote host closed the connection]
iyzsong has joined #nixos
fendor has joined #nixos
<ottidmes> maralorn: I use: environment.variables = genAttrs [ "CURL_CA_BUNDLE" "GIT_SSL_CAINFO" "SSL_CERT_FILE" ] (const "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt");
wajsel has joined #nixos
<maralorn> ottidmes: Yeah, setting SSL_CERT_FILE worked for me, too.
<maralorn> But I wonder, why that was necessary after 3 years of using curl without doing that.
<jakobrs> If I'm installing Nix on a foreign distro, where's the systemd unit file located?
lurkless has joined #nixos
<jakobrs> /nix/var/nix/profiles/default/lib/systemd/ystem/nix-daemon.{service,socket}
<{^_^}> [nixpkgs] @lionello opened pull request #85488 → [WIP] ldc: 1.17.0 -> 1.20.1 → https://git.io/JfJyu
alexherbo2 has quit [Quit: Ping timeout (120 seconds)]
maddo2 has joined #nixos
<jakobrs> Is it normal that the socket is dead yet nix still works?
alexherbo2 has joined #nixos
<{^_^}> [nixpkgs] @JJJollyjim opened pull request #85489 → LIBCLANG_PATH hook [updated] → https://git.io/JfJyi
maddo has quit [Ping timeout: 258 seconds]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
nixguest has quit [Ping timeout: 260 seconds]
Darkmatter66_ has quit [Ping timeout: 256 seconds]
thc202 has joined #nixos
<{^_^}> [nixpkgs] @jluttine opened pull request #85490 → picom: add debug option → https://git.io/JfJy7
jakobrs has quit [Quit: WeeChat 2.8]
CptCaptain has joined #nixos
morgrimm has joined #nixos
ris has joined #nixos
lopsided98 has quit [Ping timeout: 252 seconds]
lopsided98 has joined #nixos
morgrimm has quit [Ping timeout: 260 seconds]
Darkmatter66 has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed 2 commits to master: https://git.io/JfJSY
fusion809 has quit [Remote host closed the connection]
alexherbo22 has joined #nixos
alexherbo2 has quit [Read error: Connection reset by peer]
dingenskirchen has joined #nixos
Desetude has joined #nixos
hmpffff has joined #nixos
alexherbo2 has joined #nixos
alexherbo22 has quit [Ping timeout: 256 seconds]
cr4y1 has quit [Ping timeout: 256 seconds]
hmpffff has quit [Quit: nchrrrr…]
opthomasprime has quit [Remote host closed the connection]
dermetfan has joined #nixos
alexherbo21 has joined #nixos
alexherbo2 has quit [Ping timeout: 256 seconds]
alexherbo21 is now known as alexherbo2
koleesch has quit [Ping timeout: 264 seconds]
noonien has joined #nixos
zupo has quit [Ping timeout: 265 seconds]
nixguest has joined #nixos
<{^_^}> [nixpkgs] @zowoq opened pull request #85491 → fuse-overlayfs: 0.7.8 -> 1.0.0 → https://git.io/JfJ9z
<nixguest> Can I somehow "feed" the input to an option of type "null or strings concatenated with "\n"" from a command? I'm trying to create a file in /etc by using environment.etc."myfile". I feel like I should be able to do something with nix, but I can't figure it out from reading about strings and derivations here https://nixos.org/nix/manual/
zupo has joined #nixos
justan0theruser has quit [Ping timeout: 265 seconds]
cr4y1 has joined #nixos
chagra_ has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
kleisli_ has quit [Ping timeout: 240 seconds]
hoplaahei has joined #nixos
<infinisil> nixguest: What commabd?
<infinisil> command*
<nixguest> Specifically nixos-generate-config
<hoplaahei> hi. I'm making some scripts I need with writeShellScriptBin, but they are too long to clutter a let in my configuration.nix. How can I make a separate file e.g., scripts.nix that can be imported by my configuration.nix to install them with environment.systemPackages?
<infinisil> nixguest: Not possible in a reasonable way
<{^_^}> [nixpkgs] @toschmidt opened pull request #85492 → mailspring: init at 1.7.5 → https://git.io/JfJHf
<infinisil> nixguest: How about writing a nixos-rebuild wrapper that calls nixos-generate-config as well instead?
<nixguest> Ah, I see. I will look into that. Thanks!
knupfer has quit [Quit: knupfer]
turion has joined #nixos
knupfer has joined #nixos
<infinisil> hoplaahei: You can split configuration.nix into many files by just writing multiple ones like it, and using "imports = [ ./other-file.nix ]"
<infinisil> In configuration.nix to import the others
b has joined #nixos
<{^_^}> [nixpkgs] @prusnak opened pull request #85493 → treewide: per RFC45, remove more unquoted URLs → https://git.io/JfJHL
ATuin has quit [Ping timeout: 256 seconds]
o1lo01ol1o has joined #nixos
<hoplaahei> infinisil: ok thankyou
justan0theruser has joined #nixos
dermetfan has quit [Ping timeout: 246 seconds]
chagra_ has quit [Ping timeout: 265 seconds]
arstneio has left #nixos [#nixos]
aveltras has joined #nixos
Desetude has quit [Quit: WeeChat 2.8]
<{^_^}> [nix] @domenkozar merged pull request #3502 → pass Pos to forceValue to improve infinite recursion error → https://git.io/JffOs
<{^_^}> [nix] @domenkozar pushed 2 commits to master: https://git.io/JfJH6
<hoplaahei> infinisil: I've imported scripts.nix which will install the scripts, but how can I append to the list defined for environment.systemPackages in configuration.nix without overwriting it?
<infinisil> hoplaahei: Gets merged automatically
<infinisil> If you assign it multiple times
<gchristensen> domenkozar[m]: gutsy :P
<hoplaahei> inifinisil: ahh good
o1lo01ol1o has quit [Remote host closed the connection]
ashesham` has joined #nixos
<{^_^}> [nixpkgs] @flokli pushed 2 commits to release-20.03: https://git.io/JfJHQ
<{^_^}> [nixpkgs] @flokli merged pull request #85370 → Update the release documentation → https://git.io/JffsF
wajsel has quit [Remote host closed the connection]
<domenkozar[m]> :D
<{^_^}> [nixpkgs] @primeos merged pull request #85253 → chromium: Build with VA-API but disable it by default → https://git.io/JfejA
<{^_^}> [nixpkgs] @primeos pushed 2 commits to master: https://git.io/JfJQf
chagra_ has joined #nixos
<nixguest> Are profiles (https://github.com/NixOS/nixpkgs/tree/master/nixos/modules/profiles) intended to be used one at the time only? Or is it okay to include, for example, both headless and hardened?
<{^_^}> [nixos-homepage] @davidak pushed to Community « Rework community page »: https://git.io/JfJQU
<{^_^}> [nixpkgs] @ambrop72 opened pull request #85494 → kdegraphics-thumbnailers: Add patch for thumbnail.so hang. → https://git.io/JfJQt
ixxie has joined #nixos
silver_hook has quit [Ping timeout: 265 seconds]
<ixxie> clever: are you around?
<{^_^}> [nixos-homepage] @davidak closed pull request #396 → Rework community page → https://git.io/JfJPa
<{^_^}> [nixos-homepage] @davidak opened pull request #398 → Rework community page → https://git.io/JfJQE
<ixxie> I made a github action that converts an Ubuntu/Debian target host to NixOS automatically
morgrimm has joined #nixos
noudle has joined #nixos
<ixxie> but I want to optimize this because currently it fetches a 4GB docker image and has a relatively slow build process of the kexec nixos iso
alexherbo2 has quit [Quit: Ping timeout (120 seconds)]
<ixxie> I was hoping somebody has sugggestions
konobi has quit [Ping timeout: 256 seconds]
alexherbo2 has joined #nixos
silver_hook has joined #nixos
morgrimm has quit [Ping timeout: 258 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexherbo28 has joined #nixos
<{^_^}> [nixpkgs] @lionello closed pull request #78995 → dmd: 2.085.1 -> 2.090.0 → https://git.io/Jv3KI
alexherbo2 has quit [Ping timeout: 265 seconds]
alexherbo28 is now known as alexherbo2
morgrimm has joined #nixos
ixxie has quit [Ping timeout: 256 seconds]
cosimone has joined #nixos
tokudan has quit [Remote host closed the connection]
charleshd has joined #nixos
<charleshd> Hi there
tokudan has joined #nixos
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #nixos
<charleshd> I'm doing things with unity. I actually installed Unityhub from nixpkgs, the soft installed a version of Unity in my homedir. Great, However I can't call directly the binary in my homedir without going through unityhub first. This bothers me because I want to be able to call the unity binary for doing some batchmode check in a script.
<{^_^}> [nixpkgs] @bhougland18 opened pull request #85495 → wmutils-libwm: init at 1.0 → https://git.io/JfJ73
<charleshd> My guess is that stuff packaged in Unityhub appimage allow unityhub to launch that binary. Is there a way to put me in an AppImage virtualenv or something similar ?
nixguest has left #nixos [#nixos]
reallymemorable has joined #nixos
evertedsphere has quit [Ping timeout: 265 seconds]
o1lo01ol1o has joined #nixos
linarcx has joined #nixos
<asheshambasta> can there be cases where jailbroken packages can still result in version bound errors?
obadz has quit [Quit: WeeChat 2.7.1]
<asheshambasta>
<asheshambasta> for example, this doesn't build: https://gist.github.com/asheshambasta/00f19291d990043a64bbd9adcc0e99eb, the servant-auth-cookie's build results in version bounds not being satisfied.
obadz has joined #nixos
o1lo01ol1o has quit [Ping timeout: 258 seconds]
tokudan has quit [Remote host closed the connection]
tokudan has joined #nixos
tokudan has quit [Remote host closed the connection]
<asheshambasta> I'm attempting to override the servant-auth-cookie package with one that has been jailbroken.
tokudan has joined #nixos
charleshd has left #nixos ["ERC (IRC client for Emacs 26.3)"]
domogled has quit [Ping timeout: 256 seconds]
domogled has joined #nixos
eof has quit [Quit: eof]
<asheshambasta> it seems to be that doJailbreak has no effect on this package.
eof has joined #nixos
evhan has quit [Ping timeout: 256 seconds]
evhan has joined #nixos
linarcx has quit [Quit: WeeChat 2.8]
lunik1 has quit [Quit: :x]
lunik1 has joined #nixos
<srxl[m]> What format are the hashes `nix-prefetch-url` spits out in?
hoplaahei has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @7c6f434c merged pull request #85493 → treewide: per RFC45, remove more unquoted URLs → https://git.io/JfJHL
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/JfJ5X
<{^_^}> [nixpkgs] @marsam merged pull request #85491 → fuse-overlayfs: 0.7.8 -> 1.0.0 → https://git.io/JfJ9z
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfJ5M
evertedsphere has joined #nixos
aiverson has joined #nixos
<srxl[m]> On top of that, how is the hash of a file downloaded my nix-prefetch-url generated?
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
<asheshambasta> wow this jailbreaking seems unpredictable for this specific package, and I'm beginning to suspect that either I'm doing something very stupid, or something is funky with this package.
civodul has joined #nixos
tom43422 is now known as tom39291
teto has joined #nixos
AFKRozy has joined #nixos
leotaku has quit [Quit: ZNC 1.7.5 - https://znc.in]
<infinisil> srxl[m]: A base-32 representation, see `man nix-hash` for more info
vidbina_ has joined #nixos
jakobrs has joined #nixos
<jakobrs> Can I use Nix from Rust as a library?
felixfoertsch has quit [Quit: ZNC 1.7.4 - https://znc.in]
<gchristensen> no
felixfoertsch has joined #nixos
<gchristensen> Nix has no C ABI, and thus FFI is very difficult
leotaku has joined #nixos
<simpson> Although calling Nix binaries as subprocesses is possible.
<jakobrs> Is there a possibility that it might get easier in the future?
<gchristensen> yes, there is some chance Nix will be piecemeal rewritten in rust
<infinisil> asheshambasta: No idea what the problem is, but you might want to try switching to overlays instead of packageOverrides. packageOverrides can have weird behavior
<simpson> Or that somebody will write and maintain a crate which wraps Nix's utilities. What do you want to build?
<jakobrs> I was inspired by nixos-manager to try to build something ala that but command-line
<jakobrs> But really it's just to practice Rust
Diogo has quit [Quit: The Lounge - https://thelounge.chat]
<aiverson> IIRC, Lorri does something like that, wrapping the binaries as a rust API to interact with nix. Maybe some of that code can be useful to you?
bukkitgerman8608 has quit [Quit: Ping timeout (120 seconds)]
o1lo01ol1o has joined #nixos
<jakobrs> That sounds interesting
bukkitgerman8608 has joined #nixos
eight has joined #nixos
<srxl[m]> I'm in the process of building a tool to autogenerate Nix expressions for Mix (Elixir) projects. As part of this, I need to create a derivation for each dependency of the Mix project. I'm not quite sure what the best way to go about getting the hashes for the sources of each dependency is. I could autogenerate those as well, but I feel like that's bad practice. Any suggestions?
<srxl[m]> (sorry if it's hard to understand ^^')
<jakobrs> Is it possible to create a shell (like nix-shell -p) but taking a environment instead of a list of packages
Diogo has joined #nixos
<LnL> srxl[m]: are you aware of mixnix?
felixfoertsch has quit [Quit: ZNC 1.7.4 - https://znc.in]
<srxl[m]> I am not, do you have a link to it?
<jakobrs> So you'd do something like `nix-shell --profile /path/to/temp/profile` and it'd launch a shell where everything in /path/to/temp/profile
ixxie has joined #nixos
<infinisil> nixos-manager looks pretty neat: https://github.com/pmiddend/nixos-manager
<jakobrs> Like nix-env -p but local
<infinisil> (looked it up after jakobrs mentioned it)
morgrimm has quit [Ping timeout: 240 seconds]
<asheshambasta> I'm new to nix so I don't know how to use overlays.
<infinisil> ,overlays
<{^_^}> infinisil: Did you mean overlay?
<{^_^}> Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
felixfoertsch has joined #nixos
<infinisil> asheshambasta: ^
<infinisil> In your case you'll want to pass overlays to nixpkgs like `import pkg-src { inherit overlays; }`
<infinisil> I'd try that first, it wouldn't be the first time weird issues have been fixed by switching to overlays
<asheshambasta> I see, and what advantages do overlays have over overrides?
<{^_^}> [nixpkgs] @magnetophon opened pull request #85496 → Kapitonov-Plugins-Pack: init at 1.1 → https://git.io/JfJdQ
<jakobrs> Why should I use super.callPackage rather than self.callPackage?
<srxl[m]> ...i spent a full day, searching for something like that mixnix
morgrimm has joined #nixos
<srxl[m]> how did i not find it?
<infinisil> "overrides" has many meanings, but for the question "What advantages do overlays have over config.packageOverrides", the answer would be that it's more flexible since it correctly separates what things you override vs where you get final dependencies from (super vs. self)
<infinisil> asheshambasta: ^
vidbina_ has quit [Ping timeout: 258 seconds]
<adisbladis> infinisil: Iirc packageOverrides is now implemented as an overlay?
<adisbladis> Not that it really matters, it still has the same disadvantages as before.
<infinisil> Yeah
cosimone has quit [Quit: Terminated!]
<adisbladis> Tbh I wish we'd just ditch packageOverrides
<infinisil> The fact that packageOverrides can be implemented with overlays, but not the other way is kind of indicative of the superiority of overlays :)
<infinisil> adisbladis: Yeah same. Unfortunately our docs are littered with it..
pinkieval has quit [Ping timeout: 265 seconds]
morgrimm has quit [Ping timeout: 256 seconds]
<infinisil> jakobrs: I have no idea tbh
<infinisil> I know that super.callPackage still gets its dependencies from self, because it's declared that way
ATuin has joined #nixos
eof has quit [Quit: eof]
<ixxie> I've wrapped Clever's kexec script into a github action: https://github.com/sparkletco/nixosify
eof has joined #nixos
<ixxie> I'm trying to optimize this a bit, as currently it takes about 15m to run: https://github.com/sparkletco/nixosify/runs/597578129
pbogdan has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
hmpffff has joined #nixos
<{^_^}> [nixpkgs] @bhipple merged pull request #85481 → maintainers: add wamserma → https://git.io/JfJXF
<{^_^}> [nixpkgs] @bhipple pushed commit from @wamserma to release-20.03 « maintainers: add wamserma »: https://git.io/JfJFe
cosimone has joined #nixos
<ixxie> This runs in a Docker container, and as a crude optimization I build a custom base image where a minimal nixos is built in order to have most the needed store addresses in the docker image
pbogdan has joined #nixos
<{^_^}> [nixpkgs] @bhipple merged pull request #85480 → maintainers: add wamserma → https://git.io/JfJXd
<{^_^}> [nixpkgs] @bhipple pushed commit from @wamserma to release-19.09 « maintainers: add wamserma »: https://git.io/JfJFf
AFKRozy has quit [Remote host closed the connection]
<ixxie> But this image is now about 4GB and I am wondering if there is a way to minimize the docker base image size and make the iso build process faster, as the only new thing added to the iso which is not generic is the ssh key of the build agent
eof has quit [Client Quit]
eight has quit [Quit: eight]
knupfer has quit [Ping timeout: 252 seconds]
eof has joined #nixos
<asheshambasta> infinisil: even overlays give me the same error
turion has quit [Quit: Leaving.]
reallymemorable has quit [Quit: reallymemorable]
cosimone has quit [Remote host closed the connection]
<infinisil> asheshambasta: You're only using the super argument for the overlay. The power of overlays is that both self and super exist :2
<infinisil> Wait I'll restructure the file
cosimone has joined #nixos
pinkieval has joined #nixos
zupo has joined #nixos
<asheshambasta> thanks
<{^_^}> [nixpkgs] @alyssais merged pull request #85316 → nixos/rss2email: globally install rss2email → https://git.io/Jfv1S
<{^_^}> [nixpkgs] @alyssais pushed to master « nixos/rss2email: globally install rss2email »: https://git.io/JfJFs
numkem has joined #nixos
<jakobrs> If I create a profile in a nonstandard location (for example, using nix-env -p ./profile -iA nixpkgs.vim),
<jakobrs> how can I prevent that profile from being garbage collected?
chloekek has quit [Ping timeout: 256 seconds]
devhell has quit [Ping timeout: 256 seconds]
<asheshambasta> AFAICS, trying the self argument causes an infinite recursion. Interesting.
<asheshambasta> the manual suggests that self is the "result" value; so in that case it makes sense.
dermetfan has joined #nixos
<aiverson> You can use the self argument without infinite recursion, but only if you don't create a dependency loop in the process.
<infinisil> While trying this, I found that the hash you're using for servant-auth-cookie was wrong
<infinisil> Always make sure to change the hash if you change the version, to make sure you get the correct one
<infinisil> But I can reproduce the failure, even with doJailbreak it still complains about bounds
reallymemorable has joined #nixos
linarcx has joined #nixos
<infinisil> asheshambasta: Run `nix-build servant.nix -A servant-auth-cookie -K`. The -K makes it keep the build result when it fails
<infinisil> At the end there will be something like "note: keeping build directory '/tmp/nix-build-servant-auth-cookie-0.5.0.drv-1'"
<infinisil> Go into that directory, and check the cabal file in the source
<jakobrs> What is $NIX_PROFILES?
linarcx has quit [Quit: WeeChat 2.8]
numkem has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
numkem has joined #nixos
zupo_ has joined #nixos
<asheshambasta> infinisil: ah yes, the hash was a mistake.
zupo has quit [Ping timeout: 265 seconds]
<asheshambasta> The fact that jailbreak doesn't "fix" the bounds issue, to me, either means that there's a bug in the jailbreak, or the bounds come from evaluating a dependency (just guessing)?
<infinisil> asheshambasta: Did you do what I suggested above?
<asheshambasta> not yet, doing that now.
teto has quit [Ping timeout: 246 seconds]
jakobrs has left #nixos ["WeeChat 2.8"]
<asheshambasta> infinisil: it seems like the cabal file still has the bounds.
<asheshambasta> and the bounds are in executable
<{^_^}> [nixpkgs] @magnetophon opened pull request #85497 → jalv: revert to gtk2 cause gtk3 wasn't showing the GUIs → https://git.io/JfJFS
CptCaptain has quit [Quit: WeeChat 2.7.1]
<numkem> for the first time in over 10 years, I don't own any computers that is running Arch, feels weird
<infinisil> asheshambasta: Compare the file with the non-jailbroken one
<infinisil> This should answer your question
ixxie has quit [Ping timeout: 258 seconds]
reallymemorable has quit [Quit: reallymemorable]
<asheshambasta> this package seems abandoned anyway
rardiol has joined #nixos
teto has joined #nixos
<asheshambasta> and it seems that the jailbreak only turns bounds off for the library and not the executable
drakonis1 has quit [Ping timeout: 256 seconds]
<infinisil> asheshambasta: Wrong conclusion
<asheshambasta> nor does it turn off the bounds for benchmarks and examples.
<asheshambasta> interesting
<infinisil> What do all the -any bounds have in common?
<infinisil> (that's what jailbraking does)
<infinisil> Well I guess not all
<infinisil> Well whatever, I'll say it: It seems like jailbreaking only removes bounds that aren't under `if` conditions and such
<infinisil> Oh but benchmarking
<asheshambasta> do we have a way to exclude build artefacts? For example, what if I'd like to only include the library of this package?
<infinisil> Wait no yeah there's something more weird going on I feel
<{^_^}> [nixpkgs] @cdepillabout merged pull request #84573 → darcs: compile with ghc 8.8 → https://git.io/JvAB0
<{^_^}> [nixpkgs] @cdepillabout pushed 2 commits to haskell-updates: https://git.io/JfJbm
AFKRozy has joined #nixos
<infinisil> Especially since jailbreak-cabal is written with haskell
<infinisil> But it definitely looks like it's a bug in jailbreak-cabal
<{^_^}> peti/jailbreak-cabal#7 (by cstrahan, 5 years ago, closed): Does not lift bounds in conditional branch.
chloekek has joined #nixos
<asheshambasta> so it is not a bug, a simple workaround here for me could be that some build artefacts can be excluded, and I get only the library
drakonis1 has joined #nixos
<asheshambasta> infinisil: thanks a lot for your time on this though, and the `-K` is a seriously cool trick
<infinisil> asheshambasta: Oh, notice how one of the constraints it asks for is servant <0.9
reallymemorable has joined #nixos
<infinisil> But `nix-instantiate --eval servant.nix -A servant.name` says this is 0.14.1
AFKRozy has quit [Ping timeout: 256 seconds]
<asheshambasta> yes, the rest of the offending constraints are all in there.
<infinisil> And notice how there's a servant9/servant91 flag for when servant is above version 0.9/0.9..1
<infinisil> You might have to toggle the servant91 flag
<infinisil> and servant9
<infinisil> Although, maybe it's the default
<pie_[bnc]> zimbatm: if i try to cancel a loading direnv it just executes it again: https://bpaste.net/TFHA
<infinisil> Doesn't look like it though, since the bytestring-conversion constraint only appears for servant9 false and servant91 false
<zimbatm> pie_[bnc]: what version are you using?
<pie_[bnc]> zimbatm: oh
<zimbatm> this was fixed in the latest release
<pie_[bnc]> zimbatm: probably old because i keep forgetting to update my system (its complicated)
<zimbatm> it was broken for a loooong time
<pie_[bnc]> zimbatm: thank you ^.^
<zimbatm> +
<pie_[bnc]> zimbatm: is it possible to show stdout from the load?
<pie_[bnc]> zimbatm: i cant see nix build progress
noudle has quit []
proofofkeags has joined #nixos
<asheshambasta> infinisil: won't the results of the conditionals be concatenated?
<infinisil> Not sure what you mean
<pie_[bnc]> zimbatm: or maybe have drenv open a `less` which collects the output
<asheshambasta> if flag(foo) build-depends: E F (nested uner this: if flag(bar) build-depends: A B C else builld-depends: A)
<asheshambasta> say foo = True, bar = True, what will be build-depends? (E F A B C); right?
<infinisil> Ah yeah
relaxmax has joined #nixos
AFKRozy has joined #nixos
<asheshambasta> infinisil: which means irrespective of what flags I append, the bounds stay in executable example etc.
<asheshambasta> or wait, it basically says if the build-examples flag is set, then we need to build examples otherwise not.
<asheshambasta> what is the default behaviour, are all flags supplied to cabal by default? Or does cabal expect an explicit value to be set to consider a flag disabled?
zarel has quit [Quit: ZNC 1.7.4 - https://znc.in]
zarel has joined #nixos
simukis__ has quit [Ping timeout: 258 seconds]
niso has joined #nixos
<zimbatm> pie_[bnc]: what's the purpose of doing that?
<zimbatm> it used to be the case that stdout and stderr were mixed, which was also fixed by the latest version
<zimbatm> and is now causing issues on windows because windows doesn't have a notion of file descriptor...
<asheshambasta> disableCabalFlags also seems to have no effect AFAICS, I don't know how cabal flags are supposed to work.
Criena has joined #nixos
<asheshambasta> I see that these flags are being passed to cabal with `-f-<flagname>`
<pie_[bnc]> zimbatm: I would like to see what a shell is doing thats making it take a while, without canceling <pie_[bnc]> zimbatm: i cant see nix build progress
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/a60473031a4 (from 13 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<{^_^}> Channel nixpkgs-20.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/e79b7c45c34 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-20.03-darwin)
<pie_[bnc]> zimbatm: it doesnt need to be hardcoded, is just like to be able to do it somehow?
<zimbatm> pie_[bnc]: but it does output everything. if something is not displayed then it must be because of something else.
<{^_^}> [nixpkgs] @filalex77 opened pull request #85498 → httpie: 2.0.0 -> 2.1.0 → https://git.io/JfJNm
<zimbatm> stdout and stderr are both attached to the console directly
<asheshambasta> in any case, the libary dependencies include these conditionals, and since jailbreak cannot affect these, then I'm out of luck.
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<aanderse> anyone with `darwin` here wanna do me a solid and take a look at https://github.com/NixOS/nixpkgs/pull/85319 ? it won't compile on `darwin` because hard coded reference to /usr/bin/xmlconfig or some such. i don't have a mac so can't effectively fix it... would appreciate if anyone doesn't mind spending a (hopefully) short amount of time on fixing.
<{^_^}> #85319 (by aanderse, 2 days ago, open): php.extensions.sqlsrv: 5.8.0 -> 5.8.1
evanjs has quit [Quit: ZNC 1.7.5 - https://znc.in]
pbogdan has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
ATuin has quit [Ping timeout: 265 seconds]
relaxmax has quit [Ping timeout: 256 seconds]
katyucha has joined #nixos
evanjs has joined #nixos
<pie_[bnc]> zimbatm: oh weird thanks, ill look into it.
growpotkin has joined #nixos
<katyucha> Hi... Trying to use nixops and nftables. Each time, I push a new configuration with nixops : I have this error => Unload ip_tables before using nftables! ... any ideas ? thanks
<zimbatm> pie_[bnc]: ok. let me know if the issue still happens after upgrading.
<katyucha> I reboot the server and it's ok ... not really fun at all
<numkem> I'm currently packaging an app and I'm I've provided it all the libraries missing (ldd doesn't report anything missing), the app starts but crashing with `Error: Cannot open /nix/store/kskf321jj8j65rv6h4pwyw4i1b7x953z-screen-so-1.0.24/lib/screen-desktop/resources/app.asar/robotjs.node: Error: libstdc++.so.6: cannot open shared object file: No such file or directory`. How can I show it where to find it? Is there a trick I could do with
<numkem> manipulating an env variable to point it to the right direction?
<numkem> think I might have found an example wih the etcher expression
<qy[m]1> this now only changes a default value - looks good to merge? #85462
<{^_^}> https://github.com/NixOS/nixpkgs/pull/85462 (by bqv, 18 hours ago, open): nixos/nat: substitute iptables for compat under nftables
<pie_[bnc]> zimbatm: now it doesnt seem to do anything https://bpaste.net/IISQ
<infinisil> asheshambasta: You can manually patch them
Neo-- has quit [Ping timeout: 260 seconds]
<pie_[bnc]> zimbatm: the envrc https://bpaste.net/D6UA
<infinisil> asheshambasta: (doJailbreak ...).overrideAttrs (old: { postPatch = old.postPatch or "" + '' substituteInPlace ..cabal --replace ".." ".." ''; })
<infinisil> Something like that
<zimbatm> pie_[bnc]: did you restart your shell after the upgrade?
<zimbatm> or run `eval "$(direnv hook bash)"` if you are using bash
<zimbatm> the version of direnv is pinned during the shell startup
koleesch has joined #nixos
zupo has joined #nixos
<pie_[bnc]> zimbatm: makes sense
<pie_[bnc]> zimbatm: are there docs i should be reading >.> there probabyl are arent there
* pie_[bnc] finds direnv a bit intimidating for some odd reason
turion has joined #nixos
<pie_[bnc]> well, that will be solved after today
ashesham` has quit [Ping timeout: 246 seconds]
<zimbatm> pie_[bnc]: keep asking questions until it clicks. we can also continue the discussion on the #direnv channel
<zimbatm> I am the sort of person that learns by reading through the code so the doc is probably not great
<asheshambasta> infinisil: that looks intimidating
Neo-- has joined #nixos
<pie_[bnc]> zimbatm: didnt know theres a direnv han
<pie_[bnc]> chan
<pie_[bnc]> zimbatm: there are mentions of running the hook in the readme at least but i didnt make the connection
lunik1 has quit [Quit: :x]
lunik1 has joined #nixos
pbogdan has joined #nixos
nschoe has joined #nixos
ultranix has quit [Ping timeout: 250 seconds]
turion has quit [Ping timeout: 272 seconds]
koleesch has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @bhipple opened pull request #85499 → dnnl: 1.2.2 -> 1.4 → https://git.io/JfJAQ
Desetude has joined #nixos
dermetfan has quit [Ping timeout: 246 seconds]
turion has joined #nixos
dermetfan has joined #nixos
nschoe has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
ixxie has joined #nixos
nschoe has joined #nixos
<{^_^}> [nixos-homepage] @davidak pushed to donate « Add donate page »: https://git.io/JfJAj
<{^_^}> [nixpkgs] @flokli closed pull request #85434 → [nixpkgs-19.09]: neomutt: 20180716 -> 2019-10-25 → https://git.io/JfJfR
drakonis has joined #nixos
<{^_^}> [nixos-homepage] @davidak pushed to donate « Add donate page »: https://git.io/JfJxI
<{^_^}> [nixos-homepage] @davidak opened pull request #399 → Add donate page → https://git.io/JfJxq
drakonis1 has quit [Ping timeout: 264 seconds]
MohamedSarhan[m] has joined #nixos
Neo-- has quit [Ping timeout: 260 seconds]
tabasko_ has quit [Read error: Connection reset by peer]
nschoe has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
vidbina_ has joined #nixos
wildtrees has joined #nixos
wildtrees has quit [Remote host closed the connection]
wildtrees has joined #nixos
nschoe has joined #nixos
waleee-cl has joined #nixos
alexherbo21 has joined #nixos
alexherbo2 has quit [Ping timeout: 250 seconds]
alexherbo21 is now known as alexherbo2
drakonis_ has joined #nixos
AFKRozy has quit [Remote host closed the connection]
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/3bd563feb48 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
alexherbo24 has joined #nixos
drakonis has quit [Ping timeout: 246 seconds]
alexherbo2 has quit [Ping timeout: 256 seconds]
alexherbo24 is now known as alexherbo2
codygman has quit [Ping timeout: 258 seconds]
amf has quit [Quit: WeeChat 2.7.1]
Neo-- has joined #nixos
nschoe has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
nschoe has joined #nixos
turion has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @veprbl merged pull request #82926 → pdftools.pdfposter init at 0.7.post1 → https://git.io/JfJpO
<{^_^}> [nixpkgs] @veprbl pushed commit from @wamserma to master « pythonPackages.pdfposter init at 0.7.post1 (#82926) »: https://git.io/JfJp3
<nschoe> Hi all. I remember seeing an nixos option to make xorg output its configuration file somewhere but I can't seem to find it. Does anyne happen to know it?
<{^_^}> [nixpkgs] @worldofpeace merged pull request #85365 → nixos/acme: Fix postRun in acme certificate being ran at every run → https://git.io/JffO1
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JfJpG
<{^_^}> [nixpkgs] @worldofpeace merged pull request #85366 → nixos/acme: Fix postRun in acme certificate being ran at every run → https://git.io/JffOy
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to release-20.03: https://git.io/JfJpc
dermetfan has quit [Ping timeout: 272 seconds]
<nschoe> Ah never mind it's 'exportConfiguration'.
dermetfan has joined #nixos
<clever> ixxie: yep
<{^_^}> [nixpkgs] @raboof opened pull request #85500 → sweethome3d: 6.2 -> 6.3 → https://git.io/JfJpR
<{^_^}> [nixpkgs] @worldofpeace closed pull request #78979 → Fix Symbol not found _dyld_enumerate_tlv → https://git.io/Jv3wf
andymandias has quit [Ping timeout: 264 seconds]
andymandias has joined #nixos
<ixxie> heya clever
<{^_^}> [nixos-homepage] @davidak pushed to donate « Add donate page »: https://git.io/JfJpg
evertedsphere has quit [Ping timeout: 264 seconds]
<ixxie> clever: so I made this github action that wraps your kexec script: https://github.com/sparkletco/nixosify
<clever> ixxie: are you hacking github's CI system to run nixos? lol
<ixxie> clever: it works alright, running the build in a docker container based on nixos/nix
<{^_^}> [nixpkgs] @petabyteboy opened pull request #85501 → micro: 1.4.1 -> 2.0.3 → https://git.io/JfJpr
<ixxie> clever: no, rather I made github's CI allow me to convert ubuntu/debian VMs to NixOS VMs leveraging your kexec scripts
asheshambasta has quit [Ping timeout: 265 seconds]
<clever> ah
<ixxie> clever: you feed it an IP address and some keys and it builds you a nixos machine
<clever> ah, and then the CI servers deploy for you?
andreas303 has quit [Remote host closed the connection]
<ixxie> well, this action _only_ does the conversion, but the way github actions work is you can compose them into workflows
<clever> yeah
<clever> just the 1st deploy
<ixxie> indeed
<{^_^}> [nixpkgs] @Mic92 merged pull request #85498 → httpie: 2.0.0 -> 2.1.0 → https://git.io/JfJNm
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JfJhs
<clever> definitely could reuse that code in the nixops stuff too
<ixxie> after that you can make a snapshot of the host in most vps providers
andreas303 has joined #nixos
<clever> yep
<ixxie> what I am wondering is how to optimize this
<clever> time? disk used? network used?
<ixxie> because right now I did this crude optimization where I made a base image where I built an iso just to fetch most the relevant store paths
<ixxie> time mainly
<manveru> ixxie: did you try the cachix github actions?
<ixxie> network bandwidth too
<ixxie> manveru: cachix?
<clever> ixxie: where is it generating the iso and why?
morgrimm has joined #nixos
<ixxie> clever: the iso is being build in the container, and the only reason I need to build it is to put the key in it so that the build agent can automatically log back in
philr_ has quit [Ping timeout: 264 seconds]
<ixxie> clever: but maybe that is a bit silly
amf has joined #nixos
<{^_^}> [nixpkgs] @prusnak opened pull request #85502 → libfido2: 1.3.1 -> 1.4.0 → https://git.io/JfJhr
<clever> ixxie: if /ssh_pubkey exists on the ubuntu host when you /kexec_nixos, it will copy that file to /root/.ssh/authorized_keys as it boots
knupfer has joined #nixos
<clever> ixxie: that lets you use the same tar, but customize the key at boot time
knupfer has joined #nixos
<ixxie> clever: neat! that will let me streamline the whole thing :)
<ixxie> manveru: thats pretty cool too, I wonder if I can use it somehow to avoid having the docker based thing but I am not sure you can do that
jakobrs has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #83166 → nixos: Introduce nix.buildLocation option → https://git.io/JvDHr
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JfJhP
<ornxka> how do i get maximum debugging on nixos
skorpy2009 has quit [Read error: Connection reset by peer]
<ornxka> i get a kernel panic after i exit stage 1 shell in initramfs
<ornxka> but i cant scroll up and see what the problem is
<clever> ornxka: shift+pageup doesnt work?
<ornxka> it did not
<clever> ornxka: i think you can add rootdelay=10 to the kernel cmdline, and it will delay by 10ms after every line
<ornxka> ah ill try that
<clever> slow it enough, and you can keep up while reading
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/730ecad0481 (from 9 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
seku has joined #nixos
<lukegb> gchristensen: https://grahamc.com/blog/erase-your-darlings: "SSH host keys" has a consistency error - the directory you make is /persist/etc/ssh, but the one you configure is just /persist/ssh
<lukegb> nice guide though, I mostly ended up with approximately the same zfs structure on my own, but I'm cribbing the suggested starting point of things to persist :^)
<jakobrs> Are the endpoints to hydra documented somewhere?
<jakobrs> I'm trying to write a small html site that redirects you to the right page on hydra and knowing the format of the urls would be helpful
knupfer has quit [Ping timeout: 272 seconds]
shafox has joined #nixos
<jakobrs> ty
alexherbo2 has quit [Ping timeout: 258 seconds]
<jakobrs> that looks like a json api though, I meant the web interface
<jakobrs> Although I guess it would be possible to use the json api directly instead
blaggacao has quit [Quit: Quit]
<{^_^}> [nixpkgs] @emilazy opened pull request #85503 → ACME test cleanups → https://git.io/JfJjv
slack1256 has joined #nixos
<jakobrs> Why is Nix in nixos:trunk-combined but not in nixpkgs:trunk?
ddellacosta has joined #nixos
bhipple has joined #nixos
alexherbo2 has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
ddellacosta has quit [Ping timeout: 256 seconds]
ddellacosta has joined #nixos
<ornxka> # CONFIG_BOOT_PRINTK_DELAY is not set
<ornxka> why does the default kernel not set this..
reallymemorable has joined #nixos
zeta_0 has joined #nixos
nschoe has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @worldofpeace opened pull request #85505 → xfce.parole: add gst-libav → https://git.io/JfJjz
nschoe has joined #nixos
<ixxie> clever: I'm currently building the tarball with nix-build '<nixpkgs/nixos>' -Q -j 4 -A config.system.build.kexec_tarball -I nixos-config="/kexec/kexec-config.nix"
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ixxie> clever: is there a way to build a smaller image or is that already as minimal as it gets?
zupo has joined #nixos
<clever> ixxie: instead of building kexec_tarball, build kexec_script, so you get the uncompressed store path
<clever> ixxie: then run `du -h --max=0 -c $(nix-store -qR ./result) | sort -h` to see how big the closure is
Darkmatter66_ has joined #nixos
<clever> ixxie: then use `nix why-depents ./result /nix/store/fat-path` to find out why a big thing is in the closure, override, rebuild, repeat
matthuszagh has joined #nixos
<zeta_0> i'm following the instructions to get the haskell.nix and nix-tools src code, but at the last command it's throwing this error? attribute 'haskell-nix' in selection path 'haskell-nix.nix-tools' not found , https://input-output-hk.github.io/haskell.nix/user-guide/#getting-the-haskellnix-source-optional
<zeta_0> >
<matthuszagh> hello, i'm trying to override attributes of a package (kicad) using an overlay. src from the package's default.nix calls another mkDerivation function. This confused me a bit. Can src be a derivation? Apparently it can since the build expression works... How can I override attributes within that derivation?
<zeta_0> do i need to go into a nix-shell before running: nix build -f . haskell-nix.nix-tools --out-link nt ? it does not say that in the instructions?
Darkmatter66 has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #85340 → sniffglue: init at 0.10.1 → https://git.io/JfvAu
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JfJj9
morgrimm has quit [Ping timeout: 258 seconds]
<matthuszagh> the mkDerivation that's called also contains a bunch of stuff like buildInputs and makeFlags. Do these get appended to the attributes in the default.nix expression?
<clever> matthuszagh: .overrideAttrs works on the final call to the real stdenv.mkDerivation, so all of the other stuff in the middle is just going to manipulate the set with things like //
<clever> matthuszagh: whatever args where being sent to the real stdenv.mkDerivation, are the ones you manipulate with .overrideAttrs (old: and also the ones that appear within `old`
kenji has joined #nixos
<jakobrs> NAT is broken; how do I debug this?
<ixxie> How does nix manage build depedencies that are not runtime dependencies? I don't suppose they immediatly get deleted after a build right?
<clever> ixxie: they get left in /nix/store but wont show up in -qR
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/7fcae3781eb (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<jakobrs> ixxie: They're kept after building
<jakobrs> nix-collect-garbage will delete them if possible
<ixxie> right
<{^_^}> [nixpkgs] @bhipple merged pull request #79246 → nixpkgs/brlaser: upgrade to v6 → https://git.io/JvGyg
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JfUeI
<matthuszagh> clever: thanks a lot!
<{^_^}> [nixpkgs] @marsam merged pull request #85422 → lxc: 4.0.1 -> 4.0.2 → https://git.io/Jff5l
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfUeq
bqv has joined #nixos
<matthuszagh> clever: so i'm intentionally trying to break the derivation by setting e.g. cmakeFlags to an empty list, but the derivation still builds fine
jakobrs has quit [Quit: WeeChat 2.8]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<matthuszagh> doing this bc the derivation seemed to ignore what i was passing to src
bkv has quit [Ping timeout: 246 seconds]
<clever> matthuszagh: if cmakeFlags is empty, it just runs cmake with fewer flags
<matthuszagh> ah
<{^_^}> [nixpkgs] @petabyteboy merged pull request #85141 → _3mux: init at 0.2.0 → https://git.io/JvjM5
<{^_^}> [nixpkgs] @petabyteboy pushed 3 commits to master: https://git.io/JfUe3
simukis_ has joined #nixos
<matthuszagh> clever: ok this does not ignore src as i thought... works fine. thanks so much for the help!
koleesch has joined #nixos
morgrimm has joined #nixos
slack1256 has quit [Remote host closed the connection]
<pie_[bnc]> clever: did i happen to see somewhere nixpkgs having an attr for what the current checkout is?
<clever> pie_[bnc]: the git rev?
justan0theruser has quit [Ping timeout: 265 seconds]
<clever> > lib.version
<{^_^}> "20.09pre-git"
slack1256 has joined #nixos
kenji has quit [Quit: The Lounge - https://thelounge.chat]
kenji has joined #nixos
matthuszagh has left #nixos ["ERC (IRC client for Emacs 28.0.50)"]
<{^_^}> [nixpkgs] @jtojnar merged pull request #83755 → fwupd: 1.3.9 → 1.4.0 → https://git.io/Jv7BB
<{^_^}> [nixpkgs] @jtojnar pushed 3 commits to master: https://git.io/JfUej
<{^_^}> [nixpkgs] @DamienCassou opened pull request #85506 → mednafen: Add alsaLib to get ALSA audio output → https://git.io/JfUvv
zupo has joined #nixos
bvdw has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
<pie_[bnc]> clever: of course its in lib...
<pie_[bnc]> > lib.version
<pie_[bnc]> "20.03pre-git"
<{^_^}> "20.09pre-git"
o1lo01ol1o has joined #nixos
<pie_[bnc]> eh ok lol that doesnt help that much 'xD
nschoe has quit [Ping timeout: 265 seconds]
<clever> pie_[bnc]: doesnt really work on a git checkout i think, works best on a channel
<{^_^}> [nixpkgs] @bbigras opened pull request #85507 → waybar: optionally wrap mediaplayer.py → https://git.io/JfUvY
<clever> 177 versionSuffix =
<clever> 178 let suffixFile = ../.version-suffix;
<clever> pie_[bnc]: it detects this file in the root of nixpkgs
incognito9999 has quit [Quit: ZNC 1.7.2+deb3~bpo9+1 - https://znc.in]
incognito9999 has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #85501 → micro: 1.4.1 -> 2.0.3 → https://git.io/JfJpr
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JfUvl
mallox has quit [Ping timeout: 258 seconds]
codygman has joined #nixos
cole-h has joined #nixos
mallox has joined #nixos
<pie_[bnc]> im trying to figure out why updating didnt cause a bunch of packages to be pulled from cache..
<pie_[bnc]> but i use my own weird scripts pre-rebuild
rotaerk has quit [Ping timeout: 265 seconds]
incognito9999 has quit [Quit: ZNC 1.7.2+deb3~bpo9+1 - https://znc.in]
incognito9999 has joined #nixos
slack1256 has quit [Remote host closed the connection]
simukis_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
simukis_ has joined #nixos
kenran has joined #nixos
kenran has quit [Client Quit]
kenran has joined #nixos
bvdw has joined #nixos
<pie_[bnc]> maybe its already up to date...that would be weird
justan0theruser has joined #nixos
slack1256 has joined #nixos
morgrimm has quit [Ping timeout: 256 seconds]
smatting_ has joined #nixos
bvdw has quit [Remote host closed the connection]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/54792ee5849 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/3bd563feb48 (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
<jluttine> is there some standard for command line argument parsing regarding how a program should handle if the same option is given multiple times like `program -foo 42 -foo 666`. should the program take value 42 or 666 for foo? is there some standard for this or is it just a random choice from the program creator?
<jluttine> just thinking about the makeWrapper in nixpkgs how it uses --add-flags. does it add them before or after the user-given arguments?
vidbina_ has quit [Ping timeout: 256 seconds]
<zeta_0> do any of you run into nix build errors when following these instructions? https://input-output-hk.github.io/haskell.nix/user-guide/#getting-the-haskellnix-source-optional
chloekek has quit [Ping timeout: 256 seconds]
<zeta_0> on the last command i get: `error: attribute 'haskell-nix' in selection path 'haskell-nix.nix-tools' not found`
<jluttine> seems to add before the user given flags if i read it correctly. i just encountered a program which only considers the first occurrence of an option so this kind of wrapping is a problem because a user cannot override the nix-wrapped default
smatting_ has quit [Ping timeout: 256 seconds]
<{^_^}> Channel nixpkgs-20.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/a17e021b948 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-20.03-darwin)
zupo has quit [Ping timeout: 265 seconds]
matthuszagh has joined #nixos
<matthuszagh> clever: ok i'm at a bit of a loss. the derivation shows the right src, but it's still building an old version and if I change the commit (src is a local path) the derivation is not rebuilt
<clever> matthuszagh: what do you see if you run `nix show-derivation /nix/store/foo.drv` on the derivation in question?
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfUvx
<{^_^}> [nixpkgs] @marsam merged pull request #85416 → go-ethereum: 1.9.12 -> 1.9.13 → https://git.io/Jff9L
<{^_^}> [nixpkgs] @marsam merged pull request #85346 → tinygo: 0.12.0 -> 0.13.0 → https://git.io/Jfvh8
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfUvp
<energizer> what is the difference between `nix-build` and `nix build`?
<clever> energizer: the format of the args, and output
<energizer> clever: `nix-build ./foo.nix` works but `nix build ./foo.nix` -> "/path/to/foo.nix is not in the nix store"
<clever> energizer: you want `nix build -f foo.nix`
<energizer> oh
<clever> the new cmd needs to be told what file to open
zupo has joined #nixos
dermetfan has quit [Ping timeout: 246 seconds]
<matthuszagh> clever: the src is right, but there's a dontBuild and the wrong kicad as a inputDrvs
<matthuszagh> so maybe I need to modify inputDrvs?
<clever> matthuszagh: inputDrvs is computed automatically, based on the strings given to the derivation
<clever> matthuszagh: can you gist your nix files?
<matthuszagh> clever: yes, the overlay and the output of nix show-derivation?
<clever> matthuszagh: yep
koleesch has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @Mic92 opened pull request #85511 → nix-prefetch-git: also add store path to json output → https://git.io/JfUfk
<matthuszagh> clever: https://paste.debian.net/1141181/ (1/2)
o1lo01ol1o has quit [Ping timeout: 256 seconds]
<matthuszagh> clever: https://paste.debian.net/1141182/ (2/2)
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever> 24399 kicad = callPackage ../applications/science/electronics/kicad { };
<clever> 47 stdenv.mkDerivation rec {
<clever> ok, its a plain stdenv.mkDerivation
o1lo01ol1o has joined #nixos
<clever> 9 , ngspiceSupport ? true, libngspice
<clever> and ngspiceSupport is true by default
zupo has joined #nixos
<clever> matthuszagh: i think i see the problem
<clever> 52 src = kicad-base;
<clever> 53 dontUnpack = true;
<clever> matthuszagh: this derivation ignores $src entirely, so changing src wont do anything!
<clever> matthuszagh: you must instead change kicad-base, which is in a let block, and impossible to change...
<clever> matthuszagh: or change the makeWrapperArgs, and swap in the new kicad-base value
<matthuszagh> clever: oh man...
<clever> and change installPhase
<clever> and at that point, your basically copy/pasting the entire thing
<matthuszagh> ok so i should try to create a PR that makes this more easily overrideable right?
<clever> clone down a copy of nixpkgs, just edit the file, and then do `kicad = self.callPackage /home/clever/apps/nixpkgs/pkgs/applications/science/electronics/kicad {}` to make your overlay mix the copy into everything else
<clever> and optionally file a PR to make things better for others in the future
<matthuszagh> clever: oh that's an interesting method. so basically have 2 nixpkgs. one normal and one for edited kicad. did i get that right?
<clever> matthuszagh: yep
<clever> matthuszagh: so 99% of it comes from the channel, but kicad comes from the edited nixpkgs
<matthuszagh> clever: that's nice
<matthuszagh> do you ever patch nixpkgs
<clever> matthuszagh: and then 4 years down the road, youll discover a gradle override in ~/.nixpkgs/config.nix and thats why its such an ancient version, lol
<clever> exactly that happened to me 2 days ago :P
bifunc2 has joined #nixos
<cole-h> Hah
<matthuszagh> haha
<matthuszagh> wasn't looking into setting up patches, but seems a bunch of people discourage it
<clever> keeping an edited copy of nixpkgs like that is sometimes needed, because the package isnt override friendly
<bifunc2> hi. does anyone know how to compile entire NixOS from source and how long would it take on a regular laptop these days? (days, weeks?)
<clever> $ grep gradle ~/.nixpkgs/config.nix #gradle = pkgs.callPackage ./gradle.nix {};
<clever> in my case, i had copied the gradle/default.nix to ~/.nixpkgs/gradle.nix, so i could still change nixpkgs freely with git
morgrimm has joined #nixos
<clever> matthuszagh: and sometimes, its faster to edit nixpkgs and just `nix-build -A kicad && ./result/bin/kicad` when testing
<clever> and once you have it working, you know what has to change, and can translate it into an override
knupfer1 has joined #nixos
bqv has quit [Ping timeout: 252 seconds]
<clever> and the changes are already done, so you can quickly turn it into a PR
reallymemorable has quit [Quit: reallymemorable]
<energizer> how do i put files outside the store?
<energizer> home-manager works some magic to put files into my home directory but i dont see how https://github.com/rycee/home-manager/blob/master/modules/files.nix#L134
<matthuszagh> clever: yeah that seems like a good strategy. sometimes i find myself needing changes that wouldnt' be good to merge back in though. and then i feel the simplest solution would be to create a set of patch files that are applied
Vikingman has joined #nixos
bhipple has quit [Ping timeout: 256 seconds]
<jtojnar> bifunc2 you can disable binary cache by passing --substituters '' and I would guess few days (most of GNOME user space can be done under a day in my experience)
<matthuszagh> i know some people have dont this, but others have discouraged it. and in general it didn't seem like a simple setup
turion has joined #nixos
bqv has joined #nixos
morgrimm has quit [Ping timeout: 258 seconds]
<jtojnar> bifunc2 and gcc's, kernel and browser would take the most time
<{^_^}> [nixpkgs] @ggreif opened pull request #85512 → wasmtime-0.12.0: fix cargoSha256 → https://git.io/JfUfs
<bifunc2> jtojnar are there docs on how to get started?
<bifunc2> to compile the latest NixOS
<matthuszagh> i could do the clone, but then i have to worry about keeping the clone up to date or at least managing 2 repos
<clever> jtojnar: i think ive seen chromium take 48 hours to build
<jtojnar> bifunc2 I would just use the binary cache, it shortens the time considerably
<jtojnar> bifunc2 do you want to compile ISO image? Or install NixoS?
<bifunc2> jtojnar compile ISO image. btw i hesitate to use binary cache because then i'm trusting other people's binaries.
<bifunc2> (we afaik don't have guarantees yet that same derivations always lead to exact same binary)
<cole-h> ???
<cole-h> Isn't that... kinda the point of Nix?
<jtojnar> cole-h see r13y.com
<ixxie> clever: used a staged docker build now and the docker image is down to 585MB; since I no longer need to build anything during runtime, nixosify now runs in 4.5m! https://github.com/sparkletco/nixosify/runs/598315898?check_suite_focus=true
<cole-h> Yes, not completely reproducible. But mostly.
<ixxie> clever: I'm of course open to help add this to nixops but no clue how to even begin
<clever> cole-h: ive set `repeat = 1` on my `nix.conf` so i can see anything that cant be reproduced
magnus1 has joined #nixos
<clever> ixxie: i'm thinking to start, nixops would just run your script during the first deploy, maybe with a few changes
<clever> ixxie: leave a link to it in my issue, so others can find it later on?
<bifunc2> cole-h oh wow. i didn't realize NixOS was also aiming for binary reproducibility like Debian
<jtojnar> bifunc2 you would still need to trust nix and nixpkgs but you can do something like `nix-build --substituters '' nixos/release-combined.nix -A nixos.iso_minimal.x86_46-linux`
<bifunc2> that's it? one command to compile an entire OS?
<clever> bifunc2: yep
<bifunc2> can i do it on another linux system like debian?
<bifunc2> mind blowing
snicket has quit [Remote host closed the connection]
<clever> bifunc2: yeah, any x86-linux based machine can run that
<cole-h> If you have the nix binary, yep
<gchristensen> sure, bifunc2, install Nix on top of Debian and you can do that
<cole-h> nix binaries*
<ixxie> clever: which issue?
<clever> bifunc2: ive also done a variant before where i skip the installer iso, i just build nixos directly in /nix/store, and then overwrite the bootloader to change which /init it begins at
<{^_^}> [nixpkgs] @Ericson2314 pushed 39 commits to staging: https://git.io/JfUf8
<{^_^}> nixops#1189 (by cleverca22, 35 weeks ago, open): plan for supporting custom partition layouts and custom FS's on any backend
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #85513 → cc-wrapper: -nostdlib doessn't mean not C++ → https://git.io/JfUf4
vidbina_ has joined #nixos
snicket has joined #nixos
<{^_^}> [nixpkgs] @petabyteboy opened pull request #85514 → docker: add git to extraPath → https://git.io/JfUfa
kleisli_ has joined #nixos
<bifunc2> this brings me to next question, can you recommend a laptop that runs nixos? does anything come close to the quality of apple hardware?
jeromelanteri has quit [Quit: Leaving]
<clever> bifunc2: anything that runs linux well should be fine, ive been using a system76 laptop lately
<ixxie> bifunc2: I am happily running it on my dell xps
<ixxie> bifunc2: you can read community docs about NixOS on particular machines here: https://nixos.wiki/wiki/Hardware
<ixxie> bifunc2: if you google dell xps nixos you will also find notes by several regulars of this chat about setting up NixOS on xps machines
<bifunc2> nice, xps look good. all hardware components just worked?
<numkem> is there a good way go debug an app that won't start and just crashes with a dump? I've tried strace but I can't see anything obvious that would show a missing library or anything of the sort. It's chrome/electorn based it looks like.
negaduck has joined #nixos
<{^_^}> [nixpkgs] @AndersonTorres merged pull request #84370 → calibre: 4.12.0 -> 4.13.0 → https://git.io/JvNBC
<{^_^}> [nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/JfUJv
<arcnmx> (older xps13 here and it's been working well)
<{^_^}> [nixpkgs] @AndersonTorres merged pull request #84363 → [WIP] {help wanted} twolame: 2017-09-27 -> 0.4.0 → https://git.io/JvNW6
<{^_^}> [nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/JfUJf
rotaerk has joined #nixos
drakonis has joined #nixos
<bifunc2> clever, did everything just work on system76?
<bifunc2> "nixpkgs.config.allowUnfree = true; " is scary for xps :)
<clever> bifunc2: only issues was figuring out uefi install for the first time
zaeph has quit [Remote host closed the connection]
<clever> bifunc2: its nvme only, so legacy boot cant even see the drive
pluppens has quit [Ping timeout: 265 seconds]
<energizer> home-manager's `home.activation` has an automatic cleanup system `hm.dag`, which will remove files that aren't in the new generation. does nixos have a similar functionality for system.activationScripts?
<gchristensen> for directories managed by NixOS (namely, /etc)
<clever> energizer: not really, when you remove the activation script, it just stops running and forgets about it
<jtojnar> numkem I would get backtrace from coredumpctl gdb first
<clever> energizer: and yeah, the /etc stuff will track what it made, and clean up after itself
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
pbogdan has quit [Ping timeout: 256 seconds]
<bifunc2> thanks guys for the help!
zaeph has joined #nixos
pbogdan has joined #nixos
<numkem> jtojnar: ok, I'm getting somewhere but I've never really used gdb. complains about an illegual instruction
<jtojnar> numkem you can enter bt full and it should get you stack trace
<numkem> jtojnar: `No symbol table info available.`
linarcx has joined #nixos
<clever> numkem: what about `disass`
dermetfan has joined #nixos
<numkem> jtojnar: while I was looking at the libraries through `ldd` there is one shipped .so that is using another .so vs the one shipped with. is there a way to change autoPatchelfHook to have priorities?
<numkem> jtojnar: `No function contains program counter for selected frame.`
<clever> numkem: one min
pbogdan has quit [Client Quit]
<clever> numkem: `x /5i` ?
<numkem> it's my first time packaing something with patchelf and the likes, so I might have done something wrong: https://gist.github.com/numkem/08a6264e3d007da184097bdcf01b4d7f
koleesch has joined #nixos
<numkem> clever: `Argument required (starting display address).`
<clever> numkem: ` x /5i $pc` ?
pbogdan has joined #nixos
<numkem> clever: `=> 0x55afda6820b3:ud2
<numkem> 0x55afda6820b9:int3`
<numkem> 0x55afda6820b8:int3
<numkem> 0x55afda6820b7:int3
<numkem> 0x55afda6820b5:pushq $0x0
<clever> numkem: even gdb doesnt know what the opcode is!, definitely sounds like it just jmp'd to a random address and is crashing hard
<numkem> clever: what would be the command to keep going backwards?
<clever> numkem: you can just manually substract some from the number, and paste it where $eip was
<clever> but at this point, the stack is more important
<clever> and without debug info, it can be tricky to backtrace
<numkem> clever: I think it might be related to wrong lib being used, patchelf is supplying one while there is one shipped with the code
<clever> numkem: what i would do, is to just delete all of the binaries, and run ${pkgs.electron}/bin/electron, which is already patched
aveltras has quit [Quit: Connection closed for inactivity]
koleesch_ has joined #nixos
<numkem> clever: it's shipping a `chrome-sandbox`. I'm leaning on electron because it's shipping some .asar files that are related to electron and contains html/js/css
<clever> numkem: the asar files are basically just a tar to hold html/js/css, and you can run the nixpkgs electron against it
koleesch has quit [Remote host closed the connection]
<numkem> clever: interesting, so I might not even need any of it, let me try taht
eight has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
eight has quit [Client Quit]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @DamienCassou closed pull request #84882 → mono6: 6.0.0.313 -> 6.8.0.105 → https://git.io/Jvp7j
jmeredith has quit [Quit: Connection closed for inactivity]
o1lo01ol1o has joined #nixos
stevenxl has joined #nixos
drakonis has quit [Ping timeout: 265 seconds]
johnw has quit [Quit: ZNC - http://znc.in]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
codygman has quit [Ping timeout: 250 seconds]
<numkem> clever: doesn't look like I'll be lucky on that one, seems like it's an old electron and it's complaining about unmatching NodeJS version. So doesn't look like it's gonna be that easy. I'll keep looking at the missmatching lib
codygman has joined #nixos
<numkem> clever jtojnar thank you both for your help
<numkem> clever++
<{^_^}> clever's karma got increased to 395
drakonis has joined #nixos
<numkem> jtojnar++
<{^_^}> jtojnar's karma got increased to 41
<ornxka> so, i have a system, with a luks device configured that looks at /nonexistant, which isnt root.. so i try to boot and then of course it fails and i get dropped into a shell
<ornxka> there, i decrypt/mount the actual boot at /mnt-root, and then exit the shell, but then it kernel panics
<ornxka> but im mystified as to why, i mounted root in the right place, why wouldnt it work...
<ornxka> er, the actual root*
<clever> ornxka: does the systempath config in /proc/cmdline exist in the nix store you mounted?
<ornxka> yeah, systemConfig=/nix/store/blahblah, and then i have /mnt-root/nix/store/blahblah
<clever> ornxka: and the exact hash it says, exists there?
zarel has quit [Ping timeout: 250 seconds]
<ornxka> yes i have verified the whole hash is the same
zarel has joined #nixos
magnus1 is now known as skorpy
<clever> ornxka: not sure what else to check then
skorpy is now known as skorpy2009
skorpy2009 is now known as skorpy
<{^_^}> [nix] @zimbatm pushed 0 commits to more-pos: https://git.io/JfUUv
silver_ has joined #nixos
magnetophon has joined #nixos
<energizer> danderson: i am trying to figure out which are the stateful files that i need to persist. do i need both /tailscaled.log.conf and /var/lib/tailscale/tailscaled.state in order to avoid reauthenticating?
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
luelista has quit [Quit: WeeChat 1.9]
CptCaptain has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/35eb7793a3c (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/10100a97c89 (from 24 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
luelista has joined #nixos
drakonis has quit [Ping timeout: 246 seconds]
<magnetophon> I'm trying tho package zrythm. I get: "OSError: [Errno 30] Read-only file system: '/nix/store/viqykcrpkq433039680781rww3h5llhx-zrythm-0.8.252'" How can that be? That path is $out, shouldn't it be always writable during the build?
<CptCaptain> Where does X log to by default in nixos?
drakonis_ has quit [Ping timeout: 260 seconds]
proofofkeags has quit [Ping timeout: 256 seconds]
<energizer> CptCaptain: i have /var/log/X.0.log
maddo2 is now known as maddo
linarcx has quit [Quit: WeeChat 2.8]
<CptCaptain> energizer: I have nothing there
<energizer> CptCaptain: perhaps journald then
Izorkin has quit [Ping timeout: 250 seconds]
penguwin has quit [Quit: NO CARRIER]
penguwin has joined #nixos
drakonis_ has joined #nixos
<ornxka> huh
<ornxka> the panic is just that init died
<ornxka> thats odd, i didnt open the shell as pid 1...
<gchristensen> init is probably a shell script
drakonis has joined #nixos
drakonis has quit [Client Quit]
drakonis has joined #nixos
koleesch_ has quit [Ping timeout: 240 seconds]
proofofkeags has joined #nixos
<clever> ornxka: any errors above that?
<ornxka> nope
sogatori has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Ma27 pushed to master « gitAndTools.delta: 0.0.17 -> 0.0.18 »: https://git.io/JfUUP
silver_ has quit [Quit: rakede]
<ornxka> it tries to mount /nonexistant -> fails -> drops to shell -> i mount root at /mnt-root -> press ^D to exit shell -> it complains again that /nonexistant isnt there -> ^D again -> panic
<ornxka> ive got a script that hopefully should mount root instead of having to do it in the shell, i guess ill try that
morgrimm has joined #nixos
<ornxka> i think from now on i will only use computers that have a serial console console and full jtag debugger access to
gustavderdrache has joined #nixos
evanjs has quit [Quit: ZNC 1.7.5 - https://znc.in]
kenran has quit [Quit: leaving]
<ornxka> beaglebone daily driver here i come
maddo2 has joined #nixos
evanjs has joined #nixos
morgrimm has quit [Ping timeout: 240 seconds]
maddo has quit [Ping timeout: 240 seconds]
cyberdront has joined #nixos
zupo has quit [Ping timeout: 256 seconds]
markus1189 has quit [Ping timeout: 256 seconds]
markus1189 has joined #nixos
zupo has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
anders^ has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
anders^ has joined #nixos
rardiol has quit [Quit: No Ping reply in 180 seconds.]
CptCaptain has quit [Quit: WeeChat 2.8]
slack1256 has quit [Ping timeout: 256 seconds]
rardiol has joined #nixos
<{^_^}> [nixpkgs] @bjornfor merged pull request #85256 → flashplayer: 32.0.0.344 -> 32.0.0.363 → https://git.io/JfvUc
<{^_^}> [nixpkgs] @bjornfor pushed commit from @taku0 to master « flashplayer: 32.0.0.344 -> 32.0.0.363 »: https://git.io/JfUTm
justan0theruser is now known as justanotheruser
cyberdront has quit [Remote host closed the connection]
<energizer> when i install pandoc, the progress bar says it's downloading ghc. why does it do that? can't it just download a pre-built pandoc?
<{^_^}> [nixpkgs] @vcunat pushed 53 commits to master: https://git.io/JfUTC
<manveru> energizer: pandoc still has references to ghc at runtime...
<{^_^}> #34376 (by sopvop, 2 years ago, open): pandoc - statically linked closure-size
<{^_^}> [nixpkgs] @vcunat merged pull request #84442 → Staging next → https://git.io/JvNMw
<manveru> see the comment by Mic92 towards the end for a static version without that dependency
<energizer> i see
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/a17e021b948 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<{^_^}> [nixpkgs] @prusnak opened pull request #85516 → treewide: use https for nixos.org and hydra.nixos.org → https://git.io/JfUTK
shyim has quit [Quit: shyim]
<ornxka> ahhhh i finally got it working
<{^_^}> [nixpkgs] @prusnak opened pull request #85517 → lib/licenses: use https where possible → https://git.io/JfUTi
mallox has quit [Quit: WeeChat 2.8]
shyim has joined #nixos
<ornxka> what a ride, i literally had gotten out my breadboard and multimeter at some point during that
khal_ has joined #nixos
<{^_^}> [nixpkgs] @prusnak opened pull request #85518 → verifast: change license to MIT → https://git.io/JfUT5
inkbottle has joined #nixos
knupfer1 has quit [Quit: knupfer1]
knupfer has joined #nixos
zebrag has quit [Ping timeout: 250 seconds]
morgrimm has joined #nixos
vidbina_ has quit [Ping timeout: 240 seconds]
turion has quit [Ping timeout: 265 seconds]
relaxmax has joined #nixos
cosimone has quit [Quit: Quit.]
morgrimm has quit [Ping timeout: 250 seconds]
cosimone has joined #nixos
kenji has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 250 seconds]
teto has quit [Quit: WeeChat 2.8]
seku has quit [Quit: Connection closed]
kenji has joined #nixos
<Xe> i'm getting different sha256 results from nixpkgs-unstable and nixos-20.03 for a rust program built with rustPlatform.buildRustPackage
<clever> Xe: can you pastebin the nix expression?
relaxmax has quit [Quit: Leaving]
<Xe> 20.03 gives me 0h3yzds12q1vz66qi8hrkki8g5sm1d4k2mz9yg7ql8z59yma2r23 and unstable gives me 0lasshl4iwv6lrc65588rd4h4mh8h2cv1qfdnqy7mhrbmxrzxvyc
magnetophon has quit [Ping timeout: 264 seconds]
<Xe> for the cargoSha256 that is
<clever> Xe: make a copy of the directory that hash is for, and then try running diff -r against the 2 versions of it
<clever> what is differing?
<Xe> i don't know, i cannot replicate this failure on nixos-20.03 no matter what i try
<clever> Xe: if you invalidate the hash (replace in a few 0's), it should re-download things and give a new hash
<Xe> did something change in rustPlatform.buildRustPackage with regards to how it hashes the vendor folder?
__monty__ has quit [Quit: leaving]
<clever> Xe: maybe, running `diff -r` would explain what
<energizer> `networking.interfaces.<name?>.useDHCP` -> "Whether this interface should be configured with dhcp. Null implies the old behavior which depends on whether ip addresses are specified or not." If i delete networking.interfaces.foo.useDHCP, and i don't specify any ip addresses, will it default to true?
magnetophon has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
<energizer> i don't like having basically that one hardware-generated value in my configuration.nix
<energizer> so i would like to remove it, but i'm not sure what will happen and i'm scared to try it on a server lest it lose network connection
<Xe> clever: it seems it's a reoccurance of https://github.com/NixOS/nixpkgs/issues/60668
<{^_^}> #60668 (by andir, 50 weeks ago, closed): buildRustPackage: cargo-vendor upgrade broke cargoSha256 hashes
bvdw has joined #nixos
bvdw has quit [Remote host closed the connection]
andreas303 has quit [Remote host closed the connection]
<Xe> i think?
<clever> thats probable
<Xe> the weird part is that this shows up with a pinned nixpkgs against 20.03 with a nixpkgs-unstable docker container and a nixos 20.03 tower
<{^_^}> #79975 (by bhipple, 9 weeks ago, closed): Rust Application Migration to fetchCargoTarball Implementation
<clever> Xe: 20.03 is based on a recent fork of unstable
<energizer> yeah i think that broke my connection
proofofkeags has quit [Remote host closed the connection]
andreas303 has joined #nixos
bifunc2 has quit [Quit: -]
reallymemorable has joined #nixos
alexherbo2 has quit [Ping timeout: 256 seconds]
opthomasprime has joined #nixos
opthomasprime has quit [Remote host closed the connection]
<webstrand> I'm having trouble getting nixos to boot. I've copied the minimal iso onto a thumbdrive, but after selecting NixOS Installer in the menu, all I get is a black screen.
matthuszagh has quit [Remote host closed the connection]
<webstrand> The thumbdrive works in my laptop, it boots just fine.
<webstrand> Any ideas? I've had no trouble with other distros on this machine: fedora, arch, and gentoo work just fine.
<webstrand> One difference, when booting on my laptop, is that it doesn't use the gui gummiboot interface, it looks more like grub.
<{^_^}> [nixpkgs] @rvolosatovs opened pull request #85519 → sidequest: 0.8.7-> 0.10.2 → https://git.io/JfUIm
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<webstrand> apparently gummiboot is the issue. Booting in legacy mode (not uefi) lets me boot in
mariorandom has joined #nixos
dermetfan has quit [Ping timeout: 252 seconds]
<webstrand> though this time, the menu never appears
<mariorandom> is there any emacs plugins that tell me where my nix errors are?
<pikajude> "error: invalid file name 'closure-init-0' in 'exportReferencesGraph'" what's up with this
<pikajude> getting it from nixos-rebuild, it happens when trying to build the initrd
kenji has quit [Ping timeout: 264 seconds]
fendor has quit [Read error: Connection reset by peer]
trubi has joined #nixos
sshow has quit [Quit: leaving]
o1lo01ol1o has quit [Remote host closed the connection]
reallymemorable has quit [Quit: reallymemorable]
o1lo01ol1o has joined #nixos
sshow has joined #nixos
sshow has quit [Client Quit]
sshow has joined #nixos
<{^_^}> [nixpkgs] @risicle opened pull request #85520 → afl: fix afl-clang-fast++ by making it a copy of afl-clang-fast, not a symlink → https://git.io/JfUI4
<energizer> mariorandom: nix-mode
<{^_^}> [nixpkgs] @rvolosatovs opened pull request #85521 → gopass: Add passAlias parameter to derivation → https://git.io/JfUIB
<mariorandom> nix-mode is not telling me where my errors are
o1lo01ol1o has quit [Ping timeout: 250 seconds]
<NobbZ[m]> mariorandom what kind of errors? `nix-mode` does indeed help you to find syntax errors in the current file. It will not help you finding misnamed variables or even crosfile errors.
<mariorandom> like removing a semi-colon
<mariorandom> I will try to find a video of youtube that nix-mode is working like I expect
<energizer> it does for me
<NobbZ[m]> Oh, you are right. It doesn't show those indeed
<NobbZ[m]> energizer which version of Emacs?
<NobbZ[m]> And nix-mode?
smatting_ has joined #nixos
<energizer> GNU Emacs 26.3
<energizer> probably flycheck is doing the work there
<mariorandom> it is working in your emacs like I expect
<energizer> i expect flycheck + nix-mode is the key there
proofofkeags has joined #nixos
<mariorandom> the problem is that my flycheck was disable
<NobbZ[m]> I need to check with flycheck again.
<NobbZ[m]> Though editing config via SSH on a mobile is nothing I'd do unless I have to :D I hope I remember it still tomorrow
<mariorandom> nix messages are wrong, because when I forget the ';' (collon), it tells that my '=' in the next line that is wrong
reallymemorable has joined #nixos
<NobbZ[m]> It's correct.
<NobbZ[m]> The equal sign is unexpected.
henry_ has joined #nixos
smatting_ has quit [Ping timeout: 265 seconds]
<NobbZ[m]> The attrset and the following name can be part of lists or function arguments. The parser probably doesn't know about either to keep it simple.
proofofkeags has quit [Ping timeout: 256 seconds]
<energizer> mariorandom: that's a common issue in reporting parse errors for a lot of languages
asymmetric has quit [Quit: Peace.]
<NobbZ[m]> 20 years ago when I did some C, a single missing semicolon could produce a plentora of various errors... Back then, fixing errors top to bottom was the only senseful thing to do.
<clever> NobbZ[m]: try forgetting a } in c!
asymmetric has joined #nixos
<NobbZ[m]> I stopped doing C, was better for my sanity :D
<risson> Hi people! Trying to switch to 20.03 here, but grub won't install because no space left on /boot/efi
cosimone has quit [Quit: Quit.]
<risson> However my /boot/efi is almost empty and has more than 500M free
<risson> Here is the `nixos-rebuild switch` output: https://github.com/kalbasit/shabka/pull/325#issuecomment-615969245
cosimone has joined #nixos
<qy[m]1> >:)
<qy[m]1> i did it
<qy[m]1> i'm in a guix env, in nixos
<risson> :D
<risson> Who wouldn't want that
<{^_^}> [nixpkgs] @timsears opened pull request #85522 → bioconductor packages: 3.8 -> 3.10, update R packages, other fixes → https://git.io/JfUID
<qy[m]1> i don't wanna add the module to the PR though, cause it's been hard enough to get people to look at the package
<qy[m]1> but at least i'm now proof that it works
<qy[m]1> risson: honestly part of my incentive is that i'm interested in using guix to manage emacs
<qy[m]1> like, as a pseudo-homemanager sort of thing
<energizer> does `builtins.readFile ./foo` get copied into the store?
<qy[m]1> cause i have a huge emacs config
<qy[m]1> no, it's a builtin
<qy[m]1> that's part of evaluation
<risson> I have no clue how to do emacs configuration, either with nix, guix or any other way
<qy[m]1> basically, with nix = pain
<risson> And with guix, still pain, but less
<qy[m]1> with guix = less pain
<risson> :D
<niso> qy[m]1: why pain?
<qy[m]1> natively = less pure
<gchristensen> pretty painless for me :)
<risson> Please no war about how to configure an editor
<risson> I can't install grub x)
* niso considered replacing use-package + straight with nix
* gchristensen goesback to cooking dinner
<gchristensen> niso: that is what I do
<energizer> emacs.withPackages is great
<niso> gchristensen: use-package with nix? or just nix?
<gchristensen> emacsWithPackages
<gchristensen> and a custom package wit my onw config
<qy[m]1> i don't doubt it's painless with a simple config, but i run exwm and have basically everything on my system tied to emacs in some way, so it's got rather messy :D
<qy[m]1> i have binaries referenced in places, that needs binding to nix
<qy[m]1> some of my modules need libraries, so they have to be available at build and/or runtime
<qy[m]1> and then i have to constantly keep my nix config and emacs config in sync
<qy[m]1> so all in all ends up really unergonomic
<niso> gchristensen: i see, i'll give it a try, thanks :)
<qy[m]1> i began porting some of my elisp to nix in an effort to basically join them but i'm too lazy to finish that and it seems quite awful anyway
KindTwo has joined #nixos
<adisbladis> niso: use-package is still useful with nix
<qy[m]1> adisbladis: your use-package wrapper seemed perfect until i remembered i've wrapped use-package in a macro :D
<niso> adisbladis: because of mod-dependent loading etc?
<niso> *mode
KindTwo has quit [Max SendQ exceeded]
<adisbladis> niso: Defered loading and whatnot :)
<qy[m]1> niso: straight is somewhat superfluous with nix, if you use the nix emacs packages
<qy[m]1> that's why i got rid of it, anyway
<niso> qy[m]1: yea, straight is a relict of my pre-nix time :0
<niso> i'll replace it the next time i'm refactoring
<clever> [3~
guilherme has joined #nixos
<adisbladis> qy[m]1: I'm really hoping to replace that hack at some point..
* niso wonders why noone wrapped cmake in nix so far
<guilherme> .
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
<qy[m]1> adisbladis: honestly the best thing i could think of as an alternative was having a list of nix objects that correspond to use-package objects, that then get compiled (with a pre-init script) to your init.el
ciil has quit [Quit: Lost terminal]
<qy[m]1> which was what i was going for, but i went a bit crazy with the lisp-to-nix stuff and now i'm somewhat disillusioned with the idea
<drakonis> lisp to nix you say?
<energizer> does `import ./foo` copy ./foo into the store?
<qy[m]1> but at least that way, the dependency tree would be visible to nix, and packages could be injected as needed, rather than kept in sync
<adisbladis> energizer: Nope
<drakonis> oh, that.
<energizer> how can i find out which functions copy stuff into the store (without asking here every time)?
<drakonis> trying to generate elisp from nix?
<{^_^}> [nixpkgs] @timsears closed pull request #82979 → bioconductor packages: 3.8 -> 3.10 → https://git.io/JfUIx
<adisbladis> qy[m]1: A friend is hacking on an emacs lisp parser in nix :)
<qy[m]1> essentially, yeah
<adisbladis> As in a proper parser
<adisbladis> Not my regex hacks
<{^_^}> [nixpkgs] @timsears closed pull request #82608 → rPackages.rhdf5: fix installation for v1.4.3 → https://git.io/Jviu6
<qy[m]1> adisbladis: heh, that could be awesome. then you could evaluate the entire config and fetch all *actual* packages used
<adisbladis> I'm not sure how that would support your custom macro use case though
<qy[m]1> but yeah i think i'll use my guix module to see if i can graft some scheme into my nix config like the filthy heathen i am
<niso> adisbladis: why not wrap e.g. rnix instead?
<qy[m]1> cause that would make manipulating elisp trivial
<qy[m]1> ah, yeah
sarcasticadmin has joined #nixos
<adisbladis> niso: Huh? How would that solve anything?
<adisbladis> I want to read emacs lisp in nix. Not the other way around.
<niso> oh, my bad
<qy[m]1> actually i'd settle for either
<qy[m]1> :p
o1lo01ol1o has joined #nixos
<guilherme> the old library of agda (nixos 19) were right and now, it is wrong at unstable. It is not compiling agdai files
<qy[m]1> not sure if anyone's versed in nix's systemd interface, but i can't seem to use $RUNTIME_DIRECTORY from an environment entry?
<qy[m]1> the .service has `Environment="GUIX_CONFIGURATION_DIRECTORY=$RUNTIME_DIRECTORY"` set if i use `environment.G...RY =`, but that seems to get set by systemd as a literal
Desetude has quit [Quit: WeeChat 2.8]
<qy[m]1> whereass if i use `serviceConfig.ENVIRONMENT=` it works
ex-parrot has joined #nixos
<ex-parrot> hi all. I've got a Xen VM running NixOS where I need to unload xen_kbdfront for a rebuild to complete. is there a reasonable place I can automate this?
<qy[m]1> not a problem for me because i can just do the latter, but could be a problem in the long run, because you can't set multiple entries that way?
<qy[m]1> (since attrset)
o1lo01ol1o has quit [Ping timeout: 256 seconds]
KindTwo has joined #nixos
ciil has joined #nixos
henry_ has quit [Quit: henry_]
<cole-h> Can you not provide a list, like `[ "env1=fdjskla" "env2=fdkjl" ]`?
<cole-h> You can for hm's `Environment`, at least.
<qy[m]1> maybe? i thought systemConfig was just translated directly
<qy[m]1> would make sense though
maddo2 has quit [Quit: See ya]
<cole-h> Even if it is: you can specify multiple environment variables in the same `Environment=` line for systemd e.g. `Environment=ASDF=fdsa FHKJLD=jfkl`
<qy[m]1> ah, true
<cole-h> (which is how hm implements multiple env vars in service configs)
_rvl_ has joined #nixos
mbrgm_ has joined #nixos
cosimone has quit [Quit: Quit.]
hoplaahei has joined #nixos
KindTwo has quit [Max SendQ exceeded]
mbrgm has quit [Ping timeout: 272 seconds]
mbrgm_ is now known as mbrgm
<hoplaahei> hi. I'm on 20.03 liveusb because stable doesn't load graphical session. What do I need to do to ensure 19.09 stable is installed? Change the channel and set system.stateVersion to 19.09?
morgrimm has joined #nixos
_rvl has quit [Quit: ZNC 1.7.4 - https://znc.in]
xO1 has quit [Ping timeout: 258 seconds]
<zeta_0> hello, i want to contribute to nixpkgs, after i clone the repo, do i need to setup anything else before i start fixing issues?
bvdw has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<aanderse> hoplaahei: at this point for a new install you're probably better off with 20.03
mariorandom has quit [Remote host closed the connection]
guilherme has quit [Remote host closed the connection]
morgrimm has quit [Ping timeout: 258 seconds]
<cole-h> ,stateversion
<{^_^}> Changing stateVersion doesn't upgrade anything and can only break your setup at best. To actually upgrade NixOS see https://nixos.org/nixos/manual/#sec-upgrading. If you need to change stateVersion for some odd reason regardless, Ctrl-F for "stateVersion" in https://nixos.org/nixos/manual/release-notes.html to see things that need to be manually migrated with the new value
<zeta_0> also, i would like to start doing simple nixpkgs tasks, so if you guys could point me in the right direction
<niso> zeta_0: this tool can help you with reviewing pending pull requests (for e.g. software updates): https://github.com/Mic92/nixpkgs-review
<drakonis> when is it time to get rid of state version?
<ex-parrot> it doesn't seem like there's a networking.domain or similar option to set the system's domain (e.g. /etc/resolv.conf "domain" line)
<ex-parrot> currently I'm setting it with networking.resolvconf.extraConfig = "search_domains=hotplate.co.nz"; which feels clunky
<ex-parrot> and only sets "search hotplate.co.nz"
henry_ has joined #nixos
<hoplaahei> OK I will install 20.03 to keep it simple. Thanks.
_rvl_ has quit [Quit: ZNC 1.7.5 - https://znc.in]
<niso> is anyone aware of a better way to pass a specific pkgs to a container? this seems like an anti-pattern: http://paste.debian.net/1141232/
<qy[m]1> i think in one instance i was able to skip pkgs from the import list of the container and let it default to the host pkgs
<qy[m]1> but in another i had to also set 'nixpkgs.pkgs = pkgs'
<qy[m]1> not sure why the second was needed
<hr[m]> Is it possible to request a new reviewer on your Nixpkgs PR. The assigned reviewer for my PR hasn't been active on github in more than a month
<niso> qy[m]1: i see, thanks
<qy[m]1> drakonis: wanna test #85463 for me? since you're actively interested in guix. a module is in the comments
<{^_^}> https://github.com/NixOS/nixpkgs/pull/85463 (by bqv, 1 day ago, open): guix: init at 1.1.0
<danderson> energizer: yes (and sorry for polluting /, it's a bug that'll be fixed in the next release)
<qy[m]1> (realistically i know the package works now, i'm more interested in if there's any bootstrap missing from the module)
smatting_ has joined #nixos
snicket has quit [Ping timeout: 240 seconds]
<energizer> danderson: that's what i figured, thanks :-)
<danderson> energizer: in the next release (which I'm cutting now but won't make it to NixOS for a bit), you should hold onto /var/lib/tailscale and /var/cache/tailscale
<energizer> danderson: sounds good
<zeta_0> niso: ok, i just finished installing nixpkgs-review, next, do i need to clone the nixpkgs repo, or build it using nix-build instead?
broccoli has joined #nixos