Havvy has quit [Read error: Connection reset by peer]
shibboleth has quit [Quit: shibboleth]
evanjs has joined #nixos
nixtacular has joined #nixos
jluttine has quit [Ping timeout: 268 seconds]
<nixtacular>
i'm trying to set up neovim using home-manager (my question is *not* specific to home-manager) and i'm confused about how to install the coc.nvim plugin. i see lots of coc extensions like `coc-tslint`, `coc-go`, etc. in https://github.com/NixOS/nixpkgs/blob/master/pkgs/misc/vim-plugins/vim-plugin-names, but I don't actually see the main `coc.nvim`
<nixtacular>
package
<nixtacular>
i believe that i can still use Pathogen to install `coc.nvim`, but this seems weird since all these coc extensions are available through Nixpkgs
<nixtacular>
so what is "correct" way to install `coc.nvim` in Nix?
ris has quit [Ping timeout: 258 seconds]
mmlb has quit [Quit: Ping timeout (120 seconds)]
<hpfr[m]>
Is it possible to delete the latest nixos generation if I boot into the previous one
<_pash>
nixtacular: read the installation section of the coc.nvim github page
<_pash>
Install nodejs and yarn via nix-env or put them in /etc/nixos/configuration.nix
<_pash>
Don't forget to put: set shell=/bin/sh in your init.vim.
<hpfr[m]>
I’m getting an error trying to delete even though /run/*system point to the previous gen I have booted
<nixtacular>
_pash: yes, i saw that page. as i mentioned, I know that I can use Pathogen (or vim plug or whatever), but is this the best way to do it? if i'm supposed to use a vim package manager, why then does Nixpkgs have `coc-tsserver`, `coc-go`, etc.?
<nixtacular>
doesn't it seem a bit odd to anyone else...? am i missing something...?
selfsymmetric-mu has joined #nixos
<_pash>
nixtacular: that's the way that the maintainer of coc.nvim suggests to do it... so I trust that. You can also let nix manage your vim extensions, and hence nixpkgs will have those plugins that you mention
fling has joined #nixos
<nixtacular>
_pash: hmm alright, perhaps i will try my hand at packaging `coc.nvim`. seems very strange to me that i can let Nix manage my Coc plugins but there's no way to let Nix manage Coc itself.
Havvy has joined #nixos
<_pash>
nixtacular: nixos.vimPlugins.coc-nvim
Havvy has quit [Client Quit]
<hpfr[m]>
Oh, /nix/var/nix/profiles/system still points to the latest version. What is the nix way to point it to the previous?
<mightybyte>
Anyone have any idea why I might not be getting something from a cache.
<_pash>
nixtacular: `nix search` will be your best friend
<mightybyte>
I took the exact store path that nix is building and did a nix-copy-closure to my cache. But it's still not being picked up.
<hpfr[m]>
Can I just use ln to change where /nix/var/nix/profiles/system points or will that break things
johnnyfive has quit [Ping timeout: 268 seconds]
<mightybyte>
I'm 99% sure it is seeing the cache because I retrieved other things from it.
jluttine has joined #nixos
m0rphism has quit [Ping timeout: 265 seconds]
<hpfr[m]>
Found it nixos-rebuild switch —rollback
<hpfr[m]>
mightybyte: you know it’s the exact derivation in the cache
<hpfr[m]>
And not the same package but a different derivation (patched, old version, etc)
abathur has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Je0QW
<nixtacular>
_pash: good advice :-). also, it appears that it was removed from that list in the run up to 19.09 and handled in a separate expression for Vim plugin overrides
<nixtacular>
thanks for your help, _pash
ntqz has quit []
<mightybyte>
hpfr[m]: I did a copy closure on the store path.
<mightybyte>
The hashes match exactly
toppler has quit [Ping timeout: 240 seconds]
<hpfr[m]>
mightybyte: huh, idk then sorry
mmlb has joined #nixos
wildtrees has quit [Quit: Leaving]
_pash has quit [Ping timeout: 268 seconds]
toppler has joined #nixos
alexherbo2 has quit [Quit: Ping timeout (120 seconds)]
_pash has joined #nixos
<_pash>
nixtacular: maybe you could help me too
alexherbo2 has joined #nixos
strobelight has quit [Ping timeout: 245 seconds]
<nixtacular>
_pash: sure thing. i'm new, but i can try :-)
Rusty1 has joined #nixos
<_pash>
so say you went to do nix-channel --add nixos https://.../nixos-unstable
<_pash>
now whatever you install with nixos rebuild switch or nix-env should come from there
<_pash>
now say there is a broken package that doesnt build... if youve never built it before and you can't rollback what can you do?
mmlb has quit [Ping timeout: 268 seconds]
rotaerk has quit [Ping timeout: 240 seconds]
<nixtacular>
_pash: i haven't encountered this problem before, but if i were to guess, i would say that you need to find a way to refer to the Nix expression on the stable channel. for example, perhaps you could do `nix-channel --add nixos-stable https://.../nixos-stable` and use that somehow just to build that particular package
<DigitalKiwi>
let me find a link
<nixtacular>
yeah i think you could add that channel and then do something like `nix-env -iA nixos-stable.my-package`
<_pash>
right now i am using `nix-env -f '<nixpkgs>' -iA myPackages`
<DigitalKiwi>
i have a bunch of channels and then in my configuratoin.nix i import them and i can do stuff like nixos-1909.program in the systemPackages
<_pash>
as i have defined a myPackages package override
lunik1213 has quit [Read error: Connection reset by peer]
<_pash>
DigitalKiwi: those channels are defined through `sudo nix-channel`?
<DigitalKiwi>
yes
lunik1213 has joined #nixos
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 31 commits to nixos-unstable-small: https://git.io/Je0Qu
<nixtacular>
i g2g. good luck, _pash!
<_pash>
nixtacular: thanks
nixtacular has quit [Remote host closed the connection]
<_pash>
DigitalKiwi: so now i have a package override in .config/nixpkgs, how does nix know to look there?
infinisil has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
<_pash>
DigitalKiwi: selfsymmetric-mu: thanks, that's helpful will take a look
<_pash>
selfsymmetric-mu: i've seen that way before
<_pash>
i couldn't figure out what that does in someone elses config
ng0 has quit [Quit: Alexa, when is the end of world?]
<ashkitten>
i keep getting `device (enp4s0): failure to start DHCPv6: failed to start client: Address already in use` in my networkmanager logs
<ashkitten>
i don't really get why
foldingcookie has quit [Remote host closed the connection]
<ashkitten>
upgraded to latest nixos-unstable and rebooted and it works now...
johnnyfive has joined #nixos
mmlb has joined #nixos
szicari has quit [Ping timeout: 276 seconds]
mmlb has quit [Ping timeout: 240 seconds]
szicari has joined #nixos
toppler has quit [Ping timeout: 265 seconds]
myskran has joined #nixos
<{^_^}>
[nixpkgs] @marsam opened pull request #71956 → libogg: fix build on darwin → https://git.io/Je0QX
toppler has joined #nixos
myskran has quit [Ping timeout: 240 seconds]
<inkbottle>
With hello-2.10.tar.gz, in nix pill 09, nix-build manages with simply "tar -xf $src". Why so? And why do they use "tar -zxf $src" instead in nix pill 10?
<hpfr[m]>
If Firefox was moved to 70 three days ago and nixpkgs-unstable has commits from yesterday, why is the latest Firefox 69?
jluttine has joined #nixos
hpfr has joined #nixos
<{^_^}>
[nixpkgs] @lightbulbjim opened pull request #71957 → librecad: fix missing app name and icon on Wayland → https://git.io/Je0QH
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « tmate: 2.3.0 -> 2.3.1 »: https://git.io/Je0QQ
hpfr has quit [Remote host closed the connection]
hpfr has joined #nixos
MmeQuignon has quit [Ping timeout: 240 seconds]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
<inkbottle>
I was *really* expecting that the files created during a "nix-shell" session, would be removed (in a functional sort of way), when I exited the nix-shell
<inkbottle>
But that was not the case
rotaerk has joined #nixos
<inkbottle>
I'm wondering if there is something else that would "clean the slate when we exit"
rotaerk has quit [Ping timeout: 250 seconds]
<DigitalKiwi>
hpfr[m]: i'm not sure but it looks like the firefox got merged into staging and the revision hydra builds is from master?
<{^_^}>
[nixpkgs] @teto pushed commit from @chkno to master « vimPlugins.vader-vim: init at 2019-05-18 »: https://git.io/Je05m
<iqubic>
So, I can't get this to work at all. "error: syntax error, unexpected $undefined, at /etc/nixos/configuration.nix:181:25 (use '--show-trace' to show detailed location information)"
<wedens[m]>
iqubic: it's not a valid Nix syntax. single line string is enclosed in double quotes.
<wedens[m]>
also `${pkgs.xorg.xset}/bin/xset`
<hpfr[m]>
I use a patched libwacom adding support for my laptop. The patches are all simple additions that should change effectively nothing from a dependent’s perspective. However, libinput depends on libwacom, and qt depends on libinput, so I have to do a ton of rebuilds whenever any of these update. How can I force the cached libinput?
<wedens[m]>
hpfr: you'll need to use libinput with cached libwacom to avoid building libinput when libwacom changes
<teto>
is it normal for `(linux.overrideAttrs (oa: {})).features` to fail ? linux.features works fine
<wedens[m]>
hpfr: they won't have any effect in libinput if you build libinput with libwacom without patches. I'm not sure what you're trying to achieve, tbh
<hpfr[m]>
wedens: I’m trying to use a patched version of libwacom that recognizes the Surface digitizer, without having to build qt and practically everything that starts with k locally
<wedens[m]>
do you need libinput with patched libwacom in qt?
<hpfr[m]>
I think so? I’m not sure where build ends and runtime begins but they must be listed as build dependencies
<hpfr[m]>
I used to use arch on this machine with a patched libwacom though, so I’m guessing the build dependencies mean little at least for these patches
<hpfr[m]>
Because everything worked with a drop in patched libwacom and everything else from Pac-Man
<hpfr[m]>
Pacman * mobile
<wedens[m]>
well, that's just how nix works. if input changes, it rebuilds
<hpfr[m]>
I understand that, but clever said I might be able to do something about this a few days ago so I thought there might be something I could do
<hpfr[m]>
I’ll try to find it in the logs
<wedens[m]>
perhaps there are some unsafe tricks to do that, but I'm not aware of them
hpfr has joined #nixos
<wedens[m]>
essentially, you want to tell Nix "hey, I've patched libwacom, but let's pretend it's the same derivation as unpatched libwacom" :/
rotaerk has quit [Ping timeout: 268 seconds]
toppler has quit [Ping timeout: 246 seconds]
mexisme has quit [Ping timeout: 265 seconds]
<hpfr>
wedens[m]: clever said "hpfr[m]: you could try to make the override only apply to xorg, or you could PR the fix to nixpkgs, so hydra.nixos.org builds things for you"
<hpfr>
it's the only apply to xorg
<hpfr>
I guess my question was poor
<hpfr>
I meant how can I make a package override only apply to certain dependents
felixfoertsch23 has quit [Quit: ZNC 1.7.3 - https://znc.in]
felixfoertsch has joined #nixos
<hpfr>
wedens[m]: thank you, and then i'm assuming i would do one of the same format for patched_libinput to take the patched libwacom, but how do I make new derivations for patched libinput and patched libwacom to live alongside the unpatched counterparts? just copy the entire derivations? or is there some kind of overlay for that case as well?
<wedens[m]>
add to the same overlay `patched_libinput = super.libinput.override { libwacom = super.libwacom.overrideAttrs (oldAttrs: rec { patches = oldAttrs.patches or [] ++ [ ./my.patch ]; }); };`
Rusty1 has quit [Quit: Konversation terminated!]
<wedens[m]>
it'll be `self.patched_libinput` in xf86inputlibinput override
<hpfr[m]>
And that will preserve the standard libinput under the libinput identifier in nixpkgs
<wedens[m]>
yes
rotaerk has joined #nixos
<wedens[m]>
it'll use libinput with patched libwacom only for xf86inputlibinput
<{^_^}>
[nixpkgs] @jonringer pushed 410 commits to python-unstable: https://git.io/Je05K
<hpfr[m]>
wedens: thank you, I’ll see if this works soon
noudle has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @jonringer pushed 485 commits to python-unstable: https://git.io/Je05X
Okinan has quit [Quit: Konversation terminated!]
abathur has quit [Ping timeout: 240 seconds]
<hpfr[m]>
Do you understand how qtbase, etc uses libinput as a build dependency? I’m trying to determine how the xorg only override system would work with the standard builds of qt, etc but I don’t know enough about the Linux ecosystem to guess
kleisli has quit [Ping timeout: 240 seconds]
alexherbo2 has quit [Quit: Ping timeout (120 seconds)]
<{^_^}>
[nixpkgs] @jluttine opened pull request #71965 → pythonPackages.holidays: init at 0.9.11 → https://git.io/Je05M
alexherbo2 has joined #nixos
v0|d has quit [Ping timeout: 276 seconds]
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 20 commits to nixos-unstable-small: https://git.io/Je05y
<{^_^}>
[nixpkgs] @jonringer pushed commit from @jluttine to master « pythonPackages.holidays: init at 0.9.11 »: https://git.io/Je0dG
palo has quit [Ping timeout: 250 seconds]
palo1 is now known as palo
toppler has joined #nixos
<DigitalKiwi>
hpfr[m]: if you ever figure out the firefox thing please let me know because now i'm curious
<aanderse>
yawn
<DigitalKiwi>
well sorry my curiosity is so boring :(
<aanderse>
2am and i just woke up -_-
<DigitalKiwi>
:)
<aanderse>
alarm wasn't set to go off for another hour :\
Fare has quit [Ping timeout: 245 seconds]
kvda has joined #nixos
<ShaRose>
TIL no link-detect is really nice in quagga configs for bridges that may not have devices connected to them (so that quagga will actually, you know, advertise them)
<l33[m]>
L2 bridges..... i fear them
<ShaRose>
I use them for vms
<ShaRose>
and it's nice to have a route still in the table even without any VMs running at the moment
<l33[m]>
How to make one machine network have the complexity of the entire network
<ShaRose>
tl;dr create a bridge, set a /32 address, set up dnsdist to listen on that IP
<ShaRose>
wasn't able to figure out a more sane way to add a loopback address
<l33[m]>
Hey of your doing dumb shit ,we should team up . Im as dumb as they come
<ShaRose>
then you should check out my nix config, I do the dumbest shit
<l33[m]>
I work for an organisation where im not allowed to mention ipv4
<ShaRose>
I *route* docker and qemu subnets.
bahamas has joined #nixos
<l33[m]>
I can confirm lib virt works well on nixos
Ariakenom has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
felixfoertsch has quit [Quit: ZNC 1.7.3 - https://znc.in]
felixfoertsch has joined #nixos
<bahamas>
hello. I have a NixOS box on Vultr and I'm now trying to build the entire system locally, inside a NixOS VM. however, I get this error: "error: a 'x86_64-linux' with features {kvm} is required to build '/nix/store/dpvbljlw76gzzvvzp3bczi15n0ljiilb-nixos-boot-disk.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, nixos-test}" is there a way to get around it?
<tilpner>
bahamas: Few providers allow nested KVM. DigitalOcean is the only one I know
<tilpner>
bahamas: You may have to load a kernel module with a special option to allow nesting
<tilpner>
e.g. nested=1 for kvm_intel
Tucky has joined #nixos
<bahamas>
jackdk: it's MacOS
<tilpner>
(Though I'm not sure which host needs nested=1)
<bahamas>
tilpner: that means I would build on DigitalOcean, no?
<tilpner>
bahamas: If Vultr does not allow nested KVM, and you absolutely need KVM builds, it means you need to find another build server
<jackdk>
bahamas: ah. I don't know much about virtualisation. I think your best bet would be looking for ways to turn on kvm in the guest and maybe fiddling with your virtualisation software. I suspect other people here have misread your original question as trying to build inside a vm inside your vultr box
<tilpner>
Not necessarily DO, that's just the one I remember to support nested KVM
Heirlung has quit [Quit: ZNC 1.6.5+deb1+deb9u2 - http://znc.in]
<tilpner>
I think I tried Vultr too, and it didn't support nesting at the time, though that may have changed
<tilpner>
There may be other providers with nesting, and there are providers where nesting is irrelevant because they don't sell VMs to you
Heirlung has joined #nixos
<bahamas>
ok, I'll rephrase the issue. I have the Vultr NixOS box where I want to deploy my site for staging/production. locally, I'm developing inside a VirtualBox VM which also has NixOS. now, I'm not sure about the deployment strategy. I tried building the entire system inside the VM, but I got the error above
<bahamas>
I could also just build the package locally. that means I would need to copy configuration.nix to the remote box and run nixos-rebuild switch there, right?
<tilpner>
bahamas: Do you have virtualisation.useBootLoader enabled?
<bahamas>
it means I would also need to copy the service.nix file on the remote box before running nixos-rebuild
Zer0xp has joined #nixos
<bahamas>
tilpner: where do I look for that? in the configuration.nix of the VM?
<jackdk>
bahamas: The expression I build is: `{ nixos ? import <nixpkgs/nixos> }: (nixos { system = "x86_64-linux"; configuration = import ./configuration.nix; }).system`
<tilpner>
bahamas: What command are you running that produces the inital error (boot-disk.*)?
b1000101 has quit [Quit: Leaving]
<jackdk>
bahamas: I then `nix copy -s --to ssh://root@wherever ./result`, and activate with ssh, by something like `ssh root@wherever "$(readlink ./result)/bin/switch-to-configuration switch"`
<jackdk>
bahamas: note the `-s` in `nix copy`; that lets it get most of the system from `cache.nixos.org`. Hopefully that helps you once you get your build VM going
<{^_^}>
[nixpkgs] @vbgl merged pull request #71313 → ocamlPackages.ppx_tools: enable at 5.3+4.08.0 for OCaml 4.09 → https://git.io/Je4pt
<bahamas>
tilpner: nix-build system.nix where system.nix imports configuration.nix which imports hardware-configuration.nix (I copied this from the Vultr box)
<tilpner>
bahamas: The error talks about nixos-boot-disk, which is built in virtualisation/qemu-vm.nix. To run this build, a VM is started, which may cause the "I need kvm, but don't have it" error
<tilpner>
bahamas: But this is only supposed to happen (according to the comment above) when useBootLoader is enabled
Jackneill has joined #nixos
<tilpner>
Something like (below) may work, but that's just a guess because I don't know your config
<tilpner>
nix-instantiate system.nix --eval -A config.virtualisation.useBootLoader
<tilpner>
bahamas: AFAICT you are running nix-build on your local VM (not Vultr), which might also not support nesting
<bahamas>
tilpner: yes, I'm running nix-build locally inside the VirtualBox VM. so, I'm not married to this solution, but I want to know what alternatives I have
<bahamas>
if I build just my package locally, is there a way to create a symlink remotely, which I update every time I copy over the closure of my package?
<tilpner>
bahamas: 1. Figure out if and why useBootLoader is set. If it turns out to be by mistake or is otherwise unnecessary, you can eliminate the need for nested KVM
knupfer has joined #nixos
<tilpner>
bahamas: 2. Install Nix on any system directly, not inside a VM. I don't know if macOS Nix can do runInLinuxVM, but it might
<tilpner>
bahamas: 3. Enabled nested KVM wherever you need it
<{^_^}>
[nixpkgs] @jonringer pushed 6 commits to python-unstable: https://git.io/Je0FU
<tilpner>
You can probably enable it for your local VM, and probably not on Vultr without switching
toppler has joined #nixos
<tilpner>
bahamas: There are different deployment models. You can instantiate on Darwin, push the derivations, build the derivation on your server, and switch to them
<bahamas>
tilpner: what does instantiate do?
<tilpner>
bahamas: Why are you running a local VM?
<tilpner>
bahamas: nix-instatiate turns your system.nix into a list of files that describe how to build it
<{^_^}>
[nixpkgs] @vbgl opened pull request #71969 → ocamlPackages.ecaml: init at 0.12.0 → https://git.io/Je0Fk
<tilpner>
bahamas: If you copy those files to another system, you can build it there instead of copying configuration.nix (and your other .nix files)
iqubic` has joined #nixos
<tilpner>
bahamas: nix-instantiate does not build anything by itself (modulo IFD, ignore this)
<bahamas>
tilpner: why am I running a local VM as opposed to just developing in MacOS? I didn't know about runInLinuxVM. I will have to see what that is
<tilpner>
bahamas: Yes, you can install Nix on macOS, though I understand Apple brings new problems with each release
* tilpner
has never used macOS, so this purely second-hand "knowledge"
<bahamas>
tilpner: my app requires packages that don't build on darwin, like postgis. so I can't develop in MacOS directly
lewo has quit [Remote host closed the connection]
iqubic has quit [Ping timeout: 264 seconds]
<tilpner>
You should still be able to instantiate a postgis for Linux on macOS
<tilpner>
And then you copy the files describing how to build it, to a Linux system, and the Linux system can then build it
lewo has joined #nixos
<bahamas>
tilpner: plus, since this is a web app, I want to have services like Postgres or Redis which I also want to manage with nix. hence, having a NixOS box
<tilpner>
Are postgres and redis running on virtualbox or vultr?
<bahamas>
tilpner: virtualbox
<bahamas>
tilpner: I'm describing my entire system with configuration.nix. then, I use vagrant with a plugin to have a nix box with all services
eskytthe has joined #nixos
<tilpner>
Ahh, I assumed you were using your VBox NixOS only for deploying to your Vultr NixOS
knupfer has quit [Quit: knupfer]
<bahamas>
tilpner: ok. does this new information change your previous suggestions in some way?
<hexa->
bkchr: out of curiosity, whats the policy on enbing support for some stuff by default? like nfc?
<hexa->
s/enbing/enabling/
bvdw has quit [Read error: Connection reset by peer]
civodul has joined #nixos
<bkchr>
IDK :D
bvdw has joined #nixos
<hexa->
:)
lewo has quit [Remote host closed the connection]
<blitzclone_>
domenkozar: is there a cachix repo for the haskell.nix nix-tools?
<bahamas>
tilpner: that leaves me with not being able to build the entire system. so I assume I only have the option of building my package locally, nix-instantiate system.nix and copy that to the Vultr box where I nixos-rebuild switch
<tilpner>
bahamas: There are other options, but they are more complicated and brittle
<tilpner>
bahamas: And you still haven't figured out the value of useBootLoader. You should do that now
lewo has joined #nixos
<bahamas>
tilpner: how do I find it?
nschoe has joined #nixos
<tilpner>
I'll need more information on your config, there is no universal way
marcusr has quit [Remote host closed the connection]
<tilpner>
A normal NixOS system has the nixos-option command, but it seems you're doing something unusual
iqubic` has quit [Ping timeout: 240 seconds]
iqubic``` has joined #nixos
marcusr has joined #nixos
nalck has joined #nixos
<tilpner>
bahamas: In the article you linked before, does your system.nix correspond to the fourth codeblock?
<tilpner>
(Counting blocks that don't contain code, but are <code>)
<hyper_ch2>
hmmm, I have very high system load and I can't figure out why. 8/32GB ram being used, no huge cpu spike, yet systemload it 40
logzet has quit [Ping timeout: 264 seconds]
<tilpner>
bahamas: Does nix-instantiate system.nix --eval -A config.fileSystems./.device work?
vidbina has joined #nixos
<tilpner>
hyper_ch2: htop as root?
<hyper_ch2>
nothing exciting there to see
<tilpner>
hyper_ch2: In the htop options, do you have kernel threads hidden?
<hyper_ch2>
I am thiking that maybe one of the ssds in the zfs mirror is dying... otherwise I can't explain
<hyper_ch2>
how to show kernel threads hidden?
b1000101 has joined #nixos
adamt has joined #nixos
eskytthe has joined #nixos
<hyper_ch2>
found it
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eskytthe has left #nixos [#nixos]
sshow has joined #nixos
eskytthe has joined #nixos
kvda has joined #nixos
eskytthe has left #nixos [#nixos]
<hpfr[m]>
Is it possible to append to substituters and trusted-public-keys in /etc/nix/nix.conf? Otherwise, if I use nix.extraOptions lines in my configuration, will they override the same options on lines above? I need these options to use a remote builder as a substituter
eskytthe has joined #nixos
<bahamas>
tilpner: it does. it prints "/dev/disk/by-uuid/0d646215-08e9-4774-a20c-51fc82ff3620"
<tilpner>
bahamas: Specifically, does any of them mention VM or qemu?
<tilpner>
hyper_ch2: Ah, which kernel are you running?
<abbec>
hey everyone, how would I build with a custom libc?
<hyper_ch2>
tilpner: 5.3.1
kvda has quit [Client Quit]
<tilpner>
hyper_ch2: Then you should have the /proc/pressure interface. See if there's more information there instead of "system load is high"
toppler has quit [Ping timeout: 276 seconds]
<tilpner>
(Kernel devs think system load is silly)
<kvik>
hey. it's been a while since i've dealt with manual grub bios/gpt partitioning so i forget if there's something special needed to make it install and boot.
<hyper_ch2>
the /dev/pressure interface?
<kvik>
the manual talks only about classic bios/mbr and efi/gpt situations.
<kvik>
i did manage to install nixos here by making a gpt table with the first part being 0x04 BIOS Boot partition, and grub-install i.e. nixos-install finished alright; however after reboot the machine is stuck after printing "GRUB _".
<kvik>
it could be that i mucked up something else or had some leftover state from the first failed attempt so i'm gonna redo the dance, but i wanted to check with you anyway if i'm missing something obvious :)
<hyper_ch2>
I mean /proc/pressure
<tilpner>
hyper_ch2: Yes
octe has joined #nixos
<hyper_ch2>
brb
myskran has joined #nixos
<bahamas>
tilpner: yes. hardware-configuration (which I copied over from the Vultr instance) has this single import "<nixpkgs/nixos/modules/profiles/qemu-guest.nix>"
<kvik>
uhhh, rewinding my tape a bit i think i did indeed muck up by forgetting to mount the designated boot partition on /mnt/boot before nixos-install
<sshow>
I want to pack a python script and run it with systemd. I don't quite understand how I should do that. Build a .nix file and put it in /etc/nixos/pythonapp.nix ?
is_null has joined #nixos
<shyim>
Hey, how can i install vscode insiders?
<{^_^}>
[nixpkgs] @johanot opened pull request #71970 → scripts/gce: make image name configurable → https://git.io/Je0Fp
b101010 has quit [Read error: Connection reset by peer]
<bahamas>
tilpner: running nix-instantiate system.nix worked. it produced 3 derivations
<hpfr[m]>
Is it possible to append to substituters and trusted-public-keys in /etc/nix/nix.conf? Otherwise, if I use nix.extraOptions lines in my configuration, will the added lines override the auto generated options on lines above (the ones with just cache.nixos.org and its key, respectively)? I‘m trying these options to use a remote builder as a substituter
<bahamas>
tilpner: thank you for all your help
nschoe has joined #nixos
pie_ has joined #nixos
<tilpner>
bahamas: That doesn't it will build
tiAy has quit [Ping timeout: 240 seconds]
<tilpner>
*doesn't mean
<bahamas>
tilpner: even if I try to build it on the vultr instance?
<tilpner>
Even then I'm not sure. You can try though
<wedens[m]>
hpfr: why not modify substituters list in nixos config?
<hpfr[m]>
wedens: thank you. Took a look at the nix-daemon derivation that option is in and found that binaryCaches is the old name for substituters but still used for the nixos option
<wedens[m]>
ignore `config.nix.binaryCaches ++ ` part. I think it'll be merged anyway with any other values
<azazel>
Hi, any more italians at the nixconf? (just to talk without the need to translate)
<hpfr[m]>
wedens: also, when you listed the libwacom patch overrideAttrs you used a recursive set, but my previous global override didn’t. What’s the difference in this case?
<alexarice[m]>
<wedens[m] "`nix.binaryCaches = config.nix.b"> This will cause infinite recursion I think
astrall33 has joined #nixos
<wedens[m]>
yes
<wedens[m]>
just ignore the previous message and do `nix.binaryCaches = [ https://example.org ];` :D
<hpfr[m]>
Yep thanks
vidbina has quit [Ping timeout: 265 seconds]
mexisme has joined #nixos
<wedens[m]>
hpfr: in this case `rec` doesn't matter. I'm just adding it out of habit when I need to override version/src
marcusr has quit [Remote host closed the connection]
<Maise>
How can I write a derivation that will write to a text file (configuration script), then run a bash script?
<wedens[m]>
Maise: run a script when?
toppler has quit [Ping timeout: 264 seconds]
<Maise>
As the build step
<wedens[m]>
build time?
<Maise>
Yes
<wedens[m]>
so, you want to modify the text file via script?
<Maise>
To build this package, I need to clone a repo, write a configuration script in it (doesnt exist in the repo), and then run a shell script in the repo
<Maise>
So yea, I want to write that configuration file through nix/ bash if thats necessary
mexisme has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @Ma27 pushed commit from @r-ryantm to release-19.09 « ibus-engines.typing-booster-unwrapped: 2.6.6 -> 2.6.8 »: https://git.io/Je0br
<wedens[m]>
it sounds like you just need to do it as a build step `preBuild` maybe? (see nixpkgs manual for the list of phases)
<tilpner>
bahamas: Oh, and you should update to 19.09
<bahamas>
tilpner: how do I use the result of nix-instantiate? I copy it with copy-closure and run nixos-rebuild switch?
nalck has quit [Quit: nalck]
<bahamas>
actually, I see two derivations that I probably don't want remotely. they're called nixos-vm
<tilpner>
bahamas: ...
<tilpner>
I should have seen that
<tilpner>
Your problem is that you forgot to pass "-A system" when building system.nix
marijan[m] has joined #nixos
Diagon has joined #nixos
__monty__ has joined #nixos
<hpfr[m]>
How much of a performance hit would putting the nix store on a high performance SD card cause
<{^_^}>
[nixpkgs] @earksiinni opened pull request #71972 → vimPlugins.LeaderF: init at 2019-10-15 → https://git.io/Je0bQ
<__monty__>
I'd expect it to be significant. There can be a *lot* of writes.
thc202 has joined #nixos
joshuagl has joined #nixos
<tilpner>
hpfr[m]: Compared to what?
<tilpner>
Compared to a network filesystem halfway around the planet? Much faster
<hpfr[m]>
tilpner: An NVME drive I suppose
<tilpner>
Compared to a nvme ssd? Much slower
<hpfr[m]>
Hilarious haha
ertugerata has quit [Remote host closed the connection]
<wedens[m]>
I have an old laptop with a nix store on hdd. it's sooooooooo slowwwwwww
<hpfr[m]>
tilpner: how about SATA SSD and HDD?
<tilpner>
You'll need to decide for yourself if that level of performance is still usable
<tilpner>
You know your own tolerance limits and usecase, we don't
<DigitalKiwi>
tilpner: i'm 80% sure (it's been a while...) i got nested vms to work on linode, but i don't think they were kvm. i know that whatever i got working was different than what i got working on DO. openvz maybe
sigmundv has joined #nixos
<tilpner>
DigitalKiwi: Nested VMs is easy
<DigitalKiwi>
well not on vultr it sounds like ;)
<wedens[m]>
I'd like to somehow implement the idea of copying currently used generation to ssd and storing everything else on hdd. not sure how to proceed though :/
<hpfr[m]>
tilpner: I’ll need to decide if it’s usable? Shit still goes into ram at some point right haha? Even /boot will still be on the NVME, so would boot times even drop much?
ubert has joined #nixos
<tilpner>
DigitalKiwi: But it turns out bahamas doesn't need it, because vaibhavsagar article offers different, seemingly interchangeable, options, but with different interfaces
<hpfr[m]>
Most A2’s are also U3 which is minimum 30MB/s write
knupfer has quit [Quit: knupfer]
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knupfer has joined #nixos
<DigitalKiwi>
i also use those for live usbs of nixos/arch/macos/etc. and they're more than useable
<hpfr[m]>
Pretty sure NVME is in the tens to hundreds of thousands of IOPS and sequential read write of over a GB
<hpfr[m]>
DigitalKiwi: do they seem comparable to an SSD?
hyper_ch2 has joined #nixos
<tilpner>
hpfr[m]: There's very little point in this discussion without specifying the usecase
<DigitalKiwi>
^
<tilpner>
A mostly-static system with light shell usage is going to perform much better on an SD card than a build server will
<hpfr[m]>
tilpner: what specifics are you looking for? I’m a pretty standard Linux user
<tilpner>
hpfr[m]: So this is for a server or phone then? /s
<tilpner>
Because that's probably what the average Linux kernel instance is doing
<tilpner>
hpfr[m]: Pi? Desktop use?
<hpfr[m]>
tilpner: ok, I thought it was self evident that I wouldn’t be using this machine as a build server. It’s a laptop that I only have room for a 50GB NVME partition on, wanted to add a 128GB nix store SD if it didn’t tank performance
Maise has quit [Ping timeout: 260 seconds]
<hpfr[m]>
Pretty standard desktop Linux user
<tilpner>
So you already have an NVME SSD, but it's not large enough for your store?
<DigitalKiwi>
a lot of my computers are only usb 2 anyway so an ssd wouldn't help that much unless it was heavy writes but mostly reads and not a ton of writes and it's not bad. even writes aren't that bad i think i get ~20(maybe 30) on those
Maise has joined #nixos
toppler has quit [Ping timeout: 265 seconds]
<Maise>
How can I run `$src/build.sh` as my build step? (Internet just died so sorry if I missed anything)
<hpfr[m]>
tilpner: yes. This is a Surface Pro 5, very difficult to take apart, 128GB SSD, less usable, minus like 50GB for a tiny Windows partition I need for updating firmware and iTunes since surface firmware is via windows update
<clever>
Maise: the unpackPhase copies $src to . for you, and cd's into the dir
<Maise>
So using the generic builder doesnt work, I dont think
<Maise>
ah
<Maise>
great ty :)
<DigitalKiwi>
hpfr[m]: in my opinion you'll do fine with a 128GB sd card that's at least average
<tilpner>
hpfr[m]: Ahh, so no way to upgrade the existing drive
<tilpner>
hpfr[m]: Do you even have a choice between different storage types here?
<hpfr[m]>
DigitalKiwi: thanks for the input!
<{^_^}>
[nixpkgs] @seqizz opened pull request #71974 → vimwiki-markdown: init at 0.2.0 → https://git.io/Je0Ny
<hpfr[m]>
tilpner: not sure what you mean, there’s also USB 3.0 but that’s no comparison
astrall33 has quit [Ping timeout: 240 seconds]
<bahamas>
tilpner: running -A system outputed a single derivation. what changed that made it work?
<tilpner>
hpfr[m]: I would suggest keeping the store on your SSD and using the SD card for less performance-sensitive data, like documents or music
<tilpner>
bahamas: You used to build the vm attribute, which explains everything, and I'm so mad for not questioning you earlier when you said it produced three derivations
<tilpner>
bahamas: Building an attribute set will build all its attributes. You only care about system, but you didn't tell Nix to only build that
<tilpner>
bahamas: So Nix also built the vm and the vmWithBootloader (not sure if actual name) attribute
<hpfr[m]>
tilpner: I would try that but the store is close to the whole drive I think. I don’t keep any pictures on this machine just schoolwork which is probably less than a GB
<tilpner>
bahamas: It can't build the bootloader version, because no nested KVM
toppler has joined #nixos
<__monty__>
Only my remote builder has feature "haskell". Why is happy-1.19.9 getting built locally? http://ix.io/1ZHQ
<tilpner>
bahamas: This also explains why there was no useBootLoader option during nix-instantiate. vmWithBootloader adds an import
<bahamas>
tilpner: ok. I see what you mean. I appreciate your help
<DigitalKiwi>
there's probably some benefit to getting nicer ones but no need to *redacted*... (i was going to say no need to go all out and get something like this https://smile.amazon.com/Lexar-Professional-microSDXC-UHS-II-Reader/dp/B012PKPU5W/ but then i looked at the price and...well, if your hardware supports it, and you have 70...these are awesome, but i don't know that you'll see much difference between this and something half the price or less)
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 3 commits to nixos-19.09-small: https://git.io/Je0NT
<bahamas>
is there a way to specify a package using its repo with nix-shell? I see that nix-env has the -f flag for that
<jD91mZM2>
bahamas: I think `nix-shell <url>` does what you want?
<jD91mZM2>
Well ok, that depends. By default nix-shell won't seem to build the package itself but rather give you the tools and dependencies to build it. `nix run -f` might be what you want?
astrall33 has joined #nixos
vidbina has quit [Ping timeout: 268 seconds]
b101010 has quit [Ping timeout: 252 seconds]
<hpfr[m]>
DigitalKiwi: yeah, only supports UHS-I
<bahamas>
jD91mZM2: can you specify the file to run? by default, it's calling default.nix which evaluates to a function
<DigitalKiwi>
nix-shell -I nixpkgs=channel:nixos-19.03 -p kicad <-- something like this is one way i think
<DigitalKiwi>
you can also use a directory if you have a local nixpkgs
<bahamas>
sshow: are you still looking for an answer? I saw your question earlier but was caught with something else
<jD91mZM2>
bahamas: Oh... Not sure if you can do that in one line or not
<sshow>
bahamas: yeah, I am. But I am currently trying to get it going with a setup.py, and code from https://nixos.org/nixpkgs/manual/#python "10.15.1.2.3. Develop local package"
<Maise>
It seems like its doable, nix just prevents it from automatically downloading its deps, so youve gotta put it in the package
<Maise>
Ig I could just write them all out...
<sphalerite>
Maise: that said, you could do something like… let tarballs = [ (fetchurl {url = https://downloads.devkitpro.org/…; sha256 = …;}) ]; in lib.concatMapStringsSep "\n" (p: "cp ${p} ${p.name}") tarballs;
<Maise>
Awesome! Thanks a lot
<sphalerite>
so you have a list of the tarballs and expand it into cp commands using nix rather than writing them all out
<sphalerite>
Maise: depending on how keen you are to make this small, you could even deduplicate the fetchurl and the downloads.devkitpro.org part of the URL
<Maise>
Already did :P
<sphalerite>
:)
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 26 commits to nixos-unstable-small: https://git.io/Je0Ar
<bahamas>
jD91mZM2: I assume I can use fetchTarball to get the repo explicitly, save the path and the do something like `nix-shell ${nix-deploy}/shell.nix` or `nix-env -i -f ${nix-deploy}/release.nix`. but which of the nix clis can take this?
alexherbo216 has joined #nixos
alexherbo21 has quit [Ping timeout: 240 seconds]
wfranzini has joined #nixos
<sshow>
bahamas: thank you for that!
meck has quit [Quit: WeeChat 2.6]
<bahamas>
sshow: you're welcome. took me some time to figure it all out, so I thought I'd spare you the effort, even though it can be educational
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sshow>
bahamas: much appreciated. I'll make sure to pass on the knowledge ;)
meck has joined #nixos
expelledboy has joined #nixos
<jD91mZM2>
bahamas: Almost all of the nix interfaces let you type nix expressions directly
<Maise>
Umm? https://hasteb.in/ihijelaj.bash `attempt to call something which is not a function but a list, at default.nix:12:15`
<Maise>
oic
<jD91mZM2>
bahamas: So something like `nix-shell -E "(import <nixpkgs> {}).fetchFromGitHub { ... } + "my-file/goes-here.nix"`
<__monty__>
clever: Can I bother you with this? http://ix.io/1ZHQ Afaict some builds are getting properly sent to the remote builder, like hscolour-1.24.4 but happy-1.19.9 is attempted locally for whatever reason.
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
psyanticy has joined #nixos
<expelledboy>
sup guys, so I know this is an error specific to home-manager as a nixos (nix-darwin my case) error. I cant seem to configure xdg to point to my home directly when used as a plugin. I get permission error trying to access /var/empty/. How do I configure the home directly? Under darwin-configuration.nix I have `import <home-manager/nix-darwin>`, and
<expelledboy>
then `home-manager.users.anthony = { xdg.enable = true }`, but when I use `config.xdg.cacheHome` its points to `/var/empty/.cache`
ng0 has quit [Ping timeout: 260 seconds]
<expelledboy>
I would have thought the home directly was already determined by that point
<bahamas>
jD91mZM2: thanks
tilpner has quit [Quit: tilpner]
<{^_^}>
[nixpkgs] @marsam closed pull request #71956 → libogg: fix build on darwin → https://git.io/Je0QX
toppler has joined #nixos
ng0_ is now known as ng0
meck has quit [Quit: WeeChat 2.6]
alexherbo216 has quit [Ping timeout: 265 seconds]
alexherbo2162 has joined #nixos
sigmundv has quit [Ping timeout: 240 seconds]
meck has joined #nixos
lsyoyom has quit [Ping timeout: 265 seconds]
Diagon has joined #nixos
<Maise>
How can you index a list?
<jD91mZM2>
Maise: builtins.elemAt
<clever>
[200~> builtins.elemAt [ "a" "b" "c" ] 2
<Maise>
:D Thanks
<clever>
> builtins.elemAt [ "a" "b" "c" ] 2
<{^_^}>
"c"
bahamas has quit [Ping timeout: 268 seconds]
<__monty__>
Anyone know how I can troubleshoot this SSL CA cert error? http://ix.io/1ZMw
Zer0xp has quit [Ping timeout: 264 seconds]
<wedens>
why does using `dockerTools.buildImage` results in qemu doing something during the build? seems to happen when I add `runAsRoot`
<clever>
wedens: the build cant get real root, so its using qemu to get emulatoed root
<clever>
wedens: thts why i never use runAsRoot
<wedens>
clever: what can I use instead?
<clever>
wedens: what are you needing to do?
<wedens>
as `RUN` alternative
<wedens>
I need to make some symlinks
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever>
wedens: put the symlinks in $out/something of a derivation, and put that into the contents, i think
nalck_ has joined #nixos
<clever>
wedens: all of the $out's from contents get merged into /
infinee has quit [Read error: Connection reset by peer]
infinee has joined #nixos
zupo has joined #nixos
<wedens>
thanks. I'm already doint something similar. I thought maybe there is some better approach without intermediate derivation.
<expelledboy>
okay so I figured it out, use _must_ configure your home dir
hyper_ch2 has quit [Remote host closed the connection]
tiAy has joined #nixos
iyzsong-x has joined #nixos
<__monty__>
I use fish. Why does nix insist on setting my SHELL to bash?
<astrall33>
nix is primiarly a build system, so ALOT of software uses bash to build..or just vanila sh.
Acou_Bass has joined #nixos
iyzsong has quit [Ping timeout: 265 seconds]
<astrall33>
so i guess it's a bit bash centric because of this.
nalck has quit [Quit: nalck]
<jD91mZM2>
Are there any downsides to having an overlay that basically defines `{ unstable = import <nixos-unstable> {} }`? The way I see is that this will just make it easier to use unstable software, but at the same time I'm thinking there must be a reason something like this isn't the default
<astrall33>
thats just a guess...however..
<astrall33>
i'm no nixpert.
gxt has quit [Ping timeout: 260 seconds]
<clever>
jD91mZM2: ive seen a lot of people do that
<DigitalKiwi>
did you do programs.fish.enable = true or?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<DigitalKiwi>
if i really need to i can ; nix-shell -I nixpkgs=channel:nixos-19.03 -p kicad
<DigitalKiwi>
(rarely need to)
<DigitalKiwi>
but i mostly only use nix-shell for haskell environments
<DigitalKiwi>
or in a nixpkgs git dir for PRs
<jD91mZM2>
Oh, didn't notice you use unstable as default? Then yeah it makes sense you don't need to use the latest packages often
<DigitalKiwi>
:)
<jD91mZM2>
(I mean later than whats in your current channel of course)
<DigitalKiwi>
every once and a whilei have to use an older version for a few days
<dminuoso>
What mechanism would you usually use if you have some service configuration you want to share across multiple nixos machines?
zupo has joined #nixos
<DigitalKiwi>
like...since stupid kicad keeps crashing on me ;_;
fendor has quit [Ping timeout: 265 seconds]
<dminuoso>
Would you just keep a small attribute set { services.foo.enabled = true; } and then // that onto each machines configuration.nix?
<dminuoso>
Or are there other styles?
toppler has quit [Ping timeout: 245 seconds]
expelledboy has quit [Remote host closed the connection]
<DigitalKiwi>
i make a modules folder that has common ones
<jD91mZM2>
dminuoso: I have a base.nix file which I just drop to each of the machine's `imports = [ ... ];`
<DigitalKiwi>
my configuration.nix is really more like a dozen files
astrall33 has quit [Ping timeout: 252 seconds]
<dminuoso>
Ah. Perhaps I have a slight misunderstanding of how modules work.
<dminuoso>
Ohh! So even my configuration.nix is a module
<jD91mZM2>
dminuoso: Yep! I can agree modules can be hard to understand, but if you don't define any options they're basically just sets being recursively merged in
<__monty__>
Does nix affect the certificate store on mac os? I'm getting SSL CA cert problems.
<Twey>
__monty__: Pure shells and packages will be isolated from the system's CA certs like everything else. If you need to use SSL you should pull in `cacert` as a dependency
<dminuoso>
jD91mZM2: In what order are they merged?
<__monty__>
Twey: I'm not using ssl. nix is and it's giving CA cert errors.
<Twey>
__monty__: Hm, I think Nix itself shouldn't give errors. You mean from a `fetchurl` or something?
<__monty__>
Yes, fetchTarball.
<__monty__>
Had them last week when I was trying to get a nix-shell -p python though.
<DigitalKiwi>
i think i have that problem sometimes :(
patrol02 has joined #nixos
<patrol02>
Hi all!
<__monty__>
Maybe my system's cert store is old? It's from 2018 by the looks of it.
nalck has joined #nixos
<patrol02>
I am trying to install `lirc` to make my remote control running. I have `lirc` in system packages, but how can I make it actually run and work?
<jD91mZM2>
dminuoso: I assume top-down or something, but the order shouldn't matter because you can give certain values higher priority using mkForce and friends
<Twey>
__monty__: Are you using single-user or multi-user Nix?
<__monty__>
Single-user.
<Twey>
__monty__: Does it fix the problem if you set `SSL_CERT_FILE` to a) your system's cert file or b) one from the Nix store?
wfranzini has quit [Quit: wfranzini]
<Twey>
(try the former first since it's less likely to help, and I want to know if it does :þ)
vidbina has quit [Ping timeout: 246 seconds]
<__monty__>
Twey: Can this cert file be an html file? I only know about apple's TrustStore.html list of root certs.
<Taneb>
I remember seeing a tool to compare two derivations to see what's changed, doesn anyone know what it is?
<__monty__>
nix-diff?
<Taneb>
__monty__: that's the one, thank you
<Twey>
__monty__: No, it should be a .crt
mrCyborg has quit [Read error: Connection reset by peer]
rajivr___ has quit [Quit: Connection closed for inactivity]
<Twey>
__monty__: Oh, maybe you don't actually have a cert file on the HD on macOS — looks like it might all be stored in the Keychain
<__monty__>
Huh, that var's currently set to `/no-cert-file.crt`.
<Twey>
According to this: 1) setting SSL_CERT_FILE causes things on macOS to use OpenSSL; 2) OpenSSL on macOS is old and broken and probably doesn't have CA certs
<Twey>
So I guess you can probably unset SSL_CERT_FILE to use SecureTransport, or else set it to point to a sensible CA bundle (e.g. from the Nix store)
b101010 has joined #nixos
_pash has joined #nixos
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<__monty__>
Changelog mentioned setting IN_NIX_SHELL to impure as a fix.
orivej has quit [Ping timeout: 240 seconds]
<DigitalKiwi>
nice
<__monty__>
Ironically `lorri self-upgrade` didn't work in the lorri direnv environment : )
tiAy has quit [Ping timeout: 240 seconds]
sigmundv has joined #nixos
sylv-io has joined #nixos
dkellner[m] has joined #nixos
<zertox>
@DigitalKiwi It's nice to see people liking my nix conf. Still needs a lot of work though.
<eyJhb>
How do I add a file to my store with nix? (file that is behind a license agreement, that I need to download and manually add before I can rebuild)
cfricke has joined #nixos
<Twey>
eyJhb: nix-store --add <file>
FRidh has joined #nixos
<aanderse>
eyJhb: search for requireFile
<iMatejC>
Hey, trying to run unityhub here... `$ appimage-run ~/Downloads/UnityHub.AppImage` this command does not end at all, after 1h still waiting, no ANY kind of messages
<eyJhb>
Weird I got file not found - 'nix-store --add FILE://$(pwd)/displaylink.zip'
<eyJhb>
Nvm
<eyJhb>
Removed prefix
kreisys has joined #nixos
<eyJhb>
God damn it, still doesn't want to work
<hyper_ch2>
eyJhb: you're updating displaylink?
<hyper_ch2>
still working here
dm9 has quit [Quit: WeeChat 2.6]
<etu>
jonringer: Thanks! :)
<eyJhb>
It was prefetch I wanted
<eyJhb>
And no, not updating hyper_ch2 , I just removed it from my store for some reason, so I had to readd the zip file :p
kreisys has quit [Client Quit]
marcusr has quit [Remote host closed the connection]
<dminuoso>
Mmm, is there a way to evaluate and inspect a module?
gxt has joined #nixos
<clever>
dminuoso: `nix repl '<nixpkgs/nixos>'` will eval the entire nixos, and all modules configuration.nix refers to
ajs124 has joined #nixos
<dminuoso>
clever: Mmm what do you mean by "eval the entire nixos"?
<clever>
dminuoso: it will eval every nixos module, and your configuration.nix
<clever>
dminuoso: then you can just eval `config` in the repl
<dminuoso>
clever: Where does that `config` come from?
toppler has joined #nixos
<clever>
dminuoso: the repl command i gave loads nixos, which gives you a config attr
hyper_ch2 has quit [Remote host closed the connection]
ng0 has quit [Ping timeout: 260 seconds]
<dminuoso>
clever: So perhaps the confusing part to me here is, what does it mean to "load". I mean its just an expression, where does the identifier `config` come from?
<dminuoso>
Or does "load" mean evaluate an attribute set, and bring every attribute of that attrset into scope?
<DigitalKiwi>
zertox: oh hi
<clever>
dminuoso: <nixpkgs/nixos> refers to a default.nix at nixpkgs/nixos/default.nix
<clever>
dminuoso: and that returns a set that contains config
patrol02 has quit [Remote host closed the connection]
<dminuoso>
clever: Okay, so its sort of like `let w = import <nixpkgs/nixos>; in with w; ⌜in this context now⌝`?
<dminuoso>
(Where nix repl would evaluate arbitrary expressions inside that ⌜context⌝ bit above.
<DigitalKiwi>
__monty__: this is what graham told me to do when I had problems with self-upgrade <gchristensen> clone the repo, check out rolling-release, `lorri self-upgrade local $(pwd)`
<DigitalKiwi>
that toook me 20 minutes to find :(
<__monty__>
DigitalKiwi: Oh, just cd'ing outside of any direnv was all that was needed. Just thought it was funny that lorri's ssl handling broke the self-upgrade command.
<__monty__>
Sorry!
<__monty__>
: |
<__monty__>
<3 DigitalKiwi for the effort.
<{^_^}>
DigitalKiwi's karma got increased to 2
<DigitalKiwi>
ty
wormwood has joined #nixos
<_pash>
DigitalKiwi: heya, any idea what's wrong with my syntax here? http://ix.io/1ZMS
<_pash>
Still trying to get that packageOverriden
<_pash>
this is my .config/nixpkgs/config.nix
<_pash>
complains about unexpected IN on line 6
<_pash>
if i remove the nixos1909 definition it works completely fine
<__monty__>
_pash: You didn't close the braces around config = ...
<_pash>
dammit - thank you
kreisys has joined #nixos
vidbina has joined #nixos
Fare has joined #nixos
alexherbo21628 has joined #nixos
alexherbo2162 has quit [Read error: Connection reset by peer]
<_pash>
__monty__: I am trying to get tensorflow installed on line 18 from a different release... it's not installing, am i doing something wrong?
<Maise>
sphalerite - https://hasteb.in/ejurihop.nix is looking good if you want to test it. Was going to wait until it finished building, but forgot that I was on a potato laptop :)
<__monty__>
_pash: I'm not sure you can mix and match python interpreters that way. (I'd say I'm sure you can't but don't feel qualified to say so : ))
fendor has joined #nixos
<_pash>
__monty__: sooo the way to do it would be to define mypython with nixos1909?
<sphalerite>
Maise: hm, it seems to try to download the tarballs anyway
<Maise>
Whats it giving you?
<sphalerite>
Looking for configuration file... Found.
<sphalerite>
build-devkit.sh: line 131: curl: command not found
<Maise>
Ah yea thought that might happen
<Maise>
just uncomment curl in the build input
<Maise>
It wont actually use it, just wants it as a dep
marcusr has quit [Remote host closed the connection]
marcusr has joined #nixos
<patrol02>
What do I need to configure if I want to be able to close a lid on a laptop and have the second monitor to become the main and the only monitor for the system?
<__monty__>
_pash: I'd try that yes.
zupo has joined #nixos
vidbina has quit [Ping timeout: 246 seconds]
zupo has quit [Client Quit]
astrall33 has quit [Remote host closed the connection]
astrall33 has joined #nixos
Fare has quit [Ping timeout: 265 seconds]
<__monty__>
I'd like to use a cachix cache for specific shell.nix files. Do I have to add it to my configuration.nix? It'd be great if the shell.nix could be comprehensive.
toppler has quit [Ping timeout: 252 seconds]
<nschoe>
Hi everyone, is there a doc page/how-to/document explaining the nix 2.0 commands? There are things I cannot do with `nix` commands which I can with `nix-env`. I believe `nix` commands are set to replace `nix-env` commands, or am I wrong?
patrol02 has quit [Remote host closed the connection]
<immae>
nschoe: what can you do with nix-env that you can do with `nix`? As far as I know nix-env is completely absent from the `nix` command (and I think it’s still an ongoing development even for other commands)
<DigitalKiwi>
have you tried nix --help
kuznero has joined #nixos
<kuznero>
Hi All, can I install firefox 70 somehow today?
<DigitalKiwi>
(that link is mostly the nix- commands i think)
<nschoe>
immae, (thanks for answering) for instance, looking for haskell packages: `nix-env -f "<nixpkgs>" -qaP -A haskellPackages`. I can't find a way to do that with `nix` commands.
<nschoe>
DigitalKiwi, yeah, nix search --help is pretty scarce.
<immae>
nschoe: my question was reverse: as far as I know there is *nothing* from nix-env that you can do with nix :p
<nschoe>
immae, well a standard search is possible: `nix search firefox` works :)
<immae>
ah right
<nschoe>
immae, `nix build` also.
<immae>
nix build is an ~ equivalent from nix-build, not nix-env :p
toppler has joined #nixos
<nschoe>
ohhh right.
<immae>
anyway, I think it’s not recommended to use the `nix` commands yet
<Maise>
Might want to cancel that build sphalerite - It needs texinfo too. ...at the end. Ow
<immae>
(in every help they say "Note: this program is EXPERIMENTAL and subject to change.")
<nschoe>
But the way I saw it, `nix <cmd>` was the new version and would replace `nix-cmd`. Am I wrong?
noudle has quit []
<immae>
I think so
<immae>
but it’s still not finished
<nschoe>
immae, yeah yeah definitely, I know it's definitely not production ready, no worries abou that. I'm not complainig that some things are not possible :D I'm just asking if you guys knew where to get the updates on this, if there was a doc page or tutorial maintained up to date with the latest implementations.
mexisme has quit [Ping timeout: 276 seconds]
<immae>
ok, then my answer remains the same: (apart from search) *I think* nix-env is completely absent from `nix` :p
<nschoe>
okay :)
<nekolyanich>
Hi all. How can i get pkg expression from channel without cloning of channel repo?
<nschoe>
Well I'll keep using `nix-env` then
peanutbutter144_ has quit [Ping timeout: 252 seconds]
<immae>
what seems to be missing too and could be important is how nix takes the derivations. For instance nix-env takes it by default from ~/.nix-defexprs, what about `nix search`
<__monty__>
If I set `trusted-public-keys` do I need to add the key for cache.nixos.org?
<nschoe>
immae, (well, `nix search` sorts of replace `nix-env -qa`, right? So I guess there is a bit of `nix-env` inside `nix`?)
<sphalerite>
Maise: hah, thanks
<kuznero>
Sorry, not to spam, but did anybody managed to have new Firefox 70 installed somehow on NixOS?
<immae>
nschoe: yes, but I didn’t know before you told me so :p
<nschoe>
immae, nix search --help says there's an option " -f, --file <FILE> evaluate FILE rather than the default". But I do not know what the "default" is, whether its "<nixpkgs>" or "~/.nix-defexpr".
<FRidh>
kuznero: two PR's for 70 have been merged into master. 19,09 is still an open issue
<immae>
nschoe: yes, me neither (I guess we’d need to read the code to find out)
<nschoe>
True.
<__monty__>
kuznero: If it's not in nixpkgs yet and you don't want to patch it yourself maybe you can use the mozilla-overlay? I suspect that has the latest version.
Kalm004 has joined #nixos
astrall33 has joined #nixos
<kuznero>
FRidh, thanks
<kuznero>
__monty__, do you have an example of using mozilla-overlay in configuration.nix?
<tilpner>
nixos-unstable-small has firefox with version 70.0
<immae>
nschoe: the answer from any search gives the answer, it obviously searches for every element in NIX_PATH (which is good :p )
<DigitalKiwi>
tilpner: oh hey thanks 02:17 * DigitalKiwi wonders if your firefox is in nixos-unstable-small
<{^_^}>
nixops#936 (by alexeiskachykhin, 1 year ago, open): Unable to attach VPC security groups to an RDS instance
<{^_^}>
nixops#1020 (by betaboon, 1 year ago, open): RDS: support vpc-security-groups for RDS-instances/dbSubnetGroups
<nschoe>
immae, okay thanks.
<DigitalKiwi>
hpfr[m]: ^
<dminuoso>
immae: Well yes.. but that file is just a simple `let x = import ..; y = import ..; in x // y`
<dminuoso>
Which is why this is so disturbing.
<immae>
ah, I lack some context then :p
<immae>
how is this file used
<immae>
?
<kuznero>
tilpner, thanks, that is the easiest I think for me now
<dminuoso>
immae: That's the entry point for this nixos deployment.
<immae>
(by the way ,I "hacked" nixops to add a `sed -i -e '/^import sys$/s/$/; sys.tracebacklimit = 0/' scripts/nixops` during the build, so that I don’t get the useless python stack trace at the end, you might want to use it)
<immae>
ok, then one of the imports (x or y) contains a key that is not defined as a configuratoin
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<immae>
since you use it in /home/dminuoso/wobcom/projects/zaphod/nix-mailserver/mail.nix this is where the error is reported, but it seems to come more deeply from one of x or y
<DigitalKiwi>
FRidh: a few of us were confused how come the commit that is nixos-unstable is newer than the firefox 70 commits but it's not there yet, is it just not built?
kleisli has joined #nixos
<immae>
dminuoso: (guess according to your file name) do you have networking.defaultMailServer? if so, the key is hostName, not hostname
<Raito_Bezarius>
How can I work on nixops using my own patches?
<Raito_Bezarius>
I don't understand what dev-shell does exactly
<Raito_Bezarius>
(it runs nix-shell on release.nix)
<Raito_Bezarius>
But I'm working on the AWS plugin and I don't know if I can just keep the nixops original repo and work on the nixops-aws repo
<kuznero>
tilpner, cannot find it on hydra, do you have a link to a build report for firefox 70?
kreisys has joined #nixos
Fare has joined #nixos
<FRidh>
kuznero: why do you need a build report? Whether hydra has built it or not does not say whether it is available in the channel or not
* tilpner
waiting for hydra search
<FRidh>
anyway, nixos-unstable has firefox-bin at 70.0, but firefox at 69.0.2
<kuznero>
FRidh, that is just my poor understanding. That would be my intuitive approach to figure out if the package has a chance to be available in this or that channel. But how to really figure this out, I don't know.
<__monty__>
FRidh: Really? Then how do you determine whether something's cached?
<immae>
dminuoso: I have a quite complex nixops configuration and didn’t face this kind of misplaced error, maybe you should consider refactoring your code a bit to avoid it (especially if this was your entrypoint, in which case I suppose you’ll *alway* get it)
<{^_^}>
[nixpkgs] @basvandijk closed pull request #71794 → 19.09: release-lib.nix: initialize pkgs for the currentSystem → https://git.io/Je0Iz
<tilpner>
kuznero: I'm not sure this hydra search will finish anytime soon. I know it's cached: /nix/store/l0ivv42j7anrgzyahhn6yv2wkh0bm7p0-firefox-70.0
<dminuoso>
immae: The strange thing is, I did that much deeper down the chain.
<kuznero>
tilpner, I managed to have it through unstable.firefox-bin as FRidh mentioned
<{^_^}>
[nixpkgs] @globin merged pull request #71964 → wt: Allow optional library harfbuzz to be overriden with null → https://git.io/Je05L
<immae>
dminuoso: I guess the error reporter considers that since the import was successful (but contains a wrong configuration), it assumes the error was somewhere here and doesn’t try to dig deeper (that’s just hypothesis)
toppler has quit [Ping timeout: 264 seconds]
<tilpner>
kuznero: That's slightly different. But if that works for you too, great!
<immae>
Anyway, (still guessing), I think getting rid of `import` for configuration should make your errors more relevant
kuznero_ has joined #nixos
<immae>
(`imports` works, though :p )
kuznero_ has quit [Client Quit]
<dminuoso>
immae: Should I be able to apply to an imported expression like: ./foo.nix {}
<dminuoso>
Will that do the thing I expect it to, or will I need explicit imports to do this?
<dminuoso>
(I mean it seems it doesnt, but perhaps Im doing something else wrong)
<fendor>
,locate ar
<immae>
dminuoso: I’m not sure I understand your question
<fendor>
clever, can I open a pure nix-shell where it is available?
kuznero has quit [Ping timeout: 240 seconds]
<fendor>
ar, haha, sorry :D
<ar>
n/p
<immae>
dminuoso: if you have a foo.nix file that contains some configuration, it should be a function that accepts the same arguments as your top level configuration.nix file. In that case, you can just add imports = [ ./foo.nix ] in your configuration.nix and it would be as you imagine (i.e. the configuration defined in foo is merged into the one of the top level)
<immae>
Does that answer the question I didn’t understand? :p
<{^_^}>
[nixpkgs] @Lassulus pushed commit from @r-ryantm to master « transgui: 5.17.0 -> 5.18.0 »: https://git.io/Je0jU
<immae>
dminuoso: To be more precise, it’s a *function* that returns an attrset with three keys
<dminuoso>
"it should be a function that accepts the same arguments as your top level configuration.nix file."
<dminuoso>
Oh.
jd823592 has joined #nixos
alexherbo2 has quit [Ping timeout: 246 seconds]
<immae>
and the function takes arguments like config, pkgs, lib (same as top level)
<jd823592>
i'd like to run a third-party script that relies on /bin/bash within a nix-shell, is there anything I can do to make it work without changing the hardcoded /bin/bash?
<dminuoso>
Right. Okay.
<dminuoso>
immae: So I want to add an additional parameter, so I have some modules `{foo}: {pkgs, ...}: { ...} `
<immae>
(refactoring is rarely unpainful, but at least it should be "mechanical")
<dminuoso>
immae: And figured I could just specify `imports = [ ./foo.nix {foo = 1;} ]` although I kind of knew that this wouldn't work, but I felt giving it a try.
<dminuoso>
(that attrset was rather `env`, and the first key of that was hostname)...
<immae>
dminuoso: you can but you need parenthesis I guess
Fare has quit [Ping timeout: 240 seconds]
<dminuoso>
immae: exactly! and evne that wouldnt work, but that would have given me an appropriate error message.
<dminuoso>
instead it tried to understand that attrset as a module, and then things blew up
<immae>
Ah, I expect it to work and I’m almost sure I use something like that
<tilpner>
And an import, but then you have different problems. I don't suggest using function-values in imports
<dminuoso>
tilpner: What do you mean?
alexherbo2 has joined #nixos
<tilpner>
If you put paths into imports, modules will be imported exactly once
<tilpner>
But when you put functions into imports, there is no way to do this deduplication
<dminuoso>
How would I share common bits between modules? Move them into a separate nix file and then import them from each module?
<tilpner>
And you get weird errors, because you now imported this module twice, and it conflicts with itself
<pingiun>
LVM thin LVs seems broken for me
<dminuoso>
I see, tilpner.
<dminuoso>
That makes sense
<immae>
dminuoso: I have this: https://git.immae.eu/?p=perso/Immae/Config/Nix.git;a=blob;f=modules/websites/httpd-service-builder.nix;h=d049202c1d59c5c9e8b496240cd38f4cb7b83122;hb=HEAD used here https://git.immae.eu/?p=perso/Immae/Config/Nix.git;a=blob;f=modules/private/default.nix;h=c41879533146676983f539117145982ccec863b7;hb=HEAD (lines 4-6) and added as imports
<pingiun>
wait4 child process 1668 failed: No child processes
<pingiun>
Check of pool drosera/data failed (status:-1). Manual repair required!
<tilpner>
dminuoso: Easy, write a module that adds options. Set those options from another module, and then you can refer to config.hwinfo.ports.foo.bar (or any more sensible option name you want)
<tilpner>
immae: I prefer to write modules so that they can be imported standalone, and don't depend on their user already importing a dependency somewhere else
<tilpner>
immae: This means my modules import everything they need to work
<immae>
right
<tilpner>
immae: But if one of the modules they need to work is a function, it may not be imported twice
_pash has quit [Ping timeout: 240 seconds]
<immae>
In my case I wanted to stay as close as possible from the "nixos" version
knupfer has quit [Quit: knupfer]
knupfer1 has joined #nixos
<immae>
(so that I can follow when it changes)
<tilpner>
immae: So now there is no pretty way to have self-contained modules
<tilpner>
(Unless you proxy your module imports in a way that doesn't conflict, which I've seen done before, but adds files)
<immae>
tilpner: I wanted to have several distinct apache httpd servers, but nixos version doesn’t permit that, so I ended up witht hat: https://git.immae.eu/?p=perso/Immae/Config/Nix.git;a=blob;f=modules/websites/httpd-service-builder.nix;h=d049202c1d59c5c9e8b496240cd38f4cb7b83122;hb=HEAD
b101010 has quit [Ping timeout: 265 seconds]
<immae>
(a function that builds a `apacheFoo` module)
knupfer1 is now known as knupfer
<tilpner>
immae: And since you know what you're doing, and you don't care about self-contained modules, that's fine
ddellacosta has quit [Ping timeout: 245 seconds]
<immae>
yes, right, it was a wrong advice to give to dminuoso I just followed his path too fast
<tilpner>
You weren't wrong, it can be done like that. I just warned about possible conflicts :)
<dminuoso>
immae: No worries, I consider your input valuable nevertheless.
<dminuoso>
Thank you both tilpner and immae, making an option module seems like a great approach to this.
<dminuoso>
It solves many other issues here.
<dminuoso>
:)
<immae>
dminuoso: cool :)
alexherbo2 has quit [Ping timeout: 252 seconds]
alexherbo23 has joined #nixos
peanutbutter144_ has joined #nixos
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
b101010 has joined #nixos
alexherbo23 has quit [Ping timeout: 268 seconds]
Neo-- has joined #nixos
toppler has quit [Ping timeout: 250 seconds]
selfsymmetric-mu has quit [Remote host closed the connection]
Fare has joined #nixos
tilpner has quit [Quit: tilpner]
stzsch has quit [Ping timeout: 276 seconds]
cosimone has quit [Remote host closed the connection]
Maise has quit [Remote host closed the connection]
kuznero has joined #nixos
<kuznero>
Nice presentation on overlays, gchristensen! Thanks
cosimone has joined #nixos
toppler has joined #nixos
cosimone has quit [Client Quit]
b101010 has quit [Read error: Connection timed out]
<Neo-->
I want to update helm package to 15.1 but I've noticed that when I accidentally didn't update the sha256, the build didn't fail - anyone has an idea why that would be the case?
fuzen has joined #nixos
<exarkun>
Your src is a fixed-output derivation
<exarkun>
You changed the definition of where to get it but you didn't change the sha256 to expect of it
<exarkun>
nix noticed that there was already a store object with that sha256
<exarkun>
and since it is a fixed-output derivation, it *knows* that regardless of where the source comes from, if the sha256 matches it is the same
<kuznero>
nixcon resumed ;)
<exarkun>
So it used the existing store object instead of retrieving the source from the new location you specified
bvdw has quit [Read error: Connection reset by peer]
bahamas has joined #nixos
waleee-cl has joined #nixos
bvdw has joined #nixos
freeman42xx has quit [Client Quit]
<DigitalKiwi>
(almost) shameless self promotion https://twitter.com/grhmc/status/1187691161110171648?s=20 if you're at nixconf and would like one get ahold of gchristensen, and if you're not and would, get ahold of me :) ...or if you would like more or different colors or different logo or something new entirely https://twitter.com/ArchKiwi most of my posts the last few months are art i made
<Ilya_G>
I would like some help with adding overlays.
<tomorphism>
Hello! I've just installed Nix on MacOS in multi-user mode and all commands are failing with: `error: could not set permissions on '/nix/var/nix/profiles/per-user' to 755: Operation not permitted` ... any pointers?
<Yaniel>
Ilya_G: you'll need to be a bit more specific
<Ilya_G>
There is an issue with the package failing to build and I am trying to add a build flag to remove depreciation warnings from the build
<Ilya_G>
It's a long story :) working on it
<tomorphism>
I installed, as instructed, with my own non-root user.
<Yaniel>
the manual covers the basics
<Ilya_G>
So I have a simple recommendation to add this overlay:
<Ilya_G>
Sorry manual is too far from where I am. I am clearly lacking context to implement it successfully
<Yaniel>
(unless you installed the package with nix-env -i)
jlm66 has joined #nixos
<Ilya_G>
Yaniel: Ideally I would isolate this change into a dile and introduce it as an overlay. This is part of a build system inside a docker and I would like to have it in such a way that I could rebuild it from scratch and have my CI system create that disk image no matter what
vidbina has quit [Ping timeout: 246 seconds]
<Ilya_G>
*file
<exarkun>
Neo--: are you sure `-ldflags=-X k8s.io/helm/pkg/version.Version=v${version}` doesn't just hard-code whatever version string you give it?
<Yaniel>
this is not really something I'd set up an overlay for
<exarkun>
Neo--: Can you verify the package was actually upgraded in any other way?
<Yaniel>
especially if a fix is already being upstreamed into nixpkgs
<Yaniel>
just add it as a local override in whatever file you use to set up your container env
<Ilya_G>
Do you know how long fixes like that tend to take?
<Raito_Bezarius>
I don't understand something with NixOps, how do you override a plugin source?
<Yaniel>
depends on how busy the people with commit access to nixpkgs are
<tomorphism>
So these are the permissions as created by the installer: `drwxr-xr-x 3 root wheel 96 25 Oct 14:54 /nix/var/nix/profiles/per-user` — does this look reasonable?
<Neo-->
exarkun, huh, good question
<Yaniel>
after changes get merged, nixos channels tend to update every couple of days
<Neo-->
exarkun, I'm not that familiar with helm
<{^_^}>
[nixpkgs] @marsam merged pull request #70797 → Added libvmaf + support for it in ffmpeg-full → https://git.io/JeWR8
<Guest84>
simpson: I can use $RANDOM inside the shell script, you're right. Was wondering anyway
<simpson>
Guest84: Either Don't Do That, or use a shell hook and something like bash's $RANDOM.
eskytthe has joined #nixos
<Guest84>
haha, it's a nix shell, think of this like running a program. While AmandaC: (and you) would be right in general, in this case I don't think it's against the best principles
<wrl>
hey is there a good resource for "how to package some third-party software on nixos"?
<wrl>
is there perhaps a pill for that
<alexarice[m]>
wrl: what do you mean by third-party software. Isn't all software third party
<wrl>
alexarice[m]: well i walked right into that one eh
<Guest84>
I *am* using a shell hook :)
<Guest84>
I just hate bash though
<simpson>
Oh! I see. Modify your desires.
<Guest84>
I don't see why a 40 year old scripting language is still around
<Guest84>
ad-hoc designed :)
<Guest84>
Thank you, I hope I'm not being impolite
<simpson>
Maybe you don't want to use Nix, then?
<AmandaC>
I mean, bash knowledge isn't really that nessary for using nix, at least none of the insane stuff I've seen bash used for is
<simpson>
You can, of course, call a program of your choice inside the shellHook and then have that program do PRNG work. You are not forced to use $RANDOM.
<alexarice[m]>
wrl: I wasn't trying to be difficult, I just don't understand what you are trying to do and how it differs from the usual method of packaging stuff on nix
<Guest84>
wrl: Are you suggesting stuff that is binary only?
<Guest84>
*talking about
<Guest84>
AmandaC: No, it's not. And to be honest, I am decent at bash. I just don't like reading it :)
<dminuoso>
What's the general protocol of merging if the same option is met with a list in two modules?
* AmandaC
personally doesn't like witing bash, or trying to read anything other than simple shell stuff that's common to 99% of all shells
<dminuoso>
Are lists merged? Is there a way to specifcy merging strategies?
<__monty__>
Bash not modern enough, meanwhile I'd prefer if it was all POSIX : >
<AmandaC>
My main problem with more advanced bash stuff is it's symbol soup almost. If I wanted symbol soup, I'd read perl
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #nixos
astrall33 has joined #nixos
<simpson>
Guest84: There's a group of folks, Guix, working to use Guile instead of bash, if you prefer a different GNU-provided scripting language. Dhall is usable as a replacement for the Nix language today, if you like, although you'll still have bash for builders.
<simpson>
(And, of course, every sufficiently-motivated programming language community is working to rewrite *everything* in their languages of choice.)
<wrl>
i'm fairly new to nixos so I'm beating around the bush on just diving in to writing a derivation
<{^_^}>
[nix] @Ericson2314 opened pull request #3165 → Switch to nixpkgs 19.09 → https://git.io/JeEfg
<wrl>
there are a few other binary-only pieces of software in the repos that I could start from but if there were some docs about "best practices" for this sort of thing then I'd prefer to follow that
<Guest84>
Read up on patchelf
<wrl>
cc alexarice[m]
<Guest84>
wrl: ^^
<alexarice[m]>
wrl: You'll probably need to use patchelf
fritz has quit [Client Quit]
cosimone has quit [Quit: Terminated!]
<Guest84>
I don't think there's much. Basically just 3 steps- patchelf, appropriate license in the meta and copy paste to $out.
cosimone has joined #nixos
fritzotlinghaus has joined #nixos
monotux has quit [Quit: WeeChat 2.4]
fusion809 has quit [Remote host closed the connection]
<alexarice[m]>
wrl: a lot of packages in nixpkgs use patchelf so you should be able to grep some examples
monotux has joined #nixos
<alexarice[m]>
nix manual also has a section on it I believe
<wrl>
alright i'll give it a shot
<wrl>
why, uh
<wrl>
why is patchelf necessary?
Fare has quit [Ping timeout: 264 seconds]
fritzotlinghaus is now known as Scriptkiddi
<Guest84>
oh boy. you'll need to read :)
<Guest84>
I don't mean to be dismissive
<wrl>
no not at all!
<wrl>
i figured rpath was the reasoning
<Guest84>
but that question would require one to explain some pretty basic things
<Guest84>
would take long
<Twey>
wrl: Interpreter and rpath
<simpson>
Maybe reading over what patchelf can *do* would be more useful; it generally can only do the things that the community has needed: https://github.com/nixos/patchelf
<Guest84>
in short though- nix, as you might know, has software in non-standard locations. (deliberate choice to avoid impure building in years of old before namespaces)
<wrl>
yeah, do understand that
<wrl>
ahhh i think i get it more now
<makefu>
Guest84: not sure if still relevant, this is what you could use for getting a (deterministic) random input: nix-build -E '(import <nixpkgs> {}).pkgs.runCommandNoCC "lol" {} "RANDOM=23; echo $RANDOM > $out"'
b101010 has joined #nixos
<simpson>
A lot of this is going to boil down to attempting to run the binary and seeing what breaks, or some similarly slow and risky procedure.
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<wrl>
if i'm doing something like nix-shell, nix maps the dependencies into the usual "standard" linux paths
toppler has quit [Ping timeout: 265 seconds]
<wrl>
but that doesn't happen if i'm just running a standalone executable
<simpson>
wrl: Check the paths carefully; nix-shell doesn't put anything in /usr. On NixOS, the only thing in there is /usr/bin/env. Almost everything is actually in /nix. The FHS is not provided.
<wrl>
simpson: got it
Ariakenom has quit [Quit: WeeChat 2.6]
<wrl>
hm, ok related but slightly different question
<Ilya_G>
worldofpeace: May I ask you a question about a recent issue you are in a process of addressing?
<wrl>
if there's a package in nixpkgs proper but i want to override a few things in the derivation that don't seem to be overridable, what's the best way to do that? copy it somewhere local and modify it?
<DigitalKiwi>
you just did
<Guest84>
dminuoso: can you give an example?
bahamas has quit [Quit: Lost terminal]
<DigitalKiwi>
one question only! darn quotas... :P
<worldofpeace>
Ilya_G: umm, which issue?
<dminuoso>
Guest84: Sure. Say you define `network.interfaces.ens123.allowedTCPPorts = [ 22 ];` in one module and `network.interfaces.ens123.allowedTCPPorts = [ 443 ];` in another.
<simpson>
wrl: It really really depends. If the derivation's only 10-20 lines, and the attribute can't be overriden because it's computed somehow in a funky way, then yeah. But it's a serious tradeoff, and often there's a way to do the overriding. Which package?
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JeEJH
jlm66 has joined #nixos
<Ilya_G>
I am using nixos-generate utility to build a qcow2 image
<Ilya_G>
and this is where the open-vm-tools error accurs
<simpson>
wrl: Ah, you'll also have to override the hashes, since they've likely changed. If you're just trying to update the version, you might find it worth your while to send in your version bump. Note that this package has a funky bootstrapping step, likely due to some wacky unfree licensing.
cosimone has quit [Remote host closed the connection]
ornxka is now known as notabotiswear
<wrl>
simpson: no hashes for this particular package
<wrl>
simpson: the funky bootstrapping is because the developer builds per-user "watermarked" executables
<wrl>
simpson: you may actually be able to help out with what i'm trying to do though
<Ilya_G>
worldofpeace: I am trying to understand how to work this overlay for my configuration.nix to pick it up
<Raito_Bezarius>
What is the effect of fixMergeModules?
normalcomputerus is now known as ornxka
b101010 has quit [Remote host closed the connection]
<worldofpeace>
Ilya_G: ahh I see, could paste somewhere with what you have? I believe I left only a snippet
knupfer has quit [Remote host closed the connection]
b101010 has joined #nixos
knupfer has joined #nixos
<Ilya_G>
worldofpeace: this is awesome. What would I need to do to pull the latest from nix packages to build against?
<Ilya_G>
I am building stuff in a docker
<wrl>
simpson: i'm trying to do the following: nixpkgs.config.packageOverrides = pkgs: { renoise = pkgs.renoise.override { releasePath = "~/Downloads/filename.tgz" }; };
<Ilya_G>
Should I just rebuild my image?
<wrl>
simpson: however, it seems that ~ isn't being expanded to $HOME here
<wrl>
is there an idiomatic way to do that?
<worldofpeace>
DigitalKiwi: Tell my why the nixos pride stickers are literally just me as a snowflake 🤣
<simpson>
wrl: Hand-expand it. AFAIK there's no good way to get it auto-expanded to *your* home and not the Nix daemon's.
<Ilya_G>
worldofpeace: should I just rebuild my docker image that I use to build my disk images?
<Ilya_G>
Or would it take a few days to become available in the channel?
<worldofpeace>
Ilya_G: well the problem was open-vm-tools fail to build and something depends on it? it's probably simplest to use an override in nixos-overlays
<worldofpeace>
Yes it would take a few days
<Ilya_G>
worldofpeace: So I should go along with overlays path anyways?
<{^_^}>
[nixpkgs] @bjornfor pushed commit from @r-ryantm to master « thrift: 0.12.0 -> 0.13.0 »: https://git.io/JeEUf
<Ilya_G>
worldofpeace just drop it into the body of my configuration.nix for image build?
<worldofpeace>
DigitalKiwi: We're a splendid sparkling fire, like a flickering sun flame. more like a sun-flake though
<worldofpeace>
Ilya_G: I believe so
<Ilya_G>
@worl
<Ilya_G>
worldofpeace it didn't blow up and started the bbuild so that is a good sign :)
<worldofpeace>
hmm, the overlays docs could be a bit more practical. nixpkgs.overlays makes the most sense from a users point of view
<Ilya_G>
I would love to fix it I just can't even understand where to egin.
<Ilya_G>
*begin
<DigitalKiwi>
worldofpeace: i read that in hulk voice
<DigitalKiwi>
thor like
<DigitalKiwi>
water
<worldofpeace>
lol DigitalKiwi try it in elegant nuanced poetic voice
<worldofpeace>
it makes more sense then
<DigitalKiwi>
but i like hulk :(
mmlb has joined #nixos
<Ilya_G>
Oh, wow. DigitalKiwi can actually respond. Are you a bot?
<simpson>
You don't have to answer that.
<DigitalKiwi>
yes, my creator has horrible internet though so i have a lot of lag time
<Ilya_G>
DigitalKiwi I have a lot of lag time in real life. I feel your pain.
<DigitalKiwi>
something hasn't been right with my wifi since the new nixos :<
<DigitalKiwi>
there's a lot of times i have like 40% packet loss if i have connection at all...
b101010 has quit [Ping timeout: 246 seconds]
Kalm004 has quit [Remote host closed the connection]
<worldofpeace>
Ilya_G: hope you get your setup working. have to go 👋
<Ilya_G>
worldofpeace you are the best, regardless. thank you
<{^_^}>
[nixpkgs] @mtetreault opened pull request #71986 → plymouth: Add extra config field → https://git.io/JeEUc
b101010 has joined #nixos
dm9 has joined #nixos
Ariakenom has joined #nixos
noudle has joined #nixos
eskytthe has quit [Ping timeout: 265 seconds]
fendor has quit [Ping timeout: 240 seconds]
toppler has quit [Ping timeout: 265 seconds]
ddellacosta has joined #nixos
<{^_^}>
[nixpkgs] @FRidh merged pull request #71800 → pipenv: patch pipenv to point to python that has virtualenv → https://git.io/Je0LW
<{^_^}>
[nixpkgs] @FRidh pushed to master « pipenv: patch pipenv to point to python that has virtualenv »: https://git.io/JeEU4
toppler has joined #nixos
nalck has joined #nixos
<Acou_Bass>
has anyone been using the newly available bitlbee-mastodon plugin on 19.09? I used to use it before i switched to NixOS on another distro andit sometimes crashes out... BUT the version on 19.09 just crashes every time and never works
<Ilya_G>
worldofpeace I am past my original error. This one is a win! Thank you very much again.
<Acou_Bass>
there's apparently an open issue with it where you can work around it by disabling twitter first, then turning mastodon on, then turning twitter on... but i dont have twitter enabled :P
Ilya_G has quit [Remote host closed the connection]
erasmas has joined #nixos
mabel has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
wildtrees has joined #nixos
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
<{^_^}>
[nix] @blitz opened pull request #3166 → PoC: Add fetchSubmodules to builtins.fetchGit → https://git.io/JeETI
<sarahzrf>
is it possible to get ihaskell working? :\ (i use nix on arch, not nixos)
<Twey>
Hey
<{^_^}>
[nixpkgs] @tadeokondrak closed pull request #64442 → mpv: fix drm and vulkan support → https://git.io/fji2D
Tucky has quit [Quit: WeeChat 2.6]
<Twey>
sarahzrf: What happens if you just `nix-shell -p ihaskell --run ihaskell-notebook`?
<sarahzrf>
error: Package ‘ihaskell-0.10.0.2’ in /nix/store/qq3rgrbb94ky1k1l167a6j08b1ijydhl-nixpkgs-20.03pre197736.91d5b3f07d2/nixpkgs/pkgs/development/haskell-modules/hackage-packages.nix:133408 is marked as broken, refusing to evaluate.
<sarahzrf>
sorry, shouldve led with that :)
<sarahzrf>
im currently about to try marking it unbroken and seeing what goes wrong 🤔
<DigitalKiwi>
nilsirl[m]: but i haven't changed it and i've done nixos-upgrade switch a few times and don't recall seeing it anymore (am on nixos-unstable)
jollyjester has quit [Quit: leaving]
<DigitalKiwi>
+the actual names of things
_pash has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
<_pash>
why is it that when i do `nix search` i get results from both nixos. and nixpkgs.
alexherbo2377 has joined #nixos
drakonis_ has joined #nixos
<__monty__>
It probably searches all your channels.
<__monty__>
Maybe you can pass the channel you wan't searched?
<_pash>
__monty__: i guess the real question is, i dont know where it knows about nixpkgs from
<_pash>
i only have defined nixos in sudo nix-channel
<{^_^}>
[nixpkgs] @iimog opened pull request #71991 → DCMTK: init at 3.6.4 → https://git.io/JeEkX
<__monty__>
Ah, it probably uses your user's channels. Unless you're running sudo nix search?
<_pash>
__monty__: and in fact both point to the same place with nix-instantiate
<_pash>
__monty__: my nix-channels from user side are empty
<Maise>
Nearly got devkitPro building properly - just need to solve a couple small issues.1) Halfway through the build, it compiles against zlib incorrectly, causing https://stackoverflow.com/questions/21648912/undefined-reference-to-uncompress-zlib . I 'fixed' this by adding -lz to the two calls in nix-shell, but that obv. wont work for nix-build. How can
<Maise>
I get gcc to use that flag by default (is that safe?) so that they will compile?2) The result of the expression is a set of executables in $src/tools/bin - how do I export them and the `DEVKITPRO` and `DEVKITARM` enviroment variables that are meant to be set?
avn has joined #nixos
<__monty__>
_pash: Maybe there's an entry in NIX_PATH?
<Maise>
Ah IRC doesnt support newlines
<{^_^}>
[nixpkgs] @sikmir opened pull request #71992 → mu-repo: init at 1.8.0 → https://git.io/JeEky
chloekek has joined #nixos
<simpson>
Maise: Is this *your* SO question? Who knows what their particular problem is. Could you share the Nix expression that you're writing instead?
toppler has joined #nixos
<Maise>
Oh, that isnt a problem I'm facing - I need to pass the `-lz` flag to `gcc`, which I did to complete a build in `nix-shell`, I'm just trying to translate that to a full expression. Heres what I've got at the moment (used with nix-shell) https://hasteb.in/wisiniwi.bash
<{^_^}>
[nixpkgs] @thoughtpolice pushed commit from @r-ryantm to master « tbb: 2019_U8 -> 2019_U9 »: https://git.io/JeEk9
<_pash>
__monty__: aaah, it has nixpkgs=....
<_pash>
but i dint put it there... who did?
<Maise>
I was hoping there would be a way to put `-lz` in gcc's 'default flags', which I presume wouldve had to be done in the build environment this repo would compile in
<simpson>
Coworkers successfully converted. "Nix seems neat", "yeah I'm a fan of Nix now too", "never used it till yesterday"
jlm66 has quit [Remote host closed the connection]
* simpson
evil laughs internally
<pie_>
nh2[m]: nh2_: you should talk to edef about the low level nix cachey stuff and also tell nmattia if you happen to see him ,it think itt would be worthwhilee
<{^_^}>
#31351 (by MrSorcus, 1 year ago, closed): List-generations empty.
jlm66 has joined #nixos
<pie_>
simpson: you at nixocon?
justan0theruser has joined #nixos
b1000101 has joined #nixos
<{^_^}>
[nixpkgs] @c0bw3b merged pull request #71920 → epsxe: fix link with openssl → https://git.io/Je0XJ
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @guibou to master « epsxe: fix link with openssl (#71920) »: https://git.io/JeEIT
<simpson>
pie_: No, I'm at work.
<lassulus>
why is nixcon not work?
<hpfr[m]>
I’m getting a bunch of addons.xpi errors when starting Firefox, for example I can’t use the screenshot feature. This doesn’t happen with a clean profile. Is there some way I can refresh the profile data?
<mdash>
hpfr[m]: oh, so that's why i lost my screenshot button
<mdash>
I don't have a solution but I admire the problem
<__monty__>
inkbottle: Note that home-manager and nix-env would still use your default profile.
<__monty__>
Rather than the system profile.
<mdash>
hpfr[m]: maybe try 'Refresh Firefox' on the about:support page
toppler has quit [Ping timeout: 240 seconds]
hpfr has joined #nixos
<inkbottle>
is nix-env --delete-generations --profile /nix/var/nix/profiles/system somehow equivalent to nix-collect-garbage -d? (__monty__ I've not yet considered home manager, I'm still in the nix pills)
<mrCyborg>
Hey, I'm trying to test out nixops using virtualbox. I manually deleted the vboxnet adapter and the virtual machine that nixops added and force deleted the deployment. Now nixops doesn't want to deploy anymore because vboxnet0 is missing... Any way I can make nixops reconfigure virtualbox?
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
justan0theruser has quit [Ping timeout: 268 seconds]
<Maise>
I'm honestly just wondering how its done with the compiler. Total noob to c++
<Maise>
Though youre right, nix would probably sort out the environment for it
cosimone has quit [Quit: Quit.]
dashkal has joined #nixos
<zeta_0>
i am trying to set the hi-dpi for my laptop monitor and i found this option: `services.xserver.displayManager.sddm.enableHidpi` but i don't use sddm(i only use xmonad by itself)
<zeta_0>
and for dpi i found the 2 options: `fonts.fontconfig.dpi`, and `services.xserver.dpi`
cosimone has joined #nixos
lord| has joined #nixos
pi3r has joined #nixos
<zeta_0>
do i need to use the bottom two options to correctly configure the dpi(screen resolution) on my laptop ?
<__monty__>
Probably.
gyroninja_ has joined #nixos
gyroninja has quit [Ping timeout: 240 seconds]
<zeta_0>
how do i figure out exactly what values i need set these 2 options to ?
toppler has quit [Ping timeout: 240 seconds]
<zeta_0>
have any of you guys here had dpi(screen resolution) problems with an hidpi 3k laptop ?
jb55 has joined #nixos
<gchristensen>
I switched to sway (wayland) because it handles high dpi better, but that has its own troubles
<simpson>
I avoid hidpi devices.
<gchristensen>
impressive
<simpson>
It's the lowest-effort way to avoid having hidpi problems: Just don't upgrade~
<zeta_0>
i am only running xmonad so it has no builtin automatic dpi configuration, i guess i'll just try to figure calculations to correctly set those bottom 2 dpi options
toppler has joined #nixos
<zeta_0>
at this point i have no idea ? it's annoying having the letters super tiny
<DigitalKiwi>
does anyone know how to make nvidia drivers AND the frame buffer on tty1 work on a macbookpro11,3 :(
xensky has joined #nixos
<DigitalKiwi>
i can either have nouveau and tty1 and horrible resolution and tearing problems or nvidia and no tty1 but less tearing and better scaling...i can barely see things normal sized let alone when they are half sized
eskytthe has joined #nixos
<xwvvvvwx>
zeta_0: I use `services.xserver.dpi` in my configuration.nix, `xft.dpi` in XResources, and also a little bit of per application hidpi config as needed on a 4k dell xps13
<pi3r>
I have a weird issue. I have been using such idiom to build a simple haskell program with some related deps in nix: https://pastebin.com/bMNLGD8d
<Squarism>
how can I control the names of the "${out}" folders? is that name="..."?
<Squarism>
now they become result,result-2, result-3
<xwvvvvwx>
Connecting a non 4k external monitor is a mess :D
gkmngrgn has quit [Ping timeout: 250 seconds]
<pi3r>
It has been working for ages. Now it still works but if I changed the nixpkgs channel to unstable or nixos-19.09 it does work anymore ...
<xwvvvvwx>
ghristensen: does screen sharing work on wayland yet?
<pi3r>
it does *not* work anymore
<xwvvvvwx>
that's what made me go back to X
civodul has joined #nixos
<gchristensen>
if I need to screen share I start a progarm with xwayland instead
<pi3r>
The built derivation is quite simple, it is generated with cabal2nix on the fly) but here it is: https://pastebin.com/GgfpEjFq
mexisme has quit [Ping timeout: 264 seconds]
<pi3r>
If I don't generate it on the fly, I have the same issue (so it does not seem to be related to cabal2nix)
<pi3r>
I have tried to use haskellPackages.callPackage with the file instead of (callCabal2nix)... same behavior so there is nothing wrong with callCabal2nix either
<zeta_0>
xwvvvvwx: could you paste your configuration for that, i am not sure what to do ?
<xwvvvvwx>
ghristensen: oh I never thought to try that somehow :D. Maybe I'll try sway a try again soon...
tiAy has joined #nixos
<xwvvvvwx>
zeta_0: I have `Xft.dpi: 220` in `~/.Xresources` and `services.xserver.dpi = 220` in `/etc/nixos/configuration.nix`
<clever>
pi3r: nix doesnt obey the version restrictions when providing haskell packages
<clever>
pi3r: you want to use doJailBreak
Lears has quit [Ping timeout: 268 seconds]
<xwvvvvwx>
I also have `exec --no-startup-id xrdb -merge ~/.Xresources` in `.config/i3/config` to make sure the Xresources config is applied
<ivan>
v0|d: I checked release-19.09 and I suspect nixpkgs nss fails to package it
<v0|d>
ivan: found it in nixos.nssTools
<v0|d>
Im on 20.03.
__monty__ has quit [Quit: leaving]
<Maise>
How can I start a shell with the armv7a-android toolchain?
_pash has quit [Quit: leaving]
myskran has quit [Ping timeout: 240 seconds]
DanC has joined #nixos
<DanC>
I'm trying to use nix on a mac, but jamf and mcafee are gumming up the works. Anybody know how to tell those tools not to bother with /nix/store?
<nh2_>
if I use `--keep-failed` on a machine with nix sandbox, the remainders are in `/tmp` but when I try to resume it it demands `/build` which does not exist. How can I resume such a build?
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 2 commits to nixos-19.09-small: https://git.io/JeEmI
nschoe has quit [Read error: Connection reset by peer]
<DanC>
`nix-env -i nodejs-12_x` has been using ~25% cpu for ~10sec without any ui feedback; any idea what it's doing?
Neo-- has quit [Ping timeout: 276 seconds]
Lears has joined #nixos
moet has quit [Ping timeout: 240 seconds]
<nh2_>
DanC: possibly querying whether it and its dependencies are available from binary caches
abathur has joined #nixos
<nh2_>
I also think it should print something for that; maybe some amount of `-v` flags will reveal it?
<DanC>
I'm used to pretty rapid feedback; I normally use nix on Ubuntu linux. I can't tell if the virus scanners are still gumming up the works or what.
<DanC>
now I get "nodejs-12_x matches no derivations" though nix search finds it just fine. grumble.
<DanC>
I was able to `nix-channel --update`
<DanC>
... earlier
virus_dave has quit [Quit: virus_dave]
<DanC>
nix-shell seems to find it.
erasmas has quit [Quit: leaving]
<{^_^}>
[nixpkgs] @flokli pushed 5 commits to release-19.09: https://git.io/JeEYe
<{^_^}>
[nixpkgs] @WilliButz opened pull request #71999 → nixos/i18n: use str instead of string for consoleKeyMap → https://git.io/JeEYY
eskytthe has quit [Quit: Leaving.]
<{^_^}>
[nixpkgs] @veprbl pushed to staging-19.09 « cmake: process -iframework in setup-hook »: https://git.io/JeEYc
ris has joined #nixos
gjabell has quit [Ping timeout: 265 seconds]
gjabell has joined #nixos
misuzu has quit [Quit: leaving]
misuzu has joined #nixos
<sauyon[m]>
not sure if somebody responded to me about my install issues, but I'm getting `touch: cannot touch '/etc/profile.d/nix.sh': No such file or directory`
<sauyon[m]>
which is happening because it's a symlink pointing to a non-existant directory
<sauyon[m]>
(`/nix/var/profiles/default`)
knupfer has quit [Ping timeout: 250 seconds]
astrall33 has quit [Read error: Connection reset by peer]
<nh2_>
my previous question was misguided, with `nix-shell thederivation.drv` it already created my desired `/build`, I just didn't notice it