<iitalics>
firefox gives me an error about not being able to find the profile directory,
<iitalics>
anyone have experience with this?
freeman42]NixOS has quit [Ping timeout: 264 seconds]
chris| has quit [Ping timeout: 256 seconds]
rosa has quit [Quit: rosa]
goibhniu has quit [Ping timeout: 248 seconds]
<jcrben>
hi - I want to use a python package (tasklib) which is used by a vim (neovim) package - under my ordinary setup (mac or ubuntu), I install it with pip and that works. but I can't seem to figure out the proper way to install arbitrary pip python programs using nix. running mac atm but have another laptop running nixos
chris| has joined #nixos
spear2 has quit [Read error: Connection reset by peer]
drakonis has quit [Remote host closed the connection]
hamishmack has joined #nixos
<jcrben>
gonna see about writing tasklib for that repository. we shouldn't be doing packages in the pypi in one-off bespoke manners - that doesn't scale
mkoenig has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @dtzWill opened pull request #39666 → nix: fix stdenv.system check -- should be hostPlatform → https://git.io/vp4N8
<unlmtd>
python is actually pretty good: try packaging a rust project
<unlmtd>
some of the language package managers do way too much, like npm and cargo, and they end up fighting nix
<unlmtd>
kitchen sink approach at work here
<jcrben>
hopefully there's at least a little effort to fix that upstream
<jcrben>
I know npm is a basketcase tho and unlikely to listen
nallar has joined #nixos
Ross has quit [Ping timeout: 276 seconds]
nallar is now known as Ross
<jcrben>
kinda surprised that cargo would fight it, especially since mozilla is a bit involved with nix
rosa has quit [Quit: rosa]
rosa has joined #nixos
jperras has quit [Ping timeout: 256 seconds]
<unlmtd>
some elements in the US DOD wer funneling weapons to al-nusra, while some other elements were bombing them. Any large group is inevitably in contradiction with itself
<unlmtd>
the next generation wont want to use anything else
rosa has quit [Client Quit]
<jcrben>
ultimately reproducible builds are good tho, right? I think dependencies should be locked down to a known working version - even libraries which should also publish a range - agree with https://yarnpkg.com/blog/2016/11/24/lockfiles-for-all/
rosa has joined #nixos
<{^_^}>
[nixpkgs] @peterhoeg pushed to master « gcalcli: pin older versions of needed python packages »: https://git.io/vp4Ar
jrolfs_ has quit [Ping timeout: 256 seconds]
Guanin has quit [Ping timeout: 268 seconds]
iitalics has quit [Quit: WeeChat 2.1]
<jcrben>
well, getting this tasklib built is a failure - packageOverrides = pkgs: with pkgs; {
<jcrben>
myEnv = python36.withPackages (ps: with ps; [ six tasklib ]); fails saying "Could not find a version that satisfies the requirement six>=1.4 (from tasklib==1.1.0) (from versions: )"
<jcrben>
think maybe I need to pass six as a buildInput in the fetchPyPi block, but then I'm getting callPackage_i686 not supported on system 'x86_64-darwin'...
rosa has quit [Quit: rosa]
mkoenig has joined #nixos
mkoenig_ has quit [Ping timeout: 264 seconds]
t667884 has quit [Ping timeout: 260 seconds]
butchery has quit [Ping timeout: 264 seconds]
butchery has joined #nixos
spear2 has quit [Remote host closed the connection]
<butchery>
Nixos rebuild is hanging on updating nerd-fonts, just showing the download progress but not downloading anything, anyone got any clues?
Myrl-saki has quit [Ping timeout: 248 seconds]
spear2 has joined #nixos
Myrl-saki has joined #nixos
<elvishjerricco>
Has anyone been able to build a GHC 8.4 cross compiler with nixpkgs?
<elvishjerricco>
It's having some really odd issues for me
<{^_^}>
→ 4797fe8d by @ilya-kolpakov: pythonPackages.patsy: 0.3.0 -> 0.5.0
<{^_^}>
→ f2adf205 by @ilya-kolpakov: pythonPackages.pymc3: init at 3.2
<{^_^}>
→ cbc3afc6 by @dotlambda: Merge pull request #39662 from ilya-kolpakov/pymc3
rosa has joined #nixos
ilyaigpetrov has joined #nixos
markus1189 has quit [Ping timeout: 240 seconds]
rosa has quit [Quit: rosa]
markus1189 has joined #nixos
jperras has joined #nixos
butchery has quit [Quit: leaving]
jperras has quit [Ping timeout: 240 seconds]
Jetien has joined #nixos
nD5Xjz has quit [Ping timeout: 248 seconds]
nD5Xjz_ has joined #nixos
oida has quit [Remote host closed the connection]
oida has joined #nixos
raskin[m] has left #nixos ["User left"]
<Ralith>
how do I get `nix copy` to stop whining about how a path "lacks a valid signature"?
<boomshroom>
Ralith: Give it a signature. I forget the process to generate a key, but once you have one, you should put in configuration.nix or the global nix config a setting to sign with the generated keys. Then you just have to sign the existing packages with nix sign-paths --all
<Ralith>
it turns out the `--no-check-sigs` magically stops being silently ignored if you run it as root
<Ralith>
so that's great
<boomshroom>
Ralith: Setting up a signature is really the best option.
<Ralith>
I don't need a sustainable pipeline, I just need this store path here to get to that wimpy machine over there sooner rather than later :P
<boomshroom>
Ralith: You set it up now, and it will be ready for you every other time you ever transfer a store path from that machine, even one built as a distributed build.
<rizary>
what i got confused is when i change `deployment.ec2.keyPair = resources.ec2KeyPairs.my-key-pair` into `deployment.ec2.keyPair = resources.ec2KeyPairs.app` and deploy it
jperras has joined #nixos
<rizary>
i got `deployment finished successfully` but i can't ssh to the machine
Ariakenom has joined #nixos
xy2_ has joined #nixos
<rizary>
when i change it back to `deployment.ec2.keyPair = resources.ec2KeyPairs.my-key-pair`, i got stuck on `waiting for SSH`
<rizary>
i try to uncomment my privateKey, but i got the same error as before
<tsmeets>
Hi, Has anyone managed to create a syslinux installation image for nixos? (without isolinux)
<rizary>
hmm i see. adisbladis[m] about the `privateKey` and `keyPair`, what is privateKey for? because i comment it and it still build
<tsmeets>
I am trying to create a syslinux image, but the kernel cant find any devices (/dev/sd*) after booting.
thc202 has joined #nixos
<adisbladis[m]>
rizary: keyPair is the EC2 keypair, privateKey is the path to the key if ssh cannot find it by itself (maybe you have keys in another location than ~/.ssh)
<rizary>
ah i see.. thanks
<adisbladis[m]>
rizary: Generally you should not have to set privateKey
simukis has quit [Ping timeout: 260 seconds]
<rizary>
hmm i see
orivej has quit [Ping timeout: 248 seconds]
zybell has quit [Ping timeout: 260 seconds]
periklis has quit [Ping timeout: 255 seconds]
nD5Xjz has quit [Ping timeout: 248 seconds]
jrolfs_ has joined #nixos
zybell has joined #nixos
wingstaker99 has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
vandenoever has joined #nixos
<Myrl-saki>
clever: Ping
<Myrl-saki>
clever: I just had a thought about dependency graphs and Nix.
<Myrl-saki>
Not something technical but theoretical
spear2 has quit [Remote host closed the connection]
hakujin has joined #nixos
b has joined #nixos
lassulus has quit [Read error: Connection reset by peer]
nD5Xjz has joined #nixos
hakujin has quit [Ping timeout: 240 seconds]
Thedarkb1-X40 has quit [Remote host closed the connection]
Thedarkb1-X40 has joined #nixos
Thedarkb1-X40 has quit [Remote host closed the connection]
Thedarkb1-X40 has joined #nixos
fendor has quit [Read error: Connection reset by peer]
Thedarkb1-X40 has quit [Remote host closed the connection]
Synthetica has joined #nixos
zybell has quit [Ping timeout: 240 seconds]
<Synthetica>
`sudo nixos-rebuild switch --upgrade` doesn't seem to actually upgrade for me (Wanted to install the latest iteration of `nixos-unstable`, from ~yesterday)
lassulus has quit [Read error: Connection reset by peer]
<vaibhavsagar>
LnL: what do you mean?
<LnL>
hydra won't serve that cache for you, but it's not supposed to be empty
<vaibhavsagar>
I'm pretty sure it used to do this
<vaibhavsagar>
I created that directory and restarted hydra-init, so now that directory looks like it has the right files in it
<vaibhavsagar>
I'm seeing references to !isLocalStore in the hydra code which determine whether or not to serve the cache
<timokau[m]>
How can I install a virtualbox guest in nixos? I tried setting `virtualization.virtualbox.host.enable = true` and the ncreating a new VM in the GUI, but when starting it it complaines that the "Kernel driver is not installed"
<{^_^}>
→ 6bf47e0d by @jtojnar: mypaint-brushes: init at 1.3.0
<{^_^}>
→ 3ebb162d by @jtojnar: gegl_0_4: init at 0.4.0
<{^_^}>
→ e375bd4a by @jtojnar: gdk_pixbuf: export moduleDir
symphorien has quit [Quit: WeeChat 2.1]
symphorien has joined #nixos
markus1189 has quit [Ping timeout: 240 seconds]
<fendor>
when i want to package something from source and it needs to install a daemon, hence uses `sudo make install`... how do correctly package that?
blankhart has quit [Ping timeout: 240 seconds]
sigmundv__ has quit [Ping timeout: 256 seconds]
<jtojnar>
fendor: by daemon do you mean systemd service?
ThatPako has joined #nixos
<ThatPako>
what packages are xrdb and ls hidden in?
<vaibhavsagar>
ThatPako: I would expect ls to be in pkgs.coreutils
<pstn>
ls is normally a shell builtin, I think.
<ThatPako>
Thanks, coreutils made it work
<ThatPako>
now I just have to find xrdb
<ThatPako>
there's an xrdb package, but I have access to that program without having that package installed so I'm a bit confused
<fendor>
jtojnar, access daemon
<pstn>
xrdb is in xrdb.
<jtojnar>
fendor: not sure what that is
<pstn>
Try it with xorg.xrdb
<ThatPako>
yea, that works. Thanks!
<fendor>
jtojnar, me neither :D
<jtojnar>
fendor: but usually you just install to a --prefix=$out (instead of the GNU default /usr/local)
ThatPako has quit [Quit: Lost terminal]
<jtojnar>
fendor: if something has FHS path hardcoded, you need to patch it
<jtojnar>
and ideally, open an issue/PR upstream
<fendor>
jtojnar, the installation wants to change ownership of the access daemon (the package is likwid), which is denied due to insufficient permissions
<ixxie>
wasn't there a trick to find which package made a command?
liori has quit [Quit: leaving]
liori has joined #nixos
<fendor>
jtojnar, did patch it, i think
<jtojnar>
fendor: you cannot change ownership in a package, that needs to be done in a NixOS module
<jtojnar>
well, the module would run the service under a user, no need to change ownership
<andrewmiller1>
hi i'm making a database in a container and researched but to no avail. i know there's a config to turn off the read-only mode. but it's not obvious to me that the standard would be to turn off one of the main functions of nixos. i'm confused. does anybody know the proper way to run a database server when nixos is read only?
<fendor>
jtojnar, thanks. So, the way to go would probably be to extend generic builder?
<jtojnar>
fendor: you can also read nix pills, where they start from a trivial builder and progressively make it more generic, if you want to better understand the design
<andrewmiller1>
everytime i start the server, it get shuts down because it's trying to output it's logging into the read-only store. i can't find any documentation on how to set up databases on nixos. is the nixos module i'm using bugged? or am i supposed to do something that i'm not doing?
ixxie has joined #nixos
<infinisil>
andrewmiller1: Well what are you using? What's your config?
<ixxie>
jtojnar: thanks for that tip! Worked like a charm :)
<ixxie>
weird new defaults
<jtojnar>
ixxie: If I missed it in the release notes (and I did on first reading), I would probably be debugging it still
<ixxie>
jtojnar: I don't read release notes, but now I think I really should xD
<ixxie>
or at least check them when debugging
<fendor>
jtojnar, removing the four did not work, altough now the error message has changed
<ixxie>
is there a way to get an overview of what versions my explicitly specified packages are in in any particular generation? It would be good to be able to view when version upgrades happen and stuff
<infinisil>
andrewmiller1: And what's the error exactly?
<infinisil>
andrewmiller1: Oh and paste the output of running `nix-info` here too
<jtojnar>
fendor: I do not see anything wrong
<ixxie>
jtojnar: interesting idea; it could also be nice to have the diff of the configuration side by side to that but NixOS doesn't keep those does it?
<ixxie>
I mean I have my dotfiles in a repo but its not automatically the case for everybody
Synthetica has quit [Quit: Connection closed for inactivity]
<jtojnar>
fendor: maybe try adding V = 1; to the derivation
<fendor>
just `V = 1;`?
<jtojnar>
fendor, oh, right you are running it manually, add the makeFlags after make command
<fendor>
what does that do?
<fendor>
oh, sure
<jtojnar>
fendor: if you add an attribute to the package, it will be passed to the builder as an environment variable
<jtojnar>
and makefile becomes verbose with V=1 in the environment
<fendor>
error message does not change, when running manually
<andrewmiller1>
infinisil: added :)
<jtojnar>
well, when running it manually, it should not even let you install
<andrewmiller1>
infinisil: no. i tried wheel, sudo su, and sudo -i. all the same input and output
<andrewmiller1>
and by wheel, i instead mean my normal user without using sudo
<bhipple[m]>
What's the best way to copy between single-user installs? It looks like nix-copy-closure looks for a socket and a nix daemon on the remote store end.
<infinisil>
andrewmiller1: I mean actually with your own nixos system, not in a container. Like adding services.neo4j.enable = true; to your configuration.nix
<andrewmiller1>
infinisil: correct
Izorkin has quit [Read error: No route to host]
Izorkin has joined #nixos
<infinisil>
andrewmiller1: And the error with nix-info (error: opening lock file '/nix/var/nix/db/big-lock': Read-only file system) is also there outside the container?
<bhipple[m]>
I've come up with setting the src machine up as a binary cache with nix-serve, and the remote machine pulling from it; but if I'd like to push instead of pull pkgs is there a good way to do it?
jperras has quit [Ping timeout: 240 seconds]
astrofog has quit [Quit: Quite]
<vaibhavsagar>
bhipple[m]: have you seen `nix copy --help`?
<vaibhavsagar>
it looks like that has more features than nix-copy-closure
<bhipple[m]>
nix copy immediately kills the process and just prints the pid, even with `-vvvvv`, but I haven't debugged why.
<bhipple[m]>
I'm digging through the src code to try to determine if these bottom out in the same lib store functions under the hood and just have different front-ends (I think they do)
<{^_^}>
→ e55677bf by @dywedir: tiled: 1.1.4 -> 1.1.5
<{^_^}>
→ 8d6d1363 by @pSub: Merge pull request #39677 from dywedir/tiled
<bhipple[m]>
I'm also in an environment where all ssh is done with Kerberos instead of keys or username:pw; it looks like I'll also have to make some patches for that. (If there's any prior art here let me know!)
humanoyd has quit [Ping timeout: 240 seconds]
hph^ has quit [Ping timeout: 264 seconds]
jrolfs_ has joined #nixos
<ixxie>
andrewmiller1: I'm curious what you are setting up with the Graph DB; I am gonna be working with Arango in the near future
<ixxie>
also in a container although unfortunately not with Nix
<andrewmiller1>
infinisil: added
mfiano has left #nixos ["WeeChat 2.0.1"]
<andrewmiller1>
ixxie: managing my finances and personal productivity system
<gchristensen>
how do finances fit a graph db?
<infinisil>
andrewmiller1: That wasn't what I asked for
<andrewmiller1>
ixxie: tasks, projects, reminders, reference files, contacts, email, journals.. i'll add my whole life bit by bit when possible
<infinisil>
16:51:13 <infinisil> andrewmiller1: And the error with nix-info (error: opening lock file '/nix/var/nix/db/big-lock': Read-only file system) is also there outside the container?
<andrewmiller1>
infinisil: yes
<ixxie>
andrewmiller1: thats awesome so you are using a graph DB as a personal organizer! Are you developing it into an application or is this just for fun?
<andrewmiller1>
infinisil: no. sorry! the answer is no
<infinisil>
andrewmiller1: Alright, but neo4j isn't working either in your host system, right?
<andrewmiller1>
infinisil: correct
xcmw has joined #nixos
<infinisil>
I suspect the neo4j module might have been used by very few people so nobody noticed it breaking
<infinisil>
It certainly shouldn't be it's trying to use /nix/store/... as a data directory
<infinisil>
Maybe an update broke the module
<andrewmiller1>
it's data directory is still var. it just also uses store..share too for some reason
pic1234 has quit [Remote host closed the connection]
<infinisil>
Can you file an issue for this and ping the people that touched the module before?
<andrewmiller1>
infinisil: sure :) how do i ping people?
<MichaelRaskin>
You want an arbitrary graph DB?
<MichaelRaskin>
Use Apache Jena (with Joseki if needed)
logzet has quit [Remote host closed the connection]
<srhb>
It probably wouldn't be hard to wrap something around dump-path, but meh...
asuryawanshi has joined #nixos
knupfer has joined #nixos
jperras has joined #nixos
<fadenb>
Has anyone some overlay adding custom python packages lying around?
<fadenb>
I tried to create one but fail as wrapPythonPrograms no longer adds a library to the path
<fadenb>
before I just added it in my nixpkgs fork and it was working fine
Guest16581 has quit [Ping timeout: 240 seconds]
<ryantrinkle>
with nix1: $ nix-repl
<ryantrinkle>
error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied
<ryantrinkle>
various things seem to get that error
<ryantrinkle>
(including nix-push)
<gchristensen>
`nix repl`, or NIX_REMOTE=daemon nix-repl
hph^ has joined #nixos
jperras has quit [Ping timeout: 268 seconds]
<ryantrinkle>
gchristensen: ah, the latter works
drakonis has joined #nixos
ivanivan has joined #nixos
<ivanivan>
I bake some vim-plugins into my Vim derivation on nixos, which works great for the most part,
<ivanivan>
but I'm trying to figure out why /run/current-system/sw/share/vim-plugins/ is empty.
<ivanivan>
A plugin in the store looks like /nix/store/xxx-vimplugin-foo/share/vim-plugins/foo/plugin/foo.vim
<ivanivan>
but it doesn't get symlinked into my system profile's share/vim-plugins/ directory
<ivanivan>
Anybody know why, or how I can make it link? Usually I don't need the link, but I want a stable reference to one of the plugins from ~/.vim/
<{^_^}>
→ 3e3b39f1 by @xeji: qemu: 2.11.1 -> 2.12.0
<{^_^}>
→ 3d4aa7e9 by @dtzWill: qemu: workaround 'struct sysinfo' conflict musl <--> linux
<{^_^}>
→ 00610fe0 by @xeji: qemu-riscv: remove, obsolete with qemu 2.12
xcmw has quit [Client Quit]
xcmw has joined #nixos
vcunat has quit [Ping timeout: 256 seconds]
<infinisil>
Oh my god seriously, now that I desperately need eclipse to work it suddenly breaks? -.-
<MichaelRaskin>
On all three channels?
<infinisil>
It might be a java update that's causing this, every project is giving me a build path error
<infinisil>
Using unstable, so I guess I should try 18.03
jrolfs_ has quit [Ping timeout: 264 seconds]
rbrewer123 has joined #nixos
<rbrewer123>
can anybody help me get an overlay to work with nixops?
thc202 has quit [Ping timeout: 256 seconds]
jrolfs_ has joined #nixos
<clever>
Myrl-saki: pong
rosa has joined #nixos
<jbetz_>
relocation error: /nix/store/2kcrj1ksd2a14bm5sky182fv2xwfhfap-glibc-2.26-131/lib/libresolv.so.2: symbol __resolv_context_get_preinit, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
<jbetz_>
on 18.03, unstable channel. anyone know what this is about?
<Orbstheorem[m]>
Is there any way to use nix-build to make a static version of a package in nixpkgs? (I want to run it in another system).
<clever>
elvishjerricco: when the resulting bundle is ran, the installer script (line 90) gets ran in a namespace
jrolfs_ has joined #nixos
<clever>
but i ran into performance issues, it has to untar ~300mb every time that happens
<clever>
hence it being an installer script, not the real application
<clever>
but for smaller nix packages, you can just put the full app there
kreetx has quit [Quit: leaving]
ixxie has joined #nixos
AGTT has joined #nixos
<elvishjerricco>
clever: Whoa. I wonder how hard it would be to create portable nix binaries. Would be cool to just ship nix and use chroot stores with `nix run` to do everything
<clever>
elvishjerricco: that is the rough plan i had when making nix-installer.nix
<mlieberman85>
nixos-container doesn't support the "-I" flag to add a path, and I need to call nixos-container via "sudo" and have no permission to push environment variables via sudo. Is there another option?
<sphalerite>
elvishjerricco: hmm, doesn't look like it. Having a full store path in $PATH seemsl ike the only way to tell as far as I can see
<sphalerite>
mlieberman85: can you do sudo env NIX_PATH=… nixos-container … ?
<mlieberman85>
let me double check
jrolfs_ has quit [Ping timeout: 240 seconds]
jrolfs_ has joined #nixos
<elvishjerricco>
sphalerite: Darn, yea `diff <(nix run nixpkgs.hello -c env) <(env)` doesn't show anything interesting :/
<sphalerite>
elvishjerricco: doesn't seem hard to do though.
<sphalerite>
as in, hard to add something like that to nix
ixxie has quit [Quit: Lost terminal]
<mlieberman85>
oh right, yeah I only have access to nixos-container * in sudoers.
<mlieberman85>
so can't run env
<sphalerite>
mlieberman85: then I think you may be stuck, the only remaining option being to replace all the <foo> things in whatever you're building :/
jrolfs_ has quit [Ping timeout: 240 seconds]
<sphalerite>
or to ask for more permissions :)
<mlieberman85>
yeah. thanks. it's mostly a work around for a test. this nix module gets installed in our production servers into the path that everything has access to but on our CI machines there's no access. I think the simplest case is to just point to a non abstract path in the test.
<concatime>
But when I run `nix-shell -p clang --run 'which clangd'`, it works!
<ixxie>
jtojnar: I noticed you are active in some fwupd / LVFS related issues; is there an advantage - besides convenience - to using that sort of thing over downloading a .exe and installing via USB?
<drakonis>
hmm
<concatime>
But when I installed clang from configuration.nix, it installed the wrapper of clang
<drakonis>
check which clang version it installed
<drakonis>
clangd wasn't available until clang5
<drakonis>
hmm, for some reason, using nix-env will default to clang 6
<drakonis>
nevermind, its defaulting to 5
<concatime>
I think the wrapper does not provide `clangd`.
<drakonis>
the wrapper does not, but a regular clang install does
<heatm1s3r>
is there a go-to guide on doing development with nix-shell? When doing Python development I would like to replace virtualenv with nix-shell and I am not seeing an obvious convention for doing so.
<drakonis>
the default install is the wrapper for clang 5
<drakonis>
i assume it is due to clang-tools not being available for any versions higher or lower tha n5
<drakonis>
than 5
<drakonis>
heatm1s3r, the nixpkgs manual covers that
<{^_^}>
→ c56c0ac9 by @polynomial: bundler: 1.14.6 -> 1.16.1
<{^_^}>
→ 8c733b17 by @Mic92: Merge pull request #39597 from Mic92/bundler
<{^_^}>
→ 0a973b99 by @Mic92: vagrant: 2.0.2 -> 2.0.4
<jtojnar>
ixxie: but I guess it is convenient, the correct blob will be chosen and downloaded automatically, beats crawling the terrible vendor websites
mmlb has quit [Ping timeout: 240 seconds]
jrolfs_ has quit [Ping timeout: 276 seconds]
bpa has joined #nixos
<ixxie>
jtojnar: well, in my case its a laptop so just one website to hit; but I set it up anyway just to see if I could get my weird ACPI boot error to dissappear
<ixxie>
but that appears to be a long standing bug with almost no noticable impact on usage so I think they just don't prioritize it
<ixxie>
anyway I had just done the USB update so there was nothing left to get
<{^_^}>
[nixpkgs] @pstn opened pull request #39681 → nixos/gnunet: create switch for package. → https://git.io/vpBCh
concatime has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @xeji merged pull request #39340 → nixos/networkd: wait for udev to settle before starting networkd → https://git.io/vpOVq
<{^_^}>
[nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/vpBlL
<{^_^}>
→ cc1ab741 by @jluttine: calibre: remove unnecessary patch
<{^_^}>
→ 6cc732eb by @AndersonTorres: Merge pull request #38066 from jluttine/calibre-3.20.0
griff_ has quit [Ping timeout: 240 seconds]
paraseba has quit [Read error: Connection reset by peer]
fendor has quit [Ping timeout: 240 seconds]
<pemeunier>
I'm having trouble packaging a python application, nix complains about not finding sip, even though I've added it to the propagatedBuildInputs. Other packages are found correctly, though. Any idea?
<pemeunier>
(my experience with the nix+python ecosystem is almost zero)
<lejonet>
pemeunier: is it a python library that the application uses perhaps?
oida has quit [Remote host closed the connection]
hph^ has quit [Ping timeout: 240 seconds]
mlieberman85 has quit [Quit: Page closed]
oida has joined #nixos
pie__ has quit [Read error: Connection reset by peer]
<daveo>
error: undefined variable 'sqlite3' at (string):1:94
<daveo>
wait got it
<sphalerite>
daveo: my bad, it's just sqlite, not sqlite3
<daveo>
was nix-shell -p sqlite
<boomshroom>
daveo: What language are you using?
<daveo>
ruby
<daveo>
using the mailcatcher gem
<daveo>
gem install mailcatcher
<sphalerite>
daveo: mailcatcher is in nixpkgs
coot has joined #nixos
<daveo>
well sweet
<daveo>
and it installed after the nix-shell -p sqlite
<daveo>
that will probably also solve problems I had when trying to install the ffi gem
<boomshroom>
daveo: Installing with `nix-env -iA nixos.mailcatcher` should work regardless of nix-shell.
<daveo>
mailcatcher and ffi are installed now
<daveo>
sweet
<daveo>
going to see if another project I was working on can benefit from this as well
<boomshroom>
daveo: Are you trying to use mailcatcher in a ruby project, or run it as a binary?
<daveo>
so what is nix-shell -p?
<daveo>
binary
<daveo>
but I should be able to install the gem and run the binary for it
<boomshroom>
daveo: nix-shell -p gives you a temporary environment that can access the programs listed.
<daveo>
I have not been able to do that without adding the gem bin directory listed in `gem env` to my path
<symphorien>
daveo: I may be mistaken, but if you gem install mailcatcher, the resulting binary will depend on /nix/store/...sqlite3.so but will not put a gc root on it, and you may thus garbage collect sqlite3.so, effectively breaking mailcatcher
<daveo>
it has been a bit of a pain and I never have had to do that before
<boomshroom>
daveo: A good rule of thumb with Nix is that if it's not in nixpkgs, it's better to write a derivation than to use the language's package manager.
<symphorien>
so I think you should install mailcatcher with nix if possible
<boomshroom>
daveo: In your case, the hard work is already done so you just need to install the existing package.
<daveo>
mailcatcher is working with the gem install
<sphalerite>
it might stop working in the future though, that's the problem
<sphalerite>
s/might/probably will/
<boomshroom>
daveo: It won't work after a garbage collection.
<symphorien>
daveo: close the nix-shell, run nix-collect-garbage and it will likely break
<daveo>
so I'm, for the first time, feeling a bit uneasy here
<daveo>
having nix as something that absolutely has to replace npm, rubygems or gradle(?) seems a bit off
<daveo>
help me out here
<sphalerite>
those make assumptions that nix breaks. If you want to use them, stick with a traditional distro
<boomshroom>
daveo: Honestly, even before Nix, I'd never install binaries outside of the system package manager.
<daveo>
what languages do you all mostly develop in?
<symphorien>
daveo: there are tools like yarn2nix to replace yarn (and npm) when you want to keep the binary
phenoble has joined #nixos
<symphorien>
there is probably a gem2nix as well
hph^ has quit [Ping timeout: 240 seconds]
<boomshroom>
daveo: I mostly use Rust and Haskell. Both are very easy to integrate with Nix, automatically or manually.
<symphorien>
gradle I doubt that though
<andrewmiller1>
ixxie: you'll have to let me know how you're graph db goes :)
<boomshroom>
daveo: The real question is why are you building mailcatcher when it's already been built for you?
<daveo>
is that because Rust and Haskell are special or should any language integrate with Nix
<daveo>
mailcatcher is not the only thing I need
<daveo>
for other projects I may use another Ruby library with no nix derivation written yet for it
<boomshroom>
daveo: It's because they both tools writen to generate Nix packages from existing projects: cabal2nix, stack2nix, and cargo2nix. If you've used ArchLinux, writing custom Nix expresions is pretty close to writing PKGBUILDs and isn't that hard when you get the hang of it.
<phenoble>
Hi everyone, I was recommended to consider Nix as a package manager but I am not sure whether it fits. Question: can you have Nix work in a "system-wide scope"? That is, without any "sealed environments", without using nix-shell to setup anything for you?
<Judson>
bundix is definitely what you want to use.
<avn>
daveo: is a `bundix` for ruby stuff
<Judson>
phenoble, that's it's primary purpose
<daveo>
well if cabal2nix, cargo2nix, etc make cabal and cargo work fine that is promising. I supposed npm2nix and gem2nix solve problems for npm and rubygems respectively as long as they are solid
<boomshroom>
phenoble: Not if you're a developper. If you're just installing binaries to run, then you can, but you'd be missing most of the power it provides.
<Judson>
daveo, afaik you want bundix over gem2nix usually.
<daveo>
sweet
<daveo>
let me check it out.
<phenoble>
Judson: oh, wonderful. So it could, say, live in peaceful coexistence with an existing package-manager.
<andrewmiller1>
phenoble: nix sets up a nix store. the stuff in the nix store is read-only. you mannge the data in the /var area, which is the only other part of your /nix directory. now to answer your question: anything outside the nix store is exactly like any other distribution
<sphalerite>
daveo: it varies. In all cases, you'll need to work a little differently (typically, use nix expression generators and nix-shell rather than the language package manager directly). I'd say the Haskell experience is decidedly *better* than without nix.
<MichaelRaskin>
I did use NixOS using only systemPackages for some time
<simpson>
phenoble: Yes, but often that leads to sadness, since existing package managers are typically not that great. What are you planning to build?
<Judson>
Yes, from what I understand it lives peacefully. I've heard of little inconveniences if the /nix/store directory isn't set up correctly. I can't say I understand those well.
rosa has quit [Client Quit]
<phenoble>
boomshroom: The main use-case I have in mind is to manage a(n ever growing) list of applications to be built from github repositories, managing their dependencies, and installing them in some meaningful ("local") directory.
<phenoble>
@Judson
<sphalerite>
daveo: but 90% of tutorials on the internet probably won't work verbatim
<MichaelRaskin>
phenoble: that seems completely fine use of Nix
<phenoble>
MichaelRaskin: excellent, thank you.
<simpson>
phenoble: Is it cool if that local directory is just a symlink into the Nix store?
<simpson>
'Cause then you can cheat quite a bit!
<phenoble>
My main motivation would be to synchronize my work environment between my workplace and my home system. I keep refining my tools at home, and I'd like to use them with minimal effort in a changing environment at work.
<andrewmiller1>
phenoble: nix is a language. nixpkgs is run by nix. nixos is build with the spirit of the language
<boomshroom>
phenoble: That's a great way to use Nix. The systemPackages attribute of NixOS does exactly that, provided you give instructions on how to build each package that isn't already provided.
<daveo>
so if I'm working with other peoples projects they are unlikely at this point to have integrated nix into their npm projects or ruby projects, right? In that case things like bundix, gem2nix, yarn2nix, npm2nix provide maybe not an ideal solution, but a workable one. Otherwise, Nix gives you another (better?) way to manage dependencies?
<MichaelRaskin>
I do recommend to a) skim Nix and Nixpkgs manuals in advance b) at least if you find some exact model, once you have it — spend a bit of time to make sure you use multi-user Nix setup with daemona and full sandboxing
<simpson>
phenoble: The easy way is to have a shell.nix which describes your tools, and use nix-shell in all places.
<andrewmiller1>
phenoble: so you can use nix in applications. it doesn't have to be what we like to call pure
<manveru>
daveo: i work with other people that only use bundler/yarn, so i use bundix and yarn2nix to manage the dependencies and they can work as usual
<daveo>
Judson: thanks
<phenoble>
simpson: I'd very much like to avoid having any form indirection. I use xmonad/tux/emacs and many many other smaller tools all working together. I cannot imagine how this should work using some shell I'd have to start first to interact with any of it.
blankhart has quit [Ping timeout: 260 seconds]
rosa has joined #nixos
<daveo>
manveru: That is great.
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #39683 → libOnly: considered harmful → https://git.io/vpBBU
<manveru>
for yarn2nix, you don't need to keep a separate lockfile even, the yarn.lock can be used for that... for bundler you need the gemset.nix since Gemfile.lock doesn't store any checksums for gems
<MichaelRaskin>
phenoble: you can build a sealed environment with Nix, then symlink it to a fixed place and just add it to $PATH
<manveru>
but bundix caches everything, so rerunning `bundix -l` usually only takes a second
<simpson>
phenoble: Eventually you may come to have *all* of that in Nix. I totally understand your trepidation though.
<phenoble>
boomshroom: I have an Ubuntu system at home, and will soon have a Debian system at work. I will not be able (or, well, even willing - at home) to use NixOS
<Judson>
Related to phenoble's case: is there a way to use modules for per-user config? I imagine replacing a dotfiles directory.
<andrewmiller1>
Judson: of course
<phenoble>
MichaelRaskin: but I don't want a sealed environment ^^
<Judson>
andrewmiller1, are there examples of that in practice?
<boomshroom>
phenoble: The same kind of setup is possible with a hosted installation, but with slightly more setup.
<{^_^}>
[nixpkgs] @xeji merged pull request #35361 → monkeysphere: wrap the monkeysphere executable with the necessary crypto libraries … → https://git.io/vAg9P
<MichaelRaskin>
phenoble: I think what you don't want is something you need to re-initialize (like nix-shell)
<MichaelRaskin>
But you can have a fixed place ~/nix-tools or whatever and add ~/nix-tools/bin to $PATH
<manveru>
daveo: another tip i have for your is to use direnv.net :)
<Judson>
I think I've looked at that a little bit. My first blush was that it wanted to be completely in controll, symphorien?
<daveo>
manveru: not sure I know what that is
<MichaelRaskin>
~/nix-tools will be a symlink to the output of buildEnv (which constructs an environment), but you will just have some tools in $PATH
<boomshroom>
phenoble: In this case, you'd set up a user profile and link a folder like ~/.nix-profile to the latest generation. Then you add ~/.nix-profile/bin to your path.
<manveru>
daveo: that way you can put `use nix` in your .envrc, and everytime you enter the directory, your nix-shell is setup (but using your normal shell)
<phenoble>
boomshroom: When you say hosted installation, you mean to have some "defined environment" stored remotely, which one would make useable wherever one happens to be?
<Judson>
daveo, I envy you the new discovery of direnv!
<daveo>
manveru: well that is awesome
<boomshroom>
phenoble: I don't know what the word should be, I really meant a non-NixOS system.
<phenoble>
MichaelRaskin: I think that is correct. Though I wouldn't mind having to (automatically?) run some command at, say, my workplace whenever I log on, first thing in the morning.
<Judson>
Between direnv and nix-shell, you can get something like RVM but for any dev environment - including "this project needs postgres, that one needs MariaDB"
[Leary] has joined #nixos
<phenoble>
MichaelRaskin: Having a place, accessible from the "outside", where binaries can live and $PATH can point to sounds exactly what I think I want.
<daveo>
phenoble: why no NixOS home? I am absolutely loving it...
<daveo>
Judson: sounds awesome
<MichaelRaskin>
daveo: because learning to configure hardware in a new setting?
<daveo>
so the .envrc goes in each individual project directory?
<MichaelRaskin>
I can absolutely understand the lack of desire to do this
<manveru>
daveo: yeah
<daveo>
manveru: nice
<phenoble>
daveo: Well, before me having read that question of yours just now - I have not spent a minute thinking about it yet, to be honest. I am actually not all that unhappy with my ubuntu system at home. So I' unsure about the benefit/cost ratio here.
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
<manveru>
daveo: i usually have it my global .gitignore so it doesn't bother people
<MichaelRaskin>
This is a more complicated thing than you need, but just as an upper bound or something
<MichaelRaskin>
Then I nix-build this and ask to put a link to result in a fixed location mentioned in $PATH
<phenoble>
boomshroom: ok. So I understand that NixOS + Nix is (rather?) different from Any-other-OS + Nix (how so?)?
<MichaelRaskin>
phenoble: in NixOS your entire system configuration is a Nix package
<daveo>
phenoble: up to you. personally I was looking for a setup I could automatically provision and destroy as needed and have anywhere.
hph^ has joined #nixos
<MichaelRaskin>
This, in particular, gives safer upgrades and simple rollbacks
seanparsons has quit [Quit: ZNC 1.6.5 - http://znc.in]
<symphorien>
phenoble: also with pure nix, you can't start services, have setuid binaries and so on
rosa has quit [Quit: rosa]
<boomshroom>
phenoble: If you want more specifics, nix-env maintains a profile stored in /nix/var/nix/profiles/per-user/${USERNAME}/. In that directory are symlinks called ${PROFILE}-${GENERATION} where ${PROFILE} is the profile name and ${GENERATION} is the generation number. It also gives a ${PROFILE} symlink that points directly at the current generation. Typically, ~/.nix-profile points at the
<boomshroom>
/nix/var/nix/profiles/per-user/${PROFILE}. You can set ${PROFILE} to be whatever you want, but by default it's just "profile".
<phenoble>
symphorien: does that mean there is no systemd in NixOS?
<symphorien>
by pure nix I meant nix without nixos
<boomshroom>
phenoble: The main difference is that NixOS handles setting all this up for you where as other systems require you to set it up manually.
doyougnu has joined #nixos
<MichaelRaskin>
But the system package built as NixOS includes the configs for systemd etc
rosa has joined #nixos
seanparsons has joined #nixos
hakujin has quit [Ping timeout: 248 seconds]
<phenoble>
daveo: I am hoping to get to where I can do just that for a finite set of applications, packages and files - but independent from the linux distribution.
<MichaelRaskin>
phenoble: note that in Nix-on-other-Linux you will need to add a few things to you environment
<daveo>
phenoble: even gobolinux?
<phenoble>
MichaelRaskin: can I do that without sudo privilege?
<MichaelRaskin>
That part sure
<phenoble>
ok
<andrewmiller1>
phenoble: you need sudo to make /nix and to change the owner of that directory to your user
<MichaelRaskin>
You will need to use sudo to setup Nix itself
tsmeets has quit [Quit: leaving]
<symphorien>
or have user namespaces enabled but this is more cumbersome
<MichaelRaskin>
Ideally you will (eventually) want to use nix-daemon running as root and setting up build sandboxes
<phenoble>
MichaelRaskin: I have sudo for the system package manager, so I can install whatever is in the upstream repositories. But I cannot add new repositories.
<boomshroom>
phenoble: For initial setup, you're going to run into one big problem, creating /nix. If you don't have permission to do that, then you need to use a nonstandard store (and build all packages manually) or setup a chroot, namespace, or some other virtual environment.
<daveo>
phenoble: that is cool idea. I would like to be able to do it with non-Linux OS's. Ansible, Puppet, Chef, etc. are the solutions I guess for now
<MichaelRaskin>
But I guess using an environment that you need to enter is what you want to avoid…
<phenoble>
boomshroom: interesting, thank you for the infomration on nix-env
<andrewmiller1>
daveo: nix needs symbolic links
<boomshroom>
daveo: Nix even works on macOS and some BSDs.
rosa has quit [Client Quit]
<MichaelRaskin>
phenoble: if you cannot create /nix it will be annoying in any case
<phenoble>
boomshroom: what does "and build all packages manually" mean? What is the goal of building them?
<MichaelRaskin>
Not manually, rebuilding them locally
<MichaelRaskin>
Binary packages require the Nix store to be /nix/store
<phenoble>
MichaelRaskin: I assume the problem is not that some directory on root is not present, is it?
<MichaelRaskin>
Well, the binary packages that are actually provided by Hydra and uploaded to cache.nixos.org
<ixxie>
andrewmiller1: sure thing! ditto for you :)
<boomshroom>
phenoble: well /nix is some directory on root that wouldn't be present.
<daveo>
andrewmiller1: which os's still have no way to symlink? can windows 7 and older do symlinks with Cygwin?
<phenoble>
daveo: I thought about ansible, but did not yet dig deeper into it to see whether it is suitable
<phenoble>
daveo: thank you for the references to the other packages
<MichaelRaskin>
If you can negotiate getting /nix/ directory owned by you, then it is fine
jacob__ has quit [Quit: Lost terminal]
<MichaelRaskin>
Every Nix package has its unique installation path, and the prefix is fixed at the build time
rosa has joined #nixos
<daveo>
phenoble: you seem to be interested in configuration management/provisioning. Those keywords may help
<MichaelRaskin>
So if you cannot have /nix, you need to do a local build of everything (including GCC, glibc etc.) with a different prefix
<phenoble>
MichaelRaskin: really. So why can't Nix abstract away the absolute path of that directory, and let me define it? Consider me disappointed.
<phenoble>
daveo: absolutely, thank you. I am (still kindof) new to this world (I guess).
<sphalerite>
nix without root access is such a common topic, we should probably have an FAQ entry and factoid for it
<boomshroom>
phenoble: It does, but hydra only builds binary packages with the /nix prefix.
<MichaelRaskin>
phenoble: there are too many places where paths get hardcoded
<MichaelRaskin>
During the build
<sphalerite>
which isn't nix's fault FWIW :p
thc202 has quit [Ping timeout: 256 seconds]
<MichaelRaskin>
A typical C++ program hardcodes the path to its data files into the binary
<simpson>
phenoble: It's parameterized at *build* time. You can absolutely do this with /home/phenoble or whatever, but you'll be unhappy because *everything* must be recompiled if it has store paths.
rosa has quit [Client Quit]
<phenoble>
boomshroom: It sounds like this is by design.
<phenoble>
MichaelRaskin: bad design.
<MichaelRaskin>
Look, Nix is for packaging real software
<andrewmiller1>
daveo: you'd have to do your own research for windows. i tried and believe i came to the conclusion that although there's been somewhat recent development from microsoft for symbolic links, windows doesn't allow symlinks. but i'd imagine eventually they will so maybe things have changed. you might also want to look at ubuntu for windows or whatever it's called. from the microsoft store. but if you want to know what being locked
<andrewmiller1>
operating system
<MichaelRaskin>
You say most software is bad design
frank87 has quit [Read error: Connection reset by peer]
<MichaelRaskin>
True, but …
<phenoble>
simpson: ah, so I would have to build Nix to have paths into my home directory built into it - and then everything is dandy?
<MichaelRaskin>
But you will need to build everything for yourself
<phenoble>
Then - why would it be more work to maintain a non-root nix install compared to a root nix install?
<boomshroom>
phenoble: Yes, but you won't be able to use the binary cache. Everything will still work, but will take 1000 times longer.
<MichaelRaskin>
Because we use normal compiler to compile the upstream code
frank87 has joined #nixos
<simpson>
phenoble: It might take a few days to build stuff. Or a few weeks. I don't know; I've never had the patience to let it go for more than a couple hours.
<zybell_>
andrewmiller1:windows has support for symlinks since windows 3.0
<MichaelRaskin>
So the path hardcoding happens for every actual piece of software
<andrewmiller1>
zybell_: oh?
<daveo>
simpson: sounds like my experience last time I tried Gentoo
<zybell_>
.pif *are* symlinks
<phenoble>
MichaelRaskin: well, linux has lots of tools that provide abstraction and indirection. ld comes to mind, $PATH, etc.
<andrewmiller1>
zybell_: by any chance do you know if nix can work on windows?
<rszibele[m]>
yeah windows has symlink support
<ZeDestructor>
daveo: windows can do symlinks, but only on ntfs, and requires using cmd
<boomshroom>
daveo: That's why we have Hydra. Nix is technically a source-based package manager, we just check is someone has already built the stuff before trying ourselves.
<MichaelRaskin>
phenoble: tell us more how ld doesn't hardcode lookup paths
<phenoble>
simpson: Why should building take so long? What exactly is being built?
<rszibele[m]>
you can create them with the mklink command
<MichaelRaskin>
Everything?
<MichaelRaskin>
glibc, gcc…
<boomshroom>
phenoble: EVERYTHING. Including the compiler.
<MichaelRaskin>
They never said they want Firefox from Nix
<daveo>
boomshroom: I bumped into hydra before I started using NixOS. I like it and want to try running one later.
<phenoble>
boomshroom: aah, so Nix provides an entire system environment?
<ZeDestructor>
Also Hardlinks and directory links (cause that's a different thing on windows)
<MichaelRaskin>
Yes, and that is non-negotiable
<phenoble>
boomshroom: ... and one might as well just use NixOS then. Now I get it ^^
<andrewmiller1>
boomshroom: including the nix language, or only the nixpkgs repo?
<MichaelRaskin>
phenoble: well, with Nix you can mix-and-match, and you can use hardware configuration tools of your distribution
<boomshroom>
andrewmiller1: Any package that isn't available in a binary cache will be built. This includes heavilly customised packages, packages that aren't in nixpkgs, and packages in a custom store.
<phenoble>
MichaelRaskin: well, using major and minor revisions, and these symlinking facilities - there -is- some form of flexibility.
<{^_^}>
[nixpkgs] @knedlsepp closed pull request #27649 → python3: Add C++ compiler support for distutils (on non gcc systems) → https://git.io/v7OJQ
<MichaelRaskin>
Some, yes. Not much, not enough.
<schoppenhauer>
hi. since the last update of gajim-0.16.8 it doesn't work anymore, with the error message "NameError: name 'common' is not defined" in line 236 in gajim.py
<schoppenhauer>
rollback does not fix the problem.
<schoppenhauer>
uninstalling and reinstalling does not so, as well
<phenoble>
Well, so, ... since I've come here, I think I've learnt that Nix is not the right tool for me.
<zybell_>
The hardest problem for nix on windows is too few bytes in environment. Nix needs more env space than other progs. Idk how windows is configured now,that most of that is in reg.
<phenoble>
But this sure is an awesome channel. Thank you all!
blankhart has joined #nixos
<MichaelRaskin>
phenoble: yeah, unless you are ready to run everything in a user-namespace chroot, you are out of luck
<MichaelRaskin>
Sorry.
<daveo>
after nix-sh -p sqlite now all my gem installs are pretty much working. Glad I asked and learned about bundix and using nix-shell / direnv though. This sounds awesome
hph^ has quit [Ping timeout: 248 seconds]
<schoppenhauer>
how can I force-reinstall gajim?
<drakonis>
andrewmiller1, windows has symlinking now, but it requires admin privs
<daveo>
one question I still have is how to set up the path for my gem binaries best. I can manually add the path to the directory to my environment but I bet this is a solved problem with an easy solution.
<andrewmiller1>
drakonis: oh cool
<Ralith>
what do you mean by "force-reinstall"?
i-am-the-slime has quit [Ping timeout: 265 seconds]
<drakonis>
it had symlinking for some time now
<drakonis>
but it barely saw usage
doyougnu has quit [Ping timeout: 248 seconds]
<daveo>
phenoble: yeah. NixOS is from the future. My opinion. Thanks!
<rszibele[m]>
Is there any easy way to create an automated NixOS install? Something like booting from the usb and it automatically installs based on a configuration.nix.
krey has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<krey>
samueldr:
<srhb>
rszibele[m]: It's fairly easy to add a systemd oneshot job to the iso that just does whatever you like.
<boomshroom>
rszibele[m]: Setting up partitions is the only thing I can think of that isn't creating configuration.nix and running the installer.
jperras has quit [Ping timeout: 264 seconds]
<samueldr>
hi krey
<krey>
samueldr: o/
<phenoble>
daveo: Can you recommend an article/tutorial/video to learn more? Nix(OS) might not fix my problems today, but I am interested in the future ^^
doyougnu has joined #nixos
<andrewmiller1>
schoppenhauer: do you have a single user or multi user install?
<krey>
samueldr: what's the benefit of the nixpkgs.overlays based method you describe?
<rszibele[m]>
hmm if I anyhow have to partition it then I might as well manually do it. I have like 2 old mini computers that would run nicely on NixOS.
<samueldr>
krey: your `nixpkgs.overlays` will match what's in `<nixpkgs-overlays>`
xcmw has joined #nixos
<samueldr>
as you wrote "There is a configuration option nixpkgs.overlays. Overlays set here will not be automatically applied by nix tools"
<samueldr>
by using that one weird trick (nixers hates him) the nix tools seem to pick it up appropriately (?)
<krey>
haha
doyougnu has quit [Read error: Connection reset by peer]
<samueldr>
I can `nix-env` (as my user) the system's overlays without touching `.config/nixpkgs/overlays.nix`.
jperras has joined #nixos
<MichaelRaskin>
phenoble: maybe nix pills
<krey>
I only have the NIX_PATH set and everything works for me
<srhb>
rszibele[m]: You can just write a script to do the partitioning for you.
<phenoble>
MichaelRaskin: hah, perfect
<krey>
e.g. nixos-rebuild and nix-shell
<krey>
I'm not sure what the incremental value of setting nixpkgs.overlays is
<samueldr>
well, it makes it so that the NIX_PATH is set by the nixos configuration, that's probably a matter of taste
<phenoble>
MichaelRaskin: sure reads like you would get in for much more than just "package management" though
<daveo>
phenoble: I'm not sure of what your problems are. But you sound like you are looking more to be able to configure/provision any other environment. As such you may be more interested in starting with something like Ansible or SaltStack (made in Python), Chef and Puppet (made in Ruby) or what have you. Those are the current 'big' configuration management tools I can think of.
<schoppenhauer>
andrewmiller1: ok I will try that.
<boomshroom>
phenoble: Nix is fundamentally a build tool like Make, except it can build your entire system just like an ordinary C project.
<MichaelRaskin>
phenoble: I do help a person use Nix where the OS is Ubuntu and Nix is used only to install some things not adequately provided by Ubuntu repos
<daveo>
phenoble: the reason I say that is because it may take more time or patience to work with something more emerging
<krey>
what do you mean? i set nix.nixPath in my config too. but that seems kind of orthogonal
<samueldr>
I'm not sure! it's probably because of the way it made sense to me when looking at overlays
<daveo>
phenoble: for learning nix you may ask people here. To me it seems more promising.
<krey>
samueldr: lpaste.net/365388
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #39686 → all-packages: move aliases to aliases.nix → https://git.io/vpBR8
<phenoble>
Thank you all. Sure learnt something. I will have a look at Ansible, SaltStack and the like first.
<daveo>
phenoble: I have liked the 'Nix Pills' series
sigmundv__ has joined #nixos
<daveo>
phenoble: I came to nix after trying those tools
<samueldr>
krey: a matter of taste, maybe, I find adding things to NIX_PATH as strings to feel weird, meanwhile setting it as a configuration with the nixos options feels "more right"
<daveo>
phenoble: :)
<boomshroom>
daveo: I often hang out here just to chat with cool people. :P
<phenoble>
daveo: well, might just meet again here some time then =)
<MichaelRaskin>
Hmmmm
<daveo>
boomshroom: I often hang here to fix my borked EFI
<phenoble>
daveo: But as it goes, there are no shortcuts eh
<MichaelRaskin>
phenoble: I think I know a solution which technically satisfies your requirement (but is a bit horrible)
griff_ has joined #nixos
<phenoble>
MichaelRaskin: that sounds both wonderful and horrible at the same time
<MichaelRaskin>
Are user namespaces enabled?
<krey>
samueldr: I totally agree
<phenoble>
MichaelRaskin: mmhn, I don't know
<krey>
but unfortunately, you still need to set it with strings, haha
<daveo>
phenoble: I'd say if it looks like a shortcut somebody probably did a lot of work somewhere. Understanding that may be the next way forward
<rszibele[m]>
yeah, the latest iso fails to install on efi systems but theres a good comment on the github issue that solves it by manually adding it.
<phenoble>
MichaelRaskin: but I'd doubt it somewhat
<MichaelRaskin>
basically whether unshare command works
<MichaelRaskin>
I don't remember Ubuntu defaults
<zybell_>
rszibele[m] you could mke it so that the usb stick by boot constructs a measurement(MAC,HDD Size ...) in a file(on USB),then uses md5 of that file to check for command file with that md5 as name.On first boot that wont exist,->shutdown.Now after collected measures of all machines,you go to system designer,that stores commands. When you boot now,the commands exist and will be executed,you will get install on partitions you want.
<samueldr>
yeah, once, but imagine one scenario: I want to set `nixpkgs.overlays` in multiple configuration files; I think this way it simplifies it
<samueldr>
(as nixpkgs.overlays is a list that gets appended, it's an entirely plausible scenario)
nckx has quit [Quit: Updating my GNU GuixSD server — gnu.org/s/guix]
<samueldr>
(scenario which I think is why I did it this way)
<phenoble>
daveo: true. There are no limits to reinventing wheels.
<phenoble>
MichaelRaskin: I'll be on a debian system at work soon
<daveo>
phenoble: not sure I get the reinventing wheels part. but ok
<phenoble>
daveo: Sorry, I wasn't clear enough. I meant to merely comment on what you said by equating "not using somebody else's hard work" to fix a problem, with reinventing wheels.
<daveo>
rszibele[m]: Not sure if that was a response to my 'borked EFI' comment. My EFI got borked because my BIOS sucks
<krey>
samueldr: hmm, OK. as a simple user with a single machine, this would not have occurred to me, but I see the appeal now
mahalel_1 has joined #nixos
nckx has joined #nixos
<rszibele[m]>
zybell_: that sounds like a pretty cool solution, thanks!
<MichaelRaskin>
Right, Debian disables USER_NS by default
jperras has quit [Quit: WeeChat 2.1]
<rszibele[m]>
daveo: Oh I see. Yeah it was a response to that comment.
doyougnu has joined #nixos
<krey>
samueldr: thanks for explaining
<daveo>
phenoble: right. if somebody did a great job with an implementation it may be worth it to study it. I think I was talking more about the invention of sophisticated things. Handling dependencies is not a trivial problem. I'm not saying the invention of the wheel was trivial but ...
<samueldr>
you're welcome krey, I had to think about why I did that :)
jperras has joined #nixos
<daveo>
phenoble: things can also become 'trivial' when a paradigm shift is made by somebody who thinks about things a different way. That can be a tremendous advance. I'm out of words now...
<schoppenhauer>
andrewmiller1: ok, apparently, the gajim package is flawed somehow
<andrewmiller1>
schoppenhauer: what is on the line of code where the error is
<phenoble>
daveo: Yea, me too. I am not a native english speaker, but I understood the phrase of "reinvention of wheels" as needless effort spent into reinventing anything, trivial or not.
<daveo>
boomshroom: yeah this chat has seemed pretty lively today and definitely it has been nice. Thanks for helping fix my computer before as well as Sphalerite. Bummer that the BIOS does that when I fiddle with it and I've learned my lesson there.
<phenoble>
daveo: I agree though, but do have to get up tomorrow morning. Good night!
<boomshroom>
daveo: You managed to get it to work? Nice! It was no problem.
<boomshroom>
phenoble: Good night! I'll probably be having lunch soon.
<daveo>
boomshroom: yeah. I just had to do a nix-install. There was a bit more to it
<schoppenhauer>
andrewmiller1: ah I see, it is trying to tell me that the database file is corrupted, but it can't, because "common" is not defined
phenoble has quit [Quit: WeeChat 1.9.1]
<schoppenhauer>
andrewmiller1: yay, gajim works again. it was just the database.
<andrewmiller1>
schoppenhauer: good job :)
<daveo>
phenoble: I am really interested in your experience and whether you solve your problem. I have a major need to provision dev boxes and other things at work/home and would like to see how you do. Seems like the technology is many times here but not easy for everybody to use yet.
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<AGTT>
clever and everyone: I managed to compile on aarch64. In 'Makefile' I added -O0 and removed the -O3 from below it: 'GLOBAL_CXXFLAGS += -O0 -std=c++14 -g -Wall -include config.h -v -fverbose-asm'. Please also see my (AGTT) comment at https://aur.archlinux.org/packages/nix/?comments=all . With -O3, g++ crashed. I used the precompiled store from https://nixos.org/releases/nix/nix-2.0.1/ so I didn't get a chance to try compiling binutils with
<AGTT>
nix yet. 'Eisfreak7' also seems to have compiled for armv7h on there, so I added armv7h to the supported arches...
bpa has quit [Remote host closed the connection]
spear2 has joined #nixos
griff_ has quit [Quit: griff_]
<{^_^}>
[nixpkgs] @xeji merged pull request #39652 → makemkv: 1.10.8 -> 1.12.2, switch from qt4 to qt5 → https://git.io/vp407
<{^_^}>
→ cdfa85c5 by Timo Kaufmann: cddlib: 0.94h -> 0.94i, add cdd_both_reps binary
<{^_^}>
→ d917b5ad by @7c6f434c: Merge pull request #39408 from timokau/cddlib-094i
<drakonis>
hmm, i need to use an prerelease python version
<drakonis>
gotta get python 3.7
phreedom has joined #nixos
<boomshroom>
drakonis: How comfortable are you with Nix expressions?
<drakonis>
hmm, the most i've done was update an expression
<drakonis>
gotta use an updated module
<boomshroom>
drakonis: It should be possible to make a derivation that overrides the src and version attributes of python3 with the source for 3.7.
<drakonis>
hmm, doesn't seem like i need the updated module but i still want to learn how to do that
Ariakenom has quit [Quit: Leaving]
<boomshroom>
drakonis: Most official nixpkgs come with an overrideAttrs function that replaces the derivation's attributes like src, version, and name using a function passed in that takes the old attribute set and returns a set with the attributes you want changed.
<boxscape>
is there a way I can give a haskellPackages.developPackage package an extra haskell library when I call it in my nix-shell, so I can import it in ghci?