worldofpeace_ changed the topic of #nixos to: NixOS stable: 20.03 ✨ https://discourse.nixos.org/t/nixos-20-03-release/6785 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || use ,channels for a list of Nix* related channels || nixcon videos: https://tinyurl.com/nixcon2019 || Link to the output of nix-info
<ldlework> hopefully it doesn't have to build the world again
hlisp has quit [Ping timeout: 256 seconds]
<ldlework> I wonder why it fails to start X in the VM
<infinisil> I personally never attempted to run my system in a VM, I think there's just too many things that could go wrong
<infinisil> Like stateful stuff I haven't declared
<{^_^}> [nixpkgs] @bhipple opened pull request #87450 → doc: Rewrite python onboarding tutorials in manual → https://git.io/JfWL7
<ldlework> It's a nice finger in the wind
<infinisil> Well I gotta go to bed now though, but for just getting qsynth to work, I'd just use my suggestion from earlier
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to release-20.03: https://git.io/JfWLd
<ldlework> hmm after booting the VM, not having the password, shutting it down, and starting it again I now get stuck at this: http://logos.ldlework.com/caps/2020-05-10-00-03-17.png
<ldlework> maybe i'll just keep waiting
verdys has quit [Ping timeout: 256 seconds]
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<infinisil> ldlework: Remove the xqow file to reset it
Maxdamantus has quit [Ping timeout: 272 seconds]
<infinisil> In pwd
<ldlework> infinisil: you dear.
<infinisil> I think that's needed if it didn't shut down cleanly
Maxdamantus has joined #nixos
<ldlework> hmm
<ldlework> still stuck
shafox has quit [Remote host closed the connection]
<ldlework> think i'm gonna have to rebuild the world
shibboleth has quit [Quit: shibboleth]
luna has joined #nixos
<ldlework> yep, just doesn't work anymore
m0rphism has quit [Ping timeout: 256 seconds]
<ldlework> strangely
<ldlework> it looks like it starts X
bhipple has quit [Ping timeout: 258 seconds]
proofofkeags has quit [Read error: Connection reset by peer]
<ldlework> then stops it
<ldlework> then restarts it, and fails
<ldlework> wtf?!
<Ashy> i've also never bothered with the vm testing
<ldlework> Well I'm pretty nervous about X not working..
<Ashy> upgrading on nixos is probably the safest distro you can do it on
<Ashy> worst case you just pick the previous generaton in the bootloader
<ldlework> Unless it breaks the bootloader.
<Gaelan> TIL nixpkgs rustc on darwin pulls in FOUR DIFFERENT VERSIONS OF LLVM
<Ashy> which is fairly unlikely
<ldlework> Gaelan: lol
<ldlework> Ashy: seems to have happened to people
bhipple has joined #nixos
<Gaelan> LLVM 5 for some undocumented workaround, LLVM 7 with and without python support in libxml2 (the without comes from stdenv, I don't know about the with) and LLVM 9, which Rust actually depends on
<{^_^}> [nixpkgs] @mausch opened pull request #87451 → Pianoteq: init at 6.7.1 → https://git.io/JfWtn
<Ashy> ldlework: true anything is possible but i havent had it happen to me yet and i've been using nixos as my main distro since 2018 across 3 or 4 laptops and 2 desktops
<{^_^}> [nixpkgs] @marsam opened pull request #87452 → recursive: 1.047 -> 1.051 → https://git.io/JfWtE
<Ashy> ldlework: when troubleshooting this lenovo thunderbolt dock i downgraded and upgraded between 19.04, 19.09, 20.04 and nixos-unstable in the space of about an hour
<ldlework> Ashy: I just wonder why the VM is broken now.
<Ashy> ldlework: that said, make a backup or two first
<ldlework> I wonder why it would boot the first time. And now, never again.
<_d0t> does nix support regexp in any way?
<ldlework> I wonder if I can ssh into it.
<eadwu[m]> Depends on what you're trying to use regexp for?
<_d0t> eadwu[m]: split a string into several chunks given a pattern
<eadwu[m]> There is builtins.match
<eadwu[m]> As long as it isn't too complicated
<_d0t> eadwu[m]: thanks!
luna has quit [Remote host closed the connection]
<ldlework> Heyyyyyyy
<ldlework> I'm on unstable!
<ldlework> \o/
* ldlework cuddles Nix.
<Gaelan> update: DARWIN STDENV HAS TWO COPIES OF LLVM 7
<bkv> Gaelan: we need to go deeper
<bkv> Ok thats deep enough
<ldlework> qsynth still core dumps though lol
<ldlework> Ah no it doesn't.
<ldlework> Have to upgrade nix-env things manually
<cole-h> lol
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JfWqk
<ldlework> OK now I need some soundfonts :)
<ldlework> lol some icons that were broken in my WM are now fixed too
<ldlework> cute little pomodoro tomatto :P
<ldlework> Oh I am getting some nasty graphical glitches
<ldlework> Oh that's nasty...
<ldlework> wtf is that
<ldlework> :(
numkem has joined #nixos
morgrimm has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #87391 → firecracker: 0.20.0 -> 0.21.1 → https://git.io/JfCS7
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfWqY
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87453 → python37Packages.uranium: 4.5.0 -> 4.6.1 → https://git.io/JfWqO
<{^_^}> [nixpkgs] @marsam merged pull request #87398 → ipfs: 0.5.0 -> 0.5.1 → https://git.io/JfC7C
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfWqs
<Ashy> ldlework: what glitches?
hlisp has joined #nixos
<Ashy> just looked like you were mashing the rearrange windows hotkeys
<dxtr> So what is the idiomatic flow to developing packages? I have rather simple Go module I'd like to install no my server - do I have to clone the whole nixpkgs repo and put the package in there or can I tell the tools to use the default.nix in cwd?
noudle has quit []
hlisp has quit [Ping timeout: 260 seconds]
<clever> dxtr: `nix-build` with no args, will load default.nix from the cwd by default
<dxtr> ... how did I miss that?
jb55 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87454 → python27Packages.tenacity: 6.0.0 -> 6.2.0 → https://git.io/JfWqa
jb55 has joined #nixos
hlisp has joined #nixos
<dxtr> So if I just call nix-build in the directory I get "error: cannot auto-call a function that has an argument without a default value ('lib')", google tells me I might have to do some "nix-build -E 'with import <nixpkgs>...'" magic - is that true? And how do I find out what kind of magic?
andymandias_ has quit [Ping timeout: 256 seconds]
<cole-h> ,callPackage
<{^_^}> If you're updating a package file in nixpkgs that starts with something like `{ stdenv, cmake }:`, use `nix-build -A the-package-attribute` in the nixpkgs root with the corresponding package attribute to build it. The mapping from package attributes to package files is in pkgs/top-level/all-packages.nix
<cole-h> o that doesn't really help
<clever> dxtr: you can either use -E like that, or you can put `with import <nixpkgs> {};` on the 1st line of your default.nix
<clever> cole-h: the help text got changed to be a bit less helpful
punkj has quit [Remote host closed the connection]
<cole-h> `nix-build -E '(import <nixpkgs> {}).callPackage ./default.nix {}'`
mpiechotka has joined #nixos
<infinisil> Feel free to extend it :)
<infinisil> But really, nobody should he callPackaging from the CLI
<infinisil> be*
andymandias has joined #nixos
proofofkeags has joined #nixos
<clever> infinisil: in this case, i would just add `with import <nixpkgs> {};` to the file, to not need callPackage anymore
<dxtr> hmm, I still get error: cannot auto-call a function that has an argument without a default value ('lib')
<clever> dxtr: and you need to remove the old line 1 that had things like { lib }:
<dxtr> Oh
<dxtr> So what does "derivation name missing mean"?
user_0x58 has joined #nixos
<dxtr> I suspect I'm missing something else :D
<clever> dxtr: did you call stdenv.mkDerivation without a name="name"; ?
iyzsong has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87455 → python27Packages.stripe: 2.44.0 -> 2.47.0 → https://git.io/JfWq1
<dxtr> Yes, I did not call stdenv.mkDerivation at all
<clever> dxtr: what do you have in the nix file?
hlisp has quit [Ping timeout: 256 seconds]
<dxtr> See the example on that link I gave you
<dxtr> That's what I have in my file, plus the line you gave me
<dxtr> So would I call like stdenv.mkDerivation { name = "...."; src = buildGoModule....; };?
<clever> dxtr: buildGoModule is a wrapper around stdenv.mkDerivation
<dxtr> Well then
<clever> that does extra go related things
<{^_^}> [nixpkgs] @aanderse merged pull request #87179 → zabbix: 4.4.7 -> 4.4.8, 4.0.19 -> 4.0.20, 3.0.30 -> 3.0.31 → https://git.io/JfnoM
<{^_^}> [nixpkgs] @aanderse pushed 5 commits to master: https://git.io/JfWqy
hlisp has joined #nixos
proofofkeags has quit [Ping timeout: 256 seconds]
<clever> dxtr: what does `nix eval nixpkgs.lib.version` say?
<dxtr> "20.03.1782.210d8624ac4"
<dxtr> I love how it quotes it like it has an attitude
<clever> dxtr: can you pastebin the nix file after your changes?
<{^_^}> [nixpkgs] @marsam merged pull request #87329 → python27Packages.eve: 1.0 -> 1.1 → https://git.io/JfCCS
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfWq5
<dxtr> yes, moment
mpiechotka has quit [Remote host closed the connection]
Fare has quit [Ping timeout: 260 seconds]
_d0t has quit [Quit: Konversation terminated!]
<dxtr> lol changing pname to name solved it
pxc has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87456 → python27Packages.treq: 18.6.0 -> 20.4.1 → https://git.io/JfWqp
<clever> dxtr: sounds like your nixpkgs is too old to automate `name = "${pname}-${version}";`
<clever> dxtr: so it basically didnt have any name=
<ex-parrot> ok, I have "improved" the PowerDNS service. this is my first go, so I'd love any feedback anyone has: https://github.com/fincham/nixpkgs-experiments/blob/master/powerdns.nix
<{^_^}> [nixpkgs] @Ma27 pushed to master « gitea: 1.11.4 -> 1.11.5 »: https://git.io/JfWqj
<{^_^}> [nixpkgs] @Ma27 closed pull request #87115 → gitea: build package with go 1.13 → https://git.io/JfZ5b
<dxtr> clever: too old? When was this feature added?
<dxtr> I installed 20.03 like last week
<clever> maybe buildGoModule is diff
mpiechotka has joined #nixos
<clever> your nixpkgs version claims to be 210d8624ac4, but i cant find that in git
<dxtr> No, adding version solves it too
<dxtr> So it was because I didn't have version
eoli3n___ has quit [Quit: WeeChat 2.8]
<clever> ah
<clever> you left out the version in the example
<clever> and it didnt get both, so it omited the name
<dxtr> but now I get undefined variable fetchFromGithub
<clever> dxtr: fetchFromGitHub
<clever> case sensitive
<{^_^}> [nixpkgs] @lukegb opened pull request #87457 → deluge: fix running the Gtk UI → https://git.io/JfWmf
mpiechotka has quit [Client Quit]
<dxtr> Oh duh
<ex-parrot> next question, why aren't the pdns utilities in my $PATH (e.g. pdnsutil, pdns_control)
<ex-parrot> I assume there is a Nix reason for this :P
mpiechotka has joined #nixos
<morgrimm> Does anyone know off the top of their head what package I need to drop in the modules to drive an Intel 8260?
<morgrimm> I built a new gen and suddenly NixOS doesn't have the firmware for the wifi card :/
hlisp has quit [Ping timeout: 256 seconds]
eoli3n_ has quit [Ping timeout: 256 seconds]
<dxtr> "hash mismatch in fixed-output derivation '/nix/store/ljrdpj6qw1g97c8hgdffnw4yv71pvqhb-goidentd-0b47508694bac09042abe2866432d1af6a9f1c3c-go-modules'"
<dxtr> good job
webster23 has quit [Ping timeout: 252 seconds]
<morgrimm> dxtr: that's good. it means you now have the correct source hash to feed the package.
proofofkeags has joined #nixos
braunse has quit [Ping timeout: 265 seconds]
<morgrimm> It should have spit out the sha nix calculated, which if it's your first time fetching that source, will be the correct one
braunse has joined #nixos
drakonis has quit [Quit: WeeChat 2.8]
pjt_014 has joined #nixos
hlisp has joined #nixos
<ex-parrot> is this expected? if I just enabled the PowerDNS service it runs, so clearly PowerDNS is being pulled in somehow as a dependency, but if I want the command line tools to be in my path I have to also explicitly add it to the systemPackages list?
<ex-parrot> and it seems that the command line version of pdnsutil can't find the pdns.conf from the service version, so it doesn't know how to find the control socket etc...
<ex-parrot> how do I resolve that?
Fare has joined #nixos
<ex-parrot> https://paste.hotplate.co.nz/FVlMf7xDNv#if7q+lC+brtlzgAu+wwoDg <-- example of the mismatch here
mpiechotka has quit [Remote host closed the connection]
<numkem> is it possible to pass custom options? I'd like to be able to pass a set as an option
wykurz has joined #nixos
<hexa-> ,mkWrapper
<{^_^}> hexa-: Did you mean wrapper?
<hexa-> ,makeWrapper
<cole-h> ,wrapper
<cole-h> lol
<hexa-> ex-parrot: basically, in the pdns module, create a wrapper for the executable you need exposed
<ex-parrot> ty, I'll have a look at this
<ex-parrot> and that would go in the package definition?
hlisp has quit [Ping timeout: 258 seconds]
<dxtr> So how would I create a systemd service unit for this too? Should I add one to the repo or can I generate one with nix?
<hexa-> more likely into the module, since you'd probably need to pass config files, socket files, etc.
<hexa-> and config files are only created in modules, not packages
<hexa-> dxtr: see https://nixos.org/nixos/options.html#systemd.services.%3Cname%3E
<ex-parrot> aha of course, thanks
<dxtr> Oh yeah I can just use that from the packages too
<dxtr> well then
<ex-parrot> this also saves me from learning (yet) how to overide packages :()
<ex-parrot> :)
h0m1 has quit [Ping timeout: 260 seconds]
<ex-parrot> how does nix know that the service depends on the pkg? I can't find where that is linked
h0m1 has joined #nixos
<hexa-> ex-parrot: you'd basically systemd.services.<name>.serviceConfig.ExecStart = "${pkgs.yourpkg}/bin/foo --bar --baz";
<ex-parrot> ahh
<ex-parrot> of course
<ex-parrot> sneaky :)
hlisp has joined #nixos
ris has quit [Ping timeout: 260 seconds]
<ex-parrot> once I've made the wrapper, I don't need to include powerdns in my systemPackages anymore?
<morgrimm> So I added the iwlwifi module just to be sure it was included, and it spit out a boot error about there being no suitable firmware for my wifi card... hmm
mpiechotka has joined #nixos
<cole-h> lovesegfault: Woot, binutils is all green on ofborg. Maybe this time, it will work properly :D
<dxtr> Do I just slap the systemd.services stuff under src = ...; ?
<mpiechotka> Hi. When I added shell = pkgs.zsh to users.users.mpiechotka gnome-shell stopped working (no applications displayed - they were still in $PATH though.
matthewcroughan has joined #nixos
<matthewcroughan> Hey!
<{^_^}> [nixpkgs] @Ma27 pushed to release-20.03 « gitea: 1.11.4 -> 1.11.5 »: https://git.io/JfWm0
<matthewcroughan> I'm stuck at the first step of install https://nixos.org/nixos/manual/index.html#preface, I cannot figure out how to set a custom keyboard layout llo
<matthewcroughan> lol
<matthewcroughan> It gives the example of `loadkeys de neo`, so I think "okay, great, so all I have to do is `loadkeys en qwerty`" or something of that nature.
<mpiechotka> What have I done wrong?
<matthewcroughan> But in fact, loadkeys says that en is not found, I'm really quite confused about the usage of it
<matthewcroughan> No clear examples are given in the manual either
<mpiechotka> matthewcroughan: s/en/us
<matthewcroughan> but I'm gb
<matthewcroughan> and gb isn't found
<mpiechotka> GB uses different layout
<matthewcroughan> I'm trying all combos.
<mpiechotka> Oh. NM than
<matthewcroughan> The problem, entirely, is that there are no clear examples, nor are there any in the manual.
jluttine has quit [Ping timeout: 260 seconds]
<matthewcroughan> I'm looking in /nix/store/hash/share/keymaps, but I don't know if it's looking in there by default
nckx has joined #nixos
<matthewcroughan> the man page points to it, probably due to environment variables, but I'm really really confused about where it' even looking
<emily> matthewbauer: loadkeys uk
<emily> iirc
<{^_^}> [nixpkgs] @bhipple merged pull request #87440 → doc: use idiomatic overlay names in the python manual example → https://git.io/JfWTT
<ex-parrot> hmm looking at the nixpkgs repo I don't think rndc is properly set up in the bind package either :(
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JfWma
<ex-parrot> so I can't even go crib off that :P
<matthewcroughan> permission denied emily
<emily> sudo loadkeys uk
<pistache> matthewcroughan: you need to be root the change the console's keymap
<matthewcroughan> This part of the manual needs to be revised to demonstrate that you need permissions to do that
<matthewcroughan> Small change
<ex-parrot> I think it preceeds the command with a $ to indicator a root shell doesn't it?
ixxie has quit [Ping timeout: 256 seconds]
<emily> it doesn't have it as a standalone command block at all
<ex-parrot> ah
<ex-parrot> my memory is wrong
<emily> adding one with the # prompt would accomplish conveying that I guess, though the manual should probably also explicitly explain that convention
<matthewcroughan> it's just a side-mention.
<slack1256> I did a program which searches for haskell packages' documentation on /nix/store. Does anybody know if there is another project that does that?
<matthewcroughan> I never knew that indicated root shell! ex-parrot :)
ixxie has joined #nixos
<matthewcroughan> That's great to know, I never knew why it was included in guides for the past 3 years I've been using Linux haha.
<ex-parrot> matthewcroughan: just to be clear, it's # for root and $ for normal user by convention
<ex-parrot> I got it wrong in my haste :P
<matthewcroughan> Got it, that's still interesting
<pistache> matthewcroughan: most shells end the prompt with "#" for root and "$" for a normal user
<matthewcroughan> In which case, I think all those guides have been using it wrong LOL
<matthewcroughan> So let's just throw that convention out of the window :D
<ex-parrot> I'm trying to find an example of a service which includes command line tools that I can crib the wrapping stuff out of it
<ex-parrot> and so far all i'm finding are other services where the command line tools are also not properly wrapped :P
<ex-parrot> does anyone have a good example they could point me to?
jluttine has joined #nixos
<pistache> ex-parrot: I'm interested in that too, I've been wanting to wrap pdnsutil as well
<ex-parrot> oh cool
<ex-parrot> I am fixing up the pdns service file at the moment
kimat has quit [Ping timeout: 260 seconds]
<ex-parrot> I note that rndc is also not wrapped, which makes me think nobody is running their DNS on NixOS :P
<emily> there's a coredns service fwiw
<ex-parrot> oh yep, I don't know that one
<emily> I run DNS on NixOS iff https://github.com/NixOS/nixpkgs/pull/83474 counts :p
<{^_^}> #83474 (by emilazy, 6 weeks ago, open): acme-dns: init at 0.8
<ex-parrot> handy. I use PowerDNS w/ a custom backend for my ACME DNS needs
<emily> the ACME DNS ecosystem is messy, so many janky API integrations :(
<ex-parrot> yeah
<emily> and "sedding the zone file" level stuff
<ex-parrot> yesss
<ex-parrot> makes me sad. I delegate off my _acme-challenge records to a dedicated NS where I run this: https://github.com/catalyst/acmeproxy
<matthewcroughan> Actually, I'm really weirded out by the fact that the entire nixos manual does not tell you what commands require root
<emily> + even when the APIs are ok, it usually involves API keys that give ridiculous levels of access to lego
<matthewcroughan> like, why? Is it supposed to be obvious?
<emily> which is why I like the acme-dns approach a lot more
<emily> though the implementation is a little janky still
<ex-parrot> that's exactly why I built this
<ex-parrot> so you can delegate just the _acme-challenge records, and have a Flask API which knows how to do per-zone access control
<emily> yeah, so this is basically acme-dns for powerdns. looks cool
<ex-parrot> for particular users
<ex-parrot> matthewcroughan: I think it uses the # / $ notation doesn't it?
<matthewcroughan> It does not.
<matthewcroughan> at any stage, so far
<ex-parrot> weird, I'm sure I saw that while I was installing it
EdLin has joined #nixos
<ex-parrot> or at least I thought I did
<emily> it does
<{^_^}> [nixpkgs] @zowoq opened pull request #87458 → containerd, docker, runc: use/update installShellFiles → https://git.io/JfWm1
<ex-parrot> those all have # for root, matthewcroughan
<ex-parrot> but it probably needs to be more explicit upfront about that convention
<emily> it first appears in section 2.2.1
<matthewcroughan> e.g it's telling you to use wpa_supplicant, and I know that this is configuring networking, but how am I supposed to know NixOS isn't configured to allow the user to manage this?
<emily> you're like, one page into the manual :P
<emily> but yeah it should use it more consistently
<ex-parrot> and I guess it's relying on some experience with Linux knowing that usually only root can modify interface configuration etc
<emily> the manual also does $ sudo at some points
<emily> it's kind of a mess in many ways
<keithy[m]> hi guys, I am loking for a simple example explaining how to use nixFilesIn
<matthewcroughan> Yeah it's not consistent enough
<ex-parrot> I will agree as a newb to NixOS the manual was "enough" but if I was not more experienced with Linux I'd be struggling
<emily> the overarching answer is that the docs are neglected. in part because nobody wants to write docbook
hlisp has quit [Ping timeout: 256 seconds]
mpiechotka has quit [Quit: mpiechotka]
<{^_^}> Channel nixpkgs-20.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/645fd4a2c05 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-20.03-darwin)
<matthewcroughan> Because it's NixOS and I have heard a lot about it, I am going into this making absolutely NO assumptions about convention, since NixOS breaks convention.
<ex-parrot> I'm still trying to find a service that ships w/ a CLI tool so I can crib the wrapping :(
<matthewcroughan> as a result, I'm making mistakes, because I am assuming that it's telling me explicitly not to use root, but no, the manual assumes knowledge.
<emily> ex-parrot: what kind of wrapping do you need?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87459 → python37Packages.zeroconf: 0.24.5 -> 0.26.0 → https://git.io/JfWmy
<keithy[m]> Can anyone help me to use nixFilesIn
<ex-parrot> I need to expose the pdnsutil and pdns_control tools w/ a wrapper that points the --config-dir=... to the right place
<simpson> emily: I am not willing to accept "nobody wants to write docbook" anymore. The reason why *I* have not contributed much of anything to the docs is because, frankly, I'm not sure what's missing that I'm supposed to be able to provide. That is, the docs are sufficiently complete that I don't have the experience of needing to add something.
<keithy[m]> total noob
<ex-parrot> I will definitely try and contribute some improvements to the documentation once I've got a few machines running NixOS properly
<emily> simpson: I say "in part" because I can specifically say it's the #1 blocker to me contributing to the docs.
<simpson> I don't think that it's fair to blame a format when piles of people have successfully contributed with the format and built a relatively formidable knowledge base.
<ex-parrot> as a lot of it is still pretty baffling to me
<numkem> I'm trying to import a function in nixops with a custom argument, nixops complains about a custom option. My understanding is I could do import ./file.nix { option = {} }. Where am I wrong?
<emily> I can't speak for everyone else but I know it's not a non-factor.
<cole-h> Well, I'm certainly one of those people who wouldn't write docbook unless their life depended on it.
<keithy[m]> ex-parrot: me too
<ex-parrot> I don't mind docbook particularly, I guess I'm weird :P
<emily> I have active plans to uplift a NixOS wiki page I wrote into the manual once that doesn't involve DocBook.
<{^_^}> [nix-mode] @matthewbauer pushed to fix-94 « Don’t skip over > in angle-path »: https://git.io/JfWm9
<dxtr> Hmm, okay so do I have to separate the buildGoModule stuff from the rest? Like systemd.service and networking.firewall?
<ex-parrot> though I'd prefer Sphinx and md or rst
<eadwu[m]> The doc was correct but after someone brought up that the iso defaulted to root it was changed I'm pretty sure
<dxtr> I mean into different files
<simpson> emily: Understandable. From my perspecive, FWIW, "part of the reason is that nobody does it" is quite distinct from "the entire reason is that a few people don't do it"; two different approaches are required for those two different problems.
<emily> I like DocBook as a document model but writing XML really bums me out
<emily> ex-parrot: yeah, asciidoc and rest seem like the most likely candidates (there's an open rfc to move the format)
<{^_^}> [nix-mode] @matthewbauer opened pull request #97 → Don’t skip over > in angle-path → https://git.io/JfWmH
<ex-parrot> true. I wonder if you could just write in yaml then squirt it over to XML later
markus1199 has joined #nixos
dsiypl4 has joined #nixos
<keithy[m]> In general I find examples written as if they ought to be obvious to understand, but they arent.
<emily> simpson: I'm not sure what part of "the docs are neglected in part because nobody wants to write docbook" you're objecting to at this point? I agree it's not the whole story and I think prioritizing docs in general is hard but people are pretty loud and clear about the fact that it is a factor
<ex-parrot> so I have this wrapper: https://paste.hotplate.co.nz/iV7YhvC09L#yn1LwbHOd8RguqtqIKgPzQ which I think is close to right
<ex-parrot> but I am not sure where I'm supposed to define that
<emily> the docs contain a lot of material but the structure and discoverability is not great, imo
<keithy[m]> for example "Here are a few helpful Nix expressions I’ve accumulated over the years, in case they’re useful to anyone else. I’ll assume the following stuff is in context:"
<emily> nor is the consistency
hlisp has joined #nixos
<keithy[m]> * for example "Here are a few helpful Nix expressions I’ve accumulated over the years, in case they’re useful to anyone else. I’ll assume the following stuff is in context:" with builtins;
<keithy[m]> with import <nixpkgs> {};
<keithy[m]> with lib;
<keithy[m]> doesnt mean anything to me as I stare at configuration.nix
<aleph-> Yeah all in all the docs blow ****
<aleph-> Think there's a PR to work on it thankfully
<abathur> anyone know if it's possible to filter down a git/github based src? I can't recall having seen it done
<cole-h> tbh it would be much improved if there were subpages instead of having to load an N MB page just to find docs on `buildHostDepsDeps`
markus1189 has quit [Ping timeout: 240 seconds]
<emily> cole-h: what, no, being able to ctrl+f the whole thing is the bes tpart
<emily> that's the only way I find anything
<ex-parrot> if I put that in my "let" section of the service, it compiles but I don't get a pdnsutil in my path out of it :P
<cole-h> emily: If there was an actual search mechanism, that would be addressed, no?
<emily> ex-parrot: hm, and I guess configDir is dependent on service config so you can't just do this wrapping in the actual powerdns derviation?
<ex-parrot> right
<abathur> even if not, google would give better results
<emily> cole-h: if it was any good, sure. though I still wouldn't have reflexes for it
<ex-parrot> I don't find anywhere else that wrapProgram is used in nixos/modules/services...
<ex-parrot> so I feel like I'm barking up the wrong tree
<eadwu[m]> abathur: Are you trying to filter out files from source tree?
<emily> ex-parrot: I do feel like this is kind of a weird way to do things, but it's hard to advise what would be better without more context
<emily> ex-parrot: does it look for config in /etc by default? you can always just use environment.etc and spit config out there and not wrap it at all
<{^_^}> [nix-mode] @matthewbauer pushed commit from @jahkeup to master « Don’t overwrite smie-indent-exps & smie-indent-close »: https://git.io/JfWmp
<emily> given that modules are singletons with no instancing anyway, you don't lose anything by doing that, and you could drop the wrapper?
<ex-parrot> yeah it does. the only reason I've got the config where it is is that I'm modifying the existing powerdns service module, which did it that way
<matthewcroughan> uh, so I'm following the guide now up to the point of wpa_supplicant
<abathur> yeah, I'm repackaging someone else's repo that has a number of large vendored dependencies and such that I'm not using
<abathur> ^^ eadwu[m]
<matthewcroughan> I get /dev/fd/63 no such file or dir, failed to read or parse configuration
<cole-h> abathur: Maybe something like `lib.cleanSourceWith`?
<ex-parrot> emily: the existing service does configDir = pkgs.writeTextDir "pdns.conf" "${cfg.extraConfig}"; but I just cargo cult'd that
<abathur> not essential, but I've had a todo to explore cutting it down to size to see if it saves any time/resources
<ex-parrot> I don't really know why you'd do it that way
<matthewcroughan> I think the doc has a misconception about NixOS, if my googling around as to why I'm getting that error is right
<cole-h> abathur: Also see `cleanSourceFilter` in that same file for an example of something to use
<matthewcroughan> as it has something to do with chroot..
<matthewcroughan> Does anybody want to inform me as to how to get that wpa_supplicant command working in the nixOS installer?
<abathur> cole-h: I've been playing with it, but getting the uh "'X' cannot refer to other paths" error
<ex-parrot> matthewcroughan: I followed the instruction and it worked fine
<ex-parrot> can you pastebin what you're running exactly?
<abathur> cole-h nod, I'm aware that they are there; I just haven't found an example of them being used with something like fetchFromGitHub and am having trouble getting it to work
<matthewcroughan> sudo wpa_supplicant -B -i wlp1s0 -c <(wpa_passphrase 'wifi-name' 'password')
<matthewcroughan> simple
<ex-parrot> ok yeah so the problem is
<ex-parrot> wpa_passphrase won't be in your path
<ex-parrot> and that gets executed in the context of your normal user, not inside the root shell
<matthewcroughan> so why does the documentation tell me to run it in this manner?
<ex-parrot> just "sudo -s" and do everything as root is probably easiest
<matthewcroughan> I mean, I really don't want to make assumptions
<ex-parrot> I feel like you might be being deliberately obtuse. the documentation has some flaws and assumes you know a bit about using Linux and the bash shell, I think
<abathur> cole-h: so I'm trying to make sure I'm not just bashing my head against a wall that won't give :)
<matthewcroughan> I'm not being deliberately obtuse. Why would I make assumptions?
<ex-parrot> all the other examples it's giving there are things which need root
<eadwu[m]> abathur: What's your filter
<matthewcroughan> The other ones, I got over, but this one is genuinely confusing, I've never even used wpa_supplicant's cli before, to be honest, only its configuration files.
<emily> wait, why wuoldn't wpa_passphrase be in the path?
<{^_^}> [nix-mode] @matthewbauer pushed to master « Remove org-man.el from .texi makefile rule »: https://git.io/JfWYf
<ex-parrot> you can work it out from context I think, given a pre-requisite understanding that "the documentation isn't perfect"
cr4y1 has quit [Ping timeout: 272 seconds]
<{^_^}> [nix-mode] @matthewbauer pushed 8 commits to fix-94: https://git.io/JfWYJ
<emily> doesn't the installer ship with an actual network manager
<emily> I swear it has nm-cli or something
<matthewcroughan> I cannot work it out from context, and I find your language a bit elitist..
<ex-parrot> sorry, I am not trying to demean you
<matthewcroughan> I'm simply reading, applying, making 0 assumptions
<emily> (it really should if not)
<matthewcroughan> That's how you read a manual.
<ex-parrot> the documentation requires you to make assumptions though is the point I'm trying to make, and we know that
<ex-parrot> so bringing up every example as if it's a revelation isn't that helpful
<matthewcroughan> "The documentation requires you to make assumptions".
<ex-parrot> we just agreed about that before :P
<emily> matthewcroughan: fwiw I agree the docs could be a lot better, but I will say that in general the learning curve of Nix is fairly high and you're going to have to make educated guesses, experiment, and apply existing linux domain knowledge to the extent you can
<ex-parrot> it's not perfect documentation, that's well known
<ex-parrot> ^
<matthewcroughan> I'm not insulting the documentation.
<matthewcroughan> I'm going through the documentation. I'm asking for help as I encounter problems.
<matthewcroughan> It is you who is generating this narrative that the documentation is being insulted.
<emily> I don't think that's ideal by any means, but it's just the self-reinforcing status quo
thc202 has quit [Ping timeout: 260 seconds]
<qyliss> I don't think anybody has implied the documentation was being insulted
<qyliss> (And I don't think anybody would mind if it was)
<ex-parrot> I guess the way I'm reading what you're writing is that there's an air of incredulity that the "documentation is bad"
<matthewcroughan> Not at all. I'm simply going through it.
<ex-parrot> if you want help installing, we can definitely do that :)
<matthewcroughan> I just want to learn about nix, and am reading.
<matthewcroughan> That's it. There's nothing more to it. I'm simply going through it, and encountering problems, then asking about them.
<ex-parrot> ok
<matthewcroughan> And I am not going to make assumptions about how things work.
<matthewcroughan> Why would I assume what's in the path?
leo60228 has quit [Quit: Lost terminal]
<abathur> eadwu[m]: I haven't tried to work on the filter itself yet; just trying to get anything working first
<matthewcroughan> I don't run into these issues in other contexts, so clearly things are different. I am not being told what *is* different, so issues are encountered.
<ex-parrot> because the NixOS documentation is written mostly by people who are very familiar with Linux and have a good existing background knowledge about what things will and won't require root
<morgrimm> matthewcroughan: I think everyone agrees that the documentation is far from a step-by-step guide - but that's not going to change unless contributors step up and fill in what's not there :)
<ex-parrot> and so they haven't spelled it out carefully
<eadwu[m]> abathur: What have you tried? Or what are you trying to filter away?
<morgrimm> If you have changes that you think should be made to them, it'd be a great help to PR them
<matthewcroughan> Now, I will make a bit of a joke. For something that is supposedly so stateless and rigorous about "keeping the playbook documented" or known, the fact that things like this are not configured to work properly is quite funny :)
<abathur> I've tried cleanSourceWith filter = stdenv.lib.cleanSourceFilter; and src = fetchFromGitHub..., for example
<ex-parrot> matthewcroughan: the example as given does work properly, you just have to know how bash and sudo work to know how to apply it
<ex-parrot> you're yourself making an assumption that by whacking "sudo ..." on the prefix you'd get it to work, but that's not actually how bash works with file descriptor redirection
<abathur> to start with, directories I don't need
<ex-parrot> and that's not a NixOS specific issue, bash does that on all Linux systems
<abathur> including a partial vendored python 2.7
<matthewcroughan> The example as given does not work properly, because there is a system misconfiguration, isn't there?
<ex-parrot> no, it works properly
<ex-parrot> you're calling it wrong
<matthewcroughan> If I did this in Ubuntu, Arch or Fedora, this error would not be encountered.
<ex-parrot> if you want to use sudo you need to explicitly do something like "sudo wpa_supplicant -B -i interface -c <(sudo wpa_passphrase 'SSID' 'key')"
<matthewcroughan> I would be able to run wpa_supplicant as root and this issue wouldn't present itself, is this not true?
<matthewcroughan> rather, with sudo
<ex-parrot> you'd run in to the exact same issue on any Linux distro
<matthewcroughan> Let me test this, one sec.
<numkem> is it possible to pass custom options? I'd like to be able to pass a set as an option
<ex-parrot> because the part in the <(foo) is run outside of the "sudo" context
<energizer> matthewcroughan: can you link to the part of the documentation you're talking about, and post your shell session?
<eadwu[m]> abathur: Are you running the filter against the src?
<abathur> eadwu[m]: I can gist something if you think that'll help, though I'm really just trying to find a real-world working example that combines a a fetch*git* with a *filter* of some sort
<matthewcroughan> I can't post the entire shell session because I don't have a clipboard or network connection at the moment lol
<matthewcroughan> but I have already done both of those things. I don't want to spam by posting the command again, but it is simply section 2.1 of the install guide.
<ex-parrot> in the docs you'll note they don't use sudo, so the wpa_supplicant and wpa_passphrase are both running as the same UID (which it, perhaps wrongly, assumes you'll know needs to be in a root shell)
<ex-parrot> so you've added "sudo ...", which has created an incorrect way to call that command that the documentation doesn't expect
<dxtr> ex-parrot: Do I have to put systemd.services stuff in a separate file/module/unit/whatever from my buildGoModule stuff? I only get "cannot coerce a set to a string" if I slap it in the end of the file and "syntax error, unexpected '=', expecting $end" if I slap it in the beginning
<ex-parrot> which is why it isn't working for you
<ex-parrot> dxtr: I have no idea :P
<ex-parrot> I'm very new to NixOS
<matthewcroughan> That is true, so there is taht.
<dxtr> err
<dxtr> Yeah, wrong person :D Sorry
<matthewcroughan> i guess the guide should just say you need to be in a root shell for the entirety of the install
<ex-parrot> it probably should, yeah
<energizer> agree
<emily> I still don't understand why wpa_passphrase wouldn't be in the path for the normal user
<emily> i.e. I have no idea why matthewcroughan's command failed
<matthewcroughan> It is worth noting that I have already installed NixOS before, for someone. How did I do that? Simply copy and pasting commands, and figuring crap out as I do in Linux generally. But I don't want you to assume that I am a noob, just because I'm applying **no assumptions** okay?
<keithy[m]> Can anyone help me to get this working https://pastebin.com/gxiYP3Tt
<dxtr> ex-parrot: In fact I didn't even mean to highlight you. Sorry :D
<energizer> the doc gives the $ prompt instead of the # prompt too which is misleading
<ex-parrot> ok emily to be fair, that guess was based on a non-nixos assumption that it was in /usr/sbin not /usr/bin
<ex-parrot> I thin kthe real issue is
<ex-parrot> that the file descriptor is owned by root
<ex-parrot> but the wpa_passphrase command which is writing in to it, isn't being run as root
<ex-parrot> so same outcome
<emily> huh I guess nixos actually still has the sbin split
<matthewcroughan> I want to understand, entirely, what is occurring, rather than just copy-pasting commands. Which is why I have ran into this issue. I cannot reproduce what I have been told to do by the documentation, purely by reading the text on the page.
<ex-parrot> just different reasons :P my normal linux intuition is lousy here!
<emily> that's wild, most distros ditched those quite a while ago
<matthewcroughan> Which is not being deliberately obtuse, I'm simply trying to learn.
<ex-parrot> matthewcroughan: that's a good approach I think. just understand that the documentation isn't perfect, so you'll need to apply some pre-existing Linux knowledge too
<matthewcroughan> I'm aware, and I'm just documenting what happens here, I guess.
<ex-parrot> cool
<matthewcroughan> I hope I'm not being annoying.
<ex-parrot> emily: yeah you're right I think, it's prob just the file descriptor was owned by root
<ex-parrot> not that the path was wrong
<energizer> matthewcroughan: does it work if you do it in a root shell?
mpiechotka has joined #nixos
<ex-parrot> I'll also admit that the bash-specific <(foo) file redirection syntax is probably a bit exotic for your average bash / linux user
<matthewcroughan> About to try. But was busy defending my position of making no assumptions, and being called deliberately obtuse.
felixfoertsch23 has joined #nixos
felixfoertsch has quit [Ping timeout: 260 seconds]
felixfoertsch23 is now known as felixfoertsch
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87460 → qbittorrent: 4.2.2 -> 4.2.5 → https://git.io/JfWYO
<energizer> matthewcroughan: fwiw i think your confusion is reasonable
<ex-parrot> "knowing what is safe to assume" is a bit of a difficult problem with NixOS. see before my surprise at pdnsutil not being in PATH after setting up PowerDNS. it makes sense but it's not intuitive from experience in other distros
<matthewcroughan> I only found out earlier why `watch lscpu | grep MHz` doesn't work, whereas `watch 'lscpu | grep MHz'` does ;)
<ex-parrot> similar reason why the <(foo) thing doesn't work with sudo, as the process tree forks off /before/ sudo
<matthewcroughan> On another note, does anyone know why KiwiIRC didn't highlight that as code? I've seen other people use some characters that does highlight code in various IRC clients?
<{^_^}> [nix-mode] @matthewbauer merged pull request #97 → Don’t skip over > in angle-path → https://git.io/JfWmH
<{^_^}> [nix-mode] @matthewbauer pushed 3 commits to master: https://git.io/JfWY3
<matthewcroughan> ex-parrot what would be the non <() manner of executing that command?
<matthewcroughan> What is the parsed output? In fact, couldn't I get that? How can I get bash to echo the resolved output, rather?
<ex-parrot> so you'd need to run "wpa_passphrase foo bar" first, which outputs the config for wpa_supplicant, then put that in a file, then wpa_supplicant -c ./path/to/file
<clever> matthewcroughan: write the thing to a normal file first, and then just give it the filename
<matthewcroughan> "Write the thing to a normal file" ?
<clever> matthewcroughan: wpa_passphrase 'SSID' 'key' | sudo tee -a /etc/wpa_supplicant.conf ; sudo wpa_supplicant -B -i interface -c /etc/wpa_supplicant.conf
<matthewcroughan> What, take the WHOLE command and > file.txt ?
hmpffff_ has joined #nixos
<ex-parrot> <(foo) takes the stdout from foo and puts it in to an ephemeral file which bash then substitutes for a path to a file descriptor so the process that is being redirected in to can read from it
<mpiechotka> I would like to amend a package. How to add an option to the list of options?
<ex-parrot> for example: sed -e 's/foo/bar/' <(echo foo)
<ex-parrot> actually that's a bad example because it'd work with stdin too :P
<mpiechotka> (Yes. I will read manual in future but for now I just want to finish migration)
<clever> ex-parrot: try with ls -lh!
<lovesegfault> cole-h: I think it's ready
hmpffff has quit [Ping timeout: 252 seconds]
<lovesegfault> I'm pumped to merge binutils
<abathur> lovesegfault: could probably get punched for saying that in the wrong context
<keithy[m]> Example of how crazy this community is... https://github.com/davidak/nixos-config
<matthewcroughan> clever I didn't mean like that, I mean more like how one can echo resolved bash substitutions, can this not be done with this command in the same way?
<lovesegfault> abathur: ❓
<clever> matthewcroughan: `ls -lh <(echo foo)`
<ex-parrot> matthewcroughan: if you want to know what <(foo) resolved to, just run "foo"
<abathur> <3 lovesegfault
<{^_^}> lovesegfault's karma got increased to 29
<matthewcroughan> I was thinking that, but wasn't quite sure, thanks. ex-parrot
<keithy[m]> *
<keithy[m]> * .
<matthewcroughan> Ah okay, so what's the difference between <() and $() ?
<ex-parrot> it's slightly more complicated because it indirects through a pipe, substitutes the parameter for a file path to a file descriptor, then expects the program to open that file descriptor as a file and read from it
<ex-parrot> but I'm failing at how to explain that more succinctly
<matthewcroughan> I think I've always been using a subshell incorrectly, and for this purpose often
<ex-parrot> $() substitutes the stdout from the program direct, <() does it through a file
<ex-parrot> so if you have a program which expects to read from a file, you need to use <()
<keithy[m]> The readmes say "here are my configuration.nix files and there is not file configuration.nix in the repo
<matthewcroughan> no way, I never understood this, thank you
<ex-parrot> and if you had a program which expects a value on its command line you need $()
<ex-parrot> phew, I'm glad we got there :P
<clever> ex-parrot: you may also want "$(foo)" or newlines and spaces get messed up
<keithy[m]> I just want to know how to use a siple nixFilesIn function in my configuration.nix
<matthewcroughan> right, so <() is returning a file, in all cases
<ex-parrot> clever: true
<ex-parrot> matthewcroughan: right
<matthewcroughan> which is why clever is suggesting I need to get it into a file somehow
<matthewcroughan> so can I just cat it instead?
<matthewcroughan> yes I can :D
<clever> matthewcroughan: if you want to see the contents, just `foo` by itself
<ex-parrot> you don't need to, if you're running in a root shell you can just run the command as-is
<clever> dont bother writing it to a file
<matthewcroughan> That is so interesting. I didn't realise you could substitute a filename for whatever this is. You're calling it a file descriptor?
<ex-parrot> you may want to read the bash wiki at https://mywiki.wooledge.org/BashGuide/InputAndOutput#Process_Substitution
<keithy[m]> I would just like to know how to use a simple nixFilesIn function in my configuration.nix
<ex-parrot> for a more thorough explanation
<clever> matthewcroughan: /proc/self is a magic symlink, that always resolves to /proc/<pid> for the pid doing the read
<clever> matthewcroughan: and /proc/self/fd/3 is a magic symlink, that results to the 3rd open file for the current process
<morgrimm> Is anyone using kernel 5.6.11 right now and has lost firmware?
<morgrimm> Seems like some of the Intel wifi card firmware is now missing
<ex-parrot> matthewcroughan: I think the proper name is a "named pipe" set up using "process substitution" in bash
<matthewcroughan> morgrimm I have a friend that can't get various sensors on his mobo to work now
<matthewcroughan> so yes
<keithy[m]> testing
<ex-parrot> might give you some google fu
<ex-parrot> hello keithy[m]
<clever> morgrimm: do you see the firmware in /run/current-system/firmware ?
<keithy[m]> I thought i was invisible
<ex-parrot> naw, I just don't think anyone knows how to answer your question right now sorry :(
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87461 → python27Packages.xapp: 1.8.1 -> 2.0.1 → https://git.io/JfWY4
<eadwu[m]> abathur: You can use `extraPostFetch` or `postFetch` as an attr depending on whether or not you use `fetchSubmodules`
<clever> morgrimm: if you look in /nix/var/nix/profiles/system-42-link/firmware you can also see how the firmware looked in past generations
<eadwu[m]> Took a while to find
<morgrimm> clever: No, and udev wasn't able to pull down suitable firmware inside the min/max range for the chip either
<keithy[m]> did any of my previous messages get through?
<ex-parrot> keithy[m]: yeah, I saw you asking about nixFilesIn several times
<clever> morgrimm: check older generations to see if they have the file you need
chagra_ has quit [Ping timeout: 258 seconds]
<morgrimm> Good tip, will do that now
<keithy[m]> ok, I went off to nickserve identify
<keithy[m]> incase that was the problem
<EdLin> is nixos-rebuild switch --upgrade the normal way to keep your system up to date?
<clever> EdLin: that will update to whatever is latest for your channel, but not change the channel
hlisp has quit [Ping timeout: 246 seconds]
<EdLin> clever: what do you mean?
hlisp has joined #nixos
<matthewcroughan> "for the pid doing the read" What, the process I'm running interactively at the time/moment?
<matthewcroughan> aka the last run process?
chagra_ has joined #nixos
<clever> matthewcroughan: whichever process is trying to read /proc/self/
<EdLin> do you mean release vs unstable?
<clever> EdLin: yeah
<EdLin> I believe I'm running unstable, my nixos file still says 20.03 or whatever though, is that OK?
<clever> EdLin: `sudo nix-channel --list` to see which channel your on, and
<clever> ,stateVersion EdLin
<{^_^}> EdLin: Changing stateVersion doesn't upgrade anything and can only break your setup at best. To actually upgrade NixOS see https://nixos.org/nixos/manual/#sec-upgrading. If you need to change stateVersion for some odd reason regardless, Ctrl-F for "stateVersion" in https://nixos.org/nixos/manual/release-notes.html to see things that need to be manually migrated with the new value
<abathur> eadwu[m]: Guessing you mean something like (extra)postFetch=''rm stuff I don't need''; ?
Fare has quit [Ping timeout: 272 seconds]
<morgrimm> clever: so it looks like they do, and it looks like my current system firmware dir is actually entirely empty lmao
<morgrimm> for my current gen
<morgrimm> how does that even happen
<matthewcroughan> clever ex-parrot you've been incredibly helpful and taught me some new things. My power level has increased.
<ex-parrot> \o/
<ex-parrot> sorry I was a little snippy
<ex-parrot> I misunderstood :)
<clever> morgrimm: try one of these options like enableAllFirmware and see what happens
<clever> morgrimm: if you know which file you need, you can also add it to hardware.firmware with the right pkg
<matthewcroughan> No problem whatsoever ex-parrot
Fare has joined #nixos
<morgrimm> So specifically I need an iwlwifi ucode blob, I know which one - and I added the iwlwifi kernel module hoping it would automatically pull it down
<morgrimm> it did in earlier generations
<abathur> <3 matthewcroughan clever ex-parrot can I do these all at once, or do they have to be separate?
<{^_^}> matthewcroughan's karma got increased to 1
slack1256 has quit [Remote host closed the connection]
<matthewcroughan> You broke the rules.
<abathur> matthewcroughan <3 clever <3 ex-parrot :)?
<{^_^}> clever's karma got increased to 411
<{^_^}> ex-parrot's karma got increased to 1
<energizer> clever: i have a remote machine running nix but not nixos. i want to convert it to nixos. i dont have physical access atm. how risky would it be to try to convert it with your script, in terms of probability i lose access and have to grovel for somebody to unlock a bunch of doors for me?
<morgrimm> clever: Is there a way to tell which package specific firmware came from?
<clever> morgrimm: if you run ls -lh on the firmware from an old generation, youll get the derivation name
<clever> morgrimm: then just search nixpkgs for that name
<clever> energizer: kexec itself is relatively low risk, it rarely crashes, and even if you lock yourself out, the default config will reboot the machine at the end of the hour, restoring the original OS
<{^_^}> [nixpkgs] @offlinehacker merged pull request #87458 → containerd, docker, runc: use/update installShellFiles → https://git.io/JfWm1
<{^_^}> [nixpkgs] @offlinehacker pushed 4 commits to master: https://git.io/JfWYw
<clever> energizer: but once you format the disk, there is no hope of it booting on its own until you complete the nixos-install without any mistakes
<ex-parrot> energizer: I've managed to pull off lustrating a couple of machines
<morgrimm> clever: ahh, linux-nonfree
<morgrimm> well, firmware-linux-nonfree it looks like
<Gaelan> Is there a way to force nix to build a single derivation (but not its dependencies) from source?
<ex-parrot> but it's a gamble whether the nixos kernel will boot the machine properly imo
<dxtr> Will a package built with nix-build be considered 'installed'?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87462 → qmmp: 1.3.7 -> 1.4.0 → https://git.io/JfWYK
<clever> morgrimm: both enableAllFirmware and enableRedistributableFirmware will include that
<energizer> dxtr: i think the question is installed into what
<morgrimm> Beauty, thanks - not sure why that changed between gens. My hardward config didn't
<clever> morgrimm: you can also be cheap and manually put only firmwareLinuxNonfree into hardware.firmware, if you dont want the rest
<energizer> clever: i think i'd better not then :-)
<morgrimm> Is one really better than the other? :P
<clever> morgrimm: more a question of how much non-free code you want to pull in and never actually use
<energizer> clever: is there a way to make the "formatting and post-formatting" portion of the installer more declarative and foolproof?
<morgrimm> Very good point
<matthewcroughan> ex-parrot `parted /dev/sda -- mklabel gpt` what does the -- actually do? Is that part of bash? I've always taken commands like this for granted.
<clever> energizer: justdoit.nix
<clever> energizer: which is included in the kexec image, but you need to configure it righ before you make the tar
<energizer> clever: does it have a `test` command?
<clever> energizer: nope
<ex-parrot> matthewcroughan: the -- is convention to mean "anything after here is not an option flag"
turona has quit [Ping timeout: 246 seconds]
<ex-parrot> it's just implemented per-application but it's quite common
<energizer> ex-parrot: it's in the posix spec
<ex-parrot> e.g. if you needed to grep for the literal string "-R" without grep interpreting it as you requesting recursion you could do grep -- "-R"
<ex-parrot> energizer: true, but a lot of stuff doesn't implement it :P
<ex-parrot> I guess the point I was trying to make is it's implemented in the application not in the shell
<energizer> yep
<energizer> clever: could it gain one?
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
aw has joined #nixos
<dxtr> energizer: Well, my questions are really: A) Can I refer to it with pkgs.mypackage from my configuration.nix and B) Is it safe to make a systemd unit for it or will it eventually get wiped by, for example, nix-collect-garbage?
turona has joined #nixos
spacefrogg has joined #nixos
<clever> energizer: not easily, because you have to boot the real hw and format things to test it all
<clever> energizer: the mst you could do, is check what the root device is, against your config, and then stop before you continue
<energizer> dxtr: A) no B) it wont get collected but dont do it that way
<dxtr> So what would be the proper way to make sure a package that isn't in any channels is properly installed?
<energizer> clever: alright
<energizer> dxtr: add it to an overlay
<mpiechotka> Hmm. I give up. How to add a build flag to package in configuration.nix
<clever> morgrimm: nixpkgs.overlays = [ (self: super: { package = super.package.overrideAttrs (old: { ... }); }) ];
<clever> mpiechotka: oops, ^^^
morgrimm has quit [Ping timeout: 272 seconds]
<dxtr> Alright
bqv has joined #nixos
bkv has quit [Ping timeout: 256 seconds]
<ex-parrot> emily: looking at environment.etc but it seems like pdnsutil defaults to looking in /nix/store/..../etc
<ex-parrot> so, defeated again
<{^_^}> [nixpkgs] @marsam merged pull request #87452 → recursive: 1.047 -> 1.051 → https://git.io/JfWtE
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfWYQ
<mpiechotka> clever: Thanks. Trying
<emily> ex-parrot: right. sorry, I'm pretty tired so I can't give super concrete suggestions as to what the best approach would be
<ex-parrot> all good
<ex-parrot> just thought I'd update you :P
<emily> you could configure it to look in /etc in the upstream package
<emily> but maybe it is best to get the wrapper thing working
<ex-parrot> it doesn't seem like anything else uses a wrapper, so it feels not really right
<ex-parrot> I might just alias it in my bashrc for now and move on
<ex-parrot> ooh actually I think my grep before just had a typo in it. a few services /do/ call makeWrapper
<mpiechotka> clever: nixos-rebuild switch still didn't rebuilt the package
* ex-parrot goes to investigate
<clever> mpiechotka: it will only build if you then do pkgs.package somewhere,with the same name you did against the override
<pistache> ex-parrot: aliasing it in your bashrc will break on upgrades
<ex-parrot> I know
<ex-parrot> then I can go and work out how to fix it properly
<mpiechotka> clever: 'attribute 'mutter' missing, at' (mutter is what I'm trying to rebuild)
<aleph-> Hmm, anyone have a nsd config I can look at?
<clever> > pkgs.mutter
<{^_^}> attribute 'mutter' missing, at (string):310:1
<clever> mpiechotka: it doesnt exist at that name
<mpiechotka> clever: Ok. Maybe I misunderstood what I need to replace: https://pastebin.com/AzqzJEAj
<matthewcroughan> Okay, so I've gotten to generating my first configuration.nix, how would I specify my wpa_supplicant user/pass in there?
<matthewcroughan> Or am I intended to have files that are persistent?
<clever> matthewcroughan: i prefer nixos to not manage wpa_supplicant.conf, so i can change the pw without having wifi working
<matthewcroughan> so you just do not have your device connect automatically to any wifi?
<matthewcroughan> For me, that would be pretty silly, and I would not be happy with that.
<clever> mpiechotka: did pkgs.mutter work before you added the overlay?
<clever> matthewcroughan: i enable wpa_supplicant, but i dont give configuration.nix the pw
<mpiechotka> clever: No - it was a dependency of gdm and gnome3
<matthewcroughan> so how does your device connect to the wifi at boot?
<clever> matthewcroughan: so i have to edit and maintain /etc/wpa_supplicant.conf manually, outside of configuration.nix
<matthewcroughan> yes, but how do I make /etc/wpa_supplicant.conf persistent?
<clever> matthewcroughan: the pw is already in /etc/wpa_supplicant.conf
<clever> matthewcroughan: nixos wont delete it
<clever> matthewcroughan: its just a regular file in /etc/
<matthewcroughan> I was reading this and got entirely the opposite opinion
<clever> matthewcroughan: then you need to tell nixos to symlink /etc/wpa_supplicant.conf to your mutable directory
vika_nezrimaya has quit [Ping timeout: 240 seconds]
<matthewcroughan> and how do I make a mutable directory?
<clever> matthewcroughan: if you dont, you risk getting stuck unable to nixos-rebuild because you need wifi to get wifi
<matthewcroughan> These are questions I have before I have even completed the install
<matthewcroughan> because I want to make wifi work
<matthewcroughan> because of course, I have configured wifi in the installer, and I want to carry this over to the install
<clever> matthewcroughan: read the "opting out" section of that page
<clever> matthewcroughan: and "opting in" as well
<pistache> ex-parrot: I think you'd want something like "pdnsutilWrapped = pkgs.runCommand "pdnsutil" { buildInputs = [ pkgs.makeWrapper ]; } ''makeWrapper ${powerdns}/bin/pdnsutil $out/bin/pdnsutil --add-flags "--config-dir ..."''"
jluttine has quit [Ping timeout: 258 seconds]
<pistache> ex-parrot: with "environment.systemPackages = [ pdnsutilWrapped ]"
<ex-parrot> yes, I just got it working!
oborot has quit [Ping timeout: 272 seconds]
<pistache> oh, great !
<clever> ,locate bin mutter
<ex-parrot> ty for confirming though
<{^_^}> Found in packages: gnome3.mutter, gnome3.mutter328
<ex-parrot> I will PR this updated file back in to nixpkgs now
<matthewcroughan> clever are you sure it's /etc/wpa_supplicant.conf and not /etc/wpa_supplicant/wpa_supplicant.conf?
<clever> mpiechotka: mutter is at gnome3.mutter
<pistache> can you share what worked for you ? as I said I'm interested in doing it myself but haven't got around to it yet
<ex-parrot> yeah, will do
<ex-parrot> gimme a couple secs to just validate it's all kosher
<clever> mpiechotka: for my laptop, its /etc/wpa_supplicant.conf
<ex-parrot> but it seems to be working
hlisp has quit [Remote host closed the connection]
oborot has joined #nixos
booterror has quit [Quit: Ping timeout (120 seconds)]
<clever> mpiechotka: so you want to do, self: super: { gnome3 = super.overrideScope' (gself: gsuper: { mutter = gsuper.mutter ....; }); }
booterror has joined #nixos
<clever> mpiechotka: that will replace pkgs.gnome3, with the result of applying a "gnome overlay" to gnome3
<{^_^}> [nixpkgs] @marsam opened pull request #87463 → git-lfs: 2.10.0 -> 2.11.0 → https://git.io/JfWOk
<mpiechotka> clever: is ' deliberate after overrideScope (prime) or a typo?
cjpbirkbeck has quit [Quit: cjpbirkbeck]
<clever> mpiechotka: it is deliberate
<clever> mpiechotka: overrideScope got the args backwards, super: self: {, so overrideScope' was added to fix the order
<energizer> ouch :(
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/54677515aa5 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
hlisp has joined #nixos
<matthewcroughan> It's quite incredible to watch nixos-install go ahead asynchronously doing its local stuff and internet stuff
<matthewcroughan> on this absolutely crappy intel centrino wifi card
<ex-parrot> pistache: https://paste.hotplate.co.nz/ek3zzSvgBZ#8fiSJghMFZxD7vUlkZTqoQ$nix this seems to work
<ex-parrot> I ended up finding that the knot package has the right stuff in it
<ex-parrot> so I cribbed from there
<ex-parrot> gonna make it a bit nicer and submit up to nixpkgs :)
<keithy[m]> I am attempting to get a timer running in nixos, I have the service working, but now, how to acess curl form the script?
<mpiechotka> clever: error: attribute 'overrideScope'' missing
<pie_> clever: in that vein, any idea if there's a more readable way to do this https://bpa.st/IJFA
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
<clever> mpiechotka: which channel are you on?
Supersonic112 is now known as Supersonic
<mpiechotka> clever: stable
<clever> mpiechotka: which stable?
<mpiechotka> clever: I tried overrideScope as well
<mpiechotka> clever: 20.something? I download iso today from main page
<pie_> mpiechotka: lib. ?
<clever> mpiechotka: can you pastebin the whole configuration.nix file?
<pie_> > lib.overrideScope
<{^_^}> attribute 'overrideScope' missing, at (string):310:1
<pie_> > pkgs.overrideScope
<{^_^}> attribute 'overrideScope' missing, at (string):310:1
<clever> > gnome3.overrideScope'
<{^_^}> <LAMBDA>
<pie_> oh durr
<pie_> i should read what im talking about
morgrimm has joined #nixos
<clever> pie_: it does the same thing as extend
<pie_> i guessed as much
<energizer> on my nixos machines i use nixos-unstable as root. on non-nixos machines, which channel should i use, and should it be as root or not?
<matthewcroughan> My preconceptions about NixOS have been entirely destroyed by how seamless the experience I just had with a crappy wireless card was
<clever> energizer: for non-nixos machines, you can use nixpkgs-unstable
<energizer> clever: isn't that untested?
<clever> energizer: nixpkgs-unstable tests fewer things, and doesnt test if grub does wonky things like not boot
<mpiechotka> clever: Sorry - failed turing test: https://pastebin.com/e8DL1raJ
<clever> energizer: so its more suited for non-nixos stuff
<numkem> I've been going around in circles for a while but I think I understand a lot more about the language now. Yet I'm getting to the point where I'm trying to pass a package as an attribute to a function that I import in the `imports` block. yet I get an error that says the option (of the same name as the attribute) does not exists
<clever> mpiechotka: gnome3 = super.gnome3.overrideScope'
<clever> mpiechotka: typo in my original example, oops
<energizer> numkem: show your code and error
<energizer> with traceback
<energizer> clever: as root or not?
<clever> energizer: user doesnt matter that much
<energizer> ok
morgrimm has quit [Ping timeout: 260 seconds]
<mpiechotka> clever: Works now. Next task after finishing setup - actually dig into configuration syntax
<keithy[m]> how does one go about making curl available within a services.somename.script = ?
<{^_^}> [nixpkgs] @bhipple merged pull request #87463 → git-lfs: 2.10.0 -> 2.11.0 → https://git.io/JfWOk
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JfWOV
<numkem> energizer: essentially looks like this: https://gist.github.com/numkem/005d1e531b1a7840d1494d4ca62052f1
gustavderdrache has quit [Quit: Leaving.]
<pie_> matthewcroughan: ymmv ;)
<pie_> mpiechotka: do you know about the repl
<numkem> energizer: error is `error: The option `consul' defined in `/home/numkem/src/nixops/deployments.nix' does not exist.`
<mpiechotka> pie_: In general or in nix?
<pie_> mpiechotka: your username seems familiar so i might have asked you before but i dont remembet x)
<pie_> mpiechotka: in nix
<mpiechotka> pie_: No
<pie_> yeah so nix repl is a thing
hlisp has quit [Ping timeout: 264 seconds]
<pie_> i mean `nix repl` the command
<mpiechotka> pie_: I was involved in both Haskell and Gnome so you might recognize the username from there?
<pie_> dunno pobably haskell
<pie_> anyway the module system is different but if its just the language you can play with it from the repl (modulo some rough edges)
<pie_> you can also invoke the module system from there but idk how to do that off the top of my heda
* mpiechotka tries to reboot system and see if it works
mpiechotka has quit [Quit: mpiechotka]
<pie_> should tell him about the vm infra so he doesnt have to reboot irc :p
<pie_> ,tell
<{^_^}> Use `,tell john Remember to do the laundry` to send this to john next time he's talking in this channel
proofofkeags has quit [Remote host closed the connection]
<energizer> numkem: im not sure
mpiechotka has joined #nixos
<numkem> energizer: I'm still a newbie but reading the manual and pills tells me that it should work, assuming you can do it in nixops
<pie_> ,tell mpiechotka we also have infrastructure for testing stuff in a VM / qemu, so you dont hav eto reboot for everytihng (helps if you have good performance though). I migrated a machine across disks using the VM testing and booting a vm off the copied drive once - almost worked flawlessly but i messed up something with zfs, cant remmeber :P
<{^_^}> pie_: I'll pass that on to mpiechotka
<energizer> numkem: could be. there are experts here right now but i'm not one of them :)
<pie_> oops youre back
<pie_> anyway yeah
<numkem> energizer: thanks for your help :)
<pie_> numkem: since youre making a gist anyway you could have pasted the traceback too :P
mpiechotka has quit [Remote host closed the connection]
<numkem> pie_: I've edited it to have the error and full stacktrace
<pie_> numkem: wht are you passing consul and ip as arguments to the module?
<pie_> im not saying its wrong but i dont think ive seen that
<numkem> pie_: deployment.nix L24
<matthewcroughan> 168M, wow, that really is something lol
<pie_> numkem: doh, misread
hlisp has joined #nixos
<numkem> pie_: wasn't sure if I was doing it right
<pie_> numkem: ok im not sure calling it like that is right either
<numkem> pie_: is it even possible? I'd like to have the function be callable with different ip at the very least, as it would be used by many hosts
<pie_> numkem: can you pass --show-trace
<pie_> numkem: what you probaly want is {lib, ...}: {ip, consul}: ...
<keithy[m]> so the timer script doesnt even have which
<pie_> but im not 100% sure, you can give it a shot though
mpiechotka has joined #nixos
<mpiechotka> pie_: Still got the message before reboot. Thanks
<{^_^}> mpiechotka: 4 minutes, 49 seconds ago <pie_> we also have infrastructure for testing stuff in a VM / qemu, so you dont hav eto reboot for everytihng (helps if you have good performance though). I migrated a machine across disks using the VM testing and booting a vm off the copied drive once - almost worked flawlessly but i messed up something with zfs, cant remmeber :P
<pie_> keithy[m]: you are aware how nixos generally does not make anything availible by default?
<keithy[m]> yes
<keithy[m]> but a clue as to how to make anything avialbel would be nice
<numkem> pie_: doing last thing you said gave: error: value is a function while a set was expected, at /nix/store/xx6fdjvlsb8y7h391hhizln431b06jww-nixexprs.tar.xz/lib/modules.nix:195:27
<pie_> though i think i saw things about systemd being screwy-er than usual, not sure whats up with that these days
<pie_> numkem: just realized osmeting else
<pie_> numkem: this is a list
<pie_> numkem: i can leave it at that and leave you pondering, or i can just tell you my next best guess at the answer
<numkem> pie_: consul should be a package, ip should be a string
<keithy[m]> Surely it wouldnt kill to have a non trival timer example out there somewher?
<mpiechotka> clever: It seems that gdm still uses the upstream mutter
<pie_> keithy[m]: fwiw i highly recommend scouring nixpkgs for existing examples of things (though they may not all be great)
<keithy[m]> The only timer examples seem to use echo, and they work
<pie_> keithy[m]: look at somethin that isnt specificlal about timer and gives you access to other packages
<numkem> pie_: I'm all ears
<keithy[m]> honestly im pssin in the wind
<pie_> keithy[m]: though a lot of them will probably just explicitly refer to the script via ${thingname}/bin/whatever
<mpiechotka> clever: I need to at least substitute /nix/store/sacgxhnwdbj1hcxyrbrnicgxa4ghks6l-gdm-3.34.1/bin/gdm as well I guess?
matthewcroughan has quit [Ping timeout: 245 seconds]
<pie_> but im just guesisng here since i dont have it open in front of my and i generally avoid poking at systemd because i havent learned it yet
<keithy[m]> see I dont understand anything anyone saysa ournd here
<pie_> thats fine, it takes a while
<mpiechotka> pie_: I don't think VM will help with HW configuration issues though.
<keithy[m]> and I watched all nine ours of nixonc
<keithy[m]> * and I watched all nine ours of nixcon
<pie_> > "${pkgs.hello}/bin/hello"
<{^_^}> "/nix/store/dvv4irwgdm8lpbhdkqghvmjmjknrikh4-hello-2.10/bin/hello"
<pie_> keithy[m]: e.g. ^
<keithy[m]> NON OF YOU EXAMPLES HAV CONTEXT
<numkem> pie_: I've added the trace
<clever> mpiechotka: the overlay should impact gdm too
<keithy[m]> again thats just a random path what use is that to me
<clever> mpiechotka: if gdm depends on mutter directly
<keithy[m]> whats the context
<pie_> ,locat which
<pie_> ,locate which
<{^_^}> Found in packages: zsh, atom, grocy, which, codimd, heroku, meteor, nodejs, toybox, busybox, cypress, brackets, spacegun, atom-beta, kibana-oss, debianutils, factor-lang, kibana7-oss, nodejs-12_x, nodejs-13_x, arangodb_3_5, trilium-server, nodePackages.pulp, nodePackages.bower, nodePackages.pscid, nodePackages.hueadm, nodePackages.joplin, nodePackages.triton, elmPackages.elm-live, elmPackages.elm-test, nodePackages.fast-cli, and 8 more
<pie_> lol ok
<clever> pie_: which is in which
drakonis has joined #nixos
<clever> > pkgs.which
<{^_^}> "<derivation /nix/store/gydv8hd5sr6jacmbirzhkalsy09s4jyp-which-2.21.drv>"
<pie_> > "${pkgs.which}/bin/which"
<{^_^}> "/nix/store/dvy4z81mmps78h4yhjzky33j34lchlh4-which-2.21/bin/which"
<pie_> clever: i was attemptin to illustrate but it didnt go well x)
<pie_> keithy[m]: do you know how PATH works
<keithy[m]> yes
<pie_> keithy[m]: well, the problem is `which` isnt in PATH
verdys has joined #nixos
<mpiechotka> clever: Hmm. Let me dig into this
<pie_> i can throw some bits and pieces at you but i dont know how to solve it all without more work so it helps if you can work on connecting the dots
<pie_> i know, thats not ideal
<keithy[m]> sorry if im ratty, but I have been asking q's here for hours and you are the first person to answer me
<pie_> well, the channel is kinda high traffic these days
<pie_> well, if youll tolerate me being a bit ratty in return :P
hlisp has quit [Ping timeout: 256 seconds]
<keithy[m]> so echo $PATH works
<pie_> so anyway the answer to your quesiton is the answer to "how do i find a program" 1) have it in path 2) refer to it manually
<pie_> the answer to 2) is to get the path from nix, usually statically at build time by substituting an expresison
<pie_> keithy[m]: somethng you can test is working with nix-shell --pure somescript.nix
<pie_> numkem: didnt forget about you, hold on
<numkem> pie_: I've still got my ticket :P
<pie_> keithy[m]: --pure does some stuff to make it so that the shell you end up in is in a way clean, so stuff like PATH will also be clean, i.e. no access to which and such
<pie_> > let f = s: s.a + 1 ; in builtins.map (v: "${v}") [ 1 2 3 4 f { a = 1; } ]
<{^_^}> [ <CODE> <CODE> <CODE> <CODE> <CODE> <CODE> ]
<pie_> derp
<keithy[m]> ok I have a test.nix
<pie_> keithy[m]: anyway i still say look at systemd service definitions
<keithy[m]> no it might appear
<keithy[m]> that when you say > let
hlisp has joined #nixos
<pie_> > let f = s: s.a + 1 ; in builtins.map (v: builtins.toString v ) [ 1 2 3 4 f { a = 1; } ]
<{^_^}> [ <CODE> <CODE> <CODE> <CODE> <CODE> <CODE> ]
<keithy[m]> the file requires a { config, pkgs, lib, ... }: at the top?
<pie_> ok nevermind about those things im > -ing
<pie_> numkem: basically you need parentheses around function invocations in a list because lists dont use commas, make sense?
<pie_> i can expand more if no
morgrimm has joined #nixos
<pie_> keithy[m]: thats for modules. `args@{a, b, c, ...}: stuff` is in general a function. the module system has a calling convention. packages have a different one where you use .callPackage nixfile.nix {otherargs} to pass arguments to {thing1, thing2}: ...
<pie_> note callPackages implicitly passes everythng in the top level package set
<pie_> and the {} you pass to callpackage is for extra arguments
davidv7 has quit [Ping timeout: 260 seconds]
<fling> Is there an lxd image?
<keithy[m]> so... I am ready to try something in shell-nix --pure text.nix
<numkem> pie_: ok that makes sense as you want it to be executed rather than just copied over (if I understand how import really works). So I tried doing imports = [ (./consul.nix { [...] }) which failed so can you do it through the imports?
Ralith_ has quit [Remote host closed the connection]
<pie_> numkem: no i mean xD sorry my bad
<ldlework> Ashy: there are little glitch artifacts everywhere
<pie_> numkem: you have to do [ ./path1 ./path2 (import ./path3 {stuff}) ]
Ralith_ has joined #nixos
<clever> numkem: though you probably just want `imports = [ ./path1 ./path2 ./path3 ];` and define more options, dont mix them into the args like that
<ldlework> Does anyone know what is causing this graphical glitching? http://logos.ldlework.com/caps/2020-05-10-03-52-51.mp4
<ldlework> clever: any idea perhaps?
<pie_> numkem: whats probably happening there, though you could check the source, is something like map (v: if isPath then ... else isFunction ...) over { imports = [ stuff ] }
<ldlework> It's happening all over.
<numkem> pie_: clever: I wanna be mad because of how dumb this was but it's working so I'm happy :)
<pie_> numkem: ikr , but after doing that a few times you remember xD
<ldlework> Is it because I'm not running a compositor?
morgrimm has quit [Ping timeout: 272 seconds]
<numkem> I was using clever repo as a reference and he got nothing like that so I was rather stuck
<clever> ldlework: connection timed out
<ldlework> hmm should be working
<ldlework> refresh?
<numkem> pie_: thank you! pie_++
<{^_^}> pie_'s karma got increased to 0o10
<pie_> ldlework: wow that looks kinda nice is that gnome or what
<ldlework> it's just qtile
<numkem> seems like the karma thing is useless?
<ldlework> but you see the glitching artifacts right?
<ldlework> this happened when I upgraded to unstable :(
<keithy[m]> That looks like my level
<cole-h> numkem: So what if it's useless? It's fun :)
<pie_> numkem: i think it just got some $fun added to it, not sure tho
<energizer> ldlework: i dont see artifacts
<clever> ldlework: it worked on the 2nd attempt, i dont see any glitching at all
<ldlework> what are you guys talking about
<clever> ldlework: it might be a problem between your GPU and the monitor?
<ldlework> look at the completion in chrome
<ldlework> the white bits
<ldlework> it happens in the video
<numkem> cole-h: useless in the sense of keeping count, I like to be appreciative :)
<ldlework> lol
<clever> ldlework: it looks completely normal to me
<energizer> ldlework: take a screenshot and draw an arrow or something
<mpiechotka> clever_: I seems to have 2 mutter installed after nix-collect-garbage and 4 unit-display-manager. Which decideds which one is actually used?
<mpiechotka> s/unit-display-manager/unit-display-manager.service/
<pie_> keithy[m]: did a quick gogole for nixos systemd path service and this looks relevant https://discourse.nixos.org/t/able-to-run-program-from-shell-systemd-unit-fails/530/2
<clever> mpiechotka: when you boot, the systemConfig= in the bootloader config says where to start
<clever> mpiechotka: that then gets symlinked to /run/current-system/
hlisp has quit [Ping timeout: 260 seconds]
<clever> mpiechotka: and /run/current-system/etc/ gets mapped/linked into /etc, where /etc/systemd/system/ then controls which display-managaer.service is used
user_0x58 has quit [Ping timeout: 252 seconds]
<ldlework> you're right it's not in the video
<ldlework> great
user_0x58 has joined #nixos
<ldlework> clever: energizer, pie_, https://www.youtube.com/watch?v=TzQywqXmBHs
<ldlework> It's much worse when the changes are larger, like windows appearing or dissapearing.
<energizer> i see it there, youre not crazy :)
Houtworm[m] has joined #nixos
wykurz has quit [Quit: Leaving]
<keithy[m]> by jove that did it path = [ pkgs.curl pkgs.jq ];
julm has quit [Remote host closed the connection]
<ldlework> When I reboot back to 19.whatever it doesn't happen at all.
<clever> ldlework: how is the monitor connected to the gpu?
<ldlework> Not a hardware issue.
<ldlework> it's a laptop
<clever> ah
<energizer> ldlework: x11 or wayland? driver?
<ldlework> I've just booted back into an old 19.0something and it's completely gone.
<ldlework> x11
julm has joined #nixos
<pie_> keithy[m]: the next step is to consider whether you could have done anything different so you get to the solution faster, iterate repeat
<mpiechotka> clever: Thanks. How to check which package is the upstream one?
<pie_> (though it doesnt always help)
<ldlework> energizer: driver?
<clever> mpiechotka: `nix-store -qR /run/current-system | grep mutter` what does this output?
<energizer> ldlework: services.xserver.videoDrivers
<keithy[m]> how did you find the example you howed me
<mpiechotka> clever: /nix/store/97bywhzi2y48h65a3m1lajfvgwqdgygy-mutter-3.34.5
<clever> mpiechotka: only one path?
<mpiechotka> clever: yes
<ldlework> energizer: I don't have that option anywhere in my config.
<clever> mpiechotka: then gdm should already be using that version directly
<ldlework> I'm not manually specifying video drivers..
<clever> mpiechotka: there is no other version it can see
<ldlework> I have
<ldlework> boot.extraModulePackages = [ pkgs.linuxPackages.nvidia_x11 ];
<clever> mpiechotka: and that version isnt in the binary cache, so its likely your custom one
<ldlework> and hardware.bumblebee = { enable = true; pmMethod = "none"; };
<energizer> ldlework: https://nixos.wiki/wiki/Nvidia
<ldlework> energizer: what about it
<energizer> ldlework: just linking in case it's helpful, i dont have insight
<ldlework> ah ok
<mpiechotka> clever Thanks for confirmation. Digging more
<ldlework> Well it does say that Bumblebee is deprecated.
<ldlework> Maybe that's it.
<ex-parrot> ok I'm read to submit a PR on the powerdns service in NixOS, does anyone want to have a glance over it first?
<ex-parrot> I've done a few things... moved it from using a big string for config to key / value, moved from "nobody" to a dedicated daemon user, fixed the CLI tools, updated the systemd unit to reflect current state of upstream
<keithy[m]> https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/boot/systemd-unit-options.nix in these files there is a lot of text, what is that text actually used for?
<ex-parrot> I believe it should work almost the same on upgrade except the user will change from nobody to pdns
<clever> mpiechotka: you can also run `nix-store --query --deriver /nix/store/97bywhzi2y48h65a3m1lajfvgwqdgygy-mutter-3.34.5` and then run `nix show-derivation` on that drv file
<clever> mpiechotka: that should show the modified mesonFlags
<ex-parrot> but hopefully that doesn't break anything since you shojldn't have had files owned by nobody anyway
<pie_> keithy[m]: i just googled for nixos systemd service path or somethin like that
dsiypl4_ has joined #nixos
<pie_> keithy[m]: the description fields?
<keithy[m]> yes
<pie_> well, its documentation
<keithy[m]> or are they simply pseudo comments in that file
<pie_> but things like https://nixos.org/nixos/options.html#zfs+boot use it
<keithy[m]> ahhh
<mpiechotka> clever: It looks like it replace mesonFlags instead of append them
<energizer> is something wrong with nixpkgs-unstable poetry2nix?
<clever> mpiechotka: then you want mesonFlags = old.mesonFlags ++ [ more flags ];
dsiypl4 has quit [Ping timeout: 256 seconds]
numkem has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
chagra_ has quit [Ping timeout: 260 seconds]
<keithy[m]> how might one run a service under a specific user
<clever> keithy[m]: set serviceConfig.User = "something";
<keithy[m]> ok I think im getting the hang of this!
<keithy[m]> where does one find the definition of an existing service, like say syncthing
<keithy[m]> ok found it
mpiechotka has quit [Quit: mpiechotka]
<ldlework> Well, I did the things the wiki says to do to setup NVidia on 20.09, and I still get graphical glitches.
<ldlework> [2428:2428:0509/231738.394962:ERROR:gl_surface_glx.cc(88)] glXGetFBConfigs failed.
<ldlework> When starting chrome.
<keithy[m]> btw the nixos options browser is broken in firefox
<ldlework> nvidia-offload glxgears
<ldlework> Error: couldn't get an RGB, Double-buffered visual
<ldlework> shitshow :(
<pistache> ex-parrot: I can have a look at it if you want, can you share a link to your branch ?
<ex-parrot> pistache: yep coming up
morgrimm has joined #nixos
<samueldr> keithy[m]: broken how? seems to work fine on my end
<ex-parrot> just working through the PR requirements at the moment
<keithy[m]> it doesnt update
<samueldr> what do you mean? stays empty with "Loading..."? Doesn't get new options added to master/unstable ?
<keithy[m]> ill shift refresh..
<ex-parrot> pistache: the "disabling chroot" thing might be a bit of an issue w.r.t breaking existing setups, I'm not sure how breakage tolerant people are on NixOS
<keithy[m]> its not updating when youtype
<samueldr> hm, weird
<keithy[m]> chrome is opening a whole new world
hlisp has joined #nixos
<pistache> ex-parrot: I'm more scared of the change from extraConfig to config
<ex-parrot> mm
<pistache> I think it's a good thing, but the way it's done currently it will break some existing setups
morgrimm has quit [Ping timeout: 264 seconds]
<ex-parrot> the only impact it should have is adding a "launch=bind" to existing setups
<ex-parrot> which iirc does essentially nothing
<ex-parrot> if you don't have further bind config in place
<pistache> ah, yes, you're right
<ex-parrot> but I will confirm that too, one sec
<pistache> ok, if it's a no-op if there's no further config then it may not be a problem
<ex-parrot> hmm it maybe isn't so good
<ex-parrot> you can launch multiple backends but they need to be in the same launch command
<ex-parrot> otherwise whichever one comes last just "wins"
<ex-parrot> by the look of it
sigmundv_ has quit [Ping timeout: 260 seconds]
<pistache> if extraConfig is appended, shouldn't it be fine then ?
<ex-parrot> I'm just confirming that
<ldlework> nvidia offload mode does not work in 20.09
<ex-parrot> pistache: yeah that does seem to be how it works
hlisp has quit [Ping timeout: 246 seconds]
<ex-parrot> it might be better to make the presence of launch= in the default dependent on whether "^launch=" is in the extraConfig though?
<ex-parrot> at least for a while
hlisp has joined #nixos
<pistache> you could also make config default to null when extraConfig is not null
<ex-parrot> ah yes, that seems even cleaner
<ex-parrot> I'll do that
<ex-parrot> presumably anyone with an existing extraConfig has everything in it they need for a working install
<pistache> yes
<ex-parrot> I just realised I left the "disable ..." line in too
<ex-parrot> from testing
<pistache> oh right, I missed that
<ex-parrot> I think I'll make the default be [] if extraconfig is set, that way the type checking doesn't need to ever allow a null
<ex-parrot> er {}
<pistache> ex-parrot: no need to provide an example that is the same as the default value
<ex-parrot> ok
<ex-parrot> what about the conditional default though?
<ldlework> eadwu[m]: Hello are you around?
<pistache> ex-parrot: ah right, I'm not sure what to do in that case
<ex-parrot> I'll PR it with the example for now I guess
<pistache> I'll try to look in nixpkgs for existing conditional defaults
<ex-parrot> thanks
<ex-parrot> I'm doing the same :P
Fare has quit [Ping timeout: 260 seconds]
<ex-parrot> or I could just provide a more useful example tbh
<pistache> ex-parrot: there's also defaultText
<ex-parrot> https://paste.hotplate.co.nz/d4JkRWe9F8#SUeDrNjFeN/J1v9CVXpWhw$nix <-- this works functionally at least
<pistache> but I'm not sure what the best way to do this, maybe the PR's review will ask you to do it differently
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87464 → libsForQt5.quazip: 0.8.1 -> 0.9 → https://git.io/JfW3y
<ex-parrot> all good, I'll see how it goes there
<pistache> ex-parrot: shouldn't socketDir be "/run/powerdns" ?
<ex-parrot> I had a look at what existing daemons do, and quite a lot of them drop their pidfile / control socket directly in /run
<ex-parrot> /run/powerdns would work too, it just means adding to the systemd config to make it set that up as a pre-start step
<ex-parrot> since powerdns won't do it
<ex-parrot> on my debian box here the pdns socket lives directly in /run
<pistache> ex-parrot: right, and you're not storing a pidfile anyway ?
<ex-parrot> right, not needed with systemd
<pistache> ok, so yeah it might be fine with /run/
<ex-parrot> I suspect that's where it's defaulting to anyway
<ex-parrot> but I wanted to be explicit to make sure e.g. pdns_control always finds it
<pistache> yes but before I suppose it was in the chroot's /run
<ex-parrot> oh true, it may have been. I'm not sure at what point it chroots tbh
<pistache> also that is the main remaining problem, I think (the chroot)
dsiypl4_ has quit [Quit: Leaving]
<ex-parrot> the cli tools were previously not even made available, so breaking them is unlikely
<pistache> as for example, existing SQLite databases will be sitting in /var/lib/powerdns/
<ex-parrot> mm, upstream advice is to not chroot anymore
<ex-parrot> well, existing sqlite probably won't exist, because the daemon was forced to run as "nobody"
<ex-parrot> though I guess people might have worked around that by making their database + dir owned by nobody too, but I hope not
<ex-parrot> that's why I started this whole thing :P
<pistache> everything is possible
<ex-parrot> mm
<ex-parrot> it is a concern...
<pistache> I'm not completely sure, but I think that such a change would only be allowed for a new NixOS release
<ex-parrot> ok, might have to keep the chroot for now then
<ex-parrot> ty for your help with this pistache, it's very valuable
<pistache> it might be best to do it in a separate PR anyway, so that the chroot thing doesn't block all of the other improvements
<ex-parrot> yeah, I'll split it up
<ex-parrot> good plan
<ex-parrot> chrooted pdns is suuuch a pain
<ex-parrot> I'll work on the chroot stuff tomorrow I think. I got my own machine working which was #1 goal at least :)
<pistache> yep that's always good :)
<ex-parrot> then, need to update the package to 4.2.2 though that seems more maintained
<ex-parrot> and I'd like to apply similar fixes to the bind package to get "rndc" working there
<pistache> can you PM me a link to the PRs when you submit them ? I'll test them with my existing setup and drop a review
<ex-parrot> that would be great, thanks. I'll make a note to do that
<pistache> cool! I'm checking out, need to sleep a bit. have a nice night/day/whatever :)
<ex-parrot> cya
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87465 → libsForQt5.qtutilities: 6.0.5 -> 6.0.6 → https://git.io/JfW3b
<ldlework> Can anyone help me get nvidia offload working on unstable?
<ldlework> pretty please.
<ex-parrot> pistache: seems the socketdir was previously /var/lib/powerdns
<ex-parrot> in line with the chroot
<ex-parrot> so that will definnitely need more thought
endformationage has quit [Quit: WeeChat 2.6]
booterror8 has joined #nixos
drakonis has quit [Quit: WeeChat 2.8]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87466 → python27Packages.yamllint: 1.21.0 -> 1.23.0 → https://git.io/JfWse
is_null has quit [Remote host closed the connection]
booterror has quit [Ping timeout: 272 seconds]
booterror8 is now known as booterror
<ldlework> eadwu[m]: I would love to talk to you about nvidia offload
<ldlework> (it doesn't work for me)
mpiechotka has joined #nixos
<mpiechotka> Ok. Found what is wrong. How to override setting which is set a module?
<mpiechotka> I want to use ibglvnd instead of mesa/...
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87467 → qbs: 1.15.0 -> 1.16.0 → https://git.io/JfWsJ
* mpiechotka reboots back to nix
mpiechotka has quit [Client Quit]
<ldlework> I need to write a bot to gather statistics to figure out when the best support hours are :P
<ex-parrot> I'm in NZ timezone
<ex-parrot> which, on IRC, is usually mostly dead during the day
user_0x58 has quit [Quit: Leaving]
Darkmatter66_ has joined #nixos
mpiechotka has joined #nixos
Darkmatter66 has quit [Ping timeout: 256 seconds]
<ldlework> I guess I will just forget about my GPU for now. Maybe things will improve by the time 20.09 is released.
palo1 has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87468 → qtpbfimageplugin: 2.1 -> 2.2 → https://git.io/JfWsB
EdLin has quit [Ping timeout: 256 seconds]
xelxebar has quit [Remote host closed the connection]
est31 has quit [Remote host closed the connection]
est31 has joined #nixos
xelxebar has joined #nixos
palo has quit [Ping timeout: 256 seconds]
palo1 is now known as palo
<mpiechotka> Ok. Found - mkForce - though it might be good to point out this in error message
mpiechotka has quit [Quit: mpiechotka]
shafox has joined #nixos
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/645fd4a2c05 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
noudle has joined #nixos
hlisp_ has joined #nixos
noudle has quit [Client Quit]
hlisp has quit [Ping timeout: 260 seconds]
alexherbo2 has joined #nixos
beww has joined #nixos
beww has quit [Client Quit]
<Taneb> The way Dwarf Fortress is packaged, .local/share/df_linux/data/init/macros ends up in the nix store, but I'd like this to be user-writeable
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87469 → qcad: 3.24.2.1 -> 3.24.3.4 → https://git.io/JfWsH
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/8fc744839bd (from 2 days ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
hooo has joined #nixos
<bqv> folks, what should i reply to this? I'm so close to telling him to do it himself if he thinks there's a better way, which is very passive aggressive, but i'm genuinely not sure how to not be passive-aggressive at this point. https://github.com/NixOS/nixpkgs/pull/85463#discussion_r422470199
<bqv> in fact, seriously, would someone like to just take that PR off my hands? it's not worth the stress
<{^_^}> [nixpkgs] @vcunat pushed to release-19.09 « Merge #87066: thunderbird*: 68.7.0 -> 68.8.0 (security) »: https://git.io/JfWsh
<{^_^}> [nixpkgs] @Pablo1107 opened pull request #87471 → perlPackages.StringInterpolate: init at 0.32 → https://git.io/JfWsj
shuwan4games has joined #nixos
shuwan4games has left #nixos [#nixos]
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to master: https://git.io/JfWGT
<{^_^}> [nixpkgs] @vcunat merged pull request #87237 → gcc10, gfortran10, gnat10: init at 10.1.0 → https://git.io/JfcCi
booterror8 has joined #nixos
booterror has quit [Ping timeout: 260 seconds]
booterror8 is now known as booterror
<{^_^}> [nixpkgs] @bqv closed pull request #85463 → guix: init at 1.1.0 → https://git.io/JfJ2Y
alp has joined #nixos
hlisp_ has quit [Remote host closed the connection]
hlisp has joined #nixos
shazow[m] has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87472 → redis: 5.0.8 -> 6.0.1 → https://git.io/JfWGd
ircuser5678 has joined #nixos
fabianhjr has quit [Quit: Leaving.]
quinn has quit [Quit: ZNC 1.7.5 - https://znc.in]
quinn has joined #nixos
<iqubic> Is it possible to get flash working in Firefox on Nixos?
<ashkitten> didn't firefox remove flash support before quantum released?
<ashkitten> you'd have to use an older version of firefox, i assume
oborot has quit [Ping timeout: 246 seconds]
<iqubic> Why did they do that?!?
<ashkitten> because flash is abandonware and a security risk now, and everyone has abandoned it at this point
<ashkitten> there are html5 flash implementations, if you need flash
tmaekawa has joined #nixos
<ashkitten> you might even be able to find a browser extension that will automatically emulate the flash plugin
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/14dd961b8d5 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<iqubic> Well, basically I want to play an old web game that only exists in flash form.
<ashkitten> you could try a standalone flash player or you could try a wrapper
<iqubic> Which is easier?
<ashkitten> don't know
vmallela[m] has joined #nixos
<energizer> bqv++ that's a good move for sanity
<{^_^}> bqv's karma got increased to 6
<bqv> :)
tmaekawa has quit [Client Quit]
<ldlework> Oh neat. Audio isn't working in 20.09 either.
quinn has quit [Quit: ZNC 1.7.5 - https://znc.in]
<ashkitten> 20.09 is already a channel?
<ldlework> well unstable
<ldlework> but it lists itself as 20.09
alexherbo2 has quit [Ping timeout: 260 seconds]
<ircuser5678> Hi. Is something wrong with the sshd service? I've added a RSA public key to my users.users.<my username>.openssh.authorizedKeys.keys entry (generated by putty on windows) but when I try to login it refuses the key. I'm using the correct private key file in putty, though...
<energizer> ircuser5678: did you `nixos-rebuild switch`?
<ex-parrot> also check that your public key starts "ssh-rsa ..." and not the PuTTY default format
<ircuser5678> energizer: no, 'nixos-rebuild test'
<ircuser5678> energizer: and yes, my key is a single line one with no line breaks and it starts with "ssh-rsa AA..."
<ex-parrot> you can check if it placed the contents in to /etc/ssh/authorized_keys.d/<username>
verdys has quit [Quit: Konversation terminated!]
<ircuser5678> ex-parrot: Mh, no, it didn't. I don't even have the authorized_keys.d subfolder
<ex-parrot> ok well... that's probably why it's not working :P but why it hasn't built that directory I don't know
<ircuser5678> well. me neither...
<JJJollyjim> is your user defined in users.users?
<JJJollyjim> it looks like only those users get their authorized keys added
<JJJollyjim> for some reason
<ircuser5678> JJJollyjim: Sure, I've set this up via users.users.<my username> = { isNormalUser = true; ... openssh.authorizedKeys.keys = [ "ssh-rsa AAA..." ]; };
hlisp has quit [Ping timeout: 272 seconds]
<JJJollyjim> oh right yeah that's how it works ignore me
hlisp has joined #nixos
h0m1 has quit [Quit: WeeChat 2.8]
h0m1 has joined #nixos
quinn has joined #nixos
tmaekawa has joined #nixos
Heirlung has quit [Read error: Connection reset by peer]
Heirlung- has joined #nixos
Heirlung- is now known as Heirlung
hlisp has quit [Remote host closed the connection]
pjt_014 has quit [Ping timeout: 260 seconds]
virus_dave has joined #nixos
alexherbo2 has joined #nixos
knupfer has joined #nixos
hlisp has joined #nixos
<fps> hmm, i'm trying to use nix-shell to compile and run a xonotic git checkout locally. i'm mostly successfull by using nix-shell -p [long list of packages
<fps> ]. the one thing missing though is i need to enable the build to load libcurl.so at runtime. and for this i need the path in the store of the curl package
<fps> how can i find this path? if i used a default.nix or shell.nix i could use the shellHook attribute i guess. but i just use -p
<fps> oh pkg-config works i guess :)
cole-h has quit [Quit: Goodbye]
<clever> fps: make a default.nix that contains: with import <nixpkgs> {}; stdenv.mkDerivation { name = "name"; buildInputs = [ long list of packages ]; }
<clever> fps: then you can just run nix-shell with no args, to get those packages again
awepfijas has joined #nixos
CMCDragonkai2 has joined #nixos
<fps> clever: yeah, the problem with that is that the build scripts are rather aggressive in deleting things upon running the clean target. but i guess i can put the derivation on level higher in the fs hierarchy
<fps> s/on/one/
<clever> fps: i also try to avoid putting any source in the root dir of the repo, because it complicates `src = ./.;` you will want later
Darkmatter66 has joined #nixos
<clever> fps: if you add `src = ./.;` to that file, and run nix-build, it will copy whatever is in ./. to the nix store, and then build from that copy of the source
<clever> fps: but, if that . is the root of your repo, it also includes .git and default.nix, so even doing `git fetch` will change the "source" without changing any source files, and nix will want to build again
<awepfijas> I built a nixos config and then manually switched to it via the switch-to-configuration. Also, I used nix-env to create a symlink to that new derivation in /nix/var/nix/profiles/system, however, on reboot, it always reverts back to the older derivation/config. Where do I have to set the config I want to boot too if i'm trying to replicate what
<awepfijas> nix-rebuild switch does manually?
Darkmatter66_ has quit [Ping timeout: 260 seconds]
<fps> clever: yeah, makes sense
<clever> fps: instead, doing `src = ./app;`, it will filter things better, and rebuild less often, only when the contents of app changes
<clever> awepfijas: was /boot mounted when you ran switch?
<fps> clever: thanks
ilikeheaps has quit [Ping timeout: 260 seconds]
<awepfijas> yes, the system was in completely running state and everything
ilikeheaps has joined #nixos
<awepfijas> basically just used `sudo $(realpath result/bin/switch-to-configuration) switch`
<clever> awepfijas: double-check that you have the right fs mounted to /boot/, that kind of issue usually happens if it isnt mounted
<clever> awepfijas: no need for the realpath there, symlinks will be followed automatically
<clever> fps: here is a bit more complex of an example: https://github.com/librerpi/rpi-open-firmware/blob/master/default.nix#L22
<clever> fps: line 31-38 builds a libcommon.a, for both arm and vc4
<clever> fps: lines 70-84 builds the arm chainloader for arm
<clever> fps: and lines 93-118 build a bootcode.bin for the rpi, using a vc4 cross-compiler, and line 101 copies the arm build of the chainloader into the right path before building
<{^_^}> [nixpkgs] @FRidh pushed 3 commits to python-unstable: https://git.io/JfWZA
<awepfijas> clever: as far as I can tell, /boot is mounted, fs is vfat. I can send my config that I'm using if that might help?
<clever> awepfijas: are you booting with efi or legacy?
<balsoft> awepfijas: I think you need to `nix-env` your system first, and then switch
tmaekawa has quit [Quit: tmaekawa]
<clever> balsoft: the nix-env step is mostly just to stop garbage collection from eating it, the switch is all that is needed to make it the default at boot
<balsoft> clever: ah, yes, right, I forgot that switch actually does do `boot`
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/e5e30909080 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> Channel nixpkgs-20.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/14dd961b8d5 (from 6 hours ago, history: https://channels.nix.gsc.io/nixpkgs-20.03-darwin)
<{^_^}> [nixpkgs] @vbgl opened pull request #87474 → ocamlPackages.mdx: 1.5.0 → 1.6.0 → https://git.io/JfWnf
<balsoft> Hmm, interesting, when I did it manually it required a `nix-env` first then switch
<awepfijas> i ran the switch command again and it seemed to work this time in actually changing the boot config.
iyzsong has quit [Ping timeout: 260 seconds]
<awepfijas> Yeah I'm not sure what I did differently, I'll ask again later if this issue pops up again. I'm basically trying to homebrew a replacement for nix-rebuild switch using a centralized build server and its going about as well as you would expect it to go for someone who has close to 0 experience with nix
leward[m] has joined #nixos
zannzen[m] has joined #nixos
mauamy[m] has joined #nixos
chloekek has joined #nixos
<clever> awepfijas: whats wrong with nixops?
iyzsong has joined #nixos
<awepfijas> I really dislike the way that nixchannels and nixpkgs pinning and stuff works, so I wanted to use flakes, however afaik, nixops doesn't work with flakes (might be very mistaken on that)
<clever> awepfijas: nixops basically just runs nix-build on <nixops/eval-machine-info.nix>, and then its just down to whatever that nix code does
<{^_^}> [nixpkgs] @FRidh pushed 86 commits to staging-next: https://git.io/JfWnm
<clever> awepfijas: currently, that includes an `import <nixpkgs>`, so you would need to `-I nixpkgs=something`
<clever> awepfijas: but if you do `nixops modify -d name foo.nix -I nixpkgs=something`, it gets saved into the nixops state file, and will affect all future deployments
maddo has joined #nixos
lord| has quit [Quit: https://i.imgur.com/xacQ09F.mp4]
<{^_^}> [nixpkgs] @FRidh pushed 87 commits to staging: https://git.io/JfWn3
<awepfijas> ok cool thank you. I'll take a look at just using nixops instead and using that.
<clever> awepfijas: and if your managing baremetal machines (or stuff manually provisioned elsehwere), your foo.nix can be this simple
<clever> awepfijas: lines 12 and 16 tell it what IP to ssh into when you deploy, nas.nix and router.nix then function the same way as the configuration.nix youve been building manually
lord| has joined #nixos
<ldlework> clever: can you try something for me real quick? can you install "sunvox" and tell me if it crashes on open (if you're running unstable)
<clever> ldlework: ive not updated my channel in a few months
ircuser5678 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<rooke> I'm following this documentation: https://github.com/NixOS/nixpkgs/blob/5f9a48d919c9806bc8cb1bdc1127ecb287941d69/doc/languages-frameworks/node.section.md to try and add an npm package to nixpkgs. `generate.sh` keeps failing to finish running as it can't find the source repository for jszip. Any ideas how to proceed?
awepfijas has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @vbgl merged pull request #86803 → ocamlPackages-wasm: 1.0 -> 1.1 → https://git.io/JfGYZ
<{^_^}> [nixpkgs] @vbgl pushed commit from @ggreif to master « ocamlPackages.wasm: 1.0 -> 1.1 (#86803) »: https://git.io/JfWnW
<ldlework> clever, anyone else: know why sunvox from unstable would crash on start due to not being able to use alsa/pulse/whatever? https://gist.github.com/dustinlacewell/3d07e38f1273b47b64dd9c86fd7e77e2
<rooke> I've tried deleting every mention of jszip I could find just to try and force it to work, it was only present in generated files, but it showed up again
<{^_^}> [nixpkgs] @FRidh pushed 5 commits to python-unstable: https://git.io/JfWn4
<clever> ldlework: is sunvox a 32bit or 64bit binary?
mallox has joined #nixos
<energizer> i got a hash mismatch for sunvox on nixos-unstable
mallox has quit [Client Quit]
<clever> ldlework: ah, probably not the arch, its listing 2 libasound_module_pcm_pulse.so's because its trying both the 64bit and 32bit ones
<clever> and its now 5am here, i should get to bed
<ldlework> energizer: yeah I fixed that locally with an override
orivej has joined #nixos
<energizer> how does a hash mismatch even get into nixos-unstable?
<clever> energizer: upstream could have changed things after it got in
mallox has joined #nixos
<energizer> s/dont they//
<energizer> how?
<ldlework> oh
<ldlework> "sunvox clearall" fixed the issue
<ldlework> energizer: they just reupload the file
<ldlework> to the same url
<rooke> er nevermind looks like pulling upstream changes fixed the problem, sleep deprive brain forgetting to check things like this
<energizer> oh i see, it's just fetching from some website not github
<ldlework> yeah
<clever> energizer: and the devs are naughty and changed the file on us
<energizer> indeed
<ldlework> oh no that didn't work
<clever> ldlework: what does the backtrace in gdb say?
<ldlework> audiodriver alsa
<ldlework> audiodevice hw:0,0
<ldlework> this in ~/.config/SunVox/sunvox_config.ini worked
<ldlework> NICE!!!
<ldlework> I got Orca working with SunVox
<ldlework> oh my god it only took over 12 hours!
* clever heads off to bed
quinn has quit [Quit: ZNC 1.7.5 - https://znc.in]
quinn has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed 8 commits to python-unstable: https://git.io/JfWna
orivej has quit [Ping timeout: 246 seconds]
quinn has quit [Quit: ZNC 1.7.5 - https://znc.in]
fusion809 has quit [Remote host closed the connection]
<evils> how do i run a nix-shell based on a local nixpkgs checkout?
<{^_^}> [nixpkgs] @FRidh pushed 5 commits to python-unstable: https://git.io/JfWnN
<balsoft> evils: NIX_PATH=nixpkgs=/path/to/local/checkout nix-shell ...
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
<evils> balsoft: my shell.nix takes `pkgs ? import <channel-name> {}`; when i use your suggestion it fails with "file 'channel-name' was not found in the nix search path"
<balsoft> Ah
<{^_^}> [nixpkgs] @FRidh pushed to python-unstable « pythonPackages.line_profiler: mark as broken »: https://git.io/JfWcI
<balsoft> Then just NIX_PATH=channel-name=/path/to/local/nixpkgs nix-shell ... , simple
iyzsong has joined #nixos
yuken has left #nixos ["Leaving"]
<evils> balsoft: ah, then i prefer the format `nix-shell -I nixos-unstable-small=. my-shell.nix` balsoft++
<{^_^}> balsoft's karma got increased to 4
<balsoft> evils: ^
<balsoft> evils: Yes, that works too :)
<evils> :( gnat10 also fails to work for building coreboot
dnlkrgr has joined #nixos
<balsoft> evils: What are you trying to coreboot? If it's somehow related to 51nb we might be on the same page soon
<{^_^}> [nixpkgs] @adisbladis merged pull request #86488 → nixos/doas: init → https://git.io/Jf3Ts
<{^_^}> [nixpkgs] @adisbladis pushed 3 commits to master: https://git.io/JfWct
<evils> balsoft: dunno what `51nb` is, i'm trying to build coreboot for my thinkpad t410, it's failing on building its own gcc saying "GNAT is required to build ada", but this is after not failing to find `gnat` xD
asbachb has joined #nixos
<balsoft> 51nb is a forum that makes custom thinkpad mobos
<evils> wow
<balsoft> I'm waiting for my X2100 (i7-10610u in X210 chassis) to be assembled by a reseller and sent to me, I'm planning on corebooting it :)
<balsoft> evils: maybe try another GNAT version?
justanotheruser has quit [Ping timeout: 256 seconds]
<evils> balsoft: i tried all, hence my attempt at running my coreboot shell from master since gnat10 just got merged
<balsoft> BTW if you succeed, please let me know, I might practice on my T420 before bricking the rather expensive custom-made mobo
justanotheruser has joined #nixos
<balsoft> Oh, you're just running from master? You don't need a local checkout for that
<balsoft> Just NIX_PATH=channel-name=https://github.com/nixos/nixpkgs/archive/master.tar.gz
<evils> was wondering about that as well, but i've often got stuff going from a local checkout so that seems like the more useful know-how
<balsoft> (Or nix-shell -I channel-name=...)
<balsoft> Can you share your expression for building it?
<evils> atm it's just the set of build dependencies; getting stuck on the "it's not finding GNAT" thing, or "no config available" if i go the "actually a package" route
alp has quit [Ping timeout: 246 seconds]
asheshambasta has joined #nixos
<evils> so far the build inputs i think i need are `m4 bison flex zlib gmp libmpc mpfr isl gnat curl git ncurses gcc`
<balsoft> evils: Hmm, have you seen https://nixos.wiki/wiki/Coreboot
<balsoft> I assume you have, just checking
<evils> i have not
<{^_^}> [nixpkgs] @etu merged pull request #75042 → oq: init at 1.0.2 → https://git.io/JeD9i
<{^_^}> [nixpkgs] @etu pushed 2 commits to master: https://git.io/JfWc8
<evils> gnat seems to be required by default and that only recently made it to nixpkgs, i didn't think to check for prior art
<evils> so far i've been following https://doc.coreboot.org/tutorial/part1.html
<balsoft> Maybe the instructions on wiki are for older coreboots
<evils> maybe, i just saw there's a GSoC 2020 project for making coreboot work with clang...
datakurre has quit [Ping timeout: 272 seconds]
<balsoft> That sounds like something RMS would hate... Non-free version of libreboot, built by an non-GPL-licensed toolchain...
Vikingman has quit [Ping timeout: 245 seconds]
<evils> luckily we still have that freedom
alexherbo2 has quit [Ping timeout: 264 seconds]
dermetfan has joined #nixos
<balsoft> Yeah, while I respect RMS and what he stands for, unfortunately his views are hardly compatible with modern IT. "Free or nothing" will usually be "nothing".
<balsoft> That said, I still have config.allowUnfree = false in my config
datakurre has joined #nixos
<evils> unfortunately i had to set that to true to do some good in the world
<evils> or use my computer as an electric space heater, depending on your view (foldingathome)
dozn has quit [Quit: I'm probably just changing some settings or have had an outage, I'll be back soon.]
turlando has quit [Remote host closed the connection]
dozn has joined #nixos
<balsoft> BTW apparently foldingathome is going FOSS soon
turlando has joined #nixos
<evils> not soon enough :P
<evils> btw, you wouldn't happen to have tried the memtest86+ (bios version) currently in nipkgs? (i've got a PR open for it, #85790, and haven't found anyone using it successfully)
<{^_^}> https://github.com/NixOS/nixpkgs/pull/85790 (by evils, 2 weeks ago, open): memtest86plus: 5.0.1-coreboot-002 -> 5.31b
hlisp has quit [Remote host closed the connection]
hlisp has joined #nixos
mallox has quit [Quit: WeeChat 2.8]
mallox has joined #nixos
hlisp has quit [Remote host closed the connection]
CMCDragonkai2 has quit [Ping timeout: 258 seconds]
eoli3n_ has joined #nixos
smatting has joined #nixos
hlisp has joined #nixos
eoli3n__ has joined #nixos
eoli3n___ has joined #nixos
eoli3n__1 has joined #nixos
ris has joined #nixos
<{^_^}> [nixpkgs] @DamienCassou opened pull request #87475 → nix-direnv: init at 2020.04.20 → https://git.io/JfWCi
thc202 has joined #nixos
mallox has quit [Quit: WeeChat 2.8]
mallox has joined #nixos
zupo has joined #nixos
eoli3n__ has quit [Remote host closed the connection]
eoli3n__ has joined #nixos
eoli3n__ has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @ggreif opened pull request #87476 → ocamlPackages.wasm: 1.1 -> 1.1.1 → https://git.io/JfWWf
hlisp has quit [Remote host closed the connection]
<Aleksejs_Home> hello, is it possible to roll back to 19.09? 20.03 is soooo broken
o1lo01ol1o has quit [Ping timeout: 256 seconds]
hlisp has joined #nixos
<infinisil> Aleksejs_Home: What's not working?
<balsoft> Aleksejs_Home: I'd recommend taking the bits that are not working from 19.09
<balsoft> And the rest from 20.03
<balsoft> Because using old versions of stuff has security implications
<Aleksejs_Home> many things. logind lid switch doesn't work anymore; i3 has some new annoying bug - it won't open terminals in new workspace if already opened in some other workspace; These are the most annoying ones
<balsoft> logind works for me on unstablew
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Aleksejs_Home> when I close lid, it does not go to sleep but opens xfce display settings
<balsoft> Sounds like you just need some configurations is all
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/596739026bb (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
<Aleksejs_Home> well I have a logind.lidSwitch = "suspend" and I also tried logind.HandleLidSwitch=suspend
hlisp has quit [Remote host closed the connection]
eoli3n__ has joined #nixos
<{^_^}> [nixpkgs] @dotlambda opened pull request #87477 → genxword: init at 2.0.1 → https://git.io/JfWWG
<Aleksejs_Home> I mean extraConfig=''HandleLidSwitch=suspend''
Noisytoot has joined #nixos
<balsoft> Works for me on unstable (I'm not using X though, maybe something in your i3 config is inhibiting the suspend?)
hlisp has joined #nixos
opthomasprime has joined #nixos
alp has joined #nixos
<{^_^}> [nixpkgs] @andir merged pull request #87439 → gopass: 1.9.0 -> 1.9.1 → https://git.io/JfWUD
<{^_^}> [nixpkgs] @andir pushed 2 commits to master: https://git.io/JfWWr
<Aleksejs_Home> I fixed logind thing by disabling xfce completely but that split bug is still there
<symphorien> what terminal do you use ?
__monty__ has joined #nixos
<Aleksejs_Home> terminator
<Aleksejs_Home> but it also affects when I simply try to launch any program with dmenu_run
<Aleksejs_Home> for example, I switch to workspace 3, try to launch ff, it is opened on workspace 1
<Aleksejs_Home> it disappears after I move any split to another workspace
vidbina has joined #nixos
<symphorien> huh. I'm also on xfce+i3 and cannot reproduce
<Aleksejs_Home> I switched to none+i3 now
<Aleksejs_Home> because of that lid bug
civodul has joined #nixos
orivej has joined #nixos
<symphorien> did you try to temporarily revert to the default i3 config ?
<Aleksejs_Home> I'll try it now, with other terminal as well
hlisp has quit [Remote host closed the connection]
<symphorien> about your first bug, maybe $ xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-lid-switch -n -t bool -s true
hlisp has joined #nixos
<symphorien> otherwise xfce tries to handle it instead of logind
zarel has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87478 → rednotebook: 2.18 -> 2.19 → https://git.io/JfWle
<symphorien> (you can also access this settings and the related ones with xfce4-settings-editor
<symphorien> )
zupo has joined #nixos
c0c0 has joined #nixos
dsg has quit [Remote host closed the connection]
zupo has quit [Client Quit]
zupo has joined #nixos
alp has quit [Ping timeout: 272 seconds]
opthomasprime has left #nixos [#nixos]
alexherbo2 has joined #nixos
zupo has quit [Client Quit]
<bqv> adisbladis: thats funny. I saw "doas" in scrollback and decided to try it out. Came back to suggest a nixos module for it, then realised that was what I spotted in scrollback
orcus has quit [Quit: ZNC 1.7.5 - https://znc.in]
<{^_^}> [nixpkgs] @dasj19 opened pull request #87479 → WIP arduino core upgrade. → https://git.io/JfWl8
orcus has joined #nixos
orcus has quit [Client Quit]
orcus has joined #nixos
<betawaffle> there's a keyboard shortcut that works in sway (and probably other place), but it isn't defined in my config. where can i look to find where it might be configured?
<betawaffle> places*
o1lo01ol1o has joined #nixos
<balsoft> Which shortcut exactly?
<betawaffle> in this case, ctrl+alt+<function key>
<{^_^}> [nixpkgs] @emmanuelrosa closed pull request #85219 → electrum-personal-server: init at 0.2.0 → https://git.io/JfeaY
<betawaffle> for vt switching
<balsoft> Umm, that't a good question, I don't know
<betawaffle> i want to know where that key is bound, how it can be changed, and what other things might be bound
<asbachb> Any ideas what might cause the message: error: cannot connect to daemon at '/nix/var/nix/daemon-socket/socket': Connection refused (running inside a container)
fendor has joined #nixos
<balsoft> asbachb: You need to systemctl restart nix-daemon , it
<balsoft> it's a known issue
<balsoft> Oh, running inside a container? That I don't know
<symphorien> betawaffle: I think it's kernel level
<symphorien> Just like sysrq
<balsoft> symphorien: interestingly, I have CAPS remapped to Ctrl and CAPS-Alt-<f2> works for me
<balsoft> (And ctrl-alt-<f2> doesn't)
<betawaffle> right, but there are other kernel-level key bindings that are overridden by a graphical environment
<balsoft> (remapped in sway, with XKB_DEFAULT_LAYOUT)
<betawaffle> i'm trying to understand how that is controlled
<symphorien> Oh.. My point was that it works in a tty...
<bdju> anyone happen to know if the haswell intel gpu situation has improved since kernel 5.3.11? I have to keep going back to 4.19 the last few times I try a newer kernel
<bdju> (it's not just haswell, but importantly to me includes haswell, and notably there were no issues on sandy bridge)
orcus has quit [Quit: ZNC 1.7.5 - https://znc.in]
<asbachb> balsoft: Do you have an issue number?
orcus has joined #nixos
<Aleksejs_Home> symphorien: after disabling terminator the bug disappeared. So, it looks like terminator somehow catches i3 bind, but only until I move a split...
<Aleksejs_Home> quite strange bug
zupo has joined #nixos
dsg has joined #nixos
dsg has quit [Client Quit]
<asbachb> balsoft: Thanks
dsg has joined #nixos
<{^_^}> [nixpkgs] @talyz merged pull request #86614 → php.buildPecl: Make it possible for PECLs to depend on other PECLs, fix apcu_bc and couchbase → https://git.io/Jf37B
<{^_^}> [nixpkgs] @talyz pushed 5 commits to master: https://git.io/JfWlp
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87480 → scala: 2.13.1 -> 2.13.2 → https://git.io/JfW8e
<asbachb> Should the nix-daemon be started on startup?
hlisp has quit [Remote host closed the connection]
vidbina has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @cdepillabout merged pull request #87206 → [haskell-updates] hackagePackages.neuron: Fix build → https://git.io/JfnxT
<{^_^}> [nixpkgs] @cdepillabout pushed 2 commits to haskell-updates: https://git.io/JfW8J
<LnL> nixos or another system?
<{^_^}> [nixpkgs] @romildo merged pull request #77054 → nixos/nvidia : added nvidia-persistenced → https://git.io/Jej0Y
<{^_^}> [nixpkgs] @romildo pushed 2 commits to master: https://git.io/JfW8U
hlisp has joined #nixos
<asbachb> LnL: NixOS
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @bjornfor opened pull request #87481 → gnomeExtensions.volume-mixer: bring it back and fix it → https://git.io/JfW8k
<LnL> I think it might be socket activated there
zupo has joined #nixos
<LnL> if so it would only start once you run a nix command
dnlkrgr has quit [Quit: WeeChat 2.6]
orcus has quit [Quit: ZNC 1.7.5 - https://znc.in]
orcus has joined #nixos
<{^_^}> [nixpkgs] @bjornfor merged pull request #87462 → qmmp: 1.3.7 -> 1.4.0 → https://git.io/JfWYK
<{^_^}> [nixpkgs] @bjornfor pushed commit from @r-ryantm to master « qmmp: 1.3.7 -> 1.4.0 »: https://git.io/JfW8Y
<{^_^}> [nixpkgs] @primeos pushed to master « isync: Add myself (@primeos) as maintainer »: https://git.io/JfW8n
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
MmeQuignon has joined #nixos
<asbachb> LnL: I guess I need to troubleshoot some more problems: https://gist.github.com/asbachb/38167d07d3a12fe4f92e8b1e3e932f68
<{^_^}> Channel nixos-19.09 advanced to https://github.com/NixOS/nixpkgs/commit/596739026bb (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-19.09)
<LnL> oh during activation?
cantstanya has quit [Remote host closed the connection]
cantstanya has joined #nixos
<LnL> that all the output you have?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87482 → remmina: 1.4.1 -> 1.4.3 → https://git.io/JfW8x
NeoCron has joined #nixos
<maddo> ongy[m]: are you the developer of waymonad? If yes, I wanted to ask the state of the project in light of the recent changes to wlroots (VRR and such)
<bqv> ooh waymonad, that sounds cool
<bqv> i think i would consider using that, if i weren't married to emacs
<ongy[m]> maddo: I am. Or was? Haven't done any work on it in nearly 2 years I think. Went from student with too much time, to working 40h/w...
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87483 → python27Packages.ROPGadget: 6.2 -> 6.3 → https://git.io/JfW4C
<ongy[m]> Pretty sure it doesn't compile against a recent version of wlroots either way. Sorry
<maddo> oh so it's dead ;;
<bqv> noo
<maddo> I'm currently in the process of learning haskell, might pick it up in the future to improve my skills
<maddo> (for the record, what are you using right now?)
<{^_^}> [nixpkgs] @bjornfor merged pull request #87201 → gnomeExtensions.clipboard-indicator: 30 -> 34 → https://git.io/JfnFu
<{^_^}> [nixpkgs] @bjornfor pushed commit from @r-ryantm to master « gnomeExtensions.clipboard-indicator: 30 -> 34 »: https://git.io/JfW4E
<ongy[m]> sway
<ongy[m]> And feel free to pick up the project. I'm still around to help you through the code. And I'd probably contribute, but I can't run it as one-man-show developer
<maddo> Thank you, I may bother you once this crisis is over, right now I don't have that much free time due to it
alp has joined #nixos
mallox has quit [Quit: WeeChat 2.8]
mallox has joined #nixos
ixxie has quit [Ping timeout: 256 seconds]
<LnL> asbachb: can you share the output of this? https://gist.github.com/LnL7/16e1aff46f044895543a4051ed85ce25
<{^_^}> [nixpkgs] @martinetd opened pull request #87484 → nixos/confinement: add i18n glibcLocales to confined services → https://git.io/JfWBJ
hlisp has quit [Remote host closed the connection]
ONDIE has joined #nixos
hlisp has joined #nixos
ONDIE has left #nixos [#nixos]
braunse has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
mallox has quit [Quit: WeeChat 2.8]
mallox has joined #nixos
Soo_Slow has joined #nixos
<LnL> hmm
<asbachb> It's running in a LXD container.
_kwstas has joined #nixos
_kwstas has quit [Client Quit]
webster23 has joined #nixos
<LnL> hmm yeah that doesn't work at all
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<LnL> asbachb: but a second switch without any other changes does succeed right?
noudle has joined #nixos
<asbachb> LnL: Seems to. Yes.
<asbachb> I'm also able to do persistens software changes like enable nginx via configuration.nix.
ddellaco1 has quit [Ping timeout: 258 seconds]
<LnL> ah, looks like that's fixed perhaps just not backported yet
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87485 → rsyslog: 8.2002.0 -> 8.2004.0 → https://git.io/JfWRC
<asbachb> Lnl: Do you have a commit / issue?
chloekek has quit [Quit: WeeChat 2.6]
chloekek has joined #nixos
<{^_^}> #72372 (by flokli, 27 weeks ago, closed): Activation script snippet "nix" failed
chloekek has quit [Client Quit]
chloekek has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87486 → sdate: 0.5 -> 0.6 → https://git.io/JfWR7
<LnL> no, was already added there
bqv has quit [Ping timeout: 260 seconds]
<LnL> the channel might not have updated since then however
bqv has joined #nixos
iyzsong has quit [Read error: Connection reset by peer]
iyzsong has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87487 → samplv1: 0.9.13 -> 0.9.14 → https://git.io/JfW0c
dnlkrgr has joined #nixos
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/596739026bb (from 6 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
janneke_ has joined #nixos
<emily> TIL nixos/confinement!
<arianvp[m]> Yeh cool right!?
<arianvp[m]> Wish it was used by default
seku has joined #nixos
bqv has quit [Ping timeout: 265 seconds]
D_ has joined #nixos
m0rphism has joined #nixos
janneke has quit [Ping timeout: 272 seconds]
<pbogdan> anyone know why the unstable channel is still stuck?
Streetwalrus has quit [Quit: ZNC 1.7.5 - https://znc.in]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87488 → snd: 20.2 -> 20.3 → https://git.io/JfWEJ
<gchristensen> from the update log, release is: nixos-20.09pre225009.085282aa4ea (build 118714565) -> error: in package ‘php’: this derivation has bad 'meta.outputsToInstall' in generate-programs-index
Streetwalrus has joined #nixos
<LnL> wait generate index?
<LnL> I thought about that but doesn't it happen during the build?
<gchristensen> I don't know if hydra runs it, but the one in the channel is definitely run by nixos-channel-programs
janneke_ is now known as janneke
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87489 → seafile-shared: 7.0.6 -> 7.0.7 → https://git.io/JfWEO
elux has joined #nixos
<elux> hi
<LnL> uhoh, that uses nix directly
<elux> does anyone know how to make use of https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/mobile/androidenv ? im trying to setup a basic android dev environment with android-studio and command line programs like adb and emulator
<LnL> gchristensen: time for some nix ffi in ofborg?
<gchristensen> oh maybe yeah :x
<emily> arianvp: never mind, life is pain "The 'serviceConfig' option 'DynamicUser' for service 'acme-dns' is enabled in conjunction with 'confinement.enable'."
<elux> is there a way to list the pkgs available within "androidenv" ?
noudle has quit []
<emily> arianvp: hm, the commit that added that assertion documents it as not working at all, but it worked for me...
<emily> ohhh
<emily> confinement sets up the mounts imperatively at service startup and that's why / has to be writable? yuck
<arianvp[m]> Emily I have a WIP pr with fixes for this
<{^_^}> #64405 (by arianvp, 44 weeks ago, open): nixos/systemd-confinement: Fix DynamicUser support
<arianvp[m]> But I kind of forgot about it
<arianvp[m]> Feel free to pick it up though. Or poke me to pick it up :p
<emily> but, I don't really understand why you'd take this approach of making a bunch of mutable tmpfses
<emily> why not just create a static RootDirectory in the nix store?
bqv has joined #nixos
<emily> I'm not really sure why those directories are needed anyway, BindReadOnlyPaths seems to work even with directories that don't exist in the target filesystem for me
<arianvp[m]> I'm completely out of the loop again so I don't know
<arianvp[m]> :')
<emily> fair enough :p
<emily> I think I might just write a manual static RootDirectory thing for this service to see how it would work out
<emily> and see if that can be backported to confinement
<emily> oof, it's a shame that closureInfo requires a build step
<elux> how come androidenv doesnt show up on nixos packages site?
<edef> you could use closureInfo to generate a drop-in file, maybe?
<edef> (like, a systemd drop-in)
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87490 → syslogng: 3.26.1 -> 3.27.1 → https://git.io/JfWE0
<elux> also.. nix-env -qaP '.*androidenv.*' doesnt return anything, yet ive installed androidenv.androidPkgs_9_0.platform-tools just fine.. im confused
asbachb has quit [Ping timeout: 245 seconds]
esemds_ has joined #nixos
YaoiFangirl420[m has joined #nixos
esemds_ is now known as hasan_esemds
hlisp has quit [Remote host closed the connection]
<LnL> nested sets are not recursed by default
<LnL> nix-env -qaP '.*' -f '<nixpkgs>' -A androidenv.androidPkgs_9_0
ixxie has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87491 → gitAndTools.svn-all-fast-export: 1.0.17 -> 1.0.18 → https://git.io/JfWuk
<emily> arianvp: "Failed to set up mount namespacing: /nix/store/f6dl8jwqigx9ddmhfmlibzk2hjf0p313-acme-dns-root/etc/hosts: No such file or directory", strange
<emily> is that the symlink thing the confinement module mentions, I wonder...
<emily> it works without RootDirectory= which is the odd thing
<emily> I'm not sure why it'd be looking for BindReadOnlyPaths relative to RootDirectory
<arianvp[m]> There are some quirks and assumptions in systemd source code I remember running into
<arianvp[m]> Not sure if that's this.
<arianvp[m]> But systemd is a little insane sometimes
<emily> it just confuses me because from my understanding of RootDirectory + BindReadOnlyPaths, confinement.enable shouldn't work at all
<emily> because it should be looking for all these store paths relative to the near-empty RootDirectory
<emily> going by the behaviour I'm observing
<emily> maybe it's different if they're in separate unit files?? I would hate that so much
<arianvp[m]> My idea was to calculate closure of package . Our those in BindReadOnlyPaths and not use Root directory at all
<arianvp[m]> Use those*
<emily> yeah
<arianvp[m]> I'm pretty sure RootDirectory= still makes BindReadOnlyPaths look on the host
<emily> I have an ulterior motive to set RootDirectory: systemd-analyze security penalizes you for not doing it :'(
<emily> arianvp: then I really, really don't understand why it'd be looking for /nix/store/f6dl8jwqigx9ddmhfmlibzk2hjf0p313-acme-dns-root/etc/hosts
<arianvp[m]> Then we patch systemd-analyze
<emily> that's a simple concatenation of the RootDirectory and the "-/etc/hosts:/etc/hosts" BindReadOnlyPaths entry
<emily> hm
<arianvp[m]> :p
<emily> /etc/hosts is a symlink so I think this might just be choking on symlinks really unhelpfully
<arianvp[m]> Maybe you are right
<emily> thanks for the pointers, anyway :)
<arianvp[m]> Yep good luck with the debugs
<arianvp[m]> Maybe systemd follows symlinks indeed
wavirc22 has quit [Read error: Connection reset by peer]
<emily> the worst thing about sandboxing is you can't just drop in an strace
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87492 → sysstat: 12.3.1 -> 12.3.2 → https://git.io/JfWu1
wavirc22 has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
morgrimm has joined #nixos
<arianvp[m]> You can drop into an existing units sandbox with systemd-run iirc
<arianvp[m]> With the --tty flag
<arianvp[m]> Also setting systemd's loglevel to debug helps
<arianvp[m]> It prints a lot of useful info
<arianvp[m]> Can be changed on demand with systemd-analyze loglevel
morgrimm has quit [Ping timeout: 264 seconds]
<emily> yeah but the hardening options breakg strace :p
layus[m] has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to master « gns3-{gui,server}: 2.2.7 -> 2.2.8 »: https://git.io/JfWzB
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87493 → serd: 0.30.2 -> 0.30.4 → https://git.io/JfWzK
medvid has joined #nixos
wavirc22 has quit [Read error: Connection reset by peer]
wavirc22_ has joined #nixos
<bdju> Should I have Firefox 76 if I'm on NixOS Unstable? I don't seem to have it yet. "About" says 75.0 still. Also, is there a way to check package versions through Nix? Something like "pacman -Qs" on Arch, maybe.
medvid_ has quit [Ping timeout: 260 seconds]
<b42> bdju: if it's installed through configuration nix then you can do nix-store -qR /run/current-system | grep firefox
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87494 → SPAdes: 3.14.0 -> 3.14.1 → https://git.io/JfWgk
<{^_^}> [nixpkgs] @primeos pushed to master « tdesktop: 2.1.2 -> 2.1.4 »: https://git.io/JfWgL
<bdju> b42: it's installed through home-manager
<bdju> I just tried your command with something in my configuration.nix and it does output what I want, though, so thank you for that. I just have to see if home-manager can do something similar.
<{^_^}> [nixpkgs] @Mic92 merged pull request #87283 → dino: allow newer versions of libsignal-protocol-c → https://git.io/JfcdC
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JfWgZ
<evils> bdju: the nixos-unstable channel has been stuck for 11 days, the nixpkgs channel has 76, to check versions i usually do something like `nix search -u --json "firefox" | jq`
<evils> s/to check versions/to check available versions/
<bdju> Never heard of jq. Seems I don't have it installed. Thanks for the tip, though. I will try that in a second.
<bdju> Ah, it's for json stuff. Interesting.
<evils> bdju: jq pretty prints json data if no options are used to query the input
hlisp has joined #nixos
wavirc22_ has quit [Read error: Connection reset by peer]
wavirc22 has joined #nixos
<emily> 76? ouch
<evils> emily: the nixpkgs channel has firefox version 76, not 76 days of stuckness
<emily> oh
<emily> that's less scary
<{^_^}> [nixpkgs] @xwvvvvwx opened pull request #87495 → Bazarr → https://git.io/JfWgr
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87496 → snakemake: 5.15.0 -> 5.16.0 → https://git.io/JfWgo
<maralorn> btw: Is there an unused variable warner for nix? I believe we could find a lot of dead code in my config and nixpkgs …
<{^_^}> [nixpkgs] @primeos pushed to master « jekyll: 4.0.0 -> 4.0.1 »: https://git.io/JfWgK
cinimod has joined #nixos
<bdju> Looks like normal Firefox is still 75 but there's a dev edition with 76 unless my results are out of date for some reason.
<bdju> I noticed firefox-wayland. Does that replace regular firefox? Maybe I should be using that.
<b42> bdju: there's probably a better way but for h-m you can do nix-store -qR /nix/var/nix/profiles/per-user/`whoami`/home-manager
bqv has quit [Ping timeout: 260 seconds]
knupfer has quit [Quit: knupfer]
knupfer1 has joined #nixos
knupfer1 has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
MmeQuignon has quit [Quit: WeeChat 2.8]
knupfer has quit [Client Quit]
knupfer has joined #nixos
iyzsong has quit [Read error: Connection reset by peer]
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
hlisp has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87497 → stacks: 2.52 -> 2.53 → https://git.io/JfW2k
<{^_^}> [nixpkgs] @ryantm merged pull request #87467 → qbs: 1.15.0 -> 1.16.0 → https://git.io/JfWsJ
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JfW2L
<{^_^}> [nixpkgs] @ryantm merged pull request #87460 → qbittorrent: 4.2.2 -> 4.2.5 → https://git.io/JfWYO
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JfW2Y
cinimod` has joined #nixos
<bdju> b42: that works pretty well, thank you!
<{^_^}> [nixpkgs] @marsam merged pull request #87485 → rsyslog: 8.2002.0 -> 8.2004.0 → https://git.io/JfWRC
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfW23
bqv has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87498 → smplayer: 19.10.2 -> 20.4.2 → https://git.io/JfW2G
cinimod has quit [Ping timeout: 256 seconds]
<{^_^}> [nixos-weekly] @kolloch opened pull request #119 → 2020/05: Adding "Nix: Re-running Fixed Output Derivations" → https://git.io/JfW2W
M-Gregoire495 has quit [Remote host closed the connection]
<maddo> ongy[m] since you've gone from way/xmonad to sway, is there something like xmonad layout in i3/sway?
<fps> hmm, how cani override the kernel version of pkg.linuxPackages_rpi4 to 4.4.50?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87499 → squashfs-tools-ng: 0.9 -> 0.9.1 → https://git.io/JfW2u
<evils> anyone have an idea why adding `shellHook = " exec zsh ";` to my shell.nix causes an `#include` to fail?
hlisp has joined #nixos
<srk> maddo: :D I've struggled with that as well, had to add few xmonad like bindings to i3. they work differently though so layouts are probably harder
<{^_^}> [nixpkgs] @Atemu opened pull request #87500 → jc: 1.10.7 -> 1.10.10 → https://git.io/JfW2V
<maddo> layouts are the number one reason I prefer Xmonad to i3
<maddo> I have... nonstandard monitors
<ongy[m]> maddo: not that I know of. Though I don't mind that much. Since it's still possible to build any layout, just a bit more manual. Though I do miss my greedyView a lot, then again I think that's possible to configure in as well.
<maddo> (an ultrawide and a 3:2)
<ongy[m]> I use an 21:9 (3840x1600) at work with i3wm
<srk> I was forced to use i3 as xmonad on armv7 was no go but it should be fine now, using both is quite confusing
<fps> drats. pkgs.linuxPackages_rpi4.override doesn't work :)
<fps> rror: attribute 'override' missing, at ...
<{^_^}> [nix] @LnL7 opened pull request #3584 → nix-env: add --outputs flag → https://git.io/JfW2i
<ongy[m]> maddo: but if layouts is all you need, you can take a look at the IPC protocol sway supports. I'm pretty sure it should be possible to do something like that. Navigation would be the sway 2D style though
<craige> I'm hitting "invalid byte sequence" in a fairly simple Hackyll deploy, There are a _lot_ of olld issues pointing the finger at locale_Archive setting but none of the solutions appear to work, for me. Has anyone else hit this recently and if so, what have been your workarounds?
<maddo> ongy[m]: since I'm looking to learn haskell anyway, might as well restart your project once I get familiar with wayland as well
<maddo> who knows, I might make you switch back ;)
<maddo> (also that logo is absolutely fucking amazing)
hooo has quit []
<ongy[m]> hehehe. just one tipi: Remove the multi-seat support and move back to proper zippers if you do. It makes stuff more compilcated and isn't necessary. I thought it might be cool for drawing-tablet support, but nope
philr has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @bjornfor merged pull request #87357 → nixos/tests/gitdaemon: fix spurious test failures due to flaky network → https://git.io/JfCVz
<{^_^}> [nixpkgs] @bjornfor pushed commit from @andir to master « nixos/tests/gitdaemon: fix spurious test failures due to flaky network »: https://git.io/JfW25
<{^_^}> [nixpkgs] @bjornfor merged pull request #87348 → resilio-sync: 2.6.4 -> 2.7.0 → https://git.io/JfCED
<{^_^}> [nixpkgs] @bjornfor pushed commit from @danieldk to master « resilio-sync: 2.6.4 -> 2.7.0 »: https://git.io/JfW2A
<{^_^}> [nixpkgs] @bjornfor merged pull request #87344 → nixos/(raspberrypi|uboot)-builder : fix cross using buildPackages → https://git.io/JfCRP
<{^_^}> [nixpkgs] @bjornfor pushed 2 commits to master: https://git.io/JfWaf
tewfik5 has joined #nixos
tewfik5 has left #nixos [#nixos]
<{^_^}> [nixpkgs] @ajs124 opened pull request #87501 → ior: 3.0.1 -> 3.2.1 → https://git.io/JfWat
<evils> balsoft: adisbladis: i managed to build coreboot, manually in a nix-shell: https://git.io/JfWaL
<emily> arianvp: something I don't understand about containment: what's with the excludedPath stuff?
<{^_^}> [nixpkgs] @veprbl merged pull request #87496 → snakemake: 5.15.0 -> 5.16.0 → https://git.io/JfWgo
<{^_^}> [nixpkgs] @veprbl pushed commit from @r-ryantm to master « snakemake: 5.15.0 -> 5.16.0 (#87496) »: https://git.io/JfWa3
<balsoft> evils: cool!
<emily> arianvp: afaict it never works if you have more than one root path, but even when you do, I don't know why you'd want to exclude the directly referenced package from the bind mounts
<emily> ohhhh
alexherbo2 has joined #nixos
<emily> you're excluding the file with the rootPaths itself
orivej has joined #nixos
<emily> that's confusing :p
<balsoft> evils: what command did you use to build it (and also, please recommend a coreboot noob some config options for T420/T410 (I assume they're similar))
<evils> balsoft: my t410 is still locking up randomly :P i followed this https://doc.coreboot.org/tutorial/part1.html
<evils> basically, `make crossgcc-i386 CPUS=$(nproc)` ; `make menuconfig` (select lenovo and t410); `make` ; this yielded build/coreboot.rom
<evils> i'm quite hesitant to experiment too vigorously since the t410 requires a full teardown to get to the SPI flash chip
<evils> woeps, just noticed i used `propagatedNativeBuildInputs`, should be `nativeBuildInputs`
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/eb639a82e01 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<balsoft> evils: thanks
<balsoft> How are you flashing it?
<balsoft> Is there a way to do it without hacking together an SPI programmer?
<evils> balsoft: lets move to #nixos-chat ?
<balsoft> Yes, true
<srk> balsoft: rpi is a good spi programmer :)
<craige> Your IRC logs saved the day again - thanks samueldr++ \o/
<{^_^}> samueldr's karma got increased to 225
<balsoft> srk: I have enough AVR-based microcontrollers for that
ravndal has quit [Quit: WeeChat 2.8]
Noisytoot has quit [Ping timeout: 240 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
cjpbirkbeck has joined #nixos
alfborge[m] has joined #nixos
zupo has quit [Ping timeout: 260 seconds]
hlisp_ has joined #nixos
ravndal has joined #nixos
hlisp has quit [Ping timeout: 264 seconds]
marsh has quit [Quit: No Ping reply in 180 seconds.]
marsh has joined #nixos
cole-h has joined #nixos
sigmundv_ has joined #nixos
elibrokeit has quit [Quit: A random quit message]
zupo has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #83736 → libsignal-protocol-c: 2.3.2 -> 2.3.3 → https://git.io/Jv7c4
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JfWwm
<{^_^}> [nixpkgs] @MarcWeber opened pull request #87503 → realsense + examples + udev rules → https://git.io/JfWwO
elibrokeit has joined #nixos
<eadwu[m]> abathur: Yep
ATuin has joined #nixos
<{^_^}> [nixpkgs] @stigtsp opened pull request #87504 → oq: fix build → https://git.io/JfWwc
<eadwu[m]> ldlework: I should be idling somewhere for the next 12 hours but I'll be here so ping me when you're online
o1lo01ol1o has quit [Remote host closed the connection]
mpiechotka has joined #nixos
<mpiechotka> Hi. Day 2 of my attempts with nixos - when I try chsh from user it seems to get overriden by the rebuild. When I set shell = in the configuration.nix it breaks the DM. Any ideas?
<{^_^}> [nixpkgs] @bjornfor merged pull request #87499 → squashfs-tools-ng: 0.9 -> 0.9.1 → https://git.io/JfW2u
<{^_^}> [nixpkgs] @bjornfor pushed commit from @r-ryantm to master « squashfs-tools-ng: 0.9 -> 0.9.1 »: https://git.io/JfWwV
alp has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87505 → spirv-headers: 1.5.1 -> 1.5.3 → https://git.io/JfWwP
cr4y1 has joined #nixos
mallox has quit [Quit: WeeChat 2.8]
<symphorien> to what shell do you set it ?
<symphorien> I doubt non-posix shells will go a long way.
Guest83678 has joined #nixos
<symphorien> mpiechotka: ^
<Guest83678> hello
hasan_esemds has quit [Quit: Connection closed for inactivity]
Guest83678 has left #nixos [#nixos]
<mpiechotka> symphorien: pkgs.zsh
alp has joined #nixos
oborot has joined #nixos
<mpiechotka> symphorien: The problem is that it doesn't find .application files. $PATH seems to work fine
<symphorien> what is a .application file ?
<mpiechotka> symphorien: So Alt+F2 works. It is just launching apps from 'menu' (or overview in gnome-shell) that is broken
<symphorien> you mean .desktop files ?
<mpiechotka> symphorien: Sorry. Yes. Still before my first coffee
<symphorien> how do you know this is related to zsh ?
<mpiechotka> symphorien: I mixed u as it is in /usr/sahre/applications
<mpiechotka> symphorien: Because I can turn it on and off by commenting the shell = pkgs.zsh in configuration.nix
<symphorien> try programs.zsh.enable = true;
<mpiechotka> symphorien: I already have it
<symphorien> hum strange. and i'm not using gnome-shell so...
<mpiechotka> Ok. NM. I think I might found the issue
swapgs has quit [Ping timeout: 272 seconds]
<emily> symphorien: I have shell = pkgs.fish and it works just fine
<emily> but admittedly "non-POSIX, non-fish" never worked for me
<symphorien> yes there are special cases for fish iirc
<mpiechotka> I had paths set in .profile which might worked on FHS
<mpiechotka> I commented them out and see if this will work
mpiechotka has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87506 → stress-ng: 0.11.07 -> 0.11.08 → https://git.io/JfWwp
mpiechotka has joined #nixos
<mpiechotka> Yeah. That was it - though I wonder why bash didn't read .profile.
bqv has quit [Ping timeout: 272 seconds]
swapgs has joined #nixos
swapgs has quit [Changing host]
swapgs has joined #nixos
bqv has joined #nixos
o1lo01ol1o has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knupfer has quit [Read error: Connection reset by peer]
knupfer has joined #nixos
<emily> arianvp: so it turns out that if you set DynamicUser then TemporaryFilesystem = "/:ro" is basically just ignored and everything is terrible. ouch. all the careful path-limiting I was doing was basically a nop
knupfer has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
knupfer has joined #nixos
eoli3n__ has quit [Ping timeout: 246 seconds]
mpiechotka has quit [Quit: mpiechotka]
eoli3n__1 has quit [Ping timeout: 260 seconds]
saimen has joined #nixos
Cale has quit [Ping timeout: 260 seconds]
fendor has quit [Read error: Connection reset by peer]
sarcasticadmin has quit [Ping timeout: 240 seconds]
Mateon1 has quit [Ping timeout: 256 seconds]
mpiechotka has joined #nixos
Mateon1 has joined #nixos
saimen has quit [Quit: WeeChat 2.8]
zeta_0 has joined #nixos
noudle has joined #nixos
zeta_0 has left #nixos [#nixos]
foldingcookie has left #nixos [#nixos]
<mpiechotka> That's probably a stupid question. I'm organizing /etc/nixos/ and in hardware-configuration.nix it's written not to modify this file as nixos-generate-config can overwrite it. I presume after installation is done it won't be overwritten?
<mpiechotka> And I can move the entries from there to subfiles.
<clever> mpiechotka: you can re-run nixos-generate-config to update hardware-configuration.nix
simba1 has joined #nixos
avn has quit [Ping timeout: 272 seconds]
KeiraT has quit [Ping timeout: 240 seconds]
Cale has joined #nixos
KeiraT has joined #nixos
andromeda-galaxy has quit [Ping timeout: 272 seconds]
andromeda-galaxy has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87507 → skrooge: 2.21.1 -> 2.22.1 → https://git.io/JfWrX
chloekek has quit [Ping timeout: 240 seconds]
ddellacosta has joined #nixos
Mateon1 has quit [Ping timeout: 256 seconds]
monokrome has quit [Ping timeout: 272 seconds]
Fare has joined #nixos
domogled has quit [Quit: domogled]
domogled has joined #nixos
mpiechotka has quit [Quit: mpiechotka]
<{^_^}> Channel nixos-20.03 advanced to https://github.com/NixOS/nixpkgs/commit/14dd961b8d5 (from 15 hours ago, history: https://channels.nix.gsc.io/nixos-20.03)
monokrome has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87508 → serviio: 2.0 -> 2.1 → https://git.io/JfWr5
sarcasticadmin has joined #nixos
sarcasticadmin has quit [Ping timeout: 264 seconds]
alexherbo2 has quit [Ping timeout: 260 seconds]
freeman42xy has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87509 → sec: 2.8.2 -> 2.8.3 → https://git.io/JfWrp
fendor has joined #nixos
freeman42xy has left #nixos [#nixos]
hlisp has joined #nixos
hlisp_ has quit [Ping timeout: 256 seconds]
bqv has quit [Ping timeout: 265 seconds]
hlisp has quit [Remote host closed the connection]
hlisp has joined #nixos
alexherbo2 has joined #nixos
alexherbo2 has quit [Client Quit]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87512 → suricata: 5.0.2 -> 5.0.3 → https://git.io/JfWon
avn has joined #nixos
Fare has quit [Ping timeout: 272 seconds]
bqv has joined #nixos
Mateon1 has joined #nixos
hlisp has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87513 → solr: 8.5.0 -> 8.5.1 → https://git.io/JfWoi
<{^_^}> [nix-mode] @j-piecuch opened pull request #98 → Improve symbol tokenization. → https://git.io/JfWo1
<{^_^}> [nixpkgs] @jonringer merged pull request #87449 → python27Packages.pyvmomi: 6.7.1.2018.12 -> 7.0 → https://git.io/JfWLQ
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.pyvmomi: 6.7.1.2018.12 -> 7.0 »: https://git.io/JfWoS
jumper149 has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #87456 → python27Packages.treq: 18.6.0 -> 20.4.1 → https://git.io/JfWqp
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.treq: 18.6.0 -> 20.4.1 »: https://git.io/JfWoN
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
tnias has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87514 → solarus-quest-editor: 1.6.2 -> 1.6.4 → https://git.io/JfWKe
<{^_^}> [nixpkgs] @jonringer merged pull request #87509 → sec: 2.8.2 -> 2.8.3 → https://git.io/JfWrp
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « sec: 2.8.2 -> 2.8.3 »: https://git.io/JfWKq
<{^_^}> [nixpkgs] @jonringer merged pull request #87506 → stress-ng: 0.11.07 -> 0.11.08 → https://git.io/JfWwp
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « stress-ng: 0.11.07 -> 0.11.08 »: https://git.io/JfWK3
<{^_^}> [nixpkgs] @etu merged pull request #87504 → oq: 1.0.2 -> 1.1.0, fix build → https://git.io/JfWwc
<{^_^}> [nixpkgs] @etu pushed 3 commits to master: https://git.io/JfWKc
<{^_^}> [nixpkgs] @jonringer merged pull request #87512 → suricata: 5.0.2 -> 5.0.3 → https://git.io/JfWon
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « suricata: 5.0.2 -> 5.0.3 »: https://git.io/JfWK8
<{^_^}> [nixpkgs] @jonringer merged pull request #87482 → remmina: 1.4.1 -> 1.4.3 → https://git.io/JfW8x
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « remmina: 1.4.1 -> 1.4.3 »: https://git.io/JfWK4
<{^_^}> [nixpkgs] @jonringer merged pull request #87489 → seafile-shared: 7.0.6 -> 7.0.7 → https://git.io/JfWEO
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « seafile-shared: 7.0.6 -> 7.0.7 »: https://git.io/JfWKE
<{^_^}> [nixpkgs] @jonringer merged pull request #87459 → python37Packages.zeroconf: 0.24.5 -> 0.26.0 → https://git.io/JfWmy
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.zeroconf: 0.24.5 -> 0.26.0 »: https://git.io/JfWK2
<{^_^}> [nixpkgs] @jonringer merged pull request #87497 → stacks: 2.52 -> 2.53 → https://git.io/JfW2k
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « stacks: 2.52 -> 2.53 »: https://git.io/JfWKK
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87515 → synthv1: 0.9.13 -> 0.9.14 → https://git.io/JfWKP
matthewcroughan has joined #nixos
<matthewcroughan> Hey again!
<matthewcroughan> So, I'm confused about something. I've always thought of NixOS as allowing me to have portability between systems. In some cases this works, let's say you have two laptops and you want to take your entire config and boot it on there, that works!
wavirc22 has quit [Ping timeout: 264 seconds]
<matthewcroughan> But in the case of a raspberry pi, I can't just take the configuration.nix from my desktop and boot it on my Pi, what is the recommended thing to do in this case? Do I have to have two separate configuration.nixes for that case? Or is there something I can do with the functional programming that lets me check what platform I'm on?
ddellacosta has quit [Ping timeout: 272 seconds]
<jumper149> You can modularize your configuration.nix and share only parts of it.
<jumper149> matthewcroughan: The same way that hardware-configuration.nix is modularized by default.
<cole-h> lukegb++ Looks like you did indeed fix the issue with your PHP PR :)
<{^_^}> lukegb's karma got increased to 1
NeoCron has quit [Ping timeout: 256 seconds]
<lukegb> Hooray
<lukegb> Accidentally fixing issues
chloekek has joined #nixos
<matthewcroughan> jumper149 I don't quite understand what that means, I'm quite new to Nix. Do you mean that I have Pi.nix and Desktop.nix ?
hmpffff_ has quit [Quit: nchrrrr…]
<dadada_> matthewcroughan: You can write parts of your configuration like modules in nixpkgs/nixos/modules. That means that you can import them and / or use options that you define inside.
hmpffff has joined #nixos
<jumper149> matthewcroughan: Maybe read through here: https://nixos.wiki/wiki/Module
hmpffff has quit [Client Quit]
<matthewcroughan> Is there any way to get rid of the annoying Nix concepts from apps like Htop?
<jumper149> You will have to dive a little bit into the nix language to understand everything here.
<jumper149> matthewcroughan: Whats wroing with htop?
<matthewcroughan> They're not annoying concepts, let me rephrase. Is there a way to mask them from apps that display such info?
<matthewcroughan> Well every app is running from /nix/store/massive-long-hash/app
<matthewcroughan> so of course htop shows the /nix/store/ path which obscures information, since the string is so long
<jumper149> ahh.. yeah. afaik there is no way to fix that.
shibboleth has joined #nixos
kimat has joined #nixos
<matthewcroughan> That is going to be an issue in a lot more apps than just htop, so there must be a solution to this in future.
<jumper149> only htop has the ability to deal with it in this case. There is no way nix can change it.
<matthewcroughan> Why do the hashes need to be so long? Is there a technical reason for it?
<dadada_> You could let htop display the name of the process instead of the complete command line. top does it like that
<matthewcroughan> are there no shorthand hashes?
<qyliss> Hit "p" in htop
<matthewcroughan> That satisfies me for now, yeah.
<matthewcroughan> Though I get the feeling other applications are going to be confused by some stuff.
<jumper149> the hashes serve are predetermined by the derivation so there is no way to change them
<b42> til
Soo_Slow has quit [Quit: Soo_Slow]
<b42> qyliss++
<matthewcroughan> In fact, I imagine that at some stage, we're going to find out we've overflowed something, in some apps haha
<{^_^}> qyliss's karma got increased to 61, that's Numberwang!
<matthewcroughan> qyliss++
<{^_^}> qyliss's karma got increased to 62
<matthewcroughan> Does anybody know how the hash is generated?
<dadada_> sha256sum of the derivation contents?
<matthewcroughan> I remember watching some talk on this, I didn't get all the way through, but I just don't understand why it has to be so long and we cannot use shorthands.
<clever> matthewcroughan: one min
<matthewcroughan> I mean, granted, I do not know what I'm talking about!
<qyliss> Most C programs in my experience use PATH_MAX-length buffers to store paths. PATH_MAX on NixOS is 4096 bytes. So an overflow just because of the store path is unlikely.
<emily> matthewcroughan: you have to pick a length that avoids collisions. git opportunistically shortens things because it can dynamically lengthen the identifiers when needed
<matthewcroughan> But how is it that github does shorthand hashes?
<emily> but these paths get baked into packages that depend on them
<emily> so we'd have no way to migrate to "longer, less ambiguous" hashes as clashes appear
<simpson> matthewcroughan: GH does short hashes in exactly the way that you'd expect/be horrified by: Truncation.
<emily> I mean, also, Nix stores are a lot bigger than your average git repository.
<qyliss> matthewcroughan: github still stores long hashes, it's just that it can find the long one from the short one if it's unambiguous
<emily> I frequently run into clashes typing /nix/store/sdfjhsf* and am shocked
<simpson> Indeed, so does git, PGP, and basically anything else in this field. The hash disambiguates *because* it is long; a shortened hash collides more often.
<matthewcroughan> I'm satisfied by that, as long as there's a reason for it, I just did not understand the reason.
<emily> wish you could mine bitcoin with those
dingenskirchen has quit [Remote host closed the connection]
<clever> simpson: the hash in /nix/store/hash-name is truncated
<keithy[m]> hi guys, does configuration.nix reflexively know its own path, like BASHSOURCE[0]?
<matthewcroughan> Does the hashing cause problems with searching?
<simpson> clever: Indeed! IOW the tradeoff has already been made.
<clever> keithy[m]: just use ./. in an expression
<matthewcroughan> Do the long folder names halt recursive searches in software like find for example?
<clever> keithy[m]: at parse time, that is turned into an absolute path, based on the dir the file was in
dingenskirchen has joined #nixos
<matthewcroughan> if I did `find ./ -name 'htop'` would my search time be increased by the number of dirs and the length of the dir names?
fusion809 has joined #nixos
<keithy[m]> how about in a script?
<clever> keithy[m]: do you want the position of the script, or the nix expr that defines the script?
<matthewcroughan> In which case, is there a better way to search through the available software in the nix store, and what is that way?
<simpson> matthewcroughan: Try it and see, but probably not? Searches on disk are largely limited by I/O, and disk indirections are stored by inodes of relatively unchanging size.
<clever> matthewcroughan: nix-build '<nixpkgs>' -A htop
<matthewcroughan> Oh okay, what is the reason for that being in nix-build?
<qyliss> You're not really supposed to go looking through the store
<matthewcroughan> Why is it in the domain of nix-build to search through available packages? Philosophically?
<qyliss> Think of it as opaque
<simpson> One of the ideas of Nix (and more generally, of capabilities) is that one ought *not* to search, but instead use exactly the packages that one already has in front of them.
<qyliss> matthewcroughan: nix-build doesn't search for packages
<clever> matthewcroughan: if you want htop, build htop
<clever> matthewcroughan: if you want to search, `nix search`
quinn has joined #nixos
<matthewcroughan> Okay, let's say I have no internet connection, and I want to see what I Have.
st3r4g[m] has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/92d970c7667 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<clever> matthewcroughan: `nix search`
<keithy[m]> I would like a script defined in a .nix file to source a .sh file in the same directory.
<clever> keithy[m]: ./foo.sh, done
<clever> keithy[m]: if its in a string of bash, "source ${./foo.sh}"
<keithy[m]> ah cool
<matthewcroughan> Is there an online man page for `nix` that anyone can link me to? I can't seem to find it.
<clever> matthewcroughan: the `nix` command doesnt have any docs yet, just `nix --help`
<simpson> matthewcroughan: You have the same things either way; there's a collection of profiles (nix-env), whatever development environments you have open (nix-shell), and prior generations of userland (nixos-rebuild).
<matthewcroughan> That to me I thought was not a manpage, since it has all that formatting that I can't easily search through jumper149
<jumper149> matthewcroughan: All the nix commands have normal man pages I think. It's not online but^^
<keithy[m]> yay
<matthewcroughan> Yeah but I'm not on a nix system right now :)
<matthewcroughan> What would happen if I did nix search on a system that was offline>?
waleee-cl has joined #nixos
<qyliss> It uses your local copy of Nixpkgs
<clever> matthewcroughan: it would still work, it searches the copy of nixpkgs you have locally
<matthewcroughan> So how should one think of Nix when being used offline? Is it still just as useful as it can be?
<matthewcroughan> Does it try to be useful offline and online? Or is it clearly internet dependant?
<clever> matthewcroughan: if you pre-download the dependencies for something, you can keep building stuff while offline
<matthewcroughan> This is one thing I've not really ever understood about Nix. Can I install offline and online?
<clever> matthewcroughan: if your offline, you cant download any new paths
<matthewcroughan> If I have a new laptop I want to provision, or a network of airgapped computers, can I install offline?
<matthewcroughan> Well the actual nix installer says you need to be online, and I'm just wondering why.
<clever> matthewcroughan: but you can use `nix-copy-closure` to copy paths between different machines, or run your own binary cache on the other side of the airgap
<matthewcroughan> It seemed bundled with so much stuff, at 500~MB, I was wondering what it didn't have?
<clever> matthewcroughan: the nix install script download a tar file that has a minimal copy of /nix/store/
<clever> matthewcroughan: which tar it downloads, is detected at runtime, based on your os and cpu
<jumper149> matthewcroughan: Good question actually. afaiu you should be able to build everything yourself once you have cached a nixpkgs channel. correct me if im wrong
<clever> matthewcroughan: x86? arm? linux? mac?
<matthewcroughan> x86 nixOS installer
<matthewcroughan> is "paths" a technical term that I'm going to come to understand?
<simpson> Nix can be provisioned offline just like e.g. Debian or Gentoo. There's no meaningful difference in how Internet connectivity affects them; the difference is only in which tarballs need to be acquired beforehand when preparing installation media.
<clever> matthewcroughan: each directory in /nix/store/ is the result of building a derivation
<clever> matthewcroughan: and you can download one of those store paths from a binary cache, or use nix-copy-closure to copy them between machins
<matthewcroughan> simpson So in the future, we could see nixOS install media that is made to be offline? It'll look like nixOS-Installer-X86, and ARM, etc like there is for debian, and all that will be is the base nixOS installer but with those tarballs.
<matthewcroughan> clever copy them between machines? I'm sorry I'm not trying this since I don't have access to that machine right now, but what is the output of that command?
GerdFlaig[m] has joined #nixos
<matthewcroughan> Is it a file? A series of files into a directory? Does it want SSH?
<simpson> matthewcroughan: I'd humbly suggest that the typical installation image already supports offline installation. Remember, for ports trees, the tarballs needed for installation are sourceballs.
<clever> matthewcroughan: `nix-copy-closure` uses ssh to copy things between 2 machines
<{^_^}> [nixpkgs] @gebner opened pull request #87516 → cura: 4.5.0 -> 4.6.1 → https://git.io/JfW6N
<simpson> Again, it's all about *which packages* you want, and you have to consider that when you prepare your chosen installation medium.
<clever> matthewcroughan: but you can also use `nix copy --to local?root=/mnt /nix/store/something` to create a `/mnt/nix/store/something` dir
<clever> matthewcroughan: so `/mnt` could be a usb stick you carry over the airgap
<clever> matthewcroughan: then `nix copy --from local?root=mnt /nix/store/something` to copy it back out into the host /nix/store on the other side
<matthewcroughan> Oh my God, that's amazing.
<{^_^}> [nixpkgs] @gebner closed pull request #87453 → python37Packages.uranium: 4.5.0 -> 4.6.1 → https://git.io/JfWqO
fendor has quit [Quit: Leaving]
alp has quit [Remote host closed the connection]
alp has joined #nixos
gustavderdrache has joined #nixos
hlisp has joined #nixos
<clever> matthewcroughan: there is also another version, let me confirm the cmd...
zupo has joined #nixos
<clever> matthewcroughan: this one creates a directory of .narinfo and .nar.xz files
<clever> matthewcroughan: you can then either --from back from it, or host that directory over plain http, and do `--option substituters http://that.server`
T0pH4t has quit [Quit: bye...]
<matthewcroughan> And that will then transform your system's /nix/store ?
<clever> matthewcroughan: so you could setup a server on the other side of the gap, to host the things
<ivegotasthma> hello, I'm on stable but I'm not seeing new packages from the 1st of April
<evanjs> so I am fairly certain #86893 is a non-NixOS issue, as GitKraken runs fine on NixOS with only i3 and sddm. Trying to get an Ubuntu 18.04 VM to test it on, though, and I can't rebuild for VirtualBox at the moment...
<clever> matthewcroughan: it will let you add storepaths into /nix/store/
<{^_^}> https://github.com/NixOS/nixpkgs/pull/86893 (by r-ryantm, 5 days ago, open): gitkraken: 6.5.4 -> 6.6.0
<ivegotasthma> I mean unstable*
Noisytoot has joined #nixos
<clever> ivegotasthma: https://status.nixos.org/
<matthewcroughan> clever "storepaths" are the hash directories?
<clever> matthewcroughan: yeah
<evanjs> Any suggestions on the easist way to test on other systems from nixos? I would figure Qemu, wasn't sure if there were any nix functions that might make things easier. IIRC we primarily have stuff for generating _NixOS_ based VMs
<matthewcroughan> clever Do we lose any information in doing that ?
<clever> matthewcroughan: nope
<matthewcroughan> Wow, so what happens to the configuration.nix?
<matthewcroughan> When I say "information" I really mean are we creating a tarpit of hacked in things we're not keeping track of?
<clever> matthewcroughan: the configuration.nix is parsed to generate build directions for store paths, like /nix/store/0iwz12wb5vfv6mdr2mzgy34r8s7lrz90-nixos-system-amd-nixos-20.03pre202088.e89b21504f3
alp has quit [Ping timeout: 272 seconds]
<clever> matthewcroughan: and nix will then query all substituters, to see what paths are pre-built, and what it has to build locally
alp has joined #nixos
<evanjs> oh. did not realize ovas are just tarballs with an ovf and vmdk files... https://wiki.hackzine.org/sysadmin/kvm-import-ova.html
<evanjs> I guess in that case... I'll just try to convert that. Only asked initially as I had some issues with an image from osboxes and don't use other distros enough anymore to want to deal with them much at all, if possible :P
EdLin has joined #nixos
<ivegotasthma> clever: thanks! I'm however confused why after I do `sudo su; nix-channel --update` I don't see a recent package that's from 1st of April.
<ivegotasthma> I don't have extra channels on my user, so I'm sure they're all updated
<clever> ivegotasthma: nixos-unstable last updated 11 days ago, and you want `sudo -i` not `sudo su`
<{^_^}> [nixpkgs] @aszlig closed pull request #87484 → nixos/confinement: add i18n glibcLocales to confined services → https://git.io/JfWBJ
<ivegotasthma> I know, but I prefer to sudo su
<evanjs> that, and I'm way too low on space right now, it's the reason I can't rebuild :D
hlisp has quit [Ping timeout: 264 seconds]
T0pH4t has joined #nixos
<ivegotasthma> clever: Yes, but 1st of April was 30 days ago
<{^_^}> [nixpkgs] @bjornfor merged pull request #87457 → deluge: fix running the Gtk UI → https://git.io/JfWmf
<{^_^}> [nixpkgs] @bjornfor pushed commit from @lukegb to master « deluge: add glib so its hook works. »: https://git.io/JfWil
<ivegotasthma> 40*
<clever> ivegotasthma: what does `nix-instantiate --find-file nixpkgs` return?
<ivegotasthma> /nix/var/nix/profiles/per-user/root/channels/nixos
<clever> ivegotasthma: `nix eval nixpkgs.lib.verison` ?
<clever> version*
<ivegotasthma> "20.09pre223023.fce7562cf46"
<ivegotasthma> which is the last commit in the status page
<clever> yep
<clever> and that commit itself, is 14 days old
<{^_^}> [nixpkgs] @aszlig pushed commit from @martinetd to master « nixos/confinement: add conflict for ProtectSystem service option »: https://git.io/JfWi4
<{^_^}> [nixpkgs] @aszlig closed pull request #87420 → nixos/confinement: add conflict for ProtectSystem service option → https://git.io/JfCpT
<ivegotasthma> and the package is there
<ivegotasthma> at the commit you sent
<clever> ivegotasthma: that commit is a parent of fce7562cf46
hlisp has joined #nixos
<clever> ivegotasthma: so you should already have it
drakonis has joined #nixos
<ivegotasthma> but I don't see it with nix search and cannot install it via nix-env -iA nixos.weechat-matrix
<clever> ivegotasthma: what happens when you `nix-env -iA nixos.weechat-matrix` ?
<ivegotasthma> error: attribute 'weechat-matrix' in selection path 'nixos.weechat-matrix' not found
<clever> ivegotasthma: the PR didnt add a weechat-matrix to pkgs, it only changed the version
<clever> so its at whatever attr it was at before
<clever> pkgs/applications/networking/irc/weechat/scripts/default.nix: weechat-matrix = python3Packages.callPackage ./weechat-matrix { };
knupfer has quit [Remote host closed the connection]
<clever> ivegotasthma: nix-env -iA nixos.weechatScripts.weechat-matrix
knupfer has joined #nixos
<ivegotasthma> oh I didn't know I can namespace like this
<clever> ivegotasthma: the weechatScripts likely isnt marked for recursion, so `nix search` wont look within it
<ivegotasthma> thanks for the help!
orivej has quit [Ping timeout: 260 seconds]
<clever> yep
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixos-weekly] @domenkozar merged pull request #119 → 2020/05: Adding "Nix: Re-running Fixed Output Derivations" → https://git.io/JfW2W
<{^_^}> [nixos-weekly] @domenkozar pushed 2 commits to master: https://git.io/JfWiX
tnias has joined #nixos
hlisp has quit [Ping timeout: 256 seconds]
cosimone has joined #nixos
<{^_^}> [nixpkgs] @Gaelan opened pull request #87517 → nixos/device-tree: fix package name in examples → https://git.io/JfWi7
hlisp has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87518 → sympow: 2.023.5 -> 2.023.6 → https://git.io/JfWip
Soo_Slow has joined #nixos
<{^_^}> [nixpkgs] @teto merged pull request #87359 → python27Packages.pymupdf: 1.16.16 -> 1.16.18 → https://git.io/JfCVd
<{^_^}> [nixpkgs] @teto pushed commit from @r-ryantm to master « python27Packages.pymupdf: 1.16.16 -> 1.16.18 »: https://git.io/JfWih
shafox has quit [Remote host closed the connection]
hlisp has quit [Ping timeout: 240 seconds]
_kwstas has joined #nixos
bhipple has quit [Ping timeout: 246 seconds]
<betawaffle> any idea why my command-not-found hook (the one installed by nixos) is barfing saying it can't open the database file?
<betawaffle> i'm using fish
<clever> betawaffle: are you using channels, is the channel called nixos?
<betawaffle> afaik, i didn't change anything. only issue could be that /root is on my root filesystem, which is cleared on reboot
bhipple has joined #nixos
<betawaffle> the database file it's looking for doesn't exist, but i don't know why
hlisp has joined #nixos
<clever> betawaffle: what path is it looking at?
<betawaffle> `/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite`
<betawaffle> the directory exists, but that file doesn't
<clever> betawaffle: what does `nix-channel --list` report?
<clever> betawaffle: and when/how did you last update your channels?
<betawaffle> huh, it's empty
<betawaffle> not sure i ever did. i've only used the installer so far
cinimod` has quit [Ping timeout: 264 seconds]
<betawaffle> does the installer not set up a default channel?
<clever> betawaffle: the installer might have missed the programs.sqlite, youll need to add a channel and --update
<clever> betawaffle: did you run --list as root?
<betawaffle> no, sec
zupo_ has joined #nixos
<betawaffle> ah, that has a nixos channel
<clever> yep, as it should
<clever> you may want to try --update
<betawaffle> if i never ran --update, would that cause this?
<clever> betawaffle: if there is a bug in the installer, yes
<ldlework> eadwu[m]: you still around?
hlisp has quit [Ping timeout: 272 seconds]
<eadwu[m]> Yep
<betawaffle> looks like that fixed it clever
<betawaffle> clever++
<{^_^}> clever's karma got increased to 412
MmeQuignon has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87519 → squirrel-sql: 4.0.0 -> 4.1.0 → https://git.io/JfWPr
<ldlework> eadwu[m]: I've got a dell precision 5520, with a Quadro M1200 Mobile, and I've setup nvidia-offload as per the wiki, but I can't get anything running on the card.
<ldlework> glxgears, etc
<ldlework> Things seem to be running on the intel chip
<eadwu[m]> Any errors in journalctl for nvidia?
<eadwu[m]> Output of `xrandr --listproviders`
<superbaloo> is there a way to get the dependency tree of the output of a derivation before building it? or some part of it is determined during the build?
gustavderdrache has quit [Quit: Leaving.]
<eadwu[m]> `[sudo ]journalctl -b` output?
<eadwu[m]> Your nvidia output looks wrong from that
<eadwu[m]> Should be NVIDIA-G0
<ldlework> That's gonna be really long.
<ldlework> Should I reboot real quick, then grab the log?
hlisp has joined #nixos
<ldlework> I'll do that.
<eadwu[m]> Sure? You can just take it from the journalctl
smatting has quit [Quit: WeeChat 2.4]
<ldlework> Yeah it's just really long.
<ldlework> The log.
smatting has joined #nixos
<eadwu[m]> It's fine
<eadwu[m]> I'm not going to read the whole thing anyway
<eadwu[m]> Just going to find nvidia output
<{^_^}> [nixpkgs] @mdlayher opened pull request #87520 → corerad: 0.2.3 -> 0.2.4 → https://git.io/JfWP7
<ldlework> I PM'd you the log.
slack1256 has joined #nixos
<ldlework> the word "nvidia" doesn't show up in the log
<ldlework> wait yes it does
<ldlework> chrome search slow
<ldlework> :P
ddellacosta has joined #nixos
pxc has quit [Read error: Connection reset by peer]
pxc has joined #nixos
hmpffff has joined #nixos
hlisp has quit [Ping timeout: 256 seconds]
ddellacosta has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @glittershark opened pull request #87521 → obs-input-overlay: init at 4.8 → https://git.io/JfWXq
<{^_^}> [nixpkgs] @jonringer pushed 4 commits to python-unstable: https://git.io/JfWX3
<{^_^}> [nixpkgs] @bjornfor merged pull request #87517 → nixos/device-tree: fix package name in examples → https://git.io/JfWi7
<{^_^}> [nixpkgs] @bjornfor pushed commit from @Gaelan to master « nixos/device-tree: fix package name in examples »: https://git.io/JfWXs
hlisp has joined #nixos
<{^_^}> [nixpkgs] @bjornfor merged pull request #87471 → perlPackages.StringInterpolate: init at 0.32 → https://git.io/JfWsj
<{^_^}> [nixpkgs] @bjornfor pushed 2 commits to master: https://git.io/JfWXR
kimat has quit [Quit: Leaving]
hlisp has quit [Ping timeout: 240 seconds]
sigmundv_ has quit [Read error: Connection reset by peer]
sigmundv_ has joined #nixos
Fare has joined #nixos
cinimod` has joined #nixos
<{^_^}> [nixpkgs] @bjornfor merged pull request #87418 → mpd service: remove user/group from conf → https://git.io/JfCxP
<{^_^}> [nixpkgs] @bjornfor pushed commit from @martinetd to master « mpd: remove user/group from conf »: https://git.io/JfWX1
o1lo01ol1o has quit [Remote host closed the connection]
<ldlework> eadwu[m]: I wonder if I should write a little nix abstraction to create bin-wrappers for things easily
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87522 → libsForQt5.vlc: 3.0.8 -> 3.0.10 → https://git.io/JfWXM
vidbina has joined #nixos
cinimod`` has joined #nixos
hlisp has joined #nixos
_kwstas has quit [Quit: _kwstas]
cinimod` has quit [Ping timeout: 256 seconds]
o1lo01ol1o has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87523 → tixati: 2.72 -> 2.73 → https://git.io/JfWX7
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alp has quit [Ping timeout: 265 seconds]
hlisp has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @ccellado closed pull request #87386 → vips: 0.8.1 -> 0.8.2 → https://git.io/JfCMF
hmpffff has quit [Quit: nchrrrr…]
<{^_^}> [nixpkgs] @ccellado opened pull request #87524 → vips: 8.9.1 -> 8.9.2 → https://git.io/JfW1I
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87525 → virt-viewer: 8.0 -> 9.0 → https://git.io/JfW1L
hlisp has joined #nixos
<ldlework> In NixOS there is some crazy stuff that forces applications that use PulseAudio to actually use ALSA right?
<{^_^}> [nixpkgs] @flokli merged pull request #87491 → gitAndTools.svn-all-fast-export: 1.0.17 -> 1.0.18 → https://git.io/JfWuk
<{^_^}> [nixpkgs] @flokli pushed 2 commits to master: https://git.io/JfW1m
<MichaelRaskin> ldlework: not in NixOS, but packaged in Nixpkgs
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to python-unstable: https://git.io/JfW1G
asheshambasta has quit [Ping timeout: 260 seconds]
<ldlework> MichaelRaskin: When I start SunVox, no other audio applications works. Chrome, Spotify etc. If Chrome or Spotify are playing audio, then SunVox wont start. This doesn't happen for other people on other OSes so I assume it is the pulseaudio by-pass at work.
hlisp has quit [Ping timeout: 260 seconds]
<emily> there is nothing automatic like that
<emily> you're just experiencing a regular old linux audio configuration issue unless you have something specific in your configuration doing this
<emily> if you have pulseaudio enabled in your config then nixos uses pulseaudio
<Yaniel> probably sunvox just using alsa directly without knowing that pulseaudio exists
<Yaniel> like most DAWs I think
<Yaniel> unless you have JACK, which it could use instead
fendor has joined #nixos
remirol has quit [Ping timeout: 240 seconds]
<emily> pulse does fancy stuff to make alsa apps work though
<emily> (at reduced performance ofc)
<emily> so it might just be a matter of setting the right device
<ldlework> Setting the right device?
<ldlework> I'll try to install Jack I guess.
<MichaelRaskin> Then of course alsa has dmix…
lorimer has joined #nixos
<fendor> hello! I am trying just now to install nixos. I used rufus on win 10 to prepare the usb drive. When booting the drive, I get horrible visual bugs, and I cant boot to the terminal.
<ldlework> What's that.
<emily> "supported sound systems: ASIO, DirectSound, MME, ALSA, OSS, JACK, Audiobus, IAA;"
<emily> it does seem that sunvox does not support pulse
<fendor> with nomodeset, it boots to the terminal, but trying to start the display-manager fails with "core dumped"
<ldlework> Can only one application use ALSA at a time?
<emily> ldlework: you may be interested in https://github.com/musnix/musnix
<fendor> with debug, I dont reach the terminal again.
<{^_^}> [nixpkgs] @aanderse merged pull request #87513 → solr: 8.5.0 -> 8.5.1 → https://git.io/JfWoi
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/JfW1X
<fendor> booting with uefi
<ldlework> emily: interesting
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87526 → libv4l: 1.18.0 -> 1.18.1 → https://git.io/JfW1S
<emily> fendoer: sounds like GPU driver issues. what graphics card are you using?
<fendor> emily, gtx 2070 s
ATuin has quit [Quit: WeeChat 2.8]
<emily> you may be better off with whichever of the proprietary nvidia drivers and nouveau isn't being used. I guess the install media probably has the latter, not sure
<fendor> I cant boot the stick, though
<emily> I would suggest installing via the console and then fiddling with drivers if you're comfortable with it
<fendor> Ok, apparently, I can boot it, if I dont boot it with uefi
<emily> hm, does the console not even work?
alp has joined #nixos
<fendor> emily, only with nomodeset
<emily> nomodeset is probably just effectively blocking nouveau I guess
<emily> anyway, yeah, that card is way too new for nouveau to work well I think, so you want the nvidia proprietary drivers. I don't know if there's a convenient way to get an installer with them
<fendor> yeah makes sense.
<emily> but if you can install from the console then you can enable the proprietary nvidia drivers for your installed system
<fendor> damn it :(
<fendor> oh, ok
<fendor> great
<fendor> nice
<emily> you could also live-edit the livecd configuration to add the drivers and "nixos-rebuild switch" to it, probably, if you can get network set up etc.
<fendor> however, then there is this uefi <-> legacy issue. Is that even an issue?
<emily> you want to boot with uefi to install a uefi bootloader
<emily> othewrise EFI variables are inaccessible
<fendor> it should be dual boot with win 10, maybe the initial installation didnt use uefi?
<{^_^}> [nixpkgs] @timokau opened pull request #87527 → python.pkgs.scikitlearn: 0.21.3 -> 0.22.2.post1 → https://git.io/JfW1h
<{^_^}> [nixpkgs] @jonringer merged pull request #87483 → python27Packages.ROPGadget: 6.2 -> 6.3 → https://git.io/JfW4C
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.ROPGadget: 6.2 -> 6.3 »: https://git.io/JfWMv
<fendor> so, probably the cleanest solution would be re-install windows, then try again with windows to make sure it is uefi, right? Or is there no reason to want uefi?
emacsomancer has quit [Read error: Connection reset by peer]
hmpffff has joined #nixos
<emily> I'd generally recommend UEFI boot if possible, especially on newer motherboards
<ldlework> Hmm after installing jack, now spotify etc don't work. But Sunvox does!
<emily> is your existing Windows install not UEFI?
<emily> generally Windows will default to UEFI/GPT/etc. these days
<emily> ldlework: you probably need to set up pulse to talk to jack
<ldlework> oh right
<ldlework> I read about that.
<emily> btw jack is also pretty bad for battery life so you might want a switching setup
<emily> if you're on a laptop
alp has quit [Remote host closed the connection]
emacsomancer has joined #nixos
alp has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #87520 → corerad: 0.2.3 -> 0.2.4 → https://git.io/JfWP7
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfWMZ
<{^_^}> [nixpkgs] @ggreif opened pull request #87528 → compiler-rt{6..10}: fix compilation on Darwin → https://git.io/JfWMn
<{^_^}> [nixpkgs] @flokli merged pull request #87411 → python27Packages.twilio: 6.35.1 -> 6.39.0 → https://git.io/JfCbw
<{^_^}> [nixpkgs] @flokli pushed 2 commits to master: https://git.io/JfWMl
<ldlework> emily: I followed the instructions, but spotify still no workie.
<{^_^}> [nixpkgs] @romildo opened pull request #87529 → theme-obsidian2: 2.11 -> 2.12 → https://git.io/JfWMz
<fendor> emily, I think it does, I think I remember seeing GPT in the partitions somewhere. Why would the drivers for nvidia work without efi, though?
<emily> shrug, I don't use jack or spotify, sorry :p
<emily> fendoer: that part I have no idea about. I'm guessing that maybe nouveau is only even trying to load with UEFI or something
<emily> like I can imagine some story like "nouveau only even tries to support the new enough cards on UEFI systems"
<emily> but I'd have to do actual forensics on the system to tell
<fendor> ok, thank you. So, Ill attempt terminal installation
<emily> in practice you're going to want the proprietary drivers if you're using that card at all, I think, since the free software support for the newer cards is very spotty
fabianhjr has joined #nixos
<{^_^}> [nixpkgs] @jonringer pushed 258 commits to python-unstable: https://git.io/JfWMV
<fendor> yeah, I know.
<fendor> it is still good that they exist
<ldlework> lol wtf you have to hit play inside qjackctrl....?
<cole-h> I thought cadence was recommended over qjackctl these days
<ldlework> cole-h there's no wiki instructions on how to get Jack working with Pulse with Cadence
<ldlework> It does look nicer though.
vidbina has quit [Ping timeout: 256 seconds]
<cole-h> All I need to do is run `cadence-session-start --system-start` and it works for me.
<cole-h> (though I am not on NixOS, so that might change things)
<{^_^}> [nixpkgs] @lukegb opened pull request #87530 → teamspeak_client: update to 3.5.2 → https://git.io/JfWMj
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87531 → libuchardet: 0.0.6 -> 0.0.7 → https://git.io/JfWDe
<energizer> ldlework: is there something unusual about the computer you're using that you suspect is causing all these issues? asking because i'm curious how usable nixos is across various devices
<ldlework> energizer: I had no problems whatsoever in 19.09
<ldlework> cole-h: that gives me dbus.exceptions.DBusException: org.jackaudio.Error.Generic: Failed to open server
<energizer> ldlework: sorry to ask but have you tried rebooting
shreyansh_k has joined #nixos
<{^_^}> [nixpkgs] @7c6f434c merged pull request #87525 → virt-viewer: 8.0 -> 9.0 → https://git.io/JfW1L
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/JfWDt
<shreyansh_k> Hello, I quickly wanted to check why hasnnixos-unstable p
cinimod`` has quit [Ping timeout: 256 seconds]
<shreyansh_k> Hello, I quickly wanted to check why hasn't nixos-unstable progressed as status.nixos.org shows no build errors since some time now. What am I missing? Thank you.
o1lo01ol1o has joined #nixos
<clever> shreyansh_k: there was a php problem that broke channel updating but didnt register on hydra
<LnL> also has been fixed so should probably update soon
<cole-h> It's only a matter of time until it gets into nixos-unstable
* cole-h hopes.
<shreyansh_k> clever: May I kindly ask the link to the issue tracker or something if possible? Thank you for reaching out.
<{^_^}> #87138 (by lukegb, 3 days ago, merged): php: correctly set outputsToInstall after withExtensions.
<LnL> not sure if there's an issue
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87532 → tautulli: 2.2.1 -> 2.2.3 → https://git.io/JfWDZ
<shreyansh_k> * Thank you for reaching out to all.
<cole-h> Probably not, since nobody knew what the problem was until Graham looked into the logs :P
<ldlework> energizer: yeah I restarted
<ldlework> it seems cadence cannot start the jack server
<ldlework> but qjackctrl can
<LnL> well hopefully we can change that soon :)
<cole-h> :^)
<ldlework> Allocate: can't check in named futex name = jack_sem.default_system err = Permission denied
<LnL> (at least for this kind of issues)
* cole-h hopes so.
Peter_Storm has joined #nixos
hlisp has joined #nixos
o1lo01ol1o has quit [Ping timeout: 246 seconds]
<emily> there was an issue
<{^_^}> #86922 (by xaverdh, 5 days ago, open): channels do not advance? (e.g. nixos-unstable-small)
<{^_^}> [nixpkgs] @vbgl merged pull request #86469 → google-drive-ocamlfuse: 0.7.2 -> 0.7.21 → https://git.io/JfObr
<{^_^}> [nixpkgs] @vbgl pushed commit from @talyz to master « google-drive-ocamlfuse: 0.7.2 -> 0.7.21 (#86469) »: https://git.io/JfWD0
fendor has quit [Ping timeout: 256 seconds]
hlisp has quit [Ping timeout: 240 seconds]
<ldlework> energizer: cadence works for you on nixos?
<ldlework> energizer: are you using it with pulseaudio / jackdbus?
o1lo01ol1o has joined #nixos
<energizer> ldlework: the only audio settings i have are: sound.enable = true; hardware.pulseaudio.enable = true;
fendor has joined #nixos
<ldlework> so no :)
<ldlework> hrmmm
<energizer> i guess maybe the kernel parameters could be relevant
webster23 has quit [Ping timeout: 260 seconds]
plutes has quit [Ping timeout: 272 seconds]
hlisp has joined #nixos
gustavderdrache has joined #nixos
vidbina has joined #nixos
cr4y1 has quit [Remote host closed the connection]
cr4y1 has joined #nixos
hlisp has quit [Ping timeout: 256 seconds]
bhipple has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @ryantm merged pull request #87523 → tixati: 2.72 -> 2.73 → https://git.io/JfWX7
dnlkrgr has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JfWyT
bhipple has joined #nixos
<{^_^}> [nixpkgs] @bjornfor opened pull request #87534 → fatsort: 1.5.0.456 -> 1.6.2.605 → https://git.io/JfWyq
dnlkrgr has joined #nixos
<{^_^}> [nixpkgs] @bjornfor merged pull request #87524 → vips: 8.9.1 -> 8.9.2 → https://git.io/JfW1I
<{^_^}> [nixpkgs] @bjornfor pushed commit from @taikatytto to master « vips 0.8.2 »: https://git.io/JfWyG
hasan_esemds has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #87468 → qtpbfimageplugin: 2.1 -> 2.2 → https://git.io/JfWsB
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JfWyC
hlisp has joined #nixos
Maxdamantus has quit [Ping timeout: 256 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
hasan_esemds is now known as w3emperor
webster23 has joined #nixos
Maxdamantus has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87535 → termdown: 1.16.0 -> 1.17.0 → https://git.io/JfWyg
eoli3n_ has quit [Quit: WeeChat 2.8]
eoli3n_ has joined #nixos
eoli3n___ has quit [Remote host closed the connection]
eoli3n__ has joined #nixos
dermetfan has quit [Ping timeout: 256 seconds]
eoli3n__ has quit [Remote host closed the connection]
webster23_ has joined #nixos
webster23_ has quit [Read error: Connection reset by peer]
eoli3n__ has joined #nixos
alp has quit [Ping timeout: 244 seconds]
webster23 has quit [Ping timeout: 260 seconds]
<finnwww[m]> what do i put for the rev argument of builtins.fetchGit?
waleee-cl has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87536 → ttygif: 1.4.0 -> 1.5.0 → https://git.io/JfWyS
o1lo01ol1o has quit [Remote host closed the connection]
<NobbZ[m]> finnwww the git sha or tagname
<finnwww[m]> where do i find that
shreyansh_k has quit [Ping timeout: 272 seconds]
<finnwww[m]> NobbZ:
Noisytoot has quit [Quit: Leaving]
<NobbZ[m]> In the git repository you want to pull from
hlisp has quit [Ping timeout: 258 seconds]
<finnwww[m]> okay
<finnwww[m]> how do i find it on GitHub;
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<NobbZ[m]> Tagsaare listed in the tag/branch drop-down, shas are copyable from the commits view
eoli3n__ has quit [Remote host closed the connection]
eoli3n__ has joined #nixos
<ldlework> Is this the correct way to make libjack available to sunvox? https://gist.github.com/dustinlacewell/4a17bc6deca32812d1db429ef1f91241
<ldlework> IE makeLibraryPath, etc
hlisp has joined #nixos
<ldlework> hmm ldd on the binary, doesn't show libjack
<finnwww[m]> how do you configure home manager in configuration.nix instead of ~?
<finnwww[m]> I'm having trouble with which ref i should use
<sshow> how can I configure multiple domain names for an acme certificate in config.services.nginx?
eoli3n___ has joined #nixos
<NobbZ[m]> I don't use home manager as a module, as I prefer to have my system and user config separate
<finnwww[m]> NobbZ: good idea
Vikingman has joined #nixos
<finnwww[m]> NobbZ: do you do separate GitHub repos or what?
<betawaffle> is it possible to start something other than `login` from getty? like sway?
<betawaffle> or is that a completely terrible idea
<NobbZ[m]> finnwww I have a single home manager repo for all my machines, system configuration is a lot more ad-hoc and suited to each machine, therefore not in a repo, only backed up by regular means.
<finnwww[m]> NobbZ: so no GitHub repo for system config?
<{^_^}> [nixpkgs] @doronbehar opened pull request #87537 → gotify-server: 2.0.15 -> 2.0.16 → https://git.io/JfWSs
<finnwww[m]> NobbZ: and what dotfile manager do you use?
<NobbZ[m]> Not so far. If I find the time (probably after lockdown) I'll do a rewrite of those and try to have them single repo.
<NobbZ[m]> And in general I don't use GitHub that much
<NobbZ[m]> I manage my dotfiles through home manager
<finnwww[m]> NobbZ: right but do you just simlink them or do you use like stow?
<cole-h> Depending on how you use it, home-manager can symlink them for you.
<finnwww[m]> hmm
<NobbZ[m]> Yes, home manager symlinks from the store
<finnwww[m]> once you clone your dotfiles, what do you do?
<finnwww[m]> do you manually copy them?
<NobbZ[m]> Symlink `host/default.nix` to `host/$(hostname).nix` and then I run `home-manager switch`
<NobbZ[m]> After that I restart my session, just to be sure
<NobbZ[m]> And to switch from whatever the default WM is to awesome-wm :D
<finnwww[m]> nice
hlisp has quit [Read error: Connection timed out]
shibboleth has quit [Quit: shibboleth]
<{^_^}> [nixpkgs] @chessai opened pull request #87538 → cudd: init at 3.0.0 → https://git.io/JfWSM
eoli3n___ has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Lassulus opened pull request #87539 → nixos-generators: 1.0.0 -> 1.1.0 → https://git.io/JfWSD
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87540 → unionfs-fuse: 2.0 -> 2.1 → https://git.io/JfWSS
jkachmar has joined #nixos
seku has quit [Quit: Connection closed]
andre has joined #nixos
<andre> what is the criteria for updating the nixos-stable tag?
<andre> oops, I meant nixos-unstable :)
<cole-h> There was a problem. It has since been fixed. Now all you need to do its wait.
o1lo01ol1o has joined #nixos
<cole-h> #87138
<{^_^}> https://github.com/NixOS/nixpkgs/pull/87138 (by lukegb, 3 days ago, merged): php: correctly set outputsToInstall after withExtensions.
zupo has joined #nixos
<cole-h> ^ This fixed the issue; previously, PHP would fail in one way or another on Hydra.
<cole-h> Which meant the channel couldn't advance. I don't know how long until it advances next, but it should happen soon™
<andre> cheers, thanks. just asking because there were some green builds on hydra (I'm new to nixos though)
<ldlework> if something doesn't show up in ldd, that means the binary was not compiled against a library right?
hlisp has joined #nixos
zupo_ has joined #nixos
<ldlework> RIGHT?
<ldlework> lol
alp has joined #nixos
<cole-h> WRONG! (Maybe not necessarily not-compiled-against, just not-linked-against.)
zupo has quit [Ping timeout: 272 seconds]
<{^_^}> [nix] @edolstra pushed 3 commits to bash-completion: https://git.io/JfW9G
<drakonis> oh nice.
<symphorien> static linking, or header only libraries for example
hlisp has quit [Ping timeout: 246 seconds]
<drakonis> bash completion out of the box
dnlkrgr has quit [Ping timeout: 260 seconds]
dnlkrgr has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87541 → uclibc: 1.0.32 -> 1.0.33 → https://git.io/JfW9R
hlisp has joined #nixos
<{^_^}> #86922 (by xaverdh, 5 days ago, open): channels do not advance? (e.g. nixos-unstable-small)
<cole-h> andre: That's the same problem. It'll be closed once nixpkgs-unstable progresses again, I'd bet.
<EdLin> foldingathome isn't working in Nixos, from the nix package...
<andre> cole-h how are the builds green then? (not doubting you, genuinely want to know how this process works)
<cole-h> I have no clue (:
<cole-h> But I imagine it has something to do with trunk having 4k queued builds, the oldest of which is 2 days ago (which is before that PHP fix got merged): https://hydra.nixos.org/queue_summary
<EdLin> so there's no updates too?
hlisp has quit [Ping timeout: 256 seconds]
<cole-h> `nixos-unstable` hasn't updated in 11 days, no. However, every other supported branch has updated in the past day.
<EdLin> I'm running unstable - for better updates. :(
<EdLin> can I roll back somehow?
<cole-h> Roll back to what?
<EdLin> 20.03
kozova1[m] has joined #nixos
<cole-h> Maybe? However your packages will still be older than nixos-unstable
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
<EdLin> that bug report isn't getting much attention, folks are on top of this?
ixxie has quit [Quit: Lost terminal]
<cole-h> Considering the fix should be working its way through Hydra, I'd say a couple more days of wait shouldn't kill you.
<EdLin> oh, OK
<EdLin> how about folding at home? Is it working in nixos? I just tried installing it from the package...
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
<cole-h> I don't know. I don't use f@h. Maybe you could be more descriptive of the problem you're having? Error messages, logs, etc.?
__monty__ has quit [Quit: Gotta work on that WPM, zaeph.]
<{^_^}> [nixpkgs] @cmacrae opened pull request #87542 → yabai: 3.0.0 -> 3.0.1 → https://git.io/JfWHY
hlisp has joined #nixos
<betawaffle> any systemd experts here? how do i figure out why multi-user.target needs network-online.target?
alp has quit [Quit: Leaving]
<prusnak> is AVX/AVX2/AVX512 allowed in x86_64 binary cache?
<prusnak> I'm asking because of https://github.com/NixOS/nixpkgs/issues/87511
<{^_^}> #87511 (by rkoe, 4 hours ago, open): sdrangel broken
MmeQuignon has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @maralorn opened pull request #87543 → [20.03] vimUtils.vimrcFile: Backport fix packpath order → https://git.io/JfWHR
hlisp has quit [Ping timeout: 264 seconds]
smatting has quit [Ping timeout: 256 seconds]
matthewcroughan has quit [Quit: Connection closed]
mpiechotka has joined #nixos
<qyliss> prusnak: only if the software doesn't work without it I think
<qyliss> if we wanted to require it, we'd turn it on globally
<qyliss> (Which you can do with a custom localSystem, but involves rebuilding everything)
mpiechotka has quit [Client Quit]
<prusnak> SSE4 is OK? is there a list somewhere?
mpiechotka has joined #nixos
<prusnak> i need to patch the software to not-autodetect the instruction set, otherwise it emits avx2 on hydra causing unusable binaries for older x86-64 systems
hlisp has joined #nixos
<cole-h> Autodetection of supported features should be done at runtime for precisely this reason, change my mind. (Note: this opinion was made up on the spot just now.)
<qyliss> cole-h: difficult to do when they're compiler flags
<prusnak> :)
<{^_^}> [nixpkgs] @bcdarwin opened pull request #87544 → vtk: 7.1.1 -> 8.2.0 → https://git.io/JfWH6
<qyliss> prusnak: gimme a sec I'm just finding something
mpiechotka has quit [Remote host closed the connection]
<prusnak> 👍
<EdLin> cole-h: I try to open the web administration page, and nothing happpens. Am unfamiliar with other forms of debugging for it. What do I do on this system for logs?
hlisp has quit [Ping timeout: 240 seconds]
asbachb has joined #nixos
<{^_^}> [nixpkgs] @mmahut merged pull request #84209 → freeciv: 2.6.0 -> 2.6.2 → https://git.io/Jvb3j
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/JfWHy
<{^_^}> [nixpkgs] @wamserma opened pull request #87545 → libfm: fix duplicate inclusion of libfm-extra → https://git.io/JfWHQ
<qyliss> (Just the default one, unless you're especially motivated)
andre has quit [Ping timeout: 245 seconds]
<asbachb> Hi. I run NixOS on a MacBook Pro. There's some strange thing. Seems that SPDIF output is enabled by default. A red light is always shining out of my headphone jack.
<{^_^}> [nixpkgs] @mmahut merged pull request #86228 → etcher: 1.5.60 -> 1.5.86 → https://git.io/JfmzE
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/JfWHF
<betawaffle> how do i remove an item from `wantedBy`?
<{^_^}> [nixpkgs] @mmahut merged pull request #86610 → sooperlooper: unstable-2016-07-19 -> unstable-2019-09-30 → https://git.io/Jf39W
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/JfWHA
<{^_^}> #86484 (by flokli, 1 week ago, open): nixos/systemd.nix: don’t require online for multi-user.target
<emily> betawaffle: I believe this should work: systemd.targets.network-online.wantedBy = lib.mkForce []
<emily> but it may break things, as the linked PR shows
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<betawaffle> well, i really only want to remove the dependency between multi-user and network-online
<betawaffle> ie. i don't need to be online before i can login...
hlisp has joined #nixos
<emily> yeah. unfortunately, a bunch of services don't properly depend on network-online themselves yet
<emily> so it can break things to remove that dependency
<{^_^}> [nixpkgs] @FireyFly opened pull request #87546 → j: add avxSupport option → https://git.io/JfWQT
bhipple has quit [Ping timeout: 260 seconds]
<EdLin> hmm, now it works, but no GPU jobs for it.
<EdLin> apparently on Nixos, that only works for Nvidia cards. :(
<EdLin> I did get it to run though, after some googling.
<EdLin> covid-19 folding only is for if you have GPU folding...
<EdLin> so I guess when I'm in Linux, I'll at least cure cancer. ;)
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #nixos
<ldlework> Why do I have to run: pactl load-module module-jack-sink
<ldlework> on boot, every time, to load jack?
<drakonis> what's the replacement for nix-instantiate on nix cli 2.0? nix eval?
<eadwu[m]> ldlework: Did you edit the default config for pulseaudio?
<eadwu[m]> If you didn't it won't be loaded
<eadwu[m]> Every boot
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @marsam merged pull request #87536 → ttygif: 1.4.0 -> 1.5.0 → https://git.io/JfWyS
<{^_^}> [nixpkgs] @marsam pushed 3 commits to master: https://git.io/JfWQK
o1lo01ol1o has joined #nixos
<ldlework> eadwu[m]: where is the documented?
<{^_^}> [nixpkgs] @Ma27 merged pull request #87395 → kitty: 0.17.3 -> 0.17.4 → https://git.io/JfCQP
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JfWQi
<eadwu[m]> ldlework: Pulseaudio configuration in general for settings. But to use it in NixOS, `hardware.pulseaudio.{configFile,extraConfig}`
<ldlework> eadwu[m]: do you have jack/pulse/alsa setup, etc?
<eadwu[m]> No jack
<eadwu[m]> I've been using the same pulseaudio configuration since my Arch days like 2-3 years ago
<eadwu[m]> Surprised it hasn't broke
Freneticks has quit [Quit: WeeChat 2.3]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87547 → linuxPackages_hardened.vhba: 20190831 -> 20200106 → https://git.io/JfWQ5
<ldlework> i hate this
hlisp has quit [Ping timeout: 258 seconds]
Freneticks has joined #nixos
zupo_ has joined #nixos
hlisp has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87548 → vim: 8.2.0510 -> 8.2.0701 → https://git.io/JfWQp
m0rphism has quit [Quit: WeeChat 2.7.1]
<{^_^}> [nixpkgs] @Ma27 merged pull request #87537 → gotify-server: 2.0.15 -> 2.0.16 → https://git.io/JfWSs
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JfW7U
<{^_^}> [nixpkgs] @bhipple merged pull request #87529 → theme-obsidian2: 2.11 -> 2.12 → https://git.io/JfWMz
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JfW7q
proofofkeags has joined #nixos
shabius has quit [Quit: Leaving]
<betawaffle> emily: is there anything like mkOverride but that allows me to just remove something from/filter the list
<emily> betawaffle: not sure, that kind of circular definition can be tricky to acheive
<emily> (but it might be possible)
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87549 → urlwatch: 2.17 -> 2.18 → https://git.io/JfW7C
<MichaelRaskin> I suspect that _some_ of the vaccines they have kind of tested in animals and kind of tested in humans will be declared good enough
<emily> betawaffle: maybe you'd be best-served just getting network-online.target to start immediately even when it's not ready
<emily> might be easier to hack in
<MichaelRaskin> EdLin:
<betawaffle> emily: why can't i see the wanted-by in `systemctl cat network-online.target`?
morgrimm has joined #nixos
<emily> betawaffle: i think it might translate to a Wants on the other unit? not sure
<morgrimm> Anyone ever have a wifi interface just disppear on you? Correct firmware is loaded, right driver is in use according to lspci
hlisp has quit [Ping timeout: 260 seconds]
<betawaffle> right, but cat is supposed to show me the source files, not the computed result
<morgrimm> but there's just no interface for the adapter at all - it's also enabled in my bios, so no issue there
<betawaffle> where is the wanted-by relationship being written in the filesystem?
<{^_^}> [nixpkgs] @FireyFly opened pull request #87550 → poezio: add setuptools as propagatedBuildInput → https://git.io/JfW7B
<MichaelRaskin> morgrimm: hardware switch?
<morgrimm> Not on a Thinkpad X260
cosimone has quit [Ping timeout: 260 seconds]
<morgrimm> I don't think, anyway
<{^_^}> [nixpkgs] @moritzschaefer opened pull request #87551 → Add python packages: pyensembl (and its dependencies) + gffutils → https://git.io/JfW7g
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87552 → testssl: 3.0 -> 3.0.1 → https://git.io/JfW72
hlisp has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<ldlework> Linux audio is a nightmare!!!!!!!
<asbachb> +1
<johnw> ldlework: but at least you can't hear it, amirite?
shreyansh_k has joined #nixos
<dnlkrgr> if I have a haskell package with a nix file created by `cabal2nix --shell . > shell.nix`, how do I make it usable in the `build-depends` in another haskell project?
gustavderdrache has quit [Quit: Leaving.]
vidbina has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @JoeDupuis opened pull request #87553 → nixos/monit: Allow splitting the config in multiple files → https://git.io/JfW7p
o1lo01ol1o has quit [Remote host closed the connection]
ddellacosta has joined #nixos
o1lo01ol1o has joined #nixos
knupfer has quit [Ping timeout: 260 seconds]
Soo_Slow has quit [Quit: Soo_Slow]
hlisp has quit [Ping timeout: 260 seconds]
w3emperor has quit [Quit: Connection closed for inactivity]
dsg has quit [Ping timeout: 260 seconds]
<clever> dnlkrgr: one min
dsg has joined #nixos
<clever> dnlkrgr: something like this would do it
johnw has quit [Quit: ZNC - http://znc.in]
<clever> dnlkrgr: lines 5 and 6 will auto-run cabal2nix for you, and add 2 packages to the haskell package set, and they can depend on eachother
<morgrimm> clever: I was able to load up the firmware and get the card recognized last night, kernel driver's in use and everything
<clever> dnlkrgr: then just nix-build -A machotool, to build one
<clever> morgrimm: nice
<morgrimm> But the wifi interface is still never created for some reason
<morgrimm> dmesg has no issues with iwl, all logs are good
<clever> morgrimm: what does `ip link` say?
<morgrimm> just wired and loopback, no wifi interface. On boot, the start job for the wifi interface times out at the 1m30 mark
<morgrimm> which is the default timeout for jobs I guess
hlisp has joined #nixos
<clever> morgrimm: can you pastebin the dmesg output?
<clever> morgrimm: and do you know which kernel module was handling it before?
<morgrimm> Should've been iwlwifi before as well, according to the past gen firmware
dnlkrgr has quit [Remote host closed the connection]
<morgrimm> Should've been iwlwifi before as well, according to the past gen firmware
<morgrimm> er, shit, repeated by accident
dnlkrgr has joined #nixos
<morgrimm> Meant to ask, dmesg output in entiret, or filtered to iwlwifi?
<morgrimm> entirety*
<clever> morgrimm: full
<dnlkrgr> clever: sry got disconnected but thankfully there are logs! clever++ samueldr++
<{^_^}> clever's karma got increased to 413
<{^_^}> samueldr's karma got increased to 0xe2
hlisp has quit [Ping timeout: 256 seconds]
<betawaffle> emily: whelp, i just shaved like 28 seconds off my boot time by getting rid of that false dependency
<evanjs> I noticed a lot of things in terms of enabled features are commented out of ffmpeg-full. What's the easiest way to e.g. enable libcaca support?
<evanjs> as e.g. "#(enableFeature (libcaca != null) "libcaca") " is commented out...
<evanjs> though... it looks like it's in the buildInputs, anyway..?
<clever> [ 1.503471] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
<emily> betawaffle: yeah, I agree it sucks. hopefully the services/tests can get corrected and it can be fixed for next release
<clever> morgrimm: what about this file?
<morgrimm> Would that affect the wifi drivers? I have no idea - I'll see if it's missing from my current gen to past gen
<{^_^}> [nixpkgs] @Ma27 merged pull request #87186 → fix docs example for foldl → https://git.io/JfnMx
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JfW5P
<clever> morgrimm: it manages things like which RF channels are legal to use in your country
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
st3r4g[m] has left #nixos ["User left"]
<clever> => /nix/store/d7sw966qxg2kmpj4h5kcaa18w8lfw59j-udev-rules
<clever> ╚═══85-regulatory.rules: …M=="platform", RUN+="/nix/store/m87whb90czl5wsma1j6fbggqcy24iy6x-crda-3.18/bin/crda".…
<clever> /home/clever/apps/nixpkgs-rust2/nixos/modules/services/networking/wpa_supplicant.nix: services.udev.packages = [ pkgs.crda ];
<clever> morgrimm: ah, its done by wpa_supplicant via that line
hlisp has joined #nixos
<{^_^}> [nixpkgs] @emilazy opened pull request #87554 → linux: explicitly enable AIO → https://git.io/JfW5S
ayrymmnwpnng[m] has joined #nixos
<morgrimm> Ohhh, I wonder
<{^_^}> [mobile-nixos] @masipcat opened pull request #146 → pine64-pinephone-braveheart: kernel 5.6.0 → https://git.io/JfW5Q
<morgrimm> I'm using networkmanager with the iwd backend, not wpa - I bet I didn't add iwd to the new gen
<clever> /home/clever/apps/nixpkgs-rust2/nixos/modules/services/networking/networkmanager.nix: crda
<clever> morgrimm: network manager should also be doing it
<morgrimm> Doesn't networkmanager delegate to wpa/iwd?
<evanjs> lol alright... looks like it's been off for some time now... #7160
<{^_^}> https://github.com/NixOS/nixpkgs/pull/7160 (by codyopel, 5 years ago, closed): ffmpeg: refactor, ffmpeg -> ffmpeg-full & add ffmpeg (minimal)
<morgrimm> for the actual interface work?
o1lo01ol1o has quit [Remote host closed the connection]
<evanjs> can't find any reason why...
<clever> morgrimm: it has its own line doing the same thing in the nixos module
<clever> -r--r--r-- 1 root root 273 Dec 31 1969 /etc/udev/rules.d/85-regulatory.rules
<clever> morgrimm: does this file exist?
codygman has joined #nixos
<morgrimm> it does yeah
<clever> morgrimm: then you have crda already
shibboleth has joined #nixos
hlisp has quit [Ping timeout: 246 seconds]
<clever> morgrimm: are the drivers in the initrd?
johnjay has quit [Ping timeout: 256 seconds]
<clever> morgrimm: they seem to be loading rather early
o1lo01ol1o has joined #nixos
<morgrimm> I haven't touched the kernel modules, udev loaded them automatically for me - I just had to fill in the firmware
<clever> not sure what else to check then
<morgrimm> Me neither - I'll play around though. Thanks for the suggestions
agsdheidjd has joined #nixos
fendor has quit [Remote host closed the connection]
proofofkeags has quit [Remote host closed the connection]
<morgrimm> clever: yeah it was literally iwd
<morgrimm> damn
<morgrimm> networkmanager has wpa builtin, so I thought iwd was the same
hlisp has joined #nixos
dermetfan has joined #nixos
smatting has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
user_0x58 has joined #nixos
hlisp has quit [Ping timeout: 260 seconds]
dnlkrgr has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #87534 → fatsort: 1.5.0.456 -> 1.6.2.605 → https://git.io/JfWyq
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfWdW
hlisp has joined #nixos
asbachb has quit [Remote host closed the connection]
<ldlework> SUCCESSSSSSSS https://youtu.be/nKgC1VCDkLI
philr has joined #nixos
johnjay has joined #nixos
hlisp has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #87535 → termdown: 1.16.0 -> 1.17.0 → https://git.io/JfWyg
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfWdu
<{^_^}> [nixpkgs] @Ma27 merged pull request #87370 → radare2-cutter: 1.10.2 -> 1.10.3 → https://git.io/JfCKV
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JfWdg
eoli3n_ has quit [Quit: WeeChat 2.8]
morgrimm has quit [Ping timeout: 260 seconds]
hlisp has joined #nixos
simba1 has quit [Ping timeout: 260 seconds]
dermetfan has quit [Ping timeout: 244 seconds]
agsdheidjd has quit [Ping timeout: 246 seconds]
eoli3n__ has quit [Ping timeout: 272 seconds]
<keithy[m]> Hi guys, I am trying to print out the environment with env within a script running in timer, so that it shows in journalctl, whats the way to do this?
chloekek has quit [Ping timeout: 256 seconds]
<keithy[m]> set works env does nothing
<betawaffle> hmm, what's the proper way to start a service but not wait for it to finish starting?
mbrgm_ has joined #nixos
<makefu> betawaffle: oneshot is probably what you are looking for
<makefu> type
<{^_^}> [nixpkgs] @Ma27 merged pull request #87480 → scala: 2.13.1 -> 2.13.2 → https://git.io/JfW8e
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JfWdb
orivej has joined #nixos
mbrgm has quit [Ping timeout: 240 seconds]
mbrgm_ is now known as mbrgm
o1lo01ol1o has joined #nixos
smatting has quit [Ping timeout: 256 seconds]
<keithy[m]> env worked sometimes. Just not when I want it to
<cole-h> emily: btw I'm 99.999% sure ofborg doesn't (currently) watch for mentions in PR bodies -- it needs to be a separate comment.
<keithy[m]> so env works in nix-shell --pure
o1lo01ol1o has quit [Ping timeout: 272 seconds]
uakci has joined #nixos
<cole-h> `env` in systemd units only sees what's in `systemctl show-environment` (add `--user` if the unit is a user unit)
<colemickens> has anyone tried out kubenix and/or dhall-kubernetes and have opinions?
<keithy[m]> sure but at least that is something
oborot has quit [Ping timeout: 256 seconds]
vidbina has joined #nixos
<keithy[m]> perhaps I managed to break env
<cole-h> Maybe you could `strace env` in that timer and see what comes out :P
<keithy[m]> code=exited, status=127/n/a
o1lo01ol1o has joined #nixos
<cole-h> Nothing in logs?
<keithy[m]> ok I added pkgs. strace
<keithy[m]> hmm code=exited, status=127/n/a
<keithy[m]> * hmm execve("/nix/store/ca9mkrf8sa8md8pv61jslhcnfk9mmg4p-coreutils-8.31/bin/env",
<keithy[m]> I thought it was at /usr/bin/env
<keithy[m]> access("/etc/ld-nix.so.preload", R_OK) = -1 ENOENT (No such file or directory)
<cole-h> /usr/bin/env is probably a symlink
<cole-h> keithy[m]: Maybe just paste the entire output in a gist or something. So far, that's pretty standard output and nothing worrying.
cr4y1 has quit [Remote host closed the connection]
proofofkeags has joined #nixos
<energizer> What am I supposed to do about this? `ImportError: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /nix/store/gk6jnn0zrj41srpjfrnjm1x7m19hncff-python3-3.7.7-env/lib/libpython3.7m.so.1.0)`
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87556 → liburcu: 0.11.1 -> 0.12.1 → https://git.io/JfWFP
<energizer> ,locate bin/ldd
<{^_^}> Found in packages: musl, glibc.bin, glibc_multi.bin, glibc_memusage.bin
rogue_koder_ has quit [Ping timeout: 264 seconds]
lorimer has quit [Read error: Connection reset by peer]
<keithy[m]> it worked once!
<keithy[m]> timer is running every 15 secs
lorimer has joined #nixos
<keithy[m]> ok this works /nix/store/ca9mkrf8sa8md8pv61jslhcnfk9mmg4p-coreutils-8.31/bin/env
<keithy[m]> when I put that in my timer script
<keithy[m]> once!
phreedom has quit [Remote host closed the connection]
leotaku has quit [Ping timeout: 240 seconds]
phreedom has joined #nixos
morgrimm has joined #nixos
<cole-h> And after that, it gives you the 127 exit code?
<keithy[m]> (that was when strace wasnt there)
maddo has quit [Quit: See ya]
<{^_^}> [nixpkgs] @romildo merged pull request #87444 → nordic: 1.8.1 -> 1.9.0 → https://git.io/JfWIr
<{^_^}> [nixpkgs] @romildo pushed 2 commits to master: https://git.io/JfWFj
<{^_^}> [nixpkgs] @romildo merged pull request #87445 → nordic-polar: 1.6.0 -> 1.9.0 → https://git.io/JfWID
<{^_^}> [nixpkgs] @romildo pushed 2 commits to master: https://git.io/JfWbf
bgamari_ has joined #nixos
bgamari has quit [Ping timeout: 246 seconds]
leotaku has joined #nixos
rogue_koder_ has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87557 → verilator: 4.032 -> 4.034 → https://git.io/JfWbT
<{^_^}> [nixpkgs] @romildo merged pull request #87448 → shades-of-gray-theme: 1.2.1 -> 1.3.0 → https://git.io/JfWLm
<{^_^}> [nixpkgs] @romildo pushed 2 commits to master: https://git.io/JfWbL
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87558 → vttest: 20200303 -> 20200420 → https://git.io/JfWbm
morgrimm has quit [Ping timeout: 264 seconds]
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
EdLin has quit [Ping timeout: 260 seconds]
<finnwww[m]> I'm getting a strange error. I boot the computer, I see the xorg default screen. I enter my password correctly, and I see the error "Failed to start session". I'm trying to configure xorg through home manager. Any idea what's going wrong?
EdLin has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
codygman has quit [Ping timeout: 272 seconds]
codygman has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87559 → tilda: 1.5.0 -> 1.5.1 → https://git.io/JfWbB
cmk_zzz has joined #nixos
<cmk_zzz> how do people keep there secrets in a nix configuration. Things like gpg keys, ssh master keys. Are these kept outside of nix and nix home manager or how to people do it?
EdLin has quit [Ping timeout: 256 seconds]
<keithy[m]> I pass the location of the secret into an environment variable in the nix configuration.
<{^_^}> [nixpkgs] @r-ryantm opened pull request #87560 → zotero: 5.0.83 -> 5.0.85 → https://git.io/JfWbg
shabius has joined #nixos
<keithy[m]> So the secret itself is elsewhere
slack1256 has quit [Remote host closed the connection]
<cmk_zzz> keithy[m]: that makes sense. do you supply this variable everytime you run nixos-rebuild?
<keithy[m]> from the worlds worst nixer https://pastebin.com/nmSz9H3Q