<gchristensen>
things are good :) just got back from a 2 week vacation, so even better than usual ^.^
drakonis_ has quit [Ping timeout: 265 seconds]
<gchristensen>
how about yourself? (I'll see about fixing the centos-7 config)
<johnw>
(thanks!) I've been well, rather busy, about to head to Zurich this weekend
<gchristensen>
oh nice
<gchristensen>
say, will you be at nixcon?
o1lo01ol1o has quit [Ping timeout: 276 seconds]
jgt has joined #nixos
<gchristensen>
johnw: can you find the proper options for this to automatically agree? `yum install curl` also -- does centos need more packages than just curl for Nix to install?
mexisme has joined #nixos
Guest29 has joined #nixos
<johnw>
no, I won't be there :(
<Guest29>
Hi all, has anyone had any luck setting up wireguard? "wg-quick up mullvad-se4" seems to just stop all traffic
<johnw>
I don't think it should
<johnw>
automatically agree?
<johnw>
oh, yum install -y
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Je32A
Walker3R has quit [Read error: Connection reset by peer]
Walker3R has joined #nixos
sigmundv has quit [Ping timeout: 265 seconds]
Walker3R has quit [Read error: Connection reset by peer]
Walker3R has joined #nixos
Zer0xp has joined #nixos
Walker3R has quit [Ping timeout: 246 seconds]
Walker3R has joined #nixos
Walker3R has quit [Read error: Connection reset by peer]
Walker3R has joined #nixos
Walker3R has quit [Ping timeout: 246 seconds]
Walker3R has joined #nixos
slack1256 has joined #nixos
silver_ has quit [Read error: Connection reset by peer]
liberiga has quit [Ping timeout: 260 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
Walker3R has quit [Remote host closed the connection]
jay_ has joined #nixos
jay_ has quit [Remote host closed the connection]
growpotkin has joined #nixos
jlv has joined #nixos
batzy has quit [Quit: Leaving]
<jlv>
Is the a nix function to get the directory of the .nix file?
growpotk- has joined #nixos
growpotkin has quit [Ping timeout: 276 seconds]
growpotk- has quit [Ping timeout: 258 seconds]
<jlv>
Something like `pwd` for nix
mexisme has quit [Ping timeout: 276 seconds]
<samueldr>
there is no concept of "cwd" or "pwd" within the nix eval, but every file knows where it is, and any relative path is relative to the current file (not cwd or pwd)
<samueldr>
so ./. is the directory the file you wrote that in is in
<samueldr>
jlv: is that what you were looking for?
<jlv>
samueldr: I need a string in this case, so I can't use the built in relative path.
<jlv>
And it needs to be an absolute path.
<samueldr>
> toString ./.
<{^_^}>
"/var/lib/nixbot/state/nixpkgs"
<samueldr>
when paths are converted to string, they are always turned to absolute paths
m0rphism has quit [Ping timeout: 246 seconds]
<buckley310>
theres also dirOf ./.
abathur has joined #nixos
felixfoertsch has joined #nixos
felixfoertsch23 has quit [Ping timeout: 265 seconds]
<jlv>
Just above `toString` in the manual is, what looks like, an even simpler solution: Use /. + "/path" to convert a string into an absolute path. For relative paths, use ./. + "/path"
<clever>
> toString ./.
<{^_^}>
"/var/lib/nixbot/state/nixpkgs"
<clever>
> "${./.}"
<{^_^}>
access to path '/var/lib/nixbot/state/nixpkgs' is forbidden in restricted mode
<clever>
toString behave very differently from treating it as a string
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m0rphism has joined #nixos
tvorog has joined #nixos
<{^_^}>
[nixpkgs] @doronbehar opened pull request #69136 → onedrive: init at 2.3.9 → https://git.io/Je3om
alex`` has joined #nixos
hmpffff has joined #nixos
<ij>
I'm trying to install the sq_mini_racer ruby gem, but it seems like it wants to download v8 or something. I'm installing on darwin with bundix. https://clbin.com/dXDCb
<ij>
What package is v8 in? Node?
<ij>
libv8, I guess
<manveru>
hmm
asymptotically2 has joined #nixos
asymptotically is now known as Guest527
asymptotically2 is now known as asymptotically
ng0_ has joined #nixos
klntsky has quit [Remote host closed the connection]
andreas303 has quit [Remote host closed the connection]
xelxebar has quit [Remote host closed the connection]
<manveru>
ij: just v8
orivej_ has quit [Ping timeout: 276 seconds]
oida has quit [Remote host closed the connection]
<manveru>
i guess similar flags as for `therubyracer` gem might work
<manveru>
ij: looks like the libv8 gem removed the option to provide your own v8...
<manveru>
this is really frustrating
<manveru>
also `Starting with libv8 3.11.8.0, all even point releases contain only a source-based distribution, while odd point releases contain both a source-based distribution and binary distributions. However both point releases correspond to the exact underlying code. The only difference is the version number.`
<cinimod`>
error: cannot open connection to remote store 'daemon': executing SQLite statement 'pragma synchronous = normal': disk I/O error (in '/nix/var/nix/db/db.sqlite')
<clever>
ack, youll need to use nixops 1.6, and then follow that doc
suzanne has joined #nixos
<cinimod`>
This yak really needs some shaving
<cinimod`>
I am trying to solve equations using Chebyshev polynomial approximations
<cinimod`>
Somehow here I am using nixops on azure
<clever>
why do you need azure for Chebyshev polynomial approximations?
FRidh has joined #nixos
<cinimod`>
I want to use CUDA for my solver - I thought something like nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixpkgs-unstable.tar.gz -E 'with import <nixpkgs> { config.allowUnfree = true; }; stdenv.mkDerivation { name = "foo"; buildInputs = [ (python37.withPackages (pkgs: [pkgs.tensorflowWithCuda])) ]; }' would be a way of not having to worry about manually installing everything
<cinimod`>
But I can't use CUDA with nix unless I am running nixos
<FRidh>
cinimod`: no need for the stdenv.mkDerivation
<clever>
cinimod`: was cuda the amd or the nvidia one?
<clever>
nvidia i think?
<cinimod`>
clever: yes but I didn't know there was a choice
<clever>
cinimod`: nvidia is primarily cuda, amd is primarily opencl i believe
<cinimod`>
That's what I think
<clever>
cinimod`: i have used cuda before with nixops and aws, so nothing is forcing you to go with azure
<cinimod`>
clever: I need a VM somewhere to run nixos I think so why not azure?
<cinimod`>
Did I say I was forced to use azure? I certainly didn't mean to give that impression
<cinimod`>
I just happen to have used azure off and on over the last 6 years
<cinimod`>
clever: colemickens had created instructions on how to create a nixos VM on azure - probably I should see what they suggest or as you say switch to AWS
<cinimod`>
clever: it may be that one of their instructions can be modified to partition the disk - I looked through the instructions but I can't see how to modify them myself
<clever>
cinimod`: this will load azure-mkimage.nix and pass it a nixpgs and rev, you could add a diskSize there, or just modify the default
o1lo01ol1o has joined #nixos
<clever>
__monty__: i'm guessing it was made as small as possible, and its supposed to resize itself on first boot, but maybe it was just a little bit too small
<cinimod`>
clever: I used the prebuilt image - I will now try and create my own image
<cinimod`>
Thanks very much for the help / pointers :)
<cinimod`>
I will report back on progress
o1lo01ol1o has quit [Read error: Connection reset by peer]
<cinimod`>
I may even write a blog about it
o1lo01ol1o has joined #nixos
<cinimod`>
The world needs to know these things
<__monty__>
You probably should, and then add a link to the wiki.
jtojnar has quit [Quit: jtojnar]
fendor has quit [Ping timeout: 240 seconds]
fendor has joined #nixos
joshuagl has joined #nixos
<pie_>
buckley310: fml i just forgot to set DISPLAY and didnt see the first error message
tmaekawa has quit [Quit: tmaekawa]
<{^_^}>
[nixpkgs] @vcunat pushed 2 commits to release-19.03: https://git.io/Je36d
suzanne has joined #nixos
<{^_^}>
[nixpkgs] @SFrijters opened pull request #69144 → WIP gdc: init at 9.2.0 → https://git.io/Je36A
<thblt>
I have a small issue that may, or may not, be a bug. On a system where git isn't globally installed, declaring a derivation in ~/.nixpkgs/config.nix that uses fetchGit to grab source code fails, because fetchGit assumes git is somehow present. Is it worth reporting?
<{^_^}>
[nixpkgs] @liff opened pull request #69151 → pythonPackages.hcloud: init at 1.6.0 → https://git.io/Je3PY
<emily>
zfs is broken on current nixos-unstable I guess?
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/Je3P6
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @delroth to release-19.09 « mono-zeroconf: remove broken package »: https://git.io/Je3PP
<Shoubit>
What's the simplest way to write to an arbitrary (root) file from configuration.nix? `writeTextFile` doesn't work because it runs as a nix builder user. I'm also aware of environment.etc, but I want to write to /run.
<jD91mZM2>
Is there a place to read about merge priority? I'm having trouble understanding what mkDefault does, as I assumed it'd combine my custom value with the default value.
<jboy>
yes it is. but as i understand stack can't install a different ghc version on nixos.
<immae>
is it specific to nixos?
<immae>
on my system stack (installed via my package manager) downloads/compile ghc in ~/.stack, so ghc has nothing to do with my distribution
<jboy>
I'm not sure, I know nothing about the haskell ecosystem.
logzet has joined #nixos
werner291 has joined #nixos
asymptotically has quit [Quit: Leaving]
<dminuoso>
Its funny, I just realized how annoyed I was by the lack of documentation in the entire nix and nixos ecosystem..
waleee-cl has joined #nixos
<dminuoso>
And then after some pondering I told to myself "well, its just as bad as say ansible, but at least I can declaratively describe my systems"
<emily>
nixos: undocumented, but specified
mexisme has joined #nixos
<dminuoso>
In some sense Haskell is not too different. Hackage is filled with so many packages that are completely undocumented, but the guarantee of types lets you live with it.
<jboy>
immae: is there a smart way to figure out which nixpkgs version has the package version I'm looking for?
<dminuoso>
If only nix was typed. :(
rsoeldner has quit [Ping timeout: 240 seconds]
<immae>
jboy: I would go for dichotomy (`git blame`), around the time where lts-4.2 was around
<immae>
s/blame/bisect/
cinimod` has quit [Ping timeout: 240 seconds]
iyzsong has quit [Ping timeout: 268 seconds]
mexisme has quit [Ping timeout: 240 seconds]
rsoeldner has joined #nixos
__monty__ has quit [Ping timeout: 258 seconds]
<tazjin>
,locate perf
<{^_^}>
Found in packages: pig, atom, jzmq, storm, brackets, dart_dev, dart_old, sonic-pi, atom-beta, linux.dev, dart_stable, bitwarden-cli, intel-gpu-tools, linux_mptcp.dev, nodePackages.bower, python27Packages.perf, python37Packages.perf, linuxPackages_4_4.perf, linuxPackages_4_9.perf, linuxPackages_4_14.perf, linuxPackages_4_20.perf, linuxPackages-libre.perf, linuxPackages_xen_dom0.perf, linuxPackages_4_4.kernel.dev, and 16 more
nschoe has quit [Ping timeout: 265 seconds]
justanotheruser has quit [Ping timeout: 265 seconds]
rsoeldner has quit [Remote host closed the connection]
dm9 has joined #nixos
jakobrs has quit [Ping timeout: 245 seconds]
fendor has joined #nixos
graf_blutwurst has quit [Remote host closed the connection]
justanotheruser has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
o1lo01ol_ has joined #nixos
o1lo01ol1o has quit [Read error: Connection reset by peer]
armin has joined #nixos
orivej has joined #nixos
<jboy>
thanks immae, found the revision I needed, and I just ran `$ NIX_PATH=nixpkgs=https://... nix-shell` to get an environment with the old compiler version. I think it's working.
<immae>
cool :)
<jboy>
environment variable seemed easier than figuring out how to overload nixpkgs in default.nix.
<catern>
eraserhd: yeah I got feedback from my user, they were trying to symlink ~/.config/kak/autoload/system to the system autoloads but didn't know where to symlink it
o1lo01ol_ has quit [Ping timeout: 240 seconds]
<immae>
jboy: does the project comme with a shell.nix?
<jboy>
no, it doesn't. I wrote the default.nix
<immae>
ok
<immae>
jboy: Then if you have time, I would suggest that you try your "latest" stack figure out what version of ghc he needs to install. In my opinion (and if I understand well the stack README) it "should" work like that
<eraserhd>
catern: They could copy it into their local kakrc and change the directory (and delete superfluous bits).
werner291 has quit [Ping timeout: 268 seconds]
<jb55>
oh I think eval works here...
<immae>
(jq pretty-prints json, but it does many other things. It would make sense to pretty-print nix, but appart from that I don’t see what you could mean by "an equivalent of jq")
silver has joined #nixos
ddellacosta has joined #nixos
<jb55>
srhb: I just wanted to pull the crates attribute out of Cargo.nix when its generated by crate2nix, it looks like eval works for that. I guess I just need to pretty print it now...
<ddellacosta>
hey folks, is there a way to install packages from other OSes, and if so what is best from these options: .deb (for either Debian or Ubuntu) or .rpm (for CentOS)?
Zer0xp is now known as Guest61943
Soo_Slow has joined #nixos
<emily>
ddellacosta: not easily
Zer0xp has joined #nixos
<emily>
nix packages contain more specific information than a deb or rpm, so it's not a trivial conversion
<srhb>
ddellacosta: Usually it's about as problematic as custom binary distributions.
<slabity>
That's strange... I have `allowUnfree = true;` in my config but nix-locate can't find it
<srhb>
slabity: Doesn't nix-locate rely on hydra information?
<srhb>
slabity: As in, it checks Hydra builds to find the files in each attribute
<slabity>
Does it? I am not familiar with the internals of it...
<srhb>
(Well, top level attribute at least)
knupfer has joined #nixos
<srhb>
slabity: Nix itself has no idea what files are in which package before building it.
<slabity>
What I'm confused about is why that file no longer exists in my profile after updating...
<slabity>
I still have `videoDrivers = [ "nvidia" ];`, and I don't think I made any other configuration changes that would affect it... Why isn't it installed?
Guest61943 has quit [Ping timeout: 240 seconds]
hmpffff has joined #nixos
kleisli has joined #nixos
Zer0xp has quit [Ping timeout: 246 seconds]
<srhb>
slabity: I don't think that should cause it to be included in your profile.
wfranzini has quit [Remote host closed the connection]
<__red__>
Greetings
<__red__>
so if I wanted to pull an updated package from a pull request that someone was proposing
<__red__>
and hasn't been merged yet
<__red__>
what would be the most effective way of doing it?
jsomedon has joined #nixos
<gchristensen>
today's office hours (in ~2h50min - 1900UTC / 3pm america/new_york) is going to be a question & answer format, plus PR review. if you're interested, come to #nixos-officehours. I'd love to get a few questions and PRs lined up ahead of time!
<__red__>
ooh - what a great idea!
<__red__>
so that's more project questions / directions / + 'help my PR isn't merged' type things?
<gchristensen>
it is whatever we make of it! :) do you have ideas? (in the past, it has been some questions, some PR review, some interview-style stuff)
<__red__>
Well - selfishly my daughter is dragging me over not being able to play minecraft with me so I'm watching someone else's PR - I should probably contact them and see if there is anything I can help with
<__red__>
(very unlikely(
<gchristensen>
:)
<__red__>
also - I got my first NixOS production server at work ;-)
<gchristensen>
:o
<__red__>
which is no mean feat given that they're an oracle linux / java shop
<gchristensen>
:o
<__red__>
oh - the minecraft PR lost its WIP tag - awesome!
<{^_^}>
[nixpkgs] @teto pushed commit from @doronbehar to master « neovim-remote: 2.2.0 -> 2.2.1 »: https://git.io/Je3Sg
logzet has quit [Ping timeout: 250 seconds]
Okinan has quit [Quit: Konversation terminated!]
erasmas has joined #nixos
Ilya_G has joined #nixos
zacts has quit [Quit: WeeChat 2.4]
zacts has joined #nixos
Okinan has joined #nixos
knupfer has quit [Ping timeout: 245 seconds]
kleisli has quit [Ping timeout: 240 seconds]
ivn has joined #nixos
o1lo01ol1o has joined #nixos
ivn has left #nixos [#nixos]
o1lo01ol1o has quit [Remote host closed the connection]
<Ilya_G>
Good afternoon. I have a question about `nix-build` running out of memory while pulling a python pip dependency. I have a custom Python project that I am building inside a docker instance `nixos/nix`. It annoyingly spins up with only 2GB of RAM. As I build my custom package in verbose mode I see `warning: dumping very large path (> 256 MiB);` as
<Ilya_G>
it tries to fetch pip and then it overruns memory and terminates.
ivn has joined #nixos
<Ilya_G>
Any suggestions?
o1lo01ol1o has joined #nixos
ivn has left #nixos [#nixos]
captn3m0 has joined #nixos
<Ilya_G>
I was considering prefetching Pip separately but I am not sure how.
tokudan has quit [Quit: Dunno.]
almostnobody has joined #nixos
Heirlung has quit [Quit: Leaving]
<almostnobody>
hi, is there a right way to patch a package in nix config(in my case custom keyboard layout for xorg package)?
inkbottle has joined #nixos
kleisli has joined #nixos
Palpares has quit [Remote host closed the connection]
<Ilya_G>
lordcirth_: it presents it's own challenges. I was wondering if there was a way to prefetch pip maybe so that it would chew on memory in isolation.
jsomedon has quit [Quit: jsomedon]
<exarkun>
Ilya_G: You could try packaging without pip.
dm9 has quit [Quit: WeeChat 2.6]
drakonis has quit [Ping timeout: 240 seconds]
<Ilya_G>
exarkun: sadly I am not sure how to so any hint would be helpful. Also Python without `pip` cant really go anywhere as it is Python Library Manager
<lordcirth_>
Shouldn't the common libraries be packaged in nix already?
<exarkun>
Ilya_G: On Nix you generally do a lot without pip
<exarkun>
lordcirth_: sure! otoh, if you depend on an uncommon package then that doesn't solve your problem. ;)
<exarkun>
Ilya_G: On Nix Nix is your package manager and it does a much better job than pip does.
<lordcirth_>
Well, if it's trivial to make a Nix package for it, then you solve a problem for everyone.
<Ilya_G>
exarkun I am building our own custom software as a package for VM using NixOS
<exarkun>
I'm little the wiser with that answer
jgeerds has joined #nixos
<exarkun>
What kind of package are you building? Are you packaging something to run on NixOS?
drakonis has joined #nixos
<almostnobody>
infinisil: thanks, that's great
werner291 has joined #nixos
<ShaRose>
If I write a derivation to run a few commands as a package using pkgs.writeScriptBin, when will it execute? If I add it in a config module along with, say, docker, will it run before or after the docker service is started?
<Ilya_G>
exarkun: Yes. I am not sure what detail you were looking for.
<exarkun>
Ilya_G: Okay. If you're building it to run on NixOS, skip pip and use a combination of the nixpkgs-supplied Python libraries and your own Nix-based packaging of Python libraries that aren't in nixpkgs (the latter of which you can contribute to the former if you like).
<Ilya_G>
exarkun: We have a custom service that we would like to run on NixOS as the base. It is going to be deployed on prem on customer VMs and we wanted control over OS
<exarkun>
Seems like a good idea.
almostnobody has quit [Remote host closed the connection]
<exarkun>
Embrace NixOS and leave pip behind.
<werner291>
Greetings, I installed Nixos on what I thought was a separate partition, but I can't seem to be able to boot into Windows anymore. I'm in the grub 2 shell, and I can see my Windows files, but when I run "chainloader (hd0,gpt2)/Windows/boot/EFI/bootmgfw.efi" Grub spits out a cryptic "/EndEntire\nfile path...."
<werner291>
(I'm pretty sure it was actually a separate partition.)
zupo has joined #nixos
<werner291>
(Sisn't intend to ping shell there. If I did, my apologies.)
<ShaRose>
werner291 that doesn't seem like quite the correct path for the Windows efi bootloader: are you trying to boot it from the C:\Windows dir, or did you move the bootloader during your nix install?
<azazel>
ShaRose: you will have to add an entry into `systemd.services` entry of configuration.nix and have it run before the docker service unit
<Phillemann>
Dose anybody have Borderlands 2 installed via Steam? It doesn't start and I suppose it's some NixOS linker thingy, but I'm not sure.
<ShaRose>
I never thought of doing that: thanks azazel
zacts has quit [Quit: WeeChat 2.4]
<werner291>
AFAIK, I installed Nixos onto a completely spearate partition. One partition for /boot and one for the root, shouldn't have touched windows.
<azazel>
do a `man configuration.nix` and search systemd.services
<werner291>
*seperate
<Ilya_G>
exarkun: where would I even begin with that?
<werner291>
ShaRose: Which partition would that be?
Shoubit has quit [Ping timeout: 268 seconds]
<werner291>
I hve gparted in front of me.
<catern>
eraserhd: it would probably be good for the default kakoune package to be slightly easier to use than that - is it possible to include the system packages in the generated plugins.kak?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<exarkun>
Ilya_G: The *main* thing that buildPythonPackage does that is relevant here is that it will find all of the python library dependencies and supply then so that setup.py/distutils/setuptools/pip don't have to do anything to get them. They'll just notice the dependencies are already there and move on.
<ShaRose>
you should have a fat partition as the first partition, and it's probably flagged as your EFI partition
<werner291>
There's a "microsoft reserved partition" with unknown filesystem, "basic data partition" which contains Windows, my NixOS root partition, some empty space and the partition that holds /boot
<Ilya_G>
exarkun: also what actually triggers pip to be installed?
<ShaRose>
that's odd: did you do anything odd when installing windows?
<eraserhd>
catern: Perhaps we can add an option, but it looks like there could be a bunch of failure modes, including double-loading.
<ShaRose>
Normally it loves creating like 4 partitions
Shoubit has joined #nixos
<werner291>
Not that I know of. I did put /boot in a completely separate partition.
<exarkun>
Ilya_G: You can find out - `nix why-depends ...`, probably, will tell you.
<werner291>
And I'm booting NixOS from there.
<ShaRose>
yeah but windows should have had it's own '/boot' partition kind of
<werner291>
It's actually the last partition on my SSD.
<eraserhd>
catern: OK, if we disable system autoload, I think we could do that.
<werner291>
Oh?
<Ilya_G>
exarkun: would `...` bbe the name of my bbuild package?
<werner291>
This is Windows 10 btw.
<exarkun>
I think you have to give it two things, the names of the dependee and depender, I forget which order
<werner291>
/boot is my only bootable patition, I don't see Windows' EFI partition.
drakonis has quit [Read error: Connection reset by peer]
<exarkun>
my guess is that pip is pulled in by some basic part of the python support in nixpkgs, though
<exarkun>
Ilya_G: also if you paste your package expression somewhere someone might look at it and point out something crazy it's doing that causes the whole problem
<exarkun>
Ilya_G: but avoid pip for dependency resolution is still a better solution
<werner291>
Did I manage to delete Windows' EFI partition?
orbekk1 has joined #nixos
drakonis has joined #nixos
<ShaRose>
probably
<werner291>
That is wierd, I don't recall any actions that should have done that.
<ShaRose>
werner291 normally, windows has a recovery partition, your EFI partition, the MSR (It's probably really small, right?), then your windows NTFS
<werner291>
Don't see the recovery partition either.
<ShaRose>
werner291 you can probably recover it using a windows CD tbf
<werner291>
I'm considering just ditching Windows tbh, yeah. Would Windows perhaps have dunmped its' bootloader into that partition I created for /boot in NixOS?
<werner291>
And which then got deleted when I reinstalled NixOS?
drakonis_ has joined #nixos
<werner291>
Mostly running windows because I can't get my Ryzen 3400G to run under Nixos (yet)
drakonis has quit [Ping timeout: 245 seconds]
<ShaRose>
it's possible: not sure if nix would have just formatted it during install
<{^_^}>
[nixpkgs] @teto pushed commit from @nbardiuk to master « vimPlugins.LanguageClient-neovim: 0.1.146->0.1.154 »: https://git.io/Je39z
<werner291>
Would be my guess... Windows saw a bootable EFI partition and dumped its' stuff in there.
<werner291>
Which then got erased.
<ShaRose>
werner291 if you've got a windows 10 CD it isn't actually that hard a fix
drakonis has joined #nixos
<werner291>
Nope, I'm working with ISOs and USB drives, which you apparently can't burn onto the USB drive without Microsoft's tool (which only runs on windows, obviously)
<teto>
yep windows messes up with the bootloader, as mac os did, ended up getting rid of both. I had a dual boot ubuntu/nixos when starting nixos but now I have just nixos
<werner291>
I'd have to beg one of my Windows-usings friends to burn the ISO for me.
<ShaRose>
well, actually, rufus can do it just fine
<{^_^}>
[nix] @andir opened pull request #3099 → add support for queryPathFromFileHash → https://git.io/Je39H
<werner291>
They don't, I'm pretty sure now. I came into this channel believing Windows had a separate EFI partition somewhere, but it apparently tried to re-use the one I made for Nixos (and made Nixos inaccessible of course)
<symphorien>
when I run nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=iso.nix (source: https://nixos.wiki/wiki/Creating_a_NixOS_live_CD) I get error: attribute 'isoImage' in selection path 'config.system.build.isoImage' not found
<symphorien>
(on 19.09)
<symphorien>
does someone know the correct incantation ?
Ilya_G has quit [Ping timeout: 260 seconds]
<infinisil>
symphorien: Did you import the installation profile in iso.nix?
<symphorien>
I copied what is in the wiki with little modification
silver_hook has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
ivegotasthma has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
ldlework has quit [Quit: co'o ro do]
duckfullstop has quit [Quit: Why do you need...?]
bigvalen has joined #nixos
inkbottle has quit [Remote host closed the connection]
ivan has joined #nixos
kini has quit [Remote host closed the connection]
switchy has joined #nixos
duckfullstop has joined #nixos
ivegotasthma has joined #nixos
ldlework has joined #nixos
inkbottle has joined #nixos
ajp_ has quit [Quit: No Ping reply in 180 seconds.]
tpanum has joined #nixos
silver_hook has joined #nixos
ajp has joined #nixos
zzz has joined #nixos
mexisme has joined #nixos
Shoubit has quit [Ping timeout: 246 seconds]
chiefgoat has quit [Quit: ZNC 1.7.5-rc1 - https://znc.in]
<exarkun>
How do I escape a "@" in a string in a nixos test?
<davidtwco>
Are there any projects/ways to interpolate variables from Nix in other files? eg. instead of embedding my vim config in Nix and doing ${...} inside (losing my vim syntax highlighting), I'd keep that in another file but still be able to do ${...} interpolation of Nix variables in it?
chiefgoat has joined #nixos
mexisme has quit [Ping timeout: 240 seconds]
<exarkun>
builtins.readFile
<exarkun>
Oh hm
<exarkun>
dunno
kini has joined #nixos
<emily>
substituteAll
<emily>
not sure I'd call it a project so much as a function
kleisli has quit [Remote host closed the connection]
kleisli has joined #nixos
selfsymmetric-pa has joined #nixos
equivrel` has quit [Ping timeout: 276 seconds]
<{^_^}>
[nixpkgs] @NeQuissimus pushed to master « zfs: Incompatibility with kernel 5.3 »: https://git.io/Je3QR
whald has joined #nixos
kleisli has quit [Ping timeout: 240 seconds]
o1lo01ol_ has quit [Remote host closed the connection]
<lordcirth_>
It would be great if the NixOS ISO's came with .zsync files
jgt has joined #nixos
tokudan has joined #nixos
<manveru>
davidtwco: yeah, you can do that :)
<davidtwco>
Oops, didn't see the other answers until that ping. I wasn't sure if there was just a simple function or if it would be a separate project that is its own templating language or something like that.
<infinisil>
lordcirth_: What's that?
Shell has joined #nixos
zupo has quit [Ping timeout: 240 seconds]
lewo has quit [Remote host closed the connection]
<manveru>
davidtwco: as long as your file doesn't use "''", that is
<davidtwco>
manveru: what do you mean by "''"?
qyliss has joined #nixos
Phillemann has quit [Quit: WeeChat 2.5]
<manveru>
double single-quotes
<lordcirth_>
infinisil, zsync lets you download updated versions of isos (or other large blobs) by downloading a small zsync file, comparing to the previous iso on disk, and downloading only the diffs
<manveru>
i mean, it's possible, but harder...
civodul has joined #nixos
o1lo01ol1o has joined #nixos
<davidtwco>
Ah, I see. Most of the cases where I'd want this are triple single quote strings.
jgt has quit [Ping timeout: 264 seconds]
kleisli has joined #nixos
<infinisil>
lordcirth_: I see, not sure if it would help much, since any deep dependency will change all its dependents
nixnothing has quit [Ping timeout: 245 seconds]
<infinisil>
And that happens a lot (see staging branch)
<lordcirth_>
infinisil, maybe. But I know that on Ubuntu ISOs I get significant savings.
<manveru>
davidtwco: gimme a second, i can maybe make that work too
<infinisil>
Ubuntu doesn't have the deep dependency change propagation thing Nix does though
<infinisil>
But yeah maybe worth investigating whether it would help
<ShaRose>
I'm confused... what's the point of the win-virtio package?
<infinisil>
Oh but also, a zsync file is probably dependent on what the previous iso version was, and that wouldn't work very well with how Nix works either
<ShaRose>
It doesn't keep the iso, it doesn't link the files anywhere, I don't get it
<lordcirth_>
infinisil, no, it's only generated from the new files
nixnothing has joined #nixos
<lordcirth_>
It's basically just a list of chunk hashes
<infinisil>
Ah I see
rmeis has joined #nixos
<lordcirth_>
But the chunks are variable-sized depending on content, and thus by (insert black magic here) byte offsets don't break it.
<catern>
With the Nixpkgs Python tooling, and with setuptools in general, is it possible to make two different derivations from the same repo with different setup.py files? (which specify different python packages)
<eraserhd>
So, is it true that you can't make a derivation for a rust program without adding all dependent crates to crates-io.nix? Or is there some way around that?
<werner291>
And after the install, systemd-boot picked up Windows and NixOS immediately. Was kinda silly, seeing Windows under a list of 20 Nix generations.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<__red__>
There is a Linux distribution called Pentoo. (pentoo.ch - FOR THE LOVE OF EVERYTHING NSFW - DON'T GO TO .com)
<__red__>
that distribution is basically Gentoo + Overlay
werner291 has joined #nixos
<__red__>
their installer grabs portage, adds the overlay containing the additional packages, then builds "world" which contains all the applications that come by default with this OS.
Sellerie has joined #nixos
<clever>
__red__: at one time, nixos.com was nsfw, but the domain has since expired
<__red__>
excellent!
<__red__>
is there an equivalent mechanism inside of nixos?
<clever>
__red__: manifest.nix and systemPackages basically have the same role as world
<__red__>
like I said, it may end up being: nixpkgs + <someothernixpkgs> + <some package just containing all the apps as dependancies>
<duncan>
mgdm, Mic92, cc qyliss
<clever>
any time you run `nix-env -i` or `nix-env -e`, it will modify ~/.nix-profile/manifest.nix and update the profile
<clever>
`nix-env -q` will list its contents
<clever>
__red__: nixpkgs also supports overlays, which can change and add packages
<qyliss>
I reply over mail but still needed to make an account
<__red__>
is a system-wide overlay the correct way to do that?
<__red__>
or (since I just learned this is possible), would a second channel make more sense?
<clever>
__red__: overlays can be either system wide or per-user
<duncan>
hmm I actually live in Glasgow now :P
<duncan>
I was wanting to start an FP meetup there
<clever>
__red__: channels are also global and per-user, and you can add multiple channels if you want to use things from another channel
<duncan>
I even prepared a cute talk
<mgdm>
duncan: I know some folk who would be into that
<mgdm>
duncan: hell, I could maybe get a venue
<duncan>
I was going to venture down to the Electron Club to poke around.
<mgdm>
ah cool
<qyliss>
duncan: whoa since when
rouma has joined #nixos
<qyliss>
(do you live in glasgow?)
<duncan>
since... two weeks ago
<qyliss>
oh. congrats on the move then!
<duncan>
<3 thanks!
<mgdm>
congrats :-)
<duncan>
It is kind of strange that there is no such meetup, given GHC was originally written there afaiu
<duncan>
maybe these things just fizzle out
<__red__>
truth
<werner291>
So, I cherry-picked a commit (https://github.com/NixOS/nixpkgs/commit/75a60db00e85589791cbc7db676415fe4beca05a) onto release-19.03 in a local clone of nixpkgs and installed kernel 5.2, and my new GPU is now working! That leaves me with a question, though: how does that work with updates and stuff line system.autoUpgrade.channel?
<infinisil>
If you make a PR with that commit to the 19.03 branch and it gets merged, it'll be in the 19.03 channel eventually
<mgdm>
duncan: I think there have been previous attempts and they didn't stick
<infinisil>
werner291: ^
growpotkin has joined #nixos
<werner291>
^ which one?
<{^_^}>
[nixpkgs] @Infinisil pushed commit from @hyperfekt to release-19.03 « minecraft: 2015-07-24 -> 2.1.5965 »: https://git.io/Je35j
<__red__>
also clever - that insight regarding manifest.nix helped a lot of other things fall into place
<__red__>
thank you.
o1lo01ol1o has joined #nixos
<__red__>
(I really need to document each of these epiphanies as they are revealed to me as they may help other people who have travelled to nixos via a similar path to I)
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
acarrico has joined #nixos
growpotkin has quit [Ping timeout: 240 seconds]
<mgdm>
anyone ever have a build blow up with 'undefined reference to strlcpy' when doing some feature detection?
knupfer has quit [Read error: Connection reset by peer]
werner291 has quit [Remote host closed the connection]
fresheyeball has joined #nixos
<fresheyeball>
I need to give chrome a folder inside a nix-build
<fresheyeball>
can I make a tmp folder?
<fresheyeball>
if I just make one the path ends up being /build/myfolder
<fresheyeball>
which is not right
<infinisil>
"give"?
__monty__ has joined #nixos
<fresheyeball>
infinisil: it needs a directory to work with, usually in $HOME
<fresheyeball>
I can pass an absolute path
<ShaRose>
anyone have any ideas how I can add the system path to systemd.services.<name>.path? I'm trying to call zfs, which is located in /nix/store/rlxdlqfmk0p7s22zfqsshyhd12i2n85w-system-path/bin/zfs
jtojnar has quit [Remote host closed the connection]
<werner291>
I mean... I can literally just run the "xinput set-button-map 11 1 3 2" command in a terminal and it'll work, just trying to do it the "NixOS" way. But I'll have a look at those options.
jtojnar has joined #nixos
<infinisil>
werner291: Okay I think you can do what you need with `services.xserver.inputClassSections`, see `man evdev` for the ButtonMapping option
<werner291>
Will do
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 240 seconds]
rouma has quit [Remote host closed the connection]
jtojnar_ has joined #nixos
jtojnar has quit [Ping timeout: 245 seconds]
jtojnar_ is now known as jtojnar
justanotheruser has quit [Ping timeout: 265 seconds]
endformationage has quit [Quit: WeeChat 2.5]
werner291 has quit [Remote host closed the connection]
<gchristensen>
emily: maybe we could help ZoL do more regular releases (like a 0.8.1.1) somehow (though admitedly I don't know what goes in to releasing ZFS...)
tokudan has joined #nixos
erictapen has quit [Ping timeout: 265 seconds]
swerlk has quit [Remote host closed the connection]