<bdju>
my home-manager broke, I think after changing my login shell to zsh. I keep getting > file 'home-manager' was not found in the Nix search path (add it using $NIX_PATH or -I)
wanditoast has left #nixos [#nixos]
<bdju>
it was installed and working before this. I'm not really sure what to do
<bdju>
do I redefine $NIX_PATH in my .zprofile or .zshrc or something?
<pie_>
kernel building stuff is woven between os-specific/linux and all-packages
<inkbottle>
is "cairo" the right package for it?
<clever>
inkbottle: probably, start with `nix-shell -p cairo` and see what fails next
<inkbottle>
OK
<clever>
pie_: the stuff in all-packages mostly deals with building modules for every kernel
ng0_ has joined #nixos
<clever>
pie_: you probably want to start by adding a kernel under os-specific/linux, callPackage'ing in all-packages.nix, and then run linuxPackagesFor linuxSurface; to generate a linuxPackages set
<inkbottle>
I probably should install all of them, since the readme says they are required (note: real goal is to have the following work: https://github.com/jaredly/reason-maze)
lorimer has quit [Read error: Connection reset by peer]
<clever>
,library inkbottle
<{^_^}>
inkbottle: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<inkbottle>
clever: yes, I will
<inkbottle>
or won't as you prefer
lorimer has joined #nixos
<inkbottle>
The only thing I installed so far is "node2nix"
ng0 has quit [Ping timeout: 260 seconds]
<inkbottle>
and nix-build -A package failed with an error which I think is related to missing "packages"
<pie_>
clever: doesnt look like it uses callpackage; linuxPackages_5_2 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_5_2);
<pie_>
clever: my bad; linux_5_2 = callPackage ../os-specific/linux/kernel/linux-5.2.nix {
h0m1 has quit [Ping timeout: 250 seconds]
<inkbottle>
multiple-output derivations: OK
<pie_>
clever: random thought: making the .nix of a callpackage overridable and called with the same arguments :p
<inkbottle>
I did that: nix-shell -p cairo pango libjpeg giflib librsvg; and I'll try the "nix-build -A package" on this base
h0m1 has joined #nixos
m0rphism has quit [Ping timeout: 276 seconds]
iyzsong has joined #nixos
<inkbottle>
D...; I still have the same errors, including "./util/has_lib.sh: line 31: pkg-config: command not found"; but I think the "nix-build" process doesn't account for what has been installed with "nix-shell", right?
<inkbottle>
I have to put my packages in default.nix?
<inkbottle>
(note I did put pkg-config: in my nix-shell line
<inkbottle>
and the command is available from the prompt
<inkbottle>
despite some wrong elf types the deployment might have been successful
ng0_ has quit [Quit: Alexa, when is the end of world?]
<nh2[m]>
wedens: I haven't encountered the exact message `zlib must be installed in a compiler-visible path` yet, but I'm also not familiar with the `netbsd.compat` build. Can you explain me a bit what that is?
toppler has joined #nixos
<inkbottle>
Any idea now on how I do "npm start"; considering I do not even have npm installed?
<inkbottle>
bsb -make-world -w...
<inkbottle>
I try: nix-shell override.nix
<wedens[m]>
nh2: netbsd.compat was probably transitive dependency of systemd when doing musl build. as soon as I realized that something pulls systemd (it was postgresql), I removed systemd dependency and got rid of the problem.
<inkbottle>
nix-shell override.nix -A package...
<nh2[m]>
wedens: ah good. Btw, I've recently added a lot of PRs that make systemd integration configurable in e.g. postgres for that very problem, e.g. https://github.com/NixOS/nixpkgs/pull/61581
<{^_^}>
#61581 (by nh2, 24 weeks ago, merged): postgresql: Make systemd support configurable
<inkbottle>
Then: npm start; which results in: "bsb: command not found", but I feel closer to the goal
felixfoertsch23 has joined #nixos
hpfr has joined #nixos
felixfoertsch has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed commit from @otwieracz to nixos-19.09-small « Remove unnecessary `sentry-sdk` dependencies causing problems in python27 builds »: https://git.io/JegMQ
evils has quit [Quit: Lost terminal]
<hpfr>
working on packaging a simple package https://github.com/stoeckmann/xwallpaper. starting with a nix-shell with the dependencies, and autoreconf complains that it can't exec "aclocal"
<hpfr>
anyone got pointers?
<wedens[m]>
nh2: yeah, that's a nice flag to have. I had to do it the difficult way due to 19.03 nixpkgs :)
<inkbottle>
do have, with the above nix-shell command:
<inkbottle>
building '/nix/store/5phqi9vgdw7bbpqlz8mwwwpj0f09rhbb-bs-platform-2.2.3.tgz.drv'...
<inkbottle>
so why don;'t I have bsb?
<inkbottle>
there are no visible errors
<inkbottle>
I try "npm install bs-platform" inside the nix-shell...
<hpfr>
wedens[m]: alright. how am I supposed to approach learning what hooks are necessary for a package though?
<inkbottle>
It failed
fragamus has joined #nixos
Thra11 has quit [Ping timeout: 240 seconds]
<wedens[m]>
hpfr: nixpkgs manual. it's also helpful to look at existing derivations that use similar build process
octe has quit [Ping timeout: 246 seconds]
nbp has quit [Ping timeout: 244 seconds]
nbp has joined #nixos
<wedens[m]>
hpfr: look at mediatomb derivation. it's a simple derivation that uses autoconf
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
<hpfr>
wedens[m]: thanks, making progress
aw has joined #nixos
spacefrogg has joined #nixos
fragamus has quit [Ping timeout: 276 seconds]
<inkbottle>
Now I did: git clone bucklescript; then node2nix -d; then nix-shell -A package; I get no visible errors; but I *don't* have any command names "bsb". It's really maddening.
mexisme has joined #nixos
<inkbottle>
all the more since without errors I don't know what to fix
<hpfr>
wedens[m]: dumb question but why cant I reference packages with attribute names with a dot in them in the function inputs?
<wedens[m]>
for example?
fusion809 has joined #nixos
<hpfr>
wedens[m]: xorg.xcbutil,e tc
<hpfr>
* etc
Thra11 has joined #nixos
<wedens[m]>
how are you trying to use it? and what error do you get?
<hpfr>
wedens[m]: in the inputs `{ ... , xorg.xcbutil, ... }`, and I get unexpected '.' expecting expression
<hpfr>
and blank
<wedens[m]>
it's just `xcbutil`
<hpfr>
why don't I need the leading xorg.? how is it parsed
<hpfr>
wedens[m]: damn, autoreconfHook just werks™. thanks! finally have a wallpaper after 3+ months haha
toppler has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<evils>
is there a recommended pattern for dealing with an application that expects a config file in /etc and doesn't accept a config filepath as an argument?
<inkbottle>
About bucklescript bs-platform, that answer is one of the precious few I found (https://nixos.trydiscourse.com/t/bs-platform-install/1520/5); however my node2nix generated files look nothing near those from the post... I'll come back to it later
<{^_^}>
[nixpkgs] @contrun opened pull request #72664 → pam_mount: change order of lines in pam_mount.conf → https://git.io/JegQi
mexisme has joined #nixos
cassius has joined #nixos
<johnw>
how does one overrideDerivation such that the resulting derivation can be overridden again?
mexisme has quit [Ping timeout: 246 seconds]
<wedens[m]>
don't use `overrideDerivation`. it's mostly legacy. use `override` and `overrideAttrs` instead
<johnw>
ok
endformationage has quit [Quit: WeeChat 2.6]
<johnw>
that gives me `attribute 'overrideAttrs' missing` in a lot of cases where overrideDerivation works
<wedens[m]>
can you show the expression?
evils has joined #nixos
<wedens[m]>
`(x.override { a = b; }).overrideAttrs(old: { })`
<wedens[m]>
if you forget the braces, you'll get an error
<johnw>
ah, I see, thank you
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 40 commits to nixos-unstable-small: https://git.io/JegQd
lorimer has quit [Read error: Connection reset by peer]
lorimer has joined #nixos
toppler has joined #nixos
<{^_^}>
[nixpkgs] @dduan opened pull request #72675 → tre: init at 0.2.2 → https://git.io/Jeg7d
gerschtli has quit [Quit: WeeChat 2.6]
gerschtli has joined #nixos
thinkingeye has joined #nixos
<thinkingeye>
has anybody else a crashing "kontact" program? Its crashing on startup with the message: "KSycoca unavailable"
<thinkingeye>
An strace shows me that, if I try to start from konsole, it tries to access "/home/username/.cache/ksycoca5_de_ueVr0R4OmLUqIcToaW7uUJwVovU=". But it is not there.
captn3m0 has quit [Ping timeout: 240 seconds]
<ar>
thinkingeye: you're running kde, or trying to run kontact outside of kde?
<thinkingeye>
Yes, I am running a normal setup with sddm and plasma5
<thinkingeye>
I tried it already. No effect. But I get the following message if I am running that command:
<thinkingeye>
kf5.kservice.services: The desktop entry file "/run/current-system/sw/share/applications/qemu.desktop" has Type= "Application" but no Exec line
<thinkingeye>
kf5.kservice.sycoca: Invalid Service : "/run/current-system/sw/share/applications/qemu.desktop"
<thinkingeye>
I don't know if this has an effect
<thinkingeye>
However, there are other ksyoca5_de_... files in .cache directory. If I copy one of these as the missing ksyscoca name, I can start kontact from konsole
<chreekat>
I often feel like I'd appreciate a "don't build this locally" flag for derivations. For instance, if I point somebody at a repo and say "install Nix and run nix-shell to get a dev environment", I'd rather they get an error right off the bat if there's something wrong about the substituters.
m0rphism has joined #nixos
thinkingeye has quit [Quit: Konversation terminated!]
terlar has joined #nixos
mumuluxi has joined #nixos
freeman42x has joined #nixos
wucke13 has joined #nixos
andreas31 has quit [Remote host closed the connection]
sepi` has quit [Remote host closed the connection]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
Swant_ has joined #nixos
oida has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @etu opened pull request #72683 → emacs-nox: Add alias for emacs26-nox → https://git.io/Jeg57
<alexarice[m]>
chreekat: You could tell them to run nix-shell with `-j0` or something
<juhe>
Hi, I'm using rust-vim plugin configured using home-manager, though experiencing issues when saving any rust file, error message: "Unknown function: rust#GetConfigVar" - any idea?
__monty__ has joined #nixos
Thra11 has joined #nixos
toppler has quit [Ping timeout: 276 seconds]
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 37 commits to nixos-unstable-small: https://git.io/JegFa
<equivrel>
Does anyone know what happened to elpy in nixpkgs recently? both python36Packages.elpy and the emacs package seem to be missing all of the sudden...
<magnetophon>
hmmm, just downloading the patch and putting it in the pkg that way gives me: "can't find file to patch at input line 5"
peanutbutter144 has quit [Ping timeout: 268 seconds]
srhb_ is now known as srhb
ng0 has joined #nixos
civodul has joined #nixos
<dhess>
equivrel: the python package didn't do anything anymore, apparently. I'm using melpaPackagesNg.elpy with my emacs, though
cosimone has joined #nixos
ng0 has quit [Client Quit]
silver has joined #nixos
ng0 has joined #nixos
domogled has quit [Ping timeout: 268 seconds]
zibuhoker has quit [Quit: zibuhoker]
Chiliparrot has joined #nixos
<equivrel>
dhess: oh, I see. I am still struggling to find the emacs package, it seems to have moved...
<equivrel>
how do I get a package from melpaPackagesNg?
mexisme has quit [Ping timeout: 276 seconds]
<equivrel>
currently I am passing a list of emacs packages to (emacsPackagesNgFor pkgs.emacs).emacsWithPackages
hmpffff has joined #nixos
<{^_^}>
[nixpkgs] @gebner opened pull request #72698 → digimend drivers for graphics tablets → https://git.io/Jegbv
<dhess>
equivrel: (pkgs.melpaPackagesNgFor pkgs.emacs).emacswithpackages is what I use
<equivrel>
dhess: ah, I see. I take it you are not using emacs-overlay?
<dhess>
equivrel: I built my own, basically.
<dhess>
though my expression looks identical to yours except that I'm using melpaPackagesNgFor rather than emacsPackageNgFor, so I would imagine it works if you just substitute it
terlar has quit [Ping timeout: 240 seconds]
peanutbutter144 has joined #nixos
<equivrel>
dhess: mhm but I think emacs-overlay doesn't override melpaPackagesNgFor, so then I wouldn't be using the overlay, right?
<dhess>
equivrel: I guess I'm not exactly sure what emacs-overlay is doing, but if it's overriding emacsPackagesNgFor then probably not.
<equivrel>
dhess: wait, where is melpaPackagesNgFor coming from? I don't have that in pkgs
<dhess>
I assume emacs-overlay gives you some way to override its own packages, in which case, maybe you can just drop the melpaPackagesNg in there
<jtojnar>
Fridh did not now about this, thanks for the link
<dhess>
equivrel: I'm not using that nixpkgs at the moment. I just use it from time to time before a fix is upstreamed. So I believe that elpy is working fine in nixpkgs-unstable, anyway.
<equivrel>
dhess: I see. I still haven't figured out how to smoothly incorporate fixes that haven't reached the stable release. Maybe I should switch to unstable...
toppler has joined #nixos
nschoe has joined #nixos
<dhess>
equivrel: usually you can do it with an overlay, but every once in awhile (usually in a language-specific package set like pythonPackages or haskellPackages), an overlay won't do and you need to fork nixpkgs :\
<dhess>
it's pretty rare and better than any other package manager I've used, in any case.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Miyu-saki>
Uh
<Miyu-saki>
What if we use attrsets for buildinputs?
<Miyu-saki>
jk, that won't work
<Miyu-saki>
What I'm tryna do: Conditionally add a buildInputs.
<aanderse>
Izorkin: i'm not done with my apache PR yet, but when i am if you are able to test i would appreciate it
uzver has joined #nixos
rgrau has quit [Ping timeout: 264 seconds]
JonReed has joined #nixos
<aanderse>
i'm pretty sure enableUserDir won't work if we switch to non-root, so we might need to look at handling that if we really are going to switch to non-root as default... and provide a way to run as root easily for people who use features that require root
terlar has joined #nixos
<aanderse>
one goal is that the module should be very easy to run as root, or non root - so the code should handle both situations
<jtojnar>
FRidh what do you mean by ontinuing with the PR?
PyroLagus has joined #nixos
<JonReed>
Is there a way to import `./make-test.nix` from `nixpkgs`, like `nixpkgs.nixosTests.makeTests` (that path does not exist)?
<FRidh>
jtojnar: merging despite considering the readme
<JonReed>
Miyu-saki: What do you mean by `any` for equality?
<JonReed>
There's
chloekek has joined #nixos
<JonReed>
> (builtins.any (a: a) [ true false ])
<{^_^}>
true
<flokli>
jtojnar: just read back on the github issue
<flokli>
so what do we do with it?
zupo has joined #nixos
<jtojnar>
flokli we can either override the socket path in the unit (which will not work on multi-user machines), or stop using $GNUPGHOME
<jtojnar>
and I intend to write to gnupg-dev
<flokli>
jtojnar: well, setting a custom GNUPGHOME could imply you want to use another keyring completetly disconnected from your regular one. So not using the regular gpg-agent socket path sounds sensible to me.
<Izorkin>
aanderse: checked UserDir - need root access, or change permissions on / home / {username} (
<aanderse>
Izorkin: yeah, as expected... there are more apache modules which can require root. so *if* we switch to non-root as default, we need careful documentation to explain how to make it run as root and make it very simple
<{^_^}>
[nixpkgs] @magnetophon opened pull request #72710 → stone-phaser: init at 0.1.2 → https://git.io/JegNh
mexisme has joined #nixos
toppler has quit [Ping timeout: 265 seconds]
<Izorkin>
aanderse: you can see and testing the script for the webserver? I do not know how to make it so that it can be dynamically generated for several sites.
<aanderse>
Izorkin: sorry, what do you mean?
<Izorkin>
aanderse: I'm trying to make a script for simple site management
<Izorkin>
now it turns out with only one site
mexisme has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 2 commits to nixos-19.09-small: https://git.io/JegAm
<aanderse>
Izorkin: do you have example of what you want to be generated?
knupfer has quit [Quit: knupfer]
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed commit from @FRidh to nixpkgs-19.03-darwin « python35: 3.5.8 -> 3.5.9 »: https://git.io/JegFE
<JonReed>
Nix simply ignores the all attributes with kebab-case when passing attrs to the builder? I mean, `my-var = "test";` is valid in Nix, but "$my-var" is invalid in Bash.
<trepanne>
Greetings, nerds. Has anyone gotten scanbd rigged up on a NixOS host? I was happy to see the derivation, but it looks like it needs quite a bit of chewing gum and duct tape to place into service.
<talqu>
hi, i have this example derivation https://pastebin.com/GDuVSMkv. How do i add to my environment.systemPackages = with pkgs; [firefox, ...] in configuration.nix
nschoe has quit [Ping timeout: 265 seconds]
<worldofpeace>
colemickens: I don't believe there is data on this. Though there's great ideas with what we could do about this https://discourse.nixos.org/t/idea-yearly-nixos-community-survey/2814. I think it wouldn't look good if NixOS stable always had ESR as it's latest firefox, even ubuntu LTS 16.04.* has firefox 70. We release every 6 months...
<worldofpeace>
From my experience, it appears people who contribute to NixOS use unstable more. General users seem to use stable releases, some people even lack awareness about unstable.
<kaliumxyz>
anyone know any way to do KDE5 configuration declarative?
<immae_>
talqu: you can do `yourPackage = callPackage ./your_derivation.nix {};` and environment.systemPackages = with pkgs; [firefox yourPackage]
<ddima>
talqu: for starters, you can simply import it using `import ./foobar`, either assign it to some name in a let block and use later or have the import straight in your systemPackages. keep in mind though, that most package expressions do not themselves import nixpkgs but instead are a function that takes all the needed arguments and is then used via `callPackage`
<immae_>
but note that as far as I see your derivation is empty
<litschi>
Hey, I wanna run Borderlands 2 on my pc and it crashes on startup. In order to run it, I found an issue that says I need to add iana-etc to chrootenv's enviroment, but I dont know to to do it under nixos cause Im new on this disto ^^ hope can help
NoctisLabs has quit [Quit: WeeChat 2.6]
shibboleth has joined #nixos
<ilya-fedin>
How to clean up /nix/.ro-store on LiveUSB?
<clever>
ilya-fedin: you cant, its read-only
<clever>
ilya-fedin: the size is fixed when the image was made, and it never has free space
<ilya-fedin>
I have nerdfons in my configuration.nix and /nix/.ro-store has no free
<ilya-fedin>
space
<clever>
ilya-fedin: nerdfonts will never be written to .ro-store
<clever>
because its read-only
<clever>
ilya-fedin: you likely want more space on .rw-store instead
<ilya-fedin>
df -h
<ilya-fedin>
Oops
<clever>
ilya-fedin: also, is it the host or target that wants nerdfonts? nixos-rebuild or nixos-install?
<ilya-fedin>
nixos-install, I trying to install system with my configuration.nix and nerdfonts downloading was very log, but I got no free space error on end
<clever>
ilya-fedin: nixos-install writes to whatever you mounted under /mnt, so /nix/store doesnt matter much
<ilya-fedin>
"note build failure may have been caused by lack of free dis space"
<clever>
ilya-fedin: try doing `watch -d df -h` in another window, while nixos-install runs again, which one is running out?
<ilya-fedin>
Stop, it's note
chloekek has joined #nixos
<ilya-fedin>
curl: (23) Failed writing body (1786 != 16384)
<trepanne>
litschi: I had to downgrade libopenal as mentioned there.
<ilya-fedin>
:hmm:
<clever>
ilya-fedin: that does also agree that it could be out of space, youll want to watch df while it fails again
<ilya-fedin>
df reports that only /nix/.rostore has no free space
<clever>
ilya-fedin: ignore that one, look at which one looses space as nixos-install downloads nerdfonts
<ilya-fedin>
It's was second try of installing
<ilya-fedin>
It's time for third try...
<litschi>
ok thanks trepanne
<clever>
ilya-fedin: can you pastebin the entire df -h output?
<xd1le>
in a nix expression for a package where the shell commands are run, isn't the src available in the same directory?
<clever>
xd1le: the unpackPhase will copy $src to the current dir
<clever>
xd1le: you can also just add pwd and ls -lh to the commands, to see waht is happening
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @FRidh opened pull request #72713 → gcc8: make building w/LTO support optional, fixes eval → https://git.io/JegpZ
<{^_^}>
[nixpkgs] @zokrezyl opened pull request #72714 → zmalllinugz: init at 5.3.8 (linux kernel version) → https://git.io/Jegpc
<litschi>
trepanne: ok just the nostartupmovies flag brought it to launch ^^
ddellacosta has joined #nixos
<trepanne>
litschi: great. easy-peasy
selfsymmetric-mu has quit [Remote host closed the connection]
<ilya-fedin>
clever: i think it is internet connection issues
<xd1le>
clever: ty, so the patch phase should have it
<clever>
xd1le: yeah
<xd1le>
i just see someone using pwd in a PR to nixpkgs
<xd1le>
which I guess they don't need
<talqu>
https://pastebin.com/pJZrW6kM, i get this error after executing `nixos-rebuild --switch`: variable $src or $srcs should point to the source
<talqu>
what is it im doing wrong here?
<clever>
talqu: line 6-9, that derivation is lacking a src=
<immae>
talqu: that’s what I said earlier, your derivation is empty, what you’re probably looking for is buildEnv
<clever>
talqu: i think you want to just put myScript directly into systemPackages, rather then use it in another thing
<ilya-fedin>
Is it possible to somehow force nixos-install to show build output, including curl output, and not just a progress bar with the number of installed packages?
<clever>
ilya-fedin: not sure
<ilya-fedin>
:(
o1lo01ol1o has joined #nixos
toppler has quit [Ping timeout: 265 seconds]
JonReed has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}>
#9473 (by peti, 4 years ago, closed): ikiwiki test suite is broken
<clever>
dhess: does perlPackages have a .extend or .overrideScope' attr?
<dhess>
it has override
<dhess>
and overrideDerivation
<clever>
dhess: check all-packages.nix to see how perlPackages is made
<dhess>
recurseIntoAttrs
hmpffff has joined #nixos
<dhess>
wow it blows my mind that nobody has ever needed to do this with Perl
knupfer1 is now known as knupfer
<dhess>
maybe that's a testament to how good CPAN is? I dunno :)
equivrel has quit [Remote host closed the connection]
<FRidh>
aside from volth not many people contribute to perl-packages.nix
<dhess>
huh, that is amazing.
<ilya-fedin>
clever: no, it turned out that, after all, there was a problem with free space. Plasma notifies that there is no space in /home, at that moment I did `df -h` and found that the root was 100% used. After that, the installation failed and df began to show that 10% was used.
<talqu>
clever: immae, thanks and sorry im very noob yet. https://pastebin.com/Z8SkN0wM this already works and I like it cause this way i can separate lots of helper shell scripts from polluting my configuration.nix visibility. One more doubt i have: when doing `import ./hello.nix`, hello.nix file starts with { pkgs, ... }. Does that mean that import implicitly passes packages as argument?
<nh2[m]>
A few packages move .a files to a `$dev` output. This seems bad to me, because that makes the pkg-config `.pc` file wrong (the `libdir` is the non`-dev` one). Any opinions?
magnetophon has quit [Ping timeout: 265 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<immae>
talqu: it doesn’t pass packages, it passes something else that contains in particular the packages: config, pkgs, etc.
<immae>
(I don’t know the exact list nor where you could get that information, maybe someone else do)
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/Je2eO
<talqu>
create a ghc pure shell i get this error: `/nix/store/63karsgdg7fm3q0if4zfd7apbd8ac1ci-stdenv-linux/setup: line 804: /run/user/1001/env-vars: Permission denied`.
<chris__>
I'm trying to search for a package with `nix-env -qaP '*nvim*'` but it fails with `error: regex error`.. Any ideas?
<clever>
chris__: there is a neovim package
gkmngrgn has joined #nixos
<chris__>
clever: Thanks I just used that as an example though, I'm familiar with the web front end as well, but I'd like to search an older channel (19.03) - while onl 19.09 / unstable seems to be available.
<chris__>
Okay I figured I can instead just use `*` and grep the results afterwards.
<clever>
chris__: i usually just tab complete in `nix repl '<nixpkgs>'`
bhipple has quit [Read error: Connection reset by peer]
reallymemorable has quit [Quit: reallymemorable]
reallymemorable has joined #nixos
<arianvp>
Is there a way to know before you do a rebuild-swithc that your entire desktop gets killed
toppler has joined #nixos
<arianvp>
Just lost a whole bunch of work whilst updating :'(
<gchristensen>
dry-activate instead of switch
<arianvp>
wha are the services I should look out for though
<clever>
arianvp: though its configured to not restart display-manager, so any actual restarting is a bug due to something else causing breakage
<tilpner>
arianvp: If display-manager.service is not present in the new config, it will kill your desktop session
drakonis_ has joined #nixos
<tilpner>
(Or used to, haven't tempted it in a while)
<chris__>
I'm trying to understand why a specific Haskell package is needing to be built, in order to enter a nix-shell environment. Thought I'd check to see if the package is available in nixpkgs, however... `nix-env -v -qaP '*'` does not seem to list any Haskell packages - are these stored some where else?
<clever>
worldofpeace: that service should be similarly flagged, like display-manager, to not auto-restart
<clever>
chris__: which package? does it successfully build?
srhb has quit [Changing host]
srhb has joined #nixos
asymmetric has quit [Changing host]
asymmetric has joined #nixos
<arianvp>
what does !bin mean in a derivaiton path?
<chris__>
In this particular case `HUnit`. It will probably succesfully build, but I'd like to determine why it's taking this long - why is it building unncessary packages - when surely they're in the nixpkgs binary cache?
<gchristensen>
that is a multi-output derivation, and it is selecting the "bin" output
talqu has quit [Remote host closed the connection]
<arianvp>
ah
<arianvp>
how do I feed that to nix-store --query?
<{^_^}>
grafana/grafana#13802 (by jschill, 1 year ago, open): Remove PhantomJS
drakonis_ has quit [Ping timeout: 265 seconds]
<chris__>
clever: Ohhh right... Probably then I'm looking for a way to search the nixpkg's binary cache instead then? So I can see if the package I'm 'building' is present there or not? Would this hydra? Can I search that?
<clever>
chris__: 404 means that directory is not in the binary cache
<lejonet>
flokli: well, maybe a bit less crowded space would fit for that :P I was thinking about the whole tmpfiles thing for the /var/lib/ceph dir and I don't really think we can use tmpfiles for that, because they simply aren't temporary and their lifecycle is a lot longer than the daemons
<clever>
chris__: and the path doesnt match what hydra has for that rev
gkmngrgn has quit [Ping timeout: 276 seconds]
<clever>
chris__: can you link a github repo with your nix exprs?
<clever>
Miyu-saki: it doesnt need to, thats more of a side-effect of the de-perling, nix-build was once a perl script that ran nix-instantiate and nix-store -r seperately
<{^_^}>
[nixos-homepage] @asymmetric opened pull request #318 → Rename Support to Learn → https://git.io/Je2JH
lord| has joined #nixos
<clever>
chris__: line 2 of shell.nix doesnt really do anything, does it behave any different if you switch to pkgs.haskellPackages, instead of pkgs.haskell.packages.${compiler} ?
<clever>
chris__: i think hydra is only pre-building for ghc 8.6.4, and your forcing 8.6.5
<chris__>
clever: ohhh that makes a lot of sense.. Giving it a test now
<kraem>
where are the help msgs located? can't find the `nix` program on github. thought i would be able to help by updating them
sweep has joined #nixos
DanC has quit [Remote host closed the connection]
sweep is now known as genesis
<clever>
kraem: scattered around the source code
genesis has joined #nixos
genesis has quit [Changing host]
DanC has joined #nixos
oida has joined #nixos
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to release-19.09: https://git.io/Je2Jx
DanC has quit [Remote host closed the connection]
<chris__>
clever: Ahhh that seems to have fixed it - it's built without any additional building going on. Appreciate all the debugging help!
<kraem>
i guessed.. where should i be looking for the source code for `nix`?
<clever>
tomberek: there is also `nix path-info` to do the same
<tomberek>
yeah, i'm just trying to learn the structure. perhaps make a utility that directly interacts with the daemon without calling the nix executable
<arianvp>
clever: im not very familiar with the module system. how does the apply function affect type-checking?
fendor__ has quit [Quit: Leaving]
<clever>
arianvp: i'm not sure when apply comes in effect either
talqu has quit [Remote host closed the connection]
<arianvp>
ill just open an issue
<clever>
tomberek: you can also make a utility that links into the libstore library
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nix] @kraem opened pull request #3202 → Update nix eval --help msg to not include deprecated command → https://git.io/Je2UO
<clever>
tomberek: if you open the "auto" store, it will auto-detect if you can read db.sqlite directly, or need nix-daemon, and then return a Store*, with virtual functions to deal with the differences
<clever>
tomberek: it will also support things like "local?root=/mnt", which reads /mnt/nix/var/nix/db
<clever>
tomberek: and also ssh://user@host to query a remote box
<tomberek>
clever: that sounds good. I'm not super proficient in creating a new C++(i presume that would be the simplest?) tool, vice modifying one. Do you know of an example program that links to libstore that I can learn from?
<tomberek>
(it's still nice to learn the bit-by-bit protocol)
<lejonet>
flokli: well, its not so much the name but the fact that cleanup to clean up actual tmpfiles might wipe those out too
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @bandresen to release-19.09 « calibre: add markdown to inputs »: https://git.io/Je2UG
<flokli>
lejonet: that's why there's a "-" in the age field ;-)
<flokli>
we use it quite widely to describe file system structures in a slightly more declarative fashion
<Dandellion[m]>
clever: yeah I tried it from a VPN and it works fine in the US
<lejonet>
flokli: I'm not fully read up on the whole tmpfiles.d thing, but iirc a call to --delete (as is "supposed" to be called at shutdown) will remove even those without a age parameter, but its fully possible that I've misunderstod the system
<Dandellion[m]>
germany too
<clever>
Dandellion[m]: what IP does it resolve to in each region?
hmpffff has joined #nixos
<flokli>
lejonet: that's the --remove option, and only applies to D,R,r,R types
<flokli>
and these are the create-and-cleanup/remove counterparts. We don't use them to create a file system structure
<lejonet>
flokli: I see
JonReed has quit [Remote host closed the connection]
<Dandellion[m]>
clever: 208.91.197.132 where it doesnt work (norway)
<Dandellion[m]>
which is unifwd.com
<clever>
$ dig freedesktop.org
<clever>
freedesktop.org. 14126 IN A 131.252.210.176
<lejonet>
Then I don't really object to using that system to create the filestructure, as the permanence and existence before any daemon is started seems to be possible to guarantee
<clever>
Dandellion[m]: can you pastebin the whole output of dig freedesktop.org +trace when its failing?
<lejonet>
oh its not just me that can't access freedesktop.org?
hexa has joined #nixos
<{^_^}>
[nixpkgs] @jonringer opened pull request #72733 → update-python-libraries: only bump default.nix → https://git.io/Je2Ug
<lejonet>
clever: http://dpaste.com/32Q1T1Q is the one I get, I can ping freedesktop.org but can't access for example the pages for tmpfiles.d
<clever>
lejonet: thats the same IP i get, and the nameservers look right
<lejonet>
Maybe someone tripped on the cable connecting scandinavia then
<lejonet>
(I'm in Sweden and I see Dandellion[m] mentioned Norway)
<clever>
lejonet: that would cause connection timeouts, not an entirely different webpage
<edef>
freedesktop.org domain expired
<edef>
see whois info
<lejonet>
clever: oh I get timeouts
<clever>
edef: oh, maybe caching in the dns network is causing some people to see the "wrong" info (the old ip)!
<clever>
and the error is the right answer!
<Dandellion[m]>
edef is right, seems like our dns is actually the correct one
<lejonet>
edef: I get a expiry date in 2024 when I do whois
ddellacosta has joined #nixos
<lejonet>
but it was updated today so most likely someone noticed it and fixed it today
<edef>
it definitely got updated to expire earlier today
<edef>
:p let f = with lib; x: if isAttrs x then flatten (map f (attrValues x)) else [ x ]; in f { a = 1; b = { c = 2; d = { e = 3; }; f = 4; }; } # cc tdeo
JonReed has joined #nixos
<edef>
hm, i figured the bot would run that
<edef>
> let f = with lib; x: if isAttrs x then flatten (map f (attrValues x)) else [ x ]; in f { a = 1; b = { c = 2; d = { e = 3; }; f = 4; }; }
<{^_^}>
[ 1 2 3 4 ]
<infinisil>
> collect (x: ! isAttrs x) { a = 1; b = { c = 2; d = { e = 3; }; f = 4; }; } # Or this tdeo
<{^_^}>
[ 1 2 3 4 ]
<tdeo>
ooh, that's shorter than what i have thanks
<JonReed>
Based on how they support different arguments as shown by `--help`, I assume that `nix-build` and `nix build` are two different things, right? How are they different? Can `nix-build` use `--no-sandbox`?
<JonReed>
Or rather, why are they different?
<tdeo>
mine was `attrValuesRecursive = attrs: mapAttrsToList (k: v: if isAttrs v then attrValuesRecursive v else v) attrs`
<evanjs>
Mmkay so looking at tests in https://github.com/NixOS/nixpkgs/pull/72633 — going to look at `cargo insta`, which the tests seem to use, and see if I can run it in `preCheck` or something, but does anybody else have advice on network access during `cargo test`?
<bobbles>
I am using radicale (via nixops), and would like to use radicale_infcloud, but I can't figure out how to get radicale to see the radicale_infcloud module. I tried adding `(python37.withPackages (ps: (with ps; [ radicale_infcloud ])))` to systemPackages, but that didn't work. Complete python on nixos noob, so a little help would go a long way.
<infinisil>
> collect (flip pipe [ isAttrs not ]) { a = 1; b.c = 2; }
<{^_^}>
[ 1 2 ]
<edef>
:3
<edef>
collect seems neat anyhow
juhe has left #nixos ["Leaving."]
<infinisil>
There's a bunch of useful functions in nixpkgs lib, rarely get to use them though
<JonReed>
bobbles: I meant `services.radicale.package`. You will have to set that to the package that you want to use. So, that would be radicale with all the modules you need.
chreekat has quit [Quit: quitting]
chreekat has joined #nixos
oldandwise has joined #nixos
<oldandwise>
i need some help. How do I modife the 'ExecStart' of pcscd? So far I've tried https://termbin.com/q40rc
cosimone has quit [Quit: Quit.]
<bobbles>
JonReed: Thanks! So I need to pass a radicale package that has the module included? How do I do that? Is there an example I can follow?
<hyperfekt>
Getting 'ERROR: "gcc" either does not exist or does not work' when trying to add wnoerror flags to nix_cflags_compile - anyone got an idea what could be going on?
ee194350 has joined #nixos
alter2000_ has joined #nixos
<JonReed>
bobbles: I'm helping you completely blind, because I never used radicale, but I would try something like this `services.radicale.package = (pkgs.radicale2.overrideDerivation (oldAttrs: { propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [ pkgs.python3Packages.radicale_infcloud]; })) `
<oldandwise>
infinisil: error: undefined variable 'lib' at /etc/nixos/configuration.nix:143:52
<clever>
oldandwise: add lib to the function args on line 1
<infinisil>
JonReed: bobbles: Don't use overrideDerivation though, use overrideAttrs instead
<JonReed>
bobbles: Not guaranteed to actually work, because I haven't tested it. But the idea is making the `radicale_infcloud` visible to `radicale` by adding it to its propagatedBuildInputs. And, yeah, there are probably more elegant ways to do it.
work_ has joined #nixos
<{^_^}>
[nixpkgs] @risicle opened pull request #72739 → shogun: switch to using opencv3 → https://git.io/Je2k9
<oldandwise>
clever: sorry, where and how do i do that? The entire line is now: https://termbin.com/l2x5
shibboleth has quit [Quit: shibboleth]
<clever>
oldandwise: thats not line 1
<infinisil>
oldandwise: He meant line 1 of your file, which probably looks like `{ pkgs, ... }:`, you need to add the lib argument like `{ pkgs, lib, ... }:`
<oldandwise>
the entire configuration.nix is a lambda implementation and the topmost line 1 are the args in set...
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 6 commits to nixpkgs-19.09-darwin: https://git.io/Je2kb
<infinisil>
oldandwise: Pretty much
<oldandwise>
feeling like a pro, this time.. thanks men
<infinisil>
There's all kinds of people here, not just men :)
<gchristensen>
<3 infinisil
<{^_^}>
infinisil's karma got increased to 153
<oldandwise>
infinisil: going back to your suggestion on stateful config? What's the advantage?
<worldofpeace>
cheers to that :P
<gchristensen>
infinisil, thanks for that, was just writing a PM about it :)
<bobbles>
JonReed, infinisil: Thanks, I'd almost got there! I only forgot to add `oldAttrs.propagatedBuildInputs` back in. Now it's working. Thanks for the help!
bvdw has quit [Read error: Connection reset by peer]
DanC has joined #nixos
<infinisil>
oldandwise: Oh because you put /tmp/...conf there, so I thought you wanted to be able to change the config statefully at runtime
<JonReed>
bobbles: Np!
<infinisil>
Not declaratively in your configuration.nix (which is what the module should support already)
bvdw has joined #nixos
<infinisil>
oldandwise: Or what are you trying to achieve with the ExecStart override?
<oldandwise>
infinisil: well, i've been able to play around with this daemon in ubuntu easily and manually. I'm trying to do the same in nixos to understand how nix works
<oldandwise>
infinisil: first, i've been having a hard time in nixos controlling these daemons or services because they are tied in configuration.nix and the way to change the ExecStart is deep into the rabbit hole ...
<infinisil>
oldandwise: Ideally you would'nt have to change ExecStart at all, the module should support everything in its options
<infinisil>
Whatever customizations you need
<oldandwise>
infinisil: what module? For sure, there are several variations in a dameon's args that nixos cannot cover.. so these customizations must be easily done
<infinisil>
oldandwise: Then the module should expose an option like `extraArgs` where you can pass arbitrary arguments to the start command
<oldandwise>
is it possible, to have this effect in my home folder and not in /etc/nixos/configuration.nix ?
<infinisil>
Not sure what you mean by that?
<oldandwise>
the configuration.nix is system-wide, as far as i understand. I only want to modify the behaviour of one daemon's setting...
MightyJoe has joined #nixos
<infinisil>
oldandwise: The daemon is part of the system however, not part of your user
Diagon has quit [Quit: Leaving]
<infinisil>
And in NixOS system configuration is done through configuration.nix
<oldandwise>
infinisil: agree. How do I do the same change, this time, using extraArgs? Right this is working https://termbin.com/wyt9
cyraxjoe has quit [Ping timeout: 265 seconds]
chloekek has joined #nixos
<oldandwise>
i'm doubtful how extraArgs behave? If just appending, then it won't work coz i need to redirect the config file location...
<oldandwise>
ie, i need completely control ExecStart line... so whatever is extraArgs for, it only confuses things...
<infinisil>
oldandwise: What's your usecase?
bhipple has joined #nixos
<infinisil>
Usually modules could expose a `configFile` option to change the config file too
copy` has joined #nixos
<oldandwise>
infinisil: for example, by default when I do `ps -ef | grep some-daemon-process`, then seeing the daemon is running as 'some-daemon-process -a -b -c -d -e /nix/store/xxxxxx-some.conf'
<oldandwise>
infinisil: then, i want to completely change it by 'some-daemon-process -a -x -y -e /tmp/test.conf'
<oldandwise>
how can extraArgs help here?
<oldandwise>
the best thing to do is to completely override the ExecStart... the surest way
<infinisil>
extraArgs could be set to "-a -b -c -d -e" by default, then you could change the default to your own thing, similarly with the config file
<infinisil>
But yeah, if you just want to change ExecStart to whatever, you'd just set ExecStart directly
<oldandwise>
i mean, it is bad for nix to second-guess what the daemon wants!?
<infinisil>
NixOS module should give a good experience for users who want to do some reasonable customizations
<infinisil>
oldandwise: Huh what?
<oldandwise>
explicit override of ExecStart is the simplest way to go..
<infinisil>
What I'm asking though, what's your use case with pcscd?
toppler has joined #nixos
<infinisil>
Because it might make sense to have the module expose options for command line flags too
<infinisil>
If they're useful
<infinisil>
If somebody needs to change ExecStart just to satisfy a common usecase then the module kinda failed in my eyes and it should be adapted to allow for that
<oldandwise>
can these ExecStart changes I did be incorporated inside a shell.nix or default.nix? Something that is operational after a nix-shell ?
<clever>
oldandwise: shell.nix cant do anything systemd based
<infinisil>
oldandwise: I'm still asking: What Is Your Usecase
<oldandwise>
infinisil: My usecase for pcscd is to add the --apdu option to see explicit logging of messages.. and then I thought that if i can redirect the config to somewhere, i can gain further settings there...
andrewrk has joined #nixos
abathur has joined #nixos
<andrewrk>
hey so I just ran sudo nixos-rebuild switch --upgrade on the unstable channel and I'm getting "error: cannot download osxupd10.11.5.dmg from any mirror" but this is linux, why is it trying to download from https://support.apple.com/downloads/DL1877/en_US/osxupd10.11.5.dmg ?
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 3 commits to nixos-19.09-small: https://git.io/Je2IW
<hyperfekt>
I got NIX_CFLAGS_COMPILE to work by setting it in the preConfigure script instead of in mkDerivation's attrset - it's not supposed to be like that, is it?
<infinisil>
oldandwise: I see, the config file you should be able to write with just `services.pcscd.readerConfig = "contents"`
<infinisil>
And if I were to do changes to the module I'd indeed add an extraArgs option, defaulting to `-x`
<infinisil>
Such that you could do `extraArgs = [ "-a" ]` to do that
<infinisil>
So yeah, for now changing ExecStart manually is the only way to make the daemon do what you want, but ideally just `extraArgs = ["-a"]` would be needed
<oldandwise>
thanks infinisil ... i will try these methods just so I can familiarize more on the nix fields
talqu has joined #nixos
<talqu>
join $
<gchristensen>
andrewrk: if you don't use exotic firmware, you can disable enableAllFirmware
<talqu>
join #emacs
<andrewrk>
thanks gchristensen it's just the killer wifi thing, maybe I can get away with that
<colemickens>
I have Killer in my xps 13 and it's fine without AllFirmware
oldandwise has quit [Quit: leaving]
daniel_duan has joined #nixos
<colemickens>
Why would my network interfaces be getting two ipv4/ipv6 addresses?
noudle has quit []
<colemickens>
It's weird too, my wlan0 has two IPs that look like DHCP leases from my router, but my enp57s0u1u3 got one that looks valid and one that came from I-dont-know-where I don't recognize that ip range.
<gchristensen>
that is totally fine actually
<nahamu>
peterhoeg[m]: I see you very recently landed an improvement for displaylink. I'm excited to try it when unstable next updates. Thanks!
magnetophon has joined #nixos
<clever>
colemickens: any 169's?
<colemickens>
Yeah, it doesn't seem to be hurting anything, it's just unexpected and seems to be a ... new feature that I don't think I opted into.
<colemickens>
clever, no, the one that looks out of place is 10.42.0.1... I'm not running libvirtd, docker, or have any bridges or anything special configured anywhere either, afaik.
<clever>
colemickens: do you see a unit like this, for the IF?
<colemickens>
aha, I take that back, that address is from having marked the ethernet as "shared" in NM when using my laptop to passthrough wifi->ethernet in a pinch.
<colemickens>
but my wlan0 still looks funny with two local ips, wonder if that's more dhcpcd weirdness.
<nahamu>
(I have a DL-3500 device that I'd like to get working)
<colemickens>
ip addr, one says "dynamic" and one says "secondary", I wonder if this IS a new feature, or a result of switching to IWD that I just now noticed?
<clever>
colemickens: i dont use network manager, so ive never seen something like that
daniel_duan has joined #nixos
<daniel_duan>
Is this the right place to ask about nixpkgs PR questions?
<gchristensen>
yep!
<infinisil>
Here or #nixos-dev is fine too :)
alter2000_ has quit [Ping timeout: 240 seconds]
<daniel_duan>
nice! I'm very new to NixOS. Trying to add a new package to nixpkgs and couldn't figure out why CI is failing: https://github.com/NixOS/nixpkgs/pull/72738, I did notice when i run `nix-build -A tre-command` locally, I get a similiar error. But have no idea how to fix it
<selfsymmetric-mu>
daniel_duan: What error did you get?
fendor_ has joined #nixos
<daniel_duan>
docs don't mention anything regarding lib/customisation.nix. The error I get is `attempt to call something which is not a function but a set, at lib/customisation.nix:69:12`
<infinisil>
daniel_duan: You can't use <nixpkgs> in nixpkgs itself
<infinisil>
Replace the first line of the derivation with `{ rustPlatform, fetchFromGitHub, stdenv }`
<daniel_duan>
I see
<selfsymmetric-mu>
infinisil++
<{^_^}>
infinisil's karma got increased to 154
<daniel_duan>
that actually gets rid of the error I was seeing :)
<kraem>
how do i
<infinisil>
daniel_duan: Explanation: `callPackage ../tools/system/tre {}` does about this: `import ../tools/system/tre pkgs`, so it imports the file, then calls it with the arguments of all packages
<infinisil>
But the file didn't declare a function, but a set
<kraem>
oops. how do i browse the nixos configuration in the nix repl? with ':l <nixos> ' i can only find 3 variables under config.
<infinisil>
That's where the error comes from
<clever>
kraem: that loaded the nixpkgs under the channel called nixos
<clever>
kraem: you want <nixos/nixos>
<kraem>
clever: ah thanks! what should i read to understand why that works?
<daniel_duan>
that makes sense infinisil!
<clever>
kraem: try to eval just plain <nixos> and <nixos/nixos> in the repl
<infinisil>
clever: kraem: Or better yet `<nixpkgs/nixos>`, which is more standard
<clever>
infinisil: yeah, i usually say that to make it more obvious what is happening
<clever>
infinisil: but that may use a different channel then what nixos-rebuild uses
<infinisil>
clever: Pretty sure nixos-rebuild uses whatever <nixpkgs> is
<selfsymmetric-mu>
So, adding `services.signal` got blocked by the fact that `signal-cli daemon` doesn't work on NixOS. I put up a bug for that specific issue: https://github.com/NixOS/nixpkgs/issues/72737
<kraem>
clever: so evaluating one is only the nixpkgs. is the syntax <nixpkgs/nixos> relevant to fp languages or is it specific to nix?
romildo has quit [Client Quit]
romildo has joined #nixos
<clever>
kraem: think of #include <foo/bar.h> in c/c++
risson has quit [Quit: Pouet. WeeChat 2.6]
<clever>
kraem: it just looks in the -I/usr/include path, for /usr/include/foo/bar.h
<romildo>
How to use fetchFromGitHub with a given branch?
<clever>
romildo: thats not pure, you should always use a git revision
talqu has joined #nixos
zupo has quit [Ping timeout: 245 seconds]
leothrix has quit [Read error: Connection reset by peer]
<romildo>
clever, is it just using the revision of the latest commit in the branch of interest, for example?
leothrix has joined #nixos
FRidh has quit [Quit: Konversation terminated!]
<clever>
romildo: yep
<romildo>
clever, thanks
cosimone has joined #nixos
zupo has joined #nixos
risson has joined #nixos
<talqu>
Hi, i accidentally removed my hardware-configuration.nix file. Doing rollback wont recover the physical file. What are my options now to recover it? Can i maybe regenerate it again?
<clever>
talqu: nixos-generate-config
<kraem>
clever: wouldn't ':l <nixpkgs>', as the parent 'dir', include <nixos> somewhere then?
<clever>
kraem: it just loads the default.nix in <nixpkgs>
gagbo has quit [Ping timeout: 276 seconds]
<clever>
kraem: and that root nixpkgs ignores the nixos dir, and just gives you the nixpkgs package set
<talqu>
clever: thanks. Anyway, i'd to config root to move stuff to some .trash folder (like a normal user). Do people do this? How would I config this on nixos?
cswl has quit [Quit: Connection closed for inactivity]
<DigitalKiwi>
zfs auto snapshots?
<infinisil>
talqu: You want the `rm` command to not remove stuff but instead move them to a .trash folder?
<clever>
talqu: i would just `alias rm=rm -vi`
<clever>
then it will ask to confirm every time it deletes
<infinisil>
I think it's less about confirming but rather about recovering stuff you later realize you didn't want to delete
<infinisil>
I'd also go for zfs snapshots though :)
<kraem>
clever: that makes sense. the 'nixos dir' it includes is /etc/nixos ?
gagbo has joined #nixos
<talqu>
yeah, it's about recovering. So i've created a git repo in my /nixos folder and then didn't think i was root, I discarded the stage hardware-config.nix with magit accidentally. Wula, i've just deleted it forever :)
<deni>
I'm trying to figure out if I write `service.foo.enable = true` if that automatically adds the package to systemPackages and therefore installs it or it on me to do that?
<clever>
deni: you should read the module for foo, and see what it does when enable is true
logzet has joined #nixos
<deni>
clever: sure but I'm wondering about best practices and what to expect
fendor_ has quit [Ping timeout: 265 seconds]
<clever>
deni: depends on if your meant to be running it on the cli often or not
<clever>
for things like postgresql and mysql, its expected that you get a psql and mysql binary, so you can interact with the daemon
leotaku has joined #nixos
<deni>
like I gather that sshd is somewhat special and get's installed with the base system cause when I enabled the service in my configuration.nix I dind't have to add it to systemPackages for it to work
<clever>
for things like openvpn, you cant interact with it
<clever>
you will never need to add something to systemPackages to make it work
<clever>
but you may not be able to interact with it after it starts, depending on what it is
<deni>
clever: Oh I see...so the idea is that when I add something to systemPackages it's in my path and I can interact with it via whatever binary it provides.... and if it's just something that I want to be able to start via systemctl I don't have to add it to systemPackages. But then my question is....how does a hypothetical `service.openvpn.enable` work then if it doesn't add itself to system packages?
<deni>
My understanding that only stuff in that list get's installed. But you're saying there's another list?
<clever>
deni: the systemd services always ignore the system wide PATH, and use their own PATH value
<colemickens>
deni, "installed" is a fuzzy word there
<deni>
colemickens: yeah I guess I'm trying to learn the nomenclature and the idea behind how thing work
<{^_^}>
[nixpkgs] @alyssais opened pull request #72744 → dtc,python.pkgs.libfdt: drop python buildInput → https://git.io/Je2LM
<deni>
clever: yeah I'm using PATH colloquially here.... but I get that it's using it's own PATH that the derivation set
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<deni>
I guess a service just needs to be built...via "callPackage" or something like that...and then the systemd service can just reference it.... but there doesn't have to be a symlink in my user's "path"
<deni>
does that sound about right?
<clever>
deni: basically, any string you refernece, gets copied to /nix/store, it doesnt have to be in a magic variable to be downloaded
<clever>
deni: callPackage typically returns a string, saying where to find the binary
leotaku has quit [Ping timeout: 240 seconds]
knupfer has quit [Ping timeout: 264 seconds]
<deni>
clever: I haven't really figured out what callPackage does but I did see it here and there. I'm trying to get an intution about how nixos is wired together...I have an ok understanding of things in isolation but not how everything works when wired together
<clever>
deni: callPackage just imports another nix file, and calls the function within, passing it arguments from pkgs.
melling has quit [Quit: WeeChat 2.6]
<manveru>
> builtins.functionArgs ({call, me ? "maybe"}: call me)
<{^_^}>
{ call = false; me = true; }
<deni>
oh so perhaps my misunderstanding is about what a service is... my understanding was that the derivation for installing a package is in pkgs and the service was a wrapper around that (that calls the derivation and installs it) that adds stuff like configuration and similar. is that not so?
<clever>
deni: a service is just another derivation, that generates a systemd .service file
<clever>
deni: and nixos then just shoves all of those .service files into a single directory, and drops a symlink in /etc/systemd/system/ pointing to that dir
<talqu>
how do achieve this: `nix-shell a.nix b.nix`. I get an error nix-shell requires a single derivation
<clever>
talqu: why do you want to load 2 files at once, are you trying to get the deps of both, or the result of building both?
philr has joined #nixos
gnidorah has quit [Quit: Connection closed for inactivity]
<talqu>
the deps of both. Each derivation is does it stuff, but my shell will need both of them
<deni>
clever: ok...this makes sense.... I looked at postgresql for an example but I found that it does add postgres to systemPackages like you mentioned. Then I looked at the openvpn example but it also does this. Is there an example I can look at that doesn't add the package to systemPackages? I looked at sshd but I figured it's lowlevel enough that it get's special treatment.
<clever>
talqu: then you need to make a new nix expr, that will merge things like buildInputs from both
arahael1 is now known as Arahael
<infinisil>
talqu: Your current file would build both derivations and then make the results available in the shell, which is not what you want
<clever>
deni: cant think of one that doesnt add to systemPackages
<infinisil>
talqu: You can use pkgs.mkShell to achieve that though, something like `pkgs.mkShell { inputsFrom = [ a b ]; }`
<deni>
clever: is it fair to say that most services do this?
<{^_^}>
[nixpkgs] @alyssais opened pull request #72745 → git: drop extraneous sysconfdir trailing slash → https://git.io/Je2te
<v0|d>
,locate mconf
<{^_^}>
Found in packages: mono, meson, mono4, cdrtools, linux.dev, linux_mptcp.dev, linuxPackages_4_4.kernel.dev, linuxPackages_4_9.kernel.dev, linuxPackages_5_0.kernel.dev, linuxPackages_4_14.kernel.dev, linuxPackages_4_20.kernel.dev, linuxPackages_xen_dom0.kernel.dev, linuxPackages_latest-libre.kernel.dev, linuxPackages_latest_hardened.kernel.dev, linuxPackages_latest_xen_dom0.kernel.dev, linuxPackages_testing_bcachefs.kernel.dev, and 1 more
<infinisil>
talqu: Or with nodejs too: pkgs.mkShell { inputsFrom = [ a b ]; buildInputs = [ pkgs.nodejs ];
<manveru>
,locate bin mconf
<{^_^}>
Found in packages: mono, mono4
selfsymmetric-mu has quit [Remote host closed the connection]
<clever>
deni: depends on the service, ive seen a few that dont add to systemPackages, just cant think of which
<deni>
clever: well yeah sshd seems to be one of them.... I guess that's what confused me because it was the first I looked at.
selfsymmetric-mu has joined #nixos
<infinisil>
deni: When reviewing PR's for services I'm discouraging people to add stuff to systemPackages unless it's really needed. Then the users PATH's don't get littered
leotaku has joined #nixos
<deni>
infinisil: my question then is how does the package get installed? I'm trying to find an example of a service that I can look at in the nixpkgs repo. The idea being that a user would just do `service.foo.enable = true` (or similar) and only interact with the service and not have to do anything else...and the package not ending up in systemPackages unless I explicitly put it there in my
<deni>
configuration.nix file.
<clever>
deni: the binary is just a dependency of the .service file, which is a dependency of the nixos build
<clever>
deni: so nix must download the binary before it can build nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<deni>
clever: how is it defined as a dependency of the service?
<infinisil>
deni: There you can see pkgs.ddclient in ExecStart
<clever>
deni: merely referencing the string makes it a dependency, thats how all dependency tracking works in nix
cosimone has quit [Quit: Quit.]
<deni>
clever: infinisil ok now it clicked.... Thank you for explaining this! it was driving me crazy. :)
alexherbo2 has joined #nixos
<deni>
given the example above... it work if I just said `${pkgs.ddclient}/bin/ddclient` instead of `${lib.getBin pkgs.ddclient}/bin/ddclient` like in the actual service?
<clever>
> ddclient.outputs
<{^_^}>
[ "out" ]
<deni>
s/it work/it would work/
<clever>
deni: ddclient only has one output, so both of those are identical
<deni>
oh I see....yeah it makes sense that getBin is just a helper function duh....
<deni>
awesome...I learned something today :) thanks again clever infinisil
<deni>
ok one more question before I call it a day....this one is a simpler one. I gather most folks just manage their configuration.nix file (and others) in a git repo. Is the idea to just clone the repo on a fresh installation and symlink configuration.nix into /etc/nixos/configuration.nix (and possible other files/folders) ?
toppler has quit [Ping timeout: 276 seconds]
<clever>
deni: personally, i do imports = [ /path/to/foo.nix ]; in configuration.nix
<clever>
deni: and configuration.nix only has stuff tied to the hardware, like filesystem uuid's and such
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 125 commits to nixos-unstable-small: https://git.io/Je2tW
<clever>
if the hardware is lost, that has to change anyways, so why preserve it in git
<infinisil>
deni: That's one way to do it. Personally I have a small wrapper script that calls something like `nixos-rebuild switch -I nixpkgs=${fixed nixpkgs} -I nixos-config=${fixed config}`
<deni>
clever: well I'd want to preserve the kernel modules I load and such. And that's defined in hardware-configuration.nix
<infinisil>
The default for nixos-config is /etc/nixos/configuration.nix, by using `-I nixos-config=` I can change that, and I set it straight to something from the repository, so no need to set up anything
<deni>
clever: but I get your point
<deni>
infinisil: yeah that makes sense...so I don't have to do a whole lot of symlinks for nothing
mexisme has joined #nixos
rycee has quit [*.net *.split]
NfixEstrada[m] has quit [*.net *.split]
Taneb has quit [*.net *.split]
Ox4A6F has quit [*.net *.split]
fadenb has quit [*.net *.split]
awygle has quit [*.net *.split]
pointfree has quit [*.net *.split]
bwe has quit [*.net *.split]
nikola has quit [*.net *.split]
<deni>
I'm probably gonna fiddle around with this a bit and structure everything to best suit my use-case but I just wanted to get some general guidelines. I'm really loving nixOS so far.... not quite ready to install it on my main work laptop just yet but I'm getting there.
<infinisil>
adisbladis: Ah nice, maybe I'll use that instead of trying to get the NixOS one working
<{^_^}>
[nixpkgs] @globin pushed 3 commits to structured-attrs: https://git.io/Je2tF
<spacekookie>
Is the home-manager module more functional for fractal or does it just not work on NixOS?
mexisme has joined #nixos
tilpner has quit [Quit: tilpner]
<infinisil>
spacekookie: NixOS' gnome-keyring module just defines some /etc/xdg/autoload thing I think, it doesn't actually start the service. The home-manager one does start the service
<spacekookie>
Aah!
<spacekookie>
But also running the gnome-keyring-daemon manually doesn't actually ended up working...
<infinisil>
Probably wouldn't be too hard to adjust the one in NixOS though
<infinisil>
It might need to register some dbus stuff
<{^_^}>
[nixpkgs] @magnetophon opened pull request #72746 → ensemble-chorus: init at unstable-15-02-2019 → https://git.io/Je2qC
logzet has quit [Ping timeout: 264 seconds]
lockshaw has left #nixos [#nixos]
Chiliparrot has joined #nixos
<{^_^}>
[nix] @hvdijk opened pull request #3203 → Fix progress bar when nix-prefetch-url is piped. → https://git.io/Je2q2
jedai42 has joined #nixos
ogle has joined #nixos
drakonis1 has quit [Quit: WeeChat 2.6]
hexa has quit [Ping timeout: 276 seconds]
<{^_^}>
[nixpkgs] @Azulinho opened pull request #72747 → nfstrace: init at 0.4.3.2 → https://git.io/Je2qP
<ogle>
anyone familiar with arion and/or nixops? I am trying to test provisioning a consul server and not sure the best way to reference ip addrs across hosts
drakonis1 has joined #nixos
toppler has quit [Ping timeout: 268 seconds]
johnnyfive has quit [Ping timeout: 276 seconds]
philr has quit [Ping timeout: 240 seconds]
ogle has left #nixos ["WeeChat 2.6"]
gagbo has quit [Ping timeout: 240 seconds]
gagbo has joined #nixos
ng0 has quit [Quit: Alexa, when is the end of world?]
talqu has quit [Ping timeout: 268 seconds]
<hyperfekt>
ugh still can't this qemu fork to compile. is there any way to prevent nix from adding werror flags in the first place?
<evanjs>
selfsymmetric-mu: Ah yeah that too. Harder for things that have multiple "proper" applications. i.e. nix lets you do multiline comments, but from what I'm seeing, those seem to be used more for doc-comments in particular, it seems?
orivej has quit [Ping timeout: 240 seconds]
selfsymmetric-mu has quit [Disconnected by services]