worldofpeace_ changed the topic of #nixos to: NixOS stable: 20.03 ✨ https://discourse.nixos.org/t/nixos-20-03-release/6785 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || use ,channels for a list of Nix* related channels || nixcon videos: https://tinyurl.com/nixcon2019 || Link to the output of nix-info
drdee has joined #nixos
absoluutely has quit [Ping timeout: 256 seconds]
drdee has quit [Client Quit]
justache has quit [Ping timeout: 240 seconds]
cr4y1 has quit [Ping timeout: 240 seconds]
agsdheidjd has quit [Ping timeout: 260 seconds]
shibboleth has quit [Ping timeout: 240 seconds]
thc202 has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #91273 → home-assistant: add override for pyowm → https://git.io/JfAmM
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JfxYf
aveltras has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @Mic92 closed pull request #88517 → command-not-found: rewrite in Rust → https://git.io/JfgQz
itshaydendev has joined #nixos
<{^_^}> [nixpkgs] @Mic92 closed pull request #74789 → command-not-found: drop perl dependency → https://git.io/JeMTt
<itshaydendev> Hey
kreyren has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Mic92 closed pull request #86181 → connmanui: remove → https://git.io/JfmLe
<itshaydendev> Can I get a hand with my NixOS bspwm config?
<{^_^}> [nixpkgs] @Mic92 reopened pull request #86181 → connmanui: remove → https://git.io/JfmLe
<itshaydendev> It doesn't seem to be updating when the file updates
<itshaydendev> And I don't know how to sort it out
<{^_^}> [nixpkgs] @Mic92 merged pull request #86181 → connmanui: remove → https://git.io/JfmLe
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JfxYk
kleisli has quit [Remote host closed the connection]
kleisli has joined #nixos
quinn_ has joined #nixos
<itshaydendev> Anyone?
quinn has quit [Ping timeout: 256 seconds]
itshaydendev has quit [Remote host closed the connection]
<evils> itshaydendev: you're editing a config file for bspwm and bspwm isn't charging in accordance?
<evils> s/charging/changing/
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JfxYE
Chiliparrot has joined #nixos
energizer2 has joined #nixos
energizer has quit [Read error: Connection reset by peer]
justache has joined #nixos
<{^_^}> [nixpkgs] @cdepillabout merged pull request #91315 → [haskell-updates] haskellPackages.jsaddle-warp: Fix build → https://git.io/Jfxec
<{^_^}> [nixpkgs] @cdepillabout pushed 2 commits to haskell-updates: https://git.io/JfxYH
Guest78 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
energizer2 has quit [Changing host]
energizer2 has joined #nixos
sigmundv_ has quit [Read error: Connection reset by peer]
sigmundv_ has joined #nixos
hoverbear has joined #nixos
<{^_^}> [nixpkgs] @cdepillabout merged pull request #91251 → [haskell-updates] hackagePackages.hnix: Disable completion to fix build → https://git.io/JfNrI
<{^_^}> [nixpkgs] @cdepillabout pushed 2 commits to haskell-updates: https://git.io/JfxOH
<{^_^}> [nixpkgs] @cfsmp3 opened pull request #91323 → libpromhttp: init at 0.1.1 → https://git.io/JfxO7
h0m1 has quit [Ping timeout: 244 seconds]
h0m1 has joined #nixos
<{^_^}> [nixpkgs] @eadwu opened pull request #91324 → Sourcehut/update 6 → https://git.io/Jfx3K
<{^_^}> [nixpkgs] @eadwu opened pull request #91325 → epubcheck: 4.2.2 -> 4.2.3 → https://git.io/Jfx3P
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
justache has quit [Quit: The Lounge - https://thelounge.chat]
justache has joined #nixos
markus1199 has joined #nixos
markus1189 has quit [Ping timeout: 258 seconds]
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/9c42eb70cfd (from 16 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
jkachmar has quit [Quit: Connection closed for inactivity]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f72a67f7d8a (from 15 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
sbetrium has quit [Quit: sbetrium]
rewind77 has joined #nixos
rewind77 has quit [Remote host closed the connection]
ebzzry has joined #nixos
<ebzzry> Hi! What is a good audio equalizer for NixOS?
<drakonis> better yet, what is a good audio equalizer for linux?
energizer2 has quit [Ping timeout: 260 seconds]
<ebzzry> drakonis: Yes, sir. What are the recommended ones that work on NixOS?
<{^_^}> [nixpkgs] @witchof0x20 opened pull request #91327 → Fix RPATH for libraries downloaded by rustup → https://git.io/JfxGG
markus1199 has quit [Ping timeout: 240 seconds]
markus1189 has joined #nixos
<drakonis> doesnt pulseaudio provide one?
<jtojnar> there is pulseeffects
energizer2 has joined #nixos
pbb has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
energizer2 has quit [Changing host]
energizer2 has joined #nixos
pbb has joined #nixos
<ebzzry> the equalizer controls in pulseeffects can’t be enabled :(
sigmundv_ has quit [Ping timeout: 260 seconds]
<jtojnar> works for me
<jtojnar> any warnings when running from console?
<jtojnar> (might need to kill it first)
<jtojnar> ((in case it is running in background))
<tnks> I rattled of a question earlier, but I think it didn't get answered, and I just got busy with work. Does anyone know much about how `nixos-20.03-darwin` relates to `nixos-20.03` as a channel? I can't find documentation for it like I can see for other channels.
CMCDragonkai1 has joined #nixos
<jtojnar> tnks you can click the hydra job link on https://status.nixos.org/ and then view the constituents
<jtojnar> (all of them have to be green for the channel to advance)
<tnks> jtojnar: thanks. I think that really helps.
growpotkin has quit [Ping timeout: 256 seconds]
ebzzry has quit [Read error: Connection reset by peer]
CMCDragonkai1 has quit [Remote host closed the connection]
<cole-h> And also, there needs to be no queued jobs for that evaluation (e.g. the evaluation needs to have finished, with or without build errors).
<jtojnar> yeah, http://howoldis.herokuapp.com/ still applies
<cole-h> ma27[m]: ping
<jtojnar> only the jobset is nixpkgs-20.03-darwin and the special job that needs to succeed is darwin-tested
<jtojnar> tnks^
boxscape has quit [Quit: Connection closed]
felixfoertsch23 has joined #nixos
wak-work has quit [Quit: authenticating]
felixfoertsch has quit [Ping timeout: 256 seconds]
felixfoertsch23 is now known as felixfoertsch
wak-work has joined #nixos
waleee-cl has quit [Quit: Connection closed for inactivity]
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
aw has joined #nixos
spacefrogg has joined #nixos
knerten2 has joined #nixos
lord| has quit [Read error: Connection reset by peer]
knerten1 has quit [Ping timeout: 240 seconds]
sbetrium has joined #nixos
lord| has joined #nixos
lord| has quit [Read error: Connection reset by peer]
lunaa has joined #nixos
<tnks> I'm trying to figure out how to navigate Hydra better (I get lost really easily). From status.nixos.org, I'll just use nixpkgs/trunk/unstable as an example. In this path, I see that "nixpkgs" is "project." And I see that "trunk" is a "jobset." Looking at the configuration tab for "trunk" it looks like the jobsets are configured as a specific Nix expression from a branch of a Git checkout. How then is the special
<tnks> "unstable" job configured? Otherwise, "jobs" look like packages built by the Nix expression for the jobset.
lord| has joined #nixos
luna9 has quit [Remote host closed the connection]
<gchristensen> "unstable" is defined in the Nix expression just like the other builds
<tnks> gchristensen: okay, I'm going to find that definition in Nixpkgs... or try to.
<lunaa> How does one get the hash of a fetched git repo (such as for the nixpkg protonvpn-cli-ng)?
<qyliss> ,tofu lunaa
<{^_^}> lunaa: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected. See: tofu-vim
<lunaa> Oh, so like when I try to test it with nix-review, for example?
<tnks> gchristensen: cool, I haven't paid as much attention to release.nix yet. This is helpful.
ebzzry has joined #nixos
<gchristensen> tnks: from the jobset page, look at th econfiguration tab, you'll find release.nix
ebzzry has quit [Client Quit]
hoverbear has quit [Quit: Connection closed]
<tnks> gchristensen: yeah, I just looked at the definition of "aggregate" in build-support. More coupling to Hydra than I was expecting.
lord| has quit [Read error: Connection reset by peer]
_reanimus_ has quit [Ping timeout: 244 seconds]
reanimus has joined #nixos
lord| has joined #nixos
<{^_^}> [nixpkgs] @privateseabass opened pull request #91328 → WIP: ProtonVPN-cli-ng: 2.2.2 => 2.2.4 → https://git.io/JfxcQ
<T0pH4t> so curious question, why would a nixpkgs update cause gcc to no longer work with cmake :/ https://pastebin.com/wwVjg4Yk
<T0pH4t> fails to perform the simple prog check
<T0pH4t> kind of feel like others should hit this...
Supersonic112 has joined #nixos
<tnks> Okay, so maybe rather than getting too lost in `nixos-org-configurations`, I'll make sure to read Hydra's manual. I forgot that was there, and I've never set up Hydra myself.
lunatera has joined #nixos
Supersonic has quit [Ping timeout: 260 seconds]
Supersonic112 is now known as Supersonic
lunaa has quit [Ping timeout: 240 seconds]
lunaa has joined #nixos
<energizer2> will nixos-install overwrite existing files? will it erase the contents of existing directories?
lunatera has quit [Ping timeout: 264 seconds]
<clever> energizer2: what would it overwrite?
<clever> it basically just runs nix-build in a chroot, and then updates the target /boot/
lord| has quit [Ping timeout: 260 seconds]
<energizer2> clever, i have an installation on a disk, it's not booting for some reason, so i want to reinstall it but i dont want to lose data
<clever> energizer2: nixos-install never wipes anything, it just runs nix-build in a chroot
lord| has joined #nixos
drakonis has quit [Quit: WeeChat 2.8]
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/7d1c0e70596 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<{^_^}> [nixpkgs] @peterhoeg merged pull request #89803 → kapptemplate: init at 19.12.3 → https://git.io/JfD2Y
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/JfxC8
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/48faedc336b (from 9 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
detran has quit [Ping timeout: 272 seconds]
cyphase has quit [Ping timeout: 256 seconds]
lord| has quit [Ping timeout: 246 seconds]
lord| has joined #nixos
ryantm_ has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #91329 → python27Packages.bitstruct: 8.10.0 -> 8.11.0 → https://git.io/JfxCj
CRTified has quit [Ping timeout: 258 seconds]
veleiro` has quit [Ping timeout: 260 seconds]
domogled has joined #nixos
growpotkin has joined #nixos
<pjt_mpt> while installing tor (with services.tor), I noticed that /etc/tor/torrc is not created--so programs that expect it there fail. I do have one in /nix/store/...-torrc though, which seems to reflect configuration.nix.
drakonis has joined #nixos
<pjt_mpt> Is there a 'correct' way to fix this?
<pjt_mpt> I'm tempted to just hardlink it to the store, even if temporarily
growpotkin has quit [Client Quit]
reanimus has quit [Ping timeout: 260 seconds]
<comrandroxaos[m]> <pjt_mpt "while installing tor (with servi"> programs installed using nix? if so, the "correct" way to fix would be to add the dependancy to the expression for the program in question
drakonis_ has quit [Ping timeout: 265 seconds]
reanimus has joined #nixos
<clever> pjt_mpt: read /etc/systemd/system/tor.service
<{^_^}> [nixpkgs] @r-ryantm opened pull request #91330 → python27Packages.capturer: 2.4 -> 3.0 → https://git.io/JfxWV
Orbstheorem has quit [Ping timeout: 240 seconds]
<pjt_mpt> okay yeah I see it: both execstart lines do /nix/store/...tor -f /nix/store/...torrc
<clever> and that lets nixos services work without /etc/tor/torrc
Orbstheorem has joined #nixos
<pjt_mpt> unfortunately, it looks like my client program can't accept other locations for the torrc file
<clever> pjt_mpt: why does the client program need to read torrc?
<pjt_mpt> git-annex uses tor for p2p repo syncing. I'm assuming it needs it for initial setup
cyphase has joined #nixos
simba1 has joined #nixos
<pjt_mpt> ...I'm just now realizing it'll try to write to it.
<pjt_mpt> hm
<pjt_mpt> ultimately I think I'd want to put all that in services.tor.hiddenServices
<pjt_mpt> once I figure out what ports it uses
<pjt_mpt> If hardlinking won't work, guess I'll give it an exact copy of the file in the expected place
lunaa has quit [Quit: Leaving]
<pjt_mpt> *then* write it as a submodule
<clever> pjt_mpt: you can also symlink
drakonis_ has joined #nixos
<pjt_mpt> to the torrc in the store?
<clever> yeah
detran has joined #nixos
santiweight52 has joined #nixos
<pjt_mpt> Isn't it still going to error out? I'm fairly sure the process will try to modify the version in the store. What difference does symlinking make?
drakonis has quit [Ping timeout: 260 seconds]
Rusty1 has quit [Quit: WeeChat 2.3]
Negher has quit [Quit: Leaving ...]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/7aaffa71dcb (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<pjt_mpt> I'm just gonna see how it runs with the copied file for now
simba1 has quit [Ping timeout: 272 seconds]
Negher has joined #nixos
<{^_^}> [nixpkgs] @danieldk merged pull request #91274 → topgrade: 4.7.0 -> 4.8.0 → https://git.io/JfA35
<{^_^}> [nixpkgs] @danieldk pushed 2 commits to master: https://git.io/JfxWN
<energizer2> i'm getting stuck in stage 1, i get the boot failed menu but pressing keys doesnt do anything
<pjt_mpt> none at all? ctl-alt-del, ctl-alt-f1, ctl-d, ctl-down?
OmnipotentEntity has quit [Ping timeout: 265 seconds]
<clever> energizer2: usb keyboard? did you include usb drivers in the initrd?
<clever> [root@amd-nixos:~]# nix repl '<nixpkgs/nixos>'
<clever> nix-repl> config.boot.initrd.availableKernelModules
<clever> energizer2: you may need -I nixos-config=/mnt/etc/nixos/configuration.nix to eval that against the right cfg
<clever> are things like usbhid and hid_generic present?
<pjt_mpt> oh hey my thing worked, Now I got the numbers. No idea Why it chose port 28913 though
<{^_^}> [nixpkgs] @marsam merged pull request #91012 → [20.03] chromedriver: 81.0.4044.69 -> 83.0.4103.39 → https://git.io/JfFIN
<{^_^}> [nixpkgs] @marsam pushed 2 commits to release-20.03: https://git.io/JfxlY
laduke-132 has joined #nixos
gungoman has joined #nixos
domogled has quit [Quit: domogled]
<santiweight52> Hey there, I'm using Nix to add a local dependency on a Haskell project. This is my default.nix https://pastebin.com/SF70nwXEhttps://pastebin.com/SF70nwXE
gxt has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #91331 → python27Packages.azure-mgmt-web: 0.46.0 -> 0.47.0 → https://git.io/Jfxl2
<santiweight52> And the error I'm receiving. Running nix-build in the exploitSrc directory works just fine. And the core of the application also appears to build correctly. But it seems to expect a URL for the location of the exploit-poker build. Is this due to my use of import?
<santiweight52> (I'm a big noobie at Nix)
gxt has joined #nixos
<srhb> santiweight52: I don't think this is nix specific, it sounds like the "project" function expects each "packages" attribute to be a tarball
<srhb> santiweight52: I guess that's from obelisk
<santiweight52> Ah okay - I'll go post over at reflex then
<santiweight52> (obelisk)
<santiweight52> Thank you
nate48423 has joined #nixos
<srhb> Nothing wrong with asking here. :)
cap has joined #nixos
zupo has joined #nixos
<energizer2> clever, boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "nvme" "xhci_pci" "usbhid" "sd_mod" ];
<santiweight52> I appreciate the help :)
<laduke-132> hey, i'm setting up home-manager for the first time and I can't figure out how to get it to manage bash.. The readme says like If you do not plan on having Home Manager manage your shell configuration then you must... but what do I do if I do want home manager to manage my shell config?
<nate48423> america government and denaro are getting my human brain i am nathan biernatt and i dont want the america government to get my brain pleae tell your leaders and my brain goes through things at times and i dont want the americans to make money off my brain.
dhess_ has joined #nixos
<laduke-132> oh never mind I got er
nate48423 has quit [Killed (Sigyn (Stay safe off irc))]
andi- has quit [Ping timeout: 272 seconds]
dhess has quit [Ping timeout: 272 seconds]
liff has joined #nixos
morr has quit [Ping timeout: 272 seconds]
<srhb> santiweight52: As far as I can see, a source is expected, so yeah, your import is likely wrong.
<santiweight52> Weird - the reference is being picked up
morr has joined #nixos
<santiweight52> A build is being triggered by import ../. {} that is
heijligen has joined #nixos
<srhb> santiweight52: Yes, sure, but I don't think that a package is the expected form of "packages"
<srhb> santiweight52: I'm basing this purely off the default packages being sources, not packages.
<srhb> santiweight52: (That is frontend, backend, etc.)
<srhb> I'm using the term "package" here quite loosely.
<srhb> The point is, I think you're _not_ supposed to provide the built package.
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/fd1c513acae (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<santiweight52> Ah I see what you mean
palo1 has joined #nixos
<srhb> (If that's what you want, you should use overrides instead.
<santiweight52> yeah that seems like a reasonable option
<santiweight52> The problem is that the build for ../. brings a lot of packages into scope that are required
<srhb> santiweight52: So try passing `../` instead of `import ../. {}`
<santiweight52> Right
<santiweight52> That didn't work because required params for the build of ../.
<srhb> required params?
<gungoman> this is retarded just use apt
<santiweight52> I think it's a cabal2nix specific thing
<santiweight52> But building the code didn't work because certain packages aren't in scope until after import ../. {}
<santiweight52> Perhaps I'm a little lost wrt how things are working though
<srhb> I'm not sure that makes sense. Perhaps you need to provide something reproducible :)
palo has quit [Ping timeout: 256 seconds]
palo1 is now known as palo
<santiweight52> with import ../. {};
<santiweight52> I think this is what I want
<santiweight52> I'll try break it down if I can
<santiweight52> thanks for the help
<srhb> Sure :)
spacefrogg has quit [Quit: Gone.]
wucke13 has quit [Quit: ZNC 1.7.5 - https://znc.in]
spacefrogg has joined #nixos
wucke13 has joined #nixos
andi- has joined #nixos
vk3wtf_ has joined #nixos
asheshambasta has joined #nixos
absoluutely has joined #nixos
<{^_^}> [nixpkgs] @vbgl opened pull request #91332 → coqPackages.equations: 1.2.1 → 1.2.2 → https://git.io/Jfx86
absoluutely has quit [Ping timeout: 264 seconds]
omnibs has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<fps> hmm, i'd like to get julia 1.4.2 running as well as cuda and cudnn. for julia i might be successful with a FHS environment i guess. but what about cuda and cudnn?
absoluutely has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #91333 → progress: 0.14 -> 0.15 → https://git.io/Jfx4q
absoluutely has quit [Ping timeout: 272 seconds]
<fps> ok, julia seems to run fine in the FHS env..
<{^_^}> Channel nixos-20.03 advanced to https://github.com/NixOS/nixpkgs/commit/13c15f26d44 (from 30 hours ago, history: https://channels.nix.gsc.io/nixos-20.03)
<{^_^}> [nixpkgs] @r-ryantm opened pull request #91334 → psi-plus: 1.4.1231 -> 1.4.1407 → https://git.io/Jfx4D
zupo has joined #nixos
ris has quit [Ping timeout: 272 seconds]
<{^_^}> [nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/Jfx4S
ris has joined #nixos
<{^_^}> [nixpkgs] @vbgl merged pull request #90586 → coqPackages.simple-io: 1.2.0 → 1.3.0 → https://git.io/Jf5mr
<{^_^}> [nixpkgs] @vbgl pushed to master « coqPackages.simple-io: 1.2.0 → 1.3.0 »: https://git.io/Jfx45
<ma27[m]> cole-h: pong
<cole-h> ma27[m]: Just wanted to notify you of https://github.com/NixOS/nixpkgs/pull/91298#issuecomment-647868298 (fallout from #82342, it appears)
<{^_^}> https://github.com/NixOS/nixpkgs/pull/82342 (by Ma27, 14 weeks ago, merged): rustPlatform: increase build-speed of `checkPhase` for rust-packages
<fps> oh, interesting. the new CuArrays seems to download cuda and cudnn itself. and that seems to "just work" with julia in an FHS
<fps> at least the download part :)
<cole-h> ma27[m]: About to head off to bed, but let me know if I can do anything to help.
<ma27[m]> cole-h: thanks, will take a look
<{^_^}> [nixpkgs] @r-ryantm opened pull request #91335 → python37Packages.azure-mgmt-security: 0.3.0 -> 0.4.0 → https://git.io/JfxBe
<ma27[m]> good night, I just woke up
<cole-h> Haha :D Timezones are crazy. Catch you on the flip-side :^)
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cole-h has quit [Quit: Goodbye]
<jackdk> Could someone familiar with python packaging please take a look at #90584? It has been a week
<{^_^}> https://github.com/NixOS/nixpkgs/pull/90584 (by endgame, 6 days ago, open): aws-sam-cli: 0.44.0 -> 0.52.0
ris has quit [Read error: Connection reset by peer]
DigitalKiwi has joined #nixos
ris has joined #nixos
bahamas has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #91336 → postman: 7.24.0 -> 7.26.0 → https://git.io/JfxBR
mallox has joined #nixos
ris has quit [Ping timeout: 246 seconds]
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/fb6c3a6831c (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
user_0x58 has quit [Ping timeout: 260 seconds]
jybs has joined #nixos
<jybs> Could anyone shed some light on what is going wrong with this?
<jybs> It works from a shell
ris has joined #nixos
<jybs> But for some reason falls apart like this
<jybs> It doesn't even rebuild postgres
<srhb> jybs: "like this" ?
<jybs> I'm using this with extra-container
<jybs> It's like it's completely ignoring the patch
<s1341> hi.
bbb has joined #nixos
<srhb> jybs: Aside from the broken coment it looks right to me. How are you concluding that the patch is being ignored?
bbb is now known as Guest18331
alp_ has joined #nixos
<jybs> When I run it from a nix-shell in a similar way I can see it doing the (long) rebuild process. It doesn't do that from the container
<jybs> postgresql-12.2.drv is not built
<s1341> so i'm trying to bump the version of stf to https://www.npmjs.com/package/@devicefarmer/stf. I need some help. I checkout out 24e623f3f13, which has node-v8 support, and ran pkgs/development/node-packages/generate.sh after patching node-packages-v8.json, but I can't seem to figure out how to install the updated package after that...
<s1341> any help would be appreciated.
<sephii> I'm having trouble building my first Python package. Here are my questions in order of importance: 1) I'm trying to build a Python application that has a "plugins" system (which are regular Python modules). The plugin depends on the application, so I can't build the plugin with `buildPythonPackage` and then add it to `propagatedBuildInputs` of the application because the plugin depends on the application. 2)
<sephii> What's the recommended way of creating a derivation for an application that can have multiple plugins, so the user can choose which ones they want? 3) The application uses pytest to run the tests. I tried adding `checkInputs = [ pythonPackages.pytest ];` but the check phase fails because it cannot find pytest. Any idea why?
<{^_^}> [nixpkgs] @dywedir merged pull request #89733 → aerc: unstable-2020-02-01 -> 0.4.0 → https://git.io/JfMPs
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/JfxBh
jdmarhee has joined #nixos
jdmarhee is now known as jmarhee
jmarhee has left #nixos [#nixos]
<jybs> And then if I change the patchfile I don't even get a rebuild
jmarhee has joined #nixos
<srhb> s1341: Are you asking how to build it from a local checkout?
<s1341> srhb: yes... because I can't see a way to upstream the change, as tehre is no longer a nodePackages_8_x in upstream...
<s1341> and stf requires nodejs 8
ris has quit [Remote host closed the connection]
<srhb> s1341: Ah yes. Then I guess you're better off with an older nixpkgs that hasn't dropped node8 support yet. I find it doubtful that it will be reintroduced. Either that or build it out of tree using one of the standalone node2nix tools.
ris has joined #nixos
<s1341> srhb: so what i've done is pulled the old tree, patched the node-packages-v8.json and reran generate... the question is how to now go about installing from that patched tree?
<srhb> s1341: nix-build path-to-checkout -A nodePackages.attribute? Assuming nodePackages corresponds to the node8 package set in your checkout
<s1341> there is no default.nix in the
<s1341> pkgs/development/node-packages/ folder
<srhb> s1341: There is in the top level folder of nixpkgs though
<s1341> just default-v8.nix and default-v10.nix
<s1341> ok. i need to look for that.
<s1341> srhb is there any way to enable autocomplete for the current tree?
kleisli has quit [Remote host closed the connection]
kleisli has joined #nixos
<s1341> ok. now it appears to be building...
<s1341> srhb: will that nix-build command INSTALL it? or just build it?
<srhb> s1341: Just build it
<s1341> so how do i install?
<srhb> s1341: You can nix-env -i the result
santiweight52 has quit [Remote host closed the connection]
fpob has joined #nixos
<srhb> s1341: (Or if you want to do it declaratively, you'll import your customNixpkgsChcekout in your configuration.nix and add nodePackages.yourPackage to environment.systemPackages.
fpob has left #nixos ["Leaving."]
civodul has joined #nixos
fpob has joined #nixos
fpob has left #nixos ["Leaving."]
<s1341> srhb: how would I declaratively patch node-pakcages.json?
cfricke has joined #nixos
cr4y1 has joined #nixos
<srhb> s1341: Is that the only modification in your tree?
<srhb> s1341: If so, you can probably get away with just replacing the file with a checked-in copy.
quinn_ has quit [Quit: ZNC 1.7.5 - https://znc.in]
domogled has joined #nixos
<s1341> srhb: oh. and use an actual checkout instead of a nixpkgs tarball?
<srhb> s1341: You can use the tarball if you like and use runCommand or the like to patch the source
<s1341> hrm. ok. i'll think about that.
lsix has joined #nixos
<s1341> srhb: in the build, i'm getting /bin/sh: yasm: command not found
<s1341> i installed yasm and re-ran, but it still fails.
<srhb> s1341: "installs" doesn't help, the build is isolated from your system
<srhb> s1341: It needs to be a dependency of your package
<srhb> s1341: Otherwise it never gets into the build sandbox.
<s1341> hrm. ok.
<s1341> let me try to add it.
o1lo01ol1o has joined #nixos
<{^_^}> Channel nixpkgs-20.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/7d1c0e70596 (from 9 hours ago, history: https://channels.nix.gsc.io/nixpkgs-20.03-darwin)
karantan has joined #nixos
noudle has joined #nixos
dermetfan has joined #nixos
NeoCron has joined #nixos
<s1341> srhb: how do i patch the following:
<s1341> so that it applies to nodePackages.@devicefarmer/stf ?
<srhb> s1341: Without knowing the node ecosystem I assume you'll want overrideAttrs, not override
<karantan> I have this default.nix config: https://pastebin.com/YF5B5qdt. Build works but if I want to run this program as systemd service it doesn't have access to packages like `tree`, `wget`, etc (listed in `nativeBuildInputs `). How do I tell nixos that these packages (`nativeBuildInputs`) are required when it runs this program?
o1lo01ol1o has quit [Ping timeout: 240 seconds]
<srhb> s1341: The general pattern will be foo.overrideAttrs (oldAttributes: { nativeBuildInputs = oldAttributes.nativeBuildInputs ++ [ newstuff ]; })
<s1341> no. my problem is that i cannot specify nodePackages.@devicefarmer/stf.override... taht is bad syntax
<s1341> how do i put in the '@devicefarmer/' so that it does what I want?
<srhb> Oh, the package actually contains an "@"? I assume you'll want nodePackages."@foo" then
<bahamas> hello. I have the following nix file: https://bpa.st/PH6Q. I'm trying to build it with a remote builder found inside a Docker container. when I run `nix build -f server.nix`, I get "assertion failed at /nix/store/apnn10fiqg0gz1xf87vg0qnm6gk6sd7c-nixos-20.03/pkgs/os-specific/linux/kernel/generic.nix:56:1"
<s1341> thanks @srhb!
<bahamas> the command `nix ping-store --store ssh://nix-docker` succeeds
<bahamas> in ~/.nix/remote-systems.conf I have `nix-docker x86_64-linux /etc/nix/docker_rsa 4
<bahamas> so it looks like nix is not using the remote builder. can anyone tell why?
<symphorien> bahamas: the assertion is while evaluating
<symphorien> Even before remote builder can be used
<bahamas> symphorien: ok, so what do I need to change?
<symphorien> No idea. Your nix file probably
<bahamas> I would have assumed that all operations needed for a certain architecture would be performed on that architecture
<{^_^}> [nixos-weekly] @domenkozar merged pull request #124 → add status blog post → https://git.io/JfxIt
<{^_^}> [nixos-weekly] @domenkozar pushed 4 commits to master: https://git.io/Jfx0i
__monty__ has joined #nixos
FRidh has joined #nixos
alp_ has quit [Ping timeout: 272 seconds]
alp_ has joined #nixos
domogled has quit [Quit: domogled]
zupo has joined #nixos
bahamas has quit [Ping timeout: 246 seconds]
<regnat> bahamas: if you're building for another system than your local one you need to set it explicitely
smatting_ has joined #nixos
fpob has joined #nixos
<regnat> (But I don't remember how to do that tbh)
Guest18331 has quit [Quit: WeeChat 2.7.1]
bbb has joined #nixos
bbb is now known as Guest91668
<{^_^}> [nixops] @adisbladis merged pull request #1371 → {default,shell}.nix: don't use builtins.fetchGit → https://git.io/JfH9A
<{^_^}> [nixops] @adisbladis pushed 3 commits to master: https://git.io/JfxEX
<regnat> bahamas: Mh seems to be https://nixos.org/nixos/options.html#nixpkgs.localSystem
<{^_^}> [nixpkgs] @danieldk merged pull request #84730 → mlkit: init at 4.5.0 → https://git.io/Jvxrg
<{^_^}> [nixpkgs] @danieldk pushed 2 commits to master: https://git.io/JfxEy
sb0 has joined #nixos
<sb0> how do I set boot.shell_on_fail=1 on a system that won't boot and therefore where I cannot run nixos-rebuild?
<srhb> sb0: Edit the bootloader kernel command line, usually using 'e'
<sb0> I tried simply editing the kernel command line in systemd-bootloader to add "boot.shell_on_fail=1" but that did not work
<srhb> sb0: Is =1 really correct?
<sb0> is the syntax different there?
<srhb> sb0: Used boot.shell_on_fail just yesterday, and that worked.
<srhb> Not sure if =1 should be equivalent
<sb0> without the =1 ?
Thra11 has quit [Ping timeout: 240 seconds]
<srhb> Yes.
<sb0> it worked thanks
<srhb> Great :)
mac10688 has joined #nixos
Thra11 has joined #nixos
bahamas has joined #nixos
<kraem[m]> Has anyone noticed that natural scrolling in xorg.conf isn't respected when having updated nixos-unstable (which introduced linux 5.7.4)?
Guest91668 has quit [Quit: WeeChat 2.7.1]
bbb has joined #nixos
bbb is now known as Guest9016
asymptotically has joined #nixos
kenji has joined #nixos
thc202 has joined #nixos
alp_ has quit [Ping timeout: 272 seconds]
sigmundv_ has joined #nixos
bahamas has quit [Read error: Connection timed out]
bahamas has joined #nixos
pingiun has joined #nixos
<karantan> how do I export additional env. vars to systemd service? I want to add things to PATH but if I do this: "Environment = "PATH=${pkgs.tree}/bin:${pkgs.openssl}/bin:$PATH";" I just overwrite the old PATH
<makefu> karantan: you could create a small wrapper around the executable or update the derivation of your executable
<{^_^}> [nixpkgs] @Mic92 opened pull request #91340 → home-assistant: add hexa as maintainers → https://git.io/Jfxzv
<srhb> karantan: https://nixos.org/nixos/options.html#systemd.services.%3Cname%3E.path
<karantan> YES THIS! thank you!
<karantan> I have no idea how did I missed this.
<bahamas> for the nixos nginx service module I can't find a parameter to configure the access log. does it exist?
<srhb> bahamas: No.
<bahamas> srhb: so I assume I should use appendConfig to set it
<srhb> bahamas: or in the vhost extraConfig, I think
pingiun has quit [Quit: Textual IRC Client: www.textualapp.com]
<srhb> Either way -- via some extra in the right location :)
<bahamas> srhb: I have several vhosts
<srhb> bahamas: If you can set it globally I' sure that's nicer. If not, at least you have a programming language to template the thing into each vhost ^^
est31 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @magnetophon opened pull request #91341 → bschaffl: init at 0.1 → https://git.io/Jfxzz
<{^_^}> [nixpkgs] @danieldk opened pull request #91342 → python3Packages.tokenizers: init at 0.7.0 → https://git.io/Jfxzw
est31 has joined #nixos
ris has quit [Ping timeout: 246 seconds]
ris has joined #nixos
Thra11 has quit [Ping timeout: 240 seconds]
sebass[m] has joined #nixos
<bahamas> srhb: I set in `services.nginx` errorLog="syslog:info", but in the generated nginx.conf I only get "error_log syslog;" do you have any idea why?
<srhb> bahamas: I think you left out part of the option name there?
<bahamas> also, the stuff I put in services.nginx.appendConfig doesn't appear at all
nikita` has joined #nixos
<bahamas> which part?
<srhb> I remember there's some funky shenanigans with priorities of these options, but I don't recall appendConfig being ignored
<bahamas> this is the file, https://bpa.st/KMQQ
<srhb> bahamas: "I set in `services.nginx` errorlog" ...
<bahamas> I mean the relevant part. yes, I meant "logError"
<srhb> Ah
orivej has joined #nixos
alp_ has joined #nixos
fendor has joined #nixos
<srhb> No, that sounds weird. Almost like none of your changes are being picked up.
KarlJoad has joined #nixos
magnetophon has quit [Read error: Connection reset by peer]
lord| has quit [Ping timeout: 256 seconds]
_ris has joined #nixos
Thra11 has joined #nixos
pjt_mpt has quit [Ping timeout: 240 seconds]
<bahamas> I think I'm messing something up on the deployment
Chiliparrot has joined #nixos
ris has quit [Ping timeout: 256 seconds]
lord| has joined #nixos
drdee has joined #nixos
o1lo01ol1o has joined #nixos
la-s has left #nixos ["User left"]
<elvishjerricco> Anyone know why plymouth doesn't work with `(import <nixpkgs/nixos> { ... }).vm`?
o1lo01ol1o has quit [Ping timeout: 240 seconds]
c4rc4s_ has joined #nixos
travelion7875 has joined #nixos
barm0 has joined #nixos
benny_ has joined #nixos
packer_ has joined #nixos
amanjeev- has joined #nixos
travelion787 has quit [Quit: Ping timeout (120 seconds)]
travelion7875 is now known as travelion787
travelion787 has quit [K-Lined]
packer_ is now known as packer
adisbladis has quit [Remote host closed the connection]
amanjeev has quit [Quit: Logging off! Bbye!]
dustinm has quit [Quit: Leaving]
adisbladi has joined #nixos
dustinm- has joined #nixos
reanimus has quit [Ping timeout: 260 seconds]
c4rc4s_ is now known as c4rc4s
johnnyfive has joined #nixos
reanimus has joined #nixos
thomasjm has quit [Ping timeout: 260 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
karantan has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
<{^_^}> [nixpkgs] @madjar opened pull request #91343 → just: remove dash dependency → https://git.io/Jfx25
meh` has joined #nixos
<bahamas> seems I can't use appendConfig to set access_log, because it adds it after the http block and nginx doesn't allow it
<bahamas> I wonder why the nixos service config for nginx doesn't have an option for access_log. it's one of the most basic things
<{^_^}> [nixpkgs] @rnhmjoj merged pull request #91261 → nixos/doc: add section on Intel DDX drivers → https://git.io/JfNMA
<{^_^}> [nixpkgs] @rnhmjoj pushed 2 commits to master: https://git.io/Jfxa4
_ris has quit [Read error: Connection reset by peer]
ris has joined #nixos
orivej_ has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
fps has joined #nixos
o1lo01ol1o has joined #nixos
Neo-- has quit [Ping timeout: 258 seconds]
<kiwiirc> srsly?
<patagonicus> bahamas: I think services.nginx.commonHttpConfig can be used for that.
<patagonicus> bahamas: Or just *.appendHttpConfig
orivej_ has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
ckauhaus has joined #nixos
<bahamas> patagonicus: yes, I used appendHttpConfig
<bahamas> btw, I'm trying to install lsof on nixos. I get multiple "couldn't resolve host name" the last being "unable to download 'https://ftpmirror.gnu.org/glibc/glibc-2.30.tar.xz': Couldn't resolve host name". then the build fails
<bahamas> do I need to open a port or anything?
m0rphism has joined #nixos
cr4y1 has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @gebner merged pull request #91290 → freecad: use python 3.7 → https://git.io/JfAyD
<{^_^}> [nixpkgs] @gebner pushed 2 commits to master: https://git.io/JfxVi
bqv has joined #nixos
bkv has quit [Ping timeout: 260 seconds]
WIIIHEIIM has joined #nixos
<elvishjerricco> Well it works if I set `useBootLoader = true`
teto has quit [Ping timeout: 260 seconds]
<elvishjerricco> But I'm trying to use `systemd-ask-password-plymouth.service` (which has to be manually enabled), and it's not creating `/run/plymouth/pid`
o1lo01ol1o has quit [Remote host closed the connection]
energizer2 has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 265 seconds]
orivej_ has joined #nixos
<{^_^}> [nixpkgs] @rnhmjoj merged pull request #91224 → terminus-font: make build reproducible by using `gzip -n` → https://git.io/JfNCW
<{^_^}> [nixpkgs] @rnhmjoj pushed 2 commits to master: https://git.io/JfxVj
WIIIHEIIM has quit [Remote host closed the connection]
_ris has joined #nixos
ris has quit [Ping timeout: 265 seconds]
agsdheidjd has joined #nixos
kreyren has joined #nixos
<{^_^}> [nixpkgs] @aszlig pushed commit from @wamserma to master « tests/taskserver: fix gnutls invocation »: https://git.io/Jfxwz
<{^_^}> [nixpkgs] @aszlig closed pull request #90718 → tests/taskserver: fix gnutls invocation → https://git.io/JfdAC
gungoman has quit [Ping timeout: 260 seconds]
mananamenos has joined #nixos
_ris has quit [Ping timeout: 272 seconds]
teto has joined #nixos
Arahael has joined #nixos
<mudri> I'm trying to free up some space on my hard disk, and I want to know whether these statistics sound at all unusual. I'm using NixOS with a moderately light setup, and using several Haskell programs. I recently did `nix-collect-garbage --delete-older-than 14d` and set `nix.autoOptimiseStore = true;`. Most of the statistics come from `ncdu`:
<mudri> - /nix/store/.links reports 318.3 GiB of disk usage, and contains over 5 million items.
<mudri> - /nix/store uses 337.7 GiB of disk space. It contains over 25 million items.
<mudri> - /nix/store contains over 100 copies of GHC, at 12 different versions. Oldest is 7.10.3. Each has a size over 1 GiB.
<mudri> - `time ls /nix/store >/dev/null` reports `1.66s user 1.86s system 3% cpu 1:44.77 total` (my guess is that this slows down `nix-build`, `nix-shell`, &c).
vika_nezrimaya has joined #nixos
Izorkin has quit [Quit: ZNC 1.8.0 - https://znc.in]
_ris has joined #nixos
Izorkin has joined #nixos
knupfer has joined #nixos
Izorkin has quit [Client Quit]
agsdheidjd has quit [Ping timeout: 244 seconds]
Izorkin has joined #nixos
<vika_nezrimaya> Let's say I have a Nix cross-compiled for a new architecture. I've seen references to a "native stage" in Nixpkgs code. Does this mean that having only a Nix (cross-compiled) and a toolchain installed on a native device this device can build a native stdenv and nix for itself?
agsdheidjd has joined #nixos
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
<betaboon> can i allow unsupportedplatforms for specific packages ?
orivej has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<vika_nezrimaya> in ~/.config/nixpkgs/config.nix: { allowUnsupportedSystem = true; } or NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1 as an environment variable.
<fps> mudri: maybe there's a way to calculate the space of the closure of one of your profile generations
<vika_nezrimaya> betaboon: I don't see a predicate for this in nixpkgs' config.nix but the abovementioned ways might help you
<betaboon> vika_nezrimaya: i dont want to do that systemwide, but for a specific package
<betaboon> vika_nezrimaya: thanks anyway :D
<vika_nezrimaya> A hacky way would be reevaluating nixpkgs with config modified
<vika_nezrimaya> but this will be costly
<{^_^}> [nix] @edolstra merged pull request #3724 → Hintfmt percent test, and fix → https://git.io/JfblC
<{^_^}> [nix] @edolstra pushed 9 commits to master: https://git.io/Jfxri
<fps> mudri: did you try nix optimise-stre?
<{^_^}> [nixpkgs] @edolstra pushed to release-20.03 « Update nixUnstable and nixFlakes »: https://git.io/JfxrP
Neo-- has joined #nixos
<mudri> fps: I haven't done it for a while, but my impression was that `nix.autoOptimiseStore = true;` made that happen automatically for each build. I think last time I tried `nix-store --optimise`, it churned away for ages and then said that no more space had been saved (because everything was already linked).
<fps> mudri: oh ok.
<{^_^}> [nixpkgs] @ElvishJerricco opened pull request #91344 → ZFS: Ask for stage 2 encryption passwords using systemd-ask-password → https://git.io/JfxrN
<kiwiirc> if you can declaratively document your entire system in a config lang and with that file automatically set up a fresh system, why would anyone want to do it through commands (imperative)?
<kiwiirc> i guess maybe if you use something else for the same purpose already like if you used ansible for auto cm?
<vika_nezrimaya> My opinion is: people use Ansible because people use Ansible. Others use Nix because it's useful and cool
<vika_nezrimaya> I don't know why Ansible has become so popular, and why Nix hasn't taken its place as the most popular tool
<dminuoso> vika_nezrimaya: With Ansible it's quite obvious "what happens" and you can add crutches easily, because thats the imperative mind model.
<vika_nezrimaya> but Nix is even more than Ansible.. It's a build system, a CI environment, a whole operating system builder, even a static site generator
<dminuoso> Also, Ansible can easily be used ontop of existing systems, instead of building up something well principled from the beginning.
<dminuoso> It's pretty much the same rationale why imperative languages are so popular and declarative ones are not.
<kiwiirc> i think nixos needs better marketing. like showing ppl setting up a whole system with 1 simple file vs going and typing and clicking all this stuff. and maybe a gui configurator for nix config files would make it more accessible to noobs?
<fps> mudri: you might try following the links of your current profile until you find the store path of it and then use nix-copy-closure or nix-store --export to find out its closure size
<dminuoso> Also, nix has some severe disabilities.
<dminuoso> It has quite poor documentation left and right.
<fps> mudri: if it's 300G in size then there's nothgin you can do. if it's much smaller you might try throwing away generations ;)
<dminuoso> It suffers from lack of discoverability of things, and you usually have to just "read the source, and more transitive sources" to understand whats going on in some non-trivial code
<vika_nezrimaya> how can a signle NixOS generation could be 300G
<vika_nezrimaya> that's not scientifically possible
<kiwiirc> i read a comment that discoverability of what you can put in configs is a problem. like there's no comprehensive index of keys and values or smth
<{^_^}> [nixpkgs] @raboof opened pull request #91345 → k4dirstat: init at 3.2.1 → https://git.io/JfxoO
<vika_nezrimaya> kiwiirc: we have `man configuration.nix`
<{^_^}> [nixpkgs] @pblkt opened pull request #91346 → cue: 0.2.0 -> 0.2.1 → https://git.io/Jfxos
<{^_^}> Channel nixos-19.09 advanced to https://github.com/NixOS/nixpkgs/commit/289466dd6a1 (from 5 days ago, history: https://channels.nix.gsc.io/nixos-19.09)
<vika_nezrimaya> it's very useful to me when I want to look something up or check if a service has a NixOS config module
<kiwiirc> read what dminuoso just said. said discoverability at same time i did
<mudri> fps: Okay, that sounds like a good course of action. I was hoping to avoid needing to copy stuff, but I do at least have another hard disk to use for that.
<kiwiirc> might be a good place to add some web tool or smth
<fps> mudri: i'm guessing a little bit here though..
<dminuoso> kiwiirc: No the problems are more fundamental than that. When I want to write some nix code, what primitives are available?
<fps> possibly there's a smarter way to find out the closure siz
<dminuoso> Where's the documentation on the lib functions?
<dminuoso> How can I figure out what nix primitives are available?
<kiwiirc> ya that's what i was thinking
<dminuoso> Or nixos primitives
<kiwiirc> what's the best way to solve that?
<kiwiirc> cuz i agree. nix concept is powerful and simple, but it requires knowing what to do so you can do that powerful and simple thing, and that's like a logic error
<kiwiirc> needs an easier onramp
<kiwiirc> or portal
<mudri> Oof, I did `nix-store -q --roots /nix/store/535yvd58cyiv9sba2v3vykrg80kbi089-ghc-7.10.3`, and the output was:
<mudri> /nix/var/nix/profiles/system-1-link -> /nix/store/r18s2bgz3248yyk3kp6y3i1mp3hz31yw-nixos-15.09.1262.3727911
<mudri> /nix/var/nix/profiles/system-2-link -> /nix/store/sl9xs0f0j1478mwh1alsx5k1j1acbykm-nixos-15.09.1262.3727911
<mudri> No clue why these haven't been garbage-collected...
rk04[m] has joined #nixos
<vika_nezrimaya> dminuoso: I think the Nixpkgs manual has been improving a bit under the hood though. I recently peeked at the latest Hydra build of the manual and it was a lot bigger than before.
<fps> mudri: i just did: nix-store --export $(nix-store -qR /nix/store/ahw7z4szvcjh29m5vjgz8vya3i0dnabv-user-environment) > environment-export
<vika_nezrimaya> mudri: nix-store --gc --print-roots
<fps> mudri: oh you got old system gens lying around?
<vika_nezrimaya> will show you all roots for garbage collection
<fps> if there's a cli tool that doesn't copy but just counts bytes, then that would be a way to calc the closure size
<fps> wc -c
<kiwiirc> is there a package browser that for each package will show you its config file keys/values and what they do in nicely formatted docs?
<fps> 'nix-store --export $(nix-store -qR /nix/store/ahw7z4szvcjh29m5vjgz8vya3i0dnabv-user-environment) | wc -c' gives me: 2763358104, which sounds about right
<mudri> Ah, nice, I'll have a look at that too.
<mudri> Where did you find the path for user-environment?
<Arahael> I wonder what nix is like in the latest macos.
<fps> mudri: ls -ld ~/.nix-profile
<fps> mudri: and then followw the symlinks ;)
<mudri> 👍
<{^_^}> [nixpkgs] @rnhmjoj merged pull request #91343 → just: remove dash dependency → https://git.io/Jfx25
<{^_^}> [nixpkgs] @rnhmjoj pushed 2 commits to master: https://git.io/Jfxox
<fps> mudri: oh, simpler:
<fps> nix-store --export $(nix-store -qR $(readlink -f ~/.nix-profile)) | wc -c
<mudri> Got that running. Meanwhile, `nix-store --gc --print-roots` prints out hundreds of lines, so there must be something up with that.
<symphorien> mudri: live processes are roots
alp_ is now known as alp
<symphorien> mudri: also, maybe try nix-du
<vika_nezrimaya> nix path-info --help
<vika_nezrimaya> nix path-info can also give you closure-sizes
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #nixos
<fps> vika_nezrimaya: thanks. wasn't aware :)
orivej has quit [Quit: No Ping reply in 180 seconds.]
<{^_^}> [nixpkgs] @bouk opened pull request #91347 → go: Always set {CC,CXX}_FOR_TARGET → https://git.io/JfxKu
<mudri> I'm just getting a paste together, but I'm worried about all the system generations that seem to be showing up near the start...
<{^_^}> [nixpkgs] @bouk closed pull request #90592 → go: add CoreFoundation and Security frameworks for cgo on darwin → https://git.io/Jf5nI
OmnipotentEntity has joined #nixos
OmnipotentEntity has joined #nixos
<symphorien> mudri: do you know that nix-collect-garbage --delete-older-than must be run as root ?
orivej has joined #nixos
<symphorien> Otherwise it only deletes user profiles
<mudri> Ah, that might have been my problem. 😲
<{^_^}> [nixpkgs] @samdroid-apps opened pull request #91348 → pulsar: init at 2.6.0 → https://git.io/JfxKH
<mudri> Oof, yeah, looks about right. It looks like I've never run it as root, so even the oldest system generation is still there (and now about to be deleted).
<mudri> Thanks everyone!
bahamas has quit [Ping timeout: 260 seconds]
barm0 is now known as barm
<{^_^}> [nixos-homepage] @garbas pushed 8 commits to master: https://git.io/Jfx6I
<{^_^}> [nixos-homepage] @garbas merged pull request #487 → Implement local link checking as part of build → https://git.io/JfAiw
<{^_^}> [nixos-homepage] @garbas pushed 0 commits to link-checking: https://git.io/Jfx6L
noudle has quit []
adisbladi is now known as adisbladis
_ris has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @sternenseemann opened pull request #91350 → ocamlPackages.{ipaddr,macaddr}: 3.1.0 → 5.0.0 and update all affected packages (tuntap, conduit, cohttp, …) → https://git.io/Jfx6p
snajpa has joined #nixos
_ris has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
o1lo01ol1o has joined #nixos
orivej has joined #nixos
cr4y1 has joined #nixos
ris has joined #nixos
_ris has quit [Ping timeout: 265 seconds]
omneh has joined #nixos
omneh has joined #nixos
omneh has quit [Changing host]
orivej_ has joined #nixos
OmnipotentEntity has quit [Read error: Connection reset by peer]
_ris has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
ris has quit [Ping timeout: 264 seconds]
morr has quit [Ping timeout: 260 seconds]
_ris has quit [Ping timeout: 260 seconds]
meh` has quit [Ping timeout: 240 seconds]
erik-4levels has joined #nixos
_ris has joined #nixos
<erik-4levels> Hi all, just a general quick question: is there a nix function to generate an md5 hash from an arbitrary string that can be used in .nix configuration files?
<erik-4levels> I'm hoping for something like lib.md5sum or builtins.md5 or something similar.
Guest9016 has quit [Quit: WeeChat 2.7.1]
<srhb> erik-4levels: builtins.hashString "md5"
<erik-4levels> The reason being is that vagrant in combination with libvirt uses md5 hashes for it's shared folder feature via a p9 mount..
<erik-4levels> Oh, great!
<erik-4levels> Thanks a million!
<srhb> Note that it's the nix base16 representation.
<srhb> .. I think?
<srhb> So merely being "md5" might not be enough for you
<erik-4levels> let's see if this does what it's supposed to ;-)
<srhb> I think there's an issue on providing the --to-somebase functions as nix builtins, but iirc it's not there yet.
morr has joined #nixos
<erik-4levels> Ah, so it's hashString "md5" "value-to-hash"
<srhb> Yes.
<erik-4levels> And is there a way to access the current directory's path in a nix expression? I know this is hacky..
<srhb> erik-4levels: Not the way you mean, I think.
bbb has joined #nixos
drdee has quit [Ping timeout: 260 seconds]
<erik-4levels> You're right, I shouldn't be doing that anyway ;-)
bbb is now known as Guest9998
<srhb> Pretty sure that's the spirit :P
<erik-4levels> And access to ENV vars is neither possible, right?
<srhb> Not if you want deterministic builds.
<srhb> (there's builtins.getEnv -- but the cost of using it is probably much too high)
<erik-4levels> It's just for convenience, to avoid my colleagues to have to adjust a nix expression up front
sb0 has quit [Quit: Leaving]
<srhb> erik-4levels: Why not pass arguments instead?
<erik-4levels> I need the current working directory when invoked from a vagrant up (using libvirt)
<srhb> Ah.
<erik-4levels> It's quite a challenge actually, since there's little control over vagrant..
<erik-4levels> (I hate vagrant, prefer scripted virsh much more, but that's what the team went for)
<srhb> erik-4levels: Sorry, I don't know enough about vagrant to come up with sensible suggestions, I think.
<vika_nezrimaya> is vagrant kinda like "Docker for VMs"?
orivej has joined #nixos
<erik-4levels> It's supposed to help setup a VM without going through the various provider interfaces
orivej_ has quit [Ping timeout: 260 seconds]
<snajpa> repeated question: Realtek 8822BE PCI wireless network adapter at /nix/store/g96fjafw73gdsh3lvm6bz9q1jsxikvbq-generate-config.pl line 81.
<snajpa> sadface
<erik-4levels> So you can focus on how the VM is supposed to work and not on how to setup a VM with virtualbox, vmware, virsh, ..
<patagonicus> I've only looked at it briefly a few years ago, but I'd describe it as a sort of ansible, but targeted directly at VMs, i.e. it'll set up your VM and the system running in the VM.
boxscape has joined #nixos
<erik-4levels> But they only support the regular providers (VirtualBox, VMWare, ..) and especially libvirt is missing
<snajpa> anyone other than me in here who's got beef with generate-config.pl? :D that thing doesn't like my (maybe it doesn't like Linux 5.8-rc2 more)
<patagonicus> But the use cases are similar to docker, mostly getting somewhat reproducible environments for dev work or running production.
<vika_nezrimaya> so Docker for VMs
<erik-4levels> We're using it to setup our local dev environment
<vika_nezrimaya> I think NixOS can do it to, but without Vagrant
<erik-4levels> I'm sure nixos does it, I've been doing it in the past with nixops and that has worked great!
<erik-4levels> Reproducible builds every time, never failed on me
<boxscape> what's the canonical way of running "nix build" on a default.nix file that lists dependencies as arguments (not all of which are directly under nixpkgs but might be under, e.g., xorg)?
<vika_nezrimaya> nixos-rebuild build-vm builds a VM from a config, and nixos-shell (forgot the author) even automatically dumps you into the shell in this VM
<boxscape> s/arguments/parameters I guess
<erik-4levels> At one point I was managing +15 servers with nixops, till the point that building the list of derivations would trash the nixops machine
<erik-4levels> so I could only deploy in batches
<vika_nezrimaya> boxscape: I'd use something like `nix build -E "with import <nixpkgs>; callPackage ./default.nix { inherit (xorg) xlib; };"`
<erik-4levels> But still, very big fan
<boxscape> vika_nezrimaya cool, thanks
Chiliparrot has joined #nixos
<vika_nezrimaya> that's how Nixpkgs does it in all-packages.nix
<boxscape> I see
<{^_^}> [hydra] @edolstra pushed 2 commits to master: https://git.io/JfxXL
Guest78 has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
<{^_^}> [nixpkgs] @talyz merged pull request #91130 → nomachine-client: 6.10.12 -> 6.11.2 → https://git.io/Jfbll
<{^_^}> [nixpkgs] @talyz pushed 2 commits to master: https://git.io/JfxXZ
<qyliss> ,callPackage boxscape
<{^_^}> boxscape: If you're updating a package file in nixpkgs that starts with something like `{ stdenv, cmake }:`, use `nix-build -A the-package-attribute` in the nixpkgs root with the corresponding package attribute to build it. The mapping from package attributes to package files is in pkgs/top-level/all-packages.nix
<qyliss> Ugh, I always think that message is more helpful than it is
<qyliss> Never mind
Guest78 has quit [Ping timeout: 260 seconds]
ris has joined #nixos
_ris has quit [Ping timeout: 272 seconds]
<gchristensen> could it be updated?
<qyliss> Maybe!
<gchristensen> what should it say?
<qyliss> ,callPackage = If you're updating a package file in nixpkgs that starts with something like `{ stdenv, cmake }:`, use `nix-build -A the-package-attribute` in the nixpkgs root with the corresponding package attribute to build it. If it's not in nixpkgs, try `nix-build -E 'with import <nixpkgs> {}; callPackage ./file.nix { }'. The mapping from package attributes to package files is in
<{^_^}> callpackage redefined, was defined as If you're updating a package file in nixpkgs that starts with something like `{ stdenv, cmake }:`, use `nix-build -A the-package-attribute` in the nixpkgs root with the corresponding package attribute to build it. The mapping from package attributes to package files is in pkgs/top-level/all-packages.nix
<{^_^}> [nixpkgs] @marsam merged pull request #90664 → pgbouncer: 1.13.0 -> 1.14.0 → https://git.io/JfdIC
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfxXr
<qyliss> pkgs/top-level/all-packages.nix.
<qyliss> Hmm, that's too long I guess
<qyliss> ,callPackage
<{^_^}> If you're updating a package file in nixpkgs that starts with something like `{ stdenv, cmake }:`, use `nix-build -A the-package-attribute` in the nixpkgs root with the corresponding package attribute to build it. If it's not in nixpkgs, try `nix-build -E 'with import <nixpkgs> {}; callPackage ./file.nix { }'. The mapping from package attributes to package files is in
<{^_^}> [nixpkgs] @marsam merged pull request #91325 → epubcheck: 4.2.2 -> 4.2.3 → https://git.io/Jfx3P
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfxXX
<jared-w> Need a bit of help with my current nerdsnipe of the day. Trying to figure out how to a) run a zsh function (designed to be ran in an interactive shell with my zshrc) inside a oneshot systemd service, b) how tf do I run gsettings inside a systemd oneshot service so that it actually works. wrapGAppsHook is close, but not quite.
<qyliss> ,callPackage = If you're updating a file in nixpkgs that starts with something like `{ stdenv, cmake }:`, use `nix-build -A` in the nixpkgs root with the corresponding package attribute to build it. If it's not in nixpkgs, try `nix-build -E 'with import <nixpkgs> {}; callPackage ./file.nix { }'. The mapping from package attributes to package files is in pkgs/top-level/all-packages.nix.
orivej_ has joined #nixos
<{^_^}> callpackage redefined, was defined as If you're updating a package file in nixpkgs that starts with something like `{ stdenv, cmake }:`, use `nix-build -A the-package-attribute` in the nixpkgs root with the corresponding package attribute to build it. If it's not in nixpkgs, try `nix-build -E 'with import <nixpkgs> {}; callPackage ./file.nix { }'. The mapping from package attributes to package files is in
<qyliss> ,callPackage
<{^_^}> If you're updating a file in nixpkgs that starts with something like `{ stdenv, cmake }:`, use `nix-build -A` in the nixpkgs root with the corresponding package attribute to build it. If it's not in nixpkgs, try `nix-build -E 'with import <nixpkgs> {}; callPackage ./file.nix { }'. The mapping from package attributes to package files is in pkgs/top-level/all-packages.nix.
<qyliss> That's better :)
<qyliss> Thanks for the encouragement gchristensen
<gchristensen> thank you for shaving down this sharp edge :)
orivej has quit [Read error: Connection reset by peer]
<jared-w> bikeshed incoming: make a `nix callPackage` subcommand that is just `nix-build -E ...` but less painful
<gchristensen> `nix` doesn't know about `callPackage`
<jared-w> yeah, I'm not saying it's a great idea, I'm just saying it's a common annoyance I run into when debugging stuff and wanting to have nice { a, b, c } files but also not have to remember the `with import; callPackage` wrapper ceremony
<qyliss> You could write a nix-call-package script
<jared-w> honestly, I should just do that
<{^_^}> [patchelf] @domenkozar pushed to aarch64 « CI for aarch64 »: https://git.io/JfxXA
<{^_^}> [nixpkgs] @marsam merged pull request #91320 → nginx-sso: 0.24.1 -> 0.25.0 → https://git.io/JfxTq
<{^_^}> [nixpkgs] @marsam pushed 3 commits to master: https://git.io/JfxXp
<jared-w> new bikeshed: nix unrecognized-command looks for nix-unrecognized-command in $PATH before barfing
<jared-w> :D
<srk> or just an alias .. I'm using nix eval '(with (import <nixpkgs> {}); $1)'
<jared-w> ooh, shiny
<{^_^}> [patchelf] @domenkozar opened pull request #219 → CI for aarch64 → https://git.io/JfxXj
<{^_^}> [nixpkgs] @Mic92 opened pull request #91353 → nixos-generate-config: add Rust stub with tests → https://git.io/Jfx1v
cfricke has quit [Quit: WeeChat 2.8]
<gchristensen> Mic92++
<{^_^}> Mic92's karma got increased to 28
printfn[m] has joined #nixos
AmandaC_ has joined #nixos
ris has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #91246 → resilio-sync: 2.7.0 -> 2.7.1 → https://git.io/JfNam
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jfx1J
jumper149 has joined #nixos
<{^_^}> [nixpkgs] @stigtsp opened pull request #91354 → rakudo: 2020.05.1 -> 2020.06 → https://git.io/Jfx1T
<jared-w> gchristensen: I remember seeing some musing from you earlier on the next generation of what a dev environment looks like (in the lorri repo). Any newer thoughts on what a (nix-shell v2 + lorri + buildEnv + cloud CI cache + ???) might look like?
alp has quit [Ping timeout: 272 seconds]
AmandaC has quit [Ping timeout: 256 seconds]
<Mic92> jared-w: direnv integration also becomes now a piece of cake: https://zimbatm.com/NixFlakes/#direnv-integration
<Mic92> If you want caches you might just add this to the `nix` command (requires trusted user though)
<Mic92> (which it does anyway)
karantan has joined #nixos
<{^_^}> [patchelf] @edolstra merged pull request #216 → Improve the default section alignment choice (> 4K page size compat) → https://git.io/JfbRB
<{^_^}> [patchelf] @edolstra pushed 2 commits to master: https://git.io/Jfx1R
<{^_^}> [nixpkgs] @talyz opened pull request #91355 → [20.03] nomachine-client: 6.10.12 -> 6.11.2 → https://git.io/Jfx10
ris has joined #nixos
evils_ has joined #nixos
cyphase has quit [Ping timeout: 240 seconds]
evils has quit [Ping timeout: 258 seconds]
ris has quit [Ping timeout: 246 seconds]
Rusty1 has joined #nixos
ris has joined #nixos
<jtojnar> ugh, `nix eval --impure --expr '(with (builtins.getFlake "nixpkgs").legacyPackages.x86_64-linux; python3)'`
<jtojnar> pkgs/build-support/fetchurl/boot.nix:5:1 called with unexpected argument 'hash'
<andi-> Why is it called `legacyPackages` where are the new packages of those are legacy?
<jtojnar> flakes can have packages key
<jtojnar> not sure how the legacyPackages differ
orivej_ has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
<{^_^}> [patchelf] @domenkozar pushed to aarch64 « CI for aarch64 »: https://git.io/Jfx1N
erik-4levels has quit [Remote host closed the connection]
<{^_^}> [patchelf] @domenkozar merged pull request #219 → CI for aarch64 → https://git.io/JfxXj
<{^_^}> [patchelf] @domenkozar pushed 2 commits to master: https://git.io/JfxMU
<{^_^}> [patchelf] @domenkozar closed pull request #80 → aarch64 page-size support → https://git.io/JfxM3
Guest9998 has quit [Read error: Connection reset by peer]
Guest9998 has joined #nixos
raimu-san has joined #nixos
<{^_^}> [nixpkgs] @domenkozar pushed to haskell-updates « haskell.compiler.ghc865-binary: strip to fix aarch64 »: https://git.io/JfxMM
alp has joined #nixos
Thra11 has quit [Ping timeout: 260 seconds]
drdee has joined #nixos
acarrico has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @jojosch opened pull request #91356 → searx: fix werkzeug.contrib import → https://git.io/JfxDm
<{^_^}> [nixpkgs] @ryantm merged pull request #91334 → psi-plus: 1.4.1231 -> 1.4.1407 → https://git.io/Jfx4D
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JfxDG
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
Mateon1 has quit [Remote host closed the connection]
Mateon1 has joined #nixos
Thra11 has joined #nixos
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/4cdd64d9078 (from 3 days ago, history: https://channels.nix.gsc.io/nixos-unstable)
waleee-cl has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
gustavderdrache has joined #nixos
orivej has joined #nixos
_ris has joined #nixos
ris has quit [Read error: Connection reset by peer]
Thra11 has quit [Ping timeout: 265 seconds]
<TheSirC[m]> Quick question: If I wanted to load a kernel module (for example this one: https://github.com/NixOS/nixpkgs/blob/d21cc14114dc59207963aaca09c3254eec2168c6/pkgs/os-specific/linux/v4l2loopback/default.nix), how would I do it ?
<TheSirC[m]> I tried passing it as a `nix-shell` (like `nix-shell -p linuxPackages.v4l2loopback`) but then I realized my stupidity...how to load it ?
<evils_> TheSirC[m]: i have `boot.initrd.kernelModules = [ "pcspkr" "usbmon" "your module here?" ];`
raimu-san has quit [Quit: WeeChat 2.7.1]
<evanjs> Is there any guidance in the wiki or elsewhere on when we should use hard vs soft deprecations? Not implementing anything myself, but got curious after I noticed youcompleteme has a hard deprecation notice (i.e. update to YouCompleteMe)
<TheSirC[m]> evils_: So there is no my way to plug it like `modprobe -i v4l2loopback` ?
<evanjs> In contrast to things like... oh. aliases for live programs
<evils_> TheSirC[m]: i'm not familiar with kernel modules that aren't available by default, maybe install the package and then modprobe it?
o1lo01ol1o has quit [Remote host closed the connection]
<evanjs> Mrm but e.g. compton -> picom seems to work
acarrico has joined #nixos
raimu-san has joined #nixos
<jared-w> Mic92: super nice. Thanks for the link
<TheSirC[m]> evils_: I tried...without success
<{^_^}> [nixpkgs] @Profpatsch merged pull request #91095 → bazel: 3.2.0 -> 3.3.0 → https://git.io/JfFdg
<{^_^}> [nixpkgs] @Profpatsch pushed commit from @avdv to master « bazel: 3.2.0 -> 3.3.0 »: https://git.io/Jfxyu
<evanjs> Hrm, seems like all vimPlugin deprecation aliases are hard errors. Wasn't sure why those don't just resolve instead
<evanjs> And warn the user, etc
hoverbear has joined #nixos
o1lo01ol1o has joined #nixos
Thra11 has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [templates] @edolstra pushed to master « templates.simpleContainer: Add »: https://git.io/Jfxyj
<evils_> TheSirC[m]: tried `boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ]; boot.initrd.kernelModules = [ "v4l2loopback" ];`?
evils_ is now known as evils
<TheSirC[m]> <evils_ "TheSirC: tried `boot.extraModule"> So you need to reboot and it is loaded on reboot right ?
<TheSirC[m]> I wanted to have a symlink the .ko file to load and unlaod it as I wish
o1lo01ol1o has joined #nixos
omneh_ has joined #nixos
omneh has quit [Ping timeout: 260 seconds]
doyougnu has joined #nixos
raimu-san has quit [Quit: WeeChat 2.7.1]
<evils> TheSirC[m]: i suspect the boot.extraModulesPackage gets you the module available, probably best to install that in a way that ensures it matches your kernel version, the boot.initrd.kernelModules just loads it at boot
raimu-san has joined #nixos
doyougnu has quit [Remote host closed the connection]
doyougnu has joined #nixos
_ris has quit [Read error: Connection reset by peer]
<doyougnu> hello all, I have a scala project I'd like to run locally. I've looked over the nixos and nixpkgs manual but didn't see any information on running scala projects. Does anyone have a good example repo I can read through?
_ris has joined #nixos
<{^_^}> [nixpkgs] @romildo merged pull request #87625 → [20.03] lxqt.pcmanfm-qt: fix default wallpaper → https://git.io/Jfl9K
<{^_^}> [nixpkgs] @romildo pushed 2 commits to release-20.03: https://git.io/Jfx91
<raimu-san> Hi ! Do you know how to get dolphin thumbnail working outside full KDE ? I get this error : "serviceType "ThumbCreator" not found". I have kio-extras and kdegraphics-thumbnailers installed on the system.
<{^_^}> [nixpkgs] @Ma27 opened pull request #91357 → hydra-unstable: 2020-06-01 -> 2020-06-23 → https://git.io/Jfx95
<TheSirC[m]> evils: 🆗 I am fairly curious : why did you pick the namespace `config.boot.kernelPackages.[package]` and not `pkgs.linuxPackages.[package]` ?
doyougnu has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @mweinelt closed pull request #90001 → pythonPackages.pulsectl: 20.4.3 -> 20.5.1 → https://git.io/JfyAp
<evils> TheSirC[m]: the example does that, i think it ensures you use the linuxPackages that matches the kernel set by your config
doyougnu has joined #nixos
<TheSirC[m]> Cool !
wadkar has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
<wadkar> Hi, I wanted to know how to go about installing nix on ubuntu where my root partition is already full. I have /mnt where there is plenty of space, but I don't think I can symlink /nix to /mnt/nix, right?
orivej has joined #nixos
<wadkar> I am not comfortable doing a hardlink either - so maybe I can do `mount --bind /mnt/nix /nix`? Will that break nix?
mekeor has quit [Ping timeout: 258 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest9998 has quit [Quit: WeeChat 2.7.1]
<{^_^}> [templates] @edolstra pushed to master « templates.simpleContainer: Use NixOS 20.03 »: https://git.io/JfxHw
<{^_^}> [templates] @edolstra pushed 2 commits to master: https://git.io/JfxH1
<TheSirC[m]> evils: Well... it did not go well at all
ddellacosta has quit [Ping timeout: 265 seconds]
ddellacosta has joined #nixos
<karantan> I need to add `nice` tool to https://nixos.org/nixos/options.html#systemd.services.%3Cname%3E.path but I can't find this package. I have it by default on nixos but it's not available to systemd service
<evils> TheSirC[m]: did something break?
<{^_^}> [nix] @edolstra pushed to flakes « nix flake init: Use git add --force »: https://git.io/JfxQ0
<vika_nezrimaya> Hey! who merged a cross-compile fix for zstd before I was able to even start researching it?! :3
<vika_nezrimaya> you people are SO FAST at fixing stuff!
<karantan> so how can I add `nice` pkg to systemd service?
<betaboon> karantan: `nice` is part of coreutils
raimu-san has quit [Quit: WeeChat 2.7.1]
<vika_nezrimaya> systemd.services.<name>.path = with pkgs; [ coreutils ];
<karantan> how do you know this? it doesn't say anywhere that this package contains e.g. nice tool
<vika_nezrimaya> If it's a widely used tool it's either in coreutils or util-linux
<evils> karantan: `readlink $(which nice)`
<betaboon> evils: but that does only work if it is already installed :D
<evils> ,locate bin nice
<{^_^}> Found in packages: toybox, busybox, coreutils, coreutils-full
<karantan> @evils wow. awesome tip! thanks
bbb1 has joined #nixos
knupfer1 has joined #nixos
knupfer has quit [Read error: Connection reset by peer]
knupfer1 is now known as knupfer
knupfer has quit [Client Quit]
knupfer has joined #nixos
<{^_^}> [nixpkgs] @oxalica opened pull request #91359 → rust-analyzer: 2020-06-08 -> 2020-06-22, and fix version display → https://git.io/Jfx7Y
o1lo01ol1o has quit [Remote host closed the connection]
<TheSirC[m]> evils: Yep here are the logs (https://paste.rs/UID)
<bqv> oh for pete's sake, users.users.*.password is gone now?
<vika_nezrimaya> why do you need it, it's horribly insecure
<TheSirC[m]> It seems that a warning was turned into an hard error for some reasons
sbetrium_ has joined #nixos
<vika_nezrimaya> bqv: mkpasswd can generate a value for passwordHash, which is much more secure
<bqv> insecure?
<bqv> compared to hashedpassword?
sbetrium has quit [Ping timeout: 264 seconds]
<bqv> if you think hashedpassword is secure, please send me yours :D
drdee has quit [Quit: Leaving]
<bqv> this is just infosec yak-shaving
<vika_nezrimaya> bqv: it's open source @ https://gitlab.com/vikanezrimaya/nix-flake I think
o1lo01ol1o has joined #nixos
<bqv> that's ...upsetting
<vika_nezrimaya> why
<vika_nezrimaya> they're salted
<vika_nezrimaya> if you think it's insecure then type out my password in here, it's ok, I'm allowing it
<vika_nezrimaya> i'll probably change it if that happens tho :3
<bqv> obviously i can't reverse it instantly, but i don't see how someone able to get onto my system and peek into my store to see my password can't also peek into it, see my hashedPassword and then just bruteforce it
<vika_nezrimaya> well bruteforcing salted SHA-512 is not going to be easy for a casual snooper
<bqv> easier than getting remote access to my system...
mallox has quit [Quit: WeeChat 2.8]
<vika_nezrimaya> but
<vika_nezrimaya> if someone got into your system hard enough to peek into the /nix/store, I don't think they're gonna need your passwrd
<vika_nezrimaya> they're gonna exploit something and then gain root rights via that
<vika_nezrimaya> or they probably got direct physical access, in which case you're already screwed hard enough
<bqv> vika_nezrimaya: even better, so why are we fussing about this password vs hashedPassword nonsense?
<qyliss> I calculated how long it would take to brute force at some point and it was a very long time
<Taneb> Because people like to put their config on github?
<bqv> then they can use hashedPassword!
<vika_nezrimaya> qyliss: I'll give you a hint, my password for the laptop is 10 characters
<vika_nezrimaya> you can calculate a better estimate with this
<{^_^}> [nixpkgs] @numkem opened pull request #91360 → adguardhome: 0.101.0 -> 0.102.0 → https://git.io/Jfx77
<bqv> i'm not saying it shouldn't be a thing, but i don't appreciate being denied use of the other
<vika_nezrimaya> probably
<adisbladis> What are viable approaches to stop using passwords altogether?
<vika_nezrimaya> adisbladis: YubiKeys! I got one and it acts as an alternative to a password!
arahael1 has joined #nixos
<vika_nezrimaya> NixOS actually supports logging in with a YubiKey!
<vika_nezrimaya> also it replaces my SSH and PGP keys
<adisbladis> vika_nezrimaya: Well, it doesn't really replace passwords for local auth
<vika_nezrimaya> also it's irreplaceable because I generated my keys directly on the YubiKey
<vika_nezrimaya> adisbladis: it does. Because I can locally log in with it too
<vika_nezrimaya> without a password. Just pressing a button on the YubiKey.
Arahael has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @Luflosi opened pull request #91362 → kitty: 0.18.0 -> 0.18.1 → https://git.io/Jfx7A
<vika_nezrimaya> It inputs a one-time garbage string and PAM magically accepts it as a password
<adisbladis> How do you unlock it?
<adisbladis> I was also using this approach before but there was something I didn't like about it...
<adisbladis> I can't remember what
<{^_^}> [nixpkgs] @Profpatsch opened pull request #91363 → small treewide: his -> theirs/its → https://git.io/Jfx5f
<vika_nezrimaya> adisbladis: you mean from the lockscreen? the same thing. I can insert the yubikey and press the button
_ris has quit [Ping timeout: 246 seconds]
<adisbladis> No, I mean how do you lock/unlock the token
<vika_nezrimaya> In case of PAM auth, I don't. My presence is enough for it
orivej_ has joined #nixos
<adisbladis> Let's say you enable your screen locker and leave your token in the port
<vika_nezrimaya> I dont
orivej has quit [Ping timeout: 265 seconds]
<vika_nezrimaya> the only way you can touch my YubiKey is by prying it from my dead cold hands :3
<adisbladis> I have one constantly plugged in to one of the ports
<vika_nezrimaya> oh noes
<vika_nezrimaya> that's... a bit more insecure than usual
<vika_nezrimaya> I only do that at home
<adisbladis> That's the entire reason why they have the small form factor
<qyliss> That's what the nano yubikeys are for
<dbe> yubikeys are pretty magical :)
<vika_nezrimaya> qyliss: i got a normal one, it's big, I carry it on my keychain which never leaves my sights unless I'm home and the doors are locked
_ris has joined #nixos
<adisbladis> I got three of them :3
<vika_nezrimaya> I consider myself reasonably secure against a stolen yubikey attack unless you count my family as an adversary (they don't even know how to use the yubikeys let alone insert them correctly)
<dbe> i never really understood the nano form factor yubikeys. we use yubihsm's at work to handle certificates, but that's not the norm for yubikeys even though they do support pkcs11
<qyliss> I use my Yubikey with a passphrase and tap-to-sign
<qyliss> Stealing the yubikey doesn't get you anything if you don't know the passphrase
<dbe> for the yubihsms we're authenticating a device, not a user, so that's ok
<vika_nezrimaya> I sign commits with my YubiKey, tap-to-sign is impractical for me
<qyliss> I also sign commits with my yubikey
<vika_nezrimaya> qyliss: it gives you OTP codes which can log you into my computer because I don't use it as a second factor, I use it as an alternative sign-in method
<qyliss> Tap to sign is fine
<adisbladis> Oh wow
<qyliss> Yes, in that case you don't want to leave it unattended
<adisbladis> They're gonna release a new yubikey with a fingerprint reader
<qyliss> Oh finally!
<adisbladis> So nice :)
<qyliss> That's been a real missing piece of the puzzle
<vika_nezrimaya> WOW
<vika_nezrimaya> Yes, that's what we really needed
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adisbladis> I might actually pay for a yubi for the first time ^_^
karantan has joined #nixos
<vika_nezrimaya> did you get yours for free?
<adisbladis> Yep
<vika_nezrimaya> yay! I got it as a gift from a friend
<adisbladis> I have some old friends at yubico
<vika_nezrimaya> one of my friends just got too many yubikeys and since I didn't have one he just sent me one
<vika_nezrimaya> he got it declared at the customs as a "usb key"
<vika_nezrimaya> well technically it is a USB device and a key... we just didn't say it's a cryptographical key
<vika_nezrimaya> probably broke a law or two but nobody noticed
<vika_nezrimaya> oops sorry this is offtopic
ddellacosta has quit [Ping timeout: 265 seconds]
fresheyeball has quit [Ping timeout: 264 seconds]
<bqv> Taneb: fwiw i also have my config on github, and i make use of hashedPassword and password both in different places, but both encrypted
fresheyeball has joined #nixos
<bqv> just frustrating cause it seems like an ultimately pointless restriction
ddellacosta has joined #nixos
absoluutely has joined #nixos
karantan has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @misuzu opened pull request #91364 → python3Packages.tinycss2: fix failing tests → https://git.io/JfxdW
growpotkin has joined #nixos
m0rphism has quit [Quit: WeeChat 2.7.1]
<gueorgui> Hi folks, I wonder if anyone is knowledgeable enough about Xrandr to help figure out this issue: https://www.reddit.com/r/linuxquestions/comments/he338k/xrandr_driving_a_lg_ultrafine_5k_display_in_xorg/
Avaq_ has quit [Remote host closed the connection]
Seebi has joined #nixos
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JfxdM
<{^_^}> [nix] @meditans opened pull request #3736 → Allow relative paths in --store option → https://git.io/Jfxd9
gungoman has joined #nixos
<hoverbear> I'm getting
<hoverbear> I'm getting `/nix/store/lh2sslfz4l6mac9xgwyy155hq3ab8y8x-gcc-9.3.0/include/c++/9.3.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory` on a `nix-shell` based Rust compile. Could anyone advise what I might be missing?
omneh_ is now known as OmnipotentEntity
OmnipotentEntity has quit [Changing host]
OmnipotentEntity has joined #nixos
<jtojnar> hmm, journal contains switching to system configuration /nix/store/7pn3w0k9bm2v8z08zzlrrq7fjjvjiw7m-nixos-system-kaiser-20.09.20200623.90aeb80 failed (status 4)
o1lo01ol1o has quit [Remote host closed the connection]
hoverbear has quit [Quit: Connection closed]
hoverbear has joined #nixos
<jtojnar> but the switch-to-configuration did not really complain, maybe that is why the new generation did not appear in the boot menu
billiozzi[m] has joined #nixos
adamblackwater[m has joined #nixos
<jtojnar> Hayden^
medvid has quit [Ping timeout: 240 seconds]
<jtojnar> right "warning: error(s) occurred while switching to the new configuration" would be printed by nixos-rebuild, not switch-to-configuration
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to release-20.03: https://git.io/JfxFc
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @kampka opened pull request #91365 → matrix-appservice-slack: 1.3.1 -> 1.4.0 → https://git.io/JfxFW
drakonis_ has quit [Read error: Connection reset by peer]
<sephii> (trying again now there seems to be more people online ^^): I'm having trouble building my first Python package. Here are my questions in order of importance: 1) I'm trying to build a Python application that has a "plugins" system (which are regular Python modules). The plugin depends on the application, so I can't build the plugin with `buildPythonPackage` and then add it to `propagatedBuildInputs` of the
<sephii> application because the plugin depends on the application. 2) What's the recommended way of creating a derivation for an application that can have multiple plugins, so the user can choose which ones they want? 3) The application uses pytest to run the tests. I tried adding `checkInputs = [ pythonPackages.pytest ];` but the check phase fails because it cannot find pytest. Any idea why?
billiozzi[m] has left #nixos ["User left"]
drakonis_ has joined #nixos
erasmas has joined #nixos
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
o1lo01ol1o has quit [Remote host closed the connection]
orivej has joined #nixos
ckauhaus has quit [Quit: WeeChat 2.7.1]
teto1 has joined #nixos
<teto1> shouldn't `nix shell nixpkgs/release-19.09#vim` work ? nixFlakes says it's "ambiguous"
ddellacosta has quit [Ping timeout: 260 seconds]
user_0x58 has joined #nixos
<regnat> sephii: For 1 I think the usual practice is to package the application and the plugins separately, and then have an extra derivation that wraps the application with some plugins
<regnat> (For a python thing probably by adding them to PYTHONPATH)
<{^_^}> [nixpkgs] @NeQuissimus pushed 10 commits to master: https://git.io/Jfxbf
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
<hyper_ch_> sphalerite: not the ethernet
<{^_^}> [nixpkgs] @NeQuissimus pushed 6 commits to release-20.03: https://git.io/Jfxbm
drakonis has joined #nixos
infandum has joined #nixos
drakonis_ has quit [Ping timeout: 264 seconds]
<KarlJoad> Hey guys, what emacs major and minor modes are best for editing Nix files, both configuration and project? I already have nix-mode, but are there others that I should know about?
<bqv> i also have nix-buffer and nix-update installed
<bqv> protip: install epkgs then just M-x epkgs-list-packages and type nix
orivej has quit [Quit: No Ping reply in 180 seconds.]
<infandum> Should I use my system configuration.nix or home manager to manage packages?
<infandum> On those lines, on a non-nixos computer, should I use a my-packages.nix file or home manager to manage packages?
orivej has joined #nixos
quinn has joined #nixos
<sephii> regnat: I'll try this, thanks!
<{^_^}> [nixpkgs] @aciceri opened pull request #91366 → Navidrome module → https://git.io/JfxbH
<bqv> infandum: what do you think the difference is?
<hoverbear> (Asking again) is there any tricks/tips to getting `stdlib.h` available in a `mkDerivation` based `nix-shell`?
<jtojnar> teto1 works for me
<jtojnar> teto1 nix (Nix) 2.4pre20200521_00b562c
<infandum> bqv: Well, with home-manager it looks like I could use the same package and configuration across all systems, regardless of if they are nixos or not, but home-manager is not "official".
<KarlJoad> bqv: I'm staying away from epkgs because my emacs config follows me through many different OSs, and Nix is not always installed. But nix-mode, nix-buffer, and nix-update are the 3 you use?
<hoverbear> ^ My error from inside a `nix-shell` trying to build some vendored snappy/rdkafka libraries.
<teto1> jtojnar: I have the exact same version yet it says "fatal: ambiguous argument 'release-19.09': unknown revision or path not in the working tree." . `nix registry list` list the entry though
<bqv> infandum: what i was gunning for is, if you install things using home-manager, they're only available to that user's environment - if you're happy with that and you get benefits then why not
<bqv> KarlJoad: yeah, i don't use epkgs for package management, i just use it as a quick way of searching melpa :p
<teto1> aka nix registry lists it under `global flake:nixpkgs/release-19.09 github:edolstra/nixpkgs/release-19.09`
daniel has joined #nixos
daniel is now known as Guest67603
<KarlJoad> bqv: Ah. Searching wasn't my problem. I just wanted to know if there are other modes I should consider. I miss some kind of autocompletion, if there is any.
<{^_^}> Channel nixos-20.03 advanced to https://github.com/NixOS/nixpkgs/commit/9c42eb70cfd (from 30 hours ago, history: https://channels.nix.gsc.io/nixos-20.03)
<infandum> I see, thanks
drakonis_ has joined #nixos
<bqv> nix doesn't have an lsp server, nix-mode's kinda the best you'll get
<bqv> especially since it's so painful to statically analyse
<Guest67603> Hello, does anyone have any experience with apacheHttpd and mod_wsgi ? I can't get it to work
<KarlJoad> RIP... Oh well.
<patagonicus> On the topic of home-manager: is there something built into it for automatic updates? For NixOS itself I can use system.autoUpgrade.
noudle has joined #nixos
drakonis has quit [Ping timeout: 240 seconds]
<KarlJoad> Also, how does users.mutableUsers work? I have it set to false, but I was still able to create a new user as root. Is that supposed to happen?
<teto1> bqv there is rnix for an lsp server but I never tried. Just saw a default config for it in neovim-lsp
fresheyeball has quit [Ping timeout: 256 seconds]
<bqv> oh, i stand corrected
bbb1 has quit [Quit: WeeChat 2.7.1]
<KarlJoad> Melpa doesn't seem to have rnix.
<bqv> it wouldn't, you'd install lsp-mode or eglot and set it up to run the rnix binary
fresheyeball has joined #nixos
johnw has joined #nixos
<{^_^}> [nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JfxNH
medvid has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
<KarlJoad> Ah... I see what you mean now.
orivej has joined #nixos
<{^_^}> [nixpkgs] @flokli merged pull request #91195 → extlinux-conf-builder: expose and use base builder command, allow a custom FDT to be specified → https://git.io/JfbpG
gungoman has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @flokli pushed 6 commits to master: https://git.io/JfxNb
<hoverbear> (Asking again) Is there any tips for importing stdlib.h in a C++ build of a makefile?
<hoverbear> in a nix-shell, not makefile***
<{^_^}> [nixpkgs] @Mic92 merged pull request #91340 → home-assistant: add hexa as maintainers → https://git.io/Jfxzv
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JfxAf
ddellacosta has joined #nixos
<KarlJoad> How does users.mutableUsers work? I have it set to false, but I was still able to create a new user as root. Is that supposed to happen?
o1lo01ol1o has joined #nixos
<OmnipotentEntity> Yes, you can create a new user, but on reboot the users are reset, if I understand the way it works KarlJoad
<cransom> the description on `users.mutableUsers` from man configuration.nix describe what happens when it's false
gungoman has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
<KarlJoad> cransom: Yes, I just wanted to find out when "system activation" is. The warning states: "the contents of the user and group files will simply be replaced on system activation", and I wasn't sure when system activation was.
Seebi has quit [Quit: Leaving]
<cransom> after a nixos-rebuild switch
drakonis has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<adisbladis> Or at boot
<KarlJoad> Is it boot, or `nixos-rebuild switch`, or both?
boxscape has quit [Quit: Connection closed]
<OmnipotentEntity> I know it happens at boot, so both.
<bqv> i made the mistake of updating nixpkgs and now it's time for damage control >_>
<adisbladis> KarlJoad: Both
<KarlJoad> Ok, perfect.
<adisbladis> activation happens when activating a generation, activating the selected generation happens at boot-time
<adisbladis> Or when switching to a new generation
cole-h has joined #nixos
<arianvp> im trying to follow along https://www.tweag.io/blog/2020-05-25-flakes/ but literally not a single command worked so far :/
<bqv> have you tried switching to nixFlakes first?
<arianvp> yes
<bqv> oh then rip
<arianvp> nix flake show doesnt exist. nix flake list-inputs always crashes with "flake lacks attribute 'edition'"
<adisbladis> Huh
<bqv> oh, nixFlakes is old
<bqv> put edition = 201909; in your flake.nix
<arianvp> nix shell "is not a recognised" command
<OmnipotentEntity> nix-shell
<bqv> wow nixFlakes is very old
<bqv> OmnipotentEntity: no
<arianvp> the guide says "nix shell"
<adisbladis> arianvp: `nix shell` -> `nix run`
<adisbladis> Recently `nix run` was renamed
<OmnipotentEntity> oic
<arianvp> but this tutorial is not even a month old :/
<bqv> yeah it was renamed the other way
<bqv> nixFlakes is probably way older than a month old
<adisbladis> OmnipotentEntity: We are talking specifically about flakes
<bqv> it's set manually to a successful hydra build
<arianvp> but the tutorial says I should get nixFlakes from the 20.03 channel
<OmnipotentEntity> I was on the page, and the very first line was nix-shell, I didn't see lower where the nix shell was.
<bqv> huh
<OmnipotentEntity> My b
<OmnipotentEntity> Considering arianvp claimed that "not a single worked so far" I thought he was stuck at the top.
<OmnipotentEntity> sorry
<OmnipotentEntity> not a single command, I accidentally a word.
m0rphism has joined #nixos
<arianvp> ah hmm maybe this is my nix channel being weird
<bqv> OmnipotentEntity: didn't mean to be rude, was just typing fast
<arianvp> let me make sure this isnt PEBKAC =)
noudle has quit []
<cole-h> arianvp: I wouldn't be surprised if it isn't -- I think someone else came in here recently with the same complaint.
cosimone has joined #nixos
lsix has quit [Quit: WeeChat 2.8]
lord| has quit [Ping timeout: 264 seconds]
<bqv> arianvp: you are running 'nix shell' from within the nixFlakes env, right? cause I tested that shell here and it's fine, and it's using the correct nix
o1lo01ol1o has joined #nixos
<bqv> so 21/05 nixFlakes does have the shell command
camsbury has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
orivej has quit [Ping timeout: 246 seconds]
<bqv> i could imagine what might have happened is your shell path is misordered and some other nix version is overriding it, try `which -a nix`
lord| has joined #nixos
<bqv> top one should be a plain nix path
orivej has joined #nixos
<camsbury> hey does anyone know how I can set `pkgs` for the entirety of `home-manager` without writing an overlay for everything
cosimone_ has joined #nixos
<camsbury> tiptoeing my way into using it and I'd like to use a pinned version I have for all packages I pull in through `home-manager` instead of the default nixos config
proofofkeags has joined #nixos
cosimone has quit [Ping timeout: 260 seconds]
bahamas has joined #nixos
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/348503b6345 (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<pylsan> I got a linux-mix and it uses nix as secondary pkg manager. Cant seem to check for updates to those programs in a easy way?, supose to rebuild all ? But I dont have a "OS" definition file.
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/2cd2e7267e5 (from 10 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
fpob has left #nixos ["Leaving."]
Chiliparrot has joined #nixos
o1lo01ol1o has quit [Ping timeout: 258 seconds]
<arianvp> yeh no this whole nix flake hting just doesnt work
<arianvp> :/
<arianvp> i give up for today
<arianvp> nix flake init followed by nix build fails with "error: flake 'github:NixOS/nixpkgs/48dd117b24a0acecb96e7bd2ae76b06e4828b9e6' lacks attribute 'edition'"
justanotheruser has quit [Ping timeout: 240 seconds]
<gchristensen> sounds like you're on a different version of nix
<gchristensen> the format has evolved a few times
fresheyeball has quit [Quit: WeeChat 2.7.1]
<arianvp> yeh i think something is wrong with my environment; im sure it is pebkac
reanimus has quit [Ping timeout: 260 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
<arianvp> cause when I look in nixpkgs git repo there's a newer version of flakes
reanimus has joined #nixos
orivej has joined #nixos
_ris has quit [Ping timeout: 272 seconds]
<arianvp> yep pebkac! works now :D
<arianvp> thanks for rubber dugging
kleisli has quit [Ping timeout: 240 seconds]
philr_ has quit [Ping timeout: 256 seconds]
noudle has joined #nixos
sigmundv_ has quit [Read error: Connection reset by peer]
_ris has joined #nixos
<bqv> edition was removed from the flake spec at some recent point which has caused a bit of havoc
sigmundv_ has joined #nixos
<bqv> it was also originally called epoch, so double havoc
justanotheruser has joined #nixos
PrinceMachiavell has joined #nixos
_ris has quit [Ping timeout: 246 seconds]
FRidh has quit [Remote host closed the connection]
FRidh has joined #nixos
_ris has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/bf2425fb062 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
mananamenos has quit [Remote host closed the connection]
kleisli has joined #nixos
acarrico has quit [Remote host closed the connection]
<{^_^}> Channel nixpkgs-20.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/fb6c3a6831c (from 12 hours ago, history: https://channels.nix.gsc.io/nixpkgs-20.03-darwin)
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to master: https://git.io/JfxpF
<{^_^}> [nixpkgs] @vcunat merged pull request #91363 → small treewide: his -> theirs/its → https://git.io/Jfx5f
<jtojnar> pylsan what is linux-mix?
<pylsan> Just linux mint and lack of packages made me trow in nix
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
drakonis_ has quit [Ping timeout: 264 seconds]
<camsbury> looking to set `pkgs` for all of `home-manager` to a value, open to tips!
Neo-- has quit [Ping timeout: 260 seconds]
drakonis_ has joined #nixos
cosimone_ has quit [Remote host closed the connection]
karetsu has joined #nixos
cosimone_ has joined #nixos
<vika_nezrimaya> camsbury: override NIX_PATH for home-manager with `alias home-manager='env NIX_PATH=nixpkgs=/home/camsbury/nixpkgs home-manager'`?
Guest67603 has quit [Quit: Guest67603]
<camsbury> I have it as a NixOS module, imported from a channel
<camsbury> so idk if that makes sense in this case
davidv7 has joined #nixos
<vika_nezrimaya> it does not
<ar> /33
<vika_nezrimaya> camsbury: home-manager doesn't allow you to do that when used as NixOS module, but by modifying <home-manager/nixos/default.nix> you're able to patch that ability in.
<vika_nezrimaya> This file constructs the home-manager Nix module itself, and it has a pkgs argument. If you manage to make that argument a config option in config.home-manager attribute set, you'll be able to customize it.
FRidh has quit [Ping timeout: 256 seconds]
<vika_nezrimaya> but you'll have to fork it
<camsbury> So basically I should clone it locally, update the `default.nix`, and import it directly?
<vika_nezrimaya> yep
<camsbury> kk
<camsbury> thanks
Smith[m]1 has joined #nixos
nuncanada has joined #nixos
cYmen has quit [Quit: bye]
zupo has joined #nixos
cYmen has joined #nixos
Thra11 has quit [Ping timeout: 246 seconds]
asheshambasta has quit [Remote host closed the connection]
evanjs has quit [Read error: Connection reset by peer]
alp has quit [Ping timeout: 272 seconds]
<sephii> I ran `nix-build default.nix` in a directory and I now have a `result/` directory I cannot remove ("read-only filesystem"). How can I remove it?
evanjs has joined #nixos
vika_nezrimaya has quit [Ping timeout: 264 seconds]
<bqv> rm result
<bqv> note lack of trailing slash
acarrico has joined #nixos
<sephii> d'oh -_- thanks!
<cole-h> camsbury: You can set `useGlobalPkgs = true;` to make home-manager use your nixpkgs channel for all pkgs
<cole-h> bqv: I usually do `unlink result` instead :P
<bqv> also this
<camsbury> cole-h: yea... I was just hoping I could actually take advantage of them being different - stable for non home-manager and unstable for home-manager
<cole-h> `_module.args.pkgs = unstable-pkgs;` might work in your user's h-m config
<cole-h> But really, if you want unstable packages, it's easier than that...
<cole-h> ,unstable camsbury
boxscape has joined #nixos
<glittershark> is installing nix on alpine (eg in a docker image) as simple as `apk add nix` or do I need to do something more?
<camsbury> I mean I still want it pinned
<camsbury> and for all of home-manager
orivej has quit [Ping timeout: 260 seconds]
<camsbury> how does this `_module.args` work?
<lukegb> glittershark: oh no
orivej_ has joined #nixos
<glittershark> yes
<glittershark> I am
<lukegb> But why
<glittershark> well I tried to use dockerTools
Thra11 has joined #nixos
<glittershark> but then `error: the group 'nixbld' specified in 'build-users-group' does not exist`
avaq has joined #nixos
<cole-h> camsbury: I don't actually know, I've just seen it suggested before (and used it myself). AFAIK, it makes all `pkgs` refer to your new pkgs.
<cole-h> (Not NixOS ones though, since you didn't specify it as part of y our NixOS config)
bahamas has quit [Quit: leaving]
<{^_^}> [nixpkgs] @danieldk opened pull request #91368 → drawio: 13.2.2 -> 13.3.1 → https://git.io/JfxjV
<camsbury> okay ty
FRidh has joined #nixos
<glittershark> actually does anyone here know anything about that nixbld group thing
bennofs_ has joined #nixos
<glittershark> getting that when attempting to run nix commands inside of a docker image build with `dockerTools.buildImageWithNixDb`
<seven-eleven> hi
<seven-eleven> how do you install nix package manager on many hosts automatically?
waleee-cl has quit [Quit: Connection closed for inactivity]
_rvl has quit [Ping timeout: 246 seconds]
_rvl has joined #nixos
o1lo01ol1o has joined #nixos
bennofs has quit [Ping timeout: 240 seconds]
iyzsong has quit [Quit: ZNC 1.7.5 - https://znc.in]
iyzsong has joined #nixos
<simpson> seven-eleven: Normally you'd add a Nix boot/install image to your host management system. Indeed you'd presumably use NixOS. What are you planning?
ris has joined #nixos
_ris has quit [Ping timeout: 272 seconds]
<lukegb> glittershark: can you run nix in single-user mode?
orivej_ has quit [Ping timeout: 264 seconds]
orivej has joined #nixos
<simpson> seven-eleven: Oh, or maybe another possibility is that you're imagining deploying some Nix-built package, and you're wondering how to deploy Nix in order to deploy that package. In *that* degenerate case, you only need to copy the package (and its closure) itself, and Nix doesn't need to be present on the target machine.
ashesham` has joined #nixos
<seven-eleven> simpson, im using ubuntu and i want to install nix package manager for all users with the nix daemon. i think i have to run the nix install script so all necessary files are created in /etc/profile.d/
simba1 has joined #nixos
<simpson> seven-eleven: Yes, using the --daemon flag, as documented at https://nixos.org/nix/manual/#sect-multi-user-installation
nek0 has quit [Quit: ZNC 1.7.5 - https://znc.in]
nek0 has joined #nixos
<seven-eleven> simpson, yeah and I'd like to do that for many other hosts automatically if possible :-)
FRidh has quit [Ping timeout: 258 seconds]
FRidh has joined #nixos
<simpson> seven-eleven: Can you be more specific than "automatically"? Which configuration management are you using? How do you normally do things automatically with Ubuntu?
ris has quit [Read error: Connection reset by peer]
<seven-eleven> simpson, usually I use ansible to manage many hosts at once, but ansible either runs a script as root or as user, but nix install script requires to run some stuff as user and sometimes requires sudo, therefore im stuck there
ris has joined #nixos
<simpson> seven-eleven: If you were to delegate NOPASSWD permissions to sudo (which I am *not* necessarily recommending, as it's dangerous) then I think, from a cursory reading, that the installation is otherwise non-interactive.
<seven-eleven> I think that would work, let me try to set NOPASSWD before running the script and removing it after I run the script
<seven-eleven> that could be a workaround
<simpson> seven-eleven: However, you might find something like https://github.com/ktosiek/ansible-nix more useful; I think that this is an Ansible role for installing Nix declaratively.
<glittershark> lukegb: I mean this is literally just the default nix config from buildImageWithNixDb
<seven-eleven> simpson, oh yeah I saw that, the age of the last commit worried me, thats why I thought using the install script (which is well maintained) is safer :-)
<simpson> seven-eleven: You can probably just update the URLs in https://github.com/ktosiek/ansible-nix/blob/master/defaults/main.yml to be whatever version you want. Same with the channels, whereever they are.
<FRidh> new WIP PEP for standardizing Python metadata https://www.python.org/dev/peps/pep-0621 in pyproject.toml :)
<gchristensen> oh cool
o1lo01ol_ has joined #nixos
<simpson> It's about time.
<seven-eleven> simpson, tried it with sudo NOPASSWD. i agree with you it should be avoided but it worked fine and in ansible i can configure it to automatically disable NOPASSWD right after nix was installed
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
<FRidh> pep 517/518 took quite some time to get fully implemented. That's more or less done now so now its time to move further on that basis
<simpson> seven-eleven: Okay. I would definitely invest time in trying to get the community role to work, and contributing updates as needed, if I were to sink more time into the Ansible route.
<simpson> But at least there's a route forward now.
<seven-eleven> yeah, thank you :-)
o1lo01ol1o has quit [Ping timeout: 240 seconds]
<{^_^}> [nix] @Ericson2314 opened pull request #3738 → WIP: Hash always has a valid type → https://git.io/Jfpeb
<{^_^}> [nixpkgs] @danieldk merged pull request #91346 → cue: 0.2.0 -> 0.2.1 → https://git.io/Jfxos
<{^_^}> [nixpkgs] @danieldk pushed 2 commits to master: https://git.io/JfpeA
Thra11 has quit [Ping timeout: 264 seconds]
<armin> gchristensen: https://twitter.com/adamhjk/status/1275468588653006848 this is a pretty interesting thing. would you allow me to /msg you with some questions about this?
<sephii> I think my package is now working :) I'd like to distribute it alongside my app so users can install it. How is this usually done (without adding it to nixpkgs)? If I distribute the default.nix file, how can other people use it? Also I had to use `{ pkgs ? import <nixpkgs> { } }:` at the top of my file, instead of the usual `{ pkgs, buildPythonApplication }:` etc. because it wouldn't build with this. What's
<sephii> the proper way of doing it?
<gchristensen> armin: sure
atopuzov[m] has quit [Quit: authenticating]
atopuzov[m] has joined #nixos
ashesham` has quit [Ping timeout: 272 seconds]
cosimone_ has quit [Ping timeout: 260 seconds]
cosimone has joined #nixos
<seven-eleven> simpson, this is how the workaround looks in ansible, worked fine https://dpaste.org/NLoB :-)
Neo-- has joined #nixos
<simpson> seven-eleven: Whatever latches your hatches. I personally would try to figure out why Ubuntu and Ansible are necessary, and work to deprecate them in the organization.
* simpson radical
Spritzgebaeck has joined #nixos
cosimone has quit [Client Quit]
karetsu has quit [Quit: WeeChat 2.8]
gxt has quit [Quit: WeeChat 2.8]
justanotheruser has quit [Ping timeout: 265 seconds]
justanotheruser has joined #nixos
<Spritzgebaeck> hello, i'm a new nixos user and come from archlinux. i've got a problem with a systemd user service. it's running a ruby script with following shebang #!/usr/bin/env ruby, it runs if i start it from a terminal, but systemd throws an error: /usr/bin/env: ‘ruby’: No such file or directory
<seven-eleven> simpson, replacing ubuntu with nixos and ansible with? I think nixos can do some automatic installation/configuration through configuration.nix/config.nix but maybe it cant replace everything ansible can do
<cole-h> Spritzgebaeck: You'll need to add ruby to its PATH. Typically done by `systemd.user.services.<service>.path = [ pkgs.ruby ];` or something similar.
Thra11 has joined #nixos
<simpson> seven-eleven: NixOS's base tools, plus ssh, are often enough. There are several tools, like Nixops and Morph, which are largely wrappers around nix-copy-closure and ssh.
<Spritzgebaeck> cole-h: ah, thanks
<simpson> But, again, that's a long-term plan, and it's not necessary to be ready for that today. Just something to look forward to in the future.
<{^_^}> [nixpkgs] @markuskowa merged pull request #91283 → qgis: 3.10.4 -> 3.10.7 → https://git.io/JfAPN
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/JfpvK
lord| has quit [Ping timeout: 264 seconds]
<ornxka_> how do i use packages with bundled ruby scripts..
<ornxka_> https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/security/metasploit/default.nix im looking at this, i want an env with all the ruby stuff in the gemfile in it so i can run the scripts that come with it
<seven-eleven> simpson, yep, going to keep an eye on nixos. im already happy that I can install newer versions of applications so easily with nix now
<Spritzgebaeck> cole-h: mhh, this is not running. should it run for services in my home dir? ~/.config/systemd/user?
zangi has joined #nixos
<zangi> ,channels
<{^_^}> Largest Nix channels: #nixos, #nixos-dev, #nixos-chat, #nixos-aarch64, #nixos-security, #nixcon, #nixos-officehours, #nixops, #haskell.nix, #nix-darwin, #nixos-de, #nixos-emacs, #nixos-on-your-router, #nixos-nur, #nix-lang, #nixos-fr, #nixos-systemd, #nixos-borg, #nixos-wiki
leothrix has quit [Ping timeout: 258 seconds]
ashesham` has joined #nixos
<{^_^}> [nixpkgs] @veprbl merged pull request #91264 → texlive: fix build for scheme-infraonly → https://git.io/JfNQ5
<{^_^}> [nixpkgs] @veprbl pushed 2 commits to master: https://git.io/Jfpvj
_ris has joined #nixos
ris has quit [Ping timeout: 246 seconds]
endocrimes has joined #nixos
kleisli has quit [Remote host closed the connection]
kleisli has joined #nixos
cyphase has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #91356 → searx: fix werkzeug.contrib import → https://git.io/JfxDm
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JfpfE
dukedave is now known as davetapley
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @B4dM4n opened pull request #91371 → nixos/generic-extlinux-compatible: fix docbook syntax → https://git.io/JfpfD
<teto1> to answer my own question: `LANG=C nix shell github:edolstra/nixpkgs/23f6739791ea779310ea6bae07f10775631582fd#vim` worked around my issue with the "ambiguous" issue
<{^_^}> [nixpkgs] @flokli merged pull request #91371 → nixos/generic-extlinux-compatible: fix docbook syntax → https://git.io/JfpfD
<{^_^}> [nixpkgs] @flokli pushed 2 commits to master: https://git.io/JfpfF
<hoverbear> Does anyone have experience getting buildRustPackage to recognize targets provided by nixpkgs-mozilla overlay?
<{^_^}> [nixos-hardware] @Mic92 opened pull request #175 → dell/xps/13-7390: wifi fixes → https://git.io/JfpfA
<hoverbear> I am not having it find `rust-std` or `rust-core` when I try to cross compile
orivej_ has joined #nixos
bqv has quit [Quit: WeeChat 2.8]
<{^_^}> [nixpkgs] @mdlayher opened pull request #91372 → nixos/mbim-network: init → https://git.io/JfpJk
orivej has quit [Ping timeout: 240 seconds]
bqv has joined #nixos
cosimone has joined #nixos
ashesham` has quit [Ping timeout: 272 seconds]
hoverbear has quit [Quit: Connection closed]
<bqv> nixos update complete!
<{^_^}> [nixpkgs] @AndersonTorres opened pull request #91373 → ytree: init at 2.02 → https://git.io/JfpJ8
<bqv> no longer stuck in last month's nixpkgs...
stepcut has joined #nixos
KarlJoad has quit [Quit: Konversation terminated!]
stephank has joined #nixos
teto1 has quit [Ping timeout: 246 seconds]
kw25 has joined #nixos
<Spritzgebaeck> cole-h: i got a solution and get rid off this service
FRidh has quit [Ping timeout: 246 seconds]
FRidh has joined #nixos
o1lo01ol1o has joined #nixos
ris has joined #nixos
noudle has quit []
<{^_^}> [nixpkgs] @Mic92 merged pull request #90294 → snapcast: v0.15.0 -> v0.20.0 → https://git.io/JfQoI
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JfpJF
_ris has quit [Ping timeout: 246 seconds]
o1lo01ol_ has quit [Ping timeout: 240 seconds]
<kw25> When I call 'xmonad --recompile' as user, ghc isn't finding the XMonad module. Any ideas why? I have xmonad, xmonad-contrib, and xmonad-extras in my configuration.nix.
FRidh has quit [Client Quit]
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
<{^_^}> [nixos-homepage] @edibopp pushed 2 commits to master: https://git.io/JfpUq
<{^_^}> [nixos-homepage] @edibopp merged pull request #480 → Migrate the security teams GPG key download to keys.openpgp.org → https://git.io/JfbZJ
orivej has joined #nixos
<kw25> Or alternatively, is there a way to completely wipe out my per-user nixos configuration and hope that all the important bits can be rebuilt from configuration.nix?
stepcut has quit []
benny_ is now known as benny
D_ has quit [Ping timeout: 244 seconds]
D_ has joined #nixos
kmein has quit [Ping timeout: 240 seconds]
endocrimes has quit [Quit: running from the computers]
kmein has joined #nixos
endocrimes has joined #nixos
inkbottle has joined #nixos
energizer_ has joined #nixos
agsdheidjd has quit [Ping timeout: 260 seconds]
zebrag has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #91327 → Fix RPATH for libraries downloaded by rustup → https://git.io/JfxGG
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JfpUF
leothrix has joined #nixos
teto1 has joined #nixos
energizer_ is now known as energizer
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
alp has joined #nixos
kw25 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @benley opened pull request #91375 → discord: fix appindicator tray icon support → https://git.io/JfpTY
visl has joined #nixos
KarlJoad has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
<KarlJoad> When using `users.mutableUsers=false` are users that are created supposed to continue having a nix profile?
<gchristensen> yeah
<gchristensen> but the set of users and their passwd/groups/etc will not be modifiable
<KarlJoad> So, from what I understand, root can still create users and groups, but they will be cleared after a system activation or reboot. The passwords of users/groups are NOT modifiable. And when a user that was created is removed, they keep their nix-profile in the store?
<gchristensen> I don't think root can still create users
teto1 has quit [Ping timeout: 272 seconds]
<glittershark> why would I be getting "file 'nixpkgs' was not found in the Nix search path" even though I have a channel called nixpkgs?
<KarlJoad> I have `users.mutableUsers=false` and I was able to make a `test` user.
<gchristensen> and yeah, a user which is no longer exists due to a system change will continue having their profile and their hom edirectory
<KarlJoad> Which was what I wanted, but I'm sure that's expected behavior. However, why do they keep their profile and home directory?
<KarlJoad> Shouldn't those be cleared after a system-level change and activation?
<gchristensen> NixOS makes (almost no) attempt to manage user state, and for good reason
diekl has joined #nixos
<gchristensen> NixOS configurations should roll forward and back and forward again leave you in the same state
<gchristensen> if it deleted user data, that promise would not hold
<KarlJoad> Ok. I that makes sense. Is it safe to just remove that user's directory in the `/nix/var/nix/profiles/per-user` then?
<gchristensen> sure
<gchristensen> an example of this is one time I deployed my router's configuration to a backup server. with most configuration management tools this would be a crisis, but with NixOS the damage was entirely undone by rolling back
<{^_^}> [nixpkgs] @LnL7 merged pull request #90463 → clamav: enable build on darwin → https://git.io/Jf7Ra
<{^_^}> [nixpkgs] @LnL7 pushed 2 commits to master: https://git.io/JfpT1
<KarlJoad> Understood. I was just not sure about all of the semantics that go along with `users.mutableUsers=false`
<gchristensen> and it would have been a catastrophe if the router's configuration changed anything having to do with partitioning / data layout / user data
<gchristensen> understood
<gchristensen> the semantics are pretty much: passwd and groups are immutable
<gchristensen> (I am pretty sure you should not be able to create a user with mutableUsers = false ...)
teto1 has joined #nixos
<KarlJoad> Strange. I was able to make a `test` user for testing a home-manager module today while I have `users.mutableUsers = false`. It correctly removed the user and their groups, and left their information behind (nix-profile and home-directory).
<gchristensen> interesting
<gchristensen> good to know :)
<KarlJoad> It might be because I haven't given a hashed password to root, though I doubt it.
<KarlJoad> As far as I know, my user is the only one affected by the mutableUsers setting.
<KarlJoad> On a related note, is there a way to find what is pointing to a particular file with a symlink? Essentially, go backwards from an item to possible symlinks to that starting point.
michaelstrogoff[ has joined #nixos
<andersk> Can someone merge https://github.com/NixOS/nixpkgs/pull/89204 please?
<{^_^}> #89204 (by andersk, 3 weeks ago, open): musescore: Add missing inputs qtgraphicaleffects, qtquickcontrols2
agsdheidjd has joined #nixos
<{^_^}> [nixpkgs] @grahamc merged pull request #89204 → musescore: Add missing inputs qtgraphicaleffects, qtquickcontrols2 → https://git.io/JfK13
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to master: https://git.io/JfpkW
hoverbear has joined #nixos
<gchristensen> thanks, andersk!
<energizer> KarlJoad: afaict the only way is `find /`
knupfer has quit [Quit: knupfer]
thomasjm has joined #nixos
knupfer has joined #nixos
<KarlJoad> RIP, that'll take too long and output too much. I just need to find the few things keeping a single package version around.
knupfer has quit [Client Quit]
Soo_Slow has joined #nixos
knupfer has joined #nixos
knupfer has quit [Client Quit]
<energizer> KarlJoad: nix why-depends /run/current-system /path/to/file
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
<kw4775[m]> &wg 4
orivej has joined #nixos
<KarlJoad> energizer: That is actually super helpful. Now, the version of this package could have been installed by a user too, so I need to dig through their files as well.
davidv7 has quit [Remote host closed the connection]
camsbury has quit [Remote host closed the connection]
<wadkar> Hi, I wanted to know how to go about installing nix on ubuntu where my root partition is already full. I have `/mnt` where there is plenty of space, but I don't think I can symlink /nix to /mnt/nix, right? What are my options here? Any tips? Suggestions? Thanks!
davidv7 has joined #nixos
<KarlJoad> Is there somewhere I haven't considered? The user's home directory and /nix/var/nix/profiles/per-user/user are the 2 I've looked at so far.
<obadz> energizer++
<{^_^}> energizer's karma got increased to 21
<gchristensen> wadkar: how about a bind mount from within /mnt/nix to /nix ?
<{^_^}> [nixpkgs] @tshaynik opened pull request #91376 → Bump linode-cli version → https://git.io/JfpkN
<wadkar> gchristensen: cool, that'll work `mount --bind /mnt/nix /nix` just need to make sure those dirs exists. Thanks a lot!
<gchristensen> yep!
<gchristensen> bind mounts are ... very cool :)
<{^_^}> [nixpkgs] @samueldr merged pull request #73787 → gobi_loader: init at 0.7 → https://git.io/JeKhu
<{^_^}> [nixpkgs] @samueldr pushed 4 commits to master: https://git.io/JfpIe
meh` has joined #nixos
<wadkar> yeah, I just wasn't sure how/if they'll work. But yeah, unlike symlinks/hardlinks - they'll be transparent to nix.
<KarlJoad> Is there a list of all possible places symlinks into the nix store end up?
agsdheidjd has quit [Ping timeout: 246 seconds]
agsdheidjd has joined #nixos
<{^_^}> [nixpkgs] @matthiasbeyer opened pull request #91377 → mutt: 1.14.4 -> 1.14.5 → https://git.io/JfpIu
oida has quit [Ping timeout: 240 seconds]
oida has joined #nixos
itshaydendev has joined #nixos
<itshaydendev> Can I get a hand on the nixpkgs GH? Having some trouble with updating my bspwm config
itshaydendev has quit [Client Quit]
<{^_^}> [nixpkgs] @talyz merged pull request #91355 → [20.03] nomachine-client: 6.10.12 -> 6.11.2 → https://git.io/Jfx10
<{^_^}> [nixpkgs] @talyz pushed 2 commits to release-20.03: https://git.io/JfpI1
xantoz has joined #nixos
itshaydendev has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #89853 → moolticute: 0.43.16 -> 0.43.19 → https://git.io/JfDp9
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JfpIS
orivej has quit [Quit: No Ping reply in 180 seconds.]
teto1 has quit [Ping timeout: 260 seconds]
<itshaydendev> Anyone?
xantoz has quit [Client Quit]
xantoz has joined #nixos
orivej has joined #nixos
<simpson> What's the question?
<simpson> Or do you actually need a GH admin?
teto1 has joined #nixos
<drakonis> itshaydendev: try cloning the repository?
<itshaydendev> drakonis: The issue isn't with nixpkgs, it's with how it's updating the config. Because it won't
<itshaydendev> simpson: basically I have `services.xserver.windowManager.bspwm.configFile` set in my configuration, but once it's installed the first time, it never updates.
orivej has quit [Quit: No Ping reply in 180 seconds.]
absoluutely has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
<simpson> itshaydendev: I don't use bspwm, but just to double-check: You changed the configuration file, and then did a nixos-rebuild switch and logged out and back in, but it was still the old configuration?
<itshaydendev> yeah.
<itshaydendev> basically, i forgot to include my polybar startup script. so I added "sh ~/.config/polybar/launch.sh" to my bspwmrc, and then rebuilt, relogged (even tried rebooting) and nothing happened.
<itshaydendev> i know the script works because if i drop into a tty and start alacritty with "DISPLAY=:0 alacritty", and run the same command, it works fine
<{^_^}> [nixpkgs] @vcunat pushed 24 commits to release-20.03: https://git.io/JfpLW
<{^_^}> [nixpkgs] @vcunat merged pull request #91226 → [20.03] Backport linux latest and testing → https://git.io/JfNCy
<simpson> Can bspwm tell you its configuration file path? You could cross-reference to see which file is being used. It might be in the process arguments which you could retrieve with top or htop or /proc or etc.
sbetrium_ has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @Ma27 merged pull request #91362 → kitty: 0.18.0 -> 0.18.1 → https://git.io/Jfx7A
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JfpLz
<betawaffle> Can anyone think of a reason why it’d be a bad idea to have /nix be backed by overlayfs?
<b42> what's the advantage?
<itshaydendev> simpson: oh, sorry, weechat should really notify me when someone types here lol
<itshaydendev> simpson: i'll have a look
itshaydendev has quit [Quit: WeeChat 2.8]
orivej has quit [Ping timeout: 265 seconds]
orivej_ has joined #nixos
<betawaffle> b42: inside a container, allowing the store to be backed by both the store from the image and write new stuff to a bind-mounted volume from the host.
<{^_^}> [nixpkgs] @Ma27 merged pull request #91377 → mutt: 1.14.4 -> 1.14.5 → https://git.io/JfpIu
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JfpLX
itshaydendev has joined #nixos
<itshaydendev> Okay, that's weird. My bad. It *is* updating, but it doesn't seem to be running the scripts I've added
absoluutely has joined #nixos
<itshaydendev> anywhere i could go to see logs for it? because i cant find them
zebrag has joined #nixos
alp has quit [Ping timeout: 272 seconds]
inkbottle has quit [Ping timeout: 260 seconds]
knupfer has quit [Ping timeout: 260 seconds]
waleee-cl has joined #nixos
<itshaydendev> it definitely isn't applying config changes despite having the right contents in the config file
<{^_^}> [nixpkgs] @antoinerg opened pull request #91378 → python3Packages.dash: 1.12.0 -> 1.13.3 → https://git.io/JfpLA
gustavderdrache has quit [Quit: Leaving.]
fendor_ has joined #nixos
sbetrium has joined #nixos
<{^_^}> [nixpkgs] @Ma27 merged pull request #90578 → git-revise: 0.5.1 -> 0.6.0 → https://git.io/Jf5kh
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JfptJ
fendor has quit [Ping timeout: 258 seconds]
<itshaydendev> simpson: any ideas?
<simpson> itshaydendev: Finding the logs sounds reasonable. I don't know anything about your WM of choice, sorry.
<itshaydendev> i don't think my wm gives logs
<itshaydendev> but also, like i said, the config file has updated
<itshaydendev> and i made a config change that should have gone through no matter what, no change
<infinisil> betawaffle: The iso image works like that
<{^_^}> [nixpkgs] @Ma27 merged pull request #90491 → cadical: 1.2.1 -> 1.3.0 → https://git.io/Jf7Vz
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/Jfptm
<{^_^}> [nixpkgs] @Ma27 merged pull request #90497 → debianutils: 4.10 -> 4.11 → https://git.io/Jf7r8
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/Jfptc
<chipb> I don't suppose there's a pre-canned way to build all fixed output derivations contributing to an arbitrary derivation for, say, offline build of the arbitrary derivation later on?
itshaydendev has quit [Quit: WeeChat 2.8]
<chipb> I gather that rust/golang/etc. are special beasts for their dependency handling, so ignoring those is fine for my purposes.
<Yaniel> rust, golang, node, python, ...
<{^_^}> [nixpkgs] @jonringer merged pull request #91335 → python37Packages.azure-mgmt-security: 0.3.0 -> 0.4.0 → https://git.io/JfxBe
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.azure-mgmt-security: 0.3.0 -> 0.4.0 »: https://git.io/Jfptg
KarlJoad has quit [Quit: Konversation terminated!]
<Yaniel> oh yeah, haskell
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
<chipb> of course, maybe I could muddle through it on my own by processing the dependency graph and looking for derivations with the outputHash attribute?
<{^_^}> [nixpkgs] @Ma27 merged pull request #90454 → bashmount: 3.2.0 -> 4.2.5 → https://git.io/Jf7WU
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/Jfptw
<chipb> Yaniel: noted. "etc." is rather hand-wavy. ;-)
orivej has joined #nixos
<Yaniel> yeah, I mean ignoring them might still be feasible for many things
<Yaniel> but there is quite a lot of those "special" cases
<chipb> stdenv can go a long way.
simba1 has quit [Ping timeout: 240 seconds]
proofofkeags has quit [Remote host closed the connection]
endformationage has joined #nixos
proofofkeags has joined #nixos
<chipb> actually, those have an outputHash which is what makes them a FOD, impure or no. maybe they're not a special case for this at all?
sbetrium has quit [Quit: sbetrium]
KarlJoad has joined #nixos
<Yaniel> hmm I guess that's true at least for the rust stuff, IIRC those derivations are autogenerated
<Yaniel> python sort of too
reanimus has quit [Ping timeout: 260 seconds]
_reanimus_ has joined #nixos
proofofkeags has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @Ma27 merged pull request #90398 → lexicon: 3.3.22 -> 3.3.26 → https://git.io/JfQpH
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JfptN
<chipb> I suppose I could just live with setting up proxy and do the builds in that environment, but I've got far more compute at my disposal where there is no proxy. bah.
kenji has quit [Ping timeout: 256 seconds]
<Yaniel> I mean, getting the nix expressions for them is the hard part
<Yaniel> once you have that it is mostly quite straightforward
doyougnu has quit [Ping timeout: 264 seconds]
<Yaniel> for rust, you generate a nix expression from the Cargo.toml and then it fetches the crates and builds them in the usual nix way
<Yaniel> I believe the other languages mentioned work similarly
<hoverbear> Yaniel Things kind of fall apart when you try to build for musl sadly
<Yaniel> that's a separate issue, no?
<chipb> if I was particularly married to musl, I'd probabably just use alpine. :-P
<{^_^}> [nixpkgs] @Ma27 merged pull request #90378 → httplab: 0.3.0 -> 0.4.0 → https://git.io/JfQFW
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/Jfpq3
<hoverbear> Yaniel: Yes I've been kicking musl for like 3 days now trying to get it to work though so I'm bitter :|
gustavderdrache has joined #nixos
<Yaniel> understandable
<chipb> what're you running into?
<chipb> (somewhat relatedly, I was playing around a bit with pkgsStatic.nix)
drakonis1 has joined #nixos
<{^_^}> [nixpkgs] @prusnak opened pull request #91379 → cpuminer: 2.5.0 - > unstable-2019-06-11 → https://git.io/Jfpql
<hoverbear> chipb: I *think* the Rust overlay isn't pulling in my `core` crate for the cross toolchain I specify
<hoverbear> gchristensen and cole-h have been helping me narrow things down more :|
erasmas has quit [Ping timeout: 246 seconds]
KarlJoad has quit [Quit: Konversation terminated!]
NieDzejkob has joined #nixos
meh` has quit [Ping timeout: 240 seconds]
asymptotically has quit [Quit: Leaving]
<hoverbear> chipb: I think if you were using something like naersk it could build them into your store and override cargo with a vendort location
<hoverbear> Regarding your original question about rust
drakonis_ has quit [Ping timeout: 240 seconds]
MinceR has quit [Ping timeout: 244 seconds]
<chipb> oh, man. that's probably well beyond my immediate ability.
<hoverbear> Ohhh I can show you!
<hoverbear> Maybe look https://github.com/nmattia/naersk to start?
<seven-eleven> how can I remove a package with nix? i tried `nix-env --uninstall tor-browser; nix-collect-garbage` but tor-browser is still installed
fendor_ has quit [Quit: Leaving]
<chipb> hm. I at least recall seeing that as a candidate for a Rust crate FOD fetcher on a github issue somewhere.
<cole-h> seven-eleven: That only works if you `nix-env --install`'d it. If it's part of your systemPackages or home.packages, you'd need to remove it from there
<Yaniel> (and then rebuild your system)
<cole-h> ^
<seven-eleven> hm installed it with `nix-env -iA tor-browser` in the user shell
<Yaniel> then nix-env -e
<{^_^}> [nix] @Mic92 opened pull request #3739 → docs/installer: add correct curl flags → https://git.io/JfpqS
KarlJoad has joined #nixos
alp has joined #nixos
drakonis1 has quit [Ping timeout: 244 seconds]
ris has quit [Ping timeout: 272 seconds]
drakonis_ has joined #nixos
erasmas has joined #nixos
agsdheidjd has quit [Ping timeout: 272 seconds]
proofofkeags has joined #nixos
agsdheidjd has joined #nixos
infandum has quit [Remote host closed the connection]
ris has joined #nixos
<seven-eleven> nix-env -e couldn't uninstall it (tried from root and the user), let me paste my nix-package dir
Chiliparrot has joined #nixos
nikita` has quit [Quit: leaving]
<seven-eleven> it's in /home/my-user/.nix-profile/share/tor-browser (it's not in /root/.nix...)
<infinisil> ,fancy-uninstall seven-eleven
<{^_^}> seven-eleven: Fancy way to uninstall packages, needs fzf installed: nix-env -q | fzf | xargs -I{} nix-env -e {}
<seven-eleven> all directories and files inside .nix-profile are owned by root
<infinisil> Doing it this way makes sure that you get the derivation name correct
<seven-eleven> not listed as installed infinisil
<infinisil> Ah never mind then :)
<seven-eleven> hmm, if it's not listed as installed why can i still run it (and it has files in .nix-profile/share)
<infinisil> seven-eleven: Wait so `nix-env -q` (as the my-user user) doesn't list it, but `which tor-browser` shows it in /home/my-user/.nix-profile?
<seven-eleven> yep
<infinisil> What does nix-env -q list?
<seven-eleven> oh wait
<seven-eleven> ah yeah
<seven-eleven> /home/my-user/.nix-profile/bin/tor-browser
<seven-eleven> tor-browser-bundle-bin-9.5
<seven-eleven> oh thats why
<seven-eleven> i have to remove "tor-browser-bundle-bin-9.5" not tor-browser
<{^_^}> [nixpkgs] @veehaitch opened pull request #91380 → python3Packages.tlsprofiler: init at 1.0 → https://git.io/Jfpmm
KarlJoad has quit [Remote host closed the connection]
pjt_tmp has joined #nixos
<seven-eleven> now its gone, thank you!
<infinisil> Yeah, so I suggest the fzf way of uninstalling stuff, then you won't type the wrong thing :)
<seven-eleven> yeah, im going to alias it right away
<infinisil> Or alternatively, don't use nix-env at all. Many people like to declaratively install user packages instead
<infinisil> ,declarative
<{^_^}> There are multiple ways of managing declarative profiles. 1) Attrset, compatible with imperative use of nix-env https://git.io/fAQHW ; 2) buildEnv, providing more control over the paths that are linked into the profile https://git.io/fp0aU ; 3) home-manager, providing nixos-like config for your ~ https://github.com/rycee/home-manager
Chiliparrot has quit [Ping timeout: 240 seconds]
<seven-eleven> yeah thats why i wanted to uninstall it so I can install it with the declarative way :-)
NieDzejkob has left #nixos ["https://quassel-irc.org - Chat comfortably. Anywhere."]
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<infinisil> Hehe I see
sbetrium has joined #nixos
KarlJoad has joined #nixos
<{^_^}> [nixpkgs] @teto opened pull request #91381 → hstr: install manpage → https://git.io/Jfpmg
Rusty1 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/Jfpmr
<{^_^}> [nixpkgs] @ryantm merged pull request #91376 → linode-cli: 2.14.1 -> 2.15.0 → https://git.io/JfpkN
__monty__ has quit [Quit: leaving]
miguel_clean has joined #nixos
<seven-eleven> infinisil, i guess you are using home-manager?
<infinisil> Yea
<seven-eleven> i wanted to try nix without home-manager first, but I think i try home-manager now
<miguel_clean> I have declared a simple gitolite/nginx/gitweb setup, but it seems that each time I push something to a branch, this branch becoms invisible in gitweb until I force the restart of the gitweb cgi script. I am completely new to nixos and wonder if I might be missing something obvious?
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
slack1256 has joined #nixos
justanotheruser has quit [Ping timeout: 240 seconds]
NeoCron has quit [Ping timeout: 260 seconds]
<aleph-> Hmm, I'm curious has anyone built a python package that uses setuptools_scm? Seem to be having an issue packaging a package using it.
Vikingman has joined #nixos
erasmas has quit [Quit: leaving]
<b42> there seems to be quite a lot of matches when grepping for setuptools_scm in pkgs/development/python-modules
<{^_^}> [nixpkgs] @hmenke opened pull request #91382 → v2ray-plugin: init at 1.3.1 → https://git.io/JfpYS
Rusty1 has joined #nixos
<aleph-> Hmm, odd.
teto1 has quit [Quit: WeeChat 2.8]
<aleph-> Getting this error when attempting to build a local copy of dosage. https://paste.rs/eHV
<clever> aleph-: its trying to do network at build time, which isnt allowed
<aleph-> Ah, huh. So what's the recommend approach again? Been ages since I've done some nix packaging.
<clever> aleph-: you need to figure out why its doing network, and make it stop
<aleph-> Fair enough.
KarlJoad has quit [Quit: Konversation terminated!]
<infinisil> aleph-: Change setuptools to setuptools_scm?
philr_ has joined #nixos
* aleph- sighs
<infinisil> Just an idea, not sure if it works :)
<aleph-> Yeah that got me closer. :)
tertl3 has joined #nixos
justanotheruser has joined #nixos
<aleph-> Now I get: https://paste.rs/Zql
<aleph-> Hmm.
<qyliss> Do you see what it's complaining about there?
<chipb> a setup.py script that accesses the network? no! you don't say! /me shakes fist in Python's general direction.
<aleph-> Yep, think I figured it out.
kleisli has quit [Remote host closed the connection]
kleisli has joined #nixos
<b42> also setuptools_scm should probably go to nativeBuildInputs (or buildInputs?) but that's not the issue here
dermetfan has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @maralorn opened pull request #91383 → [haskell-updates] haskellPackages.stan: Fix build → https://git.io/JfpOi
<aleph-> Hmm, seems there's no cache_property lib
<aleph-> Ah no, there is.
jumper149 has quit [Quit: WeeChat 2.8]
<aleph-> Alright there we go. Thanks qyliss clever b42
<b42> \o/
kreyren has quit [Remote host closed the connection]
cosimone has quit [Ping timeout: 260 seconds]
lord| has joined #nixos
kreyren has joined #nixos
Vikingman has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
<kiwiirc> anyone know what last couple messages to me were? lost in buffer :(
<{^_^}> [nixpkgs] @jonringer merged pull request #91322 → python3Packages.tempora,cheroot: fix → https://git.io/JfxLx
<energizer> logs in /topic
<{^_^}> [nixpkgs] @jonringer pushed 9 commits to master: https://git.io/Jfp3B
<kiwiirc> ty!
kreyren has quit [Remote host closed the connection]
mbrgm_ has joined #nixos
ris has quit [Remote host closed the connection]
ris has joined #nixos
zangi has quit [Ping timeout: 265 seconds]
mbrgm has quit [Ping timeout: 260 seconds]
mbrgm_ is now known as mbrgm
<{^_^}> [nixpkgs] @jonringer merged pull request #91378 → python3Packages.dash: 1.12.0 -> 1.13.3 → https://git.io/JfpLA
<{^_^}> [nixpkgs] @jonringer pushed 4 commits to master: https://git.io/Jfp3P
zangi has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #87756 → vim-beancount: fix broken → https://git.io/Jf4K8
<{^_^}> [nixpkgs] @jonringer pushed commit from @siriobalmelli to master « vim-beancount: fix broken »: https://git.io/Jfp3y
kreyren has joined #nixos
absoluutely has quit [Ping timeout: 256 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
agsdheidjd has quit [Ping timeout: 240 seconds]
niksnut has joined #nixos
dweller has joined #nixos
azure1 has joined #nixos
absoluutely has joined #nixos
o1lo01ol1o has quit [Ping timeout: 258 seconds]
zangi has quit [Ping timeout: 264 seconds]
<hoverbear> Is it normal for `nix-collect-garbage` to hang?
<qyliss> hoverbear: what was the last line of output?
kgz has joined #nixos
<qyliss> Yes a hang there is normal
<qyliss> It's not actually hung, it just takes a long time
<hoverbear> Ahhhh okay great
<qyliss> When garbage collecting, every deleted path is in fact just moved to /nix/store/trash
codygman has quit [Read error: Connection reset by peer]
<hoverbear> That'd make sense
<qyliss> And then at the end of the GC, that directory is deleted
codygman has joined #nixos
<hoverbear> Ahhhh okay perfect. Thank you. :)
<qyliss> It's basically a huge rm -r, and that takes forever because Unix doesn't give us a way to delete a non-empty directory
<hoverbear> Since it's over 300gb it'll take a moment
<qyliss> YYYYYYYYYYYYYYYYYYYYYYeah
<hoverbear> I was just surprised since it's an optane and should in theory be able to wipe itself in a few seconds
<hoverbear> Then again zfs isn't fast
<qyliss> It's just so many syscalls
<qyliss> As well as anything to do with the filesystem
<hoverbear> Filesystems are bad
<qyliss> Because it has to delete every file, one by one
<qyliss> I always thought ZFS should have just implemented a directory delete operation
<hoverbear> Agree
<qyliss> Have some zfs rmr command or something to do it
<kiwiirc> does linux support zfs mirror over 2 nvme drives?
<hoverbear> Sadly I can't keep using zfs since we need to do kubernetes tests and the k8s support on nixos seems broken :(
<hoverbear> (with zfs)
<hoverbear> kiwiirc You can build a pool over multiple drives yes
absoluutely has quit [Ping timeout: 265 seconds]
slack1256 has quit [Ping timeout: 240 seconds]
<aleph-> Hmm, okay. So if I'm building a python package from GH. What would be the best way to include several scripts a $src/scripts dir in $out/bin/? Should I just completely overload installPhase?
<qyliss> kiwiirc: yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyes
<qyliss> whoops
Soo_Slow has quit [Quit: Soo_Slow]
<aleph-> heh
<qyliss> aleph-: depends what the scripts are
<qyliss> Are they things that should be in PATH?
<hoverbear> Is there a way to say "The thing containing me" in a recursive set?
<aleph-> Indeed. It's a helper script to be called after to generate a cbz archive.
<qyliss> Then they have to go in $out/bin, because that's what goes into PATH
<qyliss> Oh I misread your quesiton
<qyliss> use postInstall
<aleph-> Got it. Hmm, is there a debug I can turn on for building? Seems to not be copying my scripts to $out/bin/ and I'd like to gather introspection
orivej has quit [Ping timeout: 240 seconds]
gustavderdrache has left #nixos [#nixos]
orivej has joined #nixos
<qyliss> NIX_DEBUG = true might help
<aleph-> Nope, and seems I can't just do an ls in my postInstallPhase either. Hmm
<qyliss> postInstall, not postInstallPhase
<aleph-> Ahh
sbetrium has quit [Quit: sbetrium]
bzLem0n has joined #nixos