<duairc>
I guess I wanted to ask is there some way I can keep doFoo and doBar functions that set options in multiple namespaces, and somehow at the same time convince Nix to trust me that I don't set config.foos or config.bars anywhere in them
<duairc>
But if separating out the functions is the only way then so be it
<clever>
colemickens: what does uname -a return? and `ls -l result` vs `ls -l /nix/var/nix/profiles/system` ?
<colemickens>
Oh systemd-boot-builder loops over all of the system profiles. So if I accidentally activated the rpi config once, it will be listed as a generation and systemd-boot-builder will barf on it.
<colemickens>
I can test by find the bad generation and removing it, maybe we systemd-boot-builder could act slightly differnetly
<clever>
colemickens: that will do it!
<clever>
colemickens: yeah, it has to run the append-initrd secrets, for every generation, to copy the secrets from not /nix/store to /boot
<colemickens>
right because it regenerates ALL entries every time, which makes sense.
orivej has quit [Ping timeout: 256 seconds]
orivej_ has joined #nixos
<colemickens>
this is interesting though. My config is actually perfectly fine.
<colemickens>
I guess the output is still pure, but the application (activation) is inherently impure
<clever>
colemickens: another sign, the append-secrets path you verified, was not the one that failed
<colemickens>
yeah that's what got me reading the python script again enough to realize what was up
cosimone_ is now known as cosimone
proofofkeags has joined #nixos
<romanofski>
I'm trying to overwrite a python27 package (google_api_core) which has been marked as Python27 incompatible (yet it isn't).. however creating an overlay and setting the disabled attribute to false, seems to still not pick up the changes (even if I also change the version and SHA)
<romanofski>
however if I include it under a different attribute name (e.g. google_api_core_py27) it seems to be buildable
<romanofski>
wonder what I have missed
<{^_^}>
[nix] @Ericson2314 opened pull request #3851 → Parse CA derivations using new output variants -- contains #3830 → https://git.io/JJlPX
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JJlPH
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JJlPF
orivej_ has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
ilios has joined #nixos
<ilios>
I'm sure I am being a total idiot somehow, but why would I be getting "The option `security.acme.acceptTerms' defined in `/etc/nixos/configuration.nix' does not exist." on rebuild when it is clearly a valid option?
<clever>
ilios: what version of nixpkgs are you using?
<clever>
ilios: and does the option exist in 19.09?
<ilios>
clever: 'nixos-option security' lists acme there, but if I run 'nixos-option security.acme' it gives me 'error: The option `security.acme.acceptTerms' defined in `/etc/nixos/configuration.nix' does not exist.
<clever>
ilios: you need to comment it out for nixos-option to parse it fully
<ilios>
clever: thanks for that, wondered why it was parsing that option deeper than I requested, so it does not list that option, perhaps this is introduced in 20.03
<clever>
yeah, it was added relatively recently
<ilios>
clever: thank you for helping me learn, you rock
Wizek has quit [Quit: Connection closed for inactivity]
<infinisil>
Church-: Very interesting PR indeed
<{^_^}>
[nixpkgs] @pseudomuto opened pull request #93686 → Update default branch for tslime.vim → https://git.io/JJlMe
orivej has quit [Ping timeout: 256 seconds]
proofofkeags has quit [Remote host closed the connection]
orivej has joined #nixos
<Church->
Yarp, this'll be fun to play with
<Church->
Hmm, does fetchSubmodules in fetchFromGithub not work? I would have assumed this would have worked and grabbed the two submodules e and web assets. https://paste.rs/3ex
<infinisil>
Church-: Did you update the hash?
noudle has quit []
<Church->
Yep
<Church->
It's presumaly not pulling the webassets submodule since I get this: https://paste.rs/N0y
<Church->
Trying a local build with patches to the makefile, see if it is getting pulled down
<infinisil>
Just check out the fetched source directly
<infinisil>
To see if all submodules are there
shibboleth has quit [Quit: shibboleth]
<infinisil>
Oh but I don't thinx pkgs.fetchFromGitHub works with private repos
<infinisil>
builtins.fetchGit certainly works though, and has recently gained support for submodules too
<Church->
Well the submodule failing to be pulled is a public one
<Church->
FetchFromGithub is specifically used because the e submodule is private
<kini>
The NixOS wiki (https://nixos.wiki/wiki/Python#Python_virtual_environment) suggests that python venvs should generally work on NixOS, but I'm getting problems pretty early: `pip install` seems to want to overwrite stuff in the nix store, instead of writing into the venv, so it throws "read-only filesystem" errors. I created the venv by first loading up an environment with `python36.withPackages (ps: with ps; [pip setuptools])` and then running `python -m venv
proofofkeags has quit [Remote host closed the connection]
<kini>
`source my-venv/bin/activate`, then `pip install six` (for example). I should mention I'm actually using direnv to load the nix shell containing the `python36.withPackages (...)`, though I imagine that shouldn't matter...
proofofkeags has joined #nixos
xelxebar has quit [Remote host closed the connection]
<bqv>
If direnv executes after that activation it will break the venv
<kini>
argh really? derp... lemme try without direnv then :)
<bqv>
It'll override your path back to the nix store, so yeah
xelxebar has joined #nixos
<kini>
Makes sense. I guess I can't use anything that screws with the PATH simultaneously with direnv...
proofofkeags has quit [Ping timeout: 256 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
<kini>
OK, so now I'm trying it without direnv, but I still have the same problem. `which python` shows the python inside `my-venv`, but `which pip` shows `pip` as loaded from the `nix-shell` I entered. Looking inside `my-venv/bin`, there's a `my-venv/bin/python` but no `my-venv/bin/pip`.
orivej has joined #nixos
inkbottle has quit [Quit: Konversation terminated!]
<{^_^}>
[nixpkgs] @domenkozar merged pull request #93687 → [20.03] ghc: do not use ld.gold with musl libc → https://git.io/JJlMX
<{^_^}>
[nixpkgs] @domenkozar pushed 3 commits to release-20.03: https://git.io/JJl9w
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
peterlau[m] has joined #nixos
orivej has quit [Read error: Connection reset by peer]
orivej_ has joined #nixos
endformationage has quit [Quit: WeeChat 2.7.1]
<bqv>
kini: you could use python -m pip
<bqv>
Not sure whats up there
at220242[m] has joined #nixos
<kini>
Oh hmm, `my-venv/bin/python` is a symlink into the nix store. Is that supposed to happen? There is a `--copies` option to `python -m venv` -- is that what people are using?
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
<kini>
But even when I use `--copies`, it just copies a 500-byte wrapper script, which I guess is what the nixpkgs `python.withPackages (...)` executable actually is; and that wrapper `exec`s a python inside the nix store
orivej has joined #nixos
<kini>
What is "supposed" to happen when I create a virtualenv? i.e. what's supposed to be in `my-venv/bin/`?
akaWolf has quit [Ping timeout: 244 seconds]
<kini>
I tried running `python -m venv my-venv` on another linux distro, and it copied a `pip` script and an `easy_install` script into `my-venv/bin`, plus a symlink to my systemwide python executable. So I guess on NixOS I should expect at least a `pip` script to be copied into there...
fresheyeball has quit [Ping timeout: 240 seconds]
fresheyeball has joined #nixos
<bqv>
kini: try just using qvirtualenv my-venv`, raw
<kini>
That does look like a good error message, though, since I guess the wrongness of the prefix is exactly what was causing the issues with `python -m venv` later down the line when I ran `pip`
<CMCDragonkai>
> Permission is hereby granted, without written agreement and without license or royalty fees, to use, copy, modify, and distribute the data provided and its documentation for research purpose only.
<{^_^}>
error: syntax error, unexpected ',', expecting ')', at (string):318:29
<CMCDragonkai>
Permission is hereby granted, without written agreement and without license or royalty fees, to use, copy, modify, and distribute the data provided and its documentation for research purpose only.
<kini>
bqv: Thanks! Are any of those symlinks into `/nix`? And are any of them small wrapper bash scripts that look like they are generated by the nix ecosystem?
orivej has joined #nixos
<kini>
CMCDragonkai: I would say that is unfree because there is no clear or universally agreed-upon definition of what "research purpose" is
<CMCDragonkai>
what about `unfreeRedistributable`?
<kini>
but that's just my opinion, I don't know if there's an official ruling on this stuff
maier has quit [Ping timeout: 240 seconds]
<bqv>
It does say distribute
Cale has joined #nixos
iqubic has joined #nixos
<bqv>
kini: python at least is a symlink
<CMCDragonkai>
i reckon then `unfreeRedistributable` is fine then
fragamus_ has quit [Ping timeout: 240 seconds]
<CMCDragonkai>
CIFAR10 is another dataset, i just set to `licenses.free`
<CMCDragonkai>
since it wasn't specified
<iqubic>
Is there a way to install Openbox as well as i3 on my nixos box, and be able to select between one or the other with LightDM
<iqubic>
?
<kini>
well, the "distribute" part is also restricted to "research purpose only", though
<CMCDragonkai>
also that upstream source is broken
<CMCDragonkai>
but other poeple have mirrored the data
<CMCDragonkai>
so i wonder how to deal with these cases
<CMCDragonkai>
i could add multiple srcs?
<CMCDragonkai>
one pointing to the other mirrors
<CMCDragonkai>
i mean can `fetchzip` or `fetchurl` point to multiple possible urls
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
<iqubic>
So, how do I install multiple DMs on Nixos?
codygman has joined #nixos
ddellacosta has quit [Ping timeout: 256 seconds]
cole-h has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
xelxebar has quit [Ping timeout: 240 seconds]
xelxebar has joined #nixos
<iqubic>
So, actually, I'm using home-manager, and using "windowManager.command = ..." So, now I'm wondering how I can enable another window manager.
orivej has quit [Quit: No Ping reply in 180 seconds.]
<raghavsood>
It seems to have automatically built it for previous PRs
<raghavsood>
First I thought that because the plex versions contain the commit hash, maybe ofBorg couldn't match the title format, but that also doesn't seem to apply to prevous PRs
<raghavsood>
Maybe just a missed webhook or something?
orivej has joined #nixos
<garbas>
cole-h: used to be me who would be pinged on this kind of issues :)
<bahamas>
and does the one with --daemon create a running service?
CMCDragonkai_ has quit [Quit: Connection closed for inactivity]
orivej has quit [Ping timeout: 246 seconds]
lambda-11235 has quit [Quit: Bye]
orivej has joined #nixos
ilios has quit [Ping timeout: 258 seconds]
oida has quit [Remote host closed the connection]
oida has joined #nixos
<iqubic>
So, I'm using home-manager, and using "windowManager.command = ..." Now I'm wondering how I install and enable another window manager, like openbox, so that I can switch between them at LightDM's log-in page.
orivej has quit [Quit: No Ping reply in 180 seconds.]
<dutchie>
yeah, i was going to say, compared to arch, you don't need an extra package repo as much
gv has quit [Remote host closed the connection]
<colemickens>
Oh yeah, the DEs can lag a bit. Unfortunately the people likely skilled to do the work will end up doing that sort of thing in nixpkgs.
<colemickens>
Well, not unfortunately, but it's worth pointing out.
<iqubic>
This home-manager thing is being a completely weird.
<colemickens>
Qt5 is actually a couple/few releases behind and it hurts us on Wayland, I think.
Thra11 has quit [Ping timeout: 264 seconds]
noudle has joined #nixos
<iqubic>
Since EXWM isn't actually in home-manager, I have to use `xsession.windowManager.command = "dbus-launch --exit-with-session emacs";` to get EXWM working. I'd also like to install OpenBox and have an option to switch between the two of them with LightDM.
<acidpointer[m]>
colemickens: okay, lag a bit... Plasma in nixpkgs-unstable is 5.17. But, latest version is 5.19. Lag for two major releases
<acidpointer[m]>
NixOS may be the best distro, when it fixes packages updates and add realy user friendly repo for user projects(i think, nur is not so user friendly)
<colemickens>
acidpointer: my point was more than it's behind because it's fundamentally hard to do upgrades for those, and it's unlikely "better user repos" would make it get done faster.
<colemickens>
But, there is good news, flakes is going to make NUR-like user repos much easier to work with.
<colemickens>
Hopefully, more users mean more devs mean more help on those PRs and faster DE upgrades :)
<colemickens>
("flakes" is the name of an upcoming Nix feature btw)
<acidpointer[m]>
Mm, sounds great. When flakes will be released?
orivej has quit [Quit: No Ping reply in 180 seconds.]
<colemickens>
I don't know. It's sort of an experimental work-in-progress this, which is admittedly a not great answer. This is a really long version of that same answer: https://github.com/nixos/rfcs/pull/49
<colemickens>
It's usable now. There are several/many of us using it in our projects. nixpkgs,nixos-hardware,nixops,nix,sops-nix,nixpkgs-wayland,etc are already usable via flakes.
<colemickens>
It's also undocumented and probably not easily recommended to a complete beginner. But if you're interested enough there are people around to help you get things going.
phirsch has quit [Quit: Idle for 30+ days]
<typetetris>
What do I need to do, to build a haskellpackages, which uses c2hs?
orivej has quit [Quit: No Ping reply in 180 seconds.]
<sreybastien[m]>
clever: Hi ! Another litlle question about initrd secrets, if i use that in my config and i want to revert, the keyfile or ssh are not reverted, so the best things was to generate and store this somewhere, and not generate it during nixos-install. Because if i generate random keyfile at each install/ rebuild, it was impossible to rollback, i understand well ?
orivej has joined #nixos
dermetfan has joined #nixos
TakeWill has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
<jtojnar>
does anyone have /nix/store/1jvj506nr8bjh21037x8hspnblbschm2-git-2.27.0.drv?
orivej has joined #nixos
alp has joined #nixos
<bahamas>
jtojnar: I don't. why?
<gthm>
nope, sorry
zupo has joined #nixos
<jtojnar>
the corresponding package causes problems for me but I do not remember the original expression to compare the differences
<sreybastien[m]>
emily: Hi i already asked to clever but i see you do a lot of work on initrd / ssh . luks. I have a first version of configuration.nix to remotly unlock ssh Luks at stage 1. see picture above.
mxco86 has quit [Quit: Ta ta]
<sreybastien[m]>
In this config, i understand that /boot is only partly encrypted, is it right ?
<eyJhb>
Is it possible to apply patches to nixpkgs as a channel, using the NixOS config? I remember someone linking me something like that, but unable to find it anymore
mxco86 has joined #nixos
<eyJhb>
Not just overlay, but a diff patch of the entire nixpkgs channel
<sreybastien[m]>
* In this config, i understand that /boot is only partly encrypted, is it right ? Another question, i finally found a way to remotly ssh unlock luks on vps. What is the benefit to use boo.initrd.secrets ?
<sreybastien[m]>
* In this config, i understand that /boot is only partly encrypted, is it right ? Another question, i finally found a way to remotly ssh unlock luks on vps. What is the benefit to use boot.initrd.secrets ?
fendor has quit [Remote host closed the connection]
<niso>
do i this correctly? if i want to package firefox-send i should add it as it's own package (rather than in nodePackages?) https://nixos.org/nixpkgs/manual/#node.js
<{^_^}>
[nixpkgs] @Mic92 closed pull request #47883 → Collecting systemd units execution times in NixOS tests → https://git.io/fxYL0
<niso>
if so: is it okay to run node2nix within it's build script?
<srhb>
niso: If you want to package it for nixpkgs, you cannot do that.
<srhb>
niso: Hydra (and thus nixpkgs) is not allowed to import a nix expression that's produced by a derivation (known as IFD, import from derivation)
<niso>
srhb: means i'd have to manually run node2nix with each update? or is there a way to automate that?
gilligan has joined #nixos
<srhb>
niso: Essentially yes. How to do that depends on the use case and I'm not super familiar with the node ecosystem, but I imagine that it's best to have dependencies in the common nodePackages infrastructure, where there's at least a common way to update things. But you should probably find someone who knows more about this ecosystem and ask for guidance.
* niso
never used node either
bahamas has joined #nixos
bahamas has joined #nixos
bahamas has quit [Changing host]
<niso>
srhb: alright thanks
bahamas has quit [Ping timeout: 256 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
<eyJhb>
niso: lets try to ping adisbladis, I think he knows what is up with Node
<eyJhb>
niso: also, what is wrong with ffsend?
<niso>
eyJhb: nothing, but thanks for linking to it, turns send.firefox.com is down....
AlpineLlama has joined #nixos
<niso>
eyJhb: to answer your question: ffsend is the cli client, i'd like to selfhost a send server
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #93699 → nixos/do-agent: use .service from upstream → https://git.io/JJ8Lw
<weelknym>
Hello! I want to separate general_user and developer_user, so that the general_user will have some fancy DE (let's say, KDE or Gnome), multimedia programs, Steam, Discord and so on, BUT the developer_user will have some tiling WM (let's say, i3, awesome), vim, VSCode, Blender, etc.. I know about 'home-manager', but I want at least a DE and a WM to
<weelknym>
be declared at configuration.nix for different users. How can I achieve that? Maybe someone already has configs for that case and can share them? I'd be grateful!
<weelknym>
TL;DR: how can I install packages for certain users only?
nanashi0x74Old[m has left #nixos ["User left"]
<jakobrs>
As for DEs, you can add both "services.xserver.desktopManager.plasma5.enable = true` and `services.xserver.windowManager.i3.enable = true`, and the user will be able to choose which session to use (i3+none, plasma5, i3+plasma5, etc) when logging in
<niso>
weelknym: you might want to checkout home-manager, it allows you to set dotfiles, DEs etc on a per-user base
<jakobrs>
As for the second part, packages installed using `nix-env` are only available for a certain user, or you can use home-manager
alp has joined #nixos
orivej_ has joined #nixos
<jakobrs>
I don't think you can set DEs per user using home-manager, though, since DEs are system-wide
<jakobrs>
Alternatively you can have separate configurations for "developer" and "general" that you can switch between, using something like `nesting.clone` or (in unstable) `specialisation`
<{^_^}>
[nixpkgs] @peterhoeg pushed to f/do « nixos/do-agent: use .service from upstream »: https://git.io/JJ8Ld
orivej has quit [Ping timeout: 240 seconds]
<gthm>
weelknym: just out of curiousity, why the DE split between user types?
<Orbstheorem>
Since most sources are `fetchGit` or equivalent, is there a command or tool that clones such repositories (raising an error if it's not from git) à la `unpackPhase`?
<weelknym>
jakobrs, I'll look into it, thanks!
* Orbstheorem
takes a leap of faith saying most sources are fetchGit ><"
<niso>
jakobrs: you are right, i was thinking fo xsession.windowManager, sorry!
<weelknym>
gthm, I don't want to see KDE apps while using a WM. It seems like pollution for me
<jakobrs>
I don't think there's a way to install the KDE system applications (like Konsole and Settings) for a single user only.
orivej_ has quit [Ping timeout: 256 seconds]
<weelknym>
It might be possible with the use of 'home-manager', as niso suggested, but can I really rely on it?
orivej has joined #nixos
<gthm>
maybe you could with users.users.$name.packages, but then I assume you'd have to do some fiddling to convince the login manager that KDE (or whatever) is actually installed
<gthm>
but then a dev user who uses i3 could still use kde programs (assuming they'd have both i3 and kde available as choices)
justanotheruser has quit [Ping timeout: 260 seconds]
<jakobrs>
The way desktop managers are installed in NixOS is a bit complicated, so I'd say it's not worth it.
justanotheruser has joined #nixos
<weelknym>
I might just go with some WM, but I'm not the only one who'll use the computer. And I highly doubt they'll like a WM
<weelknym>
They deserve some normal DE to use without "pain" (of learning)
reanimus has quit [Quit: Logging off...]
<jakobrs>
I do see that it's not ideal to have all the kde utilities installed, but I think it's better to just have Plasma installed even if you're not personally using it in this case.
<jakobrs>
You "only" pull in basic Plasma applications like Konsole, Settings, and the polkit agent
<weelknym>
I do think so, too
<jakobrs>
Alternatively, you can do `nesting.clone = [ { services.xserver.desktopManager.plasma5.enable = true; } ];` and then you should be able to select which configuration to use at boot time, or switch from the command line
<{^_^}>
[nixpkgs] @1000101 opened pull request #93700 → nixos/bitcoind: change to multi-instance + add tests → https://git.io/JJ8tr
<jakobrs>
although I haven't tried so I'm not sure
orivej has quit [Quit: No Ping reply in 180 seconds.]
<weelknym>
jakobrs, I suppose I ought to try it. Thanks!
orivej has joined #nixos
<weelknym>
If it didn't work out, would you recommend to open a feature request? Or is that too specific case for it?
<jakobrs>
A feature request to do what, specifically?
AlpineLlama has quit [Ping timeout: 272 seconds]
<weelknym>
To be able to declare installing packages for certain users only
<weelknym>
Nah, I don't want to bother devs
<jakobrs>
That already exists, `users.users.<name>.packages`
<jakobrs>
The problem is that installing a desktop environment is more complicated than just making a package available
AlpineLlama has joined #nixos
<weelknym>
Oh, I see
ardumont has quit [Ping timeout: 244 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
ardumont has joined #nixos
<weelknym>
Would it be a good idea for an option that makes packages unavailable for a certain user?
orivej has joined #nixos
<jakobrs>
It might be nice but I fear it would be too complicated
<jakobrs>
System-wide packages are available to every user because every user should have /run/current-system/sw/bin/ in their path
<Orbstheorem>
jakobrs: Also /run/wrappers/bin.
<Orbstheorem>
(for suid & friends.)
<jakobrs>
And there is no way to somehow remove packages from the path once they're already part of the path
<jakobrs>
Yeah, and /run/wrappers/bin
<jakobrs>
It might be better to allow not installing most kde utilities at all, and then install them per-user instead
<jakobrs>
So you'd have Plasma installed for all users, but only some users will additionally install Konsole, Settings, etc
jakobrs has left #nixos ["almost out of power anyway"]
<weelknym>
Yeah, that would be brilliant. I remember I saw a way to opt out packages for some DE...
<weelknym>
That's for Gnome: `environment.gnome3.excludePackages`
<weelknym>
Also `environment.lxqt.excludePackages`, `environment.mate.excludePackages` and `environment.pantheon.excludePackages`
<weelknym>
Cool, always wanted to try Mate and Pantheon
<weelknym>
Nice solution!
AlpineLlama has quit [Ping timeout: 272 seconds]
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
<weelknym>
I'll see how it works with `nesting.clone` and `environment*.excludePackages`, and let you know, folks
<weelknym>
Thanks everyone once again!
AlpineLlama has joined #nixos
<mudri>
Before I waste too much time: has anyone set up microphone noise suppression on NixOS? Are there any things I should keep in mind when reading generic GNU/Linux instructions? Any particular reason why there's no NixOS module for it?
orivej has quit [Ping timeout: 265 seconds]
orivej_ has joined #nixos
<clever>
mudri: only thing close that ive played with, is the echo cancelation stuff in pulseaudio
<clever>
mudri: but it forces all playback to be mono
<{^_^}>
[nixpkgs] @veehaitch opened pull request #93701 → mitmproxy: convert to python3Packages → https://git.io/JJ8mC
philr_ has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @flokli merged pull request #85362 → samba: Switch back to builtin Heimdal Kerberos → https://git.io/JffYY
<mudri>
clever: I was looking at this one (https://github.com/werman/noise-suppression-for-voice), and it doesn't seem to do anything with playback (I guess because it's unaware of echoes, which I'd be fine with, I think), so I guess I should be okay to try it.
alp has quit [Remote host closed the connection]
ardumont has quit [Ping timeout: 244 seconds]
<mudri>
The PulseAudio module has an `extraConfig` bit for a lot of the configuration here, right?
orivej_ has quit [Read error: Connection reset by peer]
Arahael has quit [Ping timeout: 256 seconds]
smatting_ has joined #nixos
<tobiasBora>
Hello, on debian-like distro, I was able to find a dictionnary for some languages in something like /usr/share/dict/fr.txt but on nixos I can't find this file. Where could I get a list of words of a language?
weelknym has left #nixos [#nixos]
malik has quit [Quit: malik]
ichronic has joined #nixos
ichronic has quit [Remote host closed the connection]
ml| has quit [Ping timeout: 256 seconds]
ardumont_ has joined #nixos
orivej_ has joined #nixos
titano has joined #nixos
ardumont has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 246 seconds]
gustavderdrache has joined #nixos
titano has quit [Ping timeout: 240 seconds]
Rusty1 has joined #nixos
orivej_ has quit [Read error: Connection reset by peer]
orivej has joined #nixos
<hexa->
hrm, I have a python package here that defines no LICENSE
ardumont_ is now known as ardumont
<hexa->
nvm
ml| has joined #nixos
<jtojnar>
tobiasBora what package does it come from on debian?
raghavsood has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @taktoa opened pull request #93703 → osqp: init at 2020-07-17 → https://git.io/JJ8Oc
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskell-streaming-commons: update to version 2.2.2.1 to avoid test suite bug »: https://git.io/JJ83U
smatting_ has quit [Ping timeout: 256 seconds]
bahamas has quit [Ping timeout: 256 seconds]
andreas303 has quit [Ping timeout: 240 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
andreas303 has joined #nixos
proofofkeags has joined #nixos
<chiiba>
I want to use a wildcard `*.example.com` in `nginx.virtualHosts."untitled".serverName`, but that name is also used in systemd `.service` files, which forbids `*`. What am I missing here?
<gchristensen>
chiiba: you can use .serverAliases for the wildcard
<{^_^}>
[nixos-hardware] @bahaynes opened pull request #178 → Add system dell/xps/15-9500 → https://git.io/JJ8Rz
orivej has quit [Ping timeout: 240 seconds]
<eyJhb>
If I want to apply a patch to a import or something like that, e.g. a channel, then how does something like this work? https://github.com/NixOS/nixpkgs/pull/67930/files, I am confused about the syntax. Is it given a attrSet as input to the function?
alp has joined #nixos
seku has joined #nixos
alexherbo2 has quit [Ping timeout: 240 seconds]
<srhb>
eyJhb: Yes. The attrset is the argument to applyPatches.
drdee has joined #nixos
<srhb>
eyJhb: `foo bar` is almost always foo applied to bar, notable exemption being list elements that are delimited by spaces.
ilios has joined #nixos
reanimus has joined #nixos
orivej_ has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
MarcWeber has quit [Ping timeout: 260 seconds]
ilios has quit [Ping timeout: 240 seconds]
bahamas has quit [Ping timeout: 265 seconds]
virus_dave_ has joined #nixos
virus_dave has quit [Ping timeout: 240 seconds]
virus_dave_ is now known as virus_dave
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
proofofk_ has quit [Remote host closed the connection]
never_released has quit [Ping timeout: 272 seconds]
<jco>
but when running vscode the reason extension look for bsb (bucklescript) in the node_modules directory
alp has quit [Ping timeout: 256 seconds]
alexherbo2 has joined #nixos
<jco>
which is empty since bucklescript is installed through nix's bs-platform and not npm
<jco>
so I guess I should install bs-platform from npm instead
orivej_ has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
iqubic has quit [Remote host closed the connection]
ricola has joined #nixos
<ricola>
Hi! What happened to the Riot channel?
antilooper has joined #nixos
alexherbo28 has joined #nixos
<antilooper>
domenkozar[m] hello, what is the proper way to run nix-env in github action workflows to install something? nix-env -i git is not working for me
waleee-cl has quit [Quit: Connection closed for inactivity]
<niso>
ricola: riot rebranded to "Element"
asheshambasta has quit [Ping timeout: 272 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
bahamas has joined #nixos
rigola[m] has joined #nixos
ricola has quit [Remote host closed the connection]
<rigola[m]>
nice, I'm back
alexherbo2 has quit [Ping timeout: 265 seconds]
knupfer1 has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer1 is now known as knupfer
knupfer has quit [Client Quit]
<rigola[m]>
How do you guys find a package for a certain command you wanna run? e.g. I want to install the avr-gcc compiler, but can't figure out what's the package I should install.
knupfer has joined #nixos
<exarkun>
nix search, nix-index
orivej has quit [Quit: No Ping reply in 180 seconds.]
<exarkun>
nix-index provides nix-locate, `nix-locate avr-gcc` says codeblocks and arduino
orivej has joined #nixos
<energizer>
antilooper: usually i prefer to use static configuration instead of nix-env
<ToxicFrog>
I type in the command and zsh's command-not-found handler lists all the nix packages it's in -- at least for free software, it doesn't work on nonfree regardless of my nix settings :/
<ToxicFrog>
I don't know if there's something similar for bash
bahamas has quit [Read error: Connection reset by peer]
orivej has quit [Ping timeout: 256 seconds]
<rigola[m]>
<exarkun "nix-index provides nix-locate, `"> wow, I've been "using" nixos without knowing about nix-index, my god. Thank you! That's a huge improvement to my user experience.
WilhelmVonWeiner has joined #nixos
maier has joined #nixos
kreyren has quit [Remote host closed the connection]
cosimone has quit [Quit: Quit.]
kreyren_ has joined #nixos
<exarkun>
:)
AluisioASG has quit [Ping timeout: 265 seconds]
maier has quit [Ping timeout: 260 seconds]
orivej_ has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
<emmanuel`>
If I were to go about using the `dontHaddock` function to disable haddock builds in a nix (haskell) build, how do go about ensuring that there are no haddocks in the resulting build?
<{^_^}>
[nixpkgs] @Mic92 pushed 2 commits to release-20.03: https://git.io/JJ8z5
knupfer has quit [Ping timeout: 244 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #nixos
orivej has joined #nixos
jb55 has quit [Remote host closed the connection]
leotaku has quit [Ping timeout: 260 seconds]
jb55 has joined #nixos
kreyren__ has joined #nixos
kreyren_ has quit [Remote host closed the connection]
leotaku has joined #nixos
knupfer has joined #nixos
<WilhelmVonWeiner>
does nix have a map/fold builtin?
knupfer has quit [Remote host closed the connection]
<lassulus>
yes, builtins.map or builtins.foldl'
knupfer has joined #nixos
<WilhelmVonWeiner>
ah ty though I found a better(?) function for what I'm doing, concatStringsSep
<lassulus>
ah yeah, my code is full of concatMapStringsSep
<WilhelmVonWeiner>
If I run `builtins.concatStringsSep "\n" [ "a" "b" "c" ]` I get "a\nb\nc"
<WilhelmVonWeiner>
If I use \x I get "axbxc"
<WilhelmVonWeiner>
is that a bug?
o1lo01ol1o has quit [Remote host closed the connection]
<lassulus>
seems expected to me?
<lassulus>
what would you expect to happen?
o1lo01ol1o has joined #nixos
<WilhelmVonWeiner>
"anbnc", it's not printing a literal newline character... or an error because \x is meaningless maybe
<eyJhb>
srhb: thanks! I can read a little nix now! <3
<eyJhb>
But still confused as hell about inherit etc.
cjpbirkbeck has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
kreyren_ has joined #nixos
antilooper has quit [Remote host closed the connection]
karantan has joined #nixos
kreyren__ has quit [Remote host closed the connection]
shibboleth has quit [Ping timeout: 240 seconds]
excelsiora has joined #nixos
<excelsiora>
hi, nixoser's!
<energizer>
WilhelmVonWeiner: where are you seeing "a\nb\nc"?
<excelsiora>
I keep running out of space.
<energizer>
in the repl?
<{^_^}>
[nix] @Ericson2314 opened pull request #3856 → Make `Buildable` a `std::variant` → https://git.io/JJ82Z
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #nixos
alexherbo22 has joined #nixos
<energizer>
excelsiora: what do you mean?
alexherbo2 has quit [Ping timeout: 264 seconds]
alexherbo22 is now known as alexherbo2
<excelsiora>
I keep running out of HD space and I commented out a lot of languages and tools but I'm not able to reclaim the HD space in /nix/store (or so I believe) I only have 2GB free.
orivej has quit [Ping timeout: 256 seconds]
orivej_ has joined #nixos
<energizer>
excelsiora: are you on nixos?
<excelsiora>
yes, I'm on NixOS on a server
<energizer>
excelsiora: nix-collect-garbage
<excelsiora>
yes I keep doing that
xelxebar_ has joined #nixos
xelxebar has quit [Ping timeout: 240 seconds]
<energizer>
you can do `nix-collect-garbage -d` but be aware it will delete old versions so if you break something you wont be able to roll back
kaliumxyz has quit [Quit: leaving]
<excelsiora>
I've only got one generation (I think)
<energizer>
how big is your drive?
<excelsiora>
80 GB
<lassulus>
do you run nix-collect-garbage -d as root?
<excelsiora>
I have system.autoUpgrade.enable = true;
<excelsiora>
which is probably why I run out of space?
<excelsiora>
I'll try -d
<energizer>
you can try it with root and see if it helps
<excelsiora>
holy crap -d is doing a lot now
<excelsiora>
that might have done it. thx.
lopsided98 has quit [Quit: Disconnected]
<lassulus>
-d is maximum deletion
<excelsiora>
I'm going to add some command aliases to my bashrc - where does that go in configuration.nix?
<lassulus>
you can also run something like nix-collect-garbage --delete-older-than 30d
<excelsiora>
thank God I think that did it... yes 46512.23 MiB freed
malik has joined #nixos
<lassulus>
environment.shellAliases is for aliases
<excelsiora>
oh, cool, I didn't know that one.
<lassulus>
normally I just run man configuration.nix and just search in there
<excelsiora>
I DID NOT KNOW THAT!
<excelsiora>
Nice!!!
<WilhelmVonWeiner>
energizer: nix repl
OmnipotentEntity has quit [Remote host closed the connection]
<energizer>
WilhelmVonWeiner: that's just how it shows newlines
<WilhelmVonWeiner>
oh
<WilhelmVonWeiner>
well then
<WilhelmVonWeiner>
all is well
OmnipotentEntity has joined #nixos
OmnipotentEntity has joined #nixos
OmnipotentEntity has quit [Changing host]
jco has joined #nixos
goodwill has quit [Quit: ...]
goodwill has joined #nixos
<colemickens>
Where does the list of Amazon images come from?
<colemickens>
Is it a hydra output somehow?
<{^_^}>
[nixpkgs] @adisbladis opened pull request #93716 → emacs: Add infrastructure for native-comp → https://git.io/JJ82H
sigmundv_ has quit [Read error: Connection reset by peer]
alp has joined #nixos
himmAllRight17 has quit [Ping timeout: 264 seconds]
<energizer>
pie_: do you know what we have to do to get that update merged?
<immae>
nature: so the locales are also somewhere in the store, and since by default they are *all* there they take a lot of place
<colemickens>
niksnut: aha, cool.
<nature>
okok, where show I start if I want to strip down every package that I don't need ?
<lassulus>
nature: as other distributions add additional features to packages when they get installed. nixos has to provide them in the default set, because we build the runtime for each package individually. so there is no: if a new package is installed activate this feature.
<immae>
There is one place that defines a "minimal" (not so minmal) set that will be always there
<timokau[m]>
nature: If you really want to go down that path, you could start with `nix why-depends`. There are more advanced / convenient tools available too
<immae>
nature: it’s not easy minimal, it’s a choice from the maintainers (as far as I remember there were some weird choices but I don’t remember where it’s defined)
<immae>
to prevent it you would have to do config.environment.systemPackages = lib.mkForce [ some other list ]; but it may have many unwanted side effects
<nature>
I am currently using arch and am really excited about nixos, I am simply looking for that feeling of controlling everything that I am installing ^^'
<immae>
I undersand :p
<lassulus>
nature: no, it's not enough to build most packages. it's more of a default configuration. beceause if you change dependencies of a package you have to rebuild it and most maintainers go with "enable most features by default"
<inquisitiv3>
Does the blog aggregator @ Nixos.org still exist somewhere?
<nature>
Is there any ressource for me to start with this overriding of the system default ? when I look at that list of system-path.nix for instance I don't care about nano ^^'
leungbk has joined #nixos
orivej has quit [Ping timeout: 258 seconds]
<nature>
Or maybe at least just strip the locale ?
orivej has joined #nixos
<immae>
stripping the locales would give you ~200M
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nature>
sorry for the noob question but where do I find the config for those locales then ?
<immae>
Just do it by setting `i18n.supportedLocales ['fr_FR.UTF-8']` in your configuration
<nature>
oh I did
<nature>
and you speak french it seems (so do I :))
<{^_^}>
[nixpkgs] @RomanSharapov opened pull request #93719 → tempita: fix sources location for tempita Python lib → https://git.io/JJ8ap
<immae>
(yes :p) . About overriding, my suggestion would be to practice writing configuration and all to understand how it works
<immae>
saddly that’s how I learnt so I have no good resources to give you
gthm has quit [Remote host closed the connection]
<nature>
okok, I was kind of expecting that, hence my first installation taking place inside a vm :D
<immae>
like trying to configure some services, and at some point you’ll have to override something deeper and that’s where you’ll start (hopefully) understanding the plumbing.
<nature>
but the amazing thing with nix is that I could override the default and just do a nix-rebuild switch to try to see if it breaks, am I correct ?
<immae>
yes
<nature>
:D
<immae>
except that a switch will "commit" everything, so if it breaks you may be unable to revert
<immae>
(like just running the command to cancel your change may become impossible)
<nature>
oh really ? if I reboot you can't select a previous generation in grub ?
<energizer>
immae: what are the unwanted side effects of systemPackages = mkForce [my list]?
knupfer has quit [Read error: Connection reset by peer]
<immae>
(I’m working on servers so i don’t have access to grub anyway)
knupfer has joined #nixos
<energizer>
immae: that seems like a problem in the design of system-path.nix
<nature>
aaaaah ok haha
knupfer has joined #nixos
oida has quit [Ping timeout: 240 seconds]
knupfer1 has joined #nixos
knupfer1 has quit [Client Quit]
knupfer has quit [Read error: Connection reset by peer]
<energizer>
immae: e.g. if instead of using let they defined config.defaultPackages and then systemPackages = config.defaultPackages, then i could defaultPackages = mkForce []
<immae>
energizer: yes, as it’s defined now you cannot override it without stripping everything else that may enter it
knupfer has joined #nixos
<immae>
energizer: that’s an idea
<energizer>
immae: is that the best solution?
<immae>
I don’t know :)
<nature>
thanks for all the insights immae :D I'll start playing around
oida has joined #nixos
<immae>
energizer: It seems reasonnable to me but others have deeper thoughts on it than me
<immae>
nature: enjoy!
<nature>
oh and last question immae wouldn't your nix servers happen to be rpi4 ?
<nature>
I just set i18n.supportedLocales = ["en_US.UTF-8/UTF-8"] and when I do a nixos-rebuild switch I still have the huge nix/store glibcLocales package, how do I remove it ?
<immae>
nature: that’s because the store is not emptied automatically. A nix-store --gc would remove every dangling derivations from the store
<immae>
But chances are that they are not dangling, since by default nixos switch keeps a history of your configuration
<immae>
(I may provide details but later. You may look for "generation" in the manual for more information about this history thing. In particular that’s what makes grub show you several versions to boot from)
<nature>
immae: nix-store --gc did work ! :D
<nature>
yeah I would be happy to have some details because I ran nix-collect-garbage and nix-store --optimise before but only nix-store --gc did remove it
alp has quit [Ping timeout: 256 seconds]
drakonis has joined #nixos
malik has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
orivej_ has quit [Read error: Connection reset by peer]
<moet>
nevermind, this is a case where i needed a more recent pin of all-cabal-hashes
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #nixos
justanotheruser has joined #nixos
<ornxka_>
is there a way to rebuild part of your system but not all of it..
<ornxka_>
like ive got a nix container but when i do nixos-rebuild switch it involves a bunch of stuff including copying 100+MB of secrets to a slow usb thumb drive
<moet>
ornxka_: there's a "--fast" option for nixos-rebuild which builds fewer things, but i don't know much about when it's appropriate to use
<moet>
ornxka_: docs say "Equivalent to --no-build-nix --show-trace. This option is useful if you call nixos-rebuild frequently (e.g. if you’re hacking on a NixOS module)."
<clever>
--fast will still copy all of the secrets to /boot/ every time
alp has quit [Ping timeout: 240 seconds]
<ornxka_>
ah i see
<ornxka_>
i wonder why it copies them every time..
<ornxka_>
at first i couldnt get it to work because it was using old secrets and not copying the new ones, now it copies even when there are no changes
fendor has quit [Read error: Connection reset by peer]
orivej_ has quit [Read error: Connection reset by peer]