<energizer>
chipb: that's probably what i should do
orivej has quit [Ping timeout: 246 seconds]
<energizer>
"On my laptop, it takes about 1.5 hours to complete" not bad
orivej has joined #nixos
<infinisil>
energizer: I guess it's gonna be a lot worse if you need software with hundreds of dependencies
<chipb>
well, for context, I think he means the compile of the minimal bootstrap.
<energizer>
i need scipy
<chipb>
on the bright side, if you're working somewhere that meters/charges your storage quota, you probably have some level of compute farm available...
<energizer>
indeed
<chipb>
scipy might not be so bad, but I'm unfamiliar with its dependencies.
<infinisil>
The full list that I linked is almost 600 entries long
<chipb>
meh. just let it crank overnight.
<chipb>
if you want to get fancy, you might consider dividing it up and parallel submitting it across hosts. I think there might be a patch you need to safely do multi-host store database updates on NFS.
<infinisil>
If it's only a one-time thing that might be fine
<infinisil>
But like, anything extra you want to do with Nix is just gonna be so much slower
<infinisil>
Like, updating packages will mean recompiling everything. Adding a package means compiling a whole lot more
<infinisil>
So I'd really only use this as a last-ditch effort
<infinisil>
Just having a `/nix -> /home/energizer/nix` bind mount would be *so* much easier
<chipb>
assuming you can work it out with your admins. yep.
<infinisil>
Yea
<chipb>
I suspect it might not be the case if Cent6 is the environment they're stuck on. D-:
xd1le has quit [Ping timeout: 260 seconds]
<energizer>
we'll see
xd1le has joined #nixos
superherointj has quit [Quit: Leaving]
kreyren has quit [Remote host closed the connection]
<chipb>
if I were to do it again, I would probably see about at least stabilizing stdenv so I didn't have to rebuild the world on a "directly-used"f package update.
kreyren has joined #nixos
<chipb>
fortunately, I'm soon to be off C6 and onto SLES12 which has unprivileged userns available.
matthewcroughan has quit [Quit: Connection closed]
matthewcroughan3 has quit [Client Quit]
matthewcroughan has joined #nixos
matthewcroughan5 has joined #nixos
h0m1 has joined #nixos
griff_ has quit [Ping timeout: 265 seconds]
matthewcroughan5 has quit [Client Quit]
griff_ has joined #nixos
matthuszagh has joined #nixos
<matthuszagh>
is it possible to use unfree packages with nix flakes? I'm currently getting an error to this, but am not sure how to signal unfree = true; in the context of flakes
<matthuszagh>
The unfree package also requires a nix-prefetch-url call, which I've already done
quinn has joined #nixos
tsrt^ has quit []
proofofkeags has joined #nixos
nehsou^ has joined #nixos
ManiacOfMadness has joined #nixos
sigmundv has quit [Ping timeout: 265 seconds]
kreisys has joined #nixos
<kreisys>
I can't for the life of me figure out how to make flakes add `submodules = true;` to the `self` input :|
proofofkeags has quit [Ping timeout: 240 seconds]
fatjedi[m] has joined #nixos
<daddy_james[m]>
Is there a package for ffplay?
<ben>
I think it just comes with ffmpeg?
<infinisil>
,locate bin ffplay
<{^_^}>
Found in packages: ffmpeg-full
multun has quit [Ping timeout: 240 seconds]
lewo has quit [Remote host closed the connection]
multun has joined #nixos
lewo has joined #nixos
<dxb[m]>
is it possible to cross compile docker images for arm? i tried crossTools or whatever but it still puts amd64 binaries in the container
<daddy_james[m]>
I can’t use ffmpeg-full since it’s broken on 32-bit :(
<daddy_james[m]>
Guess I’ll just have to use vlc
evax has joined #nixos
<matthewcroughan>
Is colemickens around?
matthewcroughan has quit [Quit: Connection closed]
matthewcroughan has joined #nixos
vikingman has joined #nixos
<matthewcroughan>
dxb[m] I'd also like an answer to the docker cross compile stuff
<vikingman>
hi i got a problem i try to get display output on a secondary gpu
griff_ has quit [Ping timeout: 260 seconds]
<dxb[m]>
, help
<{^_^}>
Invalid command syntax
<dxb[m]>
,help
<{^_^}>
Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<dxb[m]>
,
<{^_^}>
Special commands: find tell locate expand inclusive-language random-pr - Commands sorted by use count, page 0 (use ,<n> to view page <n>): help libraries unstable tofu paste escape'' escape" ping -a library channels overlay ifd pinning unfree profiling ask botsnack which-channel xml pr tofu-vim xy fancy-uninstall imperative wololo nixlang++ cache pointers pills invite runtimedeps home-manager stateversion thesis exec matrixbridge smart-questions
rajivr has joined #nixos
griff_ has joined #nixos
fatjedi[m] has left #nixos ["User left"]
proofofkeags has joined #nixos
drakonis has quit [Quit: WeeChat 2.8]
fatjedi[m] has joined #nixos
lunaa has joined #nixos
<bqv>
,locate xvfb
iqubic has joined #nixos
<{^_^}>
Found in packages: xvfb_run, python27Packages.xvfbwrapper, python37Packages.xvfbwrapper, python38Packages.xvfbwrapper, python27Packages.virtual-display, python37Packages.pytest-services, python37Packages.virtual-display, python38Packages.pytest-services, python38Packages.virtual-display, python27Packages.pytest-server-fixtures, python37Packages.pytest-server-fixtures, python38Packages.pytest-server-fixtures
<bqv>
,locate bin xvfb
<{^_^}>
Found in packages: xvfb_run
<lunaa>
I recieved a security advisory for Glibc 2.32 today, since it is being exploited in the wild. Anyone know if there is an update coming for it?
<lunaa>
I can start trying to set it up, I just want to know if anyone is aware of anything... more difficult about updating.
proofofkeags has quit [Ping timeout: 240 seconds]
drakonis has joined #nixos
<matthewcroughan>
colemickens your whole project seems to be failing with meson requiring >=0.54.0?
<lunaa>
No, I said before 2.32... because the CVE is for 2.32.
<tpw_rules>
you said for 2.32
<lunaa>
Oh, I guess I missed the word "and before"?
<tpw_rules>
irregardlessly i'm curious about reports of it being exploited in the wild. it doesn't seem all that exploitable
<tpw_rules>
especially because many programs don't use long doubles afaik
<lunaa>
*just checked* Nope, you are right. I've been reading things wrong, today. No reports of exploit in the wild.
<lunaa>
sorry about that.
pr06lefs has joined #nixos
emmanuel_erc has joined #nixos
terribleArtist has joined #nixos
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
aw has joined #nixos
<terribleArtist>
howdy, im having trouble disabling lightdm, its telling me i have a confligh with disabling it, in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/services/x11/xserver.nix', but im not sure how to go about resolving that conflict, any ideas?
spacefrogg has joined #nixos
gv has quit [Remote host closed the connection]
<terribleArtist>
i cant run a rebuild with it enabled because its failing to build python2.7 for some reason
pjt_tmp has joined #nixos
maier has joined #nixos
<terribleArtist>
actually it might not be lightdm not sure why i thught it was that, heres a pastebin: https://pastebin.com/KNAiugV5
gv has joined #nixos
waleee-cl has quit [Quit: Connection closed for inactivity]
<matthewcroughan>
I don't know what channels or overlays are. But it must be simple, right?
<clever>
matthewcroughan: the example usage tells you exactly what to add to configuration.nix
<matthewcroughan>
Indeed, but this is not all I need to do.
Hrq[m] has joined #nixos
<matthewcroughan>
Since stuff is build against nixos-unstable, I guess this is why I'm getting the output of failed builds since my MESON is 0.52.0 and 0.54.0 is required.
<matthewcroughan>
This is just my judgement, I don't know if that's actually true, maybe you can tell me if it is :P
<matthewcroughan>
I indeed have a file `wayland.nix` and `configuration.nix`. And `configuration.nix` imports `./wayland.nix`. But I think I have to use an overlay? Whatever that is?
Hrq[m] has left #nixos ["User left"]
orivej has joined #nixos
<matthewcroughan>
meson.build:1:0: ERROR: Meson version is 0.52.1 but project requires >=0.54.0
justanotheruser has quit [Ping timeout: 272 seconds]
Supersonic has quit [Ping timeout: 272 seconds]
Supersonic112 is now known as Supersonic
<{^_^}>
[nixpkgs] @marsam opened pull request #94695 → postgresqlPackages.smlar: init at 2020-04-08 → https://git.io/JJKSb
<matthewcroughan>
clever sorry to ping you, did you read what I said or are you busy? :D
<clever>
bit busy with other things
<matthewcroughan>
Ya, I shouldn't be doing this either, I'm wasting time when I should be doing something else haha
<matthewcroughan>
But nix is so addictive
<sasyctu[m]>
Not sure how much I agree with that. I really like nix conceptually but every time I just want to do some graphics programming nix is sitting in the way preventing me from linking to X11, lol
<dxb[m]>
matthewcroughan have you tried using unstable instead?
<matthewcroughan>
How do I switch?
<matthewcroughan>
So is that a channel that you're asking me to switch to? Is that the right terminology?
<dxb[m]>
yes
proofofkeags has joined #nixos
<terribleArtist>
has anyone had a look at my urwid issue? its preventing me from running rebuild
<matthewcroughan>
dxb[m] Is there no way I can do this without updating my whole system to unstable?
<matthewcroughan>
When you say "Have you tried using unstable?" I don't really know what you're talking about, since I lack the context.
<matthewcroughan>
clever does the issue up top on the note still apply?
<clever>
matthewcroughan: the faq link says how to get just mesa from unstable, but get the rest from your stable channel
<matthewcroughan>
the issue is closed but I see no commentary to suggest it's not an issue
kalbasit has quit [Ping timeout: 264 seconds]
<matthewcroughan>
Also, I was wanting to write some stuff for the Nix Wiki, how do I go about getting involved in that?
<matthewcroughan>
Is it like the Arch Wiki? Or do I need to go through official routes?
<clever>
not sure, it has had problems with spam in the past
<dxb[m]>
that issue is closed with a fix being merged back in feb… i doubt it's still an issue
<matthewcroughan>
I also don't see any accreditation anywhere, how doe accreditation for writing work?
jybs has joined #nixos
<terribleArtist>
am i able to see which packages in my store rely on a certain package?
<clever>
terribleArtist: nix-store -qR
<clever>
terribleArtist: and nix why-depends
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
<terribleArtist>
oh, i cant run nix why-depends on the package im having an issue with because it tries to build it and hits the same error im hitting on a system rebuild :(
griff_ has quit [Quit: griff_]
<clever>
terribleArtist: and also `nix-store -q --tree`
<terribleArtist>
ahh i cant figure out how these are working, they say they cant find nixpkgs.python27Packages.urwid
<clever>
terribleArtist: run `nix-store -q --tree` on the final .drv for nixos, it should be near the bottom of what `nixos-rebuild dry-run` wants to build
proofofkeags has quit [Ping timeout: 240 seconds]
lunaa has quit [Ping timeout: 265 seconds]
griff_ has joined #nixos
<terribleArtist>
hmm ok, so its a problem with wicd building
xd1le has quit [Ping timeout: 260 seconds]
<terribleArtist>
is there a way i can use override to disable the testing phase in the wicd derivation?
<matthuszagh>
im attempting to build a custom python package in a flake and i keep getting a setuptools import error even though I've specified setuptools as a build input
<matthuszagh>
i can't figure it out. a build expression with the same exact version of nixpkgs works outside of flakes
<terribleArtist>
override it to what clever?
<clever>
terribleArtist: use .overrideAttrs to set doCheck = false;, examples are in the manual
<terribleArtist>
im still getting errors, seems like more than just wicd relies on urwid
<terribleArtist>
do i have to find every package that relies on it and override it? im not sure i can run this at the moment
orivej has quit [Quit: No Ping reply in 180 seconds.]
<matthuszagh>
i saw some note in nixpkgs saying setuptoolsbuildphase needs to get deps via nativebuildinputs, but i've tried this too and it has no effect
moet has joined #nixos
justanotheruser has joined #nixos
orivej_ has joined #nixos
orivej has quit [Read error: Connection reset by peer]
kalbasit has joined #nixos
terribleArtist has quit [Ping timeout: 260 seconds]
stephaneyfx_ has joined #nixos
stephaneyfx has quit [Read error: Connection reset by peer]
cript0nauta has joined #nixos
HumanJohn[m] has joined #nixos
simba1 has joined #nixos
Shock86 has joined #nixos
Shock86 has left #nixos [#nixos]
Rusty1 has quit [Quit: WeeChat 2.3]
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
<matthewcroughan>
so when I do `nix-channel --add` is it really overwriting? What file is this writing to?
<matthewcroughan>
This is like sysctl or something in freebsd right? It's just convenience?
<clever>
it writes to ~/.nix-channels
<clever>
the change doesnt take effect until you run `nix-channel --update` as the same user
<matthewcroughan>
I'm not using home manager, so what significance does ~ have ?
<clever>
but `nixos-rebuild --upgrade` will run `nix-channel --update` for you
<matthewcroughan>
I'm actually quite worried about not using home-manager, since things talk about it a lot
<matthewcroughan>
Additionally, I'm worried about when I should and should not be using ~
<clever>
because you used sudo, it will be root's home, so /root/.nix-channels
<matthewcroughan>
for example, /etc/nixos/dotfiles
<matthewcroughan>
I'm not used to using it, and programs are still putting their crap in ~./config,
moet has quit [Quit: leaving]
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #nixos
simba1 has quit [Ping timeout: 260 seconds]
<matthewcroughan>
clever everything has worked in the rebuild, but I can't see any of the apps on my path, what gives?
<matthewcroughan>
I'm using the exact example usage from the nixpkgs-wayland repo
<clever>
matthewcroughan: the example only adds a vnc thing to the systemPackages
<matthewcroughan>
yeah but that's not even available on my path
<clever>
the binary name may not match the package name
<matthewcroughan>
Oh, I changed it to obs-wlrobs
<matthewcroughan>
how can I search? :V
<clever>
v<tab><tab> and s<tab><tab>
<pjt_014[m]>
hi! I'm looking to make a custom install iso (done it before), but I don't like not remembering what custom things I've put in the package list, or being unable to remove them at a later date post-install. Is there any good workaround for that concern?
<matthewcroughan>
No, I mean for package name vs binary name
<matthewcroughan>
e.g on arch I can `pacman -Ql packagename` to list all the files on disk related to the package
<clever>
matthewcroughan: nix-env can search, but only if its loading the overlay, which requires doing something in ~/.local/nixpkgs/overlays i think
<clever>
matthewcroughan: if you build it with nix-build, you can then look at every file it provides
<clever>
the logs from nixos-rebuild will also show the paths it made
<pjt_014[m]>
Like would altering the default config file be reasonable/possible?
<dxb[m]>
matthewcroughan i think you'd have an easier time making sense of this stuff if you read those 2 links i sent yesterday. the blog one about terminology, and the manual entry that describes the types in the expression language
<clever>
hardware-configuration.nix usually shouldnt be edited
<matthewcroughan>
I still have those bookmarked, but I want to actually use this laptop for something later today, so I want to get a simple video conferencing setup going :D
<matthewcroughan>
which just means docker and chromium with working video sharing, then I can dig in.
<matthewcroughan>
(on wayland) haha
<matthewcroughan>
I do still have those bookmarked, don't worry, I'm not going to neglect them.
<matthewcroughan>
what is this "config = {" stuff?
<matthewcroughan>
I don't get it. That's not included anywhere.
nixuser has joined #nixos
<matthewcroughan>
instead, I have { config, pkgs, ... }: right at the top of my config, but this wiki page is telling me to do `config = {` and define a set?
<clever>
matthewcroughan: all nixos modules have 3 top level keys, options, config, and imports
<clever>
matthewcroughan: if both options and config are missing, it will automatically wrap your entire module with config = { ... }; for you
mariatsji has joined #nixos
<matthewcroughan>
clever so if I'm going to shove this into my configuration.nix, I have no idea about the syntax, can you show me?
<clever>
matthewcroughan: remove the config={ and matching };
<matthewcroughan>
error: syntax error, unexpected ';', expecting $end, at /etc/nixos/configuration.nix:67:4
<dxb[m]>
<matthewcroughan "Did I do it right?"> imo the best way to answer this is to run it… there's no risk. if you fuck up, it won't run. if it does and you manage to fuck up your system, just roll it back or boot into the previous generation
<clever>
line 67 is missing from the gist, cant say whats wrong
<matthewcroughan>
ya sec
<matthewcroughan>
updated it clever
<clever>
matthewcroughan: and also edit the name, so it ends in .nix, then github will syntax highlight
<matthewcroughan>
done
<clever>
matthewcroughan: line 67 should just be a }
<clever>
67's } matches up to 7's { and that {} pair shouldnt have a ;
<clever>
the ; only occurs when you have a key = value; pair
<matthewcroughan>
So the wiki is wrong?
<matthewcroughan>
Will edit if true
<clever>
but 7-67 is just a value
domogled has joined #nixos
<clever>
the }; is part of the config = {
<matthewcroughan>
ah
<clever>
2020-08-05 03:12:17 < clever> the }; that is at the same indent level
<clever>
thats the }; you should have removed
<clever>
and there was another } that was there to begin with, that should have been left alone
<matthewcroughan>
I see now, but it's hard to talk about this with English.
<clever>
the intending is also wrong, making it more confusing to read
<matthewcroughan>
Only you could see it, until now when the evaluator has told me.
<matthewcroughan>
And with your persistent help :P
<matthewcroughan>
clever lol, looks like Chromium core dumped haha
<matthewcroughan>
mega dump
kalbasit has quit [Ping timeout: 240 seconds]
varun_ has joined #nixos
<varun_>
hi
<matthewcroughan>
clever everything that wants to use iris core dumps :(
<matthewcroughan>
literally everything, including sway :(
<varun_>
meaning?
<matthewcroughan>
clever what does the intel graphics wiki page mean when it says "Note that you might want additional entries in extraPackages, for example, to enable "accelerated video playback". "
<clever>
matthewcroughan: if you want hw accelerated video decode, add something extra
<clever>
but if you dont want hw decode, dont do anything
<matthewcroughan>
I do, but I can't even launch programs anymore, so I have bigger problems.
<matthewcroughan>
do you think I can't launch programs because of a lack of extraPackages?
orivej has joined #nixos
<clever>
unlikely
<matthewcroughan>
Everything core dumps. Every single thing.
<matthewcroughan>
error 4 in iris_dri.so
<clever>
why do you want to use wayland?
<matthewcroughan>
sorry, segfault
<matthewcroughan>
I want to use Wayland because I want to live in the now.
<matthewcroughan>
If I used Arch, this would be simple.
<matthewcroughan>
The better question is "Why do you want to use Wayland on NixOS". And the answer is because packaging seems better.
<matthewcroughan>
nixpkgs-wayland is lovely, but I can't get graphics working, this is a separate issue surely?
<clever>
ive not tried wayland out yet, and ive heard that its still heavily experimental
<matthewcroughan>
No. Not at all. You have heard wrong.
<matthewcroughan>
It is absolutely stable. Maybe it's newer GPUs that are problematic.
<clever>
i also rely on too many X11 only apps, like obs-studio
<matthewcroughan>
I have had Wayland running just fine with all the bells and whistles on hardware from 2006 on Alpine, Arch and more.
<matthewcroughan>
obs-studio isn't x11 only.
<clever>
and monitor capture in chromium
<matthewcroughan>
also not x11 only, which is what I'm finding out now.
<clever>
last i heard, wayland can only do window capture, not monitor capture
<matthewcroughan>
I know there was some weirdness around pipewire versions (many unpatched browsers require the 0.2 libs and xdpw needs 0.3, which is fine if you can get both at once).
<matthewcroughan>
that's a quote from danshick in #sway
<Emantor>
Wayland can do monitor capture, at least sway with xdg-desktop-portal-wlr. AFAIR there were still some issues related to dma-buf modifiers…
<idontgetoutmuch[>
I have a package in which the Makefile does not have a `install` target so I get `make: *** No rule to make target 'install'. Stop.`. It actually creates executables in the current directory. Do I use `preInstall` or `postInstall`? Are there any examples someone can point to?
<matthewcroughan>
I don't know what you put after the -l
<matthewcroughan>
I don't know what path you're talking about, or what path I should be using in place of your example
<matthewcroughan>
I don't know what repo you're talking about
<clever>
idontgetoutmuch[: you probably just want `installPhase = ''.....`
<Emantor>
You'll need to clone the nixpkgs git repository from github and than provide the path.
<Emantor>
btw thats a capital i.
<matthewcroughan>
I have to get up in 6 hrs, I gotta get some sleep, I can't do it now, will get back to you later.
<Emantor>
gn8 than :-)
<matthewcroughan>
unless you can give me an exact command to run whilst I'm asleep
<matthewcroughan>
I just have no clue what your nixpkgs= means
<matthewcroughan>
Man, cloning that git is rough hahaha
sangoma has joined #nixos
stephaneyfx_ has quit [Quit: Leaving]
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
alexherbo2 has joined #nixos
alexherbo2_ has joined #nixos
<{^_^}>
[nixpkgs] @danieldk opened pull request #94702 → python3Packages.transformers: enable on all Unix platforms → https://git.io/JJ6vw
simonpe^^ has joined #nixos
<simonpe^^>
I'm trying to set up a nix channel to bitbucket by running `nix-channel --add https://...../archive?format=tar.gz mychannel` but looking at the source code for nix-channel it pattern matches agains `.tar.gz$` (note the leading dot), and since it doesn't match it automatically adds `/nixexprs.tar.xz` to the url.
<simonpe^^>
Adding a nix-channel from github works, and a lot of us are stuck with company bitbucket servers so IMO this should be supported out of the box by nix-channel
<clever>
simonpe^^: &dummyField=anything.tar.gz
<simonpe^^>
clever: you truly are clever
<simonpe^^>
I didn't think of that
<simonpe^^>
clever: The path name 'archive?format=tar.gz&dummy=.tar.gz' is invalid: the '&' character is invalid. Path names are alphanumeric and can include the symbols +-._?= and must not begin with a period. Note: If 'archive?format=tar.gz&dummy=.tar.gz' is a source file and you cannot rename it on disk, builtins.path { name = ... } can be used to give it an alternative name.
bahamas has joined #nixos
<clever>
not much you can do, other then host a nixexprs.tar.gz on plain http(s) elsewhere
itshaydendev has joined #nixos
<simonpe^^>
It's really not an option, the devops isn't strong with this customer lol. I was thinking of possibly patching and wrapping nix-channel somehow
varun_ has left #nixos ["Leaving"]
<simonpe^^>
They have a windows share to store files, that's it
<clever>
simonpe^^: nix-env will recursively search ~/.nix-defexpr/ until it either finds a foo.nix or a foo/default.nix, then create a foo in a special set, nix-env -iA foo.hello then refers to that set
<clever>
simonpe^^: but as in my example, the foo/default.nix doesnt have to actually be nixpkgs/default.nix, it can be an expr, that imports it, via any means you have
<clever>
the `test` part of the dir is basically ignored, but lets you namespace things some, root manages channels_root, you manage channels, test is ignored by nix-channel (unmanaged)
kenshinCH has joined #nixos
<simonpe^^>
oh I see
<simonpe^^>
but they will also need to be able to do nix-channel --update
<clever>
nope
<clever>
nix-env just reads ~/.nix-defexpr/ every time you run it
<idontgetoutmuch[>
clever: With my simple minded `installPhase = '' mkdir -p "$out"/bin cp heterogeneity $out/heterogeneity '';` I get `builder for '/nix/store/546cd7lk1drkzj7gnz42g0ay92fbvlmx-shell.drv' failed to produce output path '/nix/store/yacn701xs4gd67cm6jihnna3mwbsapx0-shell'`
<clever>
and `nix-channel --update` is what modifies ~/.nix-defexpr/channels_root/nixpkgs
<clever>
but if you edit ~/.nix-defexpr/ yourself, it takes effect immediate
<clever>
ly
<clever>
idontgetoutmuch[: does your derivation name name = "shell"; ?
<simonpe^^>
oh so you mean I could just write a custom update script that manages a git repo under ~/.nix-defexpr/whatever/repo
<clever>
simonpe^^: you could just do: import (builtins.fetchTarball "https://...../archive?format=tar.gz")
<clever>
simonpe^^: and then it will just fetch it dynamically, every time it evals
<simonpe^^>
oh shit that is true
<simonpe^^>
fantastic
<simonpe^^>
thanks man, I'll try it out right away
<{^_^}>
[nixpkgs] @ckauhaus opened pull request #94703 → python: Apply patch for CVE-2019-20907 → https://git.io/JJ6fl
<simonpe^^>
I would like to fix the root issue in nix-channel though as I'd like to contribute :)
<clever>
idontgetoutmuch[: nix-build and -p arent valid together
<clever>
-p is only valid on nix-shell
<clever>
idontgetoutmuch[: you want just `nix-build -I nixpkgs=~/nixpkgs`
polezaivsani has joined #nixos
sigmundv has joined #nixos
lsix has joined #nixos
FRidh has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
griff_ has quit [Quit: griff_]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
lambda-11235 has quit [Ping timeout: 265 seconds]
__monty__ has joined #nixos
<matthewcroughan>
Emantor clever no, latest nixpkgs didn't solve the issue, wonder what this means.
<simonpe^^>
clever: Ive set it up with a file $HOME/.nix-defexpr/unmanaged/rco/default.nix like you said, and I run `nix-env --show-trace --verbose -iA rco.uuu`. The downloded set has a uuu derivation but I'm getting `error: attribute 'uuu' in selection path 'rco.uuu' not found`. I'm not sure how to browse these selection paths or generally how to troubleshoot.
<simonpe^^>
Sorry for the noob questions, I'm still learning
<clever>
simonpe^^: what are the contents for rco/default.nix?
<simonpe^^>
I can see in the trace output that my "channel" is being downloaded properly
<{^_^}>
[nixpkgs] @yoctocell opened pull request #94705 → <!-- To help with the large amounts of pull requests, we would appreciate your reviews of other pull requests, especiall… → https://git.io/JJ6k4
<ckauhaus>
Hydra is in fact a Perl monster... thanks for the pointer
<ckauhaus>
I think I'll try to travel both roads for a while and see which one is better
<dminuoso>
ckauhaus: Let me know what your findings are.
<ckauhaus>
sure
ehmry has joined #nixos
knupfer1 has joined #nixos
bahamas has quit [Ping timeout: 256 seconds]
<simonpe^^>
clever: ut works now, builtins.fetchTarball seems to modify whatever it downloads and I was too stupid to realize
whald has joined #nixos
<clever>
simonpe^^: it should just unpack the tar to a dir, but it may require that the tar contain a subdir, like foo/everythingelse
cjpbirkbeck has quit [Quit: Goodbye, take care]
knupfer has quit [Ping timeout: 246 seconds]
knupfer1 is now known as knupfer
<simonpe^^>
yeah, thats what it did. It just merged all the subdirs I had so I had to but everything under a common subdir
<simonpe^^>
like 'nixpkgs/default.nix ...'
<clever>
ah
<clever>
github always generates a dir like that, named after the repo
<simonpe^^>
yeah, bitbucket does not :P
ericsagnes has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 240 seconds]
ericsagnes has joined #nixos
knupfer1 has joined #nixos
orivej has joined #nixos
pjt_tmp has quit [Ping timeout: 240 seconds]
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
<whald>
hi! i'm currently writing a derivation for a cmake project. problem is that this app likes to write to /var/... (server-like software). on the cmake side, GNUInstallDirs and CMAKE_INSTALL_LOCALSTATEDIR are used so i think this is pretty much like it should be. but as it stands, the cmake magic in Nix makes the localstatedir end up in the store, which does not work. what's the preferred way to deal with this?
thc202 has joined #nixos
<simonpe^^>
clever: one more question about this, would it be possible to install this "unmanaged" channel globally somehow?
<clever>
simonpe^^: use something in the global bashrc to mess with ~/.nix-defexpr/
knupfer1 has joined #nixos
<clever>
simonpe^^: thats basically how ~/.nix-defexpr/channels_root gets there
<simonpe^^>
ok I'll just grep for channels_root and figure it out, thx
<clever>
its in the nix source, but gets ran by something in nixpkgs/nixos]
<whald>
Mic92, currently i added cmakeFlags = "-DCMAKE_INSTALL_LOCALSTATEDIR=/var"; to the derivation which seems to do the trick. but it feels a bit hacky, shouldn't this be the default?
<Mic92>
whald: I think so. I have not see this variable in the wild yet
knupfer has quit [Ping timeout: 240 seconds]
knupfer1 is now known as knupfer
talvdav has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @domenkozar pushed 2 commits to haskell-updates: https://git.io/JJ6Lf
knupfer1 has joined #nixos
freeman42x[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
HeN has joined #nixos
yoctocell[m] has quit [Quit: Idle for 30+ days]
GerdFlaig[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
knupfer has quit [Ping timeout: 265 seconds]
knupfer1 is now known as knupfer
alp has joined #nixos
zupo has joined #nixos
knupfer1 has joined #nixos
knupfer has quit [Ping timeout: 240 seconds]
knupfer1 is now known as knupfer
bahamas has joined #nixos
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #nixos
griff_ has quit [Quit: griff_]
waleee-cl has joined #nixos
knupfer1 has joined #nixos
bahamas has quit [Ping timeout: 240 seconds]
<graf_blutwurst>
location correctly but i can't figure out how to start it myself in non daemon mode
<graf_blutwurst>
Good morning. Quick question, is there a good way of setting up services within a nix-shell only? I'm working on a webservice and would like to have proxy support. So I'd like to have squid setup within my project only. I added the package but squid refuses to start because it can't access the pid file that it looks for within the actual store which is read only. the service config in the package takes care of setting the PIDFile
knupfer has quit [Ping timeout: 240 seconds]
knupfer1 is now known as knupfer
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knupfer1 has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
alexherbo24 has joined #nixos
<graf_blutwurst>
ah nvm i think its a config issue that without certain configs it defaults to relative paths to the binary which ends up being in the store
<{^_^}>
[nixpkgs] @NeQuissimus pushed 4 commits to release-20.03: https://git.io/JJ6CQ
<varun_>
hi
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<eyJhb>
The hell
<varun_>
<varun_>
orivej has quit [Ping timeout: 264 seconds]
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
wnklmnn has quit [Read error: Connection reset by peer]
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
orivej has joined #nixos
<varun_>
<varun_>
<eyJhb>
srhb adisbladis gchristensen ?
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
<varun_>
varun_ was banned on #nixos by srhb [*!~varun@45.112.13.223]
varun_ was kicked from #nixos by srhb [varun_]
<adisbladis>
eyJhb: I don't have op :/
wnklmnn has joined #nixos
<eyJhb>
adisbladis: I thought you were cool.
<eyJhb>
Thanks srhb :D
<adisbladis>
Oi
<adisbladis>
srhb: I think we need to ban eyJhb too
<srhb>
np. i'll fix the mask later
<srhb>
adisbladis: :P
<eyJhb>
srhb basically just got granted super powers. *activate!* :p
<eyJhb>
adisbladis: no no no , I have been banned from numerous places before :|
litschi has quit [Ping timeout: 256 seconds]
alp has quit [Ping timeout: 264 seconds]
litschi has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
orivej_ has joined #nixos
sigmundv has quit [Read error: Connection reset by peer]
<itshaydendev>
Hey
sigmundv has joined #nixos
<Izorkin>
,locate libcrypto.so
<{^_^}>
Found in packages: openssl, libressl, robomongo, scilab-bin, libressl_2_9, openssl-chacha
<itshaydendev>
Whoa! That's cool!
<itshaydendev>
What other commands are there? Or it it just ,locate?
<infinisil>
,
<{^_^}>
Special commands: find tell locate expand inclusive-language random-pr - Commands sorted by use count, page 0 (use ,<n> to view page <n>): help unstable libraries tofu paste escape'' escape" ping -a library channels overlay ifd pinning unfree profiling ask botsnack which-channel xml pr tofu-vim xy fancy-uninstall imperative wololo nixlang++ cache pointers pills invite runtimedeps home-manager stateversion thesis exec matrixbridge smart-questions
Rusty1 has joined #nixos
<itshaydendev>
,botsnack
<{^_^}>
Oh thanks, have a cookie yourself
<itshaydendev>
Lmao
<infinisil>
There are a couple special ones like ,locate, all the others are just key-value put/get
<infinisil>
,help
<{^_^}>
Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
lawr3nce has quit [Remote host closed the connection]
orivej_ has quit [Ping timeout: 256 seconds]
kimberly`` has joined #nixos
kimberly`` has quit [Max SendQ exceeded]
orivej has joined #nixos
rawtaz has joined #nixos
Izorkin has quit [Ping timeout: 240 seconds]
kimberly`` has joined #nixos
kimberly`` has quit [Max SendQ exceeded]
Izorkin has joined #nixos
prescilla22 has joined #nixos
prescilla22 has quit [Max SendQ exceeded]
prescilla22 has joined #nixos
prescilla22 has quit [Max SendQ exceeded]
Snektron has joined #nixos
<Snektron>
Hello. I have 2 nixos boxes, and i'm trying to make one forward ipv4 traffic over some port to the other (for which i can only route traffic to it over ipv6)
urkk has left #nixos [#nixos]
zupo has joined #nixos
<Snektron>
If i understand correctly, i should be able to use something like network.interfaces.<name>.<protocol>.routes, by specifying 'via'
prescilla22 has joined #nixos
prescilla22 has quit [Max SendQ exceeded]
orivej has quit [Ping timeout: 240 seconds]
<Snektron>
My question is that for protocol = ipv4, the documentation says that via is an ipv4 address, and an ipv6 address for the ipv6 variant
<Snektron>
I think that basically adds a new interface which forwards to the destination, and then binds an ipv4 address to it?
<Snektron>
A reverse proxy sounds a lot simpler though
<Dagger>
the next-hop address of a route doesn't have to be the same family as the packet that's being routed, but you definitely can't use it to route to a *port*
sangoma has quit [Read error: Connection reset by peer]
never_released has quit [Ping timeout: 260 seconds]
knupfer has quit [Ping timeout: 240 seconds]
knupfer1 is now known as knupfer
sputny has joined #nixos
knupfer1 has joined #nixos
<benschza>
Is anyone here using Nix on MacOS Catalina? I'm using NixOS, but might be upgrading laptop and using MacOS for a while. What will I miss or find frustrating?
<cransom>
probably depends on how heavily you are invested into nixos. macos is still my daily driver and i hit some corner cases once in a while with software incompatibility for supporting developers (like some rails/ruby things) but if it's not too exotic, it's not a battle i fight too often.
<{^_^}>
[nixpkgs] @jtojnar pushed commit from @oyren to master « gtg: refactor (description, platform, version, requirement, formatting) »: https://git.io/JJ62h
knupfer has quit [Ping timeout: 256 seconds]
<numkem>
what's the correct way of doing variable interpolation for a path?
argc has quit [Remote host closed the connection]
<clever>
numkem: ./prefix + "/${var}/suffix.txt"
domogled has quit [Read error: Connection reset by peer]
domogled has joined #nixos
<numkem>
clever: you can't do path +"${var}" + path right? it's path + string and that's it?
maier has quit [Ping timeout: 265 seconds]
drk_lrd_877_ has quit [Remote host closed the connection]
<clever>
numkem: `let var = "foo"; in ./prefix + "${var}"` turns inti `./prefixfoo`
<benschza>
cransom are those corner cases specifically for Nix Rails/Ruby dev environments? I suppose there's always the option of native when you're not on NixOS. I'm quite invested into NixOS, but could always use a VM. I share config across my desktop and laptop already.
<clever>
numkem: which is almost never what you want
<clever>
numkem: path + string always returns a path, but string + path will just turn into a mess
<clever>
> "foo" + ./.
<{^_^}>
access to path '/var/lib/nixbot/state/nixpkgs' is forbidden in restricted mode
<clever>
try that in `nix repl`
<numkem>
clever: seems to be ignoring foo in the repl
<numkem>
but that did fix my problem for my variable, thanks! clever++
delirehberi has quit [Remote host closed the connection]
doyougnu has joined #nixos
jakob_rs has joined #nixos
davidv7_ has joined #nixos
fresheyeball has joined #nixos
cole-h has joined #nixos
davidv7 has quit [Ping timeout: 240 seconds]
magnetophon has quit [Read error: Connection reset by peer]
<jasom>
I'm strugging to use k3b on NixOS. cdrecord is complaining about permissions; is being in the "cdrom" group insufficient? Do I need an suid helper for cdrecord? If I manually run the cdrecord command k3b constructs as root, it burns successfully
<sphalerite>
jasom: what are the permissions on /dev/sr0? did you log out and back in after adding yourself to the group?
<jasom>
sphalerite: 'brw-rw----+ 1 root cdrom 11, 0 Aug 5 08:03 /dev/sr0' and yes, typing "groups" shows cdrom listed, and I run k3b directly from that console to be sure (I've actually rebooted even since adding myself to the group, so pretty sure that's not the problem)(
magnetophon has joined #nixos
bahamas has quit [Ping timeout: 260 seconds]
<jasom>
ugh; just noticed the "+" on the end;
<clever>
jasom: if you run `id`, what groups are you in?
<matthewcroughan>
Will see what colemickens has to say when he comes back from camping. He has done so much with the IRIS nixpkgs on Github
<clever>
[root@amd-nixos:~]# getfacl /dev/sr0
<clever>
user:clever:rw-
<clever>
jasom: there is something special on it, giving me rw, despite the owner/group saying i shouldnt
<clever>
jasom: it might be the fact that i signed in from a physical terminal (display-manager), so it knows i have physical access to the tray
<jasom>
oh, probably whatever replaced consolekit in systemd is giving local users permissions
<clever>
yeah
<clever>
so you dont even need cdrom
<matthewcroughan>
clever is there a way I can override unstable? I want to use an older version of mesa.
<clever>
you have special access, because you can touch the drive
<clever>
matthewcroughan: the same way you used -I nixpkgs=/path/to/clone, but checkout an older revision
<jasom>
IIRC cdrecord uses fancy calls via the sg subsystem; perhaps those are not mediated by /dev/sr0 permissions?
<matthewcroughan>
clever what do you mean? That effects me whole system.
proofofkeags has quit [Ping timeout: 240 seconds]
<matthewcroughan>
I want to use an older version of mesa, alone, not downgrade my whole system.
<clever>
matthewcroughan: you can change mesa with an override, but damn near everything depends on mesa, so you would have to rebuild 80% of your software
<clever>
matthewcroughan: if you pick a revision from the history file in https://channels.nix.gsc.io/nixos-unstable/ then you will have a good match for cache.nixos.org, and not have to rebuild anything
<matthewcroughan>
So if I want to test this, I can't use the cachnix for nixpkgs-wayland, right?
Maxdamantus has joined #nixos
<jakob_rs>
Where can I ask for a security-related PR to be backported?
<jakob_rs>
As in, I can backport it myself, but it's probably best to ask someone if I should first
<clever>
matthewcroughan: if you use overrides to mix versions together, it will silently not use cachix, because cachix doesnt have what you requested
<matthewcroughan>
clever what is the format? commit hash and timecode?
<matthewcroughan>
what timecode is that?
<clever>
matthewcroughan: unix epoch, seconds since jan 1st 1970
<matthewcroughan>
ok so not nanoseconds
<matthewcroughan>
how can I use date to print the current hmm
<clever>
matthewcroughan: run `git show` on a revision, and youll see the commit date
<matthewcroughan>
so just git checkout the oldest and try again
<matthewcroughan>
:P
<jasom>
looking at strace, I see openat(AT_FDCWD, "/dev/sr0", O_RDWR|O_NONBLOCK) = 3 followed much further down by ioctl(3, SG_IO, {interface_id='S', dxfer_direction=SG_DXFER_NONE, cmd_len=6, cmdp="\x01\x00\x00\x00\x00\x00", mx_sb_len=16, iovec_count=0, dxfer_len=0, timeout=200000, flags=SG_FLAG_DIRECT_IO, status=0, masked_status=0, msg_status=0, sb_len_wr=0, sbp="", host_status=0, driver_status=0, resid=0,
<jasom>
duration=0, info=0}) = -1 EPERM (Operation not permitted)
<matthewcroughan>
clever I did the oldest, how old is that lmao
<matthewcroughan>
ya but then I have to scroll all down the log, can I `git log` that hash?
<clever>
matthewcroughan: yes
<matthewcroughan>
ya I can, THAT'S 2017
moet has joined #nixos
<clever>
you can also `git show` the hash
<matthewcroughan>
no wonder it didn't work, since perl is a dep
<clever>
you went too far back :P
<matthewcroughan>
git pull now does not work
<matthewcroughan>
wtf
<jasom>
aha /proc/scsi/sg/allow_dio is "0" so non-root can't perform dio
<Snektron>
Hello again. Following my earlier conversation here about reverse proxying ipv4 to ipv6, i've decided to install haproxy to achieve that (as socat only works for a single connection really), but i've gotten myself in some problems
czrrrr has joined #nixos
<Snektron>
The main problem is that for the server which is supposed to run haproxy, the systemd unit file doesn't get added
<matthewcroughan>
clever now I just get error: The option `console' defined in `/etc/nixos/configuration.nix' does not exist.
<matthewcroughan>
lol
<matthewcroughan>
I'm on hash 0910b661eb64318773a29f6883d8382088852cfd
<clever>
matthewcroughan: 2019, still too old
<matthewcroughan>
but that's the last mention of mesa in any commit message :/
<Snektron>
It works on my other machine (which i want to forward to). The main difference between the two is that i changed to the nixos-unstable yesterday, as i needed a more recent version of a single package (i didn't know that you could override single packages). I figured an easy way to solve this was to simply re-add the original channel, and replace the single package
<Snektron>
But after `nixos-rebuild switch --upgrade`, everything is still running from the unstable versions
<Snektron>
So does anyone either know why the haproxy unit doesn't get added, or how i can downgrade back to the stable channel?
<jasom>
hmm allow_dio had no effect; the cdrecord man-page indicates "In order to be able to use the SCSI transport subsystem of the OS, run at highest priority and lock itself into core cdrecord either needs to be run as root, needs to be installed suid root or must be called via RBACs pfexec mechanism."
philr has quit [Ping timeout: 264 seconds]
<jasom>
really k3b should offer to run the helper programs via sudo
<jasom>
instead it just will offer to chmod them to suid with sudo which obviously is a non-starter on nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #nixos
euandreh has joined #nixos
codygman has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @vcunat pushed to master « valgrind: try fixing on darwin »: https://git.io/JJ6rK
<{^_^}>
[nixpkgs] @vcunat merged pull request #94716 → valgrind: try fixing on darwin → https://git.io/JJ6rY
<clever>
matthewcroughan: any time kernel stuff is changing, you need to reboot for it to take effect
<matthewcroughan>
So, are there additional steps that are needed? I bet there probably are, can someone help me figure it out? Anyone got an intel gpu?
<matthewcroughan>
clever how do I know whether this was a kernel level change? I doubt it.
<matthewcroughan>
Does this actually include loading/unloading modules?
<alexarice[m]>
ignore my question it turns out I didn't save my nix file
<slabity>
How can I evaluate a single output of a Nix flake? Like if I have one that simply provides `ouputs = { self, ... }: { simpleOutput = 5 + 5; }`, I'd like to just get the value of `simpleOutput`
<{^_^}>
[nixpkgs] @lucperkins opened pull request #94748 → osmcli: init at 0.1.0 → https://git.io/JJ6iZ
craftyguy has left #nixos ["WeeChat 2.9"]
rgrau has joined #nixos
<bqv>
nix eval '.#simpleOutput'
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spudly has quit [Ping timeout: 265 seconds]
spudly has joined #nixos
spudly has joined #nixos
spudly has quit [Changing host]
graf_blutwurst has quit [Ping timeout: 272 seconds]
cosimone has quit [Remote host closed the connection]
karantan has joined #nixos
<slabity>
bqv++ Exactly what I was looking for. Thanks
<{^_^}>
bqv's karma got increased to 14
Darkmatter66 has joined #nixos
cosimone has joined #nixos
Darkmatter66_ has quit [Ping timeout: 240 seconds]
jasongrossman has joined #nixos
<jared-w>
bqv: how are you liking velox vs sway? (I think sway is the most stable tiling wm on wayland last time I checked?)
proofofkeags has joined #nixos
sangoma has joined #nixos
rajivr has quit [Quit: Connection closed for inactivity]
orivej has quit [Remote host closed the connection]
orivej has joined #nixos
<bqv>
jared-w: i refuse to ever use sway for ideological reasons anyway, but velox is way more hackable, mainly because of it's insanely small and sensible codebase. i much prefer it even without my personal grudges in mind. that said, some things are missing or slightly buggy. the most notable i think is that clipboards seem broken (only briefly looked into why with msf, but seems it wouldn't be too hard
<bqv>
to fix?)
<afreakk>
i tried permanenty mounting a hdd using this answer, https://unix.stackexchange.com/a/218050 but nixos-generate-config gives me `Failed to execute: btrfs subvol show /mnt/bigdisk` :/ any idea whats wrong?
<srhb>
afreakk: does the btrfs command exist?
<afreakk>
no
<srhb>
I think it might be impurely required
<srhb>
Try making sure you have it on PATH, then try again.
justanotheruser has joined #nixos
<afreakk>
im pretty sure the hdd is not btrfs, or i thought it was ext4 :p
<srhb>
afreakk: Ironically, that command is ran to check that it isn't a btrfs subvolume :)
<srhb>
is run*? how to even case...
<afreakk>
hm, not sure what package has the btrfs command
<srhb>
,locate bin/btrfs
<{^_^}>
Found in packages: btrfs-progs
<srhb>
^ afreakk
<afreakk>
aha, now it worked :p
davidv7_ has quit [Quit: Konversation terminated!]
<srhb>
That's a bit of an unfortunate side effecty dependency, probably because the installer has a bunch of file system related packages and the generator is seldom used outside of it
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JJ6PA
<afreakk>
yeah :p it looked pretty short, the snippet it generated :)
<Ke>
yeah, I think generate-config is kind of silly, but it's a nice way to get started
<srhb>
I am sure I would have been lost without it on my first install, at least.
serrvan has quit [Ping timeout: 256 seconds]
<afreakk>
if you had a tutorial like archlinux install, you could maybe have lived without it
<{^_^}>
[nixpkgs] @Ekleog pushed commit from @symphorien to release-20.03 « epkowa: update hashes (#93846) »: https://git.io/JJ6Xf
<srhb>
Possibly. I do think our install process has some beauty because of it that I'd rather not be without, though. :)
<afreakk>
yeah, the install process is veery quick :p the only thing that took some time was the partitioning
<srhb>
Indeed.
<Ke>
imo nixos should just default to bloaty generic initrd, and then you just need to configure the mounts, which is not considerably different from writing fstab
__monty__ has joined #nixos
<srhb>
Now if only we had declarative partitioning.... :)
<Ke>
I include the installler drivers and add some of my own on top
<afreakk>
yeah :D
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
cosimone has quit [Remote host closed the connection]
<slabity>
How would declarative partitioning work...
<srhb>
slabity: Carefully. :)
<bqv>
presumably it'd be lossy, by requirement
fresheyeball has joined #nixos
<slabity>
"lossy" partitioning?
<slabity>
I'm not sure I like the sound of that...
<{^_^}>
[nixpkgs] @worldofpeace pushed 92 commits to staging-20.03: https://git.io/JJ6X0
mallox has joined #nixos
<slabity>
fresheyeball: Not sure about a switch statement, but if you just need to select an expression from a bunch of different ones, you could use a set or list
jD91mZM2 has joined #nixos
<fresheyeball>
slabity: oh good call
drakonis has joined #nixos
jasongrossman has quit [Ping timeout: 240 seconds]
<slabity>
Orbstheorem: Question is... How many of those pull requests are no longer valid or duplicates?
<jasom>
slabity: declarative partitioning *could* work; if the effective partition table differs, you repartition. The fact that most filesystems either don't support resizing, or have significant limitations on resizing (and even when both shrinking and growing are supported it's "backup before doing this please")
<typetetris>
How can I find, which `libvirt_lxc` file to use as emulator for libvirt-lxc containers in nixos?
<moet>
srhb: i don't know anything about overlays...
<moet>
srhb: this example is good for me, at where i'm currently at.. thank you for yoru help
<srhb>
moet: Alright :)
orivej has quit [Remote host closed the connection]
<sphalerite>
typetetris: I think that's the wrong approach, you need to open a hypervisor connection to the lxc driver or something
kreyren has quit [Ping timeout: 240 seconds]
<sphalerite>
typetetris: so rather than selecting it when creating a VM, you select it when choosing a libvirt connection
<jared-w>
nixos does have declarative partitioning. It clobbers over everything and reformats stuff if it doesn't fit what's declared. Use with caution :)
orivej has joined #nixos
<{^_^}>
[nixpkgs] @danieldk opened pull request #94750 → python3Packages.pytorch: fix Darwin build by disabling GCD → https://git.io/JJ61m
<jared-w>
I honestly don't think anyone uses it...
thc202 has quit [Ping timeout: 244 seconds]
<slabity>
jared-w: I'm not sure what you are referring to... Is it documented somewhere?
<{^_^}>
[nixpkgs] @LouisDK1 opened pull request #94753 → libreoffice: Templates for LibreOffice Impress → https://git.io/JJ6yR
kraeXen has joined #nixos
<slabity>
The only other one I can think of is Bluebrain
<afreakk>
ive got two nixos pcs, on one of them, when i write a command i dont have, it shows me the package i can get it from, but on the other pc i dont have that functionality it seems. how do i enable it?
<slabity>
afreakk: Look at `programs.command-not-found` options
<energizer>
nix-user-chroot apparently requires linux 3.9 which is newer than i have, so i (unprivileged user) can't create a chroot. i am wondering if there's a way for admin to create a chroot in /home/energizer/nix that would let me use cache.nixos.org without writing into the real root /nix
<afreakk>
thanks, should be enabled then, must be.. something with my shell then
orivej has quit [Ping timeout: 246 seconds]
fresheyeball has quit [Ping timeout: 264 seconds]
<slabity>
afreakk: Check if the database is there: `/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite`
<mrosenbe_>
so, I just attempted to get xcode into nix via the instructions that the nix package provided, namely nix-store --add-fixed --recursive sha256 Xcode.app
<mrosenbe_>
but when I try to re-run the nix-shell that complained about it being missing, it complained about it again
<mrosenbe_>
I think first I'd like to verify that the hash being different is actually the cause of this.
gustavderdrache has quit [Quit: Leaving.]
<mrosenbe_>
The line for the version of xcode I tried to install is xcode_10_3 = requireXcode "10.3" "1i628vfn6zad81fsz3zpc6z15chhskvyp8qnajp2wnpzvrwl6ngb";
orivej has quit [Ping timeout: 240 seconds]
<mrosenbe_>
Does this mean that I should expect its path to be /nix/store/1i628vfn6zad81fsz3zpc6z15chhskvyp8qnajp2wnpzvrwl6ngb-Xcode.app ?
orivej has joined #nixos
davidv7 has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @jonringer pushed commit from @tmplt to master « nixos/smartd: add option for notifiction email sender »: https://git.io/JJ6He
proofofkeags has joined #nixos
<bqv>
mrosenbe_: no
barryfm has quit [Client Quit]
orivej has quit [Remote host closed the connection]
orivej has joined #nixos
proofofkeags has quit [Ping timeout: 256 seconds]
xkapastel has joined #nixos
<mrosenbe_>
ok, so how do I figure out what that value is for the xcode that I imported?
<typetetris>
Okay, this is really strange and I don't know where to go with this, it seems that the path of a file backing a filesystem in an libvirt-lxc container can't be longer than 63 characters in nixos 20.03 also tryed with libvirt_5_9_0.
user_0x58 has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 256 seconds]
user_0x58 has joined #nixos
orivej has joined #nixos
realisation has joined #nixos
<realisation>
hi everyone
<pikajude>
Is there a decent way to try to enforce build determinism across two different builders?
<pikajude>
like, build some derivation on both, and compare the outputs
<pikajude>
Or do I have to do something really convoluted for it
<jared-w>
bqv: sounds interesting. I'll keep it on my radar as well for when I finally nerd snipe myself enough to switch back off of gnome
<realisation>
I'm using nix-pkgs and I am having a problem whenever I try to use nix-shell. it's telling me that nixpkgs is not found in the nix search path
<realisation>
nix-env is working well - I just used it to install irssi and come here
<infinisil>
pikajude: You could just nix-build it on one host, then transfer it to the other with `nix-copy-closure` or so, then build it on the other host with `nix-build --check`
__monty__ has quit [Quit: leaving]
<realisation>
that's when I run nix-shell with sudo. when I don't run it with sudo, it lists the derivations to be built but inevitably fails upon being unable to download what looks like a sha256 derivation from tarballs.nixos.org
<realisation>
I am running this on mac
_0bitcount has quit [Quit: Leaving]
<mrosenbe_>
you should probably not be running nix-shell with sudo.
maier has joined #nixos
xd1le has quit [Read error: Connection reset by peer]
knupfer has quit [Ping timeout: 256 seconds]
<Yaniel>
you most definitely should not
<Yaniel>
and also not nix-env
<bqv>
nix-env with sudo has it's uses
xd1le has joined #nixos
<bqv>
nix-shell very much doesn't though, true
maier has quit [Ping timeout: 240 seconds]
proofofkeags has joined #nixos
shibboleth has quit [Quit: shibboleth]
czrrrr has joined #nixos
czrrrr has quit [Excess Flood]
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JJ6QN
noudle has quit []
orivej has quit [Read error: Connection reset by peer]
orivej has joined #nixos
proofofkeags has quit [Ping timeout: 256 seconds]
ddellacosta has joined #nixos
realisation has quit [Ping timeout: 260 seconds]
realisation has joined #nixos
<lightandlight>
Can a builder set new attributes on a derivation? Suppose my builder requires a `version` input (of type string), which is passed via an attribute when calling `derivation`. If the string is non-empty, then the builder will use that value throughout. If the string is empty, the builder will compute a suitable default, using a pure function on some of the inputs. If this happens, I want the `version` attribute on
<lightandlight>
the derivation to contain the generated value rather than the empty string. Is that reasonable?
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
<lightandlight>
When I get to my computer I'll see if modifying the variable in the builder works
<{^_^}>
[nixpkgs] @asbachb opened pull request #94756 → gitea: Added option `sandbox` to be able to disable systemd sanboxing → https://git.io/JJ676
vk3wtf has quit [Quit: WeeChat 2.7.1]
vk3wtf has joined #nixos
simba1 has quit [Ping timeout: 240 seconds]
<infinisil>
lightandlight: The derivation attributes are converted to environment variables for the builder process
<infinisil>
And since processes can change their environment, and the processes it spawns inherit that, it should be possible to just change them throughough
<infinisil>
Throughout
endformationage has joined #nixos
Thra11_ has quit [Ping timeout: 256 seconds]
realisation has quit [Ping timeout: 260 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
<lightandlight>
Will the environment variables determine the final attributes values, though? In my mind it could go either way.
polezaivsani has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
asymptotically has quit [Quit: Leaving]
<bqv>
the environemnt variables ARE the final attribute values
zeta_0 has joined #nixos
zeta_0 has left #nixos [#nixos]
domogled has quit [Ping timeout: 240 seconds]
orivej has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/JJ65p
<infinisil>
Doing a `nix-build` first evaluates Nix, and only once that's done the builds are started
<lightandlight>
As I've discovered. Which means that the builder can't compute default values for inputs; they need to be computed using nix
<infinisil>
I guess yeah, if you want those values to also be available on the eval level
kraeXen has joined #nixos
<lightandlight>
I guess I an also post-process the derivation afterwards and update the attribute in question
<lightandlight>
i.e. `(mkDerivation { ... }).overrideAttrs(...)`
griff_ has quit [Quit: griff_]
Thra11_ has joined #nixos
<{^_^}>
[nixpkgs] @jonringer opened pull request #94757 → nixos/smartd: fix description for docbook → https://git.io/JJ6dZ
coderobe has quit [Quit: Ping timeout (120 seconds)]
realisation has joined #nixos
trulsa has joined #nixos
coderobe has joined #nixos
<{^_^}>
[nixpkgs] @toonn opened pull request #94758 → wire-desktop: linux 3.18.2925 -> 3.19.2928, mac 3.18.3728 -> 3.19.3799 → https://git.io/JJ6dr
boxscape has joined #nixos
realisation has quit [Ping timeout: 240 seconds]
justanotheruser has quit [Ping timeout: 240 seconds]
Rusty1 has joined #nixos
cole-h has quit [Quit: Goodbye]
<{^_^}>
[nixpkgs] @toonn opened pull request #94759 → [20.03] wire-desktop: linux 3.18.2925 -> 3.19.2928, mac 3.18.3728 -> 3.19.3799 → https://git.io/JJ6dd
mbrgm_ has joined #nixos
never_released has quit [Remote host closed the connection]
mbrgm has quit [Ping timeout: 256 seconds]
mbrgm_ is now known as mbrgm
Snektron has left #nixos ["User left"]
cosimone has quit [Quit: Quit.]
cosimone has joined #nixos
<{^_^}>
[nixpkgs] @toonn opened pull request #94760 → [19.09] wire-desktop: linux 3.18.2925 -> 3.19.2928, mac 3.18.3728 -> 3.19.3799 → https://git.io/JJ6Fs
tdeo has quit [Read error: Connection reset by peer]
tdeo has joined #nixos
<energizer>
i'm gonna build a system from scratch. how much ram per core do i need?
griff_ has joined #nixos
never_released has joined #nixos
realisation has joined #nixos
<energizer>
or maybe i'm not. src/libstore/download.cc: In member function ‘void nix::CurlDownloader::DownloadItem::finish(CURLcode)’: src/libstore/download.cc:334:30: error: ‘CURLE_NOT_BUILT_IN’ was not declared in this scope
iyzsong has quit [Read error: Connection reset by peer]