<craige>
For the logs, I eventually solved my broken tar by a convoluted process of tracking this broken tar.gz down to: /nix/store/nh3jq6g1w9isiwlr2aczfl901q25qpa7-hackage-exprs-source
boxscape has joined #nixos
<craige>
and running: sudo nix-store --delete --ignore-liveness /nix/store/nh3jq6g1w9isiwlr2aczfl901q25qpa7-hackage-exprs-source
<boxscape>
Any recommendations what I should use as distro on the windows subsystem for linux if I want to use nix as my main package manager? Seems like nixos is not quite ready for it at this time
<gchristensen>
craige: that is almost always a very dangerous command
<boxscape>
or actually looking again maybe it is read. Hmm...
<boxscape>
s/read/ready
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JJmrF
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<craige>
Agreed but I confirmed it was the broken tar and once removed, it was re-downloaded and the package built as expected gchristensen
<craige>
I did try indentifying it's roots and removing them but was unable to remove it without th eignore liveness.
<gchristensen>
cool
<craige>
`file` confirmed it was tar, so I happily removed it.
evanjs has quit [Ping timeout: 264 seconds]
<craige>
It would be nice if nix identified a broken (which it does) and then re-downloaded it. Might log that.
notzmv has quit [Ping timeout: 260 seconds]
<gchristensen>
nix-store has a --repair flag
moet has joined #nixos
<gchristensen>
and a --check-contents
<craige>
Ah, that would have been a better path. Thanks gchristensen
evanjs has joined #nixos
jumper149 has quit [Quit: WeeChat 2.8]
moet has quit [Client Quit]
moet has joined #nixos
<moet>
can i use builtins.fetchurl to fetch an old nix module from nixpkgs history by raw.githubusercontent.com url?
<moet>
(and add it to the `imports` list in my configuration.nix)?
<M0-[m]>
does anyone else have issues with gpg not caching symmetric passphrases?
<M0-[m]>
worked fine before on arch linux but can't figure out how to start debugging this on nixos
azure1 has quit [Read error: Connection reset by peer]
kvda has joined #nixos
azure1 has joined #nixos
dansho has quit [Ping timeout: 240 seconds]
boxscape has quit [Quit: Connection closed]
astrofog has quit [Quit: Quite]
Cicucci_ has quit [Ping timeout: 246 seconds]
proofofkeags has quit [Remote host closed the connection]
Fare has quit [Ping timeout: 244 seconds]
Cicucci has joined #nixos
jbox has joined #nixos
moet has joined #nixos
sangoma has quit [Ping timeout: 272 seconds]
disasm has quit [Ping timeout: 260 seconds]
evanjs has quit [Read error: Connection reset by peer]
evanjs has joined #nixos
<moet>
hi, when i run `sudo nixos-rebuild switch --install-bootloader` it seems my bootloader isn't installed
<moet>
or, i should say, `efibootmgr` doesn't show that the configuration is set up properly
<moet>
i just tried changing the value of `boot.loader.systemd-boot.configurationLimit` to force a rerun of systemd-boot-builder.py, but even after doing that there's no entry in `efibootmgr` for systemd-boot
<moet>
looking at the script, it seems like it should have called `subprocess.check_call(["@systemd@/bin/bootctl", "--path=@efiSysMountPoint@", "install"])` which i assume makes the appropriate changes which should be reflected in `efibootmgr`, but i don't see any entry there
<moet>
the manpage for `bootctl install` says "Installs systemd-boot into the EFI system partition. A copy of systemd-boot will be stored as the EFI default/fallback loader at ESP/EFI/BOOT/BOOT*.EFI. The boot loader is then added to the top of the firmware's boot loader list." but it seems that that second step is not happening
<moet>
ok, i just ran `sudo bootctl install` and it fixed the efi boot entries displayed by `efibootmgr`
<moet>
but this seems like a bug somewhere.. if i can figure out where i'll submit a fix
<KarlJoad>
This may be a strange question, but is there a way for me to NOT have NixOS generate an xserver.conf file, while leaving the X11 server turned on?
proofofkeags has joined #nixos
moet has quit [Quit: rebooting]
sheeldotme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jasom has quit [Ping timeout: 244 seconds]
<cole-h>
If xserver.conf is /etc/xserver.conf, you can probably do something like `environment.etc."xserver.conf".text = lib.mkForce "";`
kleisli has joined #nixos
moet has joined #nixos
<moet>
hi! i'm back.. i can boot again, but i'm noticing a lot of `ring 4 stalled for more than 25704msec` errors for ring 0, 3, and 4 :)
jasom has joined #nixos
<KarlJoad>
cole-h: That's the thing. xserver.conf doesn't technically exist... It's in the nix store, and is used to configure the X11 server. However, it is NOT in /etc
<cole-h>
Oh, got it.
<cole-h>
Then you'll have to override whatever references that path.
<KarlJoad>
How do I go about doing that?
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
<cole-h>
First, figure out what references that path. Then, override it. Simple :)
aw has joined #nixos
<cole-h>
In all seriousness, I don't know. You'll have to research. I don't use X11.
o1lo01ol1o has joined #nixos
spacefrogg has joined #nixos
mzan has joined #nixos
<infinisil>
KarlJoad: What do you need this for?
<KarlJoad>
Gotcha. Tinkering with using the nvidia settings now that I have a setup working with xinerama.
<KarlJoad>
infinisil: I am trying to get 2 GPUs to each output to 1 monitor. I want to be able to move things between monitors seamlessly, but have snapping and maximization separate for each.
<bqv>
cole-h: is there anything you miss from X11?
<cole-h>
Nope.
o1lo01ol1o has quit [Ping timeout: 265 seconds]
* colemickens
is in your nixpkgs, improving your firefoxs
<cole-h>
:P
<colemickens>
hopefully. one PR, and I just got it to turn from "wayland" to "wayland/drm" for at least one of our firefox packages.
jgart[m] has joined #nixos
marsh has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @colemickens opened pull request #92823 → firefox{,-bin}: add 'mesa', for wayland/drm → https://git.io/JJmi2
<moet>
what's the "right" way to specify the xserver graphics driver?
<moet>
it seems like hardware.opengl.extraPackages is necessary if i want to use amdgpu? should i specify both the package and also the driver name in xervices.xserver.videoDriver?
Supersonic112 has joined #nixos
Supersonic has quit [Ping timeout: 260 seconds]
Supersonic112 is now known as Supersonic
<cole-h>
colemickens: Where should "wayland/drm" show up? "Window Protocol"?
<colemickens>
yea. about:support Window Protocol.
<cole-h>
Looks like it needs to be done for the mozilla overlay, as well.
<cole-h>
What difference does it make, though?
sheeldotme has joined #nixos
<colemickens>
The mozilla overlay consumes the nixpkgs wrapper
<cole-h>
Oh
<cole-h>
Sweet
<colemickens>
Without it dmabuf doesn't work so all texture copies go through the CPU
<colemickens>
theoretically I think we've been missing out on... like, part of the whole point of WR and vaapi.
<colemickens>
that having been said, it mostly feels the same as it did before.
<colemickens>
(please note, I'm not a linux graphics guy, I'm sure I'm getting details wrong, don't repeat without independent verification)
<cole-h>
lol
romildo has quit [Quit: Leaving]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drakonis has joined #nixos
moet has quit [Remote host closed the connection]
<colemickens>
oh I can test firefox-nightly with my new flake-firefox-nightly and --override-input nixpkgs :sung
<drakonis>
nice...
kvda has joined #nixos
<colemickens>
sweet, that was easy, and confirmed as working too. nice. I was expecting to lose more time to this :)
<cole-h>
colemickens++
<{^_^}>
colemickens's karma got increased to 28, that's Numberwang!
<ktosiek>
Hi! The install instructions mentions "curl https://nixos.org/nix/install", but that URL is just a redirect, which curl won't follow by default - should the instructions be changed to "curl -L https://nixos.org/nix/install"
<{^_^}>
[nixops] @adisbladis opened pull request #1385 → Convert the remaining docbook docs → https://git.io/JJmb5
philr has quit [Quit: WeeChat 2.7.1]
<edcragg>
is this even possible...
<edcragg>
$ cat /proc/sys/fs/file-max
philr has joined #nixos
<edcragg>
9223372036854775807
zangi has joined #nixos
<Raito_Bezarius>
i have the same :D
taylskid has joined #nixos
<taylskid>
.
<lejonet>
edcragg: what, a file that is 8 exabyte big isn't enough? :P
<lejonet>
Even on an arch linux system, 9223372036854775807 is set as file-max
<ar>
one old debian box i have around:
<ar>
% cat /proc/sys/fs/file-max
<ar>
202078
<lejonet>
That isn't all too big :)
<lejonet>
But there aren't many filesystems that can handle a single file being 8 exabyte anyway
<edcragg>
it's number of files, is it not? rather than size, but still :p
civodul has joined #nixos
<edcragg>
anyway, apparently this is -1
<edcragg>
i.e. ulimit unlimited
<NobbZ[m]>
Em, filemax isn't about sizes, it's about the max count of file descriptors in the system.
<lejonet>
Ah, my mistake :)
<lejonet>
Try and do a for loop to generate that many empty files and see what happens? :)
<NobbZ[m]>
Nothing if you close them correctly, dying much earlier if not, as per process limit is usually much less
<adisbladis>
It's the number of open files, not inodes
<lejonet>
and that number is 2^63, which makes sense, as iirc fd is a 64-bit unsigned int
<NobbZ[m]>
And it's not open files, it's file descriptors in general, meaning network connections as well and potentially much more stuff that is internally done through FDs
<lejonet>
Mhm
<lejonet>
So any socket, open file, etc etc counts
o1lo01ol1o has quit [Remote host closed the connection]
<edcragg>
this is the unix way :p
<edcragg>
most things are, right?
<lejonet>
It would be interesting to see if there is any system that has ever gotten close to that number, even if there are numerous sources that "eat into" that pool
<lejonet>
it is afterall 9.2234 * 10^18 fds that it can represent
waleee-cl has quit [Quit: Connection closed for inactivity]
<lejonet>
in another question tho, is there anyway to make a nix-store path rw as default, or is it better to move that out of the nix-store? (The openldap service module creates the configDir in the nix-store, however, openldap expect its configDir to be rw, to persist the settings through restarts, which isn't possible currently)
o1lo01ol1o has quit [Ping timeout: 272 seconds]
<Ke>
lejonet: man 2 open will quickly tell you it's 2^31, wherever int is 32-bit
Jackneill has quit [Ping timeout: 260 seconds]
<Ke>
my understanding is that you absolutely do not want to make /nix/store read write
<gchristensen>
correct, and there isn't a way to do that :)
<lejonet>
Yeah, that is my impression and gut feeling too
<Ke>
if symlinking is not acceptable for the service, maybe copying is better, not sure if that is acceptable in nixpkgs integration
<lejonet>
Just wanted to double check that before I go and do a PR to the openldap service module to create an actual rw location for the configDir, that then copies over the stuff from nix-store
hoijui has joined #nixos
captn3m0 has quit [Ping timeout: 256 seconds]
captn3m0 has joined #nixos
kreyren has quit [Ping timeout: 240 seconds]
ixxie has joined #nixos
cfricke has quit [Quit: WeeChat 2.8]
<lejonet>
Ke: whatcha mean with symlinking? You mean like symlinking the contents of the store path somewhere rw:able?
<Ke>
like many services are just fine with having nix store paths symlinked as configs or whatever or passed as parameters at runtime and have their writable data separately from configs
MidHotaru has quit [Quit: Connection closed for inactivity]
<das_j>
is there a simple way to delete a broken path? nix-store --verify-path shows it as broken, --repair-path cannot download it, so I want to get rid of it
<das_j>
but once it's usable again, I can finally install hosts without the ramdisk overflowing 🥳 clever++
<{^_^}>
clever's karma got increased to 471
<stteevveen>
Hi! is there a builtin function in nix that would load any text file and transform it into a string, so as to put it into a nix variable ?
<das_j>
stteevveen: builtins.readFile maybe?
<stteevveen>
das_j that's seems to be a really good function name :-) Did you know the function, or do you have a method for searching through builtin functions ?
<{^_^}>
[nixops] @adisbladis merged pull request #1359 → docs: Add custom rst directive to include plugin documentation → https://git.io/Jf106
<Ke>
there are things that you expect to find in builtins and lib after a while
cap_sensitive has joined #nixos
<stteevveen>
thx for those tips I still don't use nix repl frequetnly enough, hopefully this will make me do it
<cap_sensitive>
Hi. How to build a NixOS docker image that can be used for C++ development? I think nix doesn't make headers available globally if I put C++ packages in /etc/nixos/configuration.nix?
<init_6>
wazzzzaaap?
<stteevveen>
cap_sensitive for c++ headers, I often need to use propagateBuildInputs IIRC, so as headers used for the build be accessible
<simpson>
cap_sensitive: NixOS with systemd doesn't work in Docker; what you'll have available instead, say working `FROM nixos/nix`, is nix-env and nix-channel. Installing stuff with nix-env in the Dockerfile will cause that stuff to be available for your entrypoint later.
fendor has quit [Remote host closed the connection]
<notgne2>
you can use a standard nixos configuration to generate a docker image using it, though you cannot currently run more than 1 systemd service in it
<cole-h>
,libraries cap_sensitive
<{^_^}>
cap_sensitive: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<notgne2>
it supports oneshot services, so you can have any number of those enabled and it will execute them in the correct order (I hope), and 1 SystemD ongoing service
<cap_sensitive>
many thanks! I'll try these out during the weekend
<infinisil>
cap_sensitive: That PR allows you to declare a nix-shell environment, for which a C++ env is as simple as `stdenv.mkDerivation { ... }`. You can then build a docker image for exactly that environment
kreyren_ has joined #nixos
kreyren has quit [Remote host closed the connection]
<notgne2>
for a simple environment infinisil (chat.freenode.net) 's solution definitely sounds the best, I only really made Continix so I can configure things like Apache for use in Docker image's using NixOS module configs rather than the old fashioned way
<cap_sensitive>
Also for the nix-shell: I use nix-shell fine on my computers, with NixOS installed, but I also want to share this env with my team, that's why I need a docker image
<cap_sensitive>
infinisil: So I'll just clone your branch and rebuild the dockerTools?
<infinisil>
cap_sensitive: That would work yeah, I should probably update and merge the PR though
<cap_sensitive>
That would be even better!
<notgne2>
`(import (builtins.fetchGit { [details for the fork] }) {}).dockerTools.buildNixShellImage` is a lazy way of making it work
<infinisil>
^^
<cap_sensitive>
So before the merge happens, I can either try to use continix or try to put pkgs.zlib.dev in dockerTools.buildLayeredImage and have the headers avaliable and .so linkable?
<infinisil>
Oh and it would be something like `buildNixShellImage { name = "env"; drv = pkgs.stdenv.mkDerivation { ... }; }` or `drv = import ./shell.nix {}`
<cap_sensitive>
THANK you all!
<infinisil>
cap_sensitive: You can use the PR now without it being merged too, that's what I'd suggest doing
<cap_sensitive>
yeah, with the "import" helper
<notgne2>
in continix it's just a NixOS config under `cfg`, so you install things with `environment.systemPackages` I guess but I wouldn't know how to do libraries (I don't think those get used that way?)
<notgne2>
probably do whatever the sane module is doing, as my scanner drivers are always in my $LD_LIBRARY_PATH
o1lo01ol1o has joined #nixos
<cap_sensitive>
notgne2: Define my own package, and put the required libs in propagatedBuildIputs?
<notgne2>
or with buildNixShellImage, in infinisil (chat.freenode.net) 's example just put your libraries under `buildInputs` and whatnot of the `mkDerivation` expression
exel[m]1 has joined #nixos
pamplemousse has joined #nixos
lvrp16 has quit [Ping timeout: 256 seconds]
ryjm has quit [Ping timeout: 256 seconds]
kaychaks_riot has quit [Ping timeout: 256 seconds]
sethetter has quit [Ping timeout: 256 seconds]
gregf has quit [Ping timeout: 256 seconds]
d1rewolf has quit [Ping timeout: 256 seconds]
shabius has quit [Ping timeout: 256 seconds]
exel[m] has quit [Ping timeout: 256 seconds]
ryjm_ is now known as ryjm
omnigoat has joined #nixos
gregf_ is now known as gregf
omnigoat has quit [Ping timeout: 256 seconds]
terrorjack has quit [Ping timeout: 256 seconds]
cbarrett has quit [Ping timeout: 256 seconds]
parsnip has quit [Ping timeout: 256 seconds]
plutes has quit [Quit: If you judge me now, you have judge me prematurely.]
lvrp16 has joined #nixos
o1lo01ol1o has quit [Ping timeout: 256 seconds]
<notgne2>
(tbh I still don't ever remember the difference between all the buildInputs types)
zot has quit [Ping timeout: 256 seconds]
aria has quit [Ping timeout: 256 seconds]
kitemikaze_ has quit [Ping timeout: 256 seconds]
Ericson2314 has quit [Ping timeout: 256 seconds]
zot has joined #nixos
d1rewolf has joined #nixos
mankyKitty_ has joined #nixos
terrorjack has joined #nixos
lightandlight has quit [Ping timeout: 256 seconds]
mankyKitty has quit [Ping timeout: 256 seconds]
lally has quit [Ping timeout: 256 seconds]
cbarrett has joined #nixos
parsnip has joined #nixos
BellRooks has quit [Ping timeout: 256 seconds]
parseval has quit [Ping timeout: 256 seconds]
werner291 has joined #nixos
kitemikaze_ has joined #nixos
aria has joined #nixos
BellRooks has joined #nixos
lightandlight has joined #nixos
AlpineLlama has quit [Ping timeout: 256 seconds]
MilkManzJourDadd has quit [Ping timeout: 256 seconds]
AlpineLlama has joined #nixos
parseval has joined #nixos
MilkManzJourDadd has joined #nixos
lally has joined #nixos
Ericson2314 has joined #nixos
eddyb[legacy] has joined #nixos
tnks has quit [Ping timeout: 256 seconds]
<notgne2>
I guess replace the tail command (used to do nothing for a long time) with bash too, I'm not too familiar with using docker as a shell, I'm more used to doing the exec thingy
<cap_sensitive>
Yeah
tnks has joined #nixos
<cap_sensitive>
Was wondering why that entrypoint
justsomeguy has joined #nixos
<infinisil>
notgne2: I'd expect the LD_LIBRARY_PATH thing to not work, because a standard nix-shell does a lot of things to make C/C++ dev nice, like adding header flags, linker flags, which are obtained from .dev/.lib outputs from dependencies in buildInputs and co.
<stteevveen>
infinisil said likes this, it feels like "wow"
<cap_sensitive>
Hmmm, so adding libraries with dockerTools.buildLayeredImage won't work either?
<cap_sensitive>
Which means the only solution is the infinisil's fork
<cap_sensitive>
infinisil: Yeah, I really like the idea of turning my shell.nix into a docker image
drewr has quit [Ping timeout: 244 seconds]
<notgne2>
you could also in theory use the real nix-shell inside docker but I feel like that would be a lot more messy
<justsomeguy>
Would someone do me the favor of checking that "B541 D553 0127 0E0B CF15 CA5D 8170 B472 6D71 98DE" matches edolstra@gmail.com's signing key. You can run "gpg --fingerprint edolstra@gmail.com" to check, assuming you already have it in your keychain.
<simpson>
notgne2: It's not at all messy, but since there's two incantations of nix-shell, one at Dockerfile time and one at exec time, it's possible for the second invocation to have to build stuff.
* justsomeguy
is checking the signature against multiple peoples keychains, to make sure that the link to the signing key hasn't been modified, and that he's importing the right one.
<cap_sensitive>
notgne2: The problem with that is each time the docker image is loaded (I typically use the --rm flag for dev-related images), the derivation needs to be rebuilt
<cap_sensitive>
And that could be slow
meh` has quit [Remote host closed the connection]
<manveru>
hm, is there some way to make a wildcard cert using the acme module?
<raghavsood>
Is there a typical way of dealing with an upstream package name change?
sheeldotme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maier_ has joined #nixos
<qyliss>
raghavsood: you can add an alias with the old name in pkgs/top-level/aliases.nix
<simpson>
If it's in a package registry, then I think we just treat it as a new package. If it's standalone, then probably add an alias from the old name to the new name.
<simpson>
qyliss++ speedy
<{^_^}>
qyliss's karma got increased to 0o107
maier has quit [Ping timeout: 264 seconds]
<KarlJoad>
Is there a way to manually override a config file that NixOS generates? I either don't want the file to exist, or be empty.
<zangi>
does nixos provide all binary packages?
<gchristensen>
nixos is a source/binary hybrid distro
pamplemousse has quit [Ping timeout: 272 seconds]
FRidh has quit [Quit: Konversation terminated!]
<qyliss>
KarlJoad: an environment.etc file?
<Mic92>
Mostly binary distro
kalbasit has joined #nixos
<KarlJoad>
qyliss: Sort of. It's a file that is NOT in /etc, but is used to configure the X11 server. It's essentially a hidden equivalent of the xorg.conf file.
maier_ has quit [Ping timeout: 256 seconds]
<qyliss>
Where is it? In a package output?
<KarlJoad>
Also, is there any reason the X11 server directs its log output to /dev/null? Why not write a log file?
maier has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<KarlJoad>
qyliss: It's an output of building NixOS with the services.xserver.enable option set to true. It only exists in the nix store. /nix/store/<hash>-xserver.conf
<qyliss>
KarlJoad: isn't that /etc/X11/xorg.conf?
<qyliss>
Oh, only with exportConfiguration = true;
<qyliss>
This doesn't look easy to override
<qyliss>
I think you would have to override services.xserver.displayManager.xserverArgs
<qyliss>
Which should also let you log if you want to
<qyliss>
But if you look at the definition of that option, there's an explanation for the logging to /dev/null.
<{^_^}>
[nixpkgs] @ejpcmac opened pull request #92854 → mixxx: install udev rules for HID controllers → https://git.io/JJYfe
<KarlJoad>
qyliss: You can symlink that xserver.conf file to be present as /etc/X11/xorg.conf, but by default that symlink isn't made.
maier has quit [Ping timeout: 260 seconds]
<qyliss>
Yeah I realised
<KarlJoad>
I'm not seeing that explanation. Mind linking it?
<qyliss>
# Log at the default verbosity level to stderr rather than /var/log/X.*.log.
<Baughn>
I'm getting this directly from one of the mpv developers. He's considering a fork, but also really tired of this shit.
<Baughn>
This is the third time.
<Baughn>
In the meantime, I'm not sure it's safe to update mpv without reading the commit log so...
<clever>
i also dont use vlc, because it has compatability issues with syncplay
<infinisil>
Let's go to #nixos-chat for this discussion
<Baughn>
I use syncplay a lot. :/
<Baughn>
What sort of issues?
orivej has quit [Ping timeout: 258 seconds]
<clever>
any time a vlc user begins playback, they forcibly rewind everybody to the start of the file
orivej has joined #nixos
<Baughn>
Augh. Ok. I'll just have to not do that, then.
<clever>
that also happens if they reconnect to the syncplay server, due to network problems
<Baughn>
I didn't notice any such issues while I was using it on Windows. Hmm.
chloekek has joined #nixos
<clever>
vlc also breaks every time you upgrade, because it uninstalls the scripts syncplay needs
<clever>
while mpv has better rpc stuff, and doesnt rely on a script within the player
<Baughn>
Maybe I'll just lock to the current mpv version, for now...
<simpson>
Baughn: This is hilarious. Noted, thanks. Yet another example of why the everyday user needs fine-grained capabilities in order to safely run other peoples' code.
<Baughn>
Yeah. I occasionally look around for options in that vein.
<Baughn>
Anything in the Nix space I should know about?
<Mic92>
Baughn: you can use nixos-shell for some stuff
<Mic92>
It still has access to your $HOME, but it is up to you what HOME points to
<Baughn>
Yes, but a media player? :)
<Baughn>
mpv should be fine with read-only $HOME access.
<simpson>
Depends on if you need mpv to invoke youtube-dl.
<Mic92>
Yeah media player might be not perfect for that.
<Baughn>
For youtube-dl it wouldn't need $HOME (outside of .mpv) at all, would it?
<clever>
i also have $HOME on zfs, so i could rollback such nasty things
<Mic92>
systemd-run might work. I think it can bind mount the system read-only
<Baughn>
So do I, of course, but that's not really the point.
<Baughn>
systemd-run is an idea.
<clever>
yeah, its still a bad thing
<chloekek>
Does Nixpkgs have infrastructure for building QtCreator projects? The software I want to build does not have any other build files, just a QtCreator project file.
<clever>
chloekek: i think thats just normal qmake, which works similarly to cmake and configure
<Baughn>
So another thing. VLC fails to play any h.264 files by default, because it detects VDPAU present.
<Baughn>
Yay.
<Mic92>
mhm systemd-run does not have the hardening of systemd yet
<Baughn>
I'm not using an nvidia gpu.
<clever>
Baughn: i have heard that vlc on rpi has full hw accel now
<Mic92>
Oh, wwait
<clever>
i think its in ffmpeg
<chloekek>
clever: Thanks, I will give qmake a try.
<Mic92>
-p should do it
<{^_^}>
[nixpkgs] @dasj19 opened pull request #92857 → gtk-sharp3: fixed build and removed broken flag. → https://git.io/JJYJD
<Baughn>
I think this might be vdpau-on-vaapi, but vaapi is broken by default
<Baughn>
And I'm not sure which of these four inconsistently named vaapi packages is the right one. :XD
<Baughn>
Suppose that's my job to fix now.
<chloekek>
clever: Thanks. I added qmake to buildInputs and it works perfectly.
<cole-h>
(should be nativeBuildInputs)
<chloekek>
I never bothered with the difference.
red[evilred] has joined #nixos
<red[evilred]>
"mpv should be fine with read-only $HOME access." - that's a helluvva statement.
<cole-h>
If you want to support cross compiling, you should bother.
<red[evilred]>
if one has to consider malicious developers, one has a problem.
<chloekek>
I don’t want to support cross compiling, so no problem. :)
<cole-h>
s/support/allow/
alexherbo2 has quit [Ping timeout: 256 seconds]
<cole-h>
(If you ever PR it to nixpkgs, it will most likely be a suggested change from whoever reviews it, just FYI.)
<lejonet>
erh, I think I'm getting an overzealous error when trying to use openvswitch vswitches: http://dpaste.com/3JWKS0B
<lejonet>
I'm just trying to assign a list of strings to the interfaces option of a vswitch...
<lejonet>
I'm completely stumped at what it wants me to do instead lol
knupfer has quit [Quit: knupfer]
<lejonet>
like, the "Do <blah> instead of <blah>" config example its spitting out is making no sense, that is not what is set in the config
<lejonet>
Yeah, and the assignment I have is a list
<Ke>
well the latter is list of sets, but I see documentation tellin list of strings
<Ke>
I have seen that error message, I don't know how it gets spawned though, module is not a language object I know of, might be higher level semantic checker, since your syntax is valid as nix syntax
<lejonet>
so is it mainly complaining that I essentially have networking = { vswitches = { vs0.interfaces = [ "enp5s0" ]; }; }; and it wants me to do networking.vswitches.vs0.interfaces = [ "enp5s0" ]; instead or something else?
sangoma has joined #nixos
<clever>
lejonet: those should be identical
<lejonet>
The github issue it references seems to be about battling usage of loaOf, and I can't find loaOf anywhere in the code that is supposed to create the vswitches
<Ke>
those are identical, but the on on pastebin is not
<lejonet>
clever: yeah I know, that is what vexes me
<lejonet>
Ke: yeah, how the hell it got the extra { unnamed = {...}; } I have nooo frikin clue
<Ke>
ah sos neither of those is your config?
<lejonet>
I have neither unnamed nor 1.1 anywhere in my configuration.nix...
<Ke>
so
<lejonet>
Yeah
<lejonet>
I'll pastebin the entirety of the networking snippet I have in my configuration.nix, so you guys can see it in its context
sheeldotme has quit [Read error: Connection reset by peer]
<lejonet>
Like, the only part that makes sense in the error message, is the first sentence "A list is being assigned to the option config.networking.vswitches.vs0.interfaces" xD
FRidh has joined #nixos
<clever>
lejonet: i think it wants line 41 to be vs0.interfaces.enp5s0 = {something};
<clever>
possibly just {};
<lejonet>
clever: worth a shot
<lejonet>
well it seems to have shut up about that now, now its whining that attribute 'extend' is missing at line 40 in /home/lejonet/sources/builddirs/desktop-nixpkgs/nixos/modules/system/boot/kernel.nix (which is in a git clone of nixpkg, that has nixos-unstable branch checked out)
<lejonet>
sigh... all I wanted was to go from 20.03 to nixos-unstable xD
<clever>
lejonet: did you modify boot.kernelPackages?
waleee-cl has joined #nixos
<lejonet>
clever: yes, I've gotten pkgs.linux_hardened there, so perhaps I've just forgotten the real naming? (I've used my custom kernel package in an overlay too long perhaps xD )
<lejonet>
so maybe I've mistakenly pointed only to the kernel, not the kernelPackage set
<clever>
lejonet: it must point to a linuxPackages, not a raw linux
<lejonet>
clever: yeah, makes sense
andreas303 has quit [Remote host closed the connection]
<lejonet>
this about picking stuff from your brain, when you haven't dealt with that stuff for some while, it messes things up :P
<Ke>
nixos unstable is quite broken for me too, not sure if my builds are obsolete or, if it's buggy
<lejonet>
Well, its called unstable for a reason :P
<Ke>
same things obviously work on 20.03
<{^_^}>
[nixops] @adisbladis opened pull request #1386 → resources: Improve error messages when no `config` annotation exists or type is wrong → https://git.io/JJYUH
andreas303 has joined #nixos
<lejonet>
The delta between a stable release and unstable can be quite large, is my past experience, so could be a myriad of things, both in packages and modules, that have changed
kalbasit has joined #nixos
<lejonet>
clever, Ke: Thanks for the brainfart brainstorming :P
<{^_^}>
[nixops] @adisbladis merged pull request #1386 → resources: Improve error messages when no `config` annotation exists or type is wrong → https://git.io/JJYUH
proofofkeags has quit [Remote host closed the connection]
alexherbo2 has quit [Ping timeout: 272 seconds]
proofofkeags has joined #nixos
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
_ris has joined #nixos
zupo has quit [Client Quit]
rail_ is now known as rail
cosimone has quit [Quit: Quit.]
o1lo01ol_ has joined #nixos
alp has quit [Ping timeout: 272 seconds]
cosimone has joined #nixos
alexherbo2 has joined #nixos
zalaare has joined #nixos
shibboleth has joined #nixos
<Unode>
Hi all, I'm trying to gsimplecal (a GTK3 app) using "nix-shell -p gsimplecal gnome3.gtk gnome3.gdk_pixbuf" and "GTK_DEBUG=interactive gsimplecal" but it fails to start with: "Could not load a pixbuf from /org/gtk/libgtk/theme/Adwaita/assets/bullet-symbolic.svg" and "This may indicate that pixbuf loaders or the mime database could not be found."
<Unode>
does anyone know what I might be missing to be able to use this?
o1lo01ol1o has quit [Ping timeout: 256 seconds]
turlando has joined #nixos
NeoCron has quit [Ping timeout: 260 seconds]
justsomeguy has quit []
<Baughn>
Unode: Do you have the Gnome desktop environment enabled?
<Unode>
not really
<Baughn>
Or in short, set `services.xserver.desktopManager.gnome3.enable = true;`
<Unode>
using i3
<Baughn>
You don't have to run it, but enabling it also installs all the supporting software to make gnome apps work.
<Unode>
any way around it without enabling the whole of gnome3 ?
<Baughn>
Like themes.
<Baughn>
Not really.
<Baughn>
(I mean, yes, but that'll be more fragile and I can't help you.)
<Unode>
I'm just trying to debug a theme issue.
<Baughn>
Enabling gnome3 doesn't install every app, just the 'core', but that's already a couple of GB
<Unode>
theme as in css issue
<qyliss>
You definitely should not have to install GNOME to run a GTK application
<Baughn>
If it actually is a pure GTK application, no.
<Unode>
To be specific
<{^_^}>
[nixpkgs] @Infinisil pushed to release-20.03 « yarn2nix: Don't pass yarnNix to mkDerivation (#92856) »: https://git.io/JJYTb
<Baughn>
Hm~
<qyliss>
gsimplecal works for me
<Baughn>
And me, but I'm on unstable
<qyliss>
On Sway, with no GNOME installed
<Unode>
I'm trying to figure out what is the CSS selector I should use to customize the font in gsimplecal, specifically of the timezone section
<Baughn>
KDE, gnome *not* installed. :P
<qyliss>
I'm also on unstable
<qyliss>
Unode: what Nixpkgs channel are you using?
<Unode>
stable 20.03
<Baughn>
Ok, try...
<qyliss>
Does gsimplecal from unstable work for you?
<KarlJoad>
But, I cannot seem to get it to type check.
fresheyeball has joined #nixos
<{^_^}>
[nixpkgs] @freezeboy opened pull request #92884 → molotov: init at 4.2.2 → https://git.io/JJYkE
<IsoLinCHiP>
Hi, I am trying to do a user only install using nix-user-chroot. I am following the instructions from https://nixos.wiki/wiki/Nix_Installation_Guide and have user name spaces enabled. However nix-user-chroot fails with an error stating the unshare failed.
turlando has quit [Read error: Connection reset by peer]
<IsoLinCHiP>
Can I try to reproduce the steps nix-user-chroot does with unshare, mount and nsenter manually to debug the problem?
turlando has joined #nixos
<drakonis>
unshare failed means you dont have permissions?
<drakonis>
you might have to elevate?
<drakonis>
IsoLinCHiP: need more details
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
<IsoLinCHiP>
oh, dang it, silly me I seemed to have checked the unshare command locally where it succeded, but I am actually trying to install it on a remote server.... derp *facepalm*
<drakonis>
well, there ya go
<drakonis>
the remote server likely does not have user namespaces named
<drakonis>
enabled then
stteevveen has quit [Ping timeout: 245 seconds]
<IsoLinCHiP>
clearly yes, ok, one sysctl later it now does. lets see if that helps :)
<KarlJoad>
Namely, how can I get an empty string of type `strings concatenated with "\n"`?
<clever>
KarlJoad: ""
<IsoLinCHiP>
awesome, that fixed it. install is under way, really curious to see how well I get along with nix :)
<KarlJoad>
That's why I thought. I seem to be doing something very wrong then. Because I can't get the similar thing in the example link to work on my system.
<drakonis>
cool beans
meh` has joined #nixos
orivej_ has quit [Read error: Connection reset by peer]
sigmundv has quit [Read error: Connection reset by peer]
orivej has joined #nixos
<Unode>
Thanks qyliss and Baughn , managed to find what I needed. A bit of a hack but got a solution. Cheers
<jakobrs>
It does seem like libvirt hard-codes the path of pkttyagent, on line 27 of src/util/virpolkit.h, I'll try to compile with that string altered and see what happens
iyzsong has quit [Read error: Connection reset by peer]
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
iyzsong has joined #nixos
confus has joined #nixos
FRidh has quit [Quit: Konversation terminated!]
<confus>
hi, just a quick question: what is an accepted way to define a meta-package, i.e. a package that when installed just installs a bunch of other packages (its dependencies and theirs recursively)?
red[evilred] has quit [Quit: Idle timeout reached: 10800s]
<Yaniel>
for what purpose?
<confus>
basically just shorthand and clean organization
<confus>
but all I've come up with feels hacky
<jakobrs>
confus: I guess you could use buildEnv
<Yaniel>
for your user environment you can just put stuff in packageOverrides
<jakobrs>
`buildEnv { name = "metapackage-name"; paths = with pkgs; [ package1 package2 package3 ]; }`
proofofkeags has quit [Ping timeout: 258 seconds]
<zangi>
why does emacs-nox get installed as `/nix/store/q9c9azh8...-emacs-26.3` instead of `/nix/store/q9c9azh8...-emacs-nox-26.3`?
<jakobrs>
is a package that "merges" (via symlinks) the contents of pkgs.package1, pkgs.package2, and pkgs.package3
<Ke>
as you can put packages in lists, you can just import a file with all you lists and apply from that
<Ke>
if you just want to put them in systemPackages
<slabity>
confus: It feels hacky because 'meta-packages' aren't really a 'thing' in Nix
<jakobrs>
Yes, that too, but then you can't uninstall them all at once
<confus>
> as you can put packages in lists, you can just import a file with all you lists and apply from that
<{^_^}>
error: syntax error, unexpected IN, expecting ')', at (string):318:25
<confus>
it's for a Nur repo were one should be able to install a bunch of packages in one command
<confus>
and I know it's hacky but it will be only temporary
<confus>
thanks for the help
tazjin has quit [Quit: Byeee]
orivej has quit [Ping timeout: 264 seconds]
tazjin has joined #nixos
jakobrs has left #nixos ["WeeChat 2.7.1"]
alter2000_ has joined #nixos
tazjin has quit [Client Quit]
tazjin has joined #nixos
fresheyeball has quit [Ping timeout: 264 seconds]
afreak has joined #nixos
fresheyeball has joined #nixos
<afreak>
ive just installed nixos, for the first time, and it seems im missing something https://kopy.io/smS9L#knmWwW3H0aaG0l this error comes when i run `stack build` also
philr has quit [Ping timeout: 264 seconds]
<slabity>
afreak: What does `env | grep NIX_PATH` result in?
<CrunchyChewie>
lol that's awesome, so you're referring to making changes in L31-39 correct? I guess you have to manually derive the version from the source, which will be immutable from that hash eh
<jared-w>
dumb question: I'm mildly nerd sniping myself on building docker images in nix. For the kinds of images I end up building, it's very convenient if I could just directly translate RUN cmds in a dockerfile into nix somehow, but dockerTools.buildImage's runAsRoot doesn't seem to be doing what I want (namely things like 'apt-get install' don't fire)
eoli3n_ has joined #nixos
<jared-w>
Is there a way to actually run those commands and get that (admittedly non-deterministic) behavior? Or is that just entirely beside the point and I should give up
zalaare has quit [Remote host closed the connection]
<infinisil>
jared-w: Can't do that because it's impure for one
<infinisil>
Everything you download with Nix needs to be gotten with a fixed hash
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JJYqx
o1lo01ol1o has quit [Remote host closed the connection]
<jared-w>
yeah, that's what I was thinking. I suppose I was just mildly confused on what runAsRoot was doing because all the rest of the commands were working just fine, just not the network stuff. Ofc reading the source makes it immediately obvious...
<KarlJoad>
I am trying to override services.xserver.config so that only MY configuration is used. I'm not sure how to do it.
o1lo01ol1o has joined #nixos
<KarlJoad>
I'm using lib.mkOption { apply = old: ""; }; right now, but I'm getting type errors.
virus_dave_ has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has joined #nixos
<jared-w>
infinisil: I mostly went down the rabbit hole because I keep running into a problem of having huge containers that, as a last step, run a nix-shell to populate a nix store with the environment needed to run certain things. It'd be nice if I didn't have a 2GB bloated blob at the end of a docker image that got 100% invalidated any time something in a shell.nix changed, though
knupfer has quit [Client Quit]
knupfer1 has joined #nixos
knupfer1 has quit [Client Quit]
knupfer has joined #nixos
knupfer has joined #nixos
virus_dave has quit [Ping timeout: 272 seconds]
virus_dave_ is now known as virus_dave
fendor has quit [Remote host closed the connection]
fendor has joined #nixos
<pbogdan>
KarlJoad: maybe assign your configuration with lib.mkForce? not sure if that would work for that option tho
o1lo01ol1o has quit [Ping timeout: 258 seconds]
justache has quit [Remote host closed the connection]
<pie_>
KarlJoad: i dont rememebr my way arond that code, you might want to poke around in the source code and ee whats going on, until someone gives you better advice
<pie_>
neither can i remember offhand how to find the code but hte relevant files end up in /etc/X11 or somesuch i think
<{^_^}>
nix#3799 (by jtojnar, 1 hour ago, open): hash '' has wrong length for hash type 'md5'
<KarlJoad>
pbogdan: mkForce compiled, so I think it may have worked. Need to reboot the machine to check.
justache has joined #nixos
ATuin has joined #nixos
<KarlJoad>
pie_: I know what's going on. NixOS generates a config file that doesn't behave the way I want X11 to behave, so I want to have an "empty" config to ensure defaults are used.
<KarlJoad>
pie_: The actual config doesn't end up in /etc/X11. It ends up in the store and the X binary uses a flag to that config file in the store.
<pie_>
*nod*
<KarlJoad>
pbogdan: The mkForce didn't do it either. I still end up with a config file with stuff in it.
<notgne2>
KarlJoad (chat.freenode.net): reading the module it looks like it is writing to /etc/X11/xorg.config, which means you could override it that way
<notgne2>
oh no actually, looks like thats an optional thing
<notgne2>
it looks like it's actually applied to `services.xserver.displayManager.xserverArgs` which I think is equally as pain in the ass to remove entries from
<KarlJoad>
And gets built together with this:https://github.com/NixOS/nixpkgs/blob/b1d87641a1586ec59fb77b6ba7d354e9a31f2539/nixos/modules/services/x11/xserver.nix#L713
<notgne2>
so I guess your best option is overriding it at the displaymanager config, so for instance on gdm so for instance `services.xserver.displayManager.job.environme.GDM_X_SERVER_EXTRA_ARGS`
<pbogdan>
hrm, not sure mkForce is not working for you then, sorry..
kalbasit has quit [Ping timeout: 272 seconds]
<KarlJoad>
That last one seems to have returned the thing I want.
<pbogdan>
(sorry for the spam)
hoijui has quit [Ping timeout: 256 seconds]
<cole-h>
If package A requires package B for both its provided library and binaries, should package B go in package A's nativeBuildInputs AND buildInputs?
dermetfan has quit [Remote host closed the connection]
dermetfan has joined #nixos
pamplemousse has quit [Ping timeout: 256 seconds]
rajivr has quit [Quit: Connection closed for inactivity]
<KarlJoad>
Man... You think it would be easier to override inputs to a file. Jeez.
<KarlJoad>
In the overriding of options with mkDefault, mkForce, etc. How are priorities handled? Higher priority number is higher priority, or the other way around?
<clever>
KarlJoad: that mkForce causes the $config on line 141 to be an empty string
eoli3n_ has quit [Ping timeout: 246 seconds]
<clever>
KarlJoad: but, what else is this code doing? stuff that ignores the config key
<KarlJoad>
That's exactly what I want to happen. I ran a `nixos-rebuild build` and that was the output.
<clever>
`nixos-rebuild build` wont apply changes to the running system
<clever>
it only builds them
<KarlJoad>
I just want the portion of the xorg.conf file that configures monitors/screens/devices to be empty.
<KarlJoad>
I am aware, but just checking that the configuration is done correctly is what I was checking for.
turion has quit [Ping timeout: 272 seconds]
proofofkeags has quit [Ping timeout: 256 seconds]
<clever>
what are the contents you got after doing build? how did you find the path to xserver.conf ?
<KarlJoad>
clever: If you use `services.xserver.exportConfiguration = true` then /etc/X11/xorg.conf is a symlink to that xserver.conf file.
<clever>
that symlink only updates when you `nixos-rebuild switch`
<clever>
build wont change the symlink
<KarlJoad>
After the build, I only get the fonts "Files" section and nothing below it.
<KarlJoad>
clever: I went into the result symlink to check that file. After a switch, the system is used this newly generated "empty" file.
<virus_dave>
What’s the right way to pre-populate the local nix cache with a derivation, but NOT add it to the profile? This is meant as an optimization for later purposes. Basically, i want something like “nix-env -i -b -A pkgs.FOO” for some set of FOO, but not adding it to the user’s profile
Rusty1 has quit [Remote host closed the connection]
<clever>
KarlJoad: where is the problem then?
<clever>
virus_dave: nix-build '<nixpkgs>' -A foo`
<virus_dave>
clever++
<{^_^}>
clever's karma got increased to 472
<virus_dave>
thanks!
<KarlJoad>
clever: There isn't one now. Previously I was trying to get the config attribute to be an empty string. The system wasn't doing what I wanted, so I wanted to confirm my thoughts on how the priorities worked.
<clever>
ah
<KarlJoad>
Now that I used mkForce, I got it to generate the config file the way I wanted it to.
domogled has joined #nixos
<KarlJoad>
So now, I have a fairly empty xorg.conf/xserver.conf file that does NO setup of devices/monitors/screens.
<{^_^}>
CrunchyChewie: You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ/nix-env_-iA for details.
<symphorien>
(Not directly related to your question but good to know anyway)
<bqv>
>>> source tree referenced by "git+file:///home/me/my/flake" does not contain a "/flake.nix" file
<bqv>
it does though :(
<bqv>
have i broken nix?
<symphorien>
Did you commit it ?
<bqv>
yes lmao
<bqv>
it's the same flake repo i've been using for like 4 months now
<bqv>
that's why i think i've broken nix somehow
<CrunchyChewie>
symphorien: noted, ty
<symphorien>
CrunchyChewie: a first debugging step is to replace your overlay with garbage and check that nix errors out
camsbury has quit [Remote host closed the connection]
<CrunchyChewie>
interesting
<CrunchyChewie>
when I add -A
<CrunchyChewie>
cohabitate in the dungeon with the rest of the broken people
<CrunchyChewie>
lol
<CrunchyChewie>
mt
<CrunchyChewie>
error:attribute 'emacs' in selection path 'emacs' not found
<CrunchyChewie>
symphorien: so, `emacs = nixpkgs.emacs.overrideAttrs ...` ?
<cole-h>
No
sangoma has quit [Ping timeout: 256 seconds]
<cole-h>
What are you doing?
Henson is now known as HensonAway
cr4y1 has joined #nixos
<bqv>
yeah legit, what is going on
<bqv>
i just cloned it fresh
<bqv>
it says there's no flake.nix
<bqv>
(there is!)
<cole-h>
Time to strace -s256 and see where it accesses flake.nix
<symphorien>
CrunchyChewie: no on the nix-env cmd line
<CrunchyChewie>
error: attribute 'nixpkgs' in selection path nixpkgs.emacs not found
alp has quit [Ping timeout: 272 seconds]
<bqv>
cole-h: ok that wasn't very useful, but it did alert me to the fact that it works with sudo (?!)
<bqv>
or not! it works in the fresh clone with sudo
<symphorien>
Then try what cole-h suggested
<bqv>
oh, i have a store path missing
<bqv>
the plot thickens
<symphorien>
(And is also suggested by the faq)
<cole-h>
>> nix-env -f '<nixpkgs>' -qaP -A emacs
dingenskirchen has quit [Remote host closed the connection]
asymptotically has quit [Quit: Leaving]
<CrunchyChewie>
yea it's still grabbing the old version
<virus_dave>
anyone know why the nixos/nix docker image does a single-user install of nix only, rather than multi-user? It seems like that locks me in to running stuff as root only if i want to use this as a base container image, without a whole lot of effort
<bqv>
the derivation i have missing has "unknown-deriver"
<clever>
bqv: "unknown-deriver" can also happen if you simply garbage-collect
<bqv>
`nix-store --verify --repair` fixed it, but there's no nix2 equivalent to that, is there
<clever>
bqv: `nix-store --verify --check-contents` will scan for corruption
<bqv>
clever: ah, ok
<clever>
--verify alone, will just search for a whole dir thats missing
<clever>
--repair will auto repair anything found to be wrong
<bqv>
iirc --check-contents will take hours though, right?
<clever>
depends on disk io and cpu speed
<clever>
it just reads every single file in /nix/store and hashes them
<clever>
so it also depends on the size of the store
<bqv>
(and regardless, i've disabled non nix2 commands so there's little use me learning them for now)
dingenskirchen has joined #nixos
<cole-h>
Pretty sure the nix2 analogue is `nix verify`
emmanuel` has joined #nixos
virus_dave has quit [Quit: virus_dave]
<bqv>
i thought that was just the verification part, not the repair
<bqv>
(my nix store is 47G, heh)
p1xelHer0 has joined #nixos
virus_dave has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
proofofkeags has joined #nixos
<p1xelHer0>
hi, (first time using freenode, so excuse me if this is posted in the wrong area) nix noobie here on macOS Mojave. I just did a reinstall after screwing up a bit... I ran the installer for multiusers, followed the instructions to remove my previous installation of nix. install went through fine. `nix-env --version` gives me `2.3.7`. BUT, whenever
<p1xelHer0>
I try to install any package, say the `hello` package I get the following: `installing 'hello-2.10'error: unable to download 'https://cache.nixos.org/8zjqdv2kjhz185di3w59f03h6p7b6lwx.narinfo': Problem with the SSL CA cert (path? access rights?) (77)`. What am I missing? Thanks!
<virus_dave>
hmm, looking at the installer script, it (multi-user install) seems to require systemd. I wonder if that was the reason. If so, how tight is that requirement, i wonder...
proofofkeags has quit [Ping timeout: 272 seconds]
<p1xelHer0>
the dumb thing is that I had it working 1 hour ago. The even stupider thing is that I don't remember if that was a multi-user install... perhaps I should try installing with the single user again to see what happens. Because I didn't have this problem on my first install.
<immae>
CrunchyChewie: an override is only scoped to where you define it while an overlay will "modify" the pkgs and everything that depends on it
<cole-h>
AFAIU, an override is changing a package. An overlay is replacing that package in your system's nixpkgs.
<CrunchyChewie>
aha, apologies for the confusion, I was told in here earlier I needed to override the default emacs pkg if I wanted a newer version
<cole-h>
You do
<cole-h>
But you need to apply that override to your nixpkgs
<clever>
an override is used to change the package in some way
<bqv>
the override is in the overlay :D
<clever>
an overlay can change how other packages see that package
<clever>
and you often put overrides into an overlay
* bqv
. o O ( yo dawg, i heard you like the prefix over- )
<immae>
This might be abit confusing but the first example here may help you CrunchyChewie : https://nixos.wiki/wiki/Overlays (you define an overlay that will modify the "google-chrom" package, and you do so by using an override)
lsix has quit [Quit: WeeChat 2.8]
<CrunchyChewie>
yea... some of my confusion stems from the docs, it seems to make a distinction between overlays and overrides, but isn't clear about them or when one should be used versus the other
johnny101m2 has joined #nixos
<samueldr>
just a note: packageOverrides != override
<bqv>
iirc packageOverrides are deprecated but also still work
lord| has quit [Ping timeout: 258 seconds]
<samueldr>
just to confuse things a bit more, packageOverrides is like a kind of overlay... override (and overrideAttrs) can be used with either overlays or packageOverrides
<samueldr>
(and probably _should_ be used, in case of doubt)
<samueldr>
overlays (and packageOverrides) basically change the package set, so it stays coherent
<samueldr>
.override returns a new package with the given arguments overriden, it can be used wherever a package may be used, but for best coherency in the system, it's best to do it in an overlay imo
cr4y1 has quit [Ping timeout: 258 seconds]
dermetfan has quit [Ping timeout: 260 seconds]
lord| has joined #nixos
<CrunchyChewie>
so if I want to change emacs from 26.3(available from core nixpkgs), to ~27, fetched from a different source url, I should use an overlay
<CrunchyChewie>
?
<bqv>
specifically, you should use the emacs overlay
<virus_dave>
that’s a good idea, especially if you want other packages to “see” that change
<{^_^}>
[nixpkgs] @siriobalmelli opened pull request #92900 → python3Packages.mac_alias: init at 2.0.7 → https://git.io/JJYsV
knerten has joined #nixos
justan0theruser has quit [Ping timeout: 246 seconds]
alter2000_ has quit [Ping timeout: 260 seconds]
HensonAway is now known as Henson
alter2000_ has joined #nixos
fendor has quit [Read error: Connection reset by peer]
fendor has joined #nixos
<lejonet>
What is the proper way to step-by-step go through a package that is built by buildGoPackage? There seems to clearly be some magic tha the buildGoPackage that simply isn't replicated by a nix-shell '<nixpkgs>' -A <pkg> and going through the phases
<{^_^}>
[nixpkgs] @maralorn pushed 2 commits to release-20.03: https://git.io/JJYsA
simba2 has joined #nixos
seku has quit [Quit: Connection closed]
lorimer has quit [Ping timeout: 256 seconds]
justan0theruser has joined #nixos
alter2000_ has quit [Ping timeout: 240 seconds]
alter2000_ has joined #nixos
o1lo01ol1o has joined #nixos
<bbigras>
I know I can use `nix-env -if https://github.com/me/my-thing/tarball/master` to install stuff from one of my git repo. Can I have more than 1 derivations with the same url?
<cole-h>
If your default.nix has `{ asdf = ....; jkl = ...; }`, you can add `-A asdf`, no?
<bbigras>
Probably. I wasn't sure if I could put them in the same file or separated.
<bbigras>
I'll give it a try
o1lo01ol1o has quit [Ping timeout: 264 seconds]
maier has joined #nixos
maier has quit [Ping timeout: 240 seconds]
werner291 has quit [Remote host closed the connection]
thc202 has quit [Ping timeout: 260 seconds]
mbrgm_ has joined #nixos
moet has joined #nixos
fendor has quit [Remote host closed the connection]