worldofpeace 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/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018 || For best support,
<sphalerite> blackriversoftwa: it should probably retry if you tell it to bring the connection up again?
selfsymmetric-mu has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace opened pull request #76116 → Pantheon cleanups → https://git.io/Jed8w
<{^_^}> [nixpkgs] @7c6f434c opened pull request #76117 → rust-9p: init → https://git.io/Jed8K
<qyliss> MichaelRaskin++
<{^_^}> MichaelRaskin's karma got increased to 19
mexisme has joined #nixos
<{^_^}> [nixpkgs] @Ma27 merged pull request #75464 → nixosTests.rspamd: port to python → https://git.io/Je9ua
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/Jed81
takeda has quit [Ping timeout: 260 seconds]
Rusty1 has quit [Remote host closed the connection]
mbrgm_ has joined #nixos
mbrgm has quit [Ping timeout: 260 seconds]
mbrgm_ is now known as mbrgm
mexisme has quit [Ping timeout: 248 seconds]
vld has joined #nixos
pbb has joined #nixos
<blackriversoftwa> sphalerite: it does not. It re-uses the old lease
<blackriversoftwa> I'm not sure why with a different MAC address for the router it doesn't seek a new lease
vld has quit [Ping timeout: 268 seconds]
jgeerds has quit [Ping timeout: 265 seconds]
o1lo01ol_ has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @Ma27 merged pull request #75532 → xandikos: init at 0.1.0 → https://git.io/Je9hB
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/Jed8p
selfsymmetric-mu has quit [Remote host closed the connection]
turbo_MaCk has quit [Ping timeout: 260 seconds]
<Ashy> wow this is unfortunate: https://github.com/NixOS/nix/issues/2925
<{^_^}> nix#2925 (by mroi, 28 weeks ago, open): /nix will not be writable on macOS Catalina
drakonis has joined #nixos
<Ashy> just resurrected my old macbook air with a fresh reinstall of macos
<MichaelRaskin> Read the thread, there are fixes
o1lo01ol1o has quit [Ping timeout: 260 seconds]
<MichaelRaskin> But you still need to check whether they worked (and sometimes try some other fix from the thread)
<Ashy> yeah reading through it now
<{^_^}> [nixpkgs] @veprbl merged pull request #76105 → pythia: 8.243 -> 8.244 → https://git.io/JedYZ
<{^_^}> [nixpkgs] @veprbl pushed 2 commits to master: https://git.io/Jed4e
m0rphism has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @veprbl pushed to release-19.09 « pythia: 8.243 -> 8.244 »: https://git.io/Jed4v
<eacameron> Has anyone seen this?
dansho has joined #nixos
Rusty1 has joined #nixos
<dansho> is this the simplest way to install a shell script? can it be done without creating an archive? https://paste.ee/p/CAyp7
<gchristensen> dansho: src = ./foo.sh
<dansho> gchristensen: it tries to unpack it for some reason https://paste.ee/p/5U4tE
lovesegfault has quit [Ping timeout: 268 seconds]
<gchristensen> unpackCmd = ":";
jluttine has quit [Ping timeout: 265 seconds]
<dansho> "unpacker appears to have produced no directories"
<gchristensen> sorry, I need to go for a taco
<gchristensen> I'm sure someone else will help :)
werner291 has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<dansho> this works: https://paste.ee/p/umbF4
boxscape has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #76058 → wfuzz: init at 2.4.2 → https://git.io/Je5SF
<{^_^}> [nixpkgs] @jonringer pushed commit from @Pamplemousse to master « wfuzz: init at 2.4.2 »: https://git.io/Jed4W
o1lo01ol1o has quit [Ping timeout: 265 seconds]
leo has joined #nixos
leo is now known as Guest60194
silver has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Jed4l
<Guest60194> where exactly is androidenv?
<Guest60194> dumb question. don't mind.
<Guest60194> just a tad hard to develop for mobile on nixos.
<dansho> turns out i should have just gave src a directory instead of an archive: https://paste.ee/p/gfiSm
Guest60194 has quit [Quit: leaving]
<{^_^}> [nixpkgs] @jonringer merged pull request #76109 → vimPlugins.nvim-lsp: init at 2019-12-17 → https://git.io/JedZU
<{^_^}> [nixpkgs] @jonringer pushed commit from @teto to master « vimPlugins.nvim-lsp: init at 2019-12-17 »: https://git.io/Jed4z
domogled has quit [Quit: domogled]
mexisme has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/b6ee7aa184c (from 10 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
endformationage has quit [Ping timeout: 240 seconds]
<dansho> is there a builtin to split a string into lines?
dsx has quit [Quit: dsx]
<infinisil> > :p builtins.split "\n" "foo\nbar"
<{^_^}> [ "foo" [ ] "bar" ]
<infinisil> dansho: ^
<drakonis> hmm i'm having a bit of a hard time figuring how to do a commit workflow to send PRs
iyzsong has joined #nixos
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/233da30ce28 (from 63 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
<drakonis> i cant pull from the original
leex has quit [Ping timeout: 265 seconds]
dsx has joined #nixos
vld has joined #nixos
<infinisil> ,dnw drakonis
<{^_^}> drakonis: Provide as much info as possible on problems. What specifically doesn't work? What command did you run? What's the error? This makes debugging easier and helps getting faster responses
<drakonis> uh
<drakonis> this is related to git itself
<drakonis> trying to get my fork up to date so i can push a PR
acarrico has joined #nixos
Fare has joined #nixos
<drakonis> okay cool its done now
forbi has left #nixos [#nixos]
vld has quit [Ping timeout: 260 seconds]
<Fare> Using the latest 19.09, I can't build linphone because mbedtls-1.3.22 fails to build.
<Fare> I don't see an issue on the nixpkgs github. Shall I report?
nek0 has quit [Quit: ZNC 1.7.4 - https://znc.in]
<drakonis> how does it fail to build?
nek0 has joined #nixos
bt` has left #nixos ["ERC (IRC client for Emacs 26.3)"]
<Fare> mysterious error without an obvious message while or after "Executing pipInstallPhase" for "/build/alabaster-0.7.12/dist /build/alabaster-0.7.12" and passing 3 test suites. make[1]: *** [Makefile:435: check] Error 1
<Ankhers> Is there a way to retrieve all attributes of a given derivation? For example, if I wanted to see all attributes that the Postgres service accepts without looking at the actual .nix file?
<drakonis> its really not mysterious
<drakonis> go at the makefile at line 435
<Fare> Oh wait, further up there, there's an error. Maybe because I'm building with some parallelism? I see a FAILED (401 / 426 tests (2 skipped)) somewhere while building alabaster.
<Fare> the first FAILED message is: X509 Certificate verification #5 (Revoked Cert) ................... FAILED
<Fare> so the culprit seems to be python3.6-alabaster-0.7.12
<Fare> or maybe not. The thing that fails to build is mbedtls-1.3.22.
<infinisil> Ankhers: You mean options?
<infinisil> Ankhers: Got an example?
<drakonis> fetch the makefile it is using and check why it dies
<Fare> Maybe a victim of the python 2.7 to 3.6 migration?
dbmikus has quit [Ping timeout: 240 seconds]
<infinisil> Ankhers: I mean for options you can just check `man configuration.nix` or https://nixos.org/nixos/options.html
<drakonis> Fare: no not really
<drakonis> it is already compatible with python 3
wildtrees has quit [Quit: Leaving]
<drakonis> i dont see why alabaster is pulling in a tls library
<Ankhers> "package", "port", "dataDir", etc.
<drakonis> it is a theme for sphinx
<Ankhers> Is there a way for me to find those out programatically?
<infinisil> Ankhers: (import <nixpkgs/nixos> {}).options.services.postgresql
<infinisil> (this uses your configuration.nix as well fyi)
<infinisil> builtins.attrNames that to get the list of options as strings
<infinisil> (or option sets)
<drakonis> Fare: it probably failed the test suite
<drakonis> what exactly are you doing here that's compiling mbedtls?
dbmikus has joined #nixos
<Ankhers> infinisil: What you do mean by that uses my configuration.nix?
<infinisil> Ankhers: It also evaluates your configuration.nix to see if there's any options you declare there
<infinisil> You can do `import <nixpkgs> { configuration = {}; }` to avoid that
<Ankhers> Oh okay.
<drakonis> ,dnw Fare
<{^_^}> Fare: Provide as much info as possible on problems. What specifically doesn't work? What command did you run? What's the error? This makes debugging easier and helps getting faster responses
<drakonis> i dropped into a shell with mbedtls and it didnt fail
<drakonis> or compile
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
yobj has quit [Remote host closed the connection]
day|flip has joined #nixos
<Fare> {^_^}, I tried to run nixos-rebuild switch with linphone on 19.09 on linux-x64, and it that failed due to a build failure in mbedtls.
yobj has joined #nixos
<drakonis> its a bot my guy
<drakonis> upgraded your channels?
<drakonis> because i didnt get any build here
<drakonis> it got into a shell with linphone without any issues
<drakonis> are you on nixpkgs or nixos?
<Fare> I upgrade my channels to 19.09 today
<drakonis> and are your channels up to date?
<Fare> that's the only channel, and yes it's up to date
<Fare> nixos
orivej has quit [Ping timeout: 260 seconds]
<drakonis> hmm right
<drakonis> i have nixos-unstable here
<Fare> I disabled linphone, and now it's compiling who knows what (looks like numpy)
<Fare> I was recommended nixos stable for base install, and nixpkgs-unstable for user packages.
<drakonis> wait what
<drakonis> who recommended that?
<Fare> don't remember whom. That was years ago, though.
<drakonis> that sounds like bad advice though?
<Fare> is it? Isn't the stable release (19.09) supposed to be stable?
<drakonis> nixpkgs doesnt go through tests before releasing though
<drakonis> stable is supposed to be unchanging
<drakonis> not bug free
<dansho> if i have a file containing the line FOO_VERSION="0.0.1", is there an easy way to get that version string in a nix expression?
<Fare> is anything supposed to be maintained stable plus bug fixes?
h0m1 has quit [Ping timeout: 252 seconds]
<dansho> been trying to use builtins.split and builtins.match but it's not going to well
<drakonis> no, the bugs are in the software
<drakonis> so you get the same bugs :V
<Fare> dansho, some regular expression somewhere? Or a shell script that extracts it?
<{^_^}> [nixpkgs] @taku0 opened pull request #76118 → thunderbird, thunderbird-bin: 68.3.0 -> 68.3.1 → https://git.io/JedBk
shibboleth has joined #nixos
<drakonis> joke aside, nixos-unstable if you want to have fresh packages
<dansho> Fare: match uses the regexp, but split returns a list of strings interspersed with lists so i can't map over it
<dansho> i'm used to vim regexp, i couldn't really get it to do what i wanted anyway
h0m1 has joined #nixos
day|flip has quit [Quit: ERC (IRC client for Emacs 26.3)]
<drakonis> Fare: bugfix patches are available in nixos-19.09
<drakonis> but really, run nixos-unstable for the freshness
<notgne2> dansho: you could probably get away with using runCommand and using an external tool
<Fare> drakonis, with fresh bugs included, too
<dansho> oh lib.strings.splitString might work better
<drakonis> yes
<drakonis> but linphone works here
<drakonis> i'm confused though
<drakonis> why is it pulling numpy
dbmikus has quit [Ping timeout: 260 seconds]
<infinisil> dansho: lib.elemAt (builtins.match "FOO_VERSION=\"(.*)\"" (lib.fileContents ./file)) 0
<Fare> looks like my nixos-rebuild is recompiling scipy for the nth time. Now for python3.6-nbformat-4.4.0.
<infinisil> Fare: Sounds like you used python36 somewhere
jwinnie has joined #nixos
<drakonis> i'm pretty sure it is due to nixpkgs-unstable
<Fare> infinisil, hasn't 3.6 replaced 2.7 everywhere?
<drakonis> please post your config file
<drakonis> the default python 3 version is 37
<infinisil> Fare: No that's got nothing to do with that
<drakonis> 3.7
<infinisil> But only the default python version gets cached packages
<infinisil> Fare: So if you used python36 somewhere, I suggest replacing that with python3 instead
<Fare> is there a way to say "default python" instead of python36 or python37 ?
<drakonis> yes
<drakonis> python3
<Fare> thanks
<notgne2> dansho: `let s = (builtins.split "=" "FOO_VERSION=\"0.0.1\""); v = builtins.elemAt s 2; in [ (builtins.substring 1 ((builtins.builtins.stringLength v) - 2) v) (builtins.elemAt s 0) ]`
<notgne2> something like that might also work
<Fare> thanks, works much better with python3
<Fare> is there the same with emacs? Can I say emacsPackages instead of emacs26Packages ?
<notgne2> and for finding it you could split by \n and use hasPrefix
<drakonis> yes
<infinisil> Fare: Emacs packages are never cached afaik
jluttine has joined #nixos
lovesegfault has joined #nixos
<drakonis> downloading emacs packages from their repositories is hardly a problem though
<qyliss> But you can say emacsPackages
<qyliss> > emacsPackages
<{^_^}> { "0blayout" = <CODE>; "0x0" = <CODE>; "0xc" = <CODE>; "2048-game" = <CODE>; "4clojure" = <CODE>; "@" = <CODE>; _0blayout = <CODE>; _0xc = <CODE>; _2048-game = <CODE>; _4clojure = <CODE>; a = <CODE>; ...
<drakonis> a chunky pile of these
ericdallo has joined #nixos
<ericdallo> Hello, could someone review/merge this PR please? https://github.com/NixOS/nixpkgs/pull/75124
<{^_^}> #75124 (by ericdallo, 2 weeks ago, open): clojure-lsp: init at release-20191202T142318
<dansho> this works `lib.elemAt (lib.lists.flatten (lib.lists.remove null (builtins.map (builtins.match "FOO_VERSION=\"(.*)\"") (lib.strings.splitString "\n" x)))) 0`
<lovesegfault> Hmm, why does the bot not tag me for review? https://github.com/NixOS/nixpkgs/pull/76118
<{^_^}> #76118 (by taku0, 19 minutes ago, open): thunderbird, thunderbird-bin: 68.3.0 -> 68.3.1
Fare has quit [Ping timeout: 260 seconds]
dustinm- has quit [Quit: Leaving]
jwinnie has quit [Ping timeout: 260 seconds]
<dansho> ah i figured out what i was doing wrong with the regexp, this is probably better no need to split `builtins.elemAt (builtins.match ".*FOO_VERSION=\"([0-9]\\.[0-9]\\.[0-9])\".*" (builtins.readFile ./foo.sh)) 0`
<samueldr> lovesegfault: might not be done yet
<samueldr> hm no
<lovesegfault> samueldr: But it tagged edolstra and nbp
vonfry has joined #nixos
<samueldr> lovesegfault: are you in the maintainers team in the organization? https://discourse.nixos.org/t/join-the-package-maintainer-team/3751
<lovesegfault> samueldr: No :)
<samueldr> that's it
<samueldr> reviews can only be requested to members of the organization
<lovesegfault> Ah, I see
<lovesegfault> should I ask gchristensen to be added, samueldr?
<samueldr> I don't know what's the process since the initial import
<lovesegfault> I see, I'll ask him when he recovers from his battle with hydra
<samueldr> maybe check your e-mails for an existing invitation?
mexisme has quit [Ping timeout: 245 seconds]
* lovesegfault goes look
<lovesegfault> samueldr: nada
acarrico has quit [Ping timeout: 260 seconds]
vonfry has quit [Remote host closed the connection]
tilpner_ has joined #nixos
tilpner has quit [Ping timeout: 240 seconds]
jwinnie has joined #nixos
dustinm has joined #nixos
cptchaos83 has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
cptchaos83 has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #74620 → giflib: fix dylib names on Darwin → https://git.io/Je1nR
<{^_^}> [nixpkgs] @marsam pushed 2 commits to staging: https://git.io/JedBn
jwinnie has quit [Quit: Konversation terminated!]
ericdallo has quit [Ping timeout: 260 seconds]
inkbottle has quit [Quit: Konversation terminated!]
inkbottle has joined #nixos
LLED2_3 has quit [Ping timeout: 268 seconds]
shibboleth has quit [Quit: shibboleth]
acarrico has joined #nixos
xelxebar has quit [Quit: ZNC 1.7.2+deb2~bpo9+1 - https://znc.in]
xelxebar has joined #nixos
lovesegfault has quit [Ping timeout: 260 seconds]
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/233da30ce28 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
<dansho> is there syntax to combine multiple `with`s? https://paste.ee/p/1HDSY
<{^_^}> [nixpkgs] @zowoq opened pull request #76119 → fzf: 0.19.0 -> 0.20.0 → https://git.io/JedBw
<{^_^}> [nixpkgs] @zowoq opened pull request #76120 → brave: 1.0.0 -> 1.1.23 → https://git.io/JedBr
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
aw has joined #nixos
spacefrogg has joined #nixos
<dansho> i guess this is kind of what i had in mind, i had to specify stdenv, though https://paste.ee/p/vEjPB
day|flip has joined #nixos
mexisme has joined #nixos
<{^_^}> [nixpkgs] @zowoq opened pull request #76121 → miniserve: 0.2.1 -> 0.5.0 → https://git.io/JedB6
sk8forether has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @marsam opened pull request #76122 → bazelisk: 1.1.0 -> 1.2.1 → https://git.io/JedBy
felixfoertsch has joined #nixos
felixfoertsch23 has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #76067 → clightning: 0.7.3 -> 0.8.0 → https://git.io/Je5Qn
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JedB5
boxscape has quit [Remote host closed the connection]
vld has joined #nixos
vld has quit [Ping timeout: 265 seconds]
dingenskirchen has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @cdepillabout pushed 3 commits to haskell-updates: https://git.io/JedBp
<{^_^}> [nixpkgs] @cdepillabout merged pull request #76084 → spago: 0.12.1.0 -> 0.13.0 → https://git.io/Je5xI
eacameron has quit [Quit: Connection closed for inactivity]
reallymemorable has joined #nixos
<{^_^}> [nixpkgs] @MasseGuillaume opened pull request #76123 → pulumi: 1.4.0 -> 1.7.1 → https://git.io/JedRT
tbenst[m] has joined #nixos
<tbenst[m]> anyone know how to test membership in nix? eg in python `x in ["hi", "name"]`
<ryantm> tbenst[m]: builtins.elem
<ryantm> https://nixos.org/nix/manual/ has the docs for it
<tbenst[m]> thanks!
<ryantm> The builtins there, or the functions in https://github.com/NixOS/nixpkgs/blob/master/lib/default.nix are where all the good stuff is :)
<tbenst[m]> ah interesting. Is there a nix lang / helper function docs somewhere that I'm not aware of? Seems a bit scattered
<tbenst[m]> nix pills is great of course
zeta_0 has joined #nixos
lovesegfault has joined #nixos
<dansho> tbenst[m], lib is documented here https://nixos.org/nixpkgs/manual/#chap-functions
justanotheruser has quit [Read error: Connection reset by peer]
<dansho> there's also the nix manual section on builtins https://nixos.org/nix/manual/#ssec-builtins
<tbenst[m]> ah thx @dansho didn't realize `lib` was part of nixpkgs rather than nix
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
<lovesegfault> Is nvidia-smi gone?
<lovesegfault> I can't find it anywhere
<lovesegfault> gchristensen: ❯ nix-locate nvidia-smi
<lovesegfault> shows nothing
reallymemorable has quit [Quit: reallymemorable]
<lovesegfault> and nix-shell -p linuxPackages_latest.nvidia_x11 also doesn't place it in PATH
day|flip has quit [Quit: ERC (IRC client for Emacs 26.3)]
test5864346[m] has joined #nixos
reallymemorable has joined #nixos
<gchristensen> I have it, lovesegfault, at /nix/store/bn303fpy4632ljw7hf8wvdxd1a15q7x4-nvidia-x11-440.36-4.19.89-bin/bin/nvidia-smi
<gchristensen> fetched via nix-shell -p linuxPackages.nvidia_x11 and system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.3, channels(root): "nixos-19.09.1590.d85e435b7bd", channels(grahamc): "", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
day|flip has joined #nixos
<lovesegfault> gchristensen: Hmm I see it too
<lovesegfault> it's just not getting in my PATH
* lovesegfault goes fiddle
<lovesegfault> gchristensen: I am so tempted to try and write a hydra-like thing in Rust
<{^_^}> [nixpkgs] @jonringer merged pull request #76045 → pythonPackages.django: 1.11.26 -> 1.11.27 (for CVE) → https://git.io/Je5Ml
<{^_^}> [nixpkgs] @jonringer pushed commit from @lsix to master « pythonPackages.django: 1.11.26 -> 1.11.27 »: https://git.io/JedRz
<lovesegfault> gchristensen: Bam, got it!
bvdw has quit [Read error: Connection reset by peer]
<lovesegfault> added it to systemPackages, added the user to the video group
thomashoneyman has joined #nixos
<thomashoneyman> let's say i want to spin up a tiny http server serving a single directory of static files
bvdw has joined #nixos
<thomashoneyman> in a `writeScriptBin` command along the lines of '${server}/bin/server directory --port $PORT'
<thomashoneyman> any suggestions for what package might make sense for this?
<thomashoneyman> it's only for a small demo environment serving HTML+JS which also starts up a backend API server
<pie_> its definitely been done before
<pie_> but i dont know much, i think ive only specifically seen static content servers
<thomashoneyman> that's what i'm looking for
<thomashoneyman> i'll also need to set up a deployment w/ nginx or something like that
<thomashoneyman> but for the moment i'm just looking for a simple static content server from nixpkgs
leotaku has quit [Ping timeout: 268 seconds]
<fuzen> How do I get the the changes to lutris on the master branch on my machine?
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<pie_> thomashoneyman: i cant think of anyhting off the top of my head but you might have some luck googling while waiting for an answer
leotaku has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
<pie_> I'm kind of confused suddenly...sometimes modules use imports, options, config, but sometimes you can just put all your attrs at the top level?
<pie_> im pretty sure im mixing something up here
<tbenst[m]> thomashoneyman: not nixpkgs, but if for a node project, http-server is super easy
<pie_> thomashoneyman: i have this sitting in one of my directories, idk, https://bpaste.net/show/K3WXA
<tbenst[m]> thomashoneyman: maybe SimpleHTTPServer
drakonis has quit [Ping timeout: 245 seconds]
drakonis has joined #nixos
<thomashoneyman> it is a node project, but there i'm just using parcel serve rather than a dedicated server
<thomashoneyman> tbenst: oh, hey, i was just looking at your purescript+nix project via discourse
<thomashoneyman> it's quite nice!
<{^_^}> [nixpkgs] @Mic92 closed pull request #70021 → home-assistant: 0.96.0 -> 0.99.2 → https://git.io/JeZAd
<tbenst[m]> thomashoneyman: thanks! been going through your Real World Halogen, many thumbs up
<thomashoneyman> tbenst: ugh i may fall back to installing http-server in the purescript bit of the monorepo
<thomashoneyman> that at least works with no effort
<thomashoneyman> i just don't want faraway bits of the application to rely on what's in the dev dependencies of the purescript project
<tbenst[m]> thomashoneyman: not entirely sure what your usecase is, but if you want nginx in a package, checkout https://unix.stackexchange.com/questions/523454/nixos-use-services-on-non-nixos-os-eventually-with-only-user-rights
<tbenst[m]> then can use the nginx service options: https://nixos.wiki/wiki/Nginx
<thomashoneyman> tbenst: i think i'm just being stubborn
<thomashoneyman> http-server is what i want
<fuzen> I have an issue when I try to launch some applications, I origionally thought was just steam, but appears to occur for lutris as well...
<{^_^}> [nixpkgs] @Mic92 closed pull request #74360 → home-assistant-frontend: 20190919.0 -> 20191002.2 → https://git.io/JeXVK
<lovesegfault> If I want to append something to my CFLAGS in mkDerivation, how do I do it?
<thomashoneyman> but i don't want to carry it through the frontend build just so that you can spin up a backend server + serve the frontend
<lovesegfault> do I just `CXXFLAGS='foo'`?
<lovesegfault> (I want to append, not replace
<thomashoneyman> i *might* be best off adding http-server to my local nixpkgs / overlays
<fuzen> ** (process:9574): ERROR **: 05:54:52.326: main: execvp(*argv, argv): No such file or directory
<fuzen> anyone know what this would be from?
<thomashoneyman> tbenst: the idea is that you can run "nix-build --attr run-local" and have the backend and frontend both running
<thomashoneyman> which is essentially "${backend}/bin/backend --port X" and "${http-server}/bin/http-server ${frontend}/dist --port X"
vld has joined #nixos
<tbenst[m]> thomashoneyman: `nix-shell --run` might be worth considering if just for demo purposes
Rusty1 has quit [Quit: Konversation terminated!]
vld has quit [Ping timeout: 258 seconds]
<thomashoneyman> tbenst: ha! i wanted nodePackages.http-server all along
<tbenst[m]> cool glad to hear it!
<thomashoneyman> i hadn't heard of --run before, looking into it right now
zarel has quit [Ping timeout: 250 seconds]
<thomashoneyman> the way things are set up these are all different fields in a release.nix at the top level
<thomashoneyman> build the frontend, the backend, run them locally together, or deploy them together to an EC2
kleisli has quit [Ping timeout: 260 seconds]
<tbenst[m]> nice! I'm contemplating replacing a docker-compose with node/redis/nginx with nix, so would be curious in your solution when finished/if you can share
felixfoertsch has quit [Quit: ZNC 1.7.3 - https://znc.in]
felixfoertsch has joined #nixos
kleisli has joined #nixos
<{^_^}> [nixpkgs] @tadeokondrak opened pull request #76124 → wofi: 2019-10-28 -> 1.0 → https://git.io/Jed0f
<elvishjerricco> How can I force an emergency or rescue shell if my root user doesn't have a password? `sudo systemctl rescue --no-block` just gives me an error from sulogin that the root account is locked and restarts the default systemd unit.
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/2a60519881c (from 63 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<tbenst[m]> elvishjerricco: `sudo -s` ?
<thomashoneyman> tbenst: this is the entirety of the run-local part
<elvishjerricco> tbenst[m]: Well I want the service manager to kill everything and put me in a context where I can start messing with e.g. mountpoints without worrying about all the system services.
<thomashoneyman> but it will take a bit before i'd be able to share a minimal setup of the whole thing
<tbenst[m]> elvishjerricco: from a google seems like you need a recovery drive, but you're outside what I know. https://github.com/systemd/systemd/issues/11596
zarel has joined #nixos
<{^_^}> systemd/systemd#11596 (by imthenachoman, 46 weeks ago, open): use non root account for rescue.service and emergency.service
reallymemorable has joined #nixos
juxiemaotu has joined #nixos
<juxiemaotu> anyone know about how to use google bbr congestion control algorithm on nixos?
eri has quit [Ping timeout: 268 seconds]
leotaku has quit [Ping timeout: 260 seconds]
palo1 has joined #nixos
jirido has quit [Read error: Connection reset by peer]
<juxiemaotu> Is there anyone can give me some advice?
<{^_^}> [nixpkgs] @jonringer pushed 13 commits to python-unstable: https://git.io/Jed0C
palo has quit [Ping timeout: 268 seconds]
palo1 is now known as palo
janneke has quit [Ping timeout: 246 seconds]
zarel has quit [Ping timeout: 260 seconds]
zarel has joined #nixos
leotaku has joined #nixos
<zimbatm> azazel: it's called rambox
mexisme has quit [Ping timeout: 260 seconds]
mexisme has joined #nixos
<pie_> I thought I could make this work https://bpaste.net/show/VXCEQ but I get "«error: The option `virtualisation.cores' defined in `.../configuration.nix' does not exist.»" when i run nixos-option in the VM
<pie_> it seems to build fine though under slightly different circumstances, (not usr of the exact details) so its not breaking completely
<pie_> the question is whether I can use mkIf like this at all or does it just coincidentally happen to work/break
<pie_> basically imports = [ (mkIf cond somexpr) ]
<pie_> i get infrec if i do imports = [ (mkIf (import somthing)) ] but with the mkIf inside the import it seems to work
<clever> pie_: mkIf translates turns `config = mkIf false { foo.bar = 1; }` into `config.foo = mkIf false { bar = 1; }`
<clever> pie_: and config.foo is invalid, so fail
<pie_> oh hm its also possible the lib.mkIf was causing the infrec
<pie_> clever: o/
<fuzen> Swapping back from unstable to stable to see if that fixes my issues
<pie_> clever: i mean i understand that the problem is virtualisation.cores is not defined unless your in the build vm mode
<pie_> clever: oh wait
<pie_> clever: oh ok hm
<pie_> clever: uh now what :V
ragge[m] has joined #nixos
<clever> i dont think you can set those options with mkIf
<clever> you need normal if
<pie_> that causes infrec though
<clever> and normal if cant refer to config if it sets config
<pie_> right
mexisme has quit [Ping timeout: 248 seconds]
<fuzen> Just want my applications to open ...
<clever> how are you detecting that its a vm?
<pie_> clever: its in the let expression
mexisme has joined #nixos
<pie_> isVM = builtins.hasAttr "vm" config.system.build; #TODO find a more reliable way to do this
<fuzen> Fancy
<clever> pie_: use options.virtualisation.cores instead
<clever> pie_: then you dont depend on the config tree, and dont get inf rec
<pie_> clever: ... :O
<pie_> thanks i hate it its great
<pie_> and here i was about to say:
<pie_> actually build.vm seems like a pretty good thing to check because its precisely how the build result is passed to the user
<pie_> clever: cant we just make mkIf lazy instead of strict? :(
<clever> the lazyness works by transforming `mkIf condition {foo.bar = 42;}` into `foo = mkIf condition { bar = 42;}`
<pie_> not sure if lazy/strict is the right thing
<clever> so it can figure out what a sibling of foo is, and worry about foo later
<pie_> hm
<pie_> so youre saying either i get the laziness/partial evaluation or i get infrex
<pie_> infrec
softinio has joined #nixos
<{^_^}> [nixpkgs] @cdepillabout opened pull request #76125 → pscid: init at 2.8.5 → https://git.io/Jed05
softinio has quit [Quit: WeeChat 2.6]
<fuzen> clever: have you ever gotten `main: execvp(*argv, argv): No such file or directory ` before?
<clever> fuzen: depends on what the args to execvp are, strace would show them
<clever> fuzen: are the apps properly patchelf'd?
<fuzen> I think so
<clever> fuzen: what does file say about the binary?
<fuzen> How would I check?
<clever> fuzen: run the file command on the binary
<fuzen> `/nix/store/bfx5az1y8lyxwiwls0fcs3l3fihb3b1a-steam/bin/steam: a /nix/store/rm1hz1lybxangc8sdl7xvzs5dcvigvf7-bash-4.4-p23/bin/bash script, ASCII text executable`
<clever> fuzen: what are you running to get the error?
<fuzen> steam / lutris that was just updated in master
<fuzen> same problem on stable & unstable, so im not sure whats going on
<clever> fuzen: nix-store --verify --check-contents ?
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
<{^_^}> [hydra] @kquick opened pull request #698 → Allow error message from remote builder with error type indicator. → https://git.io/Jed0A
<fuzen> clever: running now, will probs take a while
<fuzen> clever: it didnt return anything
reallymemorable has quit [Quit: reallymemorable]
<clever> fuzen: then its not missing binaries
<clever> fuzen: can you pastebin `strace -f steam` ?
<elvishjerricco> Trying to pxe boot a machine into nixos. No idea how this works :P "No boot filename received" on the machine.
<elvishjerricco> also, fuzen, bear in mind that steam isn't pinned by nixpkgs, so it's free to update itself which can always break stuff. Nixpkgs just pins the pre-launcher, which downloads the actual steam client to your home dir
<clever> elvishjerricco: the dhcp server should report a boot filename
is_null has joined #nixos
<fuzen> elvishjerricco: i have a similar problem with lutris, thanks for letting me know though
<{^_^}> [nixpkgs] @Mic92 opened pull request #76126 → mercurial: 4.9.1 -> 5.2.1 + python3 :rocket: → https://git.io/JedEJ
<elvishjerricco> clever: I tried just running this in a terminal on my other machine. `sudo dnsmasq --enable-tftp --tftp-root=./ipxe-link --dhcp-boot=./ipxe-link/netboot.ipxe`, where `ipxe-link` is the `netboot` derivation in `nixpkgs/nixos/release.nix`
<elvishjerricco> No earthly idea if that's even close to right :P
<clever> elvishjerricco: start by opening up wireshark, and filter to dhcp and tftp packets, what is happening when it boots?
Mateon1 has quit [Ping timeout: 246 seconds]
Mateon3 has joined #nixos
<{^_^}> [nixpkgs] @Mic92 opened pull request #76127 → cloud-print-connector: fix build against cups → https://git.io/JedEk
<fuzen> clever: not sure if it helps, but i ran it for lutris as well https://pastebin.com/ukjT4XL0
<clever> [pid 20090] execve("/nix/store/1vsf7dahgpwacy1ab3h0hx1w2ng9dqwx-lutris-init", ["/nix/store/1vsf7dahgpwacy1ab3h0h"..., "/home/aizuzu"], 0x7fff3186a578 /* 71 vars */) = -1 ENOENT (No such file or directory)
<clever> fuzen: does that file exist?
Mateon3 is now known as Mateon1
<fuzen> clever: yes
<clever> fuzen: it might be a but with the chroot env stuff, not mounting /nix into the chroot
<{^_^}> [nixpkgs] @Mic92 opened pull request #76128 → hplip: 3.19.6 -> 3.19.12 → https://git.io/JedEm
<fuzen> clever: is there any work around or fix for it?
<clever> fuzen: you could try an older nixpkgs version
<fuzen> older than stable or..
<clever> or maybe its already fixed in unstable?
<fuzen> is broken on both for me
<fuzen> was working for a while, now its not
<clever> what changed?
<clever> have you tried older generations? you can test them without a rollback
<fuzen> how do i test without rolling back? I've only rebooted into each one
<clever> fuzen: /nix/var/nix/profiles/system-123/sw/bin/steam
<clever> that lets you just run the steam from any generation
<lovesegfault> clever: What's the part in your config that configures host keys to avoid TOFU
NixOsFun has joined #nixos
<lovesegfault> bingo!
<lovesegfault> thanks
<fuzen> clever: i tried the generations I have and none of them worked
opthomasprime has joined #nixos
<clever> not sure what else to check then
<fuzen> I had autoUpgrade enabled, so maybe that updated something that I didnt know of in the background?
kleisli has quit [Ping timeout: 265 seconds]
<clever> fuzen: it would have still made a generation for each upgrade
<fuzen> Other than that, i've put a custom kernel on my system at one point, and I reverted that to see if this would fix and saw nothing.
<fuzen> I think that is the only significant change i've made in configuration other than switching to GDM / wayland from i3/xfce + gdm
<fuzen> i changed back to see if that would fix it, which didn't
<fuzen> clever: is there a way to get nix to just reinstall everything as if it was a new installation?
<elvishjerricco> clever: So I have no idea how dhcp works, but I'm guessing you don't want to have two dhcp servers on the same LAN? I.E. in a typical home network, the pxe server needs to be your router?
<clever> elvishjerricco: yeah, its usually best to only have one dhcp server
<clever> fuzen: that wouldnt help, the --verify already confirmed that all files nix can reinstall are already perfect
<elvishjerricco> clever: Then that's what I'm doing wrong :P Any way to use not-the-router as the pxe server? I'm guessing the client needs to be manually configured for that or something?
<clever> elvishjerricco: or plug the client into a seperate network
<clever> elvishjerricco: which is why netboot_server.nix uses 2 cards, the ethernet port is isolated from the router and in full control
<clever> elvishjerricco: yep
<fuzen> clever: going to go back to arch then, thanks for all the help
<clever> elvishjerricco: you point wan towards the real router and internet, and lan towards a private ethernet card, that only has the client(s)
<clever> fuzen: only other thng that could play a factor is your home folder
<clever> fuzen: try creating a new user?
<fuzen> i can
<pie_> clever: ifthen + options.virt still causes infrec
<pie_> clever: hold on, might be pebkac
<pie_> i think i broke something meanwhile]
<pie_> no yeah if then is causing infrec >_>
<pie_> that doesnt seem completely unreasonable given that options is also defined in the fixpoint or whatever
<clever> pie_: can you pastebin your example?
<juxiemaotu> i have problem in using python pip,anyone can help?
<juxiemaotu> when i run :pip3 install --user genpac
<pie_> it feels like a not fully distributive mkIf should be able to exist though...mkIf makes the values lazier so why shouldnt it be possible to make the attrs lazier
<pie_> clever: yeah hold on
nehh^ has quit []
<clever> pie_: `if condition then {} else {}` may cause problems
<fuzen> Clever: same problem on test user
<pie_> clever: thats what i did
<clever> pie_: `{ config = if condition then {} else {}; }` would fix it
<juxiemaotu> it prompt:ModuleNotFoundError: No module named 'setuptools'
<clever> pie_: the problem, is that it must know if your set contains a .options, before it can compute the options
<elvishjerricco> clever: That file configures it to auto-install NixOS on the client, right?
<juxiemaotu> how can i fix it?
<clever> elvishjerricco: only if you run justdoit, you can also just ignore that script and run anything else
vld has joined #nixos
<clever> pie_: try wrapping it as { config = if ... ; }
<pie_> clever: probably
<pie_> clever: on that note,
<pie_> <pie_> im pretty sure im mixing something up here
<pie_> <pie_> I'm kind of confused suddenly...sometimes modules use imports, options, config, but sometimes you can just put all your attrs at the top level?
<clever> pie_: and extra itself may cause the same problem, try making isVM a let block
<clever> pie_: all modules contain options, imports, and config
<clever> pie_: if options and config are both missing, nixos will wrap it in a { config = ...; } for you, to fix things
<pie_> extra is just a function argument...refereential transparency should make that a nonproblem
<clever> pie_: and imports gets moved up a level when it wraps
<pie_> oh this may not be clear, im calling this via an import name {args}
<clever> pie_: but to read extra, you must read config._module.args.extra
<clever> pie_: which requires knowing every key of config.
<clever> pie_: which requires the if statement to be eval'd
<clever> that problem, is why we used options instead
<pie_> imports = [ (import ./vm.nix (args // { extra = { inherit hostprivate isVM; }; })) ]
<fuzen> clever: thanks for all the help, I’ll try NixOS again when it’s more mature for desktop usage and just stick with nix for now
<pie_> ok this is what i assumed, thanks <clever> pie_: if options and config are both missing, nixos will wrap it in a { config = ...; } for you, to fix things
<clever> pie_: and that will ruin all error messages
<pie_> yep :D
<pie_> i think i read somewhere that module._args is a global thing
<pie_> that doesnt sound appealing
<clever> pie_: thats why modules have { ... }:, to ignore any extra things you add
<pie_> i could make a different subattr for every module file but thats crap :(
vld has quit [Ping timeout: 265 seconds]
<pie_> clever: moving it inside config = worked ._.
<pie_> (i think)
dansho has quit [Ping timeout: 258 seconds]
xkapastel has joined #nixos
<elvishjerricco> clever: no boot filename received again :/
<{^_^}> [nixpkgs] @jonringer pushed 8 commits to python-unstable: https://git.io/JedEK
dansho has joined #nixos
<clever> elvishjerricco: what does wireshark show in the dhcp packets?
vonfry has joined #nixos
<elvishjerricco> clever: Never used wireshark before... Guessing I just start it up, click the lan interface, and reboot the client?
ixxie has joined #nixos
<clever> yeah
<elvishjerricco> clever: Not really sure what I'm looking for, but there are three packets whose source is the server (192.168.3.1), the first of which had a different destination than the other two. No packets with a different source.
<clever> elvishjerricco: screenshot?
<elvishjerricco> clever: Two more showed up I've left the client at the grub menu: http://i.imgur.com/U1xJOjB.png
<clever> elvishjerricco: grub shouldnt be coming up if its network booting
<elvishjerricco> clever: I think all those packets might be from the samba and netatalk servers I have on this server as well
<clever> elvishjerricco: and i dont see any trace of dhcp in that wireshark
<clever> elvishjerricco: yeah, thats just general idle traffic
wagnerf has joined #nixos
<myme> I'm on 19.09, but having some kernel driver issues. 19.03 was working better. Is there a way I can set boot.kernelPackages to e.g. linuxPackages_5_1 from 19.03? 19.09 only has 4.x and 5.4+ alternatives.
<elvishjerricco> clever: So this thing just isn't even trying to boot on this nic, I guess?
<clever> myme: boot.kernelPackages = pkgs.nixos-unstable.linuxPackages_5_3; for example, plus
dingenskirchen has joined #nixos
<clever> ,unstable myme
<clever> elvishjerricco: yeah, youll have to check the bios options to try and convince it to netboot
<elvishjerricco> Ugh. Thing takes 3 minutes just to get past the DELL splash screen
<myme> clever: I did try the naive approach of tracking 19.03 as koi and pulling in linuxPackages alternatives from there in nixos config. But that led to some assertion error in prl-tools.
<pie_> clever: im an idiot, i just realized theres a slight mismatch that i knew about and should have fixed but didnt, between the config that gets copied to my vm and the config i build the vm with
<pie_> depending on stuff gets git committed
<pie_> so some of the stuff from ealier may be invalid, the stuff that prevents the entire build is still valid though
noudle has joined #nixos
<clever> myme: what config did you try last, and how did it fail exactly?
<myme> Unstable 5_3 seems to build at least.
<clever> myme: and what does `nix-channel --list` return?
thomashoneyman has quit [Ping timeout: 260 seconds]
<elvishjerricco> Looks like this machine only tries to use one of its four nics for pxe. Whoops
<pie_> clever: hooray https://bpaste.net/show/25RIS
<pie_> (in vm)
jgeerds has joined #nixos
<elvishjerricco> Sweet, it's working now
vonfry has quit [Ping timeout: 260 seconds]
vonfry has joined #nixos
<wagnerf> hi, I have some troubles doing my first package
<wagnerf> i cloned the nixpkgs repo
<wagnerf> added my file
<wagnerf> i'm packaging a python2 game which depends on pygame
<wagnerf> i'm almost done
<pie_> wagnerf: congratulations on your first package \o/ :D
<wagnerf> thanks
<wagnerf> it's building but I do have a small pb
<myme> Imma try booting into 5.3. Might be more stable than 5.4 at least. I can't run 4.x due to lacking HW support on my laptop.
<wagnerf> the game music is in .xm format
<wagnerf> pygame depends on SDL_mixer for music
<clever> myme: might be an issue with 19.03 then, a reboot sounds good
vonfry has left #nixos [#nixos]
<wagnerf> SDL_mixer needs to link against libmikmod in order to play .xm files
<wagnerf> so
<wagnerf> there is currently no dependency in SDL_mixer agains libmikmod
<wagnerf> I added it myself
<wagnerf> but adding libmikmod to the buildInputs of SDL_mixer
<wagnerf> now when I installed my game
<wagnerf> it recompiled pygame
<wagnerf> and recompiled SDL_mixer
<myme> clever: Thanks for letting me know I wasn't trying something stupid at least.
<wagnerf> but
<wagnerf> when launching it
<wagnerf> i get a libmikmod.so.3: cannot open shared object file: No such file or directory
<wagnerf> since it's my first package I'm not sure what I'm doing wrong
<wagnerf> why is the dependency not propagated from SDL_mixer to pygame to final game ?
<wagnerf> it's linking against the right library just not finding it at execution
cyraxjoe has quit [Ping timeout: 265 seconds]
cyraxjoe has joined #nixos
<wagnerf> isn't buildInputs ensuring I get my .so files at runtime ?
<pie_> wagnerf: 1) past you stuff, 2) did you add the transitive dependency to buildinputs or what
<pie_> *paste your
<pie_> wagnerf: you can try propagatedbuildinputs which should probably work but i cant remember if thats the _correct_ soluiton
<ptrcmd_> is it possible to tell nix not to clean up nixpkg repos for nix-shell?
<pie_> (with camelcase as usual)
<pie_> ptrcmd_: you mean like if youre using fetchtarball or fetchgit or something?
<ptrcmd_> pie_: yes
<wagnerf> here is the main file : https://pastebin.com/jB4jM7qp
<ptrcmd_> pie_: I'm using fetchTarball
<ptrcmd_> pie_: and nix-collect-garbage deletes the downloaded files
<pie_> ptrcmd_: ok, just trying to make clear what the problem is, i dont know the solution, have tried google?
<pie_> oh
<pie_> you mean garbage collection
<wagnerf> the other change I did is in development/libraries/SDL_mixer/default.nix
<ptrcmd_> pie_: yes
<wagnerf> I just added "libmikmod" in the buildInputs
<ptrcmd_> pie_: I don't want the downloaded files to be garbage collected
<pie_> ptrcmd_: you have to add a gc root, i think some people modified their nix-shell command to do that but i dont know the details
<ptrcmd_> pie_: I did that
<pie_> ptrcmd_: oh, ok yeah the fetchtarball stuff is cached separately i think
<ptrcmd_> pie_: adding a gc root prevents the build results from being garbage collected, but not the fetchtarball stuff
<pie_> ptrcmd_: yeah i was just getting mixed up about what you actually wanted
<ptrcmd_> I hope it's clear now :)
is_null has quit [Ping timeout: 260 seconds]
<pie_> i dont see anything with a quick google so a dive in the source code might be reasonabel
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
<pie_> well, i dunno :I
<wagnerf> propagatedBuildInputs does not seem to do the trick
<pie_> wagnerf: hm ok
<pie_> do you know how to do overrides, because then you could make an isolated repro instead of patching development/libraries/SDL_mixer/default.nix
gentauro_ has quit [Read error: Connection reset by peer]
<wagnerf> I guess pygame is loading it at runtime using a dlopen because it launches but crashes when the music should start
<wagnerf> pie_: no I don't, it's my first package, everything is new
gentauro has joined #nixos
<pie_> its been a few weeks since i did any packaging and i forgot how to deal with dlopen
<pie_> most things are handled via RPATH
sphalerite has quit [Quit: WeeChat 2.6]
<pie_> which applies to dlopen as well
<pie_> ah but this is python
dingenskirchen has quit [Quit: dingenskirchen]
<dansho> so if i try to use match or splitString on a 1900 line file string i get a stack overflow =(
dingenskirchen has joined #nixos
<pie_> .override can also take the argument as a function, so you can do .override (old: { buildInputs = old.buildInputs })
<pie_> .override can also take the argument as a function, so you can do .override (old: { buildInputs = old.buildInputs })
<pie_> argh
<pie_> .override can also take the argument as a function, so you can do .override (old: { buildInputs = old.buildInputs ++ [ someotherstuff ] })
<pie_> oh sorry wrong thing, you want .overrideAttrs here
<pie_> so something you could do for a repro is import nixpkgs in a let expression, do the override of the dependency, pass the overridden dependency to the package in the callpackage arguments
<pie_> but something thats probably better is to add an overlay to nixpkgs when you do the import, which makes it apply to everything
<wagnerf> ok, I kind of get it.
oleks has quit [Remote host closed the connection]
<pie_> oh and this is the python infrastructure so that might be a little complicated...
<pie_> entirely doable just adds like another level of wrapping
<wagnerf> anyway this is just to avoid changing SDL_mixer so it's not going to solve my linking pb
<pie_> wagnerf: just checking, you tried adding libmikmod to the propagatedBuildInputs of the sdl library?
<wagnerf> there is no propagatedBuildInputs in SDL_mixer
<wagnerf> but yes I tried anyway
sphalerite has joined #nixos
<pie_> propagatedBuildInputs is a parameter of mkDerivation
<wagnerf> the difference between propagated and not propagated is not clear for me though
<wagnerf> anything dynamically linked should always be propagated for me
<sphalerite> wagnerf: if b has a as a propagated buildinput, then c will have a pulled into its buildInputs if it has b in its buildInputs
<pie_> yeah i dont remember the details, i mean the bottom line is probably that you need your library to be added to LD_PRELOAD or whatever
<wagnerf> sphalerite: makes no sense for me
<pie_> man i cant remember how this python stuff workd
<wagnerf> sphalerite: everything should be propagated then
<wagnerf> at least for .so
<pie_> sphalerite: the problem is python is failing to acquire a transitive .so with dlopen
<sphalerite> wagnerf: no
<sphalerite> oh, python is a bit of a different story
<sphalerite> wagnerf: but for example, an application can depend on gtk, and gtk depends on libx11, but the application's build doesn't need to _know_ about libx11.
<wagnerf> it needs to link with libx11
<wagnerf> what's the meaning of _know_
<sphalerite> wagnerf: it's still included in the sandbox because libx11 depends on it, but the include path and library search path for building the application won't include libx11
<wagnerf> ?
<sphalerite> know = search paths include it
<wagnerf> ha ok
<wagnerf> does it include LD_LIBRARY_PATH ?
<sphalerite> in the end, the application will still depend on libx11 because it references it transitively (via gtk). But that doesn't need to be made explicit in the build if the application doesn't use any libx11 functionality directly.
* sphalerite looks at logs to find out what the actual problem is
is_null has joined #nixos
<pie_> ptrcmd_: oh, see the description of fetchtarball https://nixos.org/nix/manual/
<lirzhv> hi. i want to change my distro from fedora. i am in between nixos and arch at the moment. i think i would like nixos better, but i`m worried if this distro is cutting edge (like arch) or if it aims to be stable (like debian). anyone can enlighten me on the philosophy here?
<pie_> so search for tarball ttl in the soure
<pie_> lirzhv: its both :D
<sphalerite> wagnerf: hm, this should normally work but I think it's failing because SDL_mixer tries to dlopen mikmod, which is odd since libogg and libvorbis for example are linked with it directly.
<pie_> lirzhv: i think at the end of the day you just need to try it, it can be high effort in some ways
<ptrcmd_> pie_: ah thx
<pie_> lirzhv: though i hear arch can also be high effort
<pie_> lirzhv: its cutting edge with less shoot footing
<wagnerf> that's part of what's puzzling me, I don't get why libmikmod should be handled differently from libogg
<pie_> (usually)
<lirzhv> pie_: thanks, and what about non-free software ?
<pie_> lirzhv: well...we have it?
<sphalerite> wagnerf: I'll take a peek into SDL_mixer's source
<lirzhv> ah good good
* pie_ rubs hands together i think we got another one boys
<lirzhv> i already have an instance with nixos running where i did some tests. i will move over there and give it a more serious try 👍
<sphalerite> wagnerf: aah, it's because of the --disable-music-ogg-shared configure option
<wagnerf> ha yes
<wagnerf> sphalerite: thanks a lot
<sphalerite> wagnerf: if you add --disable-music-mod-shared as well it should hopefully work
<pie_> ptrcmd_: hm i dont actually see anything about cleaning up the files after the ttl is up though :/ maybe it just always gets cleared?
<wagnerf> sphalerite: you are saving me, i would not have seen it
<pie_> sphalerite: why does that fix the problem
is_null has quit [Ping timeout: 260 seconds]
<pie_> ptrcmd_: are they getting deleted or is it just trying to download new ones
<wagnerf> pie_: it will avoid the dlopen
<wagnerf> ok, time to go.
<{^_^}> [nixpkgs] @peti pushed to master « python-osc: update from 0.164.4 to 0.167.1 »: https://git.io/Jedzc
<wagnerf> thank you all very much
<pie_> yeah sure but dont we make the dlopen work
<pie_> also how does it avoid using dlopen
wagnerf has quit [Quit: WeeChat 2.6]
<sphalerite> pie_: SDL_mixer, by default, will use dlopen to load mikmod on demand. This allows it to work regardless of whether mikmod is installed (on classical distributions).
is_null has joined #nixos
<pie_> how does it find it without dlopen though
<sphalerite> pie_: given the --disable-music-mod-shared configure option, it will link against the library at build time, i.e. the dynamic table of the SDL_mixer shared library will have a NEEDED entry for mikmod and mikmod will be loaded immediately together with SDL_mixer.
<sphalerite> wait for it…
<sphalerite> ;)_
<pie_> oh i was still thinking in python
<pie_> i thought this was a python library
<sphalerite> oh
<sphalerite> no
<pie_> for normal stuff its just RPATH right?
<sphalerite> well, RUNPATH, but yes
<pie_> i forgot what i was working on
<pie_> oh or maybe i just finished
tsrt^ has joined #nixos
<ptrcmd_> pie_: they are deleted, because if I don't run nix-collect-garbage, the tarballs won't be donwloaded again
lovesegfault has quit [Quit: WeeChat 2.7]
<ptrcmd_> pie_: umm, will try out the ttl options later and see if they make any difference
is_null has quit [Ping timeout: 268 seconds]
<dansho> is it normal that writeScriptBin doesn't patch shebangs?
turbo_MaCk has joined #nixos
dirkx_ has joined #nixos
<wedens[m]> why would it? it assumes that script is written with nixos in mind, I'd say
<pie_> dansho: its just a simple "write a script file" function
vld has joined #nixos
<jwaksbaum[m]> Is there a way to stop nixos from waiting for the network to come when booting?
<pie_> nowhere near as massive as mkderivation
<pie_> jwaksbaum[m]: it doesnt normally do that
<jwaksbaum[m]> pie_: okay maybe I'm misunderstanding. When I boot it waits 1:30 on a systems job for a network interface and I'm not sure why
<pie_> ok im not sure either, but did you enable some kind of service that might cause that?
<jwaksbaum[m]> I don't think so. I've enabled network manager but that's all
<pie_> i dont know then :(
<jwaksbaum[m]> It says started network manager wait online
<DigitalKiwi> nfs comes to mind
<jwaksbaum[m]> DigitalKiwi: like trying to mount something over the network?
<DigitalKiwi> yes
<jwaksbaum[m]> I don't think I'm doing that
tilpner_ is now known as tilpner
dirkx_ has quit [Quit: dirkx_]
* DigitalKiwi in the same boat as pie_ then
<{^_^}> [nixpkgs] @Ma27 merged pull request #74613 → gotify-server: 2.0.11 -> 2.0.12 → https://git.io/Je1Gu
vld has quit [Ping timeout: 265 seconds]
<ptrcmd_> pie_: it seems that tarball-ttl doesn't actually do anything on my setup
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JedzP
<pie_> ptrcmd_: from what i saw in the source code it just seemed to determine whether a new version is downloaded and nothing else
<pie_> but idk..
<ptrcmd_> pie_: like, right after a tarball is downloaded, I ran nix-collect-garbage and it's deleted
<ptrcmd_> the tarball
<ptrcmd_> hm, the option doesn't say that the tarball won't be gc'ed
chloekek has joined #nixos
<pie_> just thought of something i havent tried, try grepping the source for references to XDG_ somethingorother
<pie_> for references to the cache directory
<pie_> mmm still not ending up at any garbage collection code -_-
<ptrcmd_> OwO
<{^_^}> [nixpkgs] @gnidorah opened pull request #76129 → vk-messenger: use wrapGAppsHook → https://git.io/JedzD
<{^_^}> [nixpkgs] @jonringer pushed 4 commits to python-unstable: https://git.io/Jedzy
orivej has joined #nixos
benedikt93 has joined #nixos
<dansho> if i am installing a shell script in $out/bin, where do i put the dependencies? there is this but i think it only applies to c programs? https://nixos.org/nixos/nix-pills/automatic-runtime-dependencies.html
<ptrcmd_> pie_: it seems that every time the tarballs are downloaded some stale links are added to gcroots
<ptrcmd_> pie_: not sure if this is the problem
day|flip has quit [Remote host closed the connection]
vonfry has joined #nixos
<pie_> that sounds reasonable
<pie_> you mean its adding roots for the tarballs so it knows they exist?
vonfry is now known as Guest24544
<pie_> thats actually pretty clever i guess
<pie_> in the sense that they dont need to have a separate cache timeout mechanism and whatever
<pie_> why make anoter one when the nix store already does allt he fancy stuff
<ptrcmd_> pie_: I don't know if it's doing that because the links are stale
<ptrcmd_> pie_: I *guess* it's doing that
<pie_> wheres that code again?
<pie_> define stale
<ptrcmd_> so when I run `ls -alr` in /nix/var/nix/gcroots/auto, I can see multiple symbolic links pointing to non-existent directories
<ptrcmd_> and when I run nix-collect-garbage, they are deleted
<pie_> oh, you said nonexistent directories though
<pie_> not the tarballs
<pie_> that sounds totally unrelated?
m0rphism has joined #nixos
<ptrcmd_> possibly idk
mexisme has quit [Ping timeout: 245 seconds]
werner291 has joined #nixos
<pie_> hm but this uses addTemp
<pie_> *addTempRoot
<pie_> which just seems to e a runtime thing
brnzz has quit [Quit: Ping timeout (120 seconds)]
brnzz has joined #nixos
Guest24544 has quit [Remote host closed the connection]
<pie_> ptrcmd_: sidenote, i guess since fetchtarball actually unpacks tarballsit would be helpful to keep the store paths around, not the original tarballs
<pie_> but i still dont know who is deleting the tarballs
leex has joined #nixos
fayesafe has quit [Ping timeout: 240 seconds]
<ptrcmd_> yeah, that would be helpful
__monty__ has joined #nixos
<benedikt93> Hi all! I'm trying to append a few lines to the default value of a module option (of type types.lines). Doing `services.foo.bar = lib.mkOptionDefault (lib.mkAfter 'moar lines')` works, but the use of mkOptionDefault seems kinda hacky to me (I'm new to nix(os), though). Is there a more 'canonical' way to achieve the same?
<symphorien> dansho: the easy way is to use makeWrapper https://nixos.org/nixpkgs/manual/#ssec-stdenv-functions
<srhb> benedikt93: The alternative is setting the normal priority and using the option default value manually (with mkBefore instead)
jgeerds has quit [Ping timeout: 240 seconds]
<srhb> benedikt93: If that feels equally hacky, then, well... It's a hard problem.
<symphorien> you can use options.the.path.to.the.options.default
iqubic has joined #nixos
<srhb> benedikt93: In practice it only really becomes a problem once you have many sources of the config value.
<srhb> Eg. "I want this value to go in between these other two" -- I generally tend to avoid that by indirection if I can.
benedikt93 has quit [Quit: benedikt93]
iqubic has left #nixos [#nixos]
juxiemaotu has quit [Quit: WeeChat 2.4]
werner291 has quit [Quit: werner291]
<pie_> clever: i tried to do this now it infrecs again https://bpaste.net/show/6XFWA
<dansho> symphorien: does that go in the install phase somehow?
h0m1 has quit [Quit: WeeChat 2.7]
<pie_> clever: usage looks like https://bpaste.net/show/ERMOM
<ptrcmd_> pie_: https://github.com/NixOS/nix/issues/719 hmm.. looks like this issue
<{^_^}> nix#719 (by wizeman, 4 years ago, open): Nix garbage collects too much
<pie_> ptrcmd_: but how does nix know the tarballs even exist
<pie_> thats what im scratching my head aout
<pie_> and by nix i mean GC
<ptrcmd_> wait, perhaps nix doesn't know the tarballs exist, and it's just that the unpacked tarbal in nix store is deleted
werner291 has joined #nixos
<pie_> ptrcmd_: have you been pulling my leg the whole time :V
<pie_> :PPPP
<pie_> has it not been redownloading stuff
<ptrcmd_> ehh.. I thought nix deleted the tarball because it redownloads it after nix-collect-garbage
<pie_> im pretty sure the tarball cache gets cleared after like 2 hours or something though
<pie_> sometimes you have to redownload stuff without even gc-ing
<ptrcmd_> it doesn't show the "unpacking XXX" thing if I don't do nix-collect-garbage
<ptrcmd_> and it shows that if I do nix-collect-garbage
<ptrcmd_> so I presumed it must be that the tarball is deleted by gc
<pie_> check your tarball cache folder
<pie_> its .cache/nix/tarballs
o1lo01ol1o has joined #nixos
<ptrcmd_> pie_: .cache/nix/tarballs contains symbolic links to nix store
<ptrcmd_> and not the actual tarballs
<pie_> oh :V
<pie_> well
<pie_> now we know i guess
<pie_> thats what i get for not actually reading the coe
<pie_> code
<pie_> whats even the point of that folder then? xD
<ptrcmd_> tbqh idk xD
<pie_> maybe the .info files and user covenience but im just guessing
<sphalerite> pie_: yeah it's for storing which urls were downloaded when and what the results were
<dansho> i guess this works, seems kind of complicated https://paste.ee/p/XMY3E
alexherbo2 has joined #nixos
<pie_> you get used to it
<pie_> dansho: consider writeshellscriptbin
<pie_> well, that wont be much better
<pie_> more like, look this also exists
<pie_> oh
<pie_> dansho: dont use mkderivation use runcommand
<pie_> oh wat no youre using src nevermind
<pie_> *wait
SyrupThinker has quit [Quit: ZNC 1.7.4 - https://znc.in]
jgeerds has joined #nixos
SyrupThinker has joined #nixos
werner291 has quit [Quit: werner291]
h0m1 has joined #nixos
<dansho> i guess this works too, doesn't make the makeWrapper part any better though https://paste.ee/p/0crqn
fusion809 has quit [Remote host closed the connection]
h0m1 has quit [Quit: WeeChat 2.7]
h0m1 has joined #nixos
benedikt93 has joined #nixos
h0m1 has quit [Client Quit]
LLED2_3 has joined #nixos
h0m1 has joined #nixos
boogiewoogie has joined #nixos
WilliButz has quit [Remote host closed the connection]
bvdw has quit [Read error: Connection reset by peer]
<boogiewoogie> hey! is anyone using a custom keyboard layout in gnome3 or knows how to use one there?
bvdw has joined #nixos
WilliButz has joined #nixos
<{^_^}> [nixpkgs] @Ma27 pushed to master « kitty: 0.15.0 -> 0.15.1 »: https://git.io/JedgF
h0m1 has quit [Quit: WeeChat 2.7]
sigmundv_ has joined #nixos
boogiewoogie has quit [Remote host closed the connection]
sigmundv_ has quit [Ping timeout: 258 seconds]
<pie_> is there any reason reading container logs with journalctl -D would be bad?
<pie_> i figure its less of a pain than doing root-login into the containers constantly
boogiewoogie has joined #nixos
<pie_> i need to get some cool log manager thingy
boogiewoogie has quit [Remote host closed the connection]
<pie_> lnav looks neat but it doesnt look like it integrates too well with journald
nadley has joined #nixos
brnzz has quit [Quit: Ping timeout (120 seconds)]
brnzz has joined #nixos
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
siiky has quit [Ping timeout: 245 seconds]
<pie_> maybe its better than it seemed at first
<pie_> not sure yet
ZoomZoomZoom has joined #nixos
<pie_> noone really seems to explain how to use it with journalctl
<pie_> wait why didnt i realize i want this? https://github.com/peco/peco
<pie_> maybe thats fzf adjacent not sure yet
<benedikt93> srhb: Its only the default plus one addition in this case and the order doesn't matter, so no issues with many sources. The 'feeling hacky' impression is because it took me quite some time (+ a stackexchange answer) to figure out how to do this in the first place, so I might have missed a more common approach to this issue than fiddling with priorities.
<benedikt93> symphorien: thanks, I hadn't realized that the defaults can be accessed explicitly like this!
alexherbo2 has joined #nixos
<{^_^}> [nixpkgs] @ehmry merged pull request #76127 → cloud-print-connector: fix build against cups → https://git.io/JedEk
<{^_^}> [nixpkgs] @ehmry pushed commit from @Mic92 to master « cloud-print-connector: fix build against cups »: https://git.io/Jed22
<srhb> benedikt93: Right, using the default value gets you away from priorities (but you still need to order, of course)
benedikt93 has quit [Quit: benedikt93]
coco has quit [Quit: WeeChat 2.7]
benedikt93 has joined #nixos
vld has joined #nixos
h0m1 has joined #nixos
h0m1 has quit [Client Quit]
Chiliparrot has joined #nixos
dansho has quit [Quit: Leaving]
vld has quit [Ping timeout: 258 seconds]
leotaku_ has joined #nixos
h0m1 has joined #nixos
leotaku has quit [Ping timeout: 258 seconds]
alexherbo28 has joined #nixos
alexherbo2 has quit [Ping timeout: 268 seconds]
knupfer has quit [Ping timeout: 248 seconds]
chloekek has quit [Ping timeout: 258 seconds]
h0m1 has quit [Client Quit]
h0m1 has joined #nixos
ddellacosta has quit [Ping timeout: 268 seconds]
fenedor has joined #nixos
mexisme has joined #nixos
knupfer has joined #nixos
<{^_^}> [nixpkgs] @Lassulus merged pull request #75509 → precice: init at 1.6.1 → https://git.io/Je9Sw
<{^_^}> [nixpkgs] @Lassulus pushed commit from @Scriptkiddi to master « precice: init at 1.6.1 »: https://git.io/Jed2X
<{^_^}> [nixpkgs] @markuskowa merged pull request #68301 → cdesktopenv: init at 2019-11-30 → https://git.io/JeeLy
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/Jed21
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
mexisme has quit [Ping timeout: 246 seconds]
WilliButz has quit [Quit: WeeChat 2.7]
WilliButz has joined #nixos
<{^_^}> [nixpkgs] @WilliButz merged pull request #76097 → matrix-synapse: 1.7.1 -> 1.7.2 → https://git.io/Jedka
<{^_^}> [nixpkgs] @WilliButz pushed 2 commits to master: https://git.io/Jed2M
chloekek has joined #nixos
<pie_> ok its still pretty amazing that i just did a rebuild switch after my VM of a weeks worth of stuff got in a usable state, and everything just works on the host machine
h0m1 has quit [Quit: WeeChat 2.7]
h0m1 has joined #nixos
ivegotasthma has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
h0m1 has quit [Client Quit]
<{^_^}> [nixpkgs] @lheckemann opened pull request #76130 → make-fonts-cache: use native fontconfig → https://git.io/Jed2Q
<{^_^}> [nixpkgs] @lheckemann closed pull request #76130 → make-fonts-cache: use native fontconfig → https://git.io/Jed2Q
h0m1 has joined #nixos
h0m1 has quit [Client Quit]
h0m1 has joined #nixos
<{^_^}> [nixpkgs] @WilliButz pushed commit from @Ma27 to release-19.09 « matrix-synapse: 1.7.1 -> 1.7.2 »: https://git.io/Jed2j
o1lo01ol1o has quit [Ping timeout: 265 seconds]
leotaku_ has quit [Quit: ZNC 1.7.4 - https://znc.in]
leotaku has joined #nixos
<{^_^}> [nixpkgs] @flokli opened pull request #76131 → diffpdf: fix qt wrapping → https://git.io/Jedak
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 265 seconds]
Mateon3 is now known as Mateon1
jakobrs has joined #nixos
<{^_^}> [nixpkgs] @Ma27 merged pull request #76124 → wofi: 2019-10-28 -> 1.0 → https://git.io/Jed0f
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/Jedas
<{^_^}> [nixpkgs] @Ma27 merged pull request #76119 → fzf: 0.19.0 -> 0.20.0 → https://git.io/JedBw
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JedaC
<{^_^}> [nixpkgs] @markuskowa opened pull request #76132 → php: 7.3.12 -> 7.3.13, 7.4.0 -> 7.4.1 → https://git.io/JedaW
<{^_^}> [nixpkgs] @Ma27 merged pull request #76120 → brave: 1.0.0 -> 1.1.23 → https://git.io/JedBr
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/Jeda8
<jakobrs> Is Nix good with multi-arch?
<clever> jakobrs: my latest project involves 3 different cross-compilers, and mixing things up like that is trivial
<Raito_Bezarius> Is there a way to restart service at the end of a nixops deploy?
<jakobrs> clever: I'm trying to build a project that is intrinsically multi-arch, and Ubuntu 19.10 has made building it much harder
<jakobrs> So I was hoping that Nix maybe would make it easier to build?
<clever> jakobrs: what part of the project needs multiple arches at once?
siiky has joined #nixos
<jakobrs> It needs to build both a 32-bit and a 64-bit version of its own library
<jakobrs> because it needs to work with both 32-bit and 64-bit applications
<clever> jakobrs: with nix, you just describe how to build it for any arch, and then nix can build a 32bit or 64bit version, as needed
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jakobrs> clever: Where should I look for more information? I didn't find anything in either the Nix or nixpkgs wikis
pie_ has quit [Ping timeout: 258 seconds]
vidbina has joined #nixos
zarel has quit [Ping timeout: 260 seconds]
leex has quit [Ping timeout: 260 seconds]
luc65r[m] has joined #nixos
<clever> jakobrs: when you run nix-build, you can just add `--argstr system x86_64-linux` or `--argstr system i686-linux` to force 64 or 32bit mode when building
Rusty1 has joined #nixos
<jakobrs> clever: That seems to work, thanks
zarel has joined #nixos
<jakobrs> Hang on
<jakobrs> would it be better to use system or crossSystem?
<clever> jakobrs: crossSystem is more for when you cant run the binaries your building
<{^_^}> [nixpkgs] @markuskowa opened pull request #76133 → [19.09] php: 7.2.24 -> 7.2.26, 7.3.11 -> 7.3.13 → https://git.io/Jeda6
<jakobrs> clever: Yeah, I'm using 32-bit .so files.
<clever> jakobrs: but the cpu can run 32bit binaries just fine, so its simpler to use a 32bit->32bit compiler
<jakobrs> I'll try system, and if it doesn't work I'll try crossSystem, and if that doesn't work I'll try something else
<jakobrs> clever: thanks
silver has joined #nixos
pie_ has joined #nixos
silver has quit [Remote host closed the connection]
jakobrs has quit [Remote host closed the connection]
leex has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus merged pull request #76121 → miniserve: 0.2.1 -> 0.5.0 → https://git.io/JedB6
<{^_^}> [nixpkgs] @NeQuissimus pushed 2 commits to master: https://git.io/Jedab
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/968381812b4 (from 77 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
vld has joined #nixos
SyrupThinker has quit [Quit: ZNC 1.7.5 - https://znc.in]
SyrupThinker has joined #nixos
vld has quit [Ping timeout: 260 seconds]
ng0 has joined #nixos
leex has quit [Ping timeout: 260 seconds]
ng0 has quit [Client Quit]
ng0 has joined #nixos
<gchristensen> is there a way I can force-limit the amount of RAM my system will use?
<gchristensen> I want to do a roughly-similar comparison between two machines. one has 32G of ram and 2x SSDs... this other one has more RAM.
ng0 has quit [Client Quit]
ng0 has joined #nixos
ng0 has joined #nixos
ng0 has quit [Changing host]
<clever> gchristensen: i think its maxmem=256 on the kernel cmdline
<gchristensen> I'm thinking that is bytes?
<clever> mb, but its not spelled right
<srhb> gchristensen: I think there's also the mem command line, and it takes units like, mem=2056M
ambro718 has joined #nixos
<clever> 2373 mem=nn[KMG] [KNL,BOOT] Force usage of a specific amount of memory
<clever> thats the one i was thinking of
mexisme has joined #nixos
<srhb> Depending on how much you want to limit you may also need memmap. In that case it may be easier to disable a few slots, if you can.
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/968381812b4 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
<clever> another hacky option is the crash kernel
<clever> you can configure how much ram is reserved for it
<clever> which can be used to either a: exclude ram
<clever> b: intentionally crash, so you run within the reserved region!
<{^_^}> [nixpkgs] @markuskowa merged pull request #75302 → oniguruma: 6.9.3 -> 6.9.4 → https://git.io/JeSla
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to staging: https://git.io/JedV4
mexisme has quit [Ping timeout: 245 seconds]
<srhb> clever: Oh, nice! I didn't know that.
<clever> the crash kernel is meant to kexec over to a pre-loaded kernel, and run within a pre-reserved area
<clever> so it can then dump the ram of the dead kernel upon crashing
<clever> nixos partially supports it, but will just boot normal nixos in the event of a crash
<clever> so you have to manually dump things, and know your in such a state
<gchristensen> wow!
xkapastel has quit [Quit: Connection closed for inactivity]
boogiewoogie has joined #nixos
<{^_^}> [nixpkgs] @markuskowa pushed commit from @r-ryantm to staging-19.09 « oniguruma: 6.9.3 -> 6.9.4 »: https://git.io/JedVg
turbo_MaCk has quit [Quit: WeeChat 2.7]
jumper149 has joined #nixos
alexherbo283 has joined #nixos
alexherbo28 has quit [Ping timeout: 260 seconds]
ixxie has quit [Ping timeout: 268 seconds]
cnidario has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/9d6abcd8264 (from 80 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<pie_> is there something like environment.etc that i can pass a file to
<pie_> ah wait enviroment.etc.?.source might do what i want
<{^_^}> [nixpkgs] @lheckemann opened pull request #76134 → Systemd v243.4 → https://git.io/JedVX
boogiewoogie has quit [Remote host closed the connection]
<{^_^}> [systemd] @lheckemann opened pull request #34 → v243.4 → https://git.io/JedV1
<pie_> how can i say a value is optional for config?
reallymemorable has joined #nixos
<srhb> pie_: As in, an optional for the user? The usual way is types.nullOr yourtype
<srhb> pie_: You then have to carefully deal with null throughout.
<pie_> oh no wonder i couldnt find it
<pie_> oh
<pie_> i guess that makes sense
gustavderdrache has joined #nixos
klimi has joined #nixos
<Raito_Bezarius> Is there a way to recreate the nix store sqlite db?
Fare has joined #nixos
<clever> Raito_Bezarius: not really, it would be simpler to just delete /nix and re-run nixos-install from the livecd
<Raito_Bezarius> clever: it's a production server :D
<clever> Raito_Bezarius: how did the db get lost?
<Raito_Bezarius> corruption seems like
<clever> Raito_Bezarius: how do people keep corrupting a sqlite db? lol
<Raito_Bezarius> executing SQLite statement 'pragma synchronous = normal': unable to open database file (in '/nix/var/nix/db/db.sqlite')
<clever> the entire db engine is designed to be hardened against corruption
<Raito_Bezarius> :'D
<Raito_Bezarius> It happened after some disk space exhaustion event
<clever> it has journal files to prevent such things from corrupting it
<Raito_Bezarius> AFAIK, I don't see any .wal/SQLite journal files
<clever> it creates a journal when it begins a write, copies blocks to the journal before it overwrites them
<clever> and if all went right, deletes the journal when its done
<Raito_Bezarius> Maybe the filesystem had a bug or hardware stuff
<clever> which filesystem?
ng0_ has joined #nixos
<Raito_Bezarius> EFS I suppose
ng0_ has quit [Client Quit]
ng0_ has joined #nixos
ng0 has quit [Disconnected by services]
ng0_ has quit [Client Quit]
ng0 has joined #nixos
ng0 has joined #nixos
ng0 has quit [Changing host]
h0m1 has quit [Quit: WeeChat 2.7]
h0m1 has joined #nixos
<Raito_Bezarius> Amazingly, it seems like I can open the SQLite database on my local computer
<clever> Raito_Bezarius: can you run the same query that fails in the error?
<Raito_Bezarius> Yes, and it works…
<clever> try copying the resulting file back up to the server?
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<Raito_Bezarius> Yeah
<Raito_Bezarius> For some reason: scp: /nix/var/nix/db.sqlite: No space left on device
<Raito_Bezarius> But for some reason, /dev/disk/by-label/nixos 25G 18G 6.3G 74% /
<clever> df -i /
<Raito_Bezarius> Ah
<Raito_Bezarius> /dev/disk/by-label/nixos 1638400 1638400 0 100% /
<clever> you have too many files
<clever> delete some things!
<Raito_Bezarius> Time to garbage collector
h0m1 has quit [Quit: WeeChat 2.7]
<Raito_Bezarius> But garbage collector cannot run
alexherbo283 has quit [Quit: The Lounge - https://thelounge.chat]
<clever> also, nix-collect-garbage --max-freed 10m
<clever> that will delete as few things as possible
<clever> manually delete non-nix things first, to let it run
<Raito_Bezarius> I have nothing but nix stuff :'D
<clever> nothing in /tmp at all?
<Raito_Bezarius> Hmmm, you're right
h0m1 has joined #nixos
<Raito_Bezarius> Nice!
<{^_^}> [nixpkgs] @aanderse opened pull request #76136 → Redmine 19.09 → https://git.io/JedwR
<Raito_Bezarius> clever: is there a way to increase the amount of inodes?
<clever> Raito_Bezarius: make the disk bigger
<Raito_Bezarius> Alrighty
<clever> Raito_Bezarius: when you format an ext filesystem, the ratio of disk space to inodes is set
<clever> and it cant be changed
<Raito_Bezarius> clever: do you know if there is an easy way to resize at runtime the / for nixos?
<clever> same as any other distro, expand the partition, then run resize2fs on it
<clever> assuming its ext2/3/4
<clever> is the server in aws? nixops?
<{^_^}> [nixpkgs] @aanderse opened pull request #76137 → redmine: 4.0.5 -> 4.1.0 → https://git.io/Jedwz
vidbina has quit [Ping timeout: 265 seconds]
drakonis has quit [Quit: WeeChat 2.6]
jgeerds has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #76122 → bazelisk: 1.1.0 -> 1.2.1 → https://git.io/JedBy
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jedw1
ericdallo has joined #nixos
justanotheruser has joined #nixos
<justanotheruser> Is there a more connservative collect-garbage? I want to avoid cleaning up dependencies for my nix-shell environments
<qyliss> Look into lorri, which will do nix-shell like things but with gc roots, so they don't get garbage collected
<Raito_Bezarius> clever: aws / nixops exact
Thra11 has joined #nixos
<Raito_Bezarius> alright for "same as other distro", that's super cool
<clever> Raito_Bezarius: the aws image will resize its own rootfs on bootup
<clever> Raito_Bezarius: just expand the EBS and reboot it, and your done
<Raito_Bezarius> that's really neat
<betaboon> clever: your statement of not being able to change the number of inodes when creating an ext4 filesystem is incorrect
<{^_^}> [nixpkgs] @risicle opened pull request #76138 → afl: 2.52b -> 2.56b → https://git.io/Jedwp
jarlg has joined #nixos
<clever> betaboon: i believe you can only change it when creating the fs
<clever> and once created, the ratio is fixed
<sphalerite> clever: tune2fs -I lets you set the inode size
<betaboon> clever: yeah that is correct i think. must have misread your statement :)
<clever> sphalerite: but what about inode count?
<sphalerite> clever: hm, resize2fs? :p
<sphalerite> I have no idea tbh
<clever> sphalerite: yeah, thats what i said earlier, the ratio of inodes to bytes of disk is set when you format
Chiliparrot has joined #nixos
pie__ has joined #nixos
<Thra11> I'm trying to follow this: https://nixos.org/nixos/manual/index.html#module-services-nextcloud-basic-usage. I've added a local network address to extraTrustedDomains. nextcloud-setup.service mentions the extra address, but if I try to access the server from a web browser on said IP, the nextcloud page says "Access through untrusted domain...". The extra address doesn't appear in
<Thra11> /var/lib/nextcloud/config/config.php
pie_ has quit [Ping timeout: 260 seconds]
vld has joined #nixos
fenedor has quit [Ping timeout: 265 seconds]
cnidario has quit [Remote host closed the connection]
civodul has joined #nixos
<Thra11> Has anyone successfully set up nextcloud by following the NixOS manual?
<bdju> My fonts are broken all over the place after a somewhat recent update. I noticed as I restarted more programs and eventually the whole machine that more stuff was just displaying boxes instead of characters. Using Sway. Font is Terminus in every spot affected. xterm looks fine, but termite doesn't. Seems like tewi doesn't work either, but fira code does.
mexisme has joined #nixos
<{^_^}> [nixpkgs] @Ma27 opened pull request #76139 → nixos/systemd-nspawn: use `config.systemd.package` → https://git.io/Jedr1
<sphalerite> Thra11: can't remember if I used the nixos manual, but I have successfully set up nextcloud using the nixos module
<sphalerite> bdju: yep, I've seen that too
Fare has quit [Ping timeout: 265 seconds]
<sphalerite> bdju: I think something probably broke bitmap fonts
fenedor has joined #nixos
<bdju> sphalerite: thanks, that's good to know
mexisme has quit [Ping timeout: 246 seconds]
<sphalerite> bdju: fixed also doesn't work, I'll have a look if I can find where it broke
<Thra11> sphalerite: Do you remember if you did the initial config via a browser running on the server or over the network as I'm trying to do?
<gchristensen> bdju: are you on unstable?
<bdju> yes
reallymemorable has quit [Quit: reallymemorable]
<gchristensen> bdju, sphalerite: worldofpeace tells me it is after a pango update which broken all bitmapped fonts for security purposes. https://github.com/NixOS/nixpkgs/issues/75160
<{^_^}> #75160 (by rnhmjoj, 1 week ago, open): fonts: provide opentype files for X11 bitmap fonts
<bdju> opening that link just crashed firefox for me (another recent issue)
<gchristensen> are you on sway?
<bdju> seems to happen when opening links from termite or emacs
<bdju> yes
<gchristensen> heh
<bdju> amazing
<gchristensen> firefox-bin-beta has other bugs :(
<bdju> I'm glad to hear both issues are reported at least
<{^_^}> [nixpkgs] @c0bw3b merged pull request #75036 → openorienteering-mapper: 0.9.0 -> 0.9.1 → https://git.io/JeDDY
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/JedrF
<bdju> okay, read that more closely now... only affects ff 71
<bdju> when will I see 72 out?
<gchristensen> sometime in January I think
<gchristensen> hopefully it doesn't have the resize bug anymore by the time it releases
<bdju> jeez. alright. thanks for all the info
<gchristensen> in order to use ff on different caled monitors, I have to disable all monitor sbut the one I want to run it on and start firefox. if I want to change, I have to kill firefox and repeat
<gchristensen> differently scaled monitors*
<bdju> that sounds horrible
knupfer has quit [Remote host closed the connection]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
misterwhatever has joined #nixos
<bdju> Oh, I see!
<bdju> so it applies the wrong scaling and becomes unreadable
Fare has joined #nixos
<gchristensen> it seems to pick the highest scale of all available outputs, and just use that
<bdju> I haven't had to deal with any scaling so far. Hopefully it all works better by the time I need it.
<bdju> I'm using two 1920x1200 monitors with one in portrait
<gchristensen> ae
<{^_^}> [nixpkgs] @veprbl merged pull request #74519 → Add some documentation for texlive → https://git.io/Je1e8
<{^_^}> [nixpkgs] @veprbl pushed commit from @immae to master « doc/texlive: Add "Custom packages" section (#74519) »: https://git.io/Jedoe
palo1 has joined #nixos
endformationage has joined #nixos
<{^_^}> [nixpkgs] @deadloko opened pull request #76140 → qtcreator: 4.10.0 -> 4.11.0 → https://git.io/Jedov
growpotkin has joined #nixos
palo has quit [Ping timeout: 260 seconds]
palo1 is now known as palo
philr has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @Mic92 closed pull request #69673 → mercurialFull: 4.9.1 -> 5.1.1 → https://git.io/JeZZ7
<worldofpeace> ugh, firefox crashes here too. wayland :)
<gchristensen> make a wrapper for xdg-open which switches to put firefox in focus, and then runs the real xdg-util? :)
misterwhatever has left #nixos [#nixos]
<{^_^}> [nixpkgs] @c0bw3b opened pull request #76141 → rhash: 1.3.8 -> 1.3.9 → https://git.io/Jedo0
<{^_^}> [nixpkgs] @worldofpeace merged pull request #75583 → networkmanagerapplet: default to withGnome → https://git.io/JeH2S
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/Jedoz
<{^_^}> [nixpkgs] @worldofpeace merged pull request #76129 → vk-messenger: use wrapGAppsHook → https://git.io/JedzD
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/Jedor
klimi has quit [Quit: WeeChat 2.6]
vld has quit [Ping timeout: 258 seconds]
justanotheruser has quit [Ping timeout: 260 seconds]
pie__ has quit [Ping timeout: 260 seconds]
ardumont has quit [Ping timeout: 250 seconds]
Fare has quit [Ping timeout: 260 seconds]
ddellacosta has joined #nixos
o1lo01ol1o has joined #nixos
<MichaelRaskin> gchristensen: isn't it easier to tune the about:config DPI-correction option?
<asymmetric> does anyone else have a `default' symlink in /nix/var/nix/profiles?
drakonis has joined #nixos
jarlg has quit [Ping timeout: 245 seconds]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
reallymemorable has joined #nixos
ardumont has joined #nixos
<asymmetric> oh i see, it's the global user profile
Fare has joined #nixos
kleisli has joined #nixos
justanotheruser has joined #nixos
fenedor has quit [Quit: Leaving]
ericdallo has quit [Remote host closed the connection]
vld has joined #nixos
<sphalerite> asymmetric: yep, it's what's manipulated by nix-env when run as root.
vld has quit [Ping timeout: 258 seconds]
nervengift has quit [Quit: WeeChat 2.3]
Fare has quit [Ping timeout: 268 seconds]
wildtrees has joined #nixos
wildtrees has quit [Max SendQ exceeded]
wildtrees has joined #nixos
<{^_^}> [nixpkgs] @c0bw3b pushed to master « rdf4store: throw removal messages »: https://git.io/JedKl
wildtrees has quit [Max SendQ exceeded]
Fare has joined #nixos
Chiliparrot has joined #nixos
<{^_^}> [nixpkgs] @markuskowa merged pull request #75733 → clj-kondo: 2019.11.07 -> 2019.12.14 → https://git.io/JeQ9D
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/JedKz
justanotheruser has quit [Ping timeout: 268 seconds]
Thra11 has quit [Ping timeout: 260 seconds]
sheenobu has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
<BugeyeD> hi all. how do i go about obtaining an older version of a package (older version of FF - v71 will not work with lastpass) or a newer patched version? currently using home-manager.
<BugeyeD> i assume un unstable ff package might do the trick, but not even sure whether that will pick up the patches i'm seeing mentioned on the web
<{^_^}> #75818 (by pbogdan, 4 days ago, open): LastPass extension not working with FF 71.
IRC-Source_64 has joined #nixos
<IRC-Source_64> Weird question. I just found out about Nativefier (https://github.com/jiahaog/Nativefier) which seems like it would be an interesting way to get something like whatsapp working as an app instead of a webpage in my browser. But nativifier isn't packaged for Nixos, nor does it really follow the Nixos philosophy. Is there any way to wrap arbitrary
<IRC-Source_64> websites with electron using nix? Like some wrapper function?
<{^_^}> [nixpkgs] @elseym opened pull request #76142 → plex: 1.18.2.2058 -> 1.18.3.2156 → https://git.io/JedK9
o1lo01ol1o has joined #nixos
<Baughn> BugeyeD: You should be able to point it at an older nixpkgs checkout, but it's going to be complicated if you've never done that before.
<Baughn> BugeyeD: For my part, I actually switched from Lastpass to Bitwarden a while ago. The UI is *much* better, and I honestly trust an OSS project better. It otherwise does the same thing. You can find conversion instructions on their website too, so...
<Baughn> Maybe try that?
kahiru has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @marsam merged pull request #76114 → csfml: 2.4 -> 2.5 → https://git.io/JedWE
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JedKF
Thra11 has joined #nixos
kahiru has joined #nixos
ZoomZoomZoom has quit [Quit: Leaving]
magneticduck has joined #nixos
kahiru has quit [Remote host closed the connection]
o1lo01ol1o has quit [Ping timeout: 240 seconds]
mexisme has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace opened pull request #76143 → lightdm: add patch to fix wayland sessions → https://git.io/JedKx
dongcarl has quit [Quit: The Lounge - https://thelounge.chat]
dongcarl has joined #nixos
Fare has quit [Ping timeout: 258 seconds]
mexisme has quit [Ping timeout: 260 seconds]
wildtrees has joined #nixos
selfsymmetric-pa has joined #nixos
hejka26 has joined #nixos
Cheery_ has quit [Quit: Reconnecting]
Cheery has joined #nixos
o1lo01ol1o has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/b1b55ba0f6a (from 54 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
mehlon has joined #nixos
<mehlon> so a package is out of date and it also has a wrong license, should I open 1 issue or 2?
<selfsymmetric-pa> two issues, one pull request
<mehlon> thanks
ivan has joined #nixos
<ivan> how can I emergency-kexec a nixos machine? emergency sshes in but fails with `mount: /nix: unknown filesystem type 'overlay'.`
selfsymmetric-pa has quit [Remote host closed the connection]
<ivan> the remote machine complains with https://gist.github.com/ivan/c0ea2ebd355205e9048f547fb60278ff
oxford has joined #nixos
kahiru has joined #nixos
hejka26 has quit [Ping timeout: 260 seconds]
<ivan> oh I cleaned things up and it broke with https://gist.github.com/ivan/1d4b52925843fd23caf1556525a51067 now
<ivan> ah I need to turn off some hardening
<{^_^}> [nixpkgs] @Ma27 merged pull request #76142 → plex: 1.18.2.2058 -> 1.18.3.2156 → https://git.io/JedK9
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/Jed6d
o1lo01ol1o has quit [Remote host closed the connection]
IRC-Source_64 has quit [Ping timeout: 265 seconds]
o1lo01ol1o has joined #nixos
ddellacosta has quit [Quit: WeeChat 2.2]
<dongcarl> how would one trim trailing whitespaces from a string in nix?
ddellacosta has joined #nixos
o1lo01ol1o has quit [Ping timeout: 268 seconds]
reallymemorable has quit [Quit: reallymemorable]
pikajude has quit [Quit: ZNC 1.7.5 - https://znc.in]
pikajude has joined #nixos
<pikajude> what's the easiest, most braindead way to set up a fileserver on nixos that's only reachable via localhost
<ivan> emergency-kexec on my nixos was a complete failure, but hetzner's debian rescue environment kexeced just fine
<mehlon> pikajude: caddy?
<ivan> pikajude: which protocol?
<pikajude> http
<pikajude> i'm serving rustdoc, to myself, from my remote server
<pikajude> i use vscode over SSH to develop on it, and i want to read the docs as well
<mehlon> nix-env iA nixos.caddy; caddy .;
<pikajude> hmm
noudle has quit []
<pikajude> i want to run it as a service
<pikajude> oh, caddy is a service
<mehlon> you can configure it as a system service or just run it as user
<pikajude> yeah
<pikajude> well, manually, python -m http.server etc works pretty well in screen
<pikajude> but i don't want to ever have to think about this again once i have it enabled
<mehlon> you can use the services.caddy.config options to set a config like "localhost { root /home/user/www } "
<pikajude> i see
<pikajude> thanks!
<mehlon> this will make it only readable from the exact URL 'localhost'
<mehlon> not 127.0.0.1 or anything else
UndefinedIsNotAF has joined #nixos
<mehlon> if you want multiple interfaces read https://caddyserver.com/v1/docs/http-caddyfile
<pikajude> awesome
<mehlon> so I want to run gnunet as a system service but the stable version is outdated; can I run a version from an unstable channel?
<mehlon> on NixOS stable 19.09
fusion809 has joined #nixos
<mehlon> oh wait I can modify services.gnunet.package hmmm
vld has joined #nixos
vld has quit [Ping timeout: 268 seconds]
o1lo01ol1o has joined #nixos
ddellacosta has quit [Ping timeout: 258 seconds]
cosimone has joined #nixos
cosimone has quit [Client Quit]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @Pamplemousse closed pull request #76111 → pythonPackages: 4.41.0 -> 4.51.1 → https://git.io/JedZg
gustavderdrache has quit [Quit: Leaving.]
mexisme has joined #nixos
erictapen has joined #nixos
NoctisLa1 has joined #nixos
<{^_^}> [nixpkgs] @Ma27 merged pull request #76140 → qtcreator: 4.10.0 -> 4.11.0 → https://git.io/Jedov
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JedPe
NixOsFun has quit [Remote host closed the connection]
NoctisLabs has quit [Ping timeout: 240 seconds]
Guest86177 has quit [Quit: ZNC - https://znc.in]
opthomasprime has left #nixos [#nixos]
<mehlon> so I just did nix-build.. can I install this package now somehow?
bt` has joined #nixos
<clever> mehlon: if you want it in $PATH, use nix-env
tsu has joined #nixos
tsu has quit [Client Quit]
dontobey has joined #nixos
<mehlon> ah, i figured it out thanks
<{^_^}> [nixpkgs] @tbenst opened pull request #76148 → Fix Tifffile → https://git.io/JedPk
thomashoneyman has joined #nixos
thomashoneyman has quit [Client Quit]
thomashoneyman has joined #nixos
lourkeur has joined #nixos
<{^_^}> [nixpkgs] @gabibbo97 opened pull request #76149 → eclipse: 19.09 -> 19.12 → https://git.io/JedPt
<thomashoneyman> i'm looking at the nginx page on the NixOS wiki: https://nixos.wiki/wiki/Nginx
<thomashoneyman> my goal is to set up a minimal nginx service serving a single directory on EC2
<thomashoneyman> but i only have an IP address, no named domain
<thomashoneyman> looking at the examples and the configuration options it looks like I need to put things under a virtual host entry
<thomashoneyman> for example, enableACME is only valid under a virtual host
cosimone has joined #nixos
<thomashoneyman> that said, 'virtualHosts' usually has keys like "blog.example.com"
<thomashoneyman> but I have only an IP address
<thomashoneyman> anyone have advice or a link that could help me figure out how to have nginx working with just an IP address?
<thomashoneyman> or am i misunderstanding what a virtual host even is?
<mehlon> can you just use the ip address itself as a virtualhost?
<srhb> thomashoneyman: virtualhosts route based on the host header sent by the http client
<srhb> thomashoneyman: So yes, the IP address is just fine
<srhb> thomashoneyman: There's also an option to make a vhost the default for any host header.
knupfer has joined #nixos
<srhb> (That is, if no specific one matches)
<thomashoneyman> srhb: mehlon: thanks, I may start with the IP as the virtual host and search for the option to default it
<thomashoneyman> as i'd rather avoid hardcoding for the momenvt
<srhb> thomashoneyman: It's called "default" :-)
jarlg has joined #nixos
is_null has joined #nixos
lord| is now known as lor|d
lor|d is now known as lord|
<thomashoneyman> srhb: thanks!
<thomashoneyman> new question: everywhere in my project i have a pinned nixpkgs + an overlay which applies to it
<thomashoneyman> thus everywhere in the project the same nixpkgs + additions is used
<thomashoneyman> ...except in the nixops machine configuration
<thomashoneyman> i'd like to ensure that the nixops machine is using the same pkgs as everything else
<thomashoneyman> i found this, which is a partial solution:
<{^_^}> nixops#893 (by nh2, 1 year ago, open): machine configs ignore overlay
<thomashoneyman> that issue describes how to apply an overlay to the machine config as it isn't picked up by default
<thomashoneyman> but i believe the nixpkgs that nixops is using is still whatever is on the system, and not this project's pinned nixpkgs
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
ixxie has joined #nixos
<srhb> thomashoneyman: Nixops doesn't respect the usual pinning mechanisms very well. The best way I've found it to rely solely on NIX_PATH for nixops and just feed it the properly configured nixpkgs set
<srhb> thomashoneyman: eg. by writing a thing nixpkgs wrapper to use as its NIX_PATH
<srhb> thin*
mexisme has quit [Ping timeout: 248 seconds]
<thomashoneyman> i have a `deploy-tools.nix` file i use to get nixops and do deployment related things in a nix shell
jarlg has quit [Ping timeout: 248 seconds]
<srhb> thomashoneyman: You can set the NIX_PATH within that, yeah.
eraserhd has quit [Read error: Connection reset by peer]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
leotaku has quit [Ping timeout: 240 seconds]
<thomashoneyman> that's my attempt, but it still doesn't appear to be working (build fails due to a missing package that is in the overlay)
<thomashoneyman> the "./nix/nixpkgs.nix" is the pinned nixpkgs + overlay
<thomashoneyman> (used successfully elsewhere)
<srhb> thomashoneyman: The approach is right. If there's a broken dependency you just need to fix that.
<thomashoneyman> i wonder whether it's not picking up the overlay
<thomashoneyman> ...somehow
<thomashoneyman> the frontend build is failing because it is missing a package, yarn2nix, that is added via the overlay
racoonslug has quit [Ping timeout: 245 seconds]
<srhb> Ah, yeah, you're probably right.
<thomashoneyman> but if i build the frontend via the release.nix file (which also imports from the same ./nix/nixpkgs.nix) it's fine
<thomashoneyman> it's strange because ./nix/nixpkgs.nix just imports the pinned nixpkgs and applies the overlay
<thomashoneyman> so importing that surely would include the overlay's effects?
<srhb> thomashoneyman: The fact that it's already evaluated (you're able to use pkgs.mkShell) looks wrong to me
<srhb> thomashoneyman: You end up using pkgs.path to get just the source back.
<thomashoneyman> https://hastebin.com/aruziqihaq.js <- that's the entirety of ./nix/nixpkgs.nix
<srhb> thomashoneyman: You want to pass the unevaluated version.
<srhb> (I think)
<srhb> That's a whole lot of import. :-)
<thomashoneyman> i know haha
<thomashoneyman> i could be better, i'm sure
<thomashoneyman> i wanted it to be possible to import pkgs from here without applying any overlays, just having the resulting nixpkgs available
<srhb> Try to flatten it all out so you're passing an unapplied version.
<thomashoneyman> i'm not sure what you mean
<thomashoneyman> hastebin's guesses are hilarious wrt the file extensions
<srhb> I mean you want NIX_PATH=nixpkgs=foo where foo is the path to your nixpkgs expression.
<srhb> Not an evaluated pkgs
<thomashoneyman> https://hastebin.com/muxomewuyu.coffeescript <- this is the release.nix file, which is importing just fine
<srhb> (and not pkgs.path)
<thomashoneyman> oh!
<thomashoneyman> ok, that would be the pinned-nixpkgs.nix file, which is simply the fetchTarball command
<srhb> You still want your overlays
<srhb> basically, `let nixpkgs = ./nix/nixpkgs.nix; pkgs = import nixpkgs; in ... NIX_PATH=nixpkgs=${nixpkgs};` -- I think.
<thomashoneyman> one sec, let me give that a try -- i would essentially be removing the outer import bit
<thomashoneyman> if i'm understanding correctly
<srhb> Yes, exactly.
<srhb> I'm having some trouble mentally modelling the impure overlay mechanics going on here, but I _think_ that's what you want.
<srhb> thomashoneyman: In essence, when you use `pkgs.path` you're getting just the nixpkgs src tree back
<srhb> thomashoneyman: Which in turn loses all your overlaying
<srhb> thomashoneyman: (It's just an attribute in pkgs/top-level/all-packages.nix with the value `../..`)
<srhb> It doesn't somehow serialise your expression.
<{^_^}> [nixpkgs] @Ma27 opened pull request #76151 → hydra: 2019-08-30 -> 2019-11-13 → https://git.io/JedPr
<thomashoneyman> well, it's certainly something new!
<srhb> thomashoneyman: By the way, I think we spoke a few years back when you were getting started with FP, maybe. Nice to see you're still at it. :-)
<thomashoneyman> error: getting status of '/nix/store/pinned-nixpkgs.nix': No such file or directory
<thomashoneyman> srhb: yea, you taught me a bit about Opaleye at the beginning of 2017 when i was first learning Haskell
<srhb> ah, right!
<srhb> Hmm, not sure what caused that.
<thomashoneyman> then i got a job writing purescript, and now i'm doing that + nix at awake security
<thomashoneyman> but my nix chops are *terrible*
<thomashoneyman> hence why i'm doing this right now haha
<srhb> thomashoneyman: It'll get there! :D
jumper149 has quit [Quit: WeeChat 2.6]
<thomashoneyman> let me see about putting these files together in a small gist so that it's comprehensible
<srhb> thomashoneyman: Thanks :)
palo1 has joined #nixos
knupfer has quit [Quit: knupfer]
leo has joined #nixos
<leo> Hey
leo is now known as Guest13048
palo has quit [Ping timeout: 260 seconds]
palo1 is now known as palo
<Guest13048> What I've really been trying to do is install Felgo on NixOS
<Guest13048> It only comes with a graphical installer, though.
<Guest13048> Working through some patchelf it's possible to run the installer
<Guest13048> But my question is: how to turn that into a derivation?
<Guest13048> How to actually "streamline" the install process with nix?
<Guest13048> Did not find docs for this kind of situation.
<DigitalKiwi> that's one I've never heard of hmm
jco has joined #nixos
<thomashoneyman> srhb: i know this is a bit much to take in, but the main point is that deploy-tools.nix does not end up being possible to deploy machine.nix because of the missing yarn2nix dependency, whereas building the project via release.nix works (there is no missing yarn2nix dependency)
<thomashoneyman> so my goal is to get deploy-tools.nix to use the same pkgs as is being used in release.nix
<srhb> thomashoneyman: I think maybe I get it, you're ending up with just ./nix/nixpkgs.nix in the store due to the path you're grabbing
<srhb> thomashoneyman: It doesn't resolve the paths it also imports
<srhb> thomashoneyman: To test that, make sure you have all your bits needed for the import in just one file
<srhb> thomashoneyman: That is overlays, fetchTarball, etc.
phreedom_ has joined #nixos
<srhb> thomashoneyman: Alternatively, work with strings (yuck) -- you don't need it imported to the store anyway because you just want the stringly path for eval to succeed within the nixops shell
<thomashoneyman> by 'make sure you have all your bits needed' do you mean to define the overlay, do fetchTarball, and then produce the overlaid result in the same file?
<thomashoneyman> no overlay.nix + pinned-nixpkgs.nix + nixpkgs.nix?
<thomashoneyman> those all condense to one?
<srhb> thomashoneyman: Yes, as a first move.
knupfer has joined #nixos
<keithy[m]> hi guys can anyone tell me why dnsmasq reports that it is using nameserver of my router
vld has joined #nixos
<keithy[m]> its using the ip address of my router as a nameserver for some reason.
<keithy[m]> ok found it...
phreedom has quit [Ping timeout: 240 seconds]
<keithy[m]> . /etc/dnsmasq-resolv.conf
<keithy[m]> # Generated by resolvconf
<keithy[m]> nameserver 192.168.1.1
<keithy[m]> but how did that get there
<arcnmx> Hm, is there any workaround (and is it a known issue?) for what seems to be mkRenamedOptionModule messing with disabledModules?
<srhb> keithy[m]: It's the default behaviour of dnsmasq to read your /etc/resolv.conf and use that.
<thomashoneyman> srhb: what about deploy-tools.nix?
<srhb> keithy[m]: Search for resolv in its man page
<thomashoneyman> same as it is now?
vld has quit [Ping timeout: 258 seconds]
<arcnmx> (I think I'm just confused but getting some weird behaviour, nevermind me for now)
<thomashoneyman> currently i'm getting an error in machine.nix "attempted to call something which is not a function but a set"
<srhb> thomashoneyman: Yes, that should be fine. The goal is to either make sure the entire directory of nix expressions you need is imported into the store _or_ that none of it is, and the env var just contains the string representing the non-nix-store location
<keithy[m]> No where have ai suggested that my router is a dns server
<srhb> thomashoneyman: Either way should work
<srhb> keithy[m]: It may have suggested this via dhcp?
<arcnmx> I think what's happening is disabledModules doesn't actually disable a module's imports?
<keithy[m]> so to prevent that I took over dhcp as well!
<thomashoneyman> srhb: this is the new ./nix/nixpkgs -> https://hastebin.com/ovahitomox.js
<srhb> thomashoneyman: That looks good
jarlg has joined #nixos
racoonslug has joined #nixos
<srhb> keithy[m]: Not sure I understood that. If you're saying you shouldn't be getting that DNS server via dhcp, try disabling dnsmasq and checking your original resolv.conf
<thomashoneyman> srhb: hmm. with the same deploy-tools and same machine.nix i'm getting the 'attempted to call something which is not a function but a set' from some internal Nix machine builder
<thomashoneyman> i'll keep digging for a sec
<srhb> keithy[m]: I would expect this has nothing to do with dnsmasq
<keithy[m]> ok, the original problem...
<thomashoneyman> the build of release.nix with this works fine, though
<srhb> thomashoneyman: Oh yeah, nixpkgs should be a function..
<srhb> thomashoneyman: So when it's fully applied you want to mimic its shape. args@{...}: import pinned (args // { overlays = [overlay]; }) -- or something to that extent.
<thomashoneyman> looks like deploy-tools is copying the nix file into the store and setting that as the NIX_PATH
<srhb> thomashoneyman: That's fine now that it's all in one file
<srhb> As long as there are no unresolved dependencies. If so, you need to import the whole dir.
<thomashoneyman> well, it's still importing files in the overlay
<thomashoneyman> is that what you mean by unresolved dependencies? or are you talking about arguments to the function?
<keithy[m]> Yes I get that its nothing to do with dnsmasq, dnsmasq is picking up this silly setting form somewhere
<srhb> keithy[m]: That would be /etc/resolv.conf, normally
<srhb> keithy[m]: Which normally is set by the dhcp client. Or your static configuration
<srhb> thomashoneyman: Yeah, if it needs access to more nix files you'll need to ensure the whole directory tree is in the store
<keithy[m]> so I disabled the dhcp client
<srhb> thomashoneyman: (In which case you can undo the split)
<srhb> keithy[m]: And set DNS servers how?
<thomashoneyman> srhb: i think that's better than shoving all these in one file, as there will be more later
<keithy[m]> in dnsmasq
<thomashoneyman> how do i ensure the entire directory tree is in the store?
<keithy[m]> ok thats not very clear... sorry
<thomashoneyman> i'm starting to get a bit lost; ultimately i'm still attempting to set a NIX_PATH in deploy-tools which points to the set of nix expressions being used by the rest of the project, ie. ./nix/nixpkgs.nix
<thomashoneyman> and you are saying that this file can't be copied to the store because it's got these imports etc. so it won't work
morr has quit [Quit: WeeChat 2.6]
<srhb> thomashoneyman: You can do something like.. mySource = builtins.path { path = ./nix; }; then use mySource + "/some-specific-file";
<keithy[m]> I wanted the routers dhcp to nominate my internal dns server, but it wouldnt. Instead it insisted on being the nominated dns server, proxying to the internal dns server.
<thomashoneyman> and what needs to happen is the actual resulting attribute set of derivations needs to be what arrives in the store?
ddellacosta has joined #nixos
<srhb> thomashoneyman: Right, understanding the root of the problme will help
<mehlon> anyone here use CJDNS?
<{^_^}> [nixpkgs] @markuskowa opened pull request #76152 → gnunet: fix license → https://git.io/JedXG
<clever> srhb: i think `mySource = '${./nix}/some-specific-file.nix"; is much much simpler
<clever> srhb: that will copy the entire ./nix dir, then tack a file on the end
<srhb> Agreed, though it might be confusing if one tries it in a repl
<keithy[m]> So I got my dns server to take over the dhcp as well, so it could nominate itself as the actual internal dns server.
<srhb> (wheras builtins.path will always give the whole nix store path)
<clever> srhb: the quotes on the outside have the same effect
<keithy[m]> but that setting is still there, pointing to the router as if it is a dns server.
<srhb> clever: Oh yeah, you're right!
morr has joined #nixos
<srhb> thomashoneyman: ^ what clever said. Make sure your entire source tree is imported to the store, by referring to the directory as given, and individual files by concatenating strings onto that path
<Guest13048> clever: any idea on how to turn a graphical installer into a derivation?
<thomashoneyman> srhb: clever: one sec, i'm reverting back to the not-all-in-one-file version
<clever> Guest13048: check to see if it has a --extract flag, or if you can extract the files without running it?
<Guest13048> I don't think so. :s
<clever> Guest13048: try running binwalk on the installer, what does it find?
<clever> > pythonPackages.binwalk
<{^_^}> "<derivation /nix/store/gjh2ch043amndmyv5h5x0lyz080q430j-python2.7-binwalk-2.1.1.drv>"
bt` has left #nixos ["ERC (IRC client for Emacs 26.3)"]
tokudan has quit [Quit: Dunno.]
<thomashoneyman> so if i import "${./nix}/nixpkgs.nix" as source
<Guest13048> 1sec
<thomashoneyman> well, let me rephrase
<thomashoneyman> if i have `mySource = "${./nix}/nixpkgs.nix";
<thomashoneyman> then to get an evaluated pkgs
<thomashoneyman> i attempted to do `pkgs = (import mySource) {};`
<{^_^}> [nixpkgs] @arcnmx opened pull request #76153 → nixos/connman: optional iwd backend → https://git.io/JedXz
<thomashoneyman> but this results in an error (attempted to call something which is not a function but a set)
<thomashoneyman> oh, christ, i reverted too much
<{^_^}> [nixpkgs] @jonringer pushed 263 commits to python-unstable: https://git.io/JedXg
<keithy[m]> ok, I manually deleted /etc/dnsmasq-resolve.conf and that fixed it, so looks like a bug in the whole declarative thing
philr has joined #nixos
tokudan has joined #nixos
<keithy[m]> * ok, I manually deleted /etc/dnsmasq-resolve.conf and that fixed it, so looks like a bug in the whole declarative configuration plan. A left over artifact of a previous configuration.
<thomashoneyman> uh oh: error: file 'nixpkgs/nixos/lib/eval-config.nix' was not found in the Nix search path
<thomashoneyman> i might need to step away from this and figure out how these pieces even fit together
<thomashoneyman> i'm just plugging things in at this point
<Guest13048> clever: found a bunch of stuff
<thomashoneyman> srhb: clever: any suggestions for bits of the manual or other reading that would help me understand what y'all are describing?
<Guest13048> uninteligible to me
o1lo01ol1o has quit [Remote host closed the connection]
<clever> Guest13048: can you pastebin it?
<srhb> thomashoneyman: Repaste?
<Guest13048> yep.
<srhb> thomashoneyman: The short of it really is "all the nix files need to be available at eval time" -- I'm not sure what to point you at except maybe understanding string contexts..
<srhb> thomashoneyman: The implicit store path creation can be a bit unintuitive.
lourkeur has quit [Quit: Lost terminal]
<srhb> thomashoneyman: I bet it's just a small mistake now though.
<thomashoneyman> srhb: ^
<Guest13048> clever: https://dpaste.org/SwzJ
o1lo01ol1o has joined #nixos
<srhb> thomashoneyman: Well, you're still referencing ./pkgs, so you need to go one level up in the path you want imported (so mySource = ./.; instead of ./nix) but that's not the cause..
<keithy[m]> ok, its not an artefact, resolveconf is convinced that my router is a nameserver
<srhb> thomashoneyman: Oops, sorry, those are relative to ./nix, nevermind :)
o1lo01ol1o has quit [Ping timeout: 265 seconds]
<clever> Guest13048: what happens if you just run unzip on the executable?
<thomashoneyman> srhb: this is in a private github repository that i can share with you also
<srhb> thomashoneyman: Sure. I'm thinking maybe my approach is all wrong if nixops goes directly for eval-config like that.
<srhb> thomashoneyman: It also does have an option to just set nix path for the deployment iirc
<srhb> thomashoneyman: Which is way simpler but _feels_ less declarative
jarlg has quit [Ping timeout: 248 seconds]
<thomashoneyman> srhb: you're /srhb on gh?
<srhb> thomashoneyman: I am.
<thomashoneyman> invited. also -- no worries at all if you dont't have time to look at this
<thomashoneyman> i just felt like it may be easier to see these in context vs. the pastes
fenedor has joined #nixos
<{^_^}> [nixpkgs] @Drakonis opened pull request #76154 → gzdoom: include missing soundfont files → https://git.io/JedXj
<srhb> thomashoneyman: Agreed :P
<drakonis> fast.
jarlg has joined #nixos
<thomashoneyman> srhb: need to step away for 15 minutes and then i'll be back
<Guest13048> clever: just a second
<Guest13048> unzip didn't work
<clever> Guest13048: what about file-roller?
<srhb> thomashoneyman: Yeah, this approach is fundamentally flawed. nixops tries to get <nixpkgs/nixos/lib/eval-config.nix> directly, which won't work since <nixpkgs> itself is no longer a source tree. sigh :)
<srhb> thomashoneyman: So I guess you're better off with your initial approach after all.
<thomashoneyman> srhb: it seems like this would be a common scenario -- using the same pinned nixpkgs for the project and deployment
<srhb> thomashoneyman: Yes.
<thomashoneyman> i can't even remember my initial approach haha
<thomashoneyman> i'll have to scroll back
<thomashoneyman> whatever it was, it wasn't working
<srhb> thomashoneyman: It was to feed the pkgs.path as NIX_PATH. But you'll have to separately pass in overlays too
<keithy[m]> how can I turn resolconf off?
<srhb> thomashoneyman: You can add nixpkgs-overlays to your NIX_PATH to get that working in both cases.
<Guest13048> let me try it.
<keithy[m]> I still dont understand why resolveconf thinks that the router is the nameserver
<keithy[m]> I got an idea
<keithy[m]> ls
<thomashoneyman> srhb: i haven't yet experimented with adding the overlays to the path
<thomashoneyman> but it seems to work with a) adding {pkgs.path} to NIX_PATH in the shell hook and b) adding nixpkgs.overlays = [ import (./overlay.nix) ] to the machine.nix config
<thomashoneyman> i'm not pleased that they're in separate locations
<srhb> thomashoneyman: The shell thing is a hack no matter what
<thomashoneyman> but i'm happy that at least it appears to be working
ambro718 has quit [Ping timeout: 258 seconds]
<srhb> thomashoneyman: It really should all be a function :)
<srhb> thomashoneyman: But that's really not supported by nixops
<srhb> And barely even by nixos.
<srhb> But good that you got it working
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to python-unstable: https://git.io/Jed1i
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
o1lo01ol1o has joined #nixos
__monty__ has quit [Quit: leaving]
jarlg has quit [Quit: WeeChat 2.6]
jco has quit [Quit: WeeChat 2.6]
<{^_^}> [nixpkgs] @jonringer pushed to python-unstable « pythonPackages.libcloud: fix build »: https://git.io/Jed1h
infinee has quit [Read error: No route to host]
<Thra11> Where can I find nextcloud's logs on nixos?
<{^_^}> [nixpkgs] @primeos merged pull request #75247 → sway: refactor with a wrapper → https://git.io/JeSL1
<{^_^}> [nixpkgs] @primeos pushed 2 commits to master: https://git.io/Jed1j
infinee has joined #nixos
o1lo01ol_ has joined #nixos
o1lo01ol1o has quit [Ping timeout: 258 seconds]
eraserhd has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol_ has quit [Ping timeout: 260 seconds]
knupfer has quit [Ping timeout: 248 seconds]
mexisme has joined #nixos
<{^_^}> [nixpkgs] @Mic92 opened pull request #76155 → net-snmp: split outputs → https://git.io/JedMJ
<{^_^}> [nixpkgs] @worldofpeace merged pull request #76143 → lightdm: add patch to fix wayland sessions → https://git.io/JedKx
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JedMk
o1lo01ol1o has quit [Ping timeout: 260 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/7b6d5dfcab6 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
mexisme has quit [Ping timeout: 260 seconds]
gustavderdrache has joined #nixos
veske has joined #nixos
nek0 has quit [Quit: ZNC 1.7.4 - https://znc.in]
mehlon has quit [Quit: Konversation terminated!]
nek0 has joined #nixos
magneticduck has quit [Remote host closed the connection]
zebrag has joined #nixos
thomashoneyman has quit [Quit: Lost terminal]
inkbottle has quit [Ping timeout: 268 seconds]
bvdw has quit [Read error: Connection reset by peer]
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
bvdw has joined #nixos
<ivan> does anyone use a dropbear initrd to unlock two volumes for their btrfs? :-)
<ivan> it looks like it tries to mount before the second volume gets unlocked
cosimone has quit [Quit: Quit.]
o1lo01ol1o has joined #nixos
<ivan> how do I continue boot from the initrd after mounting it myself?
vld has joined #nixos
Cale has quit [Ping timeout: 250 seconds]
veske has quit [Quit: This computer has gone to sleep]
<infinisil> ivan: Not sure, but what did you mount it with? An already running linux?
<ivan> infinisil: I just ran the cryptsetup and mount commands myself
<ivan> in NixOS Stage 1
<ivan> dunno how to get to the next stage :-)
<infinisil> How did you get the shell to do that?
<ivan> boot.initrd.network.enable = true; boot.initrd.network.ssh.enable = true;
<infinisil> Does just exiting work?
vld has quit [Ping timeout: 260 seconds]
<infinisil> Probably not
<ivan> nope
<ivan> reading stage-1-init.sh
Rusty1 has quit [Remote host closed the connection]
murmeli has quit [Remote host closed the connection]
murmeli has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
Cale has joined #nixos
Rusty1 has joined #nixos
dansho has joined #nixos
<ivan> oh I was wrong about my 'it's racing' guess; label was pointed to the second disk somehow
<ivan> I ran this in another shell and got it to boot :-) while true; do ln -sf /dev/dm-0 /dev/disk/by-label/nixos; done
<ivan> should've just specified the /dev/mapper/...