<{^_^}>
[nixpkgs] @jonringer pushed commit from @bhipple to master « hyperfine: upgrade cargo fetcher and cargoSha256 »: https://git.io/Jv8TH
<{^_^}>
[nixpkgs] @rnhmjoj opened pull request #80228 → tamsyn: generate otb and split output → https://git.io/Jv8TQ
jluttine_ has quit [Ping timeout: 240 seconds]
cyphase has quit [Ping timeout: 268 seconds]
jluttine_ has joined #nixos
m0rphism has joined #nixos
<{^_^}>
[nixpkgs] @jonringer merged pull request #80225 → ncspot: fix build by migrating off legacy fetchCargo → https://git.io/Jv8T0
<{^_^}>
[nixpkgs] @jonringer pushed commit from @bhipple to master « ncspot: fix build by migrating off legacy fetchCargo »: https://git.io/Jv8Th
<{^_^}>
[nixpkgs] @jonringer merged pull request #80221 → silicon: fix build by migrating off legacy fetchCargo → https://git.io/Jv8Uh
<{^_^}>
[nixpkgs] @jonringer pushed commit from @bhipple to master « silicon: fix build by migrating off legacy fetchCargo »: https://git.io/Jv8ke
<{^_^}>
[nixpkgs] @jonringer merged pull request #80223 → xprite-editor: fix build by migrating off legacy fetchCargo → https://git.io/Jv8Tk
<{^_^}>
[nixpkgs] @jonringer pushed commit from @bhipple to master « xprite-editor: fix build by migrating off legacy fetchCargo »: https://git.io/Jv8kv
<{^_^}>
[nixpkgs] @jonringer pushed commit from @bhipple to master « bat: upgrade cargo fetcher and cargoSha256 »: https://git.io/Jv8kn
<evanjs>
And so it begins 😵
<evanjs>
Was wondering why silicon was getting updated in its own commit. Either way, nice to see some improvements in the Nix/Rust ecosystem!
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Jv8kR
Andrey6 has joined #nixos
<evanjs>
*in its own PR
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
<bhipple>
evanjs: :) At this stage it's supposed to be a no-op performance optimization, but ~10 packages suffered from the bug introduced and fixed by https://github.com/NixOS/nixpkgs/pull/80153
<{^_^}>
#80153 (by bhipple, 1 day ago, open): rust: Fix for legacy fetch cargo
<bhipple>
For the ones that were broken on master, I sent individual PRs fixing them ahead of time, since the fix is to do the upgrade we want to do anyways
jasongrossman has joined #nixos
<evanjs>
bhipple: sure I remember reading about it a bit before. And I can’t say I enjoyed the current state of vendored dependencies, either 😝
<bhipple>
The current state of vendored dependencies is still pretty bad -- though much less bad now in terms of disk usage and mirror-ability of src dirs, at least . . .
<bhipple>
takes forever to recompile the full stack of libraries for each app :'(
<Andrey6>
Hello, could anybody help me.How can I install a services but do not start it when my system starts.If I install postgres as servie "services.postgresql.enable = true",it will be automatically started and start drawing some system resources.I want to be available as service and start it manually via "systemctl start postgresql.service"I have walked
<Andrey6>
through documentation and cannot find relative information.
<Andrey6>
Any hints are welcomed
jasongrossman has quit [Client Quit]
m0rphism has quit [Ping timeout: 240 seconds]
<cole-h>
Andrey6: Have you tried setting `enable = false`?
<cole-h>
AFAICS, `enable = true` is the same as `systemctl enable <unit>`
delli3 has quit [Read error: Connection reset by peer]
<bhipple>
Andrey6: from looking at the implementation, enable will install and enable the systemd unit,
<evanjs>
Either that or WantedBy, can’t remember off the top of my head. Anyhow, tons of options for systemd, so you can poke through those and just sub <service> for PostgreSQL afaik
<Andrey6>
"Failed to start postgresql.service: Unit postgresql.service not found" maybe I can reestart
<evanjs>
Okay yeah definitely not targets omg. systemd.services.<name>.after or etc
<evanjs>
Eg `systemd.services.postgresql.after`. I figure there are some examples on GitHub
<bhipple>
The usual assumption is that if you're enabling it and creating the systemd unit file, you want it installed and enabled. This seems like a reasonable assumption for most use cases to me, but you could consider adding an enableSystemd boolean (?)
<bhipple>
Or, alternatively, just doing some post-start stop hook hack :D
bhipple has quit [Remote host closed the connection]
<evanjs>
Yeah sorry it’s probably systemd.services.<name>.wantedBy that you want IIUC. You can customize systemd services in NixOS with plenty of options, and if the default is multi-user.target, maybe setting that to nothing will disable the service. Haven’t tried it yet though
<Andrey6>
It's not clear about "after", there is no such an options
<evanjs>
Lemme try on mine
jluttine_ has quit [Ping timeout: 272 seconds]
bhipple has joined #nixos
<evanjs>
Yep. systemd.services.postgresql.wantedBy is by default multi-user.target - let me see what changing that to [] does
<Andrey6>
do you mean services.postgresq.enable = []?
jluttine_ has joined #nixos
<evanjs>
no, I'm referring to the options available for systemd services, of which postgres is
<evanjs>
there is no option for postgres to "not run at startup", but you should be able to modify the service in systemd to achieve such behavior
<evanjs>
you can see which options are available (or query them) using e.g. `nixos-option systemd.services.postgresql`
<evanjs>
it is kind of annoying how the search works atm
<evanjs>
try systemd.services.<
<Andrey6>
nixos-option systemd.services.postgresql works
<bhipple>
One thing you'll learn real fast is that, while the manual is great for dipping your toes in and getting a sense for the lay of the land, you'll sooner or later want to just read the code. NixOS is super hackable too, so it's not that hard to understand/modify/rebuild, and you can atomically backout at boot w/ grub if you hose it too badly.
<Andrey6>
sorry, nixos-option systemd.services.postgresql works
<bhipple>
That said there's ongoing work to try to improve the quality of documentation :)
<cole-h>
Yeah, you can't have the same name -- `attribute Environment at ... already defined at ...`
<evanjs>
it wasn't working for me because I have pgmanage enabled, which wants postgresql.. so it starts it if it isn't started already lol
<Andrey6>
Thank you @evanjs , cool
<Andrey6>
by the way, where did you get these options from nix sources?
ryanartecona has quit [Quit: ryanartecona]
<evanjs>
if you search "systemd.services.<" or "systemd.services wantedby", etc, on the website (https://nixos.org/nixos/options.html#systemd.services+wantedby) or just `man configuration.nix` that should get you most of them
<evanjs>
you can validate what these options are by opening a nix repl via `nix repl <nixos> <nixpkgs/nixos>` and then e.g. systemd.services.postgresql.enable, or run e.g. `nixos-option systemd.services.postgresql.enable`
<Andrey6>
nixos-option systemd.services.postgresqlerror: At 'postgresql' in path 'systemd.services.postgresql': Attribute not foundAn error occurred while looking for attribute names. Are you sure that 'systemd.services.postgresql' exists?
<Andrey6>
«error: The option `services.postgresql.wantedBy' defined in `/etc/nixos/configuration.nix' does not exist.»
<evanjs>
yes, you need systemd in that one
<evanjs>
e.g. systemd.services.postgresql.wantedBy
<evanjs>
not sure why it isn't finding it via nixos-option, though
<cole-h>
Aha, I should have just tried making it a list of env vars :D
<Andrey6>
or I should redefine the package itself
<evanjs>
Andrey6: you do not need to redefine the package
<cole-h>
(this was with home-manager's systemd stuff, so `environment = { VAR = "var"; };` wouldn't have worked)
<Andrey6>
The option `services.postgresql.wantedBy' defined in `/etc/nixos/configuration.nix' does not exist.(use '--show-trace' to show detailed location information)
<evanjs>
yes, you need systemd in front of it
<evanjs>
e.g. `systemd.services.postgresql.wantedBy = lib.mkForce [ ];`
<Andrey6>
and I have
<Andrey6>
{ config, pkgs, lib, ... }:
h0m1 has quit [Ping timeout: 272 seconds]
<Andrey6>
in my config as parameters
marcusr has quit [Remote host closed the connection]
h0m1 has joined #nixos
Andrey6 has quit [Remote host closed the connection]
marcusr has joined #nixos
Yannik_Sc has quit [Quit: Yannik_Sc]
Andrey93 has joined #nixos
<Andrey93>
Thanks, systemd.services.postgresql.wantedBy = pkgs.lib.mkForce [ ]; works now
<Andrey93>
That is what I need
<evanjs>
Andrey93: sweet! glad that worked out! And yeah you can do just about anything with systemd services in nix in a declarative manner like that
infty_ has joined #nixos
justanotheruser has quit [Ping timeout: 260 seconds]
<Andrey93>
What do you think could flatpak, packages be installed in declarative manner? I am going to use NixOs ad the main system, I have troubles with some packages rarely, have not enough understanding to patch packages.
jonten has quit [Ping timeout: 240 seconds]
infty has quit [Ping timeout: 265 seconds]
<Andrey93>
Also I have seen some code of converting deb packages. Can a function be written to convert any debian packages? Probably a lot of unused dependencies can be at the function but it is ok
<Andrey93>
I understand that probably you want to avoid these kind of stuff and have native packages, but if you have ways to install flatpak and debian, are there any reason to use other system than NixOS
<bhipple>
Andrey93: I agree though. One thing to be aware of is that NixPkgs is already huge, so there's a pretty good chance that what you're looking for is already packaged: https://repology.org/repositories/graphs
<bhipple>
Nix has things like buildFHSChrootEnv that can allow you to just unpack and run binary .deb files (e.g., steam, spotify, etc.), but I'm not sure if it's been tied together into a pretty bow that gets everything you need without any effort. Would be cool tho
<Andrey93>
Cool, we are leaders )
<Andrey93>
I have already use flatpak,
<Andrey93>
I want something like services.postgresql = { extraPlugins = with pkgs.postgresql_11.pkgs; [ postgis ]; };}
<Andrey93>
to install flatpak declaratively
<bhipple>
There's a similar NixOS thing for installing/running Docker containers declaratively; haven't looked into flatpack or postgresql plugins myself tho
<gchristensen>
can I gentl ytell Nix to stop thinking the binary cache doesn't have something?
<Andrey93>
I have seen some deb converter packages, they require some work, I was wondering if it is possible to have standard deb converter
<bhipple>
gchristensen: Is there some kind of ttl option like the one that exists for the builtins fetchers?
<gchristensen>
not sure... :/
<gchristensen>
aahh narinfo-cache-negative-ttl
<gchristensen>
woo! thanks
<bhipple>
In return ... do you know if there's any documentation on how to get Route53 setup properly in NixOps with my ec2 instances?
<gchristensen>
hm
<bhipple>
I'm trying to get the deployment.route53 hostName setup to be in my subdomain, but the one setup by NixOps is busted. I've setup one manually by hand on the AWS UI and it works tho
<gchristensen>
nixops-aws supports ec2 & route53 iirc, so then I think just making a record for resources.yourmachine.publicIpv4?
<bhipple>
It's deployment.route53.route53.hostName = "foo.bar.com", I think
<gchristensen>
oh interesting I don't know about that
<gchristensen>
I was thinking, like, a resources.route53record thing
<bhipple>
Oh wait lol . . . it's note route53.route53, just route53 . . . thanks for being my rubber duck!
<gchristensen>
woo!
<bhipple>
working now haha
iyzsong-x has joined #nixos
mounty has joined #nixos
iyzsong has quit [Ping timeout: 268 seconds]
<bhipple>
When I do a remote build, is it possible to tell nix to copy packages from the binary cache instead of (or in addition to) copying from localhost's nix store?
<gchristensen>
not sure, sometimes I'll nix-copy-closure a .drv with --use-substitutes ...
drakonis has joined #nixos
<clever>
but nix-copy-closure wont just copy what the remote end needs to build X
<clever>
it will copy the build-time deps, for everything in the closure of X!
<clever>
(if you tell it to include outputs)
<clever>
the only way to replicate what a build machine is doing, is to actually add it as a builder, or add the source machine as a substituter
bhipple has quit [Ping timeout: 260 seconds]
justan0theruser has joined #nixos
justanotheruser has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @domenkozar pushed 2 commits to release-19.09: https://git.io/Jv8Id
<{^_^}>
[nixpkgs] @FRidh pushed commit from @r-ryantm to staging « vim: 8.2.0013 -> 8.2.0227 »: https://git.io/Jv8Y9
<Izorkin>
Not worked nix edit. error: experimental Nix feature 'nix-command' is disabled. Used nix 2.4pre7250_94c93437. How to fix?
<bhipple>
Izorkin: I've come across this before, and just patched out the line throwing that exception in the cc file
<bhipple>
would be nice to know if there's a "real" way to remove it. Presumably the release.nix has the answer, since the released binaries don't spew this error
zupo has joined #nixos
lambda-11235 has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @bhipple opened pull request #80251 → cntr: upgrade cargo fetcher and cargoSha256 → https://git.io/Jv8Yh
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
jared-w has quit [Ping timeout: 245 seconds]
ajmcmiddlin has quit [Read error: Connection reset by peer]
chessai has quit [Read error: Connection reset by peer]
jared-w has joined #nixos
fnords has joined #nixos
chessai has joined #nixos
ajmcmiddlin has joined #nixos
danguita has quit [Ping timeout: 240 seconds]
adamse has quit [Ping timeout: 245 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
adamse has joined #nixos
<{^_^}>
[nixpkgs] @Valodim opened pull request #80266 → gnupg: apply patch to allow import of key updates without user ids → https://git.io/Jv8ZW
danguita has joined #nixos
<{^_^}>
[nixpkgs] @danbst merged pull request #80154 → shorewall: fix warnings due to types.loaOf being deprecated → https://git.io/JvlKF
<{^_^}>
[nixpkgs] @danbst pushed commit from @ju1m to master « shorewall: fix warnings due to types.loaOf being deprecated (#80154) »: https://git.io/Jv8Zl
o1lo01ol1o has quit [Ping timeout: 265 seconds]
gxt has joined #nixos
Palpares has quit [Remote host closed the connection]
<linarcx>
Guys, i enter into nix-shell with lorri and direnv and i can locate cmake with `whereis cmake`, But if i want to read it's man page: `man cmake`, it'll gives me an error: ` man: No entry for gcc in the manual.`
o1lo01ol1o has quit [Ping timeout: 268 seconds]
orivej has quit [Ping timeout: 268 seconds]
xelxebar has quit [Remote host closed the connection]
<turbo_MaCk>
linarcx: nix-shell -p gcc -p man works for me
<{^_^}>
[nixpkgs] @bennofs pushed commit from @bhipple to master « nix-index: upgrade cargo fetcher and cargoSha256 »: https://git.io/Jv8WN
<linarcx>
turbo_MaCk: You are on nixos?
<turbo_MaCk>
man pages for gcc are likely part of GCC package. specify GCC as a dependecy if you want to have full package available. stdenv might have some choped version
<turbo_MaCk>
liarcx: but when I do nix-shell -p man -p less --pure then `man man` works for me so I think this is more likely issue with these packages
<simpson>
cmake doesn't appear to have man pages. gcc does, but in a separate `gcc.man` output. Currently trying to figure out why that output doesn't have man pages for the gcc command.
<bennofs>
is there a mechanism that clean up /boot when running nix-collect-garbage -d? How does that work?
jonten has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cole-h has joined #nixos
roconnor has joined #nixos
<roconnor>
Does anyone have a recent problem where the Konsole app is restored after relogging in but all the shells are sh instead of bash? Newly opened Konsoles are bash; it is just the restored ones that are sh.
jmeredith has joined #nixos
remirol is now known as lorimer
<LnL>
bennofs: might be misremembering, but I think switch after a gc will cleanup
<{^_^}>
[nixpkgs] @jonringer pushed commit from @bhipple to master « cntr: upgrade cargo fetcher and cargoSha256 »: https://git.io/Jv80v
<{^_^}>
[nixpkgs] @jonringer merged pull request #80216 → pijul: fix build by migrating off legacy fetchCargo → https://git.io/Jv8UZ
<{^_^}>
[nixpkgs] @jonringer pushed commit from @bhipple to master « pijul: fix build by migrating off legacy fetchCargo »: https://git.io/Jv80f
waleee-cl has joined #nixos
Yaniel has joined #nixos
__monty__ has joined #nixos
<{^_^}>
[nixpkgs] @edef1c opened pull request #80279 → doc/ociTools: exec is a shell builtin, not an external command → https://git.io/Jv80s
<Ianulus>
Where does stuff get written to on "nix-env -i someApp"?
<Ianulus>
Meaning: does it change a .nix file like configuration.nix?
<cole-h>
AFAIK: No. I believe all it does is build (or download) `someApp` and adds it to your profile
LysergicDreams has joined #nixos
linarcx has joined #nixos
<Ianulus>
So, my profile is not declarative, but imperative?
<LnL>
yeah, it's an imperative frontend for installing stuff
<cole-h>
If you use nix-env to install, yes. (Veterans, feel free to jump in and correct me)
<{^_^}>
[nixpkgs] @rasendubi opened pull request #80280 → emacsPackages.org-roam: init at 0.1.1 → https://git.io/Jv800
<Cadey>
how do i use a nix expression for a non-interactive shell?
<cole-h>
If you want it to be declarative, you can add it to your system packages in `configuration.nix` or home packages in `home.nix` (with home-manager)
<cole-h>
(I'm unfamiliar with how to make it declarative per-user without home-manager)
<infinisil>
Cadey: No idea what you mean
kahiru has quit [Ping timeout: 268 seconds]
<infinisil>
,declarative cole-h Ianulus
<{^_^}>
cole-h Ianulus: There are multiple ways of managing declarative profiles. 1) Attrset, compatible with imperative use of nix-env https://git.io/fAQHW ; 2) buildEnv, providing more control over the paths that are linked into the profile https://git.io/fp0aU ; 3) home-manager, providing nixos-like config for your ~ https://github.com/rycee/home-manager
<LnL>
there's users.users.<name>.packages on nixos
<{^_^}>
[nixpkgs] @jonringer pushed to master « manual: use quoted homepage urls »: https://git.io/Jv80g
<Cadey>
i have a pinned version of nixpkgs that has things like kubectl in it that doesn't exist in nixpkgs-stable, how do i make nix-shell use this from the context of a shebang line?
<cyris212>
So I've just reinstalled NixOS on my notebook. Now whenever I `nixos-rebuild switch` and then reboot the old environment remains active.
<ar>
it would seem that your bootloader configuration doesn't get updated
<cyris212>
ar: That's way I though. `--install-bootloader` did not help.
<qyliss>
cyris212: is your boot partition mounted at /boot?
<cyris212>
Yeah it is.
<infinisil>
cyris212: What's the full output for `nixos-rebuild switch`?
MmeQuignon has joined #nixos
<Ianulus>
I'm trying to get vscode to work. I've added allowUnfree to configuration.nix, added vscode as a system package, and it does show up in the store.
<infinisil>
cyris212: That's probably nothing to worry about, try to run that command in $HOME instead
bhipple has joined #nixos
<dingenskirchen>
Ianulus: as a workaround, have you tried using vscodium (also in the repos under that name)? it's basically vsc but not marked as unfree
<Ianulus>
The nixpkgs manual state: "A user's of nixpkgs configuration is stored in a user-specific configuration file located at ~/.config/nixpkgs/config.nix" but I don't have that.
<infinisil>
cyris212: Okay but one interesting thing is that the path returned by `nixos-rebuild build` is the same as your last profile
<infinisil>
cyris212: So it not changing anything makes sense, because there are no changes
<cyris212>
^^^
<Ianulus>
dingenskirchen: I haven't, thanks for that! However, I'd really like to solve the underlying issue.
<cyris212>
I could try to switch to GRUB.
<dingenskirchen>
oh, I totally get that :V — You said you don't have the .config/nixpkgs/config.nix file?
<infinisil>
cyris212: Why? Is there anything not working with systemd-boot?
<Ianulus>
dingenskirchen: I don't.
<infinisil>
Oh, I guess the thing you mentioned about it not showing up?
<cyris212>
Exactly.
<dingenskirchen>
would there be an issue with creating it?
<Ianulus>
Well, I do, but I created it manually
<dingenskirchen>
is it a valid nix expression?
<dingenskirchen>
it should look like { allowUnfree = true; }
<cyris212>
I'm used to having a menu to choose the boot environment from.
<Ianulus>
No issue, but after adding the entry, nix-env still wont let me install it.
<infinisil>
Ianulus: Creating it manually is the normal way, Nix doesn't create it itself
<evanjs>
clever: oh boy. Tried to wrap the inird into the kernel and panics again :D I bet I can't just set INITRAMFS_SOURCE=y and BLK_DEV_INITRD=y and be done with it, huh :P
<infinisil>
cyris212: Most people use grub, so yeah might not hurt to try
<evanjs>
this is after I try booting with just the kernel that I embedded the initrd into; specifying the initrd in the qemu call seems to boot fine, so I figure I just packaged stuff wrong
<Ianulus>
Oh! Created it in the wrong place. let me try again.
<evanjs>
Might as well zcat and check the contents of the... wait it's a kernel. I need to get the initrd out of there before I check it..
o1lo01ol1o has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
<Ianulus>
infinisil: Is that documented somewhere? The manual states to add stuff to it, as if it always existed .
<Ianulus>
Led me to think I'd missed something.
<evanjs>
anybody else seeing delayed/"let me type all that out for you" behavior on 20.03? If I paste into my terminal (kitty+zsh+powerlevel9k+ohmyzsh), it seems to "type everything out" rather than just pasting it out at once
<Ianulus>
(It's working now, by the way)
kahiru has quit [Ping timeout: 240 seconds]
<infinisil>
Not the first time I've seen this, so maybe it would be good to document this better
<evanjs>
If I hit any keys after paste, it seems to skip to then end
<evanjs>
*the end
<{^_^}>
[nixpkgs] @Frostman opened pull request #80283 → restic: switch to default go compiler → https://git.io/Jv8uv
kahiru has joined #nixos
<Ianulus>
Don't users have acces to all system packages? I've added stack in configuration.nix, but don't see it as a user.
Philonous has joined #nixos
<dingenskirchen>
have you rebuilt and switched to your new configuration
<dingenskirchen>
?
<Ianulus>
dingenskirchen: yes
<cyris212>
Can one safely delete `/boot` and rebuild it with `nixos-rebuild`?
<qyliss>
You can't delete the directory, because it's a mount point
<evanjs>
^
<evanjs>
but the contents, yes AFAIK
<evanjs>
I've done it several times :D
<qyliss>
You can delete everything in it, though, AS LONG AS YOUR COMPUTER DOESN'T SHUT DOWN BEFORE nixos-rebuild IS DONE
<cyris212>
Then lets pray this works :-P
<Ianulus>
dingenskirchen: Nevermind, I had run nixos-rebuild test instead of switch.
<cap_sensitive>
Hi. I'm having trouble configuring deluge daemon. I enabled 'declarative' option and put my key file to /etc/keys. But deluge daemon would crash with an error message saying no permission to read key file
<{^_^}>
[nixpkgs] @bcdarwin opened pull request #80292 → mrtrix: init at 3.0_RC3_latest → https://git.io/Jv8z4
JonReed has quit [Remote host closed the connection]
cap_sensitive has quit [Remote host closed the connection]
cap_sensitive has joined #nixos
cap_sensitive has quit [Remote host closed the connection]
<evanjs>
okay, efi support enabled via qemu and the directory appears on boot. now... how do I manually set EFI vars from a nix expression, hrm..
justanotheruser has quit [Ping timeout: 246 seconds]
<gchristensen>
evanjs: :o whatchya working on? :)
cap_sensitive has quit [Remote host closed the connection]
cap_sensitive has joined #nixos
<evanjs>
an "embedded" x86-64 system. worst part so far was the WiFi driver--ended up using the one from TP-Link (supports master mode/supports hostapd) - https://github.com/evanjs/mini-system
<evanjs>
A zip in a zip though... *shudders*
<gchristensen>
ahh..
shibboleth has quit [Remote host closed the connection]
bvdw has quit [Read error: Connection reset by peer]
<gchristensen>
if you make the nixos test framework support directly booting efi, and efivars ... I would be delighted -- solving that is blocking my secureboot work
shibboleth has joined #nixos
bvdw has joined #nixos
<evanjs>
Yeah I've been following that story for a while, and secureboot is definitely something I'd like to see in NixOS at some point
<samueldr>
one of the catches is that the perl tests harness didn't really support booting EFI; what it did is turn off the vm after the install, and boot it through a custom codepath
<samueldr>
so all current (old?) EFI tests don't actually test installing on EFI, but rather test the fallback location handling
lord| has quit [Read error: Connection reset by peer]
cap_sensitive has quit [Remote host closed the connection]
<CRTified>
Hi, I'm the author of PR #80204 - is there anything I'm missing that prevents a merge, or is it just too busy in the moment? (don't want to annoy anyone, just curious)
cap_sensitive was banned on #nixos by gchristensen [cap_sensitive!*@*]
<cole-h>
What is going on here lol
<gchristensen>
trying to reduce noise / adding a lot of noise
<infinisil>
CRTified: Often it is pretty busy, or just not enough people to review, but in this case it seems like nobody wanted to merge it, so I did now :)
<cole-h>
:D
butterthebuddha has joined #nixos
<infinisil>
gchristensen: Imo nobody should be banned for many join/quits, that could just be an unstable connection
<evanjs>
isgy[m]: I remember that blog post and bah. lots of stuff that I'd rather not do now that I'm on NixOS. specifically, I'd rather not use stack for the process as it's not needed
<evanjs>
you can let nixos handle basically everything
<evanjs>
radvendii: it looks like there's a package already. are you having issues with that?
<evanjs>
,locate libutempter
<evanjs>
gah wrong again >_>
<radvendii>
Yeah, i found that package
<evanjs>
alright
<radvendii>
the binary that it produces seems to not have any help text or anything, and simply returns -1 whatever i pass it (i looked up the correct arguments online)
<{^_^}>
Found in packages: libutempter
<radvendii>
i found that it should be wrapped with the setgid bit set
<radvendii>
so i tried that too, and it didn't help
<evanjs>
ah okay
<radvendii>
really, the behaviour i want is that when i open a new terminal emulator window, it will add an entry to the `who` command (this is what i've seen on other systems)
<radvendii>
that doesn't happen on nixos
<radvendii>
i found online that libutempter is the thing that's supposed to do that
o1lo01ol1o has joined #nixos
<evanjs>
don't see any open issues, maybe it's something you could file? haven't used it before so can't say whether it's expected on NixOS or not
<radvendii>
okay, i'll open an issue. good call.
claudiii has quit [Quit: Connection closed for inactivity]
<evanjs>
radvendii: thanks!
<{^_^}>
[nixpkgs] @bhipple opened pull request #80301 → maturin: upgrade cargo fetcher and cargoSha256 → https://git.io/Jv8aY
roconnor_ has quit [Quit: Konversation terminated!]
<{^_^}>
[nixpkgs] @bhipple opened pull request #80303 → coloursum: upgrade cargo fetcher and cargoSha256 → https://git.io/Jv8ag
<{^_^}>
[nixpkgs] @bhipple opened pull request #80304 → todiff: upgrade cargo fetcher and cargoSha256 → https://git.io/Jv8a2
<{^_^}>
[nixpkgs] @bhipple opened pull request #80305 → mq-cli: upgrade cargo fetcher and cargoSha256 → https://git.io/Jv8aK
<{^_^}>
[nixpkgs] @bhipple opened pull request #80306 → just: upgrade cargo fetcher and cargoSha256 → https://git.io/Jv8a6
knupfer has joined #nixos
<{^_^}>
[nixpkgs] @bhipple opened pull request #80307 → ruplacer: upgrade cargo fetcher and cargoSha256 → https://git.io/Jv8ai
<{^_^}>
[nixpkgs] @bhipple opened pull request #80314 → xsv: upgrade cargo fetcher and cargoSha256 → https://git.io/Jv8aN
<bhipple>
gchristensen: what's up?
reallymemorable has joined #nixos
<gchristensen>
bhipple you're going too fast for ofborg to keep up, which will make it a bit annoying for other contributors
<gchristensen>
bhipple: the other thing is your `build` instruction is not needed as long as the commit prefix is the name of the attribute you want to build
<bhipple>
ctrl-c'd for a while :)
o1lo01ol1o has quit [Remote host closed the connection]
<bhipple>
Is that actually true? I've sometimes opened PRs with that syntax and not seen the builder kick, though maybe I just messed it up those times
o1lo01ol1o has joined #nixos
NoctisLa1 has quit [Read error: Connection reset by peer]
<gchristensen>
yes it is true :)
fxbrain has joined #nixos
<gchristensen>
bhipple: while [ $(curl https://events.nix.ci/stats.php | jq -r .evaluator.messages.waiting) -gt 1 ]; do sleep 30; done
NoctisLa1 has joined #nixos
noudle has quit []
dckc has quit [Ping timeout: 272 seconds]
<mehlon>
hey y'all
<bhipple>
As you can see with https://github.com/Mic92/nixpkgs-review/pull/84 I've really cleaned up my automation here. I also figured out the remote builders preferring binary cache thing, btw, so I'm no longer uploading dependencies to AWS from my laptop
<bhipple>
or you mean rate limiting? Yes of course, I'm not in a terrible rush
<gchristensen>
the specific method of rate limiting I've suggested :)
<bhipple>
Mainly trying to sweep out the builds to ensure that the newer impl is bug-free, and also uncover the skeletons for the "special" non-standard cargo packages, and move towards deleting the old impl
<bhipple>
I'll get rid of the PR comment and make the submitter wait for idle OfBorg time
<ryantm>
bhipple: Is your bot open source?
<gchristensen>
thanks
<{^_^}>
[nixpkgs] @falsifian opened pull request #80315 → Remove myself as maintainer. → https://git.io/Jv8VW
<ryantm>
bhipple: Cool, nixpkgs-update doesn't know how to update anything with a derivation-level hash, like buildGoPackage or buildRustCrate so I was curious.
<bhipple>
As you can see it's not particularly fancy, but the `nix edit -f . <attr>` cmd is pretty useful to find exactly what file/location something is defined in and then blast it with a targeted `sed`
<ryantm>
nixpkgs-update uses nix edit too. It also finds the hash by setting it to 0000.. and using nix-build.
<bhipple>
Great minds think alike ...
<ryantm>
I should hurry up and support these simple multi-hash derivations :)
<bhipple>
BTW I meant to ask you: what do you think about tying certain other cleanups into nixpkgs-update? Things like, for instance, some of volth's scripted changes to refactor into pname, delete unused variables, remove unnecessary `rec`s, etc.?
butterthebuddha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mehlon has left #nixos ["Leaving"]
<ryantm>
I think that is a good idea. I used to have a cleanup where if the http src url would fail it would try https, but I think that got lost at some point.
fendor has quit [Quit: Leaving]
<bhipple>
There are also little things like tweaking the meta.homepage to quote the URL, and so on, where we know there's some large-scale migration that's not terribly important to do ASAP but over time we want to trend towards a clean, consistent state.
<ryantm>
Actaully, my cleanup thing would try https first and switch the URL if it worked.
<gchristensen>
"some large-scale migration that's not terribly important to do ASAP but over time we want to trend towards a clean, consistent state." bhipple++
<{^_^}>
bhipple's karma got increased to 3
aindlq has quit [Quit: Leaving.]
<gchristensen>
I'm a sucker for incremental deliberate progress
<bhipple>
E.g., even if I get hit by a bus grabbing dinner tonight we'll still trend in the right direction as maintainers delete that line on bumps naturally
<bhipple>
BTW, once I'm done w/ this I'd like to do something similar for fetchzip, fetchgit, and fetchFromGitHub, so that they work with hashed-mirrors and archives like the Software Heritage for mirroring (as well as being much more efficient on disk!)
<ryantm>
What does your new fetcher do differently?
<bhipple>
Instead of using a recursive hash, it packs the vendor dir (deterministically) into a tar.gz, which means that it can be mirrored for air-gapped builders, and uses ~80-90% less space on disk in your nix store
__monty__ has quit [Quit: leaving]
<gchristensen>
bhipple: please make sure to talk to lewo sometime soon? :)
<bhipple>
it also drags in a couple optional features, like validating the Cargo.lock automatically and properly setting up the cargo default cfg even if you have git dependencies (previously these were hidden behind conditionals to avoid backwards incompatibility and made it all a gbit complex)
<bhipple>
basically just trying to sweep through a bunch of optional best-practice stuff into defaulting on, and also making it more mirror friendly
<{^_^}>
#79975 (by bhipple, 3 days ago, open): Rust Application Migration to fetchCargoTarball Implementation
<bhipple>
Any details / issues / tracking? Kinda curious what others are working on in this space
boxscape has joined #nixos
<bhipple>
I'm quite keen on https://github.com/NixOS/nixpkgs/issues/53653, but it'd only work for --flat hashes, like fetchurl or fetchCargoTarball, not things like fetchFromGitHub at the moment
<{^_^}>
#53653 (by armijnhemel, 1 year ago, open): Use Software Heritage as a fallback download location
<gchristensen>
bhipple: make sure to mention that issue to lewo
andi- has quit [Ping timeout: 240 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @orivej to master « qtads: 2.1.99.2019-04-12 -> 3.0.0 »: https://git.io/Jv8rD
<{^_^}>
[nixpkgs] @jonringer merged pull request #80006 → expect: patch configure after the autoreconf phase, not before it → https://git.io/JvWKq
<{^_^}>
[nixpkgs] @jonringer pushed commit from @basvandijk to master « expect: patch configure after the autoreconf phase, not before it »: https://git.io/Jv8rH