tyang has quit [Quit: Connection closed for inactivity]
<hyperfekt>
Hello all! I'm having an issue where I want to import a module, but it imports others by relative path. How would I use the path of the result of fetchTarball in an import path?
<gchristensen>
hyperfekt: every file reference is relative to the file referencing it, so foo.nix referring to ./baz.nix, will always refer to baz.nix in the same dir as foo.nix
<hyperfekt>
Exactly, that's why my usual way of just usíng (fetchurl [URL]) as an import path isn't gonna work, and I'm trying to get the whole archive instead, and then refer to the specific module I care about.
Notkea has quit [Read error: Connection reset by peer]
<ldlework>
nixops mount -d wharf wharf:/var/www/ /media/wharf ~/src/blog
<ldlework>
error: [Errno 2] No such file or directory
<ldlework>
What am I doing wrong here?
Notkea has joined #nixos
<ldlework>
ignore the ~/src/blog bit which is just part of my shell
<tilpner>
Is /media/wharf a directory?
<esmerelda>
heya, so the nixpkgs upgrade to firmware-linux-nonfree broke QCA9377 wifi adapter
<tilpner>
Does wharf have a /var/www?
<Guanin>
Okay, so everything related to VFIO seems to be fine for my setup - basically, I am now in the situation that the WX3100 with the amdgpu module won't detect any displays, while the intel GPU works fine. My displays are connected with a DisplayPort MST Hub to the DP port of the WX3100, and the intel GPU is connected with a HDMI cable to a screen. I just dont get any output on the amdgpu :(
<esmerelda>
like add my local nixpkgs Git repo as a channel or something?
<esmerelda>
but I don't want to push my whole system to unstable
<samueldr>
esmerelda: yeah, it may be a bit annoying though. if you follow the link in the comment I linked, the gist has a complete fix that I think should be possible to add to your configuration without involving a checkout of nixpkgs
<{^_^}>
[nixpkgs] @Ma27 closed pull request #53148 → libqrencode: alias to `pkgs.qrencode`. → https://git.io/fhty8
<esmerelda>
@samueldr I was thinking about that, but I think my system may rely on other firmware besides QCA9377, so I wasn't sure how to do that without a clash
<samueldr>
ah, esmerelda, " If multiple packages contain firmware files with the same name, the first package in the list takes precedence" in hardware.firmware https://nixos.org/nixos/options.html#hardware.firmw
<esmerelda>
also, how does Nix know to tell those drivers about that package location?
<esmerelda>
ooooooooh
<ldlework>
tilpner: it's a massive amount of text lol
<samueldr>
esmerelda: so if you add both firmwareLinuxNonFree AND that patched firmware file, and make sure the fixed package is listed prior, it might work fine
<esmerelda>
ohhhh awesome I will try that thank you!!
<ambro718>
in a nix expression build script (e.g. buildPhase), how to write an arbitrary and possibly large string in a nix variable into a file in the build dir?
<hyperfekt>
How would I include a derivation in an import path? I tried ${drv}/subdir/module.nix, (drv)/subdir/module.nix, tried it with angle brackets etc. Really out of my depth here *scratches head*
<gchristensen>
in the mozilla overlay, where does clippy come from?
oida has joined #nixos
<gchristensen>
ah, `rust` has it. okay. I can handle this.
<hyperfekt>
gchristensen: You can also use 'clippy-preview' if you want just that.
<gchristensen>
oh?
slack1256 has joined #nixos
<gchristensen>
omg clippy is very unhappy with my code. this is really good!
orivej has quit [Ping timeout: 250 seconds]
s2mitrov has joined #nixos
eadwu has quit [Ping timeout: 250 seconds]
sir_guy_carleton has quit [Ping timeout: 240 seconds]
<ldlework>
rsync over sshfs is not good
<ldlework>
lol
eadwu has joined #nixos
shibboleth has quit [Quit: shibboleth]
<esmerelda>
@samueldr it worked!! it actually worked!! and for bonus points, I even had it get the (right) firmware from the firmwareLinuxNonfree package!
<samueldr>
:). maybe also share your solution among the issue/PR esmerelda?
<esmerelda>
good idea! will do
<gchristensen>
ldlework: maybe rsync's remote program can be specified to nixops ssh's remote shell argument
alex`` has quit [Quit: WeeChat 2.3]
eadwu has quit [Ping timeout: 250 seconds]
<ambro718>
in Nix, how to check if a string ends with something, or alternatively get the file name extension?
<esmerelda>
I'm sure this question comes up a lot, but how do y'all version your configuration.nix? I have a Git for my dotfiles already, and I keep my nixops expressions in there, so I'd like to track /etc/nixos there as well if feasible
<iqubi4>
So, I was asking about this earlier. I just figured it out. You can indeed pass a path to nix-shell. It will use the path of that shell.nix to load the environment.
<hyperfekt>
My configuration.nix actually imports a the machine-specific file from /cfg, which is under version control and contains all my modules for any system (given that they share huge parts, the linked to file is mostly just appropriate imports).
<hyperfekt>
esmerelda: i'm a noob though so dont take that as being best practice
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhqfY
ma9e has quit [Quit: Lost terminal]
Church_ has joined #nixos
<romanofski>
any Haskell nixers around? I'm trying to pick Cabal >= 2.4 with ghc822 and always end up with Cabal 2.0.1.0 in the build environment... is Cabal special when it comes to pinning package versions?
<romanofski>
clever: that is configured in each configure-ghc(version).nix file is it? How would I go with overriding the Cabal version? Is that possible?
<romanofski>
I need GHC 8.2 but Cabal 2.4
<romanofski>
not a hard requirement, but just curious
<clever>
romanofski: not sure, it may involve rebuilding ghc
<ambro718>
in nix, how does one get a file for a specific path into the nix store?
<ambro718>
"/path/to/file.txt" --> nix imports it to store --> "/nix/store/xxxx-file.txt"
<ambro718>
there must be a way to do that
<clever>
ambro718: just dont quote the path
<clever>
relative paths also work, so ./file.txt
Guanin has joined #nixos
<ambro718>
I don't understand my file variable is a string, if I put it into a script like cat ${file} it just puts the string contents
<ambro718>
I need to turn it into path first?
<clever>
ambro718: can you gist your nix expression?
init_6 has joined #nixos
<ambro718>
it's too big, but basically I'm doing this: "nix-build -A myThing --argstr configFilePath ~/config_file.txt" and my package looks like: myThing = { configFilePath }: callPackage ({ stdenv, configFilePath }: ...)
<ambro718>
basically I'm passing a string from command line into the package definition
gagbo has joined #nixos
<ambro718>
and there I need to interpret this string as a file path, get the file into the nix store, and use it from there
<iqubic>
siraben: I'd give them a link to the stackoverflow post as well as the error message too.
slack1256 has quit [Remote host closed the connection]
orivej has joined #nixos
<ambro718>
How do I figure out what "cannot coerce a list to a string" error is referring to? I use --show-trace and I still have no clue. The line numbers shown do not help.
<siraben>
ambro718: paste the full log?
<siraben>
That's a type error, somewhere you mixed up lists and strings
<sir_guy_carleton>
so i'm trying to install a python application, so following the instructions in the manual and the wiki, i wrote a default.nix to make a shell where i could install with via pip
<sir_guy_carleton>
it seemed to work (even installing it a package not in nixpkgs), but when i tried to start the program it wouldn't run, saying it could find the package itself, so i'm not sure what to do
<Church_>
Anybody ever configure salt master on nixos before?
<drager>
I'm trying out nixos in a VM and I changed the DPI/resolution settings and now I cannot see anything (it's just a grey screen with some cluttered white text) If I try to boot from a earlier configuration I get the same issue for all of them. Any suggestions how to resolve this?
rprije has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @xeji pushed commit from @dguibert to master « conky: 1.11.0 -> 1.11.1 (#53157) »: https://git.io/fhq3L
<countingsort>
if i changed my github username since the last time i contributed to nixpkgs, would i rather do an extra PR to fix that up, or change it next time i contribute (thus having unrelated changes in that PR)?
<siraben>
wedens: Right, but how to install the theme?
<wedens>
siraben: as any other package. add it to `environment.systemPackages`
<Myrl-saki>
Not necessarily.
<Myrl-saki>
environment.systemPackages only updates your /bin and some other things.
<siraben>
That's weird because it does work otherwise
tzemanovic has quit [Remote host closed the connection]
<wedens>
sorry, I don't have any experience with making or packaging a QT app. especially with runtime qt dependencies perhaps there is some env variable that should be set
<siraben>
wedens: Ok I'll ask in the relevant channels.
<siraben>
Just this tricky runtime dependency, should be fine.
sigmundv_ has joined #nixos
<wedens>
perhaps it should be added as runtime dependency to sddm itself
mgttlinger has quit [Quit: Connection closed for inactivity]
<wedens>
siraben: try adding `qt5.qtquickcontrols` to `environment.systemPackages`. not permanently, but just to see if it changes anything
<siraben>
wedens: will do, out for dinner right now
<ldlework>
>> perhaps it should be added as a runtime dependency to sddm itself
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
ottidmes has joined #nixos
ddellacosta has joined #nixos
ddellacosta has quit [Ping timeout: 250 seconds]
asymmetric has quit [Ping timeout: 272 seconds]
agander_ has joined #nixos
agander has quit [Ping timeout: 246 seconds]
<drager>
I'm trying out nixos in a VM and I changed the DPI/resolution settings and now I cannot see anything (it's just a grey screen with some cluttered white text) If I try to boot from a earlier configuration I get the same issue for all of them. Any suggestions how to resolve this?
<wedens>
how did you change dpi?
<drager>
via xrandr
<wedens>
it probably tries to match guest dpi with host or something like that
johanot has quit [Ping timeout: 250 seconds]
<siraben>
drager: increase your RAM?
<siraben>
Sometimes limiting video memory and/or RAM produces bad video
<jomik>
But it adds the file to a watch list, so that it triggers a direnv rebuild when the file changes.
Makaveli7 has joined #nixos
lawlesseel has quit [Ping timeout: 256 seconds]
<siraben>
wedensldlework looks like it's affecting all custom themes, this runtime dependency
Makaveli7 has quit [Client Quit]
Makaveli7 has joined #nixos
reinhardt has joined #nixos
Makaveli7 has quit [Client Quit]
Makaveli7 has joined #nixos
reinhardt has quit [Client Quit]
Makaveli7 has quit [Remote host closed the connection]
Makaveli7 has joined #nixos
agander_ has quit [Ping timeout: 268 seconds]
lstanley has joined #nixos
Makaveli7 has quit [Client Quit]
<fendor>
what is the difference between the namespace haskellPackages and haskell.packages?
m15k has quit [Ping timeout: 256 seconds]
boredom101 has joined #nixos
<__monty__>
fendor: There's a haskell.packages for every supported ghc version. haskellPackages is an alias (not sure what else to call it) for the current canonical ghc version for nixpkgs.
<fendor>
__monty__, ok, cool. How can I query that? haskell.packages.ghc862, for example?
<__monty__>
Good question.
<__monty__>
I always go to #bottest and then evaluate the attribute. So to get all the ghcs in nixpkgs:
jasongrossman has quit [Ping timeout: 260 seconds]
<fendor>
__monty__, that was really helpful, thanks!
lawlesseel has quit [Ping timeout: 256 seconds]
<exarkun1>
anybody used nvme on ec2 with nixops? nixops complains if I assign xvda, fails to find the device if I assign xvdf, and ec2 rejects the request if I do as nixops suggests and assign nvme1n1.
<fendor>
when I want to install a program from a `default.nix`, i use something like `nix-env -iA ... -f default.nix`. This uses the stable channel on my system, how can I use the unstable one?
johanot has quit [Ping timeout: 240 seconds]
johanot has joined #nixos
tzemanovic has joined #nixos
<__monty__>
fendor: Maybe using `-I`? That way you alter NIX_PATH in a way that takes precedence over your channels.
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<gchristensen>
the first one IMO is worse, the second one is more useful for dynamic development
<ambro718>
ah so you don't need quotes, .${var} is valid too
<__monty__>
drager: It's probably just coloring outside the lines. Thunderbird for example *is* branded earlybird instead. Maybe with firefox people didn't want to deal with all the "Hey, what did you do to my firefox?" issue reports?
erictapen has quit [Quit: leaving]
<gchristensen>
__monty__: no, it was called "Nightly" or whatever for a long time, and then we worked hard to get authorization from Mozilla to call it Firefox
<__monty__>
Oh, really? Cool. Just didn't go to the trouble for thunderbird?
<{^_^}>
[nixpkgs] @dasJ opened pull request #53202 → freerdp: Add support for USB redirection → https://git.io/fhqw1
* hodapp
. o O ( I remember using Firefox back when it was called Firebird... )
<Izorkin>
ottidmes: me replaced ExecStart = "${cfg.package}/bin/prosodyctl start"; to "/bin/prosodyctl start" - not work
<ottidmes>
Izorkin: same error?
<Izorkin>
ottidmes: while evaluating the attribute 'passAsFile' of the derivation 'system-path' at /home/user/works/src-nix/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:185:11
<{^_^}>
[nixpkgs] @FRidh pushed commit from @r-ryantm to master « python37Packages.channels: 2.1.5 -> 2.1.6 »: https://git.io/fhqK3
<fendor>
how can I set up vscode for c development? do i have to override some options, or can i just install the required programs?
johanot has quit [Ping timeout: 250 seconds]
fusion809 has joined #nixos
johanot has joined #nixos
<ottidmes>
fendor: most extensions just work as long as you have the right programs installed in your system, but I have no experience with a C setup in vscode though
<fendor>
ottidmes, same experience, but for c, it does not really work and vscode doesnt even tell me what does not work
<ottidmes>
I did some C development with vscode, but I did not use any special extensions/integration
<ivan>
why might the sudo wrapper not get installed when I have the module enabled? $ sudo -i -> sudo: /run/current-system/sw/bin/sudo must be owned by uid 0 and have the setuid bit set
<wedens>
ivan: check `/run/wrappers/bin/sudo` for a binary with setuid
<ivan>
ah, yes, I have that, thanks
<wedens>
should be already in $PATH
<ivan>
I screwed up my PATH not knowing about that location
<ottidmes>
what is the best way to deal with two package definitions needing the same dependencies and they are part of the same package folder, I was thinking either use callPackage to get this common stuff and pass say common as an argument to either package definitions, or maybe buildEnv, but there is some more reuse between the two, like a configurePhase and patchPhase
glasserc has joined #nixos
boothead has joined #nixos
<boothead>
Happy new year folks. What are people using for email? I see several options. I'm after something that will let me interact with several gmail accounts, some with 2FA. I don't necessarily want or need to sync all the accounts.
<gchristensen>
yeah, I think so, every imap sync tool spooks me a bit and isync seemed slightly less scary for some reason
init_6 has quit [Ping timeout: 268 seconds]
<gchristensen>
my theory is everybody hates email, and nerds like us would rather build an email client to pretend it is better than to read it :)
<wedens>
ottidmes: I think you can share the source and make a function that provides common derivation structure
jabranham has joined #nixos
<ottidmes>
wedens: yeah I am trying something like that now, it should work, but I am not sure if it is idiomatic Nixpkgs, I guess I will hear that when getting feedback on the PR
<ottidmes>
is there some tooling to facilitate in automatically creating PRs? I know of nixpkgs-update, but that is based on repology, while I want it to be based on some local updating mechanism
<fendor>
i am trying to install extensions for vscode via overlays, i am using the examples from the docs, but it fails with the message, undefined variable 'cpptools' https://pastebin.com/iLFUC6yY
<Twey>
jtojnar: Hey! I noticed you added an application called ‘glom’ to nixpkgs. I'm also trying to add an application called ‘glom’ (https://pypi.org/project/glom/). Can you think of a more descriptive name for yours? I'm not sure I can rename mine without breaking our Python packaging conventions…
<{^_^}>
[nixpkgs] @vcunat pushed to master « doxygen: add sourceforge as mirror »: https://git.io/fhqX9
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<{^_^}>
[nixpkgs] @wedens opened pull request #53215 → tdrop: init at 2019-01-02 → https://git.io/fhqMO
<samrose>
gchristensen: yes, I am basing work off of that archive, and wanted to understand how the workflow works from developer to release it looks like the process is explained at http://howoldis.herokuapp.com/ so thank you
<gchristensen>
samrose: if you have further questions, do ask :)
<rnhmjoj>
what do you say about backporting the recent mesa updates to 18.09? is it too risky?
<jomik>
I am using nix-mode in emacs, indentation seems very odd. It seems to do something like 8 spaces per tab, any idea why?
ryantrinkle has joined #nixos
<ryantrinkle>
has anyone gotten keyutils working with nixos?
<wedens>
jomik: I also have different kind of problems with indentation
<wedens>
it either indents everything to the left or half a screen to the right
<gchristensen>
nix-mode is so weird :/
erictapen has quit [Ping timeout: 244 seconds]
tilpner has quit [Quit: WeeChat 2.3]
tilpner has joined #nixos
dermetfan has quit [Ping timeout: 268 seconds]
<boothead>
gchristensen: PassCmd "@pass@/bin/pass means that you have all your passwords in pass, is there a similar thing for lastpass do you know?
tertl3 has joined #nixos
erictapen has joined #nixos
<gchristensen>
I don't know about lastpass
<wedens>
I can't live without emacs, but nix-mode really wants me to edit .nix files in vscode :(
<gchristensen>
but you wouldn't have to keep every password is `pass`, just this one :)
orivej has quit [Ping timeout: 268 seconds]
<jomik>
wedens: I agree! Lol
<tilpner>
> lastpass-cli.name # boothead
<{^_^}>
"lastpass-cli-1.3.1"
<jomik>
I have that same issue that you mention wedens
agander has joined #nixos
<jomik>
I tried setting tab-width now.
<boothead>
tilpner: nice, thanks!
<exarkun1>
boothead: are you asking if lastpass has a CLI that lets you read passwords? yes it does.
<wedens>
jomik: I tried disabling electic-indent, changing `nix-indent-function` to `nix-indent-line`. no success
<exarkun1>
Twey: I don't know why it wouldn't. libcap is included as a dependency.
<exarkun1>
Twey: What do you think about the fact that meson says "Native build" in its output? I thought that meant Nix was invoking it wrong.
<Twey>
exarkun1: It's using /nix/store/iw94llkj05wgaz268mlzvgx8jkbi1ss0-gcc-wrapper-7.3.0/bin/cc
<Twey>
exarkun1: Is that a cross-compiler?
erictapen has quit [Ping timeout: 272 seconds]
<boothead>
tilpner: thanks :-)
erictapen has joined #nixos
<iqubic>
So is the "--builddir=" flag a valid flag to pass to nix-shell?
cyounkins has joined #nixos
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
<boothead>
gchristensen: do you have this config on multiple machines?
<gchristensen>
boothead: just one
<exarkun1>
Twey: no
<gchristensen>
boothead: I don't have a work computer :')
<boothead>
Ah. I have a desktop and a laptop so I'd have to figure out how to share parts of my config (it's a hack at the moment which has got out of date)
<boothead>
Do you have all of your installed applications also captured in this set up?
<Twey>
exarkun1: Your 'callPackage' looks a little bit suspicious to me, why did you write that instead of just 'with import <nixpkgs> { crossSystem = { system = "armv6l-linux"; }; }; systemd'?
<wedens>
jomik: yes, of course
<exarkun1>
Twey: probably no good reason, I'll try that
<Twey>
exarkun1: I'm trying it now
<etu>
wedens: nix-mode needs some work, most people I've talked to that use emacs/nix says that. Including me :/
<Twey>
exarkun1: I wonder if callPackage might insert the wrong stdenv
<wedens>
jomik: it's not better in vanilla emacs
<exarkun1>
Twey: seems the same
<Twey>
exarkun1: Hm
<iqubic>
nix-mode is awesome.
<etu>
I use nix-mode with a tiny bit of config that makes it better, but still not perfect...
<etu>
wedens: I've built some modes, but never major modes, so I'm a bit afraid :(
<Twey>
etu, jomik: With nix-indent-line as the indentation function, nix-mode is… better than fundamental mode for me
<exarkun1>
Twey: note that tons of other packages successfully cross-compiled before this one failed. the difference I can see seems to be that systemd uses meson as its build system. most everything else uses autoconf. I don't really know much about meson (even less than I know about nix).
<etu>
iqubic: I should probably pull that in, especially now when I use exwm :p
<iqubic>
So I take it that if I pass "--builddir=/path/to/place" to nix-shell, that's not going to work.
<exarkun1>
Twey: hmm yea that's a good point
cyounkins has joined #nixos
<iqubic>
etu: It's actually 4 different MELPA packages.
<Twey>
exarkun1: Meson will pick up the compiler in the configure stage just by looking at CC/$(type -P cc)
<Twey>
exarkun1: As a philosophical point it explicitly doesn't provide toggles to choose a different compiler
<exarkun1>
Twey: but meson also has some kind of weird "cross-file" thing going on?
<Twey>
And the build step will use the compiler found then
<etu>
iqubic: Looks useful, but the indentation of nix-mode is still the worst bit :D
<jomik>
No nixos-options for ivy :(
<exarkun1>
Something like `nix-build --expr 'with import <nixpkgs> { crossSystem = { system = "armv6l-linux"; }; }; binutils'` _does_ succeed, fwiw. That's another bit of evidence that makes me suspect nixpkgs' systemd expression.
<Twey>
exarkun1: Mmm, yeah, good point — I thought you might be able to just give it the right compiler and everything would be happy, but maybe not
<wedens>
etu jomik: my best of the worst attempts so far is to (electric-pair-local-mode -1) in nix-mode and (setq nix-indent-function 'nix-indent-line)
erictapen has quit [Ping timeout: 250 seconds]
<iqubic>
etu: If you don't want to use those functions, you don't need to.
<etu>
iqubic: Well, I use company-mode, so completions there would be nice :)
lucus16 has joined #nixos
<jomik>
wedens: Oh. Right xD
<iqubic>
I think it does that. It's been a while since I looked at the README.
<jomik>
Thanks.
tilpner has quit [Quit: WeeChat 2.3]
<exarkun1>
I guess I could try to track down the code that decides what cc (so, what stdenv?) to supply and see why it is making that decision and whether it is fishy or not.
klntsky has quit [Remote host closed the connection]
klntsky has joined #nixos
<lucus16>
How do I install nix on macOS in multi user mode? When I followed https://nixos.org/nix/download.html I ended up with single user mode
<Twey>
exarkun1: Okay, so the build target should have an associated cross file
<jomik>
Need one for home-manager too :o
cyounkins has joined #nixos
<Twey>
exarkun1: The cross file is passed to meson with --cross-file
<wedens>
when I do `nix-env -qa tree` it just hangs... why?
<mupf>
Can anyone tell me how to use -s USE_XML=1 \
<tilpner>
AFAIR nix-env searches large parts of nixpkgs for a derivation with a name that matches tree
<mupf>
argh
<mupf>
copy n paste
<mupf>
-s USE_XML=1 \
<mupf>
sorry.
<mupf>
emscriptenPackages.libxml2
<fendor>
i am confused by vscode in nixos, i seem to need vscode-with-extensions if I want to use cpptools, however, now all my extensions have been removed and I cant install them. Managing them manually seems insane, since i'd have to update the commit manually?
cyounkins has quit [Ping timeout: 268 seconds]
<gchristensen>
mupf: maybe re-ask your question :P
<mupf>
gchristensen: yeah, sorry again. I have emscriptenPackages.libxml2 installed inside a shell but I don't have a single clue how to tell emscripten to use libxml2
<wedens>
oh, it doesn't hang. it just works enormously slow (like 2 minutes)
Thra11 has joined #nixos
<tilpner>
wedens: "nix search" has a cache and is faster
orivej has quit [Ping timeout: 250 seconds]
<wedens>
yeah. `nix search` is almost instant, but it also searches descriptions
<ottidmes>
jomik: I believe I exported it, but it was not just a simple export/re-import, I did modify it to fit my needs
<jomik>
Yeah okay, makes sense :D
<exarkun1>
the meson setup-hook.sh has `CC=armv6l-unknown-linux-gnueabihf-gcc` in its environment
<exarkun1>
Twey: ^^
<exarkun1>
I have no clue where it gets /nix/store/iw94llkj05wgaz268mlzvgx8jkbi1ss0-gcc-wrapper-7.3.0/bin/cc from. iw94llkj05wgaz268mlzvgx8jkbi1ss0 is referenced by zero things in the environment.
<arianvp>
I honestly think we only have to add ninja and cmake to buildInputs and it should work
<arianvp>
I'm just not near a laptop this week :p
<{^_^}>
[nixpkgs] @fpletz closed pull request #48658 → nixos/sshd: restart on "sshd_config" change (back to 18.03 behaviour) → https://git.io/fxVfr
<exarkun1>
given that the systemd expression contains `isCross = stdenv.buildPlatform != stdenv.hostPlatform;` it seems like having `if [ -n "@isCross@" ]; then` in the meson setup-hook.sh is bogus?
<exarkun1>
Why doesn't isCross end up in the systemd derivation? nor crossFile.
<jomik>
I have made a profile with nixos-rebuild -p ... Now I want to remove this profile, so that it can be gc'ed (realized that I should just use `test`, instead of a profile in my case). Can I just delete /nix/var/nix/profiles/system-profiles/test* ?
<samueldr>
joko: thing to keep in mind with the hc2: it's not aarch64, so you'll either have to deal with long native compilation times, or deal with cross-compilation
<ottidmes>
ambro718: lib is more backwards compatible, but in general they will all be aliases to builtins anyway so it does not matter much for new code
<ambro718>
well, lib is shorter :)
shazow has joined #nixos
<{^_^}>
[nixpkgs] @bjornfor pushed to master « pythonPackages.blockdiagcontrib-cisco: init at 0.1.8 »: https://git.io/fhqAV
fusion809 has joined #nixos
<{^_^}>
[nixpkgs] @fpletz pushed commit from @ajs124 to release-18.09 « sshd: Add restartTrigger for sshd_config »: https://git.io/fhqAP
<jomik>
ottidmes: I get this annoying error now... error: cannot delete path '/nix/store/fj30qh0v54mk9iaqfk6fxxddiilmh1g7-nixos-system-tamaskan-18.09.1829.0396345b794' since it is still alive
<jomik>
Which does not make sense to me. I am not booted on my test profile.
<jomik>
So I guess it shares something with my current one
<jomik>
and thus it doesn't want to remove the last entry of my test profile :(
<exarkun1>
well this looks like crap: trace: buildPlatform: x86_64-unknown-linux-gnu != hostPlatform: x86_64-unknown-linux-gnu :/
Thra11 has quit [Ping timeout: 240 seconds]
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #53230 → Darwin staging branch → https://git.io/fhqxW
<exarkun1>
Why is hostPlatform x86_64-unknown-linux-gnu even though `import <nixpkgs> { crossSystem = { system = "armv6l-linux"; }; };`?
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fhqxB
jomik has quit [Client Quit]
fendor has quit [Ping timeout: 250 seconds]
<joko>
samueldr: do you have anything else to recommend for building a ceph cluster?
<joko>
aarch64, 2-4 GB RAM, SATA interface and Gigabit are the minimum requirements, I guess
<fusion809>
Hi folks, I tried to build 19.03 from nixpkgs/nixos directory using nix-build /path/to/nixpkgs/nixos -A system and I found the NixOS grub bootloader didn't have a new configuration listed for it. I thought I must have had to run grub-mkconfig manually, so I booted the old config and did just that, after installing grub with nix-env -i grub. The con
<fusion809>
fig it gave me didn't include NixOS at all, so now I cannot boot NixOS from its bootloader. I tried booting the live session, which I'm in right now, and running nixos-enter --root /nixos (where I've mounted it) and running nixos-rebuild switch in it, but it complains of no network, that systemd isn't at PID 1, but still tries to update GRUB2 where
<fusion809>
it seems stuck. It doesn't do anything after waiting for > 5 mins.
<goibhniu>
hi fusion809, I suspect you have something more fancy in mind, but just in case ... you can also do: `nixos-rebuild -I nixpkgs=/path/to/nixpkgs switch`
<samueldr>
joko: not at all :( it was just a reminder because it would be unfortunate if it was important for you
<fusion809>
goibhniu: and that should work in a nixos-enter chroot? Despite the fact it is whinging that systemd isn't PID 1 and that there's no network
<joko>
samueldr: so and so, I was expecting to cross-compile stuff
<goibhniu>
I mean instead of using nix-build.
<fusion809>
I've found there is network, although whatever I do in this nixos-enter chroot the nix package manager doesn't seem to want to install anything
<fusion809>
goibhniu: OK, thanks for future reference that'll be helpful, but that won't fix the problem at hand.
<joko>
fusion809: why don't you run nixos-install --root /nixos from the start?
<symphorien>
fusion809: what if you nixos-rebuild -I .... boot instead of switch ?
<fusion809>
And that won't override the packages I've installed at my user account and as root? And it won't override what I've got in /home
<fusion809>
That one was directed at joko, but symphorien that'll run in the nixos-enter chroot, right?
agander_ has joined #nixos
agander has quit [Read error: Connection reset by peer]
<symphorien>
I don't know for sure, but this was a reaction to "whines about the lack of systemd": switch needs systemd, but boot should not.
<joko>
fusion809: I am not 100%, but it won't erase /home, for sure
<goibhniu>
fusion809: could you explain a bit more what you're trying to achieve? IIUC you have nix installed (on some other distro?), and you want to build and install NixOS from master on the box to use in chroot?
<fusion809>
No, I wasn't wanting to run it in a chroot, I am only using a chroot now as I cannot boot the NixOS system.
pie__ has joined #nixos
<fusion809>
I was wanting to boot from master, to see what it was like, but still have my old stable config to go back to
<goibhniu>
the unstable channel would be a lot safer
<goibhniu>
nixos-unstable
<goibhniu>
easier and quicker too, is there a reason not to use that?
<fusion809>
Yep, I know, but I was only planning to give a look at, not use it daily. I knew bugs were likely, but I was curious.
<fusion809>
In this case curiosity at least wounded the cat, I'm trying to find out if it killed it.
juhe has quit [Remote host closed the connection]
Dedalo has joined #nixos
<fusion809>
I also used to run Fedora Rawhide, despite it using developmental releases of the kernel and GNOME, because I was curiosity.
<fusion809>
curious^
shibboleth has joined #nixos
<goibhniu>
Sorry, I don't really understand why you'd build from master rather than nixos-unstable. There won't be a massive difference, but it will be painful (take loads of time) and risky.
<goibhniu>
If you want to hack on nixos, you can use a branch based on a channel and apply patches to that
pie___ has joined #nixos
<etu>
goibhniu: I find it better to test things on master since it will live in master and become unstable. So it's good to test things with the latest changes.
<fusion809>
Well, I'll keep that in mind for next time then, I was using my own fork of nixpkgs.
<goibhniu>
cool
<joko>
fusion809: in any way you could have tried simply "nixos-rebuild -I nixpkgs=/path/to/master boot" and reboot
pie__ has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @FRidh pushed 112 commits to staging-next: https://git.io/fhqhY
<fusion809>
Yep, I will try to remember that could of, thanks, but at the moment that doesn't help.
<exarkun1>
Okay ... meson build & host is x86_64, target is armv7l... maybe that's right. meson itself isn't being cross-compiled, it just needs to be a cross compiler (part of the toolchain of one, anyway)
<exarkun1>
but the detection for whether to invoke meson with cross-file looks at build & host
<exarkun1>
when it should probably look at host & target
<Franciman>
<tilpner> And you don't know which ghc you want? <- No, that's what my program needs to determine
<exarkun1>
and in fact the cross-file the meson build support writes already tries to write correct information for the target platform, not the host platform
<exarkun1>
but it fails somehow and instead just writes, eg, "cc" as the compiler to use
<jD91mZM2>
For future reference, if anybody is getting rust-lld: libstdc++.so.6 not found or something like that, you can use `patchelf --add-needed` to add stdlibc++ as a needed dependency, otherwise it won't actually resolve. Might also need to add gcc to the rpath
<jD91mZM2>
(rust-lld won't be in your path but can be found in /home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/rust-lld)
<exarkun1>
stdenv.cc.targetPrefix is only "" when building systemd though, not in, eg, `nix repl`
endformationage has joined #nixos
jomik has joined #nixos
<jomik>
I know this is not raaaally the place to ask. But what password managers do people use here?
<jomik>
ottidmes: It looks pretty clean and modern in the GUI :P
FRidh has quit [Quit: Konversation terminated!]
<gagbo>
I use Keepass just because I can use it easily on Windows
<ottidmes>
it is working great for me, with passwordstore which I really liked, I still ran into the issue that I needed access to my passwords when not on one of my own machines, which bitwarden covers
<gagbo>
If I could make pass work on Windows I'd probably start using this
<{^_^}>
[nixpkgs] @bjornfor pushed commit from @r-ryantm to master « grails: 3.3.8 -> 3.3.9 »: https://git.io/fhmen
<jomik>
That is neat!
<jomik>
Sadly I don't have a server :(
<cransom>
hrm. does anyone run with a squashfs nix store in production? I wanted to make our deploy times a little faster and the AWS image import task takes significantly longer with larger disk images.
<jomik>
I guess you are running your server at your own house tho? :p
<gchristensen>
cransom: yeah I've done that
<ottidmes>
jomik: I am running it at home indeed, but I also have a few VPSes
<gchristensen>
works great as long as you don't have a ton of r/w activity to the store itself
<gchristensen>
for use cases where that wasn't true I didn't even try it, so maybe it'd be great there too ;)
<cransom>
gchristensen: any pit falls? there's no real anticipated write activity to speak of unless we happen to log in to troubleshoot something
<jomik>
ottidmes: I was pondering just trusting some cloud service, like BitWarden, but.. mehh :D
tertl3 has joined #nixos
<gchristensen>
cransom: no, it worked really wonderfully. I didn't use it on AWS, this was memcache nodes deployed via PXE on bare metal.
<ottidmes>
jomik: you can also use it for free via bitwarden itself, but I indeed have the same feeling as you do, although I have to trust them already quite a bit, since I am using their software even though it is open source
demize has quit [Quit: Do Androids Dream of Electric Sheep?]
<cransom>
gchristensen: cool. suppose i'll pursue that further then.
<jomik>
ottidmes: Are you telling me that you didn't read through all of the source??
<jomik>
I like that we generall trust open source, because it means that "someone" probably read through the code for us :P
<ottidmes>
jomik: that is what I am hoping at least :P
<jomik>
Why bitwarden_rs and not their docker image?
<__monty__>
It's also the fact that once you find out you got f*ucked, you get to see exactly how.
<mdash>
jomik: why would you use docker on nixos if you didn't have to
<gagbo>
Have I made a bad syntax mistake somewhere ?
<ottidmes>
simple, resource usage, full features, and bitwarden_rs is focused on self hosting, while they just provide their thing focused on scaling
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shapr has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
<jomik>
Ah, makes sense.
<jomik>
mdash: I don't think ottidmes is using NixOS to host his bitwarden server tho?
<jomik>
Or is he?
<ottidmes>
jomik: their thing is focused at cloud hosting, not to install on your own server, and it is even quite focused on Azure I believe, I do not want to host a MSSQL database
<jomik>
ottidmes: It does make sense, yeah. I'll have to look at rust.
<ottidmes>
jomik: how dare you! of course I am using NixOS for everything! :P
<jomik>
Oh?
<jomik>
Do you have the config public? :D
<jomik>
Your github account is REALLY boring.
<exarkun1>
Why is stdenv.cc.targetPrefix "" when I've set crossSystem to "armv6l-linux"?
<ottidmes>
jomik: haha, I know, I am not an active GitHub'er in that sense
<jomik>
gagbo: That is very odd. Is your home-manager tracking master? (Or not super outdated)
<gagbo>
it is not, my VM is installed following 18.09 channel (and I pull home-manager from there)
<jomik>
ottidmes: I'd like to see that nix config tho :P
<gagbo>
since home-manager news mentions the programs.fzf module I thought that it should be alright
<jomik>
Well, it was added in march, and then updated with options in august
<ottidmes>
jomik: I do not have it public, and I have not made a PR for it, because I did not manage to package the webapp with nodejs, some dep breaks the nix tooling for it, and for the bitwarden_rs I needed nixos-unstable, so I could probably commmit that since it would work on master, but yeah
<jomik>
Ah, but those options were present in march..
<ldlework>
Is there a trivial builder that just takes the src, doesn't require name and version, etc
<jomik>
ottidmes: Oh, there is a bitwarden PR? :o
<exarkun1>
ldlework: I think mkDerivation is as trivial as it gets
<ottidmes>
jomik: no :P "I have not made a PR for it"
jasongrossman has joined #nixos
<jomik>
I can not read!
the-kenny has quit [Read error: Connection reset by peer]
<reilithion>
I've added an override to packageOverrides in .nixpkgs/config.nix but when I try to install it with nix-env -i, it complains "error: selector 'keepassWithPlugins' matches no derivations"
<jomik>
reilithion: you can put your overlays in ~/.config/nixpkgs/overlays/
<jomik>
What runs the web interface? Is that part of the rust api ? ottidmes
<ottidmes>
jomik: it is build with nodejs but it is run by bitwarden_rs
<reilithion>
ldlework: Weird. Was it always like that? I have an override of VLC that I've been using for quite some time that I somehow managed to install with nix-env, I thought.
<exarkun1>
Where's the nix-build entrypoint?
<jomik>
Ah, so I really just need to run this package
erictapen has quit [Ping timeout: 250 seconds]
<jomik>
Did you modify your NIX_PATH maybe reilithion ?
<mdash>
ottidmes: oh nice, i was about to ask you about this
<mdash>
exarkun1: Hmmmmmm
<reilithion>
jomik: It doesn't /look/ like it. But my command history may not go back far enough. Anyway, is ~/.config/nixpkgs/overlays similar to ~/.nixpkgs/config.nix in format, or is there a place I can read about this?
<exarkun1>
oh yea I forgot it was going to be a .cc answer :/
jperras has joined #nixos
<jomik>
ottidmes: Thanks ! :D
<ottidmes>
mdash: if someone is willing to look at how to package the vault properly with Nix, then I can clean it up a bit and make a proper PR for it
<mdash>
ottidmes: wouldn't it be the same as other js bits in nixos like riot-web?
janneke has quit [Quit: janneke quits Mes'sing]
<jomik>
Think it is worth it to rent a server and host it on there, versus just trusting bitwarden? :P
<ottidmes>
mdash: maybe, I tried yarn2nix and node2nix but kept running into issues, it also needs to run: npm run dist at the install phase, which I was not sure how to achieve with node2nix, and yarn2nix could not handle certain sources (git:// I believe)
<ambro718>
It would be cool if '' indented string syntax had a comment feature, so that if a line is a comment then the complete line is excluded from the string. That would let one change comments without causing rebuilds.
<ottidmes>
jomik: no, I mean are you going to build your own Android apps from source? if not, you will have to trust them anyway, but since I had the server, it was worth it for me (to run my own instance)
<jomik>
True :P
jperras has quit [Quit: WeeChat 2.2]
<ottidmes>
jomik: but its cool to have your own server anyway, I rented mine for a year during the Black Friday deals, 50% off :)
<jomik>
Where from?
<ottidmes>
jomik: TransIP
<jomik>
I have pondered it for a while. I mean.. I am paying for a domain XD
<reilithion>
Must an overlayed derivation have the same name as the one it is overriding?
<etu>
Not really, it depends on what you want to do
worldofpeace has joined #nixos
<reilithion>
Ok, then I am now having trouble with an overlay. Same error message: "error: selector 'keepassWithPlugins' matches no derivations"
<ottidmes>
jomik: I also bought one elsewhere via one of the deals at https://lowendbox.com/ which are really cheap, but generally are not the most stable VPSes, but can be nice to start experimenting with a server for cheap
<etu>
reilithion: If you want to make a service use an overriden package, and the service is hardcoded to use a specific one. Then you need to use the same name.
<reilithion>
etu: I don't think keepass is a service.
ddellacosta has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @matthewbauer pushed commit from @andrew-d to release-18.09 « stdenv/native: add missing argument »: https://git.io/fhmJW
ixxie has quit [Ping timeout: 250 seconds]
ariutta has joined #nixos
jtojnar has joined #nixos
<mbrgm>
what's the preferred way for having your local repo of nixpkgs (based on the nixos-unstable branch) and point a whole local nixos installation to use that repo while "falling back" on the nixos-unstable channel so the cache will be used?
<ariutta>
mbrgm: are you using nix on nixos?
<mbrgm>
ariutta: yup
<mbrgm>
currently I think I'd have to adjust the `nix.nixPath` option so my local repo comes first in the list for 'nixpkgs='
<mbrgm>
but I'm not quite sure
erictapen has quit [Ping timeout: 246 seconds]
<ariutta>
I need to verify that a package I'm writing works on NixOS and Ubuntu. For testing Nix on Ubuntu, is it silly to try it via Docker instead of VirtualBox?
<mbrgm>
ariutta: kinda, but oftentimes I'm going to contribute changes I make, so it'd be nice to have them i the right tree already. previously I used nix on arch, where I simply adjusted my NIX_PATH and everything was fine. but now I fully committed to nixos an don't know (yet) how to have the same behavior there...
<mbrgm>
basically, I don't want only `$ nix ...` to pull from my nixpkgs clone but also `$ nixos-rebuild` etc.
worldofpeace has joined #nixos
<worldofpeace>
jtojnar: Think we should go for #51122 ?
<jtojnar>
worldofpeace: do not see any issue with it
<etu>
gchristensen: Hey, that's pretty cool!
<ariutta>
mbrgm: I know I've read some good posts on this, but I don't have them ATM. I think they used terms like "developing nixpkgs". I'll see if I can find them later on.
<{^_^}>
[nixpkgs] @worldofpeace pushed 4 commits to staging: https://git.io/fhmUQ
<worldofpeace>
jtojnar: went for it :D
<jtojnar>
thanks, worldofpeace
<worldofpeace>
always welcome jtojnar
<mbrgm>
seems like in https://nixos.wiki/wiki/Nixpkgs#Hack_Nixpkgs all that's to be done is specify nixpkgs=, so I think I'll give the `nix.nixPath` option a try. rollback is always an option, so who cares :)
<ldlework>
I see there is a 1.3 now, so probably a regression
<ldlework>
This is what happens when you mess with perfection :)
<fusion809>
OK, I've managed to recover from my silly mistake. I do not have the chat log from my live session, but I recall nixos-rebuild -I /path/to/nixos-unstable switch being an option for switching to nixos-unstable. The problem is, where is nixos-unstable? nix-channel --list shows nixos-unstable, but I cannot find it in /nix/var/nix/ (e.g. find /nix/var/nix -name "nixos-unstable") and specifying a URL (which is what nix-channel
<fusion809>
--list shows) after -I doesn't work.
<gwen>
Aye, does anyone here know something (or know someone who knows something) about how to build Lisp packages with Nix?
<ris>
so... i'm using nixops for the first time (against digitalocean) and i'm finding some weirdnesses - mostly around auth - for some reason sudo won't behave correctly on the deployed machine. am i going crazy? i've checked the nix store has the right ownership so that's not it...
<ris>
i also don't seem to be able to ssh in as any non-root user using my normal public key
<{^_^}>
[nix-mode] @etu opened pull request #61 → Add function to indent things in blocks for nix-indent-line → https://git.io/fhmY8
<etu>
gchristensen: ^
<etu>
adisbladis: ^
<ris>
and this is weird because i also use this same (basic) configuration on a qemu vm and it works a treat
Dedalo has joined #nixos
<ris>
as in the `.vm` attribute
eadwu has quit [Ping timeout: 244 seconds]
<gchristensen>
etu!!
erictapen has joined #nixos
<gchristensen>
looks great!
pie___ has joined #nixos
Church_ has joined #nixos
<ldlework>
i'm scared to update nix-mode heh
<etu>
gchristensen: I can look into the endless let indent after some sleep :)
<gchristensen>
oh speaking of which, etu, maybe we should collect nix samples
<gchristensen>
like a dir of nix samples to spot regressions
<etu>
Yeah, it has tests
<gchristensen>
oh cool
<etu>
But no tests for indent
<etu>
I think
<etu>
So it needs some work
<gchristensen>
well, thank you a lot
<gchristensen>
as soon as it merges, link me to your favorite charity
<etu>
I should look at first line of for invent first:)
<gchristensen>
if you want, but you solved a lot of bugs here
<gchristensen>
so I think satisfies what I asked for
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<etu>
Yeah, but it's also a regression to endlessly indent the first line
<etu>
Now sleep, I'll get back at this tomorrow
<gchristensen>
:)
<gchristensen>
thank you again
<Church_>
Can we install vmware on nixos easily? Trying to get gns3 up and running.
erasmas has quit [Quit: leaving]
pie___ has quit [Remote host closed the connection]
<Church_>
And it doesn't seem to detect my vbox install