andi- changed the topic of #nixos to: NixOS stable: 19.09 \o/ https://discourse.nixos.org/t/nixos-19-09-release/4306/2 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || use ,channels for a list of Nix* related channels || nixcon videos: https://tinyurl.com/nixcon2019 || Link to the output of nix-info
Pwnna has quit [Quit: Bye]
Pwnna has joined #nixos
<{^_^}> [nixpkgs] @erictapen opened pull request #84221 → [20.03] nixos/network-interfaces: Assert that bridges can get an address via DHCP → https://git.io/JvbWV
vykook has quit [Ping timeout: 256 seconds]
vykook has joined #nixos
cybrian has joined #nixos
gustavderdrache has quit [Quit: Leaving.]
cybrian has quit [Ping timeout: 265 seconds]
mexisme_ has joined #nixos
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
<{^_^}> [mobile-nixos] @samueldr merged pull request #114 → initrd-vendor: mount vendor read-only → https://git.io/Jv7kj
<{^_^}> [mobile-nixos] @samueldr pushed 2 commits to master: https://git.io/JvbWA
vykook has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @flokli pushed to master « Revert "rust-cbindgen: 0.13.1 -> 0.13.2" »: https://git.io/JvbWp
captjakk has quit [Ping timeout: 260 seconds]
vykook has joined #nixos
<{^_^}> [nixpkgs] @kalbasit opened pull request #84222 → bazel-gazelle: init at 0.20.0 → https://git.io/Jvblq
tomberek has joined #nixos
<tomberek> adisbladis: hey
vykook has quit [Ping timeout: 265 seconds]
vykook has joined #nixos
rodarmor has quit [Ping timeout: 272 seconds]
nh2 has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @drewrisinger opened pull request #84223 → python3Packages.uvloop: enable on python3.8 → https://git.io/JvblC
morgrimm has joined #nixos
nh2 has joined #nixos
<lejonet> Anyone here that could help me figure out that even tho I seet a randstackSeed for my kernel, the in-tree modules and out-of-tree modules (zfs and friends) still seem to get different randstack seeds, leading to ZFS and friends not being modprobable in the end (errors out with Exec format error)
<lejonet> s/seet/set/
lstanley has quit [Ping timeout: 240 seconds]
bgupta has quit [Ping timeout: 256 seconds]
<morgrimm> Anyone have a good config repo example for `home-manager`? I'm trying to figure out if it's intended to keep every dotfile in the config, or if it supports symlinking/evaluating existing dotfiles as well
rodarmor has joined #nixos
<energizer> morgrimm: #home-manager might have some
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/ef33b9fc089 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<morgrimm> Oh sweet, thanks - I'll ask there. Didn't realize it had it's own channel
bgupta has joined #nixos
lstanley has joined #nixos
lstanley has quit [Max SendQ exceeded]
vykook has quit [Ping timeout: 265 seconds]
lstanley has joined #nixos
waleee-cl has quit [Read error: Connection reset by peer]
elvishjerricco has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @drewrisinger opened pull request #84224 → [20.03]: python38Packages.uvloop: enable build → https://git.io/JvblK
<iceypoi> hello guys
waleee-cl has joined #nixos
cr4y1 has quit [Ping timeout: 256 seconds]
<iceypoi> I was trying to run nixos on a raspi 3b+
<iceypoi> with aarch64
lstanley has quit [Max SendQ exceeded]
<iceypoi> and no matter what version of mongodb I use, I keep getting seg faults
johs has quit [Ping timeout: 272 seconds]
<iceypoi> has anyone around here experienced a similar issue?
lstanley has joined #nixos
elvishjerricco has joined #nixos
johs has joined #nixos
lstanley has quit [Max SendQ exceeded]
vykook has joined #nixos
captjakk has joined #nixos
<Pwnna> so how do I work around this issue: https://github.com/NixOS/nixpkgs/issues/38991 for a nix shell created by shell.nix?
<{^_^}> #38991 (by peti, 1 year ago, closed): glibc 2.27 breaks locale support
<Pwnna> i don't quite understand
lstanley has joined #nixos
<Pwnna> Add `LOCALE_ARCHIVE_2_27="${glibcLocales}/lib/locale/locale-archive";` into shell.nix?
<energizer> Pwnna: https://github.com/NixOS/nixpkgs/issues/38991#issuecomment-496332104 in my .zprofile worked for me
d1rewolf has quit [Ping timeout: 260 seconds]
<Pwnna> yeah i want to do it for nix-shell environments
<Pwnna> LOCALE_ARCHIVE_2_27="${glibcLocales}/lib/locale/locale-archive"; seems to work, but why do i not need to add glibcLocales to buildInputs?
<energizer> perhaps it's detected and added automatically?
<Pwnna> i assume so, i just don't quite undersatnd the magic
<cole-h> Because all it does is set an env var to the path of a file contained in glibcLocales
<cole-h> It fetches the package from the binary cache if it can, and just points to that file inside the package
<Pwnna> so then nix is smart enough to know to pull down glibcLocales from cache.nixos.org?
bhipple has joined #nixos
<cole-h> Yep. If you string-interpolate (which is what that's called) any package, it'll get pulled, or built if it can't be pulled
<Pwnna> ah ok i was under the impression that nix only pulled down things when it's in something like buildInput
<cole-h> > "${rofi}"
<Pwnna> that's neat and good to know.
<{^_^}> "/nix/store/hzpsfwc4bbkpkm23266yp2jx0psjaivb-rofi-1.5.4"
<Pwnna> oh nice bot lol
<cole-h> That just pulled rofi on the bot's server
captjakk has quit [Ping timeout: 260 seconds]
<gchristensen> buildInputs is nothing special to Nix
<cole-h> > "${rofi}/bin/rofi"
<{^_^}> "/nix/store/hzpsfwc4bbkpkm23266yp2jx0psjaivb-rofi-1.5.4/bin/rofi"
<cole-h> (sorry bot)
<ottidmes> morgrimm: I think the best solution is to use something like stow for your static dotfiles folder and HM for generated ones
<Pwnna> ah
<Pwnna> makes sense
<morgrimm> Right now I'm using chezmoi to manage my static ones, yeah
<morgrimm> I suppose I can just keep using chezmoi though
ArchFeh has joined #nixos
<morgrimm> and just pull and run it on nixos
vykook has quit [Ping timeout: 264 seconds]
<morgrimm> instead of trying to force my configs into nix when they probably don't belong there :/
d1rewolf has joined #nixos
<ottidmes> morgrimm: yep, that is what I would do
<ottidmes> morgrimm: thanks for the tip on chezmoi :) did not know about it, and seems nice, thinking of using it myself
d1rewolf has quit [Max SendQ exceeded]
ddellacosta has quit [Quit: WeeChat 2.2]
d1rewolf has joined #nixos
cjpbirkbeck has joined #nixos
<{^_^}> [nixpkgs] @garbas opened pull request #84225 → Vim node packages → https://git.io/Jvbl7
vykook has joined #nixos
<{^_^}> [nixpkgs] @alunduil opened pull request #84226 → nixos/zfs-replication.nix: expose port in config. → https://git.io/Jvbl5
morgrimm has quit [Ping timeout: 240 seconds]
<iceypoi> does anyone here know how reliable compilation using QEMU to ARM is?
<iceypoi> I am trying to figure out if my seg faults are due to the compilation being faulty or the package somehow broken
ddellacosta has joined #nixos
<bqv[m]> it's desperately unreliable
<bqv[m]> in my experience
<iceypoi> ok, cool, then. :-)
<iceypoi> So maybe if I install nixos on the raspi and just give it tons of time, the package might actually work
captjakk has joined #nixos
h0m1 has quit [Ping timeout: 272 seconds]
vykook has quit [Ping timeout: 256 seconds]
h0m1 has joined #nixos
Emantor has quit [Quit: ZNC - http://znc.in]
Emantor has joined #nixos
pjt_014 has joined #nixos
ottidmes has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @bhipple merged pull request #84223 → python3Packages.uvloop: enable on python3.8 → https://git.io/JvblC
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/Jvb8L
<{^_^}> [nixpkgs] @marsam opened pull request #84227 → buildah: 1.14.5 -> 1.14.6 → https://git.io/Jvb8t
vykook has joined #nixos
johnnyfive has quit [Ping timeout: 256 seconds]
johnny5 has joined #nixos
johnnyfive has joined #nixos
pbogdan has quit [Ping timeout: 256 seconds]
johnny5 has quit [Ping timeout: 260 seconds]
johnnyfive has quit [Ping timeout: 256 seconds]
vykook has quit [Ping timeout: 260 seconds]
thc202 has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @marsam opened pull request #84228 → ocamlformat: 0.13.0 -> 0.14.0 → https://git.io/Jvb8c
Kyndig has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @bhipple merged pull request #84202 → [20.03] nixos/sympa: fix outgoing emails, update package version → https://git.io/JvbqN
<{^_^}> [nixpkgs] @bhipple pushed 4 commits to release-20.03: https://git.io/Jvb8W
<{^_^}> [nixpkgs] @bhipple merged pull request #84207 → openttd: 1.9.3 -> 1.10.0 → https://git.io/JvbO1
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/Jvb8l
johnnyfive has joined #nixos
vykook has joined #nixos
johnny5 has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
mexisme_ has quit [Ping timeout: 272 seconds]
johnnyfive has quit [Ping timeout: 260 seconds]
johnny5 has quit [Ping timeout: 265 seconds]
<{^_^}> Channel nixos-20.03 advanced to https://github.com/NixOS/nixpkgs/commit/5bf91db519c (from 30 hours ago, history: https://channels.nix.gsc.io/nixos-20.03)
smatting_ has joined #nixos
vykook has quit [Ping timeout: 256 seconds]
johnnyfive has joined #nixos
<{^_^}> [nixpkgs] @marsam opened pull request #84229 → pueue: 0.2.1 -> 0.3.0 → https://git.io/Jvb8A
smatting has quit [Ping timeout: 240 seconds]
vykook has joined #nixos
<{^_^}> [nixpkgs] @cdepillabout merged pull request #84131 → haskellPackages.idris: Fix build (new GHC 8.8 & old megaparsec 7) → https://git.io/JvFze
<{^_^}> [nixpkgs] @cdepillabout pushed 2 commits to haskell-updates: https://git.io/Jvb4O
vykook has quit [Ping timeout: 265 seconds]
bastion-tester has quit [Quit: ZNC 1.7.4 - https://znc.in]
bastion-tester has joined #nixos
iceypoi has quit [Quit: WeeChat 2.3]
vykook has joined #nixos
iyzsong has joined #nixos
lovesegfault has quit [Ping timeout: 260 seconds]
<{^_^}> [nixos-homepage] @garbas pushed to nix-dev-redirect « redirect /nix-dev to index.html »: https://git.io/Jvb49
lovesegfault has joined #nixos
teto has quit [Ping timeout: 252 seconds]
vykook has quit [Ping timeout: 264 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
vykook has joined #nixos
<{^_^}> [nixpkgs] @romildo opened pull request #84230 → gnome2.gnome_icon_theme: 2.91.93 -> 3.12.0 → https://git.io/JvbBC
<{^_^}> [nixpkgs] @romildo pushed 2 commits to master: https://git.io/JvbBW
<{^_^}> [nixpkgs] @romildo merged pull request #84137 → theme-obsidian2: 2.10 -> 2.11 → https://git.io/JvF2k
vykook has quit [Ping timeout: 260 seconds]
<{^_^}> [nixos-homepage] @garbas merged pull request #377 → redirect /nix-dev to new location → https://git.io/JvdHr
<{^_^}> [nixos-homepage] @garbas pushed to master « redirect /nix-dev to new location (#377) »: https://git.io/JvbB8
<{^_^}> [nixos-homepage] @garbas pushed 0 commits to nix-dev-redirect: https://git.io/JvbB4
pjt_014 has quit [Quit: Leaving]
pjt_014 has joined #nixos
mounty has quit [Ping timeout: 256 seconds]
ddellacosta has quit [Ping timeout: 265 seconds]
vykook has joined #nixos
mounty has joined #nixos
ZaraChimera has quit [Quit: Going offline, see ya! (www.adiirc.com)]
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
aw has joined #nixos
spacefrogg has joined #nixos
develCuy has quit [Remote host closed the connection]
vykook has quit [Ping timeout: 260 seconds]
ZaraChimera has joined #nixos
cjpbirkbeck has quit [Quit: cjpbirkbeck]
felixfoertsch23 has joined #nixos
felixfoertsch has quit [Ping timeout: 256 seconds]
felixfoertsch23 is now known as felixfoertsch
<{^_^}> [nix] @Ericson2314 opened pull request #3472 → Uses `StorePathHash` typedef to always remember the length → https://git.io/JvbBj
<{^_^}> [nixpkgs] @petabyteboy opened pull request #84231 → sip, pyqt, pyqtwebengine: update → https://git.io/JvbRL
<{^_^}> [nixpkgs] @petabyteboy opened pull request #84232 → qt5: 5.12.7 -> 5.14.2 → https://git.io/JvbRt
mexisme_ has joined #nixos
vykook has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/7e076bf2911 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
kleisli has quit [Ping timeout: 265 seconds]
vykook has quit [Ping timeout: 256 seconds]
mexisme_ has quit [Ping timeout: 265 seconds]
vykook has joined #nixos
rogue_koder has quit [Ping timeout: 264 seconds]
rogue_koder has joined #nixos
waleee-cl has quit [Quit: Connection closed for inactivity]
vykook has quit [Ping timeout: 256 seconds]
vykook has joined #nixos
rogue_koder has quit [Ping timeout: 265 seconds]
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
rogue_koder has joined #nixos
vykook has quit [Ping timeout: 265 seconds]
alvaro121[m] has joined #nixos
work_ has quit [Quit: Connection closed for inactivity]
work_ has joined #nixos
captjakk has quit [Ping timeout: 265 seconds]
vykook has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
<{^_^}> [nixpkgs] @colemickens opened pull request #84233 → firefox: add fedora's pipewire patch for wayland users → https://git.io/Jvb0q
rogue_koder has quit [Ping timeout: 265 seconds]
domogled has quit [Ping timeout: 250 seconds]
<{^_^}> [nixos-homepage] @garbas pushed 3 commits to governance: https://git.io/Jvb0c
<{^_^}> [nixos-homepage] @garbas merged pull request #366 → Governance page → https://git.io/JvS9t
<{^_^}> [nixos-homepage] @garbas pushed to master « Governance page (#366) »: https://git.io/Jvb0C
<{^_^}> [nixos-homepage] @garbas pushed 0 commits to governance: https://git.io/Jvb0W
<{^_^}> [nixpkgs] @catern opened pull request #84234 → csv2latex: init at 0.22 → https://git.io/Jvb0B
rogue_koder has joined #nixos
bhipple has quit [Ping timeout: 264 seconds]
bhipple has joined #nixos
<bsima> what's going on with nixops? seems like a lot of removing code lately
<bsima> grahamc[m]: ^^ if you're around
<hyper_ch> the end is neigh :)
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
<bsima> i hope not, i really like nixops
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bsima> or i like the idea of it anyway
rogue_koder has quit [Ping timeout: 256 seconds]
<bsima> that answers my qustion :)
vmandela has joined #nixos
bhipple has quit [Ping timeout: 250 seconds]
bhipple has joined #nixos
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 256 seconds]
Mateon3 is now known as Mateon1
marsh has quit [Remote host closed the connection]
marsh has joined #nixos
<colemickens> I'm trying to build firefox with a small patch. I don't think this build failure is related: https://gist.github.com/colemickens/3c491bfe6081c55fd841fb73a961a6a1 any ideas?
<{^_^}> [mobile-nixos] @samueldr opened pull request #120 → doc: Add per-device pages → https://git.io/JvbE3
fragamus has joined #nixos
<cole-h> colemickens: What a helpful log lol. Any chance the error occurred earlier in that log but didn't immediately halt the build?
<samueldr> colemickens: use `nix log /nix/store/5jh8amgswp4drn3in8ljlw842kgi4r46-firefox-unwrapped-74.0.drv` and search for "error:" using / (since it's less)
<colemickens> I don't think so, but it's a good point, I should've checked
<samueldr> if it's a C / C++ error, it's likely using "error:" as prefix
<samueldr> sometimes in highly-parallelized loads the error is not at the very end
pluplog has joined #nixos
<samueldr> I would even say "often" instead of sometimes :)
<cole-h> ^
<colemickens> oh yeah, there it is. thanks!
<samueldr> trust me, I make errors often^W^W^W debug failing builds for a living
pluplog has quit [Remote host closed the connection]
lovesegfault has quit [Ping timeout: 272 seconds]
<cole-h> samueldr: Assuming you have the permissions, I think this should get a security tag: https://github.com/NixOS/nixpkgs/pull/84211
<{^_^}> #84211 (by andir, 8 hours ago, open): firefox: 74.0 -> 74.0.1
<{^_^}> [nixos-homepage] @garbas pushed to planet « planet »: https://git.io/JvbEr
pluplog has joined #nixos
lovesegfault has joined #nixos
<cole-h> samueldr++
<{^_^}> samueldr's karma got increased to 196
<{^_^}> [nixos-homepage] @garbas opened pull request #381 → planet → https://git.io/JvbEo
<cole-h> ty
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
iyzsong has joined #nixos
<hyper_ch> hmmm, there's a way to calculate the sha256sum from a git repo. Anyone knows by heart how to do it?
<evils> hyper_ch: nix-prefetch-git?
<hyper_ch> that is it I think.. thx
<evils> i don't know how to use it though :P
pluplog has quit [Remote host closed the connection]
<cole-h> I dunno if it's in the NixOS PATH, but it's not on my PATH
<cole-h> So I figured I'd link it :P
<pjt_014> If it's on github and has releases, use the url for that
<evils> pjt_014: no, that's nix-prefetch-github :P
<pjt_014> I'm looking at man nix-prefetch-url rn
<{^_^}> [nixpkgs] @peterhoeg merged pull request #84212 → scummvm: add broken-sword-25 and dreamweb games → https://git.io/JvbGD
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/JvbEj
mexisme_ has joined #nixos
<hyper_ch> [07:12] <evils> pjt_014: no, that's nix-prefetch-github :P --> that was the one :)
<hyper_ch> git / github... all the same ;)
blumenkranz has quit [Remote host closed the connection]
linarcx has joined #nixos
pluplog has joined #nixos
<{^_^}> [nixos-homepage] @garbas pushed 3 commits to planet: https://git.io/JvbuZ
palo1 has joined #nixos
mexisme_ has quit [Ping timeout: 272 seconds]
<pjt_014> how hard might adding a new display manager be?
palo has quit [Ping timeout: 256 seconds]
palo1 is now known as palo
<cole-h> What did you have in mind? Might be a good idea to look at the ones we currently have, like GDM and SDDM
<hyper_ch> there's also lightdm IIRC
<cole-h> (Probably needs a module to be useful)
<pjt_014> For people that want a super minimal system yet still need graphics, I found one that'd be quite good for that
<pjt_014> No option for it, but It's available as a package weirdly enough
<pjt_014> yup, just checked
<pjt_014> it's under applications/display-managers/ly
chagra has joined #nixos
<hyper_ch> hmmm, having issues with latest master and boot.extraModulePackages: error: The option value `boot.extraModulePackages.[definition 1-entry 1]' in `/etc/nixos/hardware-configuration.nix' is not of type `package'. --> I need to have wireguard in it
<hyper_ch> I used to have boot.extraModulePackages = [ config.boot.kernelPackages.wireguard ]; but it complains
<hyper_ch> the example in nixos options is: [ pkgs.linuxPackages.nvidia_x11 ] so I tried [ pkgs.wireguard ] but no luck either
gxt has quit [Remote host closed the connection]
gxt has joined #nixos
<{^_^}> [nixpkgs] @srhb merged pull request #84206 → steam: Update generated runtime dependencies → https://git.io/JvbYC
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/JvbuD
<hyper_ch> ah... pkgs.linuxPackages.wireguard :9
chagra_ has quit [Ping timeout: 265 seconds]
mexisme_ has joined #nixos
<{^_^}> [nixpkgs] @virusdave opened pull request #84235 → unison-ucm 1.0.M1h-alpha -> 1.0.M1i-alpha → https://git.io/Jvbud
mexisme_ has quit [Ping timeout: 265 seconds]
lovesegfault has quit [Quit: WeeChat 2.8]
<hyper_ch> adisbladis: online?
<bdju> if filing an issue for a broken package, what do I put in the attribute and module fields? how can I find out what those should be?
<pjt_014> i know an example
<pjt_014> the package rq is broken
<pjt_014> one sec
<bdju> kk
<bdju> pjt_014: wow, ly looks very cool. never seen it before
<bdju> if that was a working option I would probably use it. currently I just run "exec sway" from a tty
<pjt_014> yup. I've spent a decent amount of time wondering why it's only a package
<bdju> oh, maybe I have seen it before, it seems to be bookmarked in my browser. I didn't remember it, though.
<pjt_014> can you not have that command run automatically via your greeter?
<bdju> I boot to TTY, not using a display manager currently
<bdju> I think I had issues using one maybe
<pjt_014> ah yes the good ol' "whyd I do this again?"
<bdju> haha
jakobrs has joined #nixos
<bdju> I reboot maybe once a month at most so it's easy to forget about the early boot stuff
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
<jakobrs> I was looking at nix-community/nur-packages-template and noticed that it is licensed under the MIT license.
<pjt_014> what is?
<jakobrs> This sounds like a bad idea to me because, as far as I understand it, that means that any repository using it as a template would need to (1) keep the MIT notice, and (2) follow the terms of the MIT notice, neither of which is ideal.
<pjt_014> this is new. isn't the gpl the one people usually get prissy about?
iyzsong has joined #nixos
<bdju> pjt_014: I sorta got off-topic from before but if you find the rq thing for me to see as an example that would be great. I have like 90% of an issue filled out right now
<bdju> I tried searching myself but can't find it
<pjt_014> oh yeah I just found it: meta.broken = true
<jakobrs> Yeah, but licensing a template under the MIT license doesn't exactly sound like a great idea either.
<cole-h> What should it be licensed as, then?
<pjt_014> wtfpl :P
<{^_^}> [nixpkgs] @jtojnar pushed to staging-next « gobject-introspection: fix tests on darwin »: https://git.io/Jvbzv
<pjt_014> I mean it coulda been affero
<cole-h> WTFPL isn't OSI approved, but w/e
<jakobrs> Yeah, that's the problem.
<jakobrs> the Unlicense seems to be a reasonable choice.
<cole-h> Which as the same problem
<cole-h> s/as/has
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/4dc8447c55f (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<cole-h> Curious why you see the MIT license as an issue? What difference does it make?
<jakobrs> Yeah, but it still seems like a better choice to me.
* cole-h has little to no experience with OSS licensing
<simpson> Depends on your goals. You have to keep in mind that (0) mere aggregations of facts about packages might not be copyrightable (https://en.wikipedia.org/wiki/Feist_Publications,_Inc.,_v._Rural_Telephone_Service_Co.), and (1) OSI approval isn't everything; WTFPL is useful because it keeps certain large corporations away, for example.
<jakobrs> The main gripe is that you probably can't license your repository that is based on the template under anything *more* permissive than the MIT license (because sublicensing stuff)
<jakobrs> So you can't (I think) license your NUR repo under, for example, the Unlicense.
work_ has quit [Quit: Connection closed for inactivity]
<simpson> (Ooh, this rabbit hole is fun. https://en.wikipedia.org/wiki/Database_right for example. USA and EU differ here!)
<cole-h> Maybe I'm misunderstanding, but it says "Licensed works, modifications, and larger works may be distributed under different terms and without source code."
<cole-h> Wouldn't the Unlicense be covered under "different terms"?
<pjt_014> would you consider public domain?
<jakobrs> See the 1st paragraph of the license itself:
<jakobrs> "permission is hereby granted [...] to use, copy, merge, publish, distribute, *sublicense*, and/or sell copies of the software [...]"
<jakobrs> So the only way to change the license normally is if you're sublicensing
<jakobrs> But I am not a lawyer, I may be misunderstanding it.
<cole-h> Nor am I :P
<{^_^}> [nixpkgs] @sjau opened pull request #84237 → easysnap: 2019-02-17 -> 2020-04-04 → https://git.io/Jvbzk
vmandela has quit [Remote host closed the connection]
<jakobrs> Random stackexchange reply which might be relevant: https://opensource.stackexchange.com/a/2681
<jakobrs> > However, you can only *add* conditions, you can not *remove* any of the conditions of the MIT license [...]
<{^_^}> error: syntax error, unexpected ',', expecting ')', at (string):293:8
<cole-h> >> However, the MIT license only applies to the original software you got under MIT from the original author. Any modifications you do to the software can be put under different conditions.
<jakobrs> Yeah, again, IANAL.
<cole-h> IANAL, but if you modify the template (say, with your own package) wouldn't that put you in the clear?
<cole-h> Lol
<pjt_014> you mentally put a space there didnt you
<jakobrs> Hopefully? I'd rather not take any risks, even though I'm probably not going to get sued by anybody.
<simpson> jakobrs, cole-h: Forms and templates generally aren't copyrightable, FWIW.
<colemickens> so much juicy legal advice :) /me takes notes
<cole-h> jakobrs: You could also ask fgaz to dual-license under MIT/Unlicense at "your" (collective) option
<simpson> If you are that worried about it, make sure the original authors are okay, and then explicitly disclaim copyright with a notice for the templates.
<simpson> colemickens: I am *not* giving legal advice~
<cole-h> I am not a lawyer, and more specifically, I am not *your* lawyer :P
<colemickens> too late. I've already begun many things based on these advices.
<cole-h> MIT/Unlicense seems to be fairly simpatico, see: ripgrep (and most of BurntSushi's software I believe)
<jakobrs> I'd open an issue, but again, I am not a lawyer, I don't want to do anything which might not be a good idea
<pjt_014> you can open an issue that's just a question, we have that category
<simpson> Starting a license fight where none previously existed would be a not-good idea, IMO.
<jakobrs> The problem is that arguing for or against changing the license makes it more likely to seem like I have any idea what I'm talking about (which I don't)
<simpson> Clarifying language so that existing usage patterns are made explicit and codified, OTOH, seems like a good idea.
* cole-h heads off to bed
<cole-h> Thanks for the conversation. See you guys later
<pjt_014> cya
cole-h has quit [Quit: Goodbye]
drakonis has quit [Quit: WeeChat 2.7.1]
linarcx has quit [Quit: WeeChat 2.8]
<jakobrs> ... I'll open an issue pointing to this section of the IRC logs, if that seems reasonable?
<{^_^}> [nixpkgs] @mmahut merged pull request #84193 → Revert "tessera: 0.10.2 -> 0.10.4" → https://git.io/JvbvE
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/Jvbzl
<{^_^}> [nixpkgs] @mmahut merged pull request #81196 → certbot: 1.0.0 -> 1.3.0 → https://git.io/JvzRq
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/Jvbz4
<pjt_014> better than putting nothing in the description for sure
<jakobrs> I originally had a more in-depth argument, but I removed it aforementioned reasons.
<pjt_014> hm. that'll work
<xfix> i'm pretty sure lib/default.nix, modules/default.nix and overlays/default.nix aren't copyrightable, but it's more complicated with other Nix files in the repository
ArchFeh has quit [Remote host closed the connection]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/340c953ef02 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<pjt_014> actually I just thought of something: why does there need to be a default?
<xfix> that being said, it's not terrible, a MIT copyright notice in ci.nix, default.nix and overlay.nix seems fine to me
relaxmax has joined #nixos
<xfix> example-package seems kinda trivial to me, so probably not copyrightable either
<jakobrs> pjt_014: If there is no license, that is usually interpreted as being fully copyrighted.
<xfix> and honestly, all things considering default.nix doesn't seem copyrightable to me either
mexisme_ has joined #nixos
<xfix> it's just an interface (hopefully that's not copyrightable...)
<colemickens> hm so can I send prs with the new "sha256-blah" hashes?
<colemickens> or is there an easy way to convert them or something?
<jakobrs> So you're not allowed to do anything with it at all (except reading it since that is covered by GitHub's ToS, I think)
FRidh has joined #nixos
<jakobrs> nix-community/nur-packages-template#12
<{^_^}> https://github.com/nix-community/nur-packages-template/issues/12 (by jakobrs, 1 minute ago, open): The MIT license might not (maybe?) be a great idea for a template. IANAL
<xfix> IMO nur-template should use something like CC0, because I don't think it will be able to realistically protect against copyright violations
<jakobrs> Yes, CC0 would also work
<xfix> the closest thing to being copyrightable is ci.nix, but even then, eh...
<evanjs> I typically refer to TL;DR Legal for things like this — although it’s not an equivalent for a lawyer, etc — https://tldrlegal.com/
<pjt_014> idea: what about a 'null licence' whose sole legal property is that it must be replaced with something else before being used
<pjt_014> ?
<jakobrs> Like someone's mentioned, it's a template so it probably isn't copyrigtable anyway
<xfix> it's messy
<ZaraChimera> I am trying to install nix in opensuse WSL. Using the command from the website gives me a message about not being able to get local issuer certificate.
koleesch_ has quit [Ping timeout: 240 seconds]
<xfix> in some countries, you cannot put your works under public domain
<pjt_014> ew
<jakobrs> pjt_014: You could do that, but (1) such a license doesn't exist (afaik), and (2) why not just CC0 if you're going that far
<xfix> i find Unlicense kinda shaky
mexisme_ has quit [Ping timeout: 250 seconds]
mexisme has joined #nixos
<pjt_014> ZaraChimera: what is wsl? I only know that as windows subsystem for linux
<pjt_014> which doesnt seem right
<ZaraChimera> I was trying on Windows Subsystem, correct.
<xfix> that being said, Unlicense is likely fine
<ZaraChimera> Searching for nix on WSL led me to a reddit post about it working. It said to use the curl command from the nixos site.
<pjt_014> oh. so why'd you say opensuse?
<xfix> now that I read it
<ZaraChimera> Because I am using the opensuse leap release for WSL as the base to try to run the command.
<jakobrs> I didn't give mention specific license in the issue (apart from the MIT license), I only referred to this thread
<pjt_014> oooooh. I forgot there were options besides ubuntu
<ZaraChimera> I put that in as information about what I was using in case that made a difference to the solution.
<jakobrs> I'm "deferring" the choice of license
<xfix> but eh, Unlicense seems kinda problematic to me
kleisli has joined #nixos
<pjt_014> ZaraChimera: it shouldn't as far as I know
<xfix> i think CC0 is less problematic personally
<ZaraChimera> pjt_014 Yeah, they have suse leap and enterprise, debian, kali, alpine and ubuntu.
<pjt_014> alpine? that's new.
<jakobrs> ZaraChimera: last time I tried to install Nix in WSL, there were
fusion809 has joined #nixos
<jakobrs> problems
<pjt_014> oh, important question: what does the date command tell you?
<jakobrs> you should probably look for a relevant issue on github
<ZaraChimera> So my issue is with a certificate that curl tries to verify when I run the command "curl -L --proto '=https' --tlsv1.2 https://nixos.org/nix/install | sh"
<ZaraChimera> Running date gives
<ZaraChimera> Sat April 4 2020
<pjt_014> without the time?
<ZaraChimera> It includes the time. I screwed up the copy.
<ZaraChimera> Time is 06:36:14 UTC
mexisme has quit [Ping timeout: 265 seconds]
<pjt_014> I'll assume that's right.
<pjt_014> I'm asking because certificates sometimes barf because the date is wrong. I found that out when I had a similar problem and found my date was set to sometime in 1960, outside the expiry range
<{^_^}> [nixpkgs] @jtojnar pushed to staging-next « aravis: fix build »: https://git.io/JvbzM
<xfix> I would recommend CC0 personally for that purpose
<xfix> Unlicense kinda feels like a license written by a programmer who looked at various licenses, had no idea how the law works, and tried to make their own license
<pjt_014> ZaraChimera: you can also throw a --verbose at it to get more info
<ZaraChimera> The github issues link jakobrs provided does not list any issues relating to curl and certificate verification issues.
<ZaraChimera> pjt_014 you mean to the curl command?
<ZaraChimera> or date command?
<pjt_014> yes
<pjt_014> curl
relaxmax has quit [Quit: Leaving]
<ZaraChimera> curl: (60) SSL certificate problem: unable to get local issuer certificate
<ZaraChimera> how to fix it, please visit the web page mentioned above.
<ZaraChimera> establish a secure connection to it. To learn more about this situation and
<ZaraChimera> curl failed to verify the legitimacy of the server and therefore could not
<ZaraChimera> More details here: https://curl.haxx.se/docs/sslcerts.html
<ZaraChimera> Same result with --verbose as without.
<pjt_014> hm. Also worth noting: you can download the install script with anything you want and run it as a file
<pjt_014> for example wget might simply ignore the problem
<pjt_014> or a browser
zaeph1 has joined #nixos
<xfix> to be specific, the problem with Unlicense is that it's trying to be MIT license with a public domain disclaimer, but public domain is very complicated
<pjt_014> once you have it download as install.sh or whatever, do: chmod +x install.sh; ./install.sh
<ZaraChimera> Okay.
<pjt_014> This is the part where the problem is fairly easy to work around, it's the installation where things might get interesting
<pjt_014> although last time I used nix on wsl I only really came into 3 problems
<ZaraChimera> Okay, located a cert to download so I'll try that.
<pjt_014> sure, try that
zaeph has quit [Ping timeout: 265 seconds]
<fgaz> cole-h, jakobrs: I don't think the license is a problem, but I guess we can change it
<jakobrs> That would be great
<fgaz> We'll have to ask all contributors though
<jakobrs> Just remember the "consent from all contributors" part
Naptra has joined #nixos
<jakobrs> There are only 4 contributors though, hopefully they won't be too hard to reach
<jakobrs> And all of them are still active on github
<fgaz> Open an issue, I myself am OK with that. Any suggestions? Unlicense?
<jakobrs> I think either CC0 or the Unlicense would work (again, IANAL)
<fgaz> AFAIK CC0 isn't for code (ianal too)
<xfix> CC0 is fine for code
<xfix> other Creative Commons licenses aren't, but CC0 is fine
<jakobrs> CC licenses generally shouldn't be used for code, but CC0 is fine afaik
<fgaz> Which makes sense, since it's just public domain
<fgaz> Also CC0 is more mature I think?
<jakobrs> Yeah, it's backed by the Creative Commons
<hpfr[m]> For IRC on NixOS do I need to open a port in the firewall?
<jakobrs> but the Unlicense is shorter
<jakobrs> hpfr[m]: No
<hpfr[m]> why not?
<jakobrs> ... unless you mean an IRC *daemon*
<xfix> Unlicense has incomplete disclaimer for countries which do not recognize public domain
<xfix> funnily enough some MIT-like licenses give more rights than Unlicense
<hpfr[m]> port 6697 is open?
<jakobrs> That's the IRCd port I think
<jakobrs> If you're trying to run an IRC *server*, you're going to need to open a port.
zaeph1 is now known as zaeph
<jakobrs> Unless the nixos module adds the port automatically
<pjt_014> I'm using irc right now (obvs) and not open any ports in my config, so I'd assume it's done automatically
<ZaraChimera> Interesting. Passing the --insecure option to curl still gets me that error. I think it might have to do with WSL potentially, if it isn't an issue on other systems.
<jakobrs> sudo nixos-option networking.firewall.allowedTCPPorts should tell you what ports are actually open and why
<xfix> CC-BY-SA 4.0 can kinda be used for code because it can be converted to GPLv3, but that's a bad idea, generally don't use CC other than CC0 for code
<xfix> if you want GPLv3, then use GPLv3 instead of bothering with an additional step
<ZaraChimera> wget also complains about the certificate.
<pjt_014> ZaraChimera: can you download the install file on your host and just move it to the wsl folder?
<jakobrs> epsilon (calculator OS) uses CC-BY-NC-SA, but that's the only code project I've seen that uses a CC license (apart from CC0)
<xfix> worth noting that GNU recommends using CC0 instead of Unlicense
<pjt_014> it ugly af but it work
<xfix> "If you want to release your work to the public domain, we recommend you use CC0. CC0 also provides a public domain dedication with a fallback license, and is more thorough and mature than the Unlicense."
<ZaraChimera> I managed to get the install with wget and passing --no-check-certificate
<hpfr[m]> jakobrs: whoa nixos-option is kinda cool
<jakobrs> yeah, I know
<xfix> that being said, Unlicense is a free software license, the Unlicense's fallback is incomplete, but it still is free software
<jakobrs> It's going to be rewritten in C (I think) in the next release, making it even faster
<jakobrs> FWIW, GitHub indirectly sort of endorses the Unlicense
<pjt_014> you sure it can show the whole firewall status and not just whats in the config?
<hpfr[m]> what's being rewritten in c
<jakobrs> the Unlicense, but not cc0 is mentioned here -> https://choosealicense.com/licenses/
<jakobrs> hpfr[m]: nixos-option
<hpfr[m]> why is speed so paramount for this command haha
<hpfr[m]> doesn't it just parse some nix
<pjt_014> its fooking SL O W
<pjt_014> used to worse
<jakobrs> pjt_014: It shows what value is actually used for your system configuration
<jakobrs> the complete firewall rule set can be seen using iptables --list
hpfr has joined #nixos
<jakobrs> Mic92 mentions on GitHub that all NUR repositories are required to be MIT-licensed anyway
<jakobrs> I still think that the template should be CC0 or Unlicensed anyway, though
leonardp[m] has joined #nixos
snicket has joined #nixos
mexisme has joined #nixos
<ZaraChimera> pjt_014 I got the install file downloaded and got it copied to my WSL /home directory, ran sudo chmod +x and then tried to run it, but it still complains about the certificate.
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pjt_014> ah crap I forgot it installs stuff it downloads too
thetet has joined #nixos
<pjt_014> and youll need network access to dl packages
<pjt_014> luckily that means this isnt a nix(os) problem anymore
<pjt_014> any help that has/can deal with ssl type problems is now a resource
<ZaraChimera> I made sure my suse WSL does see the net, which it does.
<xfix> choosealicense is eh... choosealicense decided to pick Unlicense over CC0 because it is shorter and because the Unlicense's author requested that
<xfix> there was no real legal analysis in this case
<fgaz> <jakobrs "I still think that the template "> Hmm but then there'd be an additional step when uaing the template
<fgaz> using
mexisme has quit [Ping timeout: 265 seconds]
<pjt_014> ZaraChimera: yeah but that's of limited use since so many places use ssl
<ZaraChimera> Yep. I get the script but it doesn't help as the script itself needs ssl functioning.
<pjt_014> actually there is one way to still use nix without usable net access now that I think about it
leonardp[m] is now known as leonardp
<pjt_014> sideloading
<pjt_014> ugly but it works
thetet has left #nixos [#nixos]
<ZaraChimera> I found some results searching for the curl issue saying I need to put a reference to cacert in php.ini or similar to make it work.
eoli3n__ has joined #nixos
<pjt_014> that dont sound right
<jakobrs> fgaz: As it is currently, you need to keep the copyright notice of nur-packages-template *in addition to* your own
<pjt_014> tf is php have to do with it?
<ZaraChimera> It was an answer on SO regarding the curl error I was getting.
<ZaraChimera> SO (stack overflow)
o1lo01ol1o has joined #nixos
<xfix> i don't think that's an issue
<pjt_014> but yeah you have a missing file or something somewhere. unless php stands fopr something other tham Pretty Hellish Programming lanuage
<ZaraChimera> The php.ini might have had something to do with something like wordpress.
<xfix> that being said, template probably should include a copyright license at top of its files
<jakobrs> xfix: how?
<jakobrs> as in, what do you mean?
<ZaraChimera> I'll dig around and see what I can scare up for sideloading nix.
<fgaz> Like template-LICENSE, I guess
<pjt_014> nix-copy-closure is the main thing
<ZaraChimera> WSL helpfully mounts my C drive at /mnt/c so I can access my windows user directory and all that good stuff.
<pjt_014> I'd tell you but I haven't used wls for ages...or windows 10. :shrug:
<jakobrs> fgaz: I think you just need two lines instead of one at the top of the license file.
<ZaraChimera> I figure it should work as people made posts about getting nix running in WSL 2 to 3 years ago. So I am assuming PEBKAC in this case.
<{^_^}> [nixpkgs] @magnetophon opened pull request #84239 → bshapr: 0.7 -> 0.8 → https://git.io/Jvbgs
<jakobrs> It's a lot easier for the users if the template is simply CC0 so that the user doesn't have to bother with this.
<pjt_014> I just thought of something: what does Arch Linux's AUR use?
<{^_^}> [nixpkgs] @magnetophon opened pull request #84240 → bchoppr" init at 1.4.0 → https://git.io/JvbgZ
leonardp has quit [Quit: authenticating]
leonardp has joined #nixos
o1lo01ol1o has quit [Ping timeout: 250 seconds]
<pjt_014> ZaraChimera: there is also nix copy
<pjt_014> and in order to actually use something you'll need to do nix-env -i /nix/store/dfsdf4fu094f4-program-name
<pjt_014> after copying it over
leonardp has left #nixos [#nixos]
leonardp has joined #nixos
hpfr has quit [Remote host closed the connection]
leonardp has left #nixos ["User left"]
<{^_^}> [nixpkgs] @magnetophon opened pull request #84241 → bjumblr: init at 0.2 → https://git.io/JvbgV
<pjt_014> thats...a name.
<{^_^}> [nixpkgs] @jtojnar pushed 7 commits to staging-next: https://git.io/Jvbg6
leonardp has joined #nixos
<xfix> that's a short hash for a directory name
<pjt_014> I mean the package name
leonardp has left #nixos ["User left"]
<pjt_014> description = "Pattern-controlled audio stream / sample re-sequencer LV2 plugin";
<pjt_014> hm. well somebody knows what that does.
<pjt_014> I swear if this weirdass named package passes the bot's test while mine didn't
hpfr has joined #nixos
<jakobrs> Is the actual character set used in Nix path hashes documented anywhere?
<pjt_014> I think it's base...36?
leonardp has joined #nixos
<jakobrs> The letters `e`, `o`, `t`, and `u` are not allowed
<jakobrs> According to a combination of grep, sed, sort, uniq, and vim
<ZaraChimera> Might be that I am using opensuse leap on WSL that is causing the issue.
<{^_^}> Channel nixos-20.03 advanced to https://github.com/NixOS/nixpkgs/commit/e89b1063fb5 (from 18 hours ago, history: https://channels.nix.gsc.io/nixos-20.03)
hpfr has quit [Remote host closed the connection]
<pjt_014> ZaraChimera: It sounds strictly like a web certificate problem which is distr-agnostic, but if you really want to to could try another distro under wsl
<jakobrs> Yeah, it's definitely base 32 I just couldn't find anything which described which "variant" of base32
hpfr has joined #nixos
hpfr has quit [Remote host closed the connection]
<ZaraChimera> I mean I may as well eliminate that as an option, just in case. It has been reported as working with Ubuntu WSL
<pjt_014> ZaraChimera: alpine might be easier to debug (since it's fairly minimal) if it has this problem; and yeah I have gotten it towork with ubuntu
<ZaraChimera> Alpine looks interesting as well. I went with opensuse since I know that one the best of the options.
<pjt_014> I messed around with it for a bit. It's pleasantly minimal.
<ZaraChimera> Since you have had success with Ubuntu I will try that. If the problem persists then you're likely correct about it being a certificate issue.
<pjt_014> And I'm very sure you can use nix to cross compile for it
<pjt_014> right
gxt has quit [Remote host closed the connection]
<jakobrs> fgaz: I'm going /away for now. If there's any advancements on the issue please comment on the GitHub issue so that I'll see it.
<ZaraChimera> Both Ubuntu and Alpine are free for WSL :D
<jtojnar> Cole Mickens just drop the sha256- prefix
<pjt_014> Wait is there one that is for-pay?
gxt has joined #nixos
<jtojnar> Cole Mickens or use hash attribute, which requires the SRI format. But it is not supported by all fetchers
<ZaraChimera> Huh. Alpine WSL is listed as a free trial.
<ZaraChimera> Odd...
<{^_^}> [nixpkgs] @jtojnar pushed 0 commits to revert-84025-auto-update/tessera: https://git.io/Jvbgb
<pjt_014> ew
<pjt_014> gotta be a way to bypass that
kenran has joined #nixos
<chvp> ZaraChimera: you probably need to install ca-certificates (or a similar package) in your wsl
bvdw has quit [Read error: Connection reset by peer]
gxt has quit [Remote host closed the connection]
bvdw has joined #nixos
gxt has joined #nixos
<ZaraChimera> chvp Okay, I'll see if I can hunt down how to do that.
puck has quit [Quit: nya]
puck has joined #nixos
cybrian has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
<ZaraChimera> A little progress downloading cacert.pem from https://curl.haxx.se/ca/cacert.pem and copying it to /etc/ssl/certs and passing --cacert<file> to the curl command got one download done before it errored out on the second.
opthomasprime has joined #nixos
cybrian has quit [Ping timeout: 260 seconds]
opthomasprime has left #nixos [#nixos]
<jakobrs> I just wanted to be sure:
<jakobrs> If I add my repository to nur, I have to "give permission to license the content under the MIT license"
<jakobrs> I'm allowed to dual-license, right?
<ZaraChimera> I have downloaded nix-2.3.3.tar.xz, is this the one I want to unpack to /tmp and run the install script from?
eoli3n__ has quit [Ping timeout: 256 seconds]
dansho has joined #nixos
<pjt_014> ZaraChimera: I can't remember since I havent done it this way in ages, but just make sure you read what the install script does carefully and you should be good
<ZaraChimera> Unpacked nix-2.3.3 from nixos.org/nix
<dansho> anyone know what this error means when running ansible-playbook? 'Fatal Python error: initsite: Failed to import the site module'
<ZaraChimera> Looking at the manual it says to run ./install but there is no install file in the directory.
<ZaraChimera> There is an install-sh in nix-2.3.3/config/ but that doesn't do anything.
<FRidh> dansho: that means trouble :) How are you using playbook? From a python.withPackages or python.buildEnv?
<FRidh> I have impression python 2 and3 gets mixed. Do you have both in your environment?
kenran has quit [Ping timeout: 258 seconds]
<pjt_014> ZaraChimera: do you have a copy of the file from https://nixos.org/nix/install?
<ZaraChimera> pjt_014 I do and I copied it to the extracted nix-2.3.3 directory but running it without modification just throws the certificate error again.
<ZaraChimera> That is what I was following.
<dansho> FRidh: uh, nix-shell -p ansible
hmpffff has joined #nixos
<pjt_014> ZaraChimera: try running the instll script again, but comment out line #32
<{^_^}> https://github.com/NixOS/nixpkgs/pull/32 (by peti, 7 years ago, merged): Xen for Linux 3.2
<dansho> FRidh: actually using shell.nix: http://dpaste.com/2XG3T19
<ZaraChimera> # in the line comments it out, correct?
<dansho> it seems you are right, there must be a conflict between the python used by jenkins-job-builder and the python used by ansible
<pjt_014> yepo
jakobrs has quit [Quit: WeeChat 2.7.1]
<dansho> because when i just do nix-shell -p ansible, then it works
<pjt_014> cat install.sh | nl | less to get line numbers
<ZaraChimera> That gives a malformed url error.
<ZaraChimera> The line that I commented out in install was url="https://nixos/org/releases/nix/nix-2.3.3/nix-2.3.3-$system.tar.xz
<pjt_014> that aint it
<pjt_014> do cat install.sh | nl | less
<ZaraChimera> Okay. That was line 33 in the install script I downloaded and copied. Line 32 was blank in vi.
<{^_^}> #32915 (by gleber-da, 2 years ago, open): Python: PYTHONNOUSERSITE propagates from Python binaries to whatever they run
<pjt_014> line 32 is the curl command
<ZaraChimera> Okay I see it with the cat command.
<ZaraChimera> When I was in vi. Line 32 was blank. I'll go back and locate the curl command and comment that out.
<FRidh> dansho: could you try to use the following instead of just ansible (ansible.overridePythonAttrs(oldAttrs: { permitUserSite = true; })
<FRidh> oh, that is strange
<FRidh> as far as I can tell they use the same python
<FRidh> anyway, another issue is mkShell
<FRidh> I really dislike that function because people misunderstand it. What happens is that all setup hooks for all build inputs are executed, which is *not* what you want
<FRidh> although that's a general issue with nix-shell
<ZaraChimera> Progress. Now it is grousing about a SHA256 mismatch
<ZaraChimera> sha256sum: /tmp/nix-binary-tarball-unpack.iqFSU8iocR/nix-2.3.3-x86_64-linux.tar.xz: No such file or directory <-- and that.
<pjt_014> ok, there's some verification that's messed up. you could comment out the checks, or
<pjt_014> just open up the tar.xz file manually and look in the install dir
<pjt_014> line 48 indicates where it'd be
<dansho> error: attribute 'overridePythonAttrs' missing
<ZaraChimera> I used 7-zip to look inside the .tar.xz file.
<ZaraChimera> I am not seeing any Install dir or install file.
<ZaraChimera> Just the install-sh file inside the config dir
<pjt_014> there should be one at ./*/install
<ZaraChimera> I also have the downloaded install.sh open in Notepad
<pjt_014> * means 'anything' though, so there must be only one folder
<{^_^}> [nixpkgs] @jtojnar pushed 3 commits to staging-next: https://git.io/Jvb2p
<ZaraChimera> There is no */nix-2.3.3/install file
<ZaraChimera> C:\Users\*****\Downloads\nix-2.3.3.tar.xz\nix-2.3.3.tar\nix-2.3.3\ is the path I am looking at at the moment. Inside there is nothing called install other than what I mentioned in the /config subdir
jD91mZM2 has quit [Quit: ZNC 1.7.5 - https://znc.in]
jD91mZM2 has joined #nixos
<pjt_014> okay, I just downloaded the nix tar.xz file
<ZaraChimera> Going to https://nixos.org/releases/ and navigating to nix and then nix-2.3.3 and trying to download or view either the tar.bz2 or tar.xz or even the install file gives this error: <Error>
<ZaraChimera> <RequestId>8D91013568278A82</RequestId>
<ZaraChimera> <Key>releases.nixos.org/nix/nix-2.3.3/nix-2.3.3.tar.bz2</Key>
<ZaraChimera> <Message>The specified key does not exist.</Message>
<ZaraChimera> <Code>NoSuchKey</Code>
<ZaraChimera> ib1nhzVVnGxIzgOwRQdqjmu+35nw0mbj6hmHiVlyMioRE1bsdvMeqmAqIL921mD7NIYRof73QHw=
<ZaraChimera> <HostId>
<ZaraChimera> </HostId>
<ZaraChimera> </Error>
<pjt_014> thats a weird one
<ZaraChimera> Right click and save link as has the download stop at 0 of 0 bytes and trying to restart does nothing.
<{^_^}> [nixpkgs] @jtojnar pushed to staging-next « libsigrok4dsl: fix build »: https://git.io/JvbaL
<pjt_014> but I think I got somewhere
<ZaraChimera> I doublechecked to make sure my adblocker was not messing things up.
<pjt_014> this is what my copy of the unpacked tar.xz file has at the top level:
<jD91mZM2> Hi! This may be a dumb question, but fail2ban is now warning when you don't have a firewall enabled. I don't see the point of a firewall for my server as anything private would be bound to 127.0.0.1 instead of an outward-facing address, so what can I do to allow all ports to be open while still making fail2ban able to ban attempts?
<pjt_014> install install-darwin-multi-user.sh install-multi-user install-systemd-multi-user.sh store
<pjt_014> the file 'install' doesn't have an .sh extension, but it is a shell file
<pjt_014> that *has* to be what you run
<pjt_014> also
<pjt_014> the store has a ca-certificate in it
<pjt_014> so nix might work with networking once installed
<ZaraChimera> Okay I will attempt to download it again.
<ZaraChimera> It could be I got a borked download.
<pjt_014> whats in the top level of it?
<pjt_014> also, when you run sha1sum on the tar.xz file, do you get 930dde847bc81bc11bc7c728fa08ce934fdf927b?
<pjt_014> if not it maybe broke
<ZaraChimera> Top level has the following directories: .github config contrib corepkgs doc m4 maintainers misc mk perl scripts src tests
lostnet has joined #nixos
<pjt_014> wat?
<pjt_014> that aint it chief
<{^_^}> [nixpkgs] @vbgl merged pull request #84148 → flow: 0.121.0 -> 0.122.0 → https://git.io/JvFKB
<{^_^}> [nixpkgs] @vbgl pushed commit from @marsam to master « flow: 0.121.0 -> 0.122.0 »: https://git.io/Jvbas
vykook has quit [Quit: ZNC - http://znc.in]
<pjt_014> I don't know where you ended up, but this is what you want: https://nixos.org/releases/nix/nix-2.3.3/nix-2.3.3-x86_64-linux.tar.xz
<ZaraChimera> The following files: .dir-locals.el .dist-files .editorconfig .gitignore .travis.yml .version bootstrap.sh config.h.in configure configure.ac COPYING local.mk Makefile etc.
o1lo01ol1o has joined #nixos
<ZaraChimera> Okay. That link worked.
<ZaraChimera> I really eneded up somewhere weird.
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to staging-next: https://git.io/JvbaW
<ZaraChimera> >,<
chagra has quit [Ping timeout: 256 seconds]
<ZaraChimera> Yay! It's working!
<pjt_014> woooooooooooo
<ZaraChimera> Well sort of. The expected install files were there.
lsix1 has joined #nixos
<ZaraChimera> It groused about a SSL CA cert path and the nixpkgs channel fetch failed
<ZaraChimera> So I need to go back and try commenting out the curl line you indicated earlier?
mexisme has joined #nixos
<pjt_014> no, that was just for getting the tar.xz file
<pjt_014> which you now have
<pjt_014> to make sure it's intact, can you run sha1sum nix-2.3.3-x86_64-linux.tar.xz ?
<ZaraChimera> 930dde847bc81bc11bc7c728fa08ce934fdf927b nix-2.3.3-x86_64-linux.tar.xz <--the output of the sha1sum command
o1lo01ol1o has quit [Ping timeout: 260 seconds]
<pjt_014> that's what I got, your download's intact
mexisme has quit [Ping timeout: 260 seconds]
<ZaraChimera> Excellent, this is progress.
<pjt_014> now once you have that unpacked, the top level has a file called install. do ./install and that should do it
<pjt_014> you may need to chmod +x install first
<ZaraChimera> Found a post about nix on WSL that said I needed to have a nix.conf file with sandbox = false and use-sqlite-wal = false in it as well.
o1lo01ol1o has joined #nixos
<ZaraChimera> Okay. Trying that now.
<pjt_014> since the nix store appears to have its own cacert file the network part might just work too
<pjt_014> as for that nix.conf thing, dunno. sounds right, can't hurt to try
<ZaraChimera> Still grousing about being unable to download nixpkgs-unstable due to the SSL CA cert problem (lists path or access rights as possibilities with (77) at the end of the line.
<ZaraChimera> nix-channel --update nixpkgs failes but the WSL does at least recognize the command
<FRidh> ZaraChimera: you've done a `nix-env-iA nix cacert` ?
<FRidh> oh wsl, interesting
<{^_^}> [nixpkgs] @gnidorah opened pull request #84242 → nixos/qt5: support adwaita-dark theme → https://git.io/Jvbaa
<FRidh> -iA nix -iA cacert
<pjt_014> that shouldn't be necessary
<pjt_014> it's done in te install file on line 128
knupfer has joined #nixos
<ZaraChimera> error: attribute 'cacert' in selection path 'cacert' not found
<FRidh> otherwise checking the store if there's a cacert path and install that path in your environment
<FRidh> i used to have to do that when creating stores at different locations
<ZaraChimera> At least nix-env and nix-channel are recognized commands.
<ZaraChimera> I have the basics, but I think a bunch of nixpkgs are missing from the store since the attempt to install it gets me an error because of an SSL cert problem.
<ZaraChimera> I don't think much is installed at all.
<ZaraChimera> nix-instantiate complains there's not file default.nix
<FRidh> yes but you probably installed from the binary tarball
cybrian has joined #nixos
hmpffff has quit [Quit: nchrrrr…]
<FRidh> so all the paths you need are ther
<pjt_014> this is the install file: http://0x0.st/iuBV.bin
<pjt_014> it's a text file, ignore the .bin
<FRidh> right, binary tarball, and cacert should have been installed in the profile
<FRidh> nix-env -q to see what is in your profile
<ZaraChimera> Only thing in the profile is nix-2.3.3
<FRidh> yes so find cacert in your store and install it in your profile
<pjt_014> I gotta sleep
<ZaraChimera> Good night pjt_014 and thank you for all the help
cybrian has quit [Ping timeout: 265 seconds]
<pjt_014> good luck, I will maybe be able to help again in like 12 hours
<ZaraChimera> I found nss-cacert in my /nix/store
<FRidh> right
<{^_^}> [nixpkgs] @doronbehar opened pull request #84243 → comedilib: init at 0.11.0 → https://git.io/Jvbai
<FRidh> nix-env -i that path
zupo has joined #nixos
<{^_^}> [nixpkgs] @rnhmjoj opened pull request #84245 → riot-desktop: add gsettings schemas to the wrapper → https://git.io/Jvba1
hoplaahei has joined #nixos
m0rphism has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jahor has joined #nixos
<ZaraChimera> Okay. Took me a moment to realize I needed to write the entire path :D
<ZaraChimera> Says 9 symlinks have been created.
<hoplaahei> hi. What are the minimum options to pass to dnscrypt2? It won't start without a server, but I'm not sure how to pass the list of servers to the "settings" option.
ixxie has joined #nixos
<{^_^}> [nixpkgs] @Ma27 pushed to release-19.09 « linuxPackages.wireguard: 0.0.20200318 -> 1.0.20200401 »: https://git.io/JvbaQ
maddo has joined #nixos
erictapen has quit [Ping timeout: 256 seconds]
<jahor> Hello, Nix. I've been using NixOS for a long time but I'm wondering how I would install packages from a defined list with just Nix on other GNU/Linux distribution. So I'd like to define something like environment.systemPackages and run nix-env -i environmentWithPackages to install everything I've added in this file. Is it possible?
pjt_014 has quit [Ping timeout: 260 seconds]
<typetetris> jahor, here is a description of how to create an environment for you as a user. Be aware, that you should not follow the advice of altering the PATH on a nixos host, as that is already taken care of.
fendor has joined #nixos
<NobbZ[m]> jahor as I'm not a friend of `nix-env`, `home-manager` works very well on nin-noxOS systems
<jahor> That's what I wanted. Thank you very much, typetetris!
<ZaraChimera> Added channel nixpkgs-unstable but when I try to run nix-channel --update it still fails because of SSL CA cert problem. I have installed nss-cacert from the store path on my local machine.
<ZaraChimera> Clearly I haven't defined something in the right way for this to work.
pluplog has quit [Remote host closed the connection]
<stevenroose> So I have a question that my go-to NixOS guru friend couldn't answer.
<jahor> NobbZ[m], I'm already using it on NixOS to install packages for a specific users by fetching home-manager directly from NixOS configuration but the last time I tried it on Arch there were a lot of bugs. Even though thank you. I guess things have changed since there.
<stevenroose> I want to, mark my words, add a port to the allowed ports on the firewall.
<stevenroose> That doesn't seem to be possible.
Darkmatter66 has quit [Ping timeout: 256 seconds]
<stevenroose> I can set networking.firewall.allowedTCPPorts = [ 123 ]; but if I later want to _add_ another port 789, I can't do that..
<qyliss> really?
<qyliss> what happens if you try?
<simpson> stevenroose: When is "later"? I think that if you set it in two different modules, then you'll get both lists of ports together.
<stevenroose> error: attribute 'networking.firewall.allowedTCPPorts' at /home/<redacted>/configuration.nix:88:3 already defined at /home/<redacted>/configuration.nix:81:3
<stevenroose> simpson: yeah but in the same top-level configuration.nix I can't
<qyliss> Correct
<qyliss> That's how the module system works
<qyliss> You need to do networking.firewall.allowedTCPPorts = [ 123 789 ];
<NobbZ[m]> jahor I used it successfully on arch until start of February when I got rid of all my non-nixOS systems
Darkmatter66 has joined #nixos
<stevenroose> Like if I'm defining a bunch of services in a sequence, I'd like to add the port of that sequence in that same code block.
<qyliss> You can't assign multiple values to the same key in a Nix attrset.
<qyliss> Then you should use multiple modules.
<stevenroose> Instead of adding all ports at the bottom. So that if I remove a service, I can just remove the section.
<stevenroose> qyliss: why?
<qyliss> Because you can't assign twice to the same value in a single attribute set
<jahor> NobbZ[m], That's nice. I'll give it a try.
<stevenroose> let's say openssh and znc didn't have the openFirewall option (like many other services don't).
<qyliss> > { a = 1; a = 2; }
<{^_^}> error: attribute 'a' at (string):293:10 already defined at (string):293:3
<qyliss> ^ It would be like doing that.
<qyliss> The module system does some clever stuff to merge modules together
<qyliss> But a single module is just a normal attribute set
<clever> and thats a parse time error, rather then an eval-time error, so it happens somewhat earlier
<qyliss> So it can't do that.
<simpson> stevenroose: This isn't specific to NixOS, but is a general behavior of the Nix language. The idea is that it's likely a programmer mistake to declare something twice in a single scope.
<stevenroose> You'd do services.sshd.enable = true; networking.firewall.allowedTCPPorts = [ 22 ]; <some other services> services.znc.enable = true; networking.firewall.allowedTCPPorts = [ 6666 ];
<stevenroose> simpson: yeah I realize, it's just a shortcoming of the expressiveness of the language, IMO.
<clever> stevenroose: splitting it up into seperate modules is another option
<stevenroose> So I should add the openFirewall option to all the services I use that don't have it
<clever> and then the module system can merge things as usual
<simpson> stevenroose: As a language designer, I politely disagree; this is the sort of thing that is meant to avoid name-shadowing bugs.
<stevenroose> clever: but most of these services are just enabling and setting 1 or 2 configuration variables and then opening the port.
<qyliss> Then it shouldn't be too bad to declare all your ports in one place?
jahor has quit [Remote host closed the connection]
<clever> stevenroose: and making a dedicated module, makes it easy to repeat that on a 2nd machine, or turn the whole thing off with 1 comment
<simpson> And put a comment saying which port goes to which service. This scales up to a few dozen ports, IME.
tilpner_ has joined #nixos
<clever> stevenroose: this for example, just sets up auto-login and runs plex on login
<qyliss> You can have multiple modules in the same file, too
<clever> stevenroose: currently, only 1 machine uses it, but i still do `imports = [ ./media-center.nix ];` to enable it there
<stevenroose> simpson: yeah it's possible, but you'd easily forget if you remove/temporarily comment out the service config section
<stevenroose> I'll look into declaring modules
<clever> and its trivial (editing 1 line) to disable that whole block at once
<simpson> stevenroose: Modularize, then.
<clever> stevenroose: configuration.nix itself, is a module, so your already declaring modules!
<stevenroose> But I doubt it's worth it for just a series of 4-line configurations or so
<stevenroose> Anyway thanks for the responses :)
<clever> stevenroose: a much simpler example
<stevenroose> I'll add comments under my services that the port for that service is down below :D
<simpson> I mean, I *do* agree up to the point that I wish that Nix had inline syntax for declaring NixOS-style modules. But other than that, meh; just make multiple files. You'll thank yourself later when you come back in a couple months and realize that you didn't leave any comments.
<clever> i was expecting the config to get more complex, but then stopped using the service
<clever> simpson: you can do config = lib.mkMerge [ {...} {...} ];
tilpner has quit [Ping timeout: 256 seconds]
tilpner_ is now known as tilpner
<clever> simpson: and it will then merge things, using the module framework
<stevenroose> clever: haha, I actually exactly did this because of murmur. You know murmur doesn't open the firewall port, right? So if you have that module, you either have firewall disabled or you add the port outside of the module
<ZaraChimera> Okay, looks like it's looking for ca-bundle.crt or ca-bundle.pem in the ~/.nix-profile/etc/profile.d/nix.sh file.
<ZaraChimera> Which aren't in /etc/ssl/certs so that would be an issue.
<simpson> clever: I guess~ That's not ergonomic enough IMO, but I'm not sure what would be better. Thanks.
<stevenroose> clever: how do you merge/use that module into configuration.nix?
<clever> stevenroose: imports = [ ./murmur.nix ];
vykook has joined #nixos
linarcx has joined #nixos
<{^_^}> [nixpkgs] @lostnet opened pull request #84246 → couchdb: add support for version 3.0.0 → https://git.io/JvbVO
ottidmes has joined #nixos
<clever> stevenroose: this is what it will usually look like after a while: https://github.com/cleverca22/nixos-configs/blob/master/nas.nix#L15-L32
<stevenroose> So one thing that is annoying here is that services.openssh.enable = true; automatically opens port 22. While services.anyother.enable usually doesn't. And then some of them have services.cleverservice.openFirewall to let you open the firewall conveniently.
<{^_^}> [nixpkgs] @jtojnar pushed to staging-next « neopg: fix build »: https://git.io/JvbV3
pbogdan has joined #nixos
<clever> stevenroose: ssh is a bit special, to make sure you dont lock yourself out of the machine
<clever> and the openFirewall flag, its mostly a matter of somebody bothering to add it
<stevenroose> clever: and this is what I don't want it to look like after a while :D https://github.com/cleverca22/nixos-configs/blob/master/nas.nix#L84-L104
<clever> stevenroose: yeah, a lot of those could be moved to other files and cleaned up
<clever> stevenroose: for example, the ts3 ports, and line 174-179 should be moved to a ts3-server.nix file
__monty__ has joined #nixos
<stevenroose> clever: and here you're not opening the murmur port even though you enable the murmur service: https://github.com/cleverca22/nixos-configs/blob/c3050292991627f1a8dd81a9ab6b6ce3c6f0be8c/router.nix#L50-L51
<simpson> stevenroose: Common code moves up, specialized code moves down. Just because we know the principle, doesn't mean that we're always good at applying it.
<clever> simpson: i forgot murmur was even running on that machine!
<clever> stevenroose: ^
<clever> i havent used it in several years
<stevenroose> clever: perhaps if you didn't have an import but an actual 2 lines `services.murmur.enable = true; networking.firewall.allowedTCPPorts = [ 64738 ];` you'd spot it more easily :)
<simpson> clever: I have exactly one machine with perfectly factored configuration, and I literally never use it. CLV.
<clever> stevenroose: more that i havent audited things lately, a lot of this could be cleaned up
<stevenroose> :D
<stevenroose> kk
<ZaraChimera> Since opensuse WSL does not seem to be working, I'm going to wipe the slate and try over with a clean slate on both opensuse WSL and Ubuntu WSL
<clever> stevenroose: also, its much much better to do networking.firewall.allowedTCPPorts = [ config.services.murmur.port ];
<clever> stevenroose: then it will always open the right port
<clever> even when you change it and forget to update things
<ottidmes> and I make sure the opening of the ports is dependend on it being enabled and not separate
laduke has quit [Ping timeout: 252 seconds]
<stevenroose> clever: yeah that's what I do down below now
lostnet has quit [Remote host closed the connection]
<stevenroose> clever: actually, to avoid forgetting to set it, can I declare a temporary variable?
<clever> stevenroose: let foo = 123; in { stuff = foo; }
<stevenroose> like murmurPort = 64738; services.murmur.port = murmurPort; <100 lines later>; networking.firewall.allowedTCPPorts [ .... murmurPort ];?
<stevenroose> Ah you *HAVE* to declare all variables at the top?
<stevenroose> Otherwise they become part of the config object? Is that a big issue?
<clever> stevenroose: you have to declare them at some common point, in this case, networking and services are split, so the only common point is the top
<clever> stevenroose: but, config.services.murmur.port is better, it lets you read the 1st part, even if its since been changed with mkForce elsewhere
<ottidmes> stevenroose: it has to be in scope through some binding, be it let/with/a name from a rec attrset, function argument, etc.
<clever> you can do `services = let foo = 123; in { mysql.port = foo; httpd.port = foo; }`, but that will obviously fail due to a port collision
<clever> when networking and services both need it, you must do `let foo = 123; in { services.foo.port = foo; networking.foo.port = foo; }
<stevenroose> hmm
kaliumxyz has joined #nixos
ok2` has quit [Ping timeout: 240 seconds]
ixxie has quit [Ping timeout: 265 seconds]
ok2` has joined #nixos
laduke has joined #nixos
ixxie has joined #nixos
<eyJhb> What is the best way to remove duplicates in a list in nix? Unique is quite slow when the list contains 100.000+
<clever> eyJhb: its slow due to the lib.subList function, partially
erictapen has joined #nixos
<clever> eyJhb: https://github.com/NixOS/nix/pull/2459 solves that, but i never got around to finishing the edge cases (it can segfault if misused)
<{^_^}> nix#2459 (by cleverca22, 1 year ago, open): add a sublist primop
knupfer has quit [Quit: knupfer]
knupfer1 has joined #nixos
<ottidmes> eyJhb: converting it to an attrset might be faster
knupfer1 has quit [Client Quit]
knupfer has joined #nixos
<eyJhb> How so ottidmes ?
<eyJhb> clever: looking at it
thc202 has joined #nixos
<clever> eyJhb: behind the scenes, an attrset is a int->value mapping, not a string->value mapping
<clever> eyJhb: it will invisibly translate all strings to ints as new keys are found
<clever> eyJhb: and builtins.listToAttrs is a single primop, to turn a list of { name = "foo"; value = "something"; } into { foo = "something"; }
<ottidmes> eyJhb: by mapping the values to the keys, and the lookups should be much faster than what unique does behind the seens to determine duplicates, AFAIK
<clever> eyJhb: if you have duplicate keys, it will silently drop the duplicates (cant remeber if first or last is kept)
<ottidmes> also attrNames is once again a primop
<clever> the problem with lib.uniq, is that its based around lib.sublist
<clever> and lib.sublist, will call lib.sublist recursively
<clever> along with array concat
<clever> and array concat, has a cost equal to the output array size
<clever> so lib.uniq on a 100,000 element list, will have a cost of 100000 + 99999 + 99998 + 99997 ....
<ottidmes> ouch
ottidmes has quit [Quit: WeeChat 2.7.1]
hmpffff has joined #nixos
nomeata has joined #nixos
<{^_^}> [nixpkgs] @alyssais opened pull request #84247 → git-cinnabar: init at 0.5.4 → https://git.io/JvbVy
ksixty has left #nixos ["User left"]
<eyJhb> error: stack overflow (possible infinite recursion)
<clever> eyJhb: lib.unique will also require 100,000 stack nix stack frames (which may each be 2 or 3 c++ stack frames)
<clever> due to the recursive nature of lib.sublist
<{^_^}> [nixpkgs] @primeos merged pull request #84094 → [20.03] llvmPackages_10: init at 10.0.0 → https://git.io/JvFve
<{^_^}> [nixpkgs] @primeos pushed 2 commits to release-20.03: https://git.io/JvbVH
lucasvo has joined #nixos
<eyJhb> It can't even do it on the list... But if I have two sets, e.g. {"mydomain.com": 1, "lal.com": 1} and {"mydomain.com": 1}, can I then + them together and it will remove dups?
<clever> eyJhb: // will merge sets
<clever> > { a = 1; b = 2; } // { b = 3; c = 4; }
<{^_^}> { a = 1; b = 3; c = 4; }
<eyJhb> Hmm... So it makes the most sense to have them as a set to begin with?
knupfer has quit [Quit: knupfer]
<eyJhb> Or convert the list to a set?
knupfer has joined #nixos
cybrian has joined #nixos
<clever> > :p builtins.listToAttrs [ { name = "foo"; value = 42; } { name = "bar"; value = 43; } ]
<{^_^}> { bar = 43; foo = 42; }
koleesch_ has joined #nixos
<stevenroose> Any clever ways to use nixos on a machine that doesn't have much memory? Like compile on the host or so? I keep getting "error: unable to fork: Cannot allocate memory" on my 1GiB RAM VPS.
<stevenroose> (Sometimes if I try a few times it works..)
<eyJhb> clever: but atm. it is the format [ "domain.com" ]
<clever> > :p builtins.listToAttrs (map (x: { name = x; value = x; }) [ "domain.com" ])
<{^_^}> { "domain.com" = "domain.com"; }
<clever> stevenroose: nixops can build it on one machine, then deploy to another
<MichaelRaskin> stevenroose: you have an OK RAM amount on your local machine, right?
<clever> eyJhb: map can translate it over easily enough ^
<MichaelRaskin> stevenroose: You can actually _instantiate_ locally and copy the closure of derivation, build + switch
<stevenroose> MichaelRaskin: yeah
<MichaelRaskin> (if you have better connection on VPS than locally)
<stevenroose> I read online that if you nix-env with -iA it doesn't use as much memory
<stevenroose> But.. I just use nixos-rebuild switch..
<eyJhb> clever: thanks, will try!
<stevenroose> Can I somehow get that -iA functionality with nixos-rebuild?
<clever> stevenroose: thats a performance problem with `nix-env -i`, nixos-rebuild doesnt have that problem to begin with
<stevenroose> I just added a single service to the config
<stevenroose> oh
<MichaelRaskin> stevenroose: locally: nix-instantiate '<nixpkgs/nixos>' -I nixos-config=/path/to/vps-config.nix
<MichaelRaskin> stevenroose: -i evaluates like all packages, -iA evaluates the closure of one package, nixos-rebuild evaluates the closure of your system which is in-between
<stevenroose> MichaelRaskin: it seems that nixos-rebuild switch is going to update a bunch of dependencies while I just added a single service. Is that desired behavior?
<stevenroose> (I'm quite new to this, I just have a few machines with pretty basic setups.)
cjpbirkbeck has joined #nixos
<ZaraChimera> Something is definitely different between the way WSL sets up opensuse leap and ubuntu. nix install was not working under WSL opensuse, but no issues under ubuntu WSL.
<MichaelRaskin> stevenroose: it definitely should evaluate all the dependencies
<ZaraChimera> Has to do with where the CA certs are kept.
<MichaelRaskin> Because Nix does not think «what is the closest system that looks kind of similar to what you requested»
<MichaelRaskin> It builds a plan from scratch, then looks what to reuse
<stevenroose> MichaelRaskin: I read about nixos-rebuild --build-host. So if I had one strong machine accesible by vps it could do the build?
<qyliss> yes
<MichaelRaskin> stevenroose: right now you seem to have problems already with evaluation though
<MichaelRaskin> You can evaluate locally, nix-copy-closure the derivation, then realise using a build host, yec
<stevenroose> The line before that error is "created 9682 symlinks in user environment"
<{^_^}> [nixpkgs] @jtojnar pushed to staging-next « sunxi-tools: fix build »: https://git.io/JvbwT
<clever> stevenroose: is it doing anything in parallel? which process actually ran out of ram?
<clever> stevenroose: what about a pinch of swap?
<stevenroose> MichaelRaskin: your message with nix-instantiate seems like it anticipated a second message?
<stevenroose> clever: I think it has 2 GiB
<stevenroose> ah no this might be the first machine where I forgot swap
<stevenroose> good point
<clever> stevenroose: you can always make a swap file temporarily, fallocate, mkswap, and swapon
<stevenroose> yeah rookie mistake :)
<stevenroose> nice
<stevenroose> Can I add something to configuration.nix to have a permanent swap file?
<clever> stevenroose: yep
<stevenroose> (I realize that won't work to solve my current problem because I can't rebuild :D)
<clever> swapDevices.*.size
<stevenroose> Cool, that sounds like it could solve this.
<clever> swapDevices.*.device
<clever> stevenroose: so, swapDevices = [ { device = "/var/lib/swap1"; size = 2048; } ];
<MichaelRaskin> stevenroose: you get a .drv
<clever> and it will auto-create a 2gig file for you
<MichaelRaskin> you can nix-copy-closure it and nix-store -r on VPS
<clever> MichaelRaskin: given the `created 9682 symlinks in user environment` msg, it got past the eval, and was building systemPackages when it failed
<MichaelRaskin> Ah indeed
<MichaelRaskin> Then just --build-host might be enough
<clever> so would a small swap file
chagra has joined #nixos
<MichaelRaskin> Or local building of the entire system and pushing it to VPS
<clever> which nixops can automate
<stevenroose> Worked with the swapfile epic
<stevenroose> I suppose adding a swap partition after-the-fact is not an easy task :p
<stevenroose> So swapfile it is
<clever> i made the mistake of mixing up units when i setup my laptop
<clever> it has a 40mb swap, not a 40gig swap
<clever> and since i choose zfs, i cant use swap files
<MichaelRaskin> Adding a swap partition in VPS conditions might be easy if the recovery tooling is great
<clever> MichaelRaskin: depending on the VPS, it might be simpler to just add a whole swap disk!
<clever> ignore the partitions entirely
<MichaelRaskin> That might be more expensive, though
<clever> some hosting providers encourage that thought
<stevenroose> Meh it worked with a swap file, I'll just make the swap file permanent.
<stevenroose> It's not an important machine :)
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to staging-next: https://git.io/JvbwL
<stevenroose> Thanks for all the help guys!
<{^_^}> [nixpkgs] @andir merged pull request #84211 → firefox: 74.0 -> 74.0.1 → https://git.io/JvbGT
<{^_^}> [nixpkgs] @andir pushed 6 commits to master: https://git.io/JvbwY
cybrian has quit [Ping timeout: 265 seconds]
lucasvo has quit [Quit: leaving]
mexisme has joined #nixos
<ehmry[m]> is there a method for getting the build time of a deriviation?
<Izorkin> Mic92: please check PR #84136
<{^_^}> https://github.com/NixOS/nixpkgs/pull/84136 (by Izorkin, 1 day ago, open): nixos/tests: add check mariadb galera cluster
<clever> ehmry[m]: not really, you have to modify the derivation to print it to the logs
iyzsong- has joined #nixos
iyzsong has quit [Ping timeout: 272 seconds]
chagra has quit [Ping timeout: 256 seconds]
<cjpbirkbeck> hello, hope you are doing well. what happened to the links to the nix expressions on the online search tool? they all say "not specified" now.
mexisme has quit [Ping timeout: 265 seconds]
chagra has joined #nixos
<ehmry[m]> clever: ok, thanks
<tilpner> ehmry[m]: What do you need it for?
<tilpner> cjpbirkbeck: There have been a few changes to that page recently, it may well have been broken by that
<tilpner> cjpbirkbeck: See nixos-homepage#372
<{^_^}> https://github.com/NixOS/nixos-homepage/issues/372 (by das-g, 6 days ago, closed): "Nix expression" on package search results links to wrong URLs
<cjpbirkbeck> tilpner: okay, thanks for the info
cr4y1 has joined #nixos
<{^_^}> [nixpkgs] @jtojnar pushed 24 commits to staging: https://git.io/JvbwB
<{^_^}> [nixpkgs] @marsam merged pull request #84227 → buildah: 1.14.5 -> 1.14.6 → https://git.io/Jvb8t
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jvbw0
ambroisie has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #84229 → pueue: 0.2.1 -> 0.3.0 → https://git.io/Jvb8A
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jvbwz
jb55 has quit [Remote host closed the connection]
domogled has joined #nixos
jb55 has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
erictapen has quit [Ping timeout: 256 seconds]
zupo has joined #nixos
chloekek has joined #nixos
erictapen has joined #nixos
<ehmry[m]> tilpner: I'm trying to benchmark a trivial builder derivation
<{^_^}> [nixpkgs] @vbgl merged pull request #83592 → OCaml: default to version 4.09 → https://git.io/JvQ3S
<{^_^}> [nixpkgs] @vbgl pushed 2 commits to master: https://git.io/Jvbw6
opthomasprime has joined #nixos
InvisibleRasta has quit [Quit: WeeChat 2.3]
<eyJhb> clever MUCH FASTER
<eyJhb> But might be a ugly function, but my first real nix function, so I am proud
ambroisie has joined #nixos
<tilpner> ehmry[m]: Hmm, don't have a good answer for that. I guess it could be done with {pre,post}-build-hook
jakobrs has joined #nixos
<tilpner> ehmry[m]: Combine with enforce-determinism and repeat to get more samples than just one build
<jakobrs> When installing nur do I need to do anything *in addition to* adding it nixpkgs.config.packageOverrides in configuration.nix?
<jakobrs> I've done that but nix-shell -p doesn't recognise nur
o1lo01ol1o has joined #nixos
<tilpner> jakobrs: Those are unrelated by default, your configuration.nix does not affect nix-shell
<jakobrs> Even packageOverrides?
<tilpner> If you put them in configuration.nix, yes
<tilpner> If you put them in ~/.config/nixpkgs/something, no
<jakobrs> alright, ty
<clever> ,profiling eyJhb
<{^_^}> eyJhb: Use NIX_COUNT_CALLS=1 and/or NIX_SHOW_STATS=1 to profile Nix evaluation
cosimone has joined #nixos
<clever> eyJhb: you can also add `NIX_SHOW_STATS_PATH=profile.json` to save the stats, and then post-process with tools like jq
<jakobrs> Could nur in theory be used as a channel?
<tilpner> jakobrs: You can use both at the same time
<jakobrs> What do you mean?
<tilpner> jakobrs: I assume you saw "For NixOS", and only applied the second snippet
<tilpner> jakobrs: But it can make sense to use both
ZaraChimera has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<jakobrs> Yeah
<jakobrs> But would it make sense to use nur as a channel? As in, "nix-build '<nur>' -A repos.someone.pkg"
<eyJhb> A lot better than the not completing like before
<eyJhb> clever++
<{^_^}> clever's karma got increased to 373
<clever> eyJhb: the area where lib.uniq will truely fail, is line 11, list.concats
o1lo01ol1o has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @timokau merged pull request #83183 → zenith: init at 0.8.0 → https://git.io/JvDFP
<{^_^}> [nixpkgs] @timokau pushed 2 commits to master: https://git.io/JvbrJ
lsix1 has quit [Ping timeout: 272 seconds]
gerschtli has quit [Quit: WeeChat 2.7.1]
<tilpner> jakobrs: Not exactly. There's a slight difference in how repos expect to be called, and it breaks e.g. my repo
<{^_^}> [nixpkgs] @andir opened pull request #84248 → [20.03] update firefox to latests stable (secure) release → https://git.io/JvbrT
gerschtli has joined #nixos
<jakobrs> That's a shame.
<clever> NIX_SHOW_STATS=1 nix-instantiate --eval -E 'with import <nixpkgs> {}; lib.unique (lib.genList (x: x) 5)'
<clever> eyJhb: this leads to 26 concats
<tilpner> jakobrs: You can still use a channel to control when it updates
<tilpner> jakobrs: But you need the same importing mechanism as before
<clever> NIX_SHOW_STATS=1 nix-instantiate --eval -E 'with import <nixpkgs> {}; lib.unique (lib.genList (x: x) 100)'
<clever> eyJhb: and this, 121 concats
jakobrs has quit [Quit: WeeChat 2.7.1]
<clever> eyJhb: ok, maybe its less of a problem when it is already unique..., i forget the exact algo
tristanC has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mallox has joined #nixos
InvisibleRasta has joined #nixos
Darkmatter66_ has joined #nixos
ok2`- has joined #nixos
ok2` has quit [Ping timeout: 256 seconds]
cjpbirkbeck has quit [Quit: cjpbirkbeck]
ok2`- is now known as ok2`
Darkmatter66 has quit [Ping timeout: 256 seconds]
cjpbirkbeck has joined #nixos
<clever> eyJhb: oh!!!!
<clever> eyJhb: thats why unique isnt as shit as i remember it! lol
<clever> eyJhb: though, i still cant reproduce the poor perf on the older ver...
<{^_^}> [nixpkgs] @JJJollyjim opened pull request #84250 → nixos/heartbeat: Bring heartbeat in-line with other ELK stack modules → https://git.io/Jvbr8
<clever> eyJhb: ah, there it is, now i feel less insane, a rev of nixpkgs from 2014, requires 500500 list concats, to do the same nix expr!
gerschtli has quit [Quit: WeeChat 2.7.1]
gerschtli has joined #nixos
xkapastel has joined #nixos
<alexgood> Hey folk, anyone got any tips on how to set up a development environment for a javascript package? I dont' want to build the package, I want to have an environment where all the dependencies are isntalled so I can run `yarn add` and `yarn run` etc.
<clever> alexgood: echo 'with import <nixpkgs> {}; stdenv.mkDerivation { buildInputs = [ yarn nodejs ]; }' > shell.nix
<clever> alexgood: oh, but also dont forget the name = "something";, oops
yourname has joined #nixos
<eyJhb> clever: that is the new version I sent you. The other would not finish, however I get this error `error: value is a function while a set was expected, at`, when I use this `'' + (dns.unboundString (dns.removeDuplicates [ dns.stevenblack-standard dns.yoyo-trackers ]));`
<alexgood> Thanks! The problem I've run into with this approach has been that there are some packages which build native extensions using `node-gyp`, and those seem to be breaking in ways I don't understand.
gerschtli has quit [Quit: WeeChat 2.7.1]
<clever> alexgood: those tend to work for me, when using nix-shell
<alexgood> I was wondering if there was anything that handles that off the shelf. `yarn2nix` seems to only handle building the package, rather than setting up a shell
<alexgood> Oh interesting, maybe it's something specific to my setup
cosimone has quit [Quit: Terminated!]
gerschtli has joined #nixos
<alexgood> Or in particular, to libsodium, which is what's breaking
<clever> alexgood: yarn2nix also deals with building node_modules in a pure and read-only manner
gerschtli has quit [Client Quit]
<clever> alexgood: you may need to add libsodium to the buildInputs then
chagra has quit [Ping timeout: 256 seconds]
<alexgood> Ah, nice, that's probably what I'm missing. Thanks!
markus1189 has quit [Ping timeout: 265 seconds]
lsix1 has joined #nixos
markus1189 has joined #nixos
erictapen has quit [Ping timeout: 265 seconds]
yourname has left #nixos [#nixos]
leocp1 has joined #nixos
smeag0l has joined #nixos
<eyJhb> No clue why it won't work, works locally.. Code https://termbin.com/hu9k `'' + dns.unboundString (dns.removeDuplicates [ dns.stevenblack-standard dns.yoyo-trackers ]);`
<smeag0l> Is this the correct way to find #include <Python.h>? gcc -o prog prog.c `pkg-config --cflags --libs python`
hmpffff has quit [Read error: Connection reset by peer]
<smeag0l> was asking as i thought it should be able to find, after i `nix-shell` and thought no more needing pkg-config
hmpffff has joined #nixos
leocp1 has left #nixos [#nixos]
<clever> smeag0l: that kind of mess is only needed if packages are going out of their way to avoid collisions in /usr/include
<clever> which is exactly the kind of mess nix prevents
lsix has joined #nixos
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
knupfer has quit [Remote host closed the connection]
chagra has joined #nixos
<jluttine> which one is correct in shebang: "#!/usr/bin/env sh" or "#!/bin/sh" ?
<{^_^}> [nixpkgs] @andir opened pull request #84251 → [19.09] firefox{,-bin}: 74.0 -> 74.0.1, firefox-esr: 68.6.0esr -> 68.6.1esr → https://git.io/JvboJ
<est31> jluttine: former
<jluttine> est31: ok, thanks!
<{^_^}> [nixpkgs] @Ma27 merged pull request #84234 → csv2latex: init at 0.22 → https://git.io/Jvb0B
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JvboT
smeag0l has quit [Quit: leaving]
nomeata has quit [Quit: Client exiting]
leocp1 has joined #nixos
<{^_^}> [nixpkgs] @kevincox merged pull request #83830 → sewer: 0.7.9 -> 0.8.1 → https://git.io/Jv5qC
<{^_^}> [nixpkgs] @kevincox pushed 2 commits to master: https://git.io/JvboY
wangoe[m] has joined #nixos
leocp1 has left #nixos [#nixos]
<tilpner> jluttine, est31: Are you sure? I would have gone with the latter
zupo has joined #nixos
<tilpner> It doesn't require patchShebangs, and should be available everywhere, even the Nix sandbox
<tilpner> For anything but /bin/sh, use env of course
<jluttine> tilpner: yeah, this was indeed about sh only.
civodul has joined #nixos
<jluttine> tilpner: that's what i thought, but i wasn't sure
<jluttine> tilpner: but is there any harm in using the former?
<tilpner> Yes, /usr/bin/env doesn't exist in the Nix sandbox
<tilpner> So you need to patchShebangs
cjpbirkbeck has quit [Quit: cjpbirkbeck]
shibboleth has joined #nixos
hmpffff_ has joined #nixos
hmpffff has quit [Ping timeout: 272 seconds]
<jluttine> tilpner: ah, thanks!
<bqv[m]> out of curiosity, why does nix od that thing where it'll stop downloading with like 0.5mb left
<bqv[m]> [4/190/1175 built, 233 copied (1817.6/1818.5 MiB), 5...
<bqv[m]> it happens to me so often
teto has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mexisme has joined #nixos
opthomasprime has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
ATuin has joined #nixos
ATuin has quit [Client Quit]
domogled has quit [Ping timeout: 240 seconds]
ATuin has joined #nixos
FRidh has quit [Quit: Konversation terminated!]
<xfix> bqv[m]: it downloaded pretty much everything, now it's building
<est31> tilpner: I didn't know that interesting
<bqv[m]> xfix: why would it download "pretty much" everything and not just everything?
<bqv[m]> is there a reason to defer anything to after some stuff is built?
mexisme has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @magnetophon opened pull request #84252 → sfizz: unstable-2020-01-24 -> 0.3.2 → https://git.io/JvboN
<tilpner> bqv[m]: I'm guessing it's not stopping just before the end, but it's a single connection (out of many parallel connections) that has stalled, and you only notice at the end
<bqv[m]> right.
<bqv[m]> symphorien: is there a way to get terminal output with nix-du?
<symphorien> no
<bqv[m]> bummer. thanks anyway
<symphorien> the most direct way is | tred | dot -Txlib
kleisli has quit [Remote host closed the connection]
jbrock_ has joined #nixos
jbrock has quit [Ping timeout: 265 seconds]
jbrock_ is now known as jbrock
kleisli has joined #nixos
hmpffff has joined #nixos
hmpffff_ has quit [Ping timeout: 265 seconds]
bkv has joined #nixos
learnday20 has joined #nixos
<{^_^}> [nixpkgs] @marsam opened pull request #84254 → tflint: 0.15.3 -> 0.15.4 → https://git.io/JvbKn
<{^_^}> [nixpkgs] @marsam merged pull request #84228 → ocamlformat: 0.13.0 -> 0.14.0 → https://git.io/Jvb8c
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvbKW
<learnday20> hello nixos experts, I would like to customize my emacs basic customization for orgmode. How do I begin? I and in ~/.emacs.d directory but all I see is session info and elpa folder. thank you!
is_null has quit [Ping timeout: 256 seconds]
cybrian has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #84239 → bshapr: 0.7 -> 0.8 → https://git.io/Jvbgs
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvbKo
<tilpner> learnday20: If you don't get an answer here, there's a #nixos-emacs channel
<learnday20> tilpner: thank you, I didn't know that, i will ask there!
bkv has quit [Ping timeout: 246 seconds]
cybrian has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @ryantm merged pull request #83731 → kubeseal: 0.10.0 -> 0.12.0 → https://git.io/Jv7GS
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JvbKD
leocp1 has joined #nixos
<{^_^}> [nixpkgs] @Ma27 merged pull request #83940 → bitwarden_rs: 1.14 -> 1.14.1 → https://git.io/JvdIi
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JvbKH
<bqv[m]> infinisil: adisbladis what's going on here ` nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/master.zip -p emacsPackages.lua-mode `
leocp1 has quit [Client Quit]
<tilpner> For one, you probably want .tar.gz instead of .zip
zupo has joined #nixos
kleisli has quit [Remote host closed the connection]
dansho has quit [Quit: Leaving]
kleisli has joined #nixos
shafox has joined #nixos
<bqv[m]> that's irrelevant, i'm building locally, i just added that for a self-contained test
<tilpner> Not irrelevant, if you want people to quickly run your test
<tilpner> I don't know what caused the hash-mismatch, but it didn't even get that far with .zip
<bqv[m]> huh
<bqv[m]> ok
Jackneill has quit [Ping timeout: 250 seconds]
bvdw has quit [Read error: Connection reset by peer]
cosimone has joined #nixos
bvdw has joined #nixos
chagra has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @Ma27 pushed to master « cargo-make: 0.30.1 -> 0.30.2 »: https://git.io/Jvb6G
<{^_^}> [nixpkgs] @prikhi opened pull request #84255 → lightdm-mini-greeter: 0.3.4 -> 0.4.0 → https://git.io/Jvb6r
kwork has quit [Remote host closed the connection]
leocp1 has joined #nixos
kwork has joined #nixos
<{^_^}> [nixpkgs] @lheckemann pushed 5 commits to structured-attrs: https://git.io/Jvb6F
alina has joined #nixos
iyzsong- has quit [Ping timeout: 260 seconds]
leocp1 has left #nixos [#nixos]
cosimone has quit [Quit: Terminated!]
mallox_ has joined #nixos
cosimone has joined #nixos
<teto> sphalerite: regarding https://github.com/NixOS/nixpkgs/pull/72074, should I just push directly to the PR ? shouldn't we announce which packages we are going to work on ?
<{^_^}> #72074 (by globin, 22 weeks ago, open): stdenv: enable __structuredAttrs
chagra has joined #nixos
arjen-jonathan has joined #nixos
ambroisie has quit [Ping timeout: 258 seconds]
cosimone has quit [Client Quit]
<immae> Hello there, the release notes https://nixos.org/nixos/manual/release-notes.html don’t include the 20.03 "big" changes, is there any place were I can see a draft / hints about it, or is it just not redacted yet? (if so, by which means do people agregate all this data so that I can reconstitute it myself in the meantime?)
<tilpner> immae: <nixpkgs/nixos/doc/manual/release-notes/rl-2003.xml>
<immae> Ah cool thanks
<{^_^}> [nixpkgs] @bhipple merged pull request #84254 → tflint: 0.15.3 -> 0.15.4 → https://git.io/JvbKn
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/Jvbi8
<immae> Ah it even contains the notes for unstable, which was my next question
<immae> Thanks tilpner++
<{^_^}> tilpner's karma got increased to 77
gustavderdrache has joined #nixos
<kraem> i've added 'networking.firewall.extraCommands = "iptables -I DOCKER-USER ..";' to block containers to be reached on my dev machine from the outside. however firewall.service is failing because the chain DOCKER-USER isn't set up just yet when starting the machine. do i have any other option than to define a new service which runs the iptables command?
ehmry[m] is now known as ehmry
<the_pumpkin_man[> Hello, I was wondering if there is a way to get libcrypto.so.1.0.0 on NixOS, I don't find it in the nixpkgs and I need it for a game
<tilpner> kraem: I probably should be quiet, but if you know exactly when that chain is added, and it's somewhere in docker.service, perhaps it can be added in ExecStartPre
<tilpner> s/added in/ran in/
kapil_ has quit [Quit: ZNC 1.7.5 - https://znc.in]
<kraem> tilpner: ahh i'll look into that. thanks!
<tilpner> the_pumpkin_man[: Exactly that one, or 1.0.2?
<the_pumpkin_man[> exactly that one
lsix has quit [Ping timeout: 265 seconds]
<the_pumpkin_man[> Tested 1.0.2, and the game still complains `error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory`
<tilpner> Then you'll need to try older nixpkgs versions
<the_pumpkin_man[> Oh, Im actually on nixos-unstable, how can I do that ?
<the_pumpkin_man[> I mean, by editing the NixOS config, and which channel do I need ?
kapil_ has joined #nixos
<tilpner> I don't know which channel
cosimone has joined #nixos
orivej has joined #nixos
<the_pumpkin_man[> Because both nixos-19.09 and nixpkgs-unstable don't have it
<tilpner> Yes, because it's ancient
<tilpner> It was released in 2010, and has no place in todays nixpkgs
<the_pumpkin_man[> Because I'm trying to run Undertale on NixOS, and well it needs that lib
<the_pumpkin_man[> Using steam-run-nativ
<the_pumpkin_man[> * Using steam-run-native
<tilpner> Are you sure it doesn't run with the valve-provided libraries?
learnday20 has quit [Quit: Leaving]
<the_pumpkin_man[> No, if I do `steam-run path/to/game` it prints the error above
<{^_^}> [nixpkgs] @Ma27 pushed to release-20.03 « cargo-make: 0.30.1 -> 0.30.2 »: https://git.io/JvbPO
<peelz> kraem: maybe you could try creating the DOCKER-USER chain in networking.firewall.extraCommands?
<magnetophon> can "rev" in a pkg have a space? As in: rev = "Ninjas2 v${version}"; Seems to break it: nix-prefetch-git: line 92: v0.2.0: command not found
<magnetophon> Can I escape it?
<{^_^}> [nixpkgs] @Ma27 merged pull request #83753 → rofi-emoji: init at 2.1.2 → https://git.io/Jv747
<{^_^}> [nixpkgs] @Ma27 pushed 3 commits to master: https://git.io/JvbPl
<tilpner> magnetophon: Does the tag really have a space in it?
<tilpner> magnetophon: Try with just "v0.2.0";
<tilpner> magnetophon: Try with just "v0.2.0";
<{^_^}> [nixpkgs] @Ma27 merged pull request #83941 → bitwarden_rs-vault: 2.12.0e -> 2.13.2 → https://git.io/JvdIp
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JvbPB
<magnetophon> tilpner: the tag has a space
<tilpner> magnetophon: No, it does not
<peelz> tilpner: you could override the `extraLibraries` attribute on the steam derivation, like this: steam.override (self: { extraLibraries = pkgs: [ ./libcrypto-1.0.0 ]; })
<magnetophon> tilpner: oops, my bad, sorry!
fenedor has joined #nixos
alina has quit [Quit: leaving]
<tilpner> peelz: And where does the_pumpkin_man[ get that ./libcrypto-1.0.0?
alina has joined #nixos
captjakk has joined #nixos
<peelz> you're gonna have to make it yourself or find an older version of libcrypto on the nixpkgs repo history
<tilpner> Yeah, and I wish the_pumpkin_man[ good luck with that
<the_pumpkin_man[> Oh well, I only have basic knownledge about NixOS
<the_pumpkin_man[> Thank you, but idk how to create a derivation or to use it at the moment
<peelz> oh I misread, I thought tilpner was asking x)
fendor has quit [Ping timeout: 240 seconds]
<the_pumpkin_man[> I will just keep searching
<the_pumpkin_man[> no xD
<peelz> the_pumpkin_man[, libcrypto is from the openssl package
<the_pumpkin_man[> I know, but I specifically need the 1.0.0 version
captjakk has quit [Ping timeout: 256 seconds]
teto has quit [Ping timeout: 272 seconds]
<peelz> the_pumpkin_man[: be815e7639d819f2d899367c09356c30603ed2f7 seems to be the last commit before openssl was upgraded to 1.0.1b
<peelz> you should be able to use that libcrypto derivation
<peelz> s/derivation/build/
<the_pumpkin_man[> Well, how ?
<the_pumpkin_man[> Sorry I'm a beginner
<peelz> git clone https://github.com/NixOS/nixpkgs.git; cd nixpkgs; git checkout be815e7639d819f2d899367c09356c30603ed2f7
<kraem> peelz: thanks! wen't with ExecStartPost on the docker.service because that way it won't fail silently if docker /docker.service changes implementation :)
<kraem> peelz++
<{^_^}> peelz's karma got increased to 1
<kraem> tilpner++
<{^_^}> tilpner's karma got increased to 78
lsix has joined #nixos
fendor has joined #nixos
<peelz> the_pumpkin_man[: something like this: https://termbin.com/o3li
fenedor has quit [Ping timeout: 265 seconds]
FRidh has joined #nixos
chagra_ has joined #nixos
<the_pumpkin_man[> So if I understan correctly, the URL points to an old nixpkgs repository ?
<peelz> it downloads and imports that nixpkgs repo yeah
<the_pumpkin_man[> and adds the openssl 1.0.0 as a library to the steam environment
<peelz> yup
<the_pumpkin_man[> Great, thanks, I will test it !
chagra has quit [Ping timeout: 240 seconds]
teto has joined #nixos
<tilpner> That's 2012 nixpkgs, don't let it send anything you care about over the network
turion has joined #nixos
<pbogdan> libcrypto.so.1.0.0 is also in openssl_1_0_2 which is still even in current unstable (marked as insecure though..)
<turion> I'm looking into purchasing a graphics tablet. Any recommendation on what plays well with NixOS? Huion? Wacom? ...?
<the_pumpkin_man[> pbogdan: strange thing, I tried to install it but the game wasn't finding libcrypto.so.1.0.0
<peelz> the_pumpkin_man[: you have to supply it to the steam environment. Steam games won't find "globally-installed" libraries afaik
mexisme has joined #nixos
fragamus has joined #nixos
ambroisie has joined #nixos
teto has quit [Ping timeout: 272 seconds]
chagra has joined #nixos
<bqv[m]> help, i'm stuck in a git rebase
<bqv[m]> my objects are corrupt :')
<peelz> yikes
chagra_ has quit [Read error: Connection reset by peer]
teto has joined #nixos
mexisme has quit [Ping timeout: 260 seconds]
arjen-jonathan has quit [Ping timeout: 260 seconds]
<peelz> the_pumpkin_man[: as pbogdan said, openssl_1_0_2 does indeed build libcrypto.so.1.0.0. Try this instead: https://termbin.com/st7q
<the_pumpkin_man[> Thank you, I was trying to add this lib to Steam
<the_pumpkin_man[> But `he option value ```environment.systemPackages.[definition 1-entry 34]' in `/etc/nixos/packages.nix' is not of type `package'```
<tilpner> Add parentheses around line 3
<peelz> oh yeah, wrap the entire thing in parentheses
<the_pumpkin_man[> Yes just found that in https://nixos.wiki/wiki/Steam
<the_pumpkin_man[> Well but it's now saying that Steam is unfree, and I don't really want unfree software
<the_pumpkin_man[> Ok, I just tested the example from the wiki and it's actually building
<the_pumpkin_man[> By the way, why do you need to surround the thing with parentheses ?
<peelz> because lists are space-separated
shibboleth has quit [Quit: shibboleth]
<peelz> it sees it as passing the function and the (intended) parameter as two entries in the list
<the_pumpkin_man[> Ok I see thanks
<the_pumpkin_man[> OH hell new error `./runner: error while loading shared libraries: libcrypto.so.1.0.0: wrong ELF class: ELFCLASS64`
<the_pumpkin_man[> Is is because it is a 32 bit game ?
<peelz> seems like it
<the_pumpkin_man[> Because I added 32bit support
<the_pumpkin_man[> with ```opengl.driSupport32Bit = true;
<the_pumpkin_man[> pulseaudio.support32Bit = true;```
orbekk has quit [Ping timeout: 260 seconds]
orbekk1 has joined #nixos
<the_pumpkin_man[> I think it is because I have to add the library in `hardware.opengl.extraPackages32` to get the 32 bit version of it ?
<the_pumpkin_man[> Gonna try
Blessjah has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @bhipple opened pull request #84257 → python3Packages.PyGithub: 1.45 -> 1.47 → https://git.io/JvbXF
vesper has quit [Ping timeout: 240 seconds]
opthomasprime has joined #nixos
detran has quit [Read error: Connection reset by peer]
detran has joined #nixos
<peelz> the_pumpkin_man[: read this: https://nixos.wiki/wiki/Cross_Compiling
<peelz> you'll have to import nixpkgs for the i686-linux platform to use the 32-bit openssl derivation
<{^_^}> Channel nixos-20.03 advanced to https://github.com/NixOS/nixpkgs/commit/4dc8447c55f (from 14 hours ago, history: https://channels.nix.gsc.io/nixos-20.03)
<the_pumpkin_man[> Oh damn
<{^_^}> [nixpkgs] @costrouc opened pull request #84258 → python3Packages.pulumi-* init → https://git.io/Jvb1l
<the_pumpkin_man[> Isn't there any easier solution ? Like on Arch, where you just enable 32 bit support, and you get the 32bit versions of packages ?
<peelz> I'm not sure
<tilpner> You're using extraLibraries still, not extraPackages, right?
<the_pumpkin_man[> No, I'm using extraPkgs
mallox_ has quit [Quit: Leaving]
<tilpner> Well, that's the problem
<the_pumpkin_man[> Oh
<tilpner> peelz told you to use extraLibraries
<tilpner> And if you don't tell us how you deviate from suggestions, it's hard for peelz to help you
<the_pumpkin_man[> > Ok, I just tested the example from the wiki and it's actually building
<{^_^}> error: syntax error, unexpected ',', expecting ')', at (string):293:3
<the_pumpkin_man[> I said it previously that I was using this example
<the_pumpkin_man[> "Ok, I just tested the example from the wiki and it's actually building"
<{^_^}> [nixpkgs] @timokau merged pull request #83224 → cadical: init at 1.2.1 → https://git.io/JvyZc
<{^_^}> [nixpkgs] @timokau pushed 3 commits to master: https://git.io/Jvb1g
kleisli has quit [Remote host closed the connection]
alina has left #nixos [#nixos]
kleisli has joined #nixos
lsix1 has quit [Ping timeout: 260 seconds]
<peelz> the_pumpkin_man[: Steam's environment is a bit complicated. It's built in a fake FHS: https://nixos.org/nixpkgs/manual/#sec-fhs-environments
<peelz> packages passed through "extraPackages" end up in targetPkgs, whereas "extraLibraries" end up in multiPkgs
<the_pumpkin_man[> Oh ok
chagra has quit [Read error: Connection reset by peer]
<peelz> so if you use extraLibraries, you should have both the 32-bit and 64-bit libs
<the_pumpkin_man[> Well with `(steam.override { extraLibraries = pkgs: [ openssl_1_0_2 ]; nativeOnly = true; }).run`
<the_pumpkin_man[> I still got that error
<the_pumpkin_man[> `./runner: error while loading shared libraries: libcrypto.so.1.0.0: wrong ELF class: ELFCLASS64`
<tilpner> pkgs.opens...
morgrimm has joined #nixos
shibboleth has joined #nixos
<the_pumpkin_man[> ?
<peelz> :^) try what tilpner said (pkgs.openssl_1_0_2)
<the_pumpkin_man[> Oh I was using that the whole time
<peelz> but that's not what you just sent though
<the_pumpkin_man[> the pkgs.openssl_1_0_2
<peelz> `extraLibraries = pkgs: [ openssl_1_0_2 ]` -> `extraLibraries = pkgs: [ pkgs.openssl_1_0_2 ]`
kleisli has quit [Remote host closed the connection]
<the_pumpkin_man[> OH ok I understand sorry
<peelz> `pkgs:` is a function parameter
<tilpner> peelz++
<{^_^}> peelz's karma got increased to 2
chagra has joined #nixos
Blessjah has joined #nixos
<peelz> <3
<{^_^}> [nixpkgs] @ttuegel merged pull request #84194 → kscreen: Fix #82141 → https://git.io/JvbkP
<{^_^}> [nixpkgs] @ttuegel pushed 2 commits to master: https://git.io/Jvb1D
kleisli has joined #nixos
<the_pumpkin_man[> Oh it is working !
<the_pumpkin_man[> Thank you all people !
<the_pumpkin_man[> peelz++
<{^_^}> peelz's karma got increased to 3
<peelz> nice :P
<the_pumpkin_man[> tilpner++
<{^_^}> tilpner's karma got increased to 79
<AmandaC_> on behalf of all people, I say: You'rewelcome
magnetophon has quit [Read error: Connection reset by peer]
AmandaC_ is now known as AmandaC
<the_pumpkin_man[> I just don't understand one thing
<the_pumpkin_man[> Because my whole expression steam.override ...
lsix has quit [Quit: WeeChat 2.7.1]
<the_pumpkin_man[> Is in environment.systemPackages = with pkgs; [
kleisli has quit [Remote host closed the connection]
<the_pumpkin_man[> * Is in environment.systemPackages = with pkgs; [ ... ];
kleisli has joined #nixos
captjakk has joined #nixos
<the_pumpkin_man[> So why in `extraLibraries = pkgs: [ openssl_1_0_2 ];` it wasn't like `extraLibraries = pkgs: [ pkgs.openssl_1_0_2 ];`
morgrimm has quit [Ping timeout: 240 seconds]
<the_pumpkin_man[> And why did it let me build with the first thing ? Because just openssl_1_0_2 alone makes no sense for Nix
<peelz> `with pkgs;`
<tilpner> the_pumpkin_man[: "with pkgs;" adds everything from pkgs to the current scope
<eyJhb> Anyone up for helping with this error? `error: value is a function while a set was expected, at /home/eyjhb/projects/nixos/learning/dns/test.nix:7:19` test.nix - https://termbin.com/e8pu , default.nix - https://termbin.com/9p4tb
<tilpner> the_pumpkin_man[: So just a plain name will get that attribute from the surrounding pkgs
<tilpner> the_pumpkin_man[: But the important part about extraLibraries is, that a special pkgs is passed, and you need to use that
<tilpner> the_pumpkin_man[: In pkgs: [ pkgs.foo ], foo comes from the pkgs that is passed in
<tilpner> the_pumpkin_man[: In pkgs: [ foo ], foo comes from somewhere else, and the pkgs that is passed in, is ignored
<kraem> anyone solved iwd and udev race condition renaming wifi interfaces? i've tried having iwd.service wait for udevd.service, having the unit start after 'sys-subsystem-net-devices-wlp3s0.device', used 'use_default_interface=true' in iwd conf, define 'iwd --nointerfaces "wlan[0-9]"' in ExecStart of iwd.service. still it renames wlp3s0 to wlan0 after suspend..
<tilpner> the_pumpkin_man[: This is important when the passed pkgs is actually pkgsi686Linux, where you get your 32-bit libraries
<the_pumpkin_man[> Ok I now understand it thank you
<tilpner> the_pumpkin_man[: pkgs: with pkgs; [ foo ] is equivalent to pkgs: [ pkgs.foo ]
captjakk has quit [Ping timeout: 256 seconds]
<the_pumpkin_man[> Ok
<the_pumpkin_man[> Thanks again for all this time you spent for me :D
<the_pumpkin_man[> You should say that in the nixos wiki
<peelz> have you tried the nix pills?
<the_pumpkin_man[> I only tried
<peelz> there's a lot to read, but all of this is covered
<bqv[m]> fixed my objects
<the_pumpkin_man[> But I stopped to first read the Nix manual
<bqv[m]> git is a bizarre utility
<peelz> bqv[m]: what happened to your objects?
<the_pumpkin_man[> And then the nixpkgs manual, in order to create my first derivation
<the_pumpkin_man[> * And then the nixpkgs manual, in order to create my first derivations
<bqv[m]> decades on and i'm still learing things about it
<bqv[m]> peelz: they got corrupted
<peelz> how? lol
<bqv[m]> i'm not sure, a bad reboot, i think
philr has quit [Ping timeout: 260 seconds]
<bqv[m]> my system crashed while compiling linux
<peelz> damn
Blessjah has quit [Ping timeout: 265 seconds]
johnny101m has joined #nixos
teto has quit [Ping timeout: 260 seconds]
teto has joined #nixos
magnetophon has joined #nixos
domogled has joined #nixos
teto has quit [Ping timeout: 272 seconds]
linarcx has quit [Quit: WeeChat 2.8]
fusion809 has quit [Remote host closed the connection]
fusion809 has joined #nixos
cole-h has joined #nixos
sullyj3 has joined #nixos
<sullyj3> How there, how do I set my shell to ion? I've found a method for changing shells but it seems to rely on an option existing for that shell - there's no programs.ion.enable
<sullyj3> Hi there hahaha
Blessjah has joined #nixos
linarcx has joined #nixos
zebrag has quit [Quit: Konversation terminated!]
smatting_ has quit [Ping timeout: 265 seconds]
zebrag has joined #nixos
bqv has joined #nixos
<bqv[m]> no need. users.users.sullyj3.shell = pkgs.ion3;
<the_pumpkin_man[> Or if you want for all users `users.defaultUserShell = pkgs.youShell;`
<the_pumpkin_man[> * Or if you want for all users `users.defaultUserShell = pkgs.YourShell;`
<sullyj3> perfect, cheers. Is that documented somewhere? Where should I have looked to find that info?
<bqv> gosh, the matrix bridge is slow
<the_pumpkin_man[> sullyj3: https://nixos.org/nixos/options.html# is great for this
<bqv> sullyj3: man configuration.nix works too
<bqv> if you're as allergic to browsers as me
<the_pumpkin_man[> or `nixos-option` command
<__monty__> > "a" + "b"
<{^_^}> "ab"
<sullyj3> Hm, that seems like a great way to find info on options you've heard of, but not to find which options you need..
<sullyj3> I searched for shell and didn't get the one you recommended
<sullyj3> Oh there's multiple pages, sorry
fragamus has quit [Ping timeout: 260 seconds]
captjakk has joined #nixos
fendor has quit [Read error: Connection reset by peer]
palo has quit [Quit: WeeChat 2.7.1]
sullyj3 has quit [Remote host closed the connection]
sullyj3 has joined #nixos
<sullyj3> Hm, I'm getting `error: /nix/store/3nz45dqlryg93qkl415f1aww9s5hh7g0-ion-3-20090110 is not a shell package`
<sullyj3> how do I make it a shell package?
hmpffff_ has joined #nixos
linarcx has quit [Quit: WeeChat 2.8]
linarcx has joined #nixos
sullyj3 has quit [Remote host closed the connection]
<tilpner> bqv: ion3 is a window manager, ion is the shell
hmpffff has quit [Ping timeout: 272 seconds]
hmpffff__ has joined #nixos
sullyj3 has joined #nixos
<tilpner> sullyj3: Use pkgs.ion
linarcx has quit [Read error: Connection reset by peer]
linarcx has joined #nixos
<{^_^}> [nixpkgs] @peti opened pull request #84259 → bluez: update from version 5.53 to 5.54 → https://git.io/JvbyU
<bqv[m]> right, i've used neither so the difference is lost on me
<sullyj3> tilpner No joy :/ same error
<bqv[m]> of all these new age shells, elvish is the only one i managed to use for even a while
<tilpner> sullyj3: It can't be the exact same error
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/8532dd179ce (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<tilpner> sullyj3: Did the path change at least?
<sullyj3> I can't easily copy it out of my vm, but it ends with ion1.0.5 is not a shell package
<sullyj3> yeah
<tilpner> Ahh, good
<tilpner> > zsh.shellPath
<{^_^}> "/bin/zsh"
hmpffff_ has quit [Ping timeout: 256 seconds]
<tilpner> > ion.shellPath
<{^_^}> "/bin/ion"
<sullyj3> Of the new shells, ion is relatively conservative
<tilpner> That should be all that's necessary to make it a shell package
<sullyj3> is that a configuration.nix option or something?
<sullyj3> > user.user
<{^_^}> undefined variable 'user' at (string):293:1
<sullyj3> what is this > thing doing
<cole-h> It's probably because ion was marked as broken.
<tilpner> It evaluates your expression in a context that has a nixpkgs loaded
<sullyj3> A nix expression?
<cole-h> If you're getting ion at 1.0.3, that's why it won't work.
<cole-h> When it was init'd at 1.0.3, there was no shellPath defined for it
<tilpner> Ahh, good catch
justanotheruser has quit [Ping timeout: 260 seconds]
mehlon has joined #nixos
eri is now known as eri451
<sullyj3> So is this something I'd need to talk to a maintainer about then?
<mehlon> hey so I have services.xserver.libinput.tapping = true; but tapping does not work on my touchpad
<cole-h> No, it's already updated
mexisme has joined #nixos
<cole-h> You're just on an old nixpkgs/nixos version
<sullyj3> So the fix is in the unstable channel
hmpffff has joined #nixos
<cole-h> Hopefully?
<tilpner> Yes, and on 20.03
<cole-h> Yes, it appears so
<sullyj3> 20.03? I'm using the virtualbox image I downloaded from the front page today, is that likely to out of date? how do I check?
<sullyj3> oh im guessing it's in the config
<cole-h> ,nixpkgsversion
<{^_^}> nix-instantiate --eval '<nixpkgs/lib>' -A version
<cole-h> 20.03 hasn't been released yet, by the way
<sullyj3> my configuration.nix says 19.09 at the bottom
<sullyj3> ah, right
<clever> sullyj3: the stateVersion means nothing
<clever> ,stateVersion sullyj3
<{^_^}> sullyj3: 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
<sullyj3> are 03 and 09 like ubuntu 04 and 10?
xkapastel has quit [Quit: Connection closed for inactivity]
<sullyj3> Yeah, I wasn't about to try change it
mehlon has quit [Client Quit]
<sullyj3> thanks though
palo has joined #nixos
hmpffff__ has quit [Ping timeout: 272 seconds]
<clever> sullyj3: all it tells you, is what release you began on
<clever> but not the gitrev of the current nixpkgs
<sullyj3> To expand on my question, is 03 an LTS type deal whereas 09 is newfangled cool stuff?
mexisme has quit [Ping timeout: 265 seconds]
<clever> both 03 and 09 are releases
<clever> a new release is made every 6 months, and nixos-unstable is the rolling channel
<{^_^}> [nixpkgs] @bbigras opened pull request #84260 → zenith: 0.8.0 -> 0.8.1 → https://git.io/Jvbyn
<cole-h> The earliest 20.03 will be released, according to the go/no-go meeting yesterday, is Thursday/Friday
<sullyj3> Would you recommend against switching to unstable, as opposed to just grabbing packages from it when I want them? I've already run into other packages that I'd prefer more up to date versions for.
<clever> ,unstable
<clever> sullyj3: you can also grab just a few things from unstable if you choose to
<clever> sullyj3: but i just run unstable on everything, since i have rollbacks
<sullyj3> I understand that. I'm trying to get a sense of whether I'd want to switch
<sullyj3> Is it comparably stable to say, arch?
<clever> it does go thru fairly heavy automated testing before it gets to users
<sullyj3> {^_^} I'm not sure? How should I decide?
<Guest7156> unstable is like arch but with an 'undo button' for me. That was the main reason I switched.
<sullyj3> Ok, that sounds like I probably want it
<sullyj3> I'm in a VM anyway, it's not the end of the world if it breaks
<est31> you can use 20.03 before the release btw
<est31> I've done that
<est31> installed it and it works great
<est31> except for the fact that hydra isn't updated very often
<cole-h> Because it's not finished. Why do mass-rebuilds when there could be even more coming just before release :P
<sullyj3> What's the difference between nixpkgs unstable and nixos unstable? I'm used to arch where there aren't releases
<sullyj3> do I need to be on nixos unstable to use nixpkgs unstable?
<clever> sullyj3: nixos-unstable goes thru extra testing, to make sure it wont brick a nixos machine
<clever> sullyj3: a few years ago, a bug came up in grub config generation, that corrupted grub.conf, nixos-unstable correctly didnt update, protecting most users
<est31> sullyj3: no you don't have to be, you can install packages from nixpkgs unstable if you want
<est31> ouchy
<sullyj3> Oh so they're the same type of thing
<sullyj3> they're both channels
<clever> sullyj3: then dozens of nixpkgs-unstable users started to come out of the woodwork, because they where on the wrong channel and it ceased to boot :P
<sullyj3> I assumed nixos-unstable was like, a release, and then you choose which channel to use with your release
justanotheruser has joined #nixos
<clever> sullyj3: nope, nixos-19.03, nixos-19.09, nixos-20.03, nixos-unstable, and nixpkgs-unstable are all channels
<clever> sullyj3: each updates when a cerain branch passes a certain set of tests
drakonis has joined #nixos
<clever> unstable follows master, the others follow the release branches
<sullyj3> Ok, right. And ion was in 20.03 which is the same as nixos unstable?
<clever> nixos does extra testing for nixos
<bqv[m]> > pkgs.linuxPackages.version
<clever> i havent checked to see what ion is at there
<{^_^}> attribute 'version' missing, at (string):293:1
waleee-cl has joined #nixos
<bqv[m]> how old is linuxPackages compared to _latest normally
<sullyj3> Ok I think I get it
linarcx has quit [Quit: WeeChat 2.8]
<clever> bqv[m]: linuxPackages is a set containing the kernel and every optional module
<cole-h> The updated ion shell is in both unstable and 20.03
<clever> > pkgs.linuxPackages.kernel.version
<{^_^}> "5.4.30"
<clever> > pkgs.linuxLatestPackages.kernel.version
<mudri> Is there any way at all to edit Nix store files without rebuilding the entire package that produced it? I'm not looking for anything reproducible, just a quick something to help with debugging. I'd expect to, maybe, be able to generate a new package based on the output of another (the one I'm trying to edit).
<{^_^}> attribute 'linuxLatestPackages' missing, at (string):293:1
<clever> > pkgs.linuxPackages_latest.kernel.version
<{^_^}> "5.6.2"
<bqv[m]> mudri: guix has a system of grafts, i think. nix does not.
<clever> bqv[m]: nixos also has it
<bqv[m]> clever: gotcha. but ditto question
<bqv[m]> ah
<bqv[m]> ok
<mudri> Is it still called “grafts”?
<cole-h> What are grafts, and in what way does nixos have it?
<clever> mudri: something along the lines of replace dependencies
<clever> mudri: but it may be simpler to just copy the file out of the store, and patch the thing that was referencing it (after also copying it)
<clever> system.replaceRuntimeDependencies
<clever> List of packages to override without doing a full rebuild. The original derivation and replacement derivation must have the same name length, and ideally should have close-to-identical directory layout.
<{^_^}> [nixpkgs] @globin pushed 2 commits to structured-attrs: https://git.io/Jvby6
<clever> Example:
<clever> [ ({ original = pkgs.openssl; replacement = pkgs.callPackage /path/to/openssl { }; }) ]
<mudri> clever: This is a special situation where I'm working on a bug that exists precisely because the program is installed in /nix/store/.
<mudri> Thanks for the pointer!
<clever> mudri: you can also use pkgs.runCommand
<clever> mudri: something like: pkgs.runCommand "name" {} "cp -vir ${oldPkg} $out; cp ${./foo} $out/bin/foo"
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zaeph has quit [Ping timeout: 260 seconds]
<clever> mudri: that makes a new package, which will copy an old package, then overwrite one file
zaeph has joined #nixos
<mudri> Ah nice, that sounds to be what I want, then.
Blessjah has quit [Ping timeout: 265 seconds]
<clever> mudri: the changes your doing must still be pure, but you wont have to recompile, so you can iterate faster
Rusty1 has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<eyJhb> __monty__++
<{^_^}> __monty__'s karma got increased to 13
<eyJhb> Is there any standard for anotation of functions in Nix?
<mudri> clever++
<{^_^}> clever's karma got increased to 374
<__monty__> Annotation as in comments?
<eyJhb> Yeah, e.g. `Type: singleton :: a -> [a]`
bgamari has quit [Quit: ZNC 1.7.5 - https://znc.in]
Blessjah has joined #nixos
koleesch_ has quit [Read error: Connection reset by peer]
<__monty__> Haven't heard of a convention. I'd be partial to haskell's signatures. But I suspect you'd need something more like Purescripts to express extensible record-like things.
sullyj3 has quit [Remote host closed the connection]
koleesch_ has joined #nixos
<__monty__> Maybe a contract based approach'd work better.
<clever> __monty__: ive seen people putting haskell type signatures in comments, but its purely just to help the user understand things, nix ignores it all
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/696274fae72 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<__monty__> Yeah, I'm torn about recommending it though. Such comments could be misleading.
<__monty__> Because of how terrible people are at type checking and nix's untyped nature.
fresheyeball has joined #nixos
<fresheyeball> hey out there
<fresheyeball> I fully realized I may be jumping the shark here
<fresheyeball> but... any have an expression for this thing https://www.jsoftware.com/?
o1lo01ol1o has quit [Remote host closed the connection]
<Cadey> how do I use NUR packages from configuration.nix?
<{^_^}> [nixpkgs] @bhipple merged pull request #84224 → [20.03]: python38Packages.uvloop: enable build → https://git.io/JvblK
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to release-20.03: https://git.io/JvbSq
<energizer> "If package A is using nixpkgs-1 and package B is using nixpkgs-2 then it would be great to be able to resolve nixpkgs to a single instance to avoid the long evaluation. That's what flake.nix is solving." (https://github.com/nix-community/flake.nix/issues/11#issuecomment-477561442) How does flake.nix solve that problem?
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @catern opened pull request #84261 → cataclysm-dda: 0.D -> 0.E → https://git.io/JvbSG
<{^_^}> [nixpkgs] @rycee opened pull request #84262 → [20.03] documentation: minor spelling and stylistic fixes → https://git.io/JvbSZ
<mudri> clever: Oh, and how does `runCommand` handle multiple outputs?
morgrimm has joined #nixos
lsix1 has joined #nixos
<__monty__> Cadey: It's described in the README: https://github.com/nix-community/NUR/blob/master/README.md
<clever> mudri: by default, it has only 1 output, but you can do `runCommand "name" { outputs = [ "out" "dev" ]; }` like any other derivation
<clever> mudri: and then just make sure to populate both $out and $dev
<clever> mudri: but, the files your copying, may refer to the original $dev, not the new $dev
<bqv[m]> <energizer ""If package A is using nixpkgs-1"> because unless nixpkgs is pinned in either of the flakes, nix will use one of the nixpkgs already available
cjpbirkbeck has joined #nixos
<mudri> Okay, I think I can make that work. Cheers!
opthomasprime has quit [Remote host closed the connection]
<energizer> bqv[m]: if A doesn't pin nixpkgs version that's what already happens, and if they do pin nixpkgs version, flakes will used the pinned version, no?
lsix1 has quit [Ping timeout: 265 seconds]
<bqv[m]> energizer: without flakes, it isn't always. it's reasonably common to pin a working nixpkgs to a package, and if you were to import those into your pre-flakes config, you could end up with 3 or more copies of nixpkgs
<bqv[m]> flakes make it a lot more transparent. a flake has inputs, and outputs, the inputs can be pinned, and the can be overriden
<bqv[m]> hard to override an import (builtins.fetchTarball "https://....")
<energizer> so does flakes deprecate builtins.fetchTarball?
<__monty__> It's a bit like opting to adhere to the `{ pkgs ? import pinned-nixpgks {} }: something` convention.
<bqv[m]> energizer: no, because fetchTarball is unrelated, people just often use it to import a custom nixpkgs
<bqv[m]> flakes just allow you a more expressive way to declare that you want "this input" or "this version of nixpkgs"
<energizer> ok
raypatterson has quit [Ping timeout: 240 seconds]
<bqv[m]> the alternative would be to rely on channels, where you're forced, with no other option, to only have one instance of nixpkgs in the whole evaluation
<{^_^}> [nixpkgs] @Ma27 merged pull request #81212 → nixos/matrix-synapse: remove web_client option → https://git.io/JvzVr
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JvbS6
turion has quit [Quit: Leaving.]
<ornxka> why i have to compile tmux on 32 bit x86
raypatterson has joined #nixos
<ornxka> does nixos not have binaries for x86 stuff
<gchristensen> hydra.nixos.org only prebuilds a small subset of the package set for 32bit
<ornxka> hm
fresheyeball has quit [Quit: WeeChat 2.7.1]
<ornxka> i guess i need to set up some kind of remote build thing because this is a 2008-era netbook
<bqv[m]> i'm just waiting for hydra to finish (or even start??) building linux 5.6.2
<{^_^}> [nixpkgs] @rnhmjoj merged pull request #84245 → riot-desktop: add gsettings schemas to the wrapper → https://git.io/Jvba1
<{^_^}> [nixpkgs] @rnhmjoj pushed 2 commits to master: https://git.io/JvbSd
zaeph1 has joined #nixos
domogled has quit [Remote host closed the connection]
domogled has joined #nixos
<__monty__> ornxka: Yes, life without a remote builder is hard on 32bit.
<ornxka> is there a good resource on how to most easily set up remote builders?
<__monty__> Just the manual, it's really easy.
<ornxka> oooh
<ornxka> i like that word "easy"
<__monty__> I forget which manual but probably the nix manual.
<clever> both nix and nixos manuals
<clever> nix manual explains most of it, nixos then has a config option to generate the cfg for you
<{^_^}> [nixpkgs] @edolstra pushed to release-20.03 « kscreen: Fix #82141 »: https://git.io/JvbSb
growpotkin has joined #nixos
<ornxka> hm i dont see anything about remote building in the nixos manual, only the nix one
zaeph has quit [Ping timeout: 256 seconds]
<clever> ornxka: nix.buildMachines in the nixos manual
<ornxka> ah i see it there in the options
erictapen has joined #nixos
<ornxka> ty you are all very helpful
<ornxka> is there some way to check availability of particular packages for a particular instruction set?
<ornxka> particular binary packages*
bgamari has joined #nixos
<Cadey> ah i can add the NUR as a channel
<Cadey> that solves a lot
linarcx has joined #nixos
<clever> ornxka: nix-build --dry-run '<nixpkgs>' -A hello --argstr system i686-linux
bgamari has quit [Quit: ZNC 1.7.5 - https://znc.in]
<{^_^}> [nixpkgs] @rnhmjoj pushed to release-20.03 « riot-desktop: add gsettings schemas to the wrapper »: https://git.io/Jvb9T
<{^_^}> [nixpkgs] @bqv opened pull request #84264 → qweechat: add setuptools dependency → https://git.io/Jvb9I
<ornxka> ah bless you that works perfectly
hoplaahei has quit [Quit: Konversation terminated!]
<ornxka> it even tells me what dependencies will be built
* ornxka save that to my list of useful invocations
<clever> ornxka: you can even swap in aarch64-linux or x86_64-darwin, to see what it would need for those platforms
ALLES_bennofs is now known as bennofs
zaeph1 has quit [Ping timeout: 256 seconds]
<colemickens> Jan Tojnar: I found some instances in nixpkgs of sha256 = "sha256-..." so I followed that for now. I guess I'll try to update it to hash = "256-.."
<colemickens> Do we know if this is documented somewhere?
ixxie has quit [Quit: Lost terminal]
zaeph1 has joined #nixos
zaeph1 is now known as zaeph
<colemickens> I tried googling "new new hashes" and a bunch of other stuff and couldn't find much relevant.
<__monty__> colemickens: Pretty sure nix is supposed to give SRI hashes now?
<__monty__> So that'd include sha.
bgamari has joined #nixos
<bqv[m]> nixpkgs is still rife with old style hashes though
<bqv[m]> i use sri hashes locally, at least
vesper11 has joined #nixos
<__monty__> Yep.
<__monty__> I don't really understand whether SRI hashes are already preferred.
vesper11 has quit [Read error: Connection reset by peer]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/045384ac98c (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<__monty__> Or how to change which format nix reports for hash mismatches.
fendor has joined #nixos
zupo has joined #nixos
<bqv[m]> nix seems to prefer old style hashes
<bqv[m]> nixFlakes seems to prefer new style sri
<colemickens> __monty__:
<colemickens> yes those are my exact questions.
<colemickens> I'm signing up for docs work today, need coffee, but if I had answers I'd make a new wiki page or something
<morgrimm> Does anyone have an example of a config repo using flakes? I'm kinda interested in switching my configs to use them
<colemickens> we could have ,sri wired up or something.
<colemickens> I suspect this will come up more with new nix version?
<__monty__> Yes, it very much seems like a in-the-loop morcel of knowledge.
<__monty__> Even though it's relevant to currently released nix afaict.
o1lo01ol1o has quit [Remote host closed the connection]
<bqv[m]> morgrimm: https://github.com/bqv/nixos, as always
<morgrimm> Oh awesome, thank you - any big pitfalls of using them right now?
<morgrimm> Aside from them being experimental ofc
<bqv[m]> huh, hang on, the tip of live is currently fugged on my repo. i pushed it as a backup
<bqv[m]> no downsides, in my experience
<bqv[m]> fixed
o1lo01ol1o has joined #nixos
<morgrimm> Sweet. There's a bit of bootstrapping done to enable them, right?
<morgrimm> (in your repo I mean)
<bqv[m]> yes, i'd take a look at the 'template' branch first, for that
<bqv[m]> and pay your respects to nrxdp for his handiwork
<{^_^}> [nixpkgs] @marsam opened pull request #84265 → recursive: 1.043 -> 1.046 → https://git.io/Jvb9R
zaeph1 has joined #nixos
o1lo01ol1o has quit [Ping timeout: 260 seconds]
bgamari has quit [Quit: ZNC 1.7.5 - https://znc.in]
hmpffff has quit [Quit: nchrrrr…]
hmpffff has joined #nixos
kenran has joined #nixos
<bqv[m]> https://github.com/NixOS/nixpkgs/pull/84264 someone want a free win?
<{^_^}> #84264 (by bqv, 19 minutes ago, open): qweechat: add setuptools dependency
zaeph has quit [Ping timeout: 265 seconds]
<cole-h> Nice motivation. "Fix" :P
bgamari has joined #nixos
<bqv[m]> hey at least i even made the pr
<bqv[m]> this morning i was quite happy to make an issue and let someone else deal with it
vesper11 has joined #nixos
<{^_^}> [nixpkgs] @bhipple merged pull request #84264 → qweechat: add setuptools dependency → https://git.io/Jvb9I
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/Jvb9i
o1lo01ol1o has joined #nixos
zeta_0 has joined #nixos
<zeta_0> has the new nixos stable been released yet?
<cole-h> No.
<cole-h> It was decided in the go/no-go meeting that the earliest it might be released is Thursday.
linarcx has quit [Read error: Connection reset by peer]
<nextloop> i have trouble getting nix to work on my opensuse tumbleweed installation
zaeph1 is now known as zaeph
<nextloop> when i want to invoke nix-shell default.nix for my new project, I get error: while setting up the build environment: getting attributes of path '/etc/services': No such file or directory
<nextloop> indeed there is no /etc/services in tumbleweed
teto has joined #nixos
jumper149 has joined #nixos
jumper149 has quit [Client Quit]
jumper149 has joined #nixos
jumper149 has quit [Client Quit]
<nextloop> tumbleweed uses /usr/etc/services
<tilpner> nextloop: Does your shell.nix mention services?
<tilpner> s/shell/default/
<nextloop> i am using this copy-pasta
<nextloop> so it might have it somewhere, I guess it's a rather huge environment
linarcx has joined #nixos
<nextloop> tipl
<tilpner> Ahh, I see why
jumper149 has joined #nixos
mexisme has joined #nixos
<tilpner> Can you create a symlink for now? (Or a copy, if that doesn't work)
<{^_^}> [nixpkgs] @bhipple closed pull request #84259 → bluez: update from version 5.53 to 5.54 → https://git.io/JvbyU
<tilpner> Nix adds /etc/{resolv.conf,services,hosts} to the sandbox for fixed-output derivation
<cole-h> bhipple: You linked to the same exact PR on your bluez comment :P
<tilpner> It checks /var/run/nscd/socket for existence, but not the other paths
<bhipple> Yeah I just noticed :D
<cole-h> Hehe
o1lo01ol1o has quit [Remote host closed the connection]
<nextloop> tilpner: symlink seems to work. but is this a bug that should be reported?
jumper149 has quit [Client Quit]
mexisme has quit [Ping timeout: 272 seconds]
<tilpner> nextloop: I didn't find an existing issue on it. Could you open one?
o1lo01ol1o has joined #nixos
<kini> Often when I run `nixos-rebuild switch --upgrade`, I see "error: cannot connect to daemon at '/nix/var/nix/daemon-socket/socket': Connection refused" near the end of the output. Is this normal? If I run `nixos-rebuild switch --upgrade` again (which essentially does nothing), the error is no longer there. I guess it seems like an issue caused by upgrading `nix-daemon` itself?
<tilpner> It seems as if the exact path should be taken from <netdb.h> (_PATH_SERVICES), instead of hardcoded like that
<cole-h> kini: What's the output of `systemctl status nix-daemon.socket`? Sounds like the socket isn't being enabled.
zeenk has joined #nixos
<peelz> cole-h, I've run into the same situation kini is describing multiple times... I'd like to know as well
<cole-h> I'm mostly just going off gut feeling right now. It just sounds like the socket isn't enabled (and thus isn't listening by default)
kenran has quit [Ping timeout: 260 seconds]
o1lo01ol1o has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @Ma27 opened pull request #84266 → nixos/systemd-nspawn: disallow multiple packages with `.nspawn`-units → https://git.io/JvbHl
linarcx has quit [Quit: WeeChat 2.8]
linarcx has joined #nixos
<ornxka> nix-build -j0 '<nixpkgs>' -A emacs25-nox --builders 'ssh://192.168.1.128 x86_64-linux'
jumper149 has joined #nixos
lsix1 has joined #nixos
<ornxka> i run this and it complains error: unable to start any build; either increase '--max-jobs' or enable remote builds
<ornxka> but i have nix.buildMachines set, nix.distributedBuilds = true; i have the keys all set up and i can do nix ping-store --store ssh://192.168.1.128
<ornxka> emacs doesnt specify any requirements so i am confused as to why it wont work
<cole-h> Maybe you meant to do `--option builders ssh://...`?
<cole-h> There's no `--builders` flag for nix-build.
<{^_^}> [cabal2nix] @mryndzionek opened pull request #449 → Added mappings for SoapySDR and liquid-dsp → https://git.io/JvbHb
<colemickens> oh hey look its licensing again
<colemickens> oh god the worst part about packaging sometimes is guessing the license: https://github.com/libjpeg-turbo/libjpeg-turbo/blob/master/LICENSE.md
<ornxka> hm i get the same behavior with that but when i remove the x86_64-linux part at the end it copying path '/nix/store/26chg1cf05rzal8c6mksdvpbwlxc0rch-libICE-1.0.9' to 'ssh://192.168.1.128' copying path '/nix/store/26chg1cf05rzal8c6mksdvpbwlxc0rch-libICE-1.0.9' to 'ssh://192.168.1.128'...
<ornxka> error: cannot add path '/nix/store/26chg1cf05rzal8c6mksdvpbwlxc0rch-libICE-1.0.9' because it lacks a valid signature
<ornxka> oops
<ornxka> double paste
<ornxka> but yeah it seems to try to use the remote builder if i dont have the last bit and then fails for some reason
jumper149 has quit [Quit: WeeChat 2.7]
<{^_^}> [nixpkgs] @bhipple opened pull request #84268 → python3Packages.nose2: 0.9.1 -> 0.9.2 and fix build for ZHF → https://git.io/JvbQm
<{^_^}> [nixpkgs] @colemickens opened pull request #84269 → libturbojpeg: init at 2.0.4 → https://git.io/JvbQG
<{^_^}> [nixpkgs] @turboMaCk opened pull request #84270 → haskellPackages.persistent-postgresql: don't check → https://git.io/JvbQc
<colemickens> so what do I put for license in metadata?
<{^_^}> [nixpkgs] @turboMaCk closed pull request #84270 → haskellPackages.persistent-postgresql: don't check → https://git.io/JvbQc
<{^_^}> [nixpkgs] @Xe opened pull request #84271 → Update maintainer-list.nix → https://git.io/JvbQR
<samueldr> colemickens: it can be a list
<{^_^}> [nix] @cole-h opened pull request #3474 → Don't retry on "unsupported protocol" error → https://git.io/JvbQz
<colemickens> handy. :) thanks
lovesegfault has joined #nixos
<{^_^}> [nixpkgs] @bhipple merged pull request #84034 → rkdeveloptool: 1.3 -> unstable-2019-07-01 → https://git.io/JvdXN
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JvbQH
<bqv[m]> This branch is 219762 commits behind NixOS:master
<bqv[m]> i hadn't even spotted that
<{^_^}> [nixpkgs] @turboMaCk opened pull request #84272 → haskellPackages.persistent-postgresql: don't check → https://git.io/JvbQN
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
<kraem> if anyone (or me) finds my last question regarding iwd and udev race condition; this (https://bbs.archlinux.org/viewtopic.php?id=241803) solution seems to work. to be able to override (and clear the previous ExecStart statement) with Nix one can assign a list of commands.
<{^_^}> [nixpkgs] @globin pushed to structured-attrs « treewide: fix structured-attrs eval errors »: https://git.io/Jvb7U
pbogdan has quit [Remote host closed the connection]
pbogdan has joined #nixos
gustavderdrache has quit [Quit: Leaving.]
cybrian has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #84265 → recursive: 1.043 -> 1.046 → https://git.io/Jvb9R
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jvb7E
cybrian has quit [Ping timeout: 256 seconds]
o1lo01ol1o has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @mmilata opened pull request #84273 → gnutls: 3.6.12 -> 3.6.13 [security] → https://git.io/Jvb76
mjsir911 has quit [Quit: Goodbye, World!]
mjsir911 has joined #nixos
<lovesegfault> How can I make a attr in my attrset in default.nix that just collects other wrappers so that I can then have a single `result/` with the symlinks all in there
<lovesegfault> so like foo = [ a b c d]; if I nix-build -A foo I get result/{a,b,c,d}
<cole-h> Without being completely confident or knowing if it will actually work, that maybe sounds like something that SymlinkJoin could help with?
<{^_^}> [nixpkgs] @jhillyerd opened pull request #84274 → chezmoi: update build tags to chezmoi 1.7.18 format → https://git.io/Jvb53
<{^_^}> [nixpkgs] @AndersonTorres opened pull request #84275 → cimg: 2.8.4 -> 2.9.0 → https://git.io/Jvb5R
morgrimm has quit [Ping timeout: 240 seconds]
* lovesegfault looks
<bqv[m]> Cole Mickens: is mirage usable?
<lovesegfault> cole-h: I think what I want is linkFarm
<lovesegfault> also what a bizarre name
ddellacosta has joined #nixos
<colemickens> bqv: no
<cole-h> I'd hazard a guess and say, "no"
<colemickens> bqv: not yet anyway :)
<colemickens> to be more specific, I don't think the derivation is complete
<bqv[m]> lol
<{^_^}> [nixpkgs] @turboMaCk opened pull request #84276 → elmPackages.create-elm-app: init at 4.2.4 → https://git.io/Jvb5y
ddellacosta has quit [Client Quit]
<zeta_0> cole-h: thanks for the info on nixos's stable release, date, sorry i took so long to respond i was gone for while
<cole-h> No problem :)
<cole-h> Easiest way to tell isto visit the main site: https://nixos.org/
ddellacosta has joined #nixos
FRidh has quit [Quit: Konversation terminated!]
<cole-h> You'll see a news item for it if it's been released
<zeta_0> cole-h: cool, thanks
captjakk has quit [Remote host closed the connection]
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @colemickens closed pull request #84269 → libturbojpeg: init at 2.0.4 → https://git.io/JvbQG
<cole-h> colemickens: It is behind a version; you could have converted that PR into an update
<cole-h> :P
<colemickens> I could've and should've.
<{^_^}> [nixpkgs] @Ma27 pushed to master « mautrix-telegram: 0.7.1 -> 0.7.2 »: https://git.io/Jvb5h
<colemickens> I'm already 2.5 hours deep on rabbit holes all just to get setup to stream doc wriitng :S
<cole-h> You can re-open PRs... ;)
<{^_^}> [nixpkgs] @Ma27 pushed to release-20.03 « mautrix-telegram: 0.7.1 -> 0.7.2 »: https://git.io/Jvbdv
ATuin has quit [Quit: WeeChat 2.7.1]
<{^_^}> [nixpkgs] @bqv opened pull request #84277 → emacsPackages.lua-mode: Fix hash → https://git.io/Jvbdk
captjakk has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84278 → chafa: 1.2.2 -> 1.4.0 → https://git.io/JvbdY
<{^_^}> #84277 (by bqv, 3 minutes ago, open): emacsPackages.lua-mode: Fix hash
<colemickens> oh lord it's even the default libjpeg lol
<{^_^}> [nixpkgs] @colemickens opened pull request #84279 → libjpeg_turbo: 2.0.3 -> 2.0.4 → https://git.io/Jvbdn
<armin> * nixpkgs.weechat-unwrapped (weechat) could anyone enlighten me what "unwrapped" means in that context?
<{^_^}> #84279 (by colemickens, 8 seconds ago, open): libjpeg_turbo: 2.0.3 -> 2.0.4
<bqv[m]> <armin "* nixpkgs.weechat-unwrapped (wee"> not wrapped :p
<{^_^}> [nixpkgs] @Ma27 merged pull request #84271 → Update maintainer-list.nix → https://git.io/JvbQR
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JvbdW
<bqv[m]> for your convenience
<bqv[m]> it's a semi-convention in nixpkgs to make the unwrapped version available too
<cole-h> colemickens: I'd nixpkgs-review and r+ that, but... `6591 package updated:`
<bqv[m]> bad rebase?
<bqv[m]> oh, no, it's just a library that's in everything
<cole-h> Yeah lol
zeenk has quit [Read error: Connection reset by peer]
jmeredith has quit [Quit: Connection closed for inactivity]
zeenk has joined #nixos
<{^_^}> [nixpkgs] @AndersonTorres opened pull request #84280 → biblesync: 1.1.2 -> 2.0.1 → https://git.io/JvbdE
romildo has joined #nixos
dingenskirchen has quit [Read error: Connection reset by peer]
dingenskirchen has joined #nixos
<{^_^}> [nixpkgs] @misuzu opened pull request #84281 → kmon: init at 1.0.0 → https://git.io/Jvbdg
<bqv[m]> how does the code owner thing work? is it that it can't be merged without code owner's permission or something?
<peelz> bqv[m]: I don't know if it means anything special in nixpkgs, but afaik it's usually just so you know who's responsible for the code you're looking at
Soo_Slow has joined #nixos
<bqv[m]> right
linarcx has quit [Ping timeout: 265 seconds]
<bqv[m]> in that case, ma27 could i have this merged, since it's just a hash change and fixes a package https://github.com/NixOS/nixpkgs/pull/84277
<{^_^}> #84277 (by bqv, 25 minutes ago, open): emacsPackages.lua-mode: Fix hash
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84282 → linuxPackages_hardened.chipsec: 1.4.7 -> 1.4.9 → https://git.io/Jvbdi
<bqv[m]> saves me hacking my code, since adisbladis is away
<cole-h> Why does the hash keep changing?
work_ has joined #nixos
vykook has quit [Ping timeout: 260 seconds]
<bqv[m]> i don't know
<bqv[m]> i don't really care
<bqv[m]> i just want it to work
mexisme has joined #nixos
<cole-h> Maybe it's something to investigate so there doesn't have to be a fourth time...
romeoxbm has joined #nixos
romeoxbm has quit [Remote host closed the connection]
felixfoertsch has quit [Quit: ZNC 1.7.4 - https://znc.in]
icexcreamxman has joined #nixos
felixfoertsch has joined #nixos
chloekek has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/JvbdQ
<{^_^}> [nixpkgs] @Infinisil merged pull request #84277 → emacsPackages.lua-mode: Fix hash → https://git.io/Jvbdk
<cole-h> infinisil++
<{^_^}> infinisil's karma got increased to 247
<bqv[m]> ty
<infinisil> Oh yeah see my comment in the PR for why the hash is changing
mexisme has quit [Ping timeout: 260 seconds]
<cole-h> That's why I ++'d you :P
<{^_^}> [nixpkgs] @Infinisil pushed commit from @bqv to release-20.03 « emacsPackages.lua-mode: Fix hash »: https://git.io/Jvbd5
vykook has joined #nixos
<infinisil> :D
<bqv[m]> noice, now i can recreate my lock again
pbogdan has quit [Remote host closed the connection]
romildo has quit [Quit: Leaving]
pbogdan has joined #nixos
learnday20 has joined #nixos
snicket has quit [Ping timeout: 240 seconds]
<cole-h> colemickens: Methinks you should rebase and change target branch to staging for the libjpeg bump
Naptra has quit [Quit: Leaving]
miscellaneousbus has joined #nixos
snicket has joined #nixos
awygle is now known as awygle_working
<colemickens> Yeah, good point
cybrian has joined #nixos
<cole-h> Oof look at all those codeowners lol
<colemickens> shit, because I pushed before chnaging branch on GH. :/ knew I should've left this one alone
* cole-h makes a mental note to change target branch first, and *then* push rebased commit if I ever find myself in that situation
knupfer has joined #nixos
fragamus has joined #nixos
<cole-h> I'm sure it'll be fine. Not like everybody shows up every time they review. What's 1 more notification?
<{^_^}> [nixpkgs] @AndersonTorres opened pull request #84284 → babashka: 0.0.71 -> 0.0.78 → https://git.io/JvbFT
<infinisil> It does add up!
<{^_^}> [nixpkgs] @worldofpeace pushed to revert-84245-riot-fix « Revert "riot-desktop: add gsettings schemas to the wrapper" »: https://git.io/JvbFk
<{^_^}> [nixpkgs] @flokli pushed to master « Revert "Revert "rust-cbindgen: 0.13.1 -> 0.13.2"" »: https://git.io/JvbFt
vykook has quit [Ping timeout: 265 seconds]
<cole-h> I wonder if removing the requested reviewers removes the notification...
<colemickens> I don't even have permissions, so :/
<cole-h> infinisil: You do ;^)
<infinisil> Eh it doesn't matter that much
<infinisil> Btw, the way to change the base branch without causing this is to use `git merge-base upstream/master upstream/staging` to find out the commit you need to rebase on
cybrian has quit [Ping timeout: 265 seconds]
<infinisil> `git rebase --onto $(git merge-base ...) HEAD~1` if you have 1 commit in the PR
<colemickens> I am pretty lost.
<colemickens> I did `git rebase -i nixpkgs/staging` and it formed the right commit. AFAICT the notification was because I hadn't changed the base branch on GH before pushing.
<bqv[m]> can't you just git rebase --onto upstream/staging HEAD~1?
<infinisil> The problem is that changing the base branch in the github ui and rebasing on that branch and pushing that has to happen at the exact same time
<infinisil> Otherwise you get extra commits from the other branch temporarily
<colemickens> Oh I guess it would happen both directions.
<bqv[m]> oh
<infinisil> Yeah
<infinisil> So just rebasing on staging won't work
<bqv[m]> what on earth
<bqv[m]> ugh
<colemickens> infinisil: are you saying that if I (comprehend first, then )use your instructions that I can avoid this?
vykook has joined #nixos
<infinisil> Which is why you need merge-base, which determines the commit both branches have in common, meaning neither of them won't have extra commits from the other one
<colemickens> Aha.
<infinisil> Yeah, rebase onto the merge-base commit first, push that, *then* change the branch in the github ui
mallox has quit [Quit: WeeChat 2.7.1]
<bqv[m]> oh god now i'm building linux AND firefox... switching to master may have been a mistake
* cole-h adds this to his nixos.txt notes file
<infinisil> Probably fetch upstream first too
* cole-h adds that to his nixos.txt notes file, as well
<cole-h> :P
<bqv[m]> yikes
<{^_^}> [nixpkgs] @worldofpeace opened pull request #84285 → riot-desktop: wrap with wrapGAppsHook → https://git.io/JvbFE
<jtojnar> Cole Mickens it is possible to use SRI hashes in `outputHash` attribute (nixpkgs fetchers translate `sha256 = "foo"` to `outputHashAlgo = "sha256"; outputHash = "foo";`) but it is redundant. You should either strip the SRI prefix and use the plain base64 value or pass the SRI hash to `hash` attribute
vykook has quit [Ping timeout: 256 seconds]
<jtojnar> though the latter is still not supported by all the fetchers and seems inconsistent to me (https://github.com/NixOS/nixpkgs/pull/79987#pullrequestreview-358008974)
hmpffff_ has joined #nixos
noogie has quit [Ping timeout: 240 seconds]
__monty__ has quit [Quit: leaving]
vykook has joined #nixos
noogie has joined #nixos
hmpffff has quit [Ping timeout: 272 seconds]
bqv has quit [Ping timeout: 265 seconds]
nobrak has quit [Remote host closed the connection]
infinisil has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
gcoakes has joined #nixos
infinisil has joined #nixos
gcoakes_ has joined #nixos
<bqv[m]> I did ask this earlier, how behind is pkgs.linuxPackages compared to pkgs.linuxPackages_latest normally?
vykook has quit [Ping timeout: 240 seconds]
justanotheruser has quit [Ping timeout: 256 seconds]
gcoakes_ has quit [Client Quit]
gcoakes_ has joined #nixos
gcoakes has quit [Quit: Lost terminal]
gcoakes_ has quit [Client Quit]
gcoakes has joined #nixos
snicket has quit [Ping timeout: 240 seconds]
<pbogdan> IIRC the policy for linuxPackages is to track latest upstream LTS bqv[m]
gcoakes has quit [Client Quit]
miscellaneousbus has quit [Quit: Textual IRC Client: www.textualapp.com]
vykook has joined #nixos
<bqv[m]> hmm
<bqv[m]> thanks
gcoakes has joined #nixos
gcoakes has quit [Client Quit]
<pbogdan> but don't know how upstream manages LTS vs latest stable
<bqv[m]> LTS 5.4 seems like it's due to expire at the end of 2021
<bqv[m]> so that's a no go for me
<bqv[m]> _latest was updated to 5.6.2 in 4fbd9e3ab8b two days ago, but that hasn't been built on hydra
<bqv[m]> how does that work?
<icexcreamxman> -quit
icexcreamxman has quit [Quit: leaving]
romildo has joined #nixos
develCuy has joined #nixos
vykook has quit [Ping timeout: 265 seconds]
<bqv[m]> https://hydra.nixos.org/build/115959322#tabs-details stuck in staging apparently
<bqv[m]> hmm
pjt_014 has joined #nixos
<{^_^}> [nixpkgs] @numkem opened pull request #84286 → hashi-ui: init at 1.3.8 → https://git.io/JvbbI
gcoakes[m] has joined #nixos
<romildo> Why the following does not work in master?
<romildo> EDITOR=echo nix edit -f. exo
<romildo> error: attribute 'exo' in selection path 'exo' not found
<cole-h> `nix search exo -u`
<cole-h> Maybe you meant `xfce.exo`?
<romildo> cole-h, yes, i did.
<romildo> It still does not work.
vykook has joined #nixos
<romildo> EDITOR=echo nix edit -f. xfce.exo
<romildo> /alt/nixpkgs/lib/attrsets.nix
<{^_^}> [nixpkgs] @jtojnar pushed to staging « gobject-introspection: Clean libregress symlink »: https://git.io/Jvbb3
hmpffff has joined #nixos
<{^_^}> [nixpkgs] @samueldr merged pull request #84248 → [20.03] update firefox to latests stable (secure) release → https://git.io/JvbrT
<{^_^}> [nixpkgs] @samueldr pushed 9 commits to release-20.03: https://git.io/Jvbbc
hmpffff_ has quit [Ping timeout: 272 seconds]
<romildo> cole-h, I am using nix edit in a shell script to find the file path containing a derivation definition. It is not working for xfce packages. Any clues?
<cole-h> No idea.
<cole-h> Maybe related to the fact that it's not `mkDerivation`'d
<{^_^}> [nixpkgs] @elitak opened pull request #84287 → vcs: init at 1.13.4 → https://git.io/JvbbR
<bqv[m]> cole-h: you're always on master, right? how do you deal with having to randomly recompile 3 different things that each take 8 hours
<cole-h> I'm not on NixOS, so I don't usually have to.
<bqv[m]> that'll do it
<cole-h> :P
fendor has quit [Read error: Connection reset by peer]
<bqv[m]> well this has been an exercise in pain. guess i'll head back to unstable-small
<cole-h> What I would do is just `git checkout origin/master@'{1 day ago}'` (yes, this works) and hope your packages were cached for that day.
<{^_^}> [nixpkgs] @matthewbauer merged pull request #83112 → releaseTools: no-op expression cleanup → https://git.io/Jvbbo
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/JvbbK
<bqv[m]> linux and firefox were both updated two days ago...
<bqv[m]> and i now have changes i need that are 1 day ago :/
<bqv[m]> gonna have to monkeypatch
<cole-h> And that's when you heed the advice of ,unstable
<cole-h> ,unstable
<cole-h> Run most of system on nixpkgs@{1 day ago}, take packages from master that you need (and are hopefully small enough)
<kraem> bqv[m]: they're still not built on unstable-small either :'(
<bqv[m]> doesn't apply directly to me cause i'm on a flake, but yeah thats mostly my intention now. i just hate having to declaratively do something so hacky
<bqv[m]> kraem: so i've just found out
<bqv[m]> gonna have to head back to unstable-large! the horror
<bqv[m]> actually. hey. why don't i do what that FAQ does but in reverse. have most of my system unstable, but cherry pick some stable packages
hoplaahei has joined #nixos
<cole-h> That works too
<kraem> that's what i do for when i need new versions of pkgs but some big build is blocking
<lovesegfault> Hmm, I can't get symlinkFarm to work
<lovesegfault> Apparently the things I am building "don't evaluate to a derivation"
<bqv[m]> good idea, i'm gonna do that and just have nixos-unstable as a hanging flake input for when i need to
<hoplaahei> hi. I have installed firefox package in 20.03, but some videos do not play. quirksmode reports no h264, ogg, or theora. How can I get Firefox to pass these tests? Installing openh64 package, for instance, doesn't work.
<{^_^}> [nixpkgs] @veprbl merged pull request #83900 → openmsx: 2017-11-02 -> 0.15.0 → https://git.io/Jv5QY
<{^_^}> [nixpkgs] @veprbl pushed commit from @AndersonTorres to master « openmsx: 2017-11-02 -> 0.15.0 (#83900) »: https://git.io/JvbbF
<lovesegfault> When I tab-complete nix-build I see 'foo.drvPath'. How can I get it to print that path?
ZaraChimera has joined #nixos
<lovesegfault> nix-instantiate --eval --strict -A foucault.drvPath
<lovesegfault> nice
<kraem> bqv[m]: here's a tip if you want to have the channels delarative in your config https://discourse.nixos.org/t/how-do-i-build-a-nix-shell-which-depends-on-some-unstable-packages/928/3
yvan has quit [Quit: WeeChat 2.7.1]
<ZaraChimera> I got nix functioning in Ubuntu WSL. So the issues I was having with SSL certs likely had to do with using opensuse's WSL variation.
<bqv[m]> no need, i'm on a flake
<energizer> why am i seeing CXX running when building a package from nixpkgs? shouldn't that have already been built by hydra?
<cole-h> If it's newly updated, not necessarily. If you've overlayed it and changed something, it definitely won't be.
<lovesegfault> Okay, I don't know what's happening
<lovesegfault> does anyone know why this yields empty linkFarms?!
cybrian has joined #nixos
yvan has joined #nixos
cosimone has quit [Quit: Quit.]
<lovesegfault> cc. infinisil maybe?
fusion809 has quit [Remote host closed the connection]
* infinisil doesn't see anything obviously wrong
<lovesegfault> I tried manually creating the linkFarms too
<{^_^}> [nixpkgs] @babariviere opened pull request #84288 → flutter: 1.12.13+hotfix.8 -> 1.12.13+hotfix.9 + fixes → https://git.io/JvbNZ
<lovesegfault> The result was the same
cybrian has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @jonringer merged pull request #84257 → python3Packages.PyGithub: 1.45 -> 1.47 → https://git.io/JvbXF
<{^_^}> [nixpkgs] @jonringer pushed commit from @bhipple to master « python3Packages.PyGithub: 1.45 -> 1.47 »: https://git.io/JvbNB
kaliumxyz has quit [Ping timeout: 265 seconds]
<bdju> have this awful problem lately where my dock seems to reconnect and I can't use my keyboard or mouse for several seconds and then my default soundcard changes to the internal laptop speakers, always while I'm playing a video... then I can't pause and the sound is coming out of the wrong place until it all starts working again and I have to kill pulseaudio to get the right soundcard selected again
<bdju> happened 3 times in the last hour and only started happening in the last few days I think
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pbogdan> you are somehow feeding it empty lists lovesegfault
<bdju> NixOS unstable, ThinkPad T440p, USB mouse/keyboard, USB soundcard... the monitors plugged into the dock seem to keep showing stuff fine during the blip
<pbogdan> I think your filter may need to look at v.system == arch and not just v
<{^_^}> [nixpkgs] @jonringer opened pull request #84289 → lutris: 0.5.4 -> 0.5.5 → https://git.io/JvbNV
<lovesegfault> pbogdan: Oh! I think you're right!
<lovesegfault> Yes :D
<lovesegfault> pbogdan++
<{^_^}> pbogdan's karma got increased to 1
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/ef955ecb1ea (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<hoplaahei> Anyone know what packages firefox requries to pass quirks mode video test and play e.g., h264?
awygle_working is now known as awygle
<bdju> I see that transmission-gtk and transmission are not the same package, and I don't see a transmission-qt. By any chance is the regular transmission the qt version?
<energizer> cole-h: how newly?
<bqv[m]> kraem: https://github.com/bqv/nixos/commit/2cca36ffd7b03d9bd2f37bbbde43bc2805b66b39 set it up so i can just use pkgs.large.?? and pkgs.small.?? as well as pkgs.??
<bqv[m]> works really well
<bqv[m]> feels clean enough to allow into my config
cr4y1 has quit [Ping timeout: 265 seconds]
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
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
knupfer has quit [Client Quit]
knupfer has joined #nixos
justanotheruser has joined #nixos
mexisme has joined #nixos
knupfer has quit [Ping timeout: 260 seconds]
o1lo01ol_ has joined #nixos
romildo has quit [Ping timeout: 265 seconds]
shafox has quit [Remote host closed the connection]
o1lo01ol1o has quit [Ping timeout: 265 seconds]
mexisme has quit [Ping timeout: 265 seconds]
hmpffff has quit [Quit: nchrrrr…]
<{^_^}> [nixpkgs] @davidak opened pull request #84291 → effitask: init at 1.4.0 → https://git.io/JvbAD
<{^_^}> [hydra] @Ma27 closed pull request #576 → Fix constraint violation in Jobset update → https://git.io/fNOmL
<{^_^}> [nixpkgs] @aanderse merged pull request #84045 → apacheHttpd: 2.4.41 -> 2.4.43 → https://git.io/JvdDV
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to staging: https://git.io/JvbAb
<{^_^}> [nixpkgs] @romildo opened pull request #84292 → [WIP] xfce: add update script → https://git.io/JvbAN
kleisli has quit [Ping timeout: 265 seconds]
romildo has joined #nixos
gustavderdrache has joined #nixos
philr has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/6155a7243e1 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @aanderse opened pull request #84293 → apacheHttpd: 2.4.41 -> 2.4.43 [20.03] → https://git.io/Jvbxf
mbrgm has quit [Ping timeout: 265 seconds]
thetet has joined #nixos
mbrgm has joined #nixos
<{^_^}> [nixpkgs] @andir merged pull request #84251 → [19.09] firefox{,-bin}: 74.0 -> 74.0.1, firefox-esr: 68.6.0esr -> 68.6.1esr → https://git.io/JvboJ
<{^_^}> [nixpkgs] @andir pushed 6 commits to release-19.09: https://git.io/Jvbxk
<{^_^}> [nixpkgs] @aanderse opened pull request #84294 → apacheHttpd: 2.4.41 -> 2.4.43 → https://git.io/JvbxI
<{^_^}> [nixpkgs] @jtojnar pushed 5 commits to staging-next: https://git.io/JvbxL
thetet has quit [Client Quit]
xkapastel has joined #nixos
o1lo01ol_ has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
dycan has joined #nixos
<{^_^}> [nixpkgs] @nlewo pushed commit from @bachp to release-20.03 « nixos/nextcloud: prevent warning about missing X-Frame-Option »: https://git.io/Jvbxn
o1lo01ol1o has quit [Ping timeout: 250 seconds]
Darkmatter66 has joined #nixos
Darkmatter66_ has quit [Ping timeout: 250 seconds]
romildo has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84295 → faudio: 20.03 -> 20.04 → https://git.io/Jvbxu
Rusty1 has quit [Remote host closed the connection]
vykook has quit [Quit: ZNC - http://znc.in]
xelxebar has quit [Ping timeout: 240 seconds]
lsix1 has quit [Ping timeout: 260 seconds]
bvdw has quit [Quit: bvdw]
vykook has joined #nixos
erictapen has quit [Ping timeout: 265 seconds]
cybrian has joined #nixos