<jlv>
infinisil: that doesn't seem to match what I can add to `config` while importing `nixpkgs`. I don't see options like `allowUnfree` and `sandbox` is an option there.
<infinisil>
Ahhh right, sorry that's something completely different
<infinisil>
jlv: For nixpkgs config there isn't really a list anywhere. It's an open attribute set if you will, where any package can read any key they want and users can set any value they want
toppler has quit [Ping timeout: 240 seconds]
mexisme_ has quit [Ping timeout: 268 seconds]
<gchristensen>
nix run nixpkgs.nikscape ... I'm poisoned by niksnut
<jlv>
infinisil: I see. That makes sense. I was wondering why there weren't errors for unknown options, like with most nix option sets.
<infinisil>
#57123 is there to get rid of this though and replace it with a properly typed and structured value
<drakonis>
is it normal for firefox to break when dealing with updates?
<mdash>
break in what way
<drakonis>
Sorry. We just need to do one small thing to keep going.Firefox has just been updated in the background. Click Restart Firefox to complete the update.We will restore all your pages, windows and tabs afterwards, so you can be on your way quickly.
felixfoertsch23 has quit [Quit: ZNC 1.7.3 - https://znc.in]
felixfoertsch has joined #nixos
toppler has quit [Ping timeout: 268 seconds]
mexisme_ has joined #nixos
<mla>
defined an extra custom package in an overlay and set nixpkgs.overlays = [ (import /path/to/myoverlay.nix) ]; in my /etc/nixos/configuration.nix issue now is i want to use the same overlay for nix-shell, it seems like i can't just nix-shell -p mycustompackage though; any tips?
<mla>
or is there a better way to have a package that i can both install globally with configuration.nix for nixos and debug w/ nix-shell?
toppler has joined #nixos
Rusty1 has quit [Quit: Konversation terminated!]
fusion809 has quit [Remote host closed the connection]
toppler has quit [Ping timeout: 240 seconds]
cjpbirkbeck has joined #nixos
mexisme_ has quit [Ping timeout: 240 seconds]
fling has quit [Ping timeout: 240 seconds]
fling has joined #nixos
toppler has joined #nixos
growpotkin has quit [Ping timeout: 240 seconds]
wfranzini has quit [Remote host closed the connection]
skitz0_ has quit [Read error: Connection reset by peer]
<tdeo>
mla: what i do is make a symlink to it in ~/.config/nixpkgs/overlays/
mexisme_ has joined #nixos
mexisme_ has quit [Ping timeout: 250 seconds]
toppler has quit [Ping timeout: 268 seconds]
toppler has joined #nixos
gxt_ has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 240 seconds]
endformationage has quit [Ping timeout: 268 seconds]
abathur has quit [Ping timeout: 240 seconds]
toppler has quit [Ping timeout: 268 seconds]
palo1 has joined #nixos
<ivan>
Sigma: is pkgs/servers/dgraph/deps.nix generated with go2nix or something else?
<infinisil>
ivan: Yup
<infinisil>
(go2nix)
palo has quit [Ping timeout: 240 seconds]
palo1 is now known as palo
<contrun[m]>
What is the best way to install a cargo (or npm, or stack) package which is not available on nixpkgs? runCommand works, but I need a way to wrap the installed binary to nix store.
<ivan>
infinisil: thanks
toppler has joined #nixos
doooode20000[m] has joined #nixos
<wedens[m]>
mla: there is also overlays-compat hack
Lears has quit [Remote host closed the connection]
Lears has joined #nixos
<contrun[m]>
Adding `lib = { myTest = "123"; }; ` to configuration.nix does not seem to work. I ran `nix repl '<nixpkgs>'`, lib.myTest told me `error: attribute 'myTest' missing, at (string):1:1`
<contrun[m]>
What is the correct way to add a constant to lib?
<{^_^}>
[nixpkgs] @vbgl opened pull request #71313 → ocamlPackages.ppx_tools: enable at 5.3+4.08.0 for OCaml 4.09 → https://git.io/Je4pt
cinimod`` has joined #nixos
cinimod` has quit [Ping timeout: 276 seconds]
growpotkin has joined #nixos
m0rphism has joined #nixos
gxt_ has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
cinimod`` has quit [Remote host closed the connection]
Okinan has joined #nixos
cinimod`` has joined #nixos
<edef>
contrun[m]: you'll want to make an overlay
toppler has joined #nixos
<edef>
i'd swear we have decent docs for overlays somewhere but i can't remember where
<contrun[m]>
edef: It is not ideal for me to create a derivation for every package I want to install.
<eyJhb>
edef: I have never found decent docs for overlays :/
cinimod`` has quit [Ping timeout: 250 seconds]
<edef>
contrun[m]: ?
<edef>
contrun[m]: that's … that's how you use Nix
<edef>
runCommand should not have network access but might have it in unsandboxed Nix setups
<edef>
it will create non-reproducible packages if you do access the network in it
<contrun[m]>
edef: Let's say I want to install elba and ugdb. I can do that with cargo install elba and cargo install ugdb. If I am to use overlay for that, I need create two derivations. You concern is valid. But I am a little bit lazy.
<edef>
i'm not sure how this relates to your question about adding a lib attribute
<edef>
but generally, doing non-reproducible things like that will have unpredictable results
<edef>
you don't control the version of the package installed
<contrun[m]>
versions manually. Everytime when a new version is released, I need to update the nix file. It is too tedious for me.
<contrun[m]>
s/There are just examples/These are just examples/
<edef>
i guess
<edef>
userActivationScripts seems like the cleanest solution then, yeah
toppler has quit [Ping timeout: 268 seconds]
gkmngrgn has joined #nixos
<edef>
ugdb seems useful, i might PR it into nixpkgs
philr has joined #nixos
<contrun[m]>
edef: That is great. Thanks.
Tucky has joined #nixos
<bahamas>
django has a command called `collectstatic`. it collects static files from all its apps and places it in a directory specified in settings. I've set this directory to be in my project "$PROJECT/static_all". is there a way to run this command with Nix before the actual build? I tried to do it in preBuild, but Nix tries to run that command inside the nix store. of course it fails, because Django is not
<bahamas>
allowed to write there
chkno has quit [Ping timeout: 245 seconds]
<bahamas>
does nix copy everything to the store first? if that's the case, I will need to run the command outside of nix
hyper_ch2 has quit [Remote host closed the connection]
toppler has joined #nixos
<sphalerite>
bahamas: it does, but collectstatic would be allowed to write to $out
<sphalerite>
so if you can convince it to do that, that might be a good option
<exfalso>
Hi, I'm packaging up a kernel module for Intel SGX, but I can't get it to load or to even appear in current-system. The .ko is building fine, it's copied into $out/lib/modules/... fine, I added an .enable option which adds the package to systemPackages.environment as well as the module to boot.kernelModules. When I deploy this the module is copied over (it's in /nix/store/), however it's not available in
<exfalso>
/run/current-system/kernel-modules. Does anyone know what I'm missing?
<sphalerite>
exfalso: put it in boot.extraModulePackages
qubasa has quit [Remote host closed the connection]
<sphalerite>
exfalso: you probably don't actually need it in systemPackages
<sphalerite>
(unless there's some relevant user-space stuff in its /bin
chkno has joined #nixos
qubasa has joined #nixos
<exfalso>
sphalerite: thank you! it's now available, I can modprobe it
<exfalso>
but it didn't load automagically
<bahamas>
sphalerite: what would $out be?
<sphalerite>
exfalso: yeah, if it's in boot.kernelModules it will be loaded at boot, but it won't be loaded by nixos-rebuild switch I think
<sphalerite>
bahamas: the environment variable named out :)
<bahamas>
sphalerite: ok. I will rephrase :)
<exfalso>
sphalerite: is there any way I can set that up?
<bahamas>
sphalerite: I assume $out specifies where nix will write files at install time, right?
<exfalso>
yes, $out is that hashed /nix/store path the package files go to
<exfalso>
*derivation
<sphalerite>
bahamas: the django settings thing is a python script, right? You can maybe use os.getenv("out") or something in your settings
vika_nezrimaya has quit [Remote host closed the connection]
schjetne has quit [Remote host closed the connection]
cfricke has joined #nixos
toppler has quit [Ping timeout: 268 seconds]
marcusr has quit [Remote host closed the connection]
marcusr has joined #nixos
<bahamas>
sphalerite: yes, it's a python script, but I'm also confused about when I should run collectstatic
<bahamas>
should I do it in postBuild?
marcusr has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @FRidh pushed 284 commits to python-unstable: https://git.io/Je4jU
marcusr has joined #nixos
<{^_^}>
[nixpkgs] @FRidh merged pull request #71222 → Python: package set updates primarily for Python 3.8 support → https://git.io/Je4qH
<edef>
bahamas: they all run in the same environment, it's just a convenient system for slotting together various parts
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<edef>
bahamas: i can find two examples in nixpkgs of collectstatic, but both are in modules running it as part of a service rather than at build time :(
nikivi has quit [Read error: Connection reset by peer]
hyper_ch2 has quit [Remote host closed the connection]
nikivi has joined #nixos
<bahamas>
edef: maybe that's what I should do instead then
gila has joined #nixos
<bahamas>
at what point are they running the command?
<edef>
mailman-web is doing it in the start script
<edef>
this is overall a fairly suboptimal solution
<bahamas>
edef: you mean running in preStart or also doing it at build time?
<edef>
doing it at build time would be nice, because then we could just do an atomic symlink swap
<edef>
whereas these are `rm -rf`ing a directory and recreating it
<bahamas>
oh, you mean running collectstatic directly won't do
toppler has quit [Ping timeout: 268 seconds]
<edef>
they try to check if the version changed and only run collectstatic then
<bahamas>
I see. I guess they do that with `migrate` as well then
<edef>
i assume migrate runs DB migrations?
<bahamas>
correct
<edef>
i *think* running collectstatic with STATIC_ROOT set should work
<edef>
idk if django picks that stuff up from env vars by default
<edef>
it sounds like we'd have to do some kind of settings.py thing
<bahamas>
edef: you mean setting STATIC_ROOT to $out?
toppler has joined #nixos
<edef>
yeah
<edef>
i'm giving that a shot now
<adisbladis>
I'm doing something interesting for nixcon :)
<adisbladis>
We're doing collectstatic in the build instead
<edef>
cool, i'm trying to do that right now
<bahamas>
edef: I tried it but there's a glitch. I'm actually building a complete python env. collectstatic copies the files to /nix/store/python3.7-my-project/static_all, while the django project is copied to /nix/store/python-3.7-my-project/lib/python3.7/site-package/
<edef>
both the mailman and graphite modules could use some love of this variety
<edef>
so the django apps i looked at so far just do that, and add a django-admin wrapper named after the package
nikivi has joined #nixos
<bahamas>
edef: what are they doing exactly?
nikivi has quit [Read error: Connection reset by peer]
nikivi has joined #nixos
__monty__ has joined #nixos
<edef>
i forgot to take the meds that give me an attention span and working memory so i'll have to go refind it, but i think i spotted a withPackages that includes just the app's package
<edef>
but there's some cleverness involved to jam a settings.py in
<bahamas>
edef: yes, that's what I do. but I also specify my manage.py in setup.py. because I'm using django-configurations, I can't run django-admin directly
<clever>
sphalerite: i think its something wonky with my binary cache, either cachecache or binary-cache-v6.sqlite, restarting and deleting them fixes it
<xwvvvvwx>
clever: thanks!
<{^_^}>
[nixpkgs] @talyz opened pull request #71321 → Revert "nixos/gitlab: properly clear out initializers" → https://git.io/JeBvw
<tyrion-mx>
Hola, I am trying to install nixos on a new machine using an encrypted root. The problem I am encountering is that apparently grub does not get installed correctly. It tries to unlock a non-existent device. Can I force nixos to reinstall grub somehow?
<clever>
tyrion-mx: do you have a non-encrypted /boot ?
xkapastel has quit [Quit: Connection closed for inactivity]
<tyrion-mx>
also, I am using the same configuration.nix as my laptop, so I think it should work. Instead grub is not even asking me the password to unlock /boot. It is trying to use a non-existent device and then fails
<clever>
tyrion-mx: ive seen others having trouble with luks + lvm for /boot/
orivej has joined #nixos
<clever>
tyrion-mx: and if you need a plaintext for /boot/efi, you might as well just make /boot plaintext
<clever>
just mount nvme0n1p1 to /boot instead of /boot/efi, and remove efiSysMountPoint from the config, and it should work
nikivi has joined #nixos
<clever>
tyrion-mx: also, you would remove the whole initrd.keys.gz part, because /boot is now plaintext, and there is only one pw prompt to deal with
toppler has quit [Ping timeout: 240 seconds]
Zer0xp_ has joined #nixos
<tyrion-mx>
I used bootinfoscript ( https://github.com/arvidjaar/bootinfoscript ) to see what is going on. And on my laptop it shows that grub is unlocking the correct device and using cryptomount. On this other one it is totally different, so I suspect that it is not overriding the previous grub. Is that possible?
<tyrion-mx>
clever: I am using an msdos partition table without uefi
<clever>
tyrion-mx: boot.loader.grub.device must be pointing to the device you want grub installed on
<tyrion-mx>
Anyway the same thing is working perfectly on my laptop
<clever>
tyrion-mx: if its set to "nodev" then it wont update the MBR
<tyrion-mx>
clever: yes, I checked that. I put /dev/sda, it also says that it is installing grub in /dev/sda but apparently it is not working
lassulus has joined #nixos
<tyrion-mx>
so before giving up I wanted to try to erase grub or force a reinstall somehow
<clever>
tyrion-mx: its probably a bug in grub-install then, generating the wrong commands for grub to run on bootup
<clever>
tyrion-mx: when you run nixos-install, it always forces the bootloader to install
<clever>
tyrion-mx: and you can just mount everything to the right place again, and re-run nixos-install, to repeat that
<tyrion-mx>
Ok, I will try to update my installation image and see if it fixes the problem then
<tyrion-mx>
otherwise I will try with the previous stable if it is still possible to get it, because that worked fine with the laptop
<tyrion-mx>
thanks for the help
__Sander__ has joined #nixos
<clever>
tyrion-mx: and now that ive poked around at the bootinfo script you linked, i notice, my nixos was configured to overwrite the windows MBR with grub!
<tyrion-mx>
(that script is very nice)
<tyrion-mx>
clever: isn't that how it is supposed to be?
<clever>
tyrion-mx: nixos has its own dedicated disk
<clever>
so i was trying to keep the windows disk un-mutilated
<clever>
and just chainload the windows mbr via grub
<clever>
but this system has gone thru several major config changes, and things are a bit of a mess at the partition level
cosimone has joined #nixos
<jgt>
what is the correct way to dump a postgres database on a NixOS machine? I have the following in a Makefile, and the file I get appears to be an old version. Does NixOS cache the result of pg_dump? I also noticed that if I first remove that file, then nixops scp can't find the file after I dump it: http://ix.io/1Z41
<clever>
tyrion-mx: ah, on closer inspection, sda isnt windows, i think its a data disk with some nfts on it
<clever>
jgt: the > gets ran on the client side, not the server side
<clever>
jgt: so pg_dump will stream the entire dump over ssh, and write it to /tmp/foo.sql on the local machine
<clever>
scp then tries to copy /tmp/foo.sql from remote (doesnt get touched) to local
<jgt>
clever: …ohhhhh. Facepalm. Would this have been different if I had quoted the entire SSH command?
<{^_^}>
[nixpkgs] @flokli opened pull request #71322 → nixos/networkmanager: use tmpfiles to setup state directories → https://git.io/JeBfm
<clever>
jgt: yeah, if you quote the command, including the >, it will run remotely instead
<jgt>
well aren't I a dummy. Thanks clever!
<clever>
but the problem is already solved without quoting, so your best off just deleting the scp
<jgt>
yeah, I agree
<clever>
similar problems come up when people try to `sudo echo foo > /bar`
* jgt
is super excited to visit Brno next week
<clever>
i should probably not put off packing too much longer....
lassulus has quit [Quit: WeeChat 2.6]
<Taneb>
Is there anyone online who knows much about the internals of buildRustCrate? There's something that I'm confused about which I'd like to query
<tyrion-mx>
It looks for the correct volumegroup/volume and unlocks the disk with cryptomount
<clever>
tyrion-mx: and then for the new install, what does it say?
live_ has joined #nixos
<tyrion-mx>
clever: missing the cryptomount part and unlocking a volumegroup (which I even have to verify it is the correct one). I will upgrade the installation image and try that
<live_>
i experienced few installation issues with nix, but already the tools I installed didnt always work (missing/unfindable libs - perhaps because nix strays from FHS?)
<{^_^}>
[nixpkgs] @adisbladis opened pull request #71324 → boulder: init at release-2019-10-13 → https://git.io/JeBfg
gxt_ has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @FRidh pushed 134 commits to staging-next: https://git.io/JeBfV
isHavvy has quit [Read error: Connection reset by peer]
hyper_ch2 has quit [Remote host closed the connection]
Havvy has joined #nixos
hyper_ch2 has joined #nixos
psyanticy has joined #nixos
<rayascott>
Hi, is Nix still supported on the new macOS Catalina release? I'm not able to install Nix via the official documentation, because Catalina's system volume is now. read-only. Anyone else run into this issue?
<rayascott>
Thanks for the links everyone. I guess it's not a good time to be a macOS nix newbie. :-/
Havvy has joined #nixos
<FRidh>
rayascott: there's breakage on every osx release
<rayascott>
FRidh really? Hrrmm, and I'm part of the macOS Beta testing program. Ouch.
isHavvy has quit [Ping timeout: 240 seconds]
toppler has quit [Ping timeout: 268 seconds]
<jgt>
I'm a long-time Apple user, and tbqh Catalina sounds like hot garbage so far. Luckily I'm not looking to move from my current (running Sierra) at least until next year when they bring out the new machines with the non-broken keyboards.
<{^_^}>
[nixpkgs] @emilazy opened pull request #71332 → haskellPackages.clash-{ghc,lib,prelude}: mark unbroken → https://git.io/JeBJ9
<rayascott>
jgt it's been a very bumpy iteration.
toppler has joined #nixos
cswl has joined #nixos
rayascott has left #nixos [#nixos]
hc has quit [Ping timeout: 265 seconds]
toppler has quit [Ping timeout: 240 seconds]
zupo has joined #nixos
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
toppler has joined #nixos
gxt_ has joined #nixos
isHavvy has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
Havvy has quit [Ping timeout: 265 seconds]
gila has joined #nixos
exarkun has quit [Remote host closed the connection]
<eyJhb>
Can I do in-line stuff in packages, so that if option X is set in a module, then it should add X package? But there is already ABC packages added
<clever>
eyJhb: packages cant access nixos options, only other nixos modules can read them
<eyJhb>
clever: I have module X, which has 1,2,3 options. If Module 1 is enabled, then I would like package X to be included in the packages that it already includs
<edef>
i cooked up a little perl script to make submitting patches from ~/src/nixpkgs/outbox and it's working surprisingly well
<gchristensen>
neato
<tyrion-mx>
clever: anyway it is not setting up the cryptosetup part. That is the only issue. I think it might be a problem with the new nixos release. I am going to try with the old one if possible
<etu>
Hmm, I believe we should merge more PR's rather than creating them :D
<gchristensen>
eh, a little bit of one, a little bit of the other
<gchristensen>
gotta be zen about the PRs
knupfer has quit [Read error: Connection reset by peer]
<eyJhb>
Lets reach 0 open PRs! ;)
<edef>
hey, i was gonna merge most of these straight to master
<edef>
but then people got annoyed with me and argued we should open PRs even for small changes, so i'm complying
<edef>
most of these i will probably merge if they get no response after a week, they're tested changes
<eyJhb>
edef: what kind of things are they?
<gchristensen>
edef: <3 thank you :)
<{^_^}>
[nixpkgs] @edef1c opened pull request #71338 → nixos/nix-daemon: don't refer to deprecated option aliases → https://git.io/JeBTr
<edef>
missing deps, packaging cleanups
<edef>
i have them merged into my personal tree already
argc_ has joined #nixos
<argc_>
How does one convert a char (singleton string) to its decimal ascii value in the Nix language? I couldn't find anything in lib/strings.nix etc.
<edef>
i'm very curous what your use case is
<argc_>
generating port names for services from a short description string
<argc_>
port numbers*
toppler has quit [Ping timeout: 245 seconds]
<edef>
neat
<argc_>
i mean, i can handroll atoi w/ a lookup table or something but i figured i'd find something laying around somewhere that i could use
<{^_^}>
[nixpkgs] @edef1c opened pull request #71339 → i3blocks: handle multiple XDG_CONFIG_DIRS elements correctly → https://git.io/JeBTD
strobelight has joined #nixos
strobelight_ has joined #nixos
strobelight is now known as Guest80372
romildo has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tyrion-mx>
Any idea how to debug the grub install process? My cryptodisk is not being enabled even if I put everything in place. I tried with both 19.03 and 19.09. I used to be able to make this work (on my laptop it is currently working)
<cab404[m]>
<tyrion-mx "Any idea how to debug the grub i"> config?
<cab404[m]>
<tyrion-mx "cab404: basically copied from he"> Pls just copy or photo yours.
<cab404[m]>
I really don't want to debug a guide)
<{^_^}>
[nixpkgs] @ryanfitzsimon opened pull request #71344 → rrsync: Make perl a run-time dependency → https://git.io/JeBIg
toppler has joined #nixos
<tyrion-mx>
cab404: maybe your irc client is not working properly, please have a look at the logs of the channel. I sent the link to pastebin with my config already twice
FRidh has quit [Ping timeout: 276 seconds]
exfalso has joined #nixos
<exfalso>
Hi, I'm packaging up a systemd service from a .deb that already has a .service file defined. Is there any way I can reuse that service file, or do I need to translate it into a nix expr for systemd.services.*?
<edef>
yes, we can use those
<exfalso>
to be clear, that file is already set up to work with /nix/store
ddellacosta has joined #nixos
<edef>
systemd.packages = [ pkg ]; will pick that up
<edef>
first example that comes to mind is gnupg's user services
<exfalso>
edef: ah sweet, so as long as 'pkg' sets up the service file in /etc/systemd it works?
<edef>
it looks at $out/lib/systemd/*.service
<exfalso>
awesome, i'll take a look, thank you!!
<edef>
generally packages ship stuff in lib/systemd so that should pretty much work out of the box
<edef>
not sure how one packages deb stuff, but i can take a look at a derivation if you have one ready
argc_ has quit [Remote host closed the connection]
<exfalso>
I literally unpack the .deb and rewire it for /nix
exarkun_ has joined #nixos
exarkun_ has quit [Client Quit]
hyper_ch2 has joined #nixos
<tyrion-mx>
Ok, I managed to find the problem: grub does not support LUKS2 and LUKS2 is not the default on the cryptsetup bundled in the installation media. There is also an issue open: https://github.com/NixOS/nixpkgs/issues/65375
exarkun_ has joined #nixos
<{^_^}>
#65375 (by deliciouslytyped, 12 weeks ago, open): GRUB silently generates wrong config (cryptsetup default is now LUKS2)
toppler has quit [Ping timeout: 240 seconds]
<hyper_ch2>
tyrion-mx: what are you trying to accomplish?
<tyrion-mx>
Now you have to be careful when creating the encrypted drive not to use the (now default) LUKS2, otherwise grub will not be able to boot it
exarkun_ is now known as exarkun
<chris|>
I have a question about the rust build support: I am trying to override the version of a rust package (alacritty) which uses buildRustPackage. The build fails however when it tries to fetch new versions of dependencies via cargo. How do I get buildRustPackage to handle the Cargo.lock correctly?
<glittershark>
Hey all - asked about this yesterday but didn't get an answer - I'm trying to compile a C library with nix and cmake is failing with "undefined reference to `__libc_csu_init'"
<glittershark>
some googling about this points at a misconfigured glibc, but that doesn't sound right to me
<chris|>
gchristensen: open firefox, copy any text, open nvim in alacritty, ctrl+shift+v, see text appear :)
<chris|>
sorry, out of time for today, I'll try to look into it on the weekend. works with 0.2.9 but not 0.3.3
<glittershark>
clever: This is during the build of the package
<glittershark>
from any method - :b in nix repl, :s in nix repl, nix-shell
<glittershark>
etc
kl3 has joined #nixos
<gchristensen>
chris|: oh I think I know what is wrong
<clever>
glittershark: can you pastebin the current nix expr your using?
<glittershark>
yeah
<gchristensen>
chris|: your override, where you set `postPatch` is deleting the override I added to nixpkgs
<kl3>
when running -unstable, how can i get the nixpkgs commit id that corresponds to the currently used generation?
<gchristensen>
chris|: and your override is wrong for the newer version of alacritty
<kl3>
curl -L https://nixos.org/channels/nixos-unstable says nixos-20.03pre196836.1c40ee6fc44 so I assume 1c40ee6fc44, but is that correct? is thee a better way to get this information?
<elvishjerricco>
AmandaC: Nope. `hardware-configuration.nix` still has `virtualisation.virtualbox.guest.enable = true;`
freeman42x has joined #nixos
<colemickens>
I built the most ideal version of it and couldn't get it to work because their APIs were so unreliable that it just never worked e2e a single time without retrying steps. I'll keep trying every few weeks, but its unrewarding. If you're willing to dive in, I have a branch somewhere that should in theory work but probably needs to be troubleshooted if you want to run it currently. But yeah, it's more than capable of producing a
<colemickens>
working vhd and he rest of my scripts set it up as a user image with automatic replication, etc.
hyper_ch2 has quit [Remote host closed the connection]
<duairc>
colemickens: I've gone down that rabbit hole already :) The images produced by your branch, I can get them onto managed disks (and thus images), but the VMs always get stuck on "creating"
Tucky has quit [Quit: WeeChat 2.6]
toppler has quit [Ping timeout: 268 seconds]
<colemickens>
It depends on what branch you're using. It seems often people try with the wrong one. The PR is not the active branch
<exarkun>
Did I pick a revision with a broken udev expression or something?
<duairc>
colemickens: I'm using the azure branch of colemickens/nixpkgs, is that correct?
<colemickens>
Anyway, I've been booting and using VMs in the past few months with it, and when the failures are retried was working consistently. Honestly the tree at head should produce a working image, it's just not necessarily easy to know how to use it unless you know Azure. And there's some oddities around sudo not being enabled password-less, etc I guess.
<colemickens>
If you shoot me an email I can send along other details if you want to carry it over the line.
<colemickens>
Idk, I think there's a newer azure-pr branch that I was working to get perfect before pushing to the PR branch
waleee-cl has joined #nixos
<duairc>
Okay, thanks, I'll have a look at that. I appreciate your input. I might shoot you an email if I can't figure it out.
ixxie has joined #nixos
roconnor has joined #nixos
<roconnor>
Hi all. On my Battery and Brightness menu there is no longer a brightness slider. Any tips on troubleshooting this?
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
toppler has joined #nixos
gila has joined #nixos
sigmundv__ has quit [Ping timeout: 246 seconds]
<andi->
roconnor: what menus are you talking about? What kind of environment are you using? What version of NixOS?
* andi-
doesn't use any of the traidtional DEs
<roconnor>
KDE menu bar, the battery icon (power management IIUC) on nixos-20.03pre193701.262b328b0ba
captn3m0 has joined #nixos
growpotkin has joined #nixos
knupfer has joined #nixos
<{^_^}>
[cabal2nix] @Ericson2314 opened pull request #432 → Do the write thing for 32-bit android → https://git.io/JeBYe
<{^_^}>
[nixpkgs] @Profpatsch opened pull request #71348 → lib/trivial: add `pipe` function → https://git.io/JeBO7
jD91mZM2 has joined #nixos
<duairc>
colemickens: I got it working for what it's worth! I actually have no idea why it works now and not before. You're right that the tools are flaky and crap. Thanks for the work you did on that branch, and generally all the things you've posted in different places about your efforts, I couldn't have done this without that.
<duairc>
colemickens++
<{^_^}>
colemickens's karma got increased to 9
<silver_hook_>
Has anyone experienced any issues when updating to 19.09?
lord| has joined #nixos
toppler has joined #nixos
jreed has joined #nixos
<exarkun>
silver_hook_: Of course.
<exarkun>
silver_hook_: But you may want to try a more specific question.
<Taneb>
silver_hook_: some people have had issues with timesyncd, due to changing the system.stateVersion to "19.09" (please leave it at "19.03" whne you upgrade)
jb551 has quit [Remote host closed the connection]
<exarkun>
What are the `nixos-19.09` and `release-19.09` branches? And how are they different from each other?
knupfer has quit [Ping timeout: 264 seconds]
<gchristensen>
nixos-* is the channel state, release-19.09 is where commitsare made against
jb551 has joined #nixos
<Taneb>
exarkun: roughly, nixos-19.09 is the latest commit of release-19.09 that has passed some tests
<silver_hook_>
exarkun: It’s hard to specifically predict which potential issues I might encounter when I upgrade. If I had such a crystal ball, I woudn’t be asking ;) Which is why I’m asking if it’s a smooth update or are there things to be extra aware of
<tokudan>
do the changes in https://github.com/NixOS/nixpkgs/pull/71302/files look sane, i.e. is it ok to just remove the default dependencies from rngd? and is the conditional dependency from swap to rngd sane or is there a better way?
qubasa has joined #nixos
<gchristensen>
why privatetmp?
<tokudan>
gchristensen, with privatetmp there is a circular dependency on swap, so i have to remove that
<gchristensen>
mind documenting that in the code?
<tokudan>
sure, will do that
drakonis has quit [Ping timeout: 240 seconds]
drakonis1 has quit [Ping timeout: 250 seconds]
drakonis has joined #nixos
ntqz has quit []
drakonis1 has joined #nixos
toppler has quit [Ping timeout: 268 seconds]
cosimone has quit [Remote host closed the connection]
<dhess>
nice, that PR builds docker-machine-hyperkit as well
toppler has joined #nixos
jollyjester has quit [Quit: leaving]
<wedens[m]>
dhess: have you tried podman?
* adisbladis
has about a year ago
<wedens[m]>
also, IIRC you can run extracted docker container using systemd-nspawn
t58 has joined #nixos
<{^_^}>
[nixpkgs] @va1entin opened pull request #71350 → pythonPackages.geographiclib: init at 1.50 → https://git.io/JeBsC
<ajs124>
I'm trying to get nix to fetch from cache.nixos.org by default instead of my own binary cache, by setting Priority in nix-cache-info, but it still fetches from my own cache. Any ideas what I might be doing wrong?
<gchristensen>
I think there might be something to the ordering in the substituters list
<infinisil>
ajs124: Do both caches have the derivation you're requesting?
<ajs124>
Yes
<dhess>
wedens: I just found out about podman, but I need to do this from macOS.
<infinisil>
ajs124: And what value did you set your cache to?
<ajs124>
First my cache and then cache.nixos.org. For no real reason, though, that's just how it came out of my nixos config.
gxt has quit [Ping timeout: 260 seconds]
<Shell>
dhess: personally I'd spin up a VM and use https://github.com/containers/skopeo for interacting with registries + railcar or similar for running containers. alias railcar to ssh user@vm railcar on your host if you like.
<dhess>
Shell: yeah I can do all of this remotely on one of several NixOS build machines. I'm just trying to make it more convenient to do from the Mac.
<dhess>
it's honestly probably more trouble than it's worth. It's not something I need to do very often.
alexherbo24 has quit [Ping timeout: 240 seconds]
alexherbo24 has joined #nixos
toppler has joined #nixos
lukash_ is now known as lukash_|away
<dhess>
Anyone here using BuildKite?
* gchristensen
raises hand
<dhess>
gchristensen: opinions?
<gchristensen>
I like it a lot and the team is great
<gchristensen>
I would like to use it for some nixos foundation things, but am aware there are people who'd not like that, since it isn't foss (however, I'm not going to run Jenkins so ...)
<dhess>
gchristensen: Where are build products stored?
<gchristensen>
like `buildkite artifact`?
<dhess>
sure
<gchristensen>
they upload to S3 (you can use your own bucket if you want)
<dhess>
Hmm. If you use your own bucket, who holds the creds? (Assuming your build host isn't an EC2 instance.)
<gchristensen>
you do
<dhess>
so they go in ~buildkite-user/.aws/credentials or whatever?
<m1cr0m4n>
Hey folks. I just managed to get percona 8 to build on nixos. I have built the derivation by overrideAttrs on mysql8 package. If I'm going to contribute it back, should I make a standalone derivation or is it fine to base it off mysql8's? They are so similar I don't see the point copying everything.
shibboleth has joined #nixos
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<{^_^}>
nix#2925 (by mroi, 19 weeks ago, open): /nix will not be writable on macOS Catalina
<infinisil>
exarkun: With a fixed hash it always uses that one if it's cached, doesn't try to download it anew
<ajs124>
infinisil: I think that did it, yes. Although I kind of don't want to have to nuke that on all my hosts, but that's another problem for another day.
<tilpner>
ajs124: It might expire, check nix source if it's important to you
<exarkun>
infinisil: Okay. If I take the sha256 out it the behavior is unchanged, though.
<infinisil>
tilpner: Kinda surprised to see cachix caches using priority 41
live_ has joined #nixos
<exarkun>
So same question, less the sha256 attr.
<infinisil>
exarkun: How does behavior differ?
<dhess>
softinio: Migrating from a previous macOS is painful (see issue referenced above) but after that it works great.
<tilpner>
ajs124: There's a purgeInterval of 1 day in nar-info-disk-cache.cc
peanutbutter144 has joined #nixos
<exarkun>
infinisil: The former finds a previous success in the store and succeeds without building anything. The latter doesn't, tries to do a build, fails (in a way that might mean it's not using the specified nixpkgs but I'm not really sure).
<dhess>
softinio: if you have specific questions you should probably visit #nix-darwin
<tilpner>
ajs124: I don't know that it applies to cache priority though
toppler has joined #nixos
<exarkun>
They seem to be operating on the same nixpkgs sources, but not the same nixpkgs inputs :/ That makes sense as an explanation for why one of them does a build and the other does. Doesn't make sense as an explanation for why the build fails. :/
exfalso has quit [Ping timeout: 268 seconds]
noudle has joined #nixos
<das_j>
is there any doc on newScope?
<das_j>
and the splicing in general?
<dhess>
OK, anyone here use podman with NixOS?
<qyliss>
I do
toppler has quit [Ping timeout: 250 seconds]
<dhess>
qyliss: does it need a module, so that it can get the registries etc?
captn3m0- has quit [Ping timeout: 240 seconds]
<dhess>
I'm just trying to run it in nix-shell but first thing it does is complain that no registries exist in /etc/podman/whatever
<qyliss>
Well, you need to set up its config files somehow
<dhess>
/etc/containers
<qyliss>
Either in /etc or XDG_CONFIG_HOME
<qyliss>
I can share my module with you...
<dhess>
qyliss: looks like there's no module in nixpkgs?
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/JeBck
<gchristensen>
if you're interested in haskell packaging, check out peti's live stream where he works on and fixes haskell packages! https://www.twitch.tv/peti343
<{^_^}>
[nixpkgs] @peti merged pull request #71094 → universum 1.6.0 is no longer broken → https://git.io/Je8up
<{^_^}>
[nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/JeBcY
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to release-19.09: https://git.io/JeBcO
<mrSpec>
Hi! I managed o configure br0 finally (samba was somehow messing). But I'm stuck step later - as only br0 is configured and gets IP, I also dont have eth0 configured at initrd. My current config: https://paste.q3k.org/paste/q1GMeBpC#gUOxqpMlhm1UElqd2NOExuSDKw+kpAF-O3qtOowsDh3
<mrSpec>
Can I somehow configure br0 or eth0 in boot.initrd.network?
<{^_^}>
[nixpkgs] @peti pushed 27 commits to haskell-updates: https://git.io/JeBCs
knupfer has quit [Client Quit]
<{^_^}>
[nixpkgs] @peti pushed 19 commits to haskell-updates: https://git.io/JeBCZ
<NinjaTrappeur>
Hey, I have a workflow-related question. I am fixing a nixos test on master involving some modifications in nixpkgs. This nixos test is depending on a lot of packages that did not hit the nixos cache yet. Is there a trick to leverage the cache at least to some extent?
wormwood has joined #nixos
wormwood has quit [Changing host]
<NinjaTrappeur>
And avoid my poor 6 YO computer to painfully rebuild the whole world?
<edef>
you can cherry-pick onto latest nixos-unstable
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #71341 → nixos/rabbitmq: use a literalExample for example configItems → https://git.io/JeBkT
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JeBCV
<edef>
(you should probably use something more sensible than my thirty second perl fever dream)
<edef>
(but it works)
toppler has joined #nixos
<dhess>
gchristensen: in your repo here: https://github.com/grahamc/packet-nix-builder I assume that buildkite.yml is the BuildKite pipeline and since this runs on an agent on a NixOS box, nix takes care of installing all the dependencies needed for the build?
slack1256 has quit [Ping timeout: 240 seconds]
<gchristensen>
dhess: yeah, my buildkite builders have a few deps preinstalled but I think this one is 100% self-contained minus creds