<das_j>
well, I already had that and it fails with unsupported platform for the pure Linux stdenv
<iqubic>
So, I'm really very confused.
onixie has quit [Remote host closed the connection]
Soo_Slow has quit [Quit: Soo_Slow]
<infinisil>
das_j: If you have something already then it's a good idea to mention it beforehand, then I wouldn't have wasted time writing that :)
HugoDaniel has joined #nixos
<das_j>
oh sorry. Well it didn't work at all so I wasn't sure. my code (not working!) is `nixpkgs.localSysmte { libc = "musl; system = "x86_64-linux"; }`
<iqubic>
So, Dunst isn't working for me, and I'm so pissed.
<iqubic>
I don't understand this.
<das_j>
(with the second " of course)
qubasa_ has joined #nixos
<infinisil>
That doesn't seem to be the same as I suggested at all?
<das_j>
yep, that was my previous attempt before I asked here
<iqubic>
So, does anyone know why dunst is failing?
<das_j>
my attempt fails with `value is null while a set was expected,` (at the location you specified), your attempt fails with `unsupported platform for the pure Linux stdenv`
<iqubic>
So, I run: "systemctl --user start dunst.service"
<infinisil>
Not the other way around?
<iqubic>
And that fails. It asks me to check the journal, which has this error message: http://dpaste.com/0SBV4A6
<das_j>
nothing I can see, maybe I'll ask around at the next nixcon
qubasa has quit [Ping timeout: 240 seconds]
<cole-h>
das_j: Can you try `systemctl import-environment DISPLAY`?
<infinisil>
das_j: I'd open an issue in nixpkgs, pinging people who know about musl things
<das_j>
cole-h: Me?
<cole-h>
Err Sorry
<cole-h>
Wrong person :D
<cole-h>
iqubic*
<das_j>
infinisil: I'll do that, thanks
<cole-h>
iqubic: Can you try `systemctl import-environment DISPLAY`?
<cole-h>
(Sorry, das_j)
<das_j>
I'll get over it ;)
<das_j>
Also import XAUTHORITY while you're at it
<cole-h>
Screw it, just import everything and see if it works: `systemctl import-environment`
<iqubic>
Yeah. That worked.
<iqubic>
I had to import everything.
<iqubic>
Now, how do I test this?
<cole-h>
Now, try isolating it down to specific env vars so you don't import literally everything :P
<cole-h>
Not strictly necessary, but probably a good step to take, IMO
HugoDaniel has quit [Ping timeout: 260 seconds]
<iqubic>
How do unimport variables?
<cole-h>
`systemctl unset-environment VARS`
<iqubic>
But that doesn't let me unset everything.
<iqubic>
So, I need to import DISPLAY and XAUTHORITY to start dunst.
<iqubic>
Now... two questions. How do I test that dunst is actually working? And how do I make sure that it's running everytime that I reboot my machine?
<ajs124>
You can also do xhost +
<das_j>
`dunstify lal` for sending a notification
<cole-h>
Does `notify-send` work with dunst?
<das_j>
yep
<iqubic>
Weird... notify-send is not a command I can run.
<gchristensen>
iqubic: sorry, you're going to have to try harder and do some more debugging and research
<newuser99>
I've been using `nix-env -i <package>` a bit, I'm wondering what the equivalent is in nix-expression format. The guides I've found seem to be about either using NixOS (I'm not) or using nix to build my own package. What about just installing a bunch of already-nixpkged things on my linux distro?
<newuser99>
Or does that break the functional idea, and I should just write `nix-env -i foo bar baz` in a shell script and use that
thongpv87 has joined #nixos
<bhipple>
newuser99: what I do is group together a handful of the things I want into a meta-package, then do `nix-env -riA myEnv`. The -r flag will replace all imperatively installed pkgs atomically with the new env, so it cleans up manually installed cruft outside src control
<bhipple>
I still end up using nix-env to install something, but I can get back all my pkgs declaratively on a fresh install. I can also imperatively nix-env -i <something> as-needed, and it'll go away on the next declarative install so I don't accumulate cruft. If I decide I actually want it sticking around, I add it to src control
<bhipple>
not sure if that answers your question but hopefully it gives some context on possible workflows
<thongpv87>
I want to use clang-format to check the code format in CI but I don't want to add the package add project dependency (nativeBuildInputs or buildInputs). How can I add some package to default.nix
boxscape has quit [Remote host closed the connection]
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
boxscape has joined #nixos
aw has joined #nixos
spacefrogg has joined #nixos
boxscape88 has joined #nixos
mrpi has quit [Quit: killed]
Scriptkiddi has quit [Quit: killed]
das_j has quit [Quit: killed]
ajs124 has quit [Quit: killed]
boxscape has quit [Disconnected by services]
boxscape88 is now known as boxscape
ajs124 has joined #nixos
Scriptkiddi has joined #nixos
mrpi has joined #nixos
das_j has joined #nixos
mexisme_ has joined #nixos
felixfoertsch23 has joined #nixos
<mdash>
hmm
<newuser99>
In that link, where It says `pathsToLink = [ "/share/man" "/share/doc" "/share/info" "/bin" "/etc" ];` is that replacing the real root /bin/, or adding stuff to that directory, or is it not really /bin/ but some other directory under /nix/
<mdash>
i would like to have a nixos module that puts all my hosts' networking config in one spot, and load it by hostname
<mdash>
but nix regards `{ networking = networking-config.${config.networking.hostName}; }` as infinite recursion
felixfoertsch has quit [Ping timeout: 272 seconds]
<mdash>
it sure is hard to pass info to modules
<newuser99>
In practical terms, I'm wondering whether running that `pathsToLink = [ "/bin" ...` will cause all my pre-existing binaries to be deleted or what
<iqubic>
gchristensen: After some research, I have found my issue. Discord doesn't start dbus automatically. I also found the solution to the issue.
<mdash>
oh, you can return modules from functions. ok.
<thongpv87>
I ended up with this shell.nix expression: http://ix.io/2c0J . Things work except I don't want to build `project` when running nix-shell
<clever>
justan0theruser: you must put (dunst.override { dunstify = true; }) into your shell instead
<justan0theruser>
tyvm
<iqubic>
What is the difference between calling dunst and calling notify-send?
HugoDaniel has joined #nixos
<justan0theruser>
dunstify allows you to assign an ID to notifications so you can have updated notifications rather than stacking
<justan0theruser>
probably other things too, but that's all I care about for now
HugoDaniel has quit [Ping timeout: 240 seconds]
<iqubic>
Ah. I see.
boxscape has quit [Ping timeout: 268 seconds]
<iqubic>
So, I see that there are at least 3 dozen packages in nixpkgs offering different x11 mouse cursors. How do I set one of those up? I'm starting to hate the default x11 cursor.
<newuser99>
I thought super was for getting the upstream version, isn't that what's being done here?
<notgne2>
newuser99: afaik super refers to the package set that is being overlayed, and self is the package set after the overlay has been applied
johnw has quit [Remote host closed the connection]
<newuser99>
notgne2: exactly - from the manual "It does not contain any of the packages added by the current overlay" so I don't understand how that even works
<notgne2>
sometimes you might want to reference self instead of super if the package you are refering to depends on a package you are modifying in your overlay
<samueldr>
AFAIK you should use self, until you can't
<samueldr>
a good way to rename them would be `final: super:`
<samueldr>
final is a package in the final package set with all overlays
<newuser99>
ok
<samueldr>
you'd use super when you cannot call self, mainly because of recursion
cartwright has quit [Remote host closed the connection]
<newuser99>
How do I get `nix-shell .` to use nixpkgs-unstable?
vidbina has joined #nixos
<clever>
newuser99: use `-I nixpkgs=something` to map <nixpkgs> elsewhere
<clever>
newuser99: or edit shell.nix to use <nixpkgs-unstable> instead of <nixpkgs>
<{^_^}>
[nixpkgs] @zowoq opened pull request #80412 → kepubify: init at 3.0.0 → https://git.io/Jv4ld
HugoDaniel has joined #nixos
domogled has quit [Quit: domogled]
<newuser99>
`nix-channel --list` I have `nixpkgs https://nixos.org/channels/nixpkgs-unstable` and I'm using ` pkgs = import <nixpkgs> {};` but I guess that's wrong (it can't find the package)
<clever>
newuser99: what does `nix-instantiate --find-file nixpkgs` say?
<NoctisLa1>
Should collisions be reported as an issue?
<clever>
NoctisLa1: depends on what is having a collision
<NoctisLa1>
collision between `/nix/store/437j9mdpaq40605l5i12jprff781k8fl-net-tools-1.60_p20170221182432/bin/ifconfig' and `/nix/store/1hvnfr57h2jy05ckfal5kmx8xd67rq39-inetutils-1.9.4/bin/ifconfig'
<clever>
NoctisLa1: yeah, i would consider that a bug, somebody will have to decide if we want net-tools, inetutils, or both, and then somehow block one of the ifconfig's if we want both
<NoctisLa1>
There's collisions between additional tools in inetutils as well, I'm just trying to get tftp.
<clever>
NoctisLa1: if its due to you installing things, then its less of a bug
<clever>
NoctisLa1: you can also use `nix-shell` or `nix-env` to get one of those into PATH temporarily
<NoctisLa1>
Yeah, I'm installing things.
<NoctisLa1>
I want tftp in my systemPackages
<NoctisLa1>
I also tried getting tftp from iputils but it was missing or something.
<clever>
,locate bin tftp
<{^_^}>
Found in packages: busybox, tftp-hpa, inetutils, netkittftp
<clever>
NoctisLa1: tftp-hpa might be an option
<NoctisLa1>
Oh cool, I should learn how to use the bot in irc.
<clever>
,locate
<{^_^}>
Use ,locate <filename> to find packages containing such a file. Powered by nix-index (local installation recommended) https://github.com/bennofs/nix-index
<{^_^}>
[nixpkgs] @Tomahna closed pull request #80000 → mopidy-mpd: init at version 3.0.0 → https://git.io/JvWwj
philr has joined #nixos
knupfer has joined #nixos
betawaffle has quit [Remote host closed the connection]
zupo has joined #nixos
betawaffle has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
linkrage has joined #nixos
hyper_ch2 has joined #nixos
Tucky has joined #nixos
<newuser99>
nix-env -i visidata; -> warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring. error: operation is only supported by LocalStore
johnw has joined #nixos
boxscape has joined #nixos
<newuser99>
I ran nix-daemon manually because `error: cannot connect to daemon at '/nix/var/nix/daemon-socket/socket': Connection refused` but now I get ^
<clever>
newuser99: is it a single-user or multi-user install of nix?
<{^_^}>
[nixpkgs] @jonringer pushed commit from @MetaDark to master « protontricks: 1.4 -> 1.4.1 »: https://git.io/Jv447
<newuser99>
error: packages '/nix/store/y89xnb6yrv5nwz0z13y6y77vifw4zhhj-my-packages/bin/nix-store' and '/nix/store/5hdmx9yk7gr71b98j4vh9271k0zg5jis-nix-2.2.1/bin/nix-store' have the same priority 5; use 'nix-env --set-flag priority NUMBER INSTALLED_PKGNAME' to change the priority of one of the conflicting packages (0 being the highest priority)
<newuser99>
what is INSTALLED_PKGNAME supposed to be?
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen1 has joined #nixos
<clever>
newuser99: you have nix inside the buildEnv, and its conflicting with the nix installed normally
<clever>
newuser99: simplest answer is to not include nix in the buildEnv
<{^_^}>
[nixpkgs] @jonringer merged pull request #80414 → milkytracker: set cmake sdl variable to fix build → https://git.io/Jv44n
<{^_^}>
[nixpkgs] @jonringer pushed commit from @fgaz to master « milkytracker: set cmake sdl variable to fix build »: https://git.io/Jv44A
<karantan>
is it possible to create a .nix config file that has all required configurations except some variables like domain
<karantan>
and then use this .nix file when adding a site by providing just a domain
<karantan>
so like a function
<clever>
karantan: you could either define a custom nixos option and use it, or just start the file with `domain:` and then do `import ./file.nix "example.com"`
<karantan>
in this e.g. "master.nix" we would have defined services.httpd, services.mysql, services.phpfpm, ... but without domain
thc202 has joined #nixos
<karantan>
aha ok. thank you
<clever>
karantan: making it a module with options would be better
<karantan>
I don't think I have enough of knowledge and/or exp. to do that yet. But yes this is the goal eventually
<peelz>
holy crap. in boot.svg, the "kernel" takes 311s
hyper_ch2 has joined #nixos
<clever>
peelz: that is everything before systemd gained control
<clever>
peelz: which would be all of stage1, and the activation scripts
<peelz>
that's so strange
<peelz>
how do I debug this?
<immae>
peelz: microcode?
<clever>
peelz: try rebooting again, make note of the exact time it seems to hang, and when it resumes, and then pastebin the `journalctl -b 0` again, and report what timestamps is was hung during
<peelz>
immae: ? I have `hardware.cpu.amd.updateMicrocode = true` if that's what you're asking
<clever>
peelz: maybe also try disabling that, and see if its faster or not
<immae>
Sorry, I meant that it could be what’s taking so long (it happened to me long ago)
<peelz>
o.O
chloekek has joined #nixos
<peelz>
will try
<peelz>
trying to build but it's taking an eternity
<clever>
peelz: how do these 4 files look? are they fairly small?
Netsu has joined #nixos
<clever>
peelz: they should be json i believe
<peelz>
which 4 files?
<clever>
peelz: in the directory i just pasted
<Netsu>
Hello. Is there any way to inherit all the fields of the derivation to current one?
<peelz>
ah gotcha
<peelz>
clever: uid-map is 2.1G lol
<clever>
peelz: that aint right
<peelz>
haha
<Netsu>
Or all the fields must be listed explicitly?
<clever>
peelz: what do the contents look like in a text editor?
<peelz>
uhh lots of binary stuff
<{^_^}>
[nixpkgs] @fgaz opened pull request #80418 → milkytracker: set cmake sdl variable to fix build → https://git.io/Jv4RY
<clever>
peelz: sounds like disk corruption
<peelz>
clever: <U+0082>Ã<U+0082>Â<U+0083>Ã<U+0083>Â ... ad infinitum
<clever>
peelz: this perl script also runs on boot, as an activation script, its likely chewing up 60gig of ram, and getting OOM'd, before you can boot
<clever>
peelz: delete uid-map, and nixos should repair itself
<peelz>
alright
civodul has joined #nixos
<peelz>
built instantly
<peelz>
do I dare reboot? :P
<clever>
peelz: do it!
<peelz>
aight imma hop on my laptop for IRC
NoctisLabs has joined #nixos
peelz_ has joined #nixos
peelz has quit [Quit: Leaving]
<peelz_>
clever: on laptop now
<peelz_>
also this is a brand new NVME
<peelz_>
I'm using LVM for all my partitions so maybe that has something to do with it?
<peelz_>
system booted just fine
<clever>
peelz_: it could also have been an improper shutdown
<peelz_>
perhaps...
<peelz_>
/var/lib/nixos/uid-map looks like normal JSON now
<clever>
peelz_: the main purpose of that file, is for when you delete a user from configuration.nix, then re-add the user, it regains its old uid
<peelz_>
ahh
<clever>
that solves issues like another user winding up with that uid, and owning 2 /home folders
<peelz_>
oh wait, now that I think about it, I added a user with an emoji as a name... for science
<peelz_>
LOL
<peelz_>
I deleted it shortly afterwards
<peelz_>
I even rebooted afterwards. Not sure what happened.
<clever>
maybe the perl/json encoder got upset?
<peelz_>
Sounds like it
<clever>
try breaking it again, for science!
<peelz_>
hah
<clever>
then file an issue
<peelz_>
my poor computer
<clever>
`nixos-rebuild build-vm` would also help test faster
<peelz_>
do I need any setup for that?
<clever>
it will run your entire config, in a vm, with much more limited ram usage
<clever>
just run that, and thats it
<peelz_>
oh cool
<clever>
switch wont work inside the vm, but you can just shutdown, edit the host config, and build-vm again
<peelz_>
aight
pbb_ has joined #nixos
pbb has quit [Ping timeout: 272 seconds]
<peelz_>
how do I switch to a tty? my sxhkd hotkeys are being intercepted by my host and I can't do anything on the VM lol
<clever>
peelz_: i think there is a checkbox in one of the menu bars to hold ctrl and/or shift
<newuser99>
I see home-manager doesn't target distros other than nixos. Does it work well enough anyway?
vonfry- has joined #nixos
vonfry- has quit [Remote host closed the connection]
<wedens[m]>
what do you mean "target"? it works on other distros with Nix
<peelz_>
clever: I'll just enable plasma, easier that way
<newuser99>
wedens[m]: "Home Manager targets NixOS unstable and NixOS version 19.09 (the current stable version), it may or may not work on other Linux distributions and NixOS versions." https://github.com/rycee/home-manager
o1lo01ol1o has joined #nixos
<{^_^}>
[nixpkgs] @zimbatm pushed 0 commits to zimbatm-patch-1: https://git.io/Jv4R5
<{^_^}>
[nixpkgs] @tviti opened pull request #80419 → Revert "hdf5-fortran: Mark broken on Darwin" → https://git.io/Jv4RN
* clever
heads off to bed
<peelz_>
clever: sleep well! Thanks again :D
<peelz_>
you saved my ass lol
<eyJhb>
I should really try home-manager
<eyJhb>
Night night clever !
o1lo01ol1o has quit [Ping timeout: 260 seconds]
HugoDaniel has joined #nixos
Naptra has joined #nixos
smatting_ has joined #nixos
<{^_^}>
[nixpkgs] @basvandijk opened pull request #80420 → symlinkJoin: fix "bash: Argument list too long" error → https://git.io/Jv40v
newuser99 has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @vbgl opened pull request #80421 → coqPackages.mathcomp_1_10: init at 1.10.0 → https://git.io/Jv40I
sigmundv has joined #nixos
HugoDaniel has quit [Ping timeout: 272 seconds]
orivej has quit [Ping timeout: 272 seconds]
peelz has joined #nixos
kriteus[m] has joined #nixos
<{^_^}>
[nixpkgs] @vcunat pushed to master « efibootmgr: fixup build on i686 »: https://git.io/Jv40m
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @simonchatts opened pull request #80422 → haskell.gtk2hs packages: fix Darwin build → https://git.io/Jv40a
philr has joined #nixos
<Netsu>
What is the proper way to pass $NIX_PATH into nested nix-shell?
pbb_ has quit [Remote host closed the connection]
karantan has joined #nixos
<Netsu>
would builtins.getEnv be proper way enough?
karantan has quit [Client Quit]
Guest17523 has quit [Quit: WeeChat 2.3]
garbas has joined #nixos
cosimone has joined #nixos
linarcx has quit [Quit: WeeChat 2.7]
Netsu has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @vcunat pushed commit from @danbst to master « Merge #80328: postgresql: minor updates (security) »: https://git.io/Jv4Ev
HugoDaniel has quit [Ping timeout: 240 seconds]
linarcx has joined #nixos
<thongpv87>
I got this error: /nix/store/qn74i5hmd4096wr20phsd52afb0b9jvr-stdenv-linux/setup: line 795: /run/user/5093/env-vars: Permission denied when trying to init nix-shell environment.
waleee-cl has joined #nixos
<{^_^}>
[nixpkgs] @vcunat pushed to release-20.03 « efibootmgr: fixup build on i686 »: https://git.io/Jv4EL
HugoDaniel has joined #nixos
LysergicDreams has quit [Ping timeout: 260 seconds]
o1lo01ol1o has joined #nixos
o1lo01ol_ has joined #nixos
fendor has joined #nixos
o1lo01ol1o has quit [Ping timeout: 265 seconds]
mexisme_ has joined #nixos
veske has quit [Quit: This computer has gone to sleep]
veske2 has quit [Quit: This computer has gone to sleep]
pbb has joined #nixos
<{^_^}>
[nixos-weekly] @rickynils opened pull request #113 → Add nixbuild.net introduction post → https://git.io/Jv4Eo
mexisme_ has quit [Ping timeout: 240 seconds]
zarel_ has joined #nixos
zarel has quit [Read error: Connection reset by peer]
karantan has joined #nixos
linkrage has quit [Quit: Leaving]
v88m has quit [Ping timeout: 265 seconds]
<{^_^}>
[nixos-org-configurations] @rickynils opened pull request #101 → planet: Add nixbuild.net blog → https://git.io/Jv4ED
karantan has quit [Client Quit]
karantan has joined #nixos
claudiii has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @juliendehos opened pull request #80424 → pythonPackages.nevergrad: init at 0.3.2 → https://git.io/Jv4Ej
fes has joined #nixos
<fes>
hi! i am at step 4 during installation of Nixos and I would like to ask you where do I set the boot.loader.grub.device option ? thanks in advance.
<fes>
i am going to install it to a USB that I might insert into different computers to try it out.
<fes>
it looks like it is in the configuration file in /mnt/etc/
<fes>
i see that the configuratio file has the line "boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only"
<{^_^}>
[nixpkgs] @GRBurst opened pull request #80425 → update maintainer infos for myself → https://git.io/Jv4un
<fes>
since I am installing this to a USB that will change sdX depending on system, is it possible to type in a UIID instead or is this only used during the installing process and not later on when I update the system?
<fes>
UUID
<wedens[m]>
there are tools in nixpkgs specifically for creating iso images
psyanticy has joined #nixos
<fes>
wedens, you speak swedish (your nickname makes suspect you might be from sweden)?
<fes>
i am not trying to create a live iso but install it onto a USB instead of my internal drive. I want to do this before I erase my old OS.
<wedens[m]>
what's the difference between iso written to usb drive and "install it onto a USB instead of my internal drive"?
knupfer has quit [Ping timeout: 240 seconds]
<fes>
so that I can install software and reboot it and they are still there.
andymandias_ has quit [Quit: ZNC 1.7.4 - https://znc.in]
veske has joined #nixos
veske2 has joined #nixos
peelz has quit [Remote host closed the connection]
peelz_ has quit [Quit: Leaving]
<{^_^}>
[nixpkgs] @xfix opened pull request #80427 → cargo-geiger: fix build with rust 1.41 → https://git.io/Jv4ur
anderslundstedt has quit [Quit: leaving]
peelz has joined #nixos
thongpv87 has quit [Remote host closed the connection]
andymandias has joined #nixos
erictapen has joined #nixos
anderslundstedt has joined #nixos
<fes>
wedens[m]> sorry, i misunderstood your question earlier. well it is probably not any different but I was thinking that an internal drive will not change /dev/sdX while a USB might/will depending on what devices are connected to the computer.
johnny101m2 has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
<fes>
but I saw in the hardware-configuration file that the grub was set to UUID and not /dev/sdX. My insecurity concerning this is because of me not being that knowledgable about a lot of these things.
<wedens[m]>
it's better to use uuid when possible
<lassulus>
fes: you can use /dev/disk/by-uuid/youruuid
<fes>
the installation went well and it reported no problems. i will reboot now and hopefully it boots.
<fes>
thank you lassulus
<fes>
also thank you, wedens[m]
fes has quit [Remote host closed the connection]
<wedens[m]>
it won't report problems like misspelled paths, unfortunately (unless they're needed for instantiation)
gxt has joined #nixos
Arahael has joined #nixos
<{^_^}>
[nixos-hardware] @Mic92 merged pull request #141 → Support NixOS 19.09 for <dell/xps/15-7590> → https://git.io/Jvnm2
<{^_^}>
[nixos-hardware] @Mic92 pushed commit from @9999years to master « Support NixOS 19.09 for <dell/xps/15-7590> (#141) »: https://git.io/Jv4zz
<{^_^}>
[nixpkgs] @andir pushed 8 commits to release-19.09: https://git.io/Jv42T
kleisli has quit [Ping timeout: 268 seconds]
LysergicDreams has joined #nixos
<raboof>
When I open a nix-shell from a 'buildFHSUserEnv'-based shell.nix, running zsh inside doesn't seem to take into account my nixos zsh configuration. I don't have that problem with 'mkShell'. Any idea how to achieve that?
chagra has joined #nixos
<colemickens>
I sort of splice together some shell scripts into a Nix file to use as userdata to a Packet VM. However, I've just found out that my method of splicing fails.
w3emperor has joined #nixos
<colemickens>
Trying to do this in bash seems silly. It would be easier to base64 encode it, stick the chunk in with awk/gsub, and then use nix b64d to decode it, but I don't think such a nix function exists.
<{^_^}>
[nixpkgs] @mmilata opened pull request #80436 → hunspell: add patch for CVE-2019-16707 → https://git.io/Jv4Vg
<raboof>
xa0[m]: I'm not sure I understand what you mean - $HOME is the same string and at first glance looks like it has the same contents both inside and outside the chroot
<raboof>
xa0[m]: 'what I am doing' is working on a project that downloads a binary and executes it as part of the build process. That is indeed questionable (but not easy to change), which is why I want to restrict it to a shell.nix-based environment ;)
<raboof>
xa0[m]: I don't see where that happens either, but I didn't do anything special - https://pastebin.com/kLtBN64L . None of the directories returned by `ls /nix/store/*-fhs` contain a /home, though
<{^_^}>
[nixpkgs] @flokli pushed 2 commits to release-20.03: https://git.io/Jv4o7
<gchristensen>
I am absolutely itching for that first 20.03-beta channel bump
<drakonis>
oh?
xkapastel has joined #nixos
<Neo-->
hey everyone! anyone knows if there's a way to add an aditional "default path" for nix-shell to scan? I have a global gitignore directory that I add for projects that are not on nix as "first class citizen" and then put shell.nix into it, but it's getting annoying to type nix-shell path all the time (obviously, aliasing command is one way) :)
<{^_^}>
[nixpkgs] @das-g opened pull request #80444 → OSMPythonTools: init at 0.2.6 → https://git.io/Jv4Kk
Ukari has joined #nixos
<Ianulus>
I'm getting an error trying to use `cachix use all-hies`:
<Ianulus>
"Could not install NixOS configuration to /etc/nixos/ due to lack of write permissions."
<{^_^}>
[nixpkgs] @andir pushed 2 commits to release-19.09: https://git.io/Jv4Kr
<Ianulus>
@dome
<Ianulus>
domenkozar[m]: yes
<Ianulus>
(both)
iqubic` has joined #nixos
<Ukari>
I use nix in a non-nixOS, and build a SDL2 haskell project with stack and it use opengl as rendering driver. while when the same project built with nix + stack it can't sucessfully use opengl nor opengles2 nor opengles, it could only use software as rendering driver. Why ?
<davidtwco>
jtojnar: regarding your comment in #80037, how do you recommend resolving fetchcomposer only inheriting a subset of the args?
<jtojnar>
davidtwco would it be a problem to pass the same arguments to both derivations?
<Ukari>
manveru: would it work for vulkan?
drakonis has quit [Ping timeout: 246 seconds]
<davidtwco>
jtojnar: I think so - I have patches and a custom installPhase in the derivation for the application that would fail if they were also provided to the fetcher derivation.
<Ukari>
manveru: oh it could, thanks
<davidtwco>
jtojnar: I took the same approach with this that is used in the Rust build support.
linarcx has quit [Ping timeout: 272 seconds]
<jtojnar>
davidtwco well, at least patches, patchPhase, prePatch and postPatch should be definitely passed
<Ianulus>
domenkozar[m]: never mind, works after reboot
<domenkozar[m]>
@lanulus: does /etc/nixos exist?
<jtojnar>
that was my issue with the buildGoModule
<davidtwco>
jtojnar: That's partially implemented through a `composerPatches` variable, but I don't (yet) provide a mechanism for overriding the fetcher's patchPhase/prePatch/postPatch.
<{^_^}>
[nixpkgs] @FRidh pushed 193 commits to staging-next: https://git.io/Jv4KH
<mdash>
man. every time i automate something with a nixos module, I get nervous again about secrets management
<mdash>
I wonder if I should just make the jump to Vault or Keywhiz and be done with it
fusion809 has quit [Remote host closed the connection]
asbachb has joined #nixos
<evanjs>
Ianulus: pinging infinisil
<evanjs>
re all-hies
<infinisil>
o/
<evanjs>
oh nvm reboot. I need to read lol
<Ianulus>
It's also covered in the all-hies readme:
<jtojnar>
davidtwco is there any benefit of using composerPatches instead of standard patchPhase-related attributes?
<evanjs>
Figured as much :D
<Ianulus>
"Note: Due to an issue with cachix you might have to restart the nix daemon for this to take effect, refer to this issue."
<evanjs>
Sounds good. Glad you got it resolved! infinisil _is_ here in case something isn't covered in the readme, tho :P
<davidtwco>
jtojnar: if I just used patches then it would conflict with the primary application's patches.
<evanjs>
so I think shoving this initrd into the kernel is the last story for this embedded system in jenkins. got EFI support working (derp). Now I just need a tiny kernel w/initrd
<infinisil>
evanjs: I don't think it's been resolved?
<Ianulus>
cachix is not being used, though … rebuild starts compiling everything nonetheless
<evanjs>
It'd be nice if there was an easier way to do e.g. allnomodulesconfig
<davidtwco>
jtojnar: it isn't as much of a problem for composer as it is for buildGoModule because the vendor directory is included in the primary derivation, so you can use the regular patches attribute to change it.
<evanjs>
oh
<evanjs>
I misread that then :D
<infinisil>
Ianulus: So you're on NixOS and tried to do `sudo cachix use all-hies` and it failed with "lack of write permissions"?
iqubic` has quit [Ping timeout: 240 seconds]
ddellacosta has joined #nixos
<Ianulus>
infinisil: yeah, but this has been resolved by rebooting (thus reloading the nix-deamon, as described)
<jtojnar>
davidtwco the issue I had with go is I was patching go.sum (similar to composer.lock)
<Ianulus>
problem now is that nixos-rebuild doesn't use the cache and starts compiling
<davidtwco>
jtojnar: I suppose in that case it would be necessary.
<infinisil>
Ianulus: Huh weird, I think that should only be needed for darwin, but oh well
<infinisil>
Ianulus: Rebuild once without adding all-hies to systemPackages
<infinisil>
This is needed for the cachix thing to go in /etc/nix/nix.conf
<infinisil>
After that you can verify this by looking at that file to see if there's an all-hies in there
c0c0 has quit [Ping timeout: 272 seconds]
<infinisil>
I think the `cachix use` command should output that this needs to be done
<evanjs>
I remember something similar happening before. I think the arm manual for nixos has some steps to work around that sort of behavior/get cachix on first run?
<jtojnar>
davidtwco I mean both dervations work with the same src so it makes sense to me for them to use the same patches as well
<evanjs>
could you use the same approach for all-hies?
<davidtwco>
jtojnar: the application derivation can have patches for the contents of the vendor directory - which won't exist in the fetcher derivation at patch time. I rely on that to patch laravel.
<infinisil>
evanjs: Yeah that works well for one-time caches, though for all-hies it should be permanent
<jtojnar>
davidtwco should not that be don in composerPatches instead since you are updating vendor
<evanjs>
right right the latter is what I was going for
<evanjs>
like add it to my config but don't wanna rebuild once for cachix :P
c0c0 has joined #nixos
c0c0 has quit [Client Quit]
<evanjs>
infinisil: 's/rb/rs/' :P
<davidtwco>
jtojnar: that does make sense, but I'd need to run composer in postUnpack so that the vendor directory contents exist during patchPhase - if I do that, then it can't be used to patch composer.lock
<Ianulus>
infinisil: cachix use is now failing again with the no permissions error
<jtojnar>
davidtwco hmm, maybe we need buildPatches 🤣️
<infinisil>
Ianulus: What's `ln -laa /etc/nixos`?
<jtojnar>
davidtwco for the logger issue could we validate our changes with php -l at least?
<jtojnar>
in the nixos module
<Ianulus>
drwxr-xr-x 2 root root 4096 Feb 16 20:48 .
<Ianulus>
drwxr-xr-x 22 root root 4096 Feb 20 2020 ..
<Ianulus>
-r--r--r-- 1 root root 3011 Feb 18 16:25 configuration.nix
<Ianulus>
-r--r--r-- 1 root root 2146 Feb 16 17:17 configuration.nix.save
<Ianulus>
-r--r--r-- 1 root root 2148 Feb 16 17:57 configuration.nix.save.1
<Ianulus>
-r--r--r-- 1 root root 2791 Feb 16 20:48 configuration.nix.save.2
<Ianulus>
-r--r--r-- 1 root root 1171 Feb 16 15:16 configuration.original.nix
<Ianulus>
-rw-r--r-- 1 root root 647 Feb 16 15:18 hardware-configuration.nix
<Ianulus>
lrwxrwxrwx 1 root root 85 Feb 16 16:30 result -> /nix/store/99yfjy73jx1snf4gwk36xzy8llpf94sk-nixos-system-nixos-19.09.2070.b9cb3b2fb2f
<davidtwco>
jtojnar: I've made changes locally so that you can pass arbitrary attributes to the fetcher without them being applied to the application, and so that the hash algo can be changed, but I don't think I'll change anything so that patches for the vendor contents are passed to the fetcher.
<Ianulus>
wait .. why can i write to those files at all?
Acilim has quit [Remote host closed the connection]
<davidtwco>
jtojnar: checking the syntax wouldn't be sufficient - the configuration file isn't in PHP and things like incorrect database permissions can also result in the hard-to-debug errors that the logging patch helps debug.
<infinisil>
Ianulus: What about `strace -f -e trace=file -o out sudo cachix use all-hies`, then paste the `out` file
<evanjs>
surprised he didn't get kicked haha. Don't we have a spam-kick-bot or something?
<evanjs>
hrm anyhow... how to debug this kernel/initrd scenario, now
<{^_^}>
[nixpkgs] @Profpatsch merged pull request #70154 → linkFarmFromDrvs: Add a trivial builder to create a linkFarm from a list of derivations → https://git.io/JenV3
<raboof>
and that also explains why my zsh is not configured inside a nix-shell using that, as /etc *is* replaced, and that contains the zsh config
<Profpatsch>
We need TERM=ci so tools can switch to a special CI-terminal :)
<Ianulus>
infinisil: did it via unstable channel, not shell. cahcix is now v0.3.5. cachix use all-hies works & produces output as described by you above. After following those instructions, rebuilding uses cache as expected.
<infinisil>
:D
<Ianulus>
infinisil: Thanks for your help!
<infinisil>
Np
<Ianulus>
infinisil: oh, wait! that line's still commented out!
<Ianulus>
infinisil: sorry, I was too quick there. it still wants to compile all-hies
chimay has joined #nixos
<infinisil>
Ianulus: Is the all-hies cache in /etc/nix/nix.conf?
<Ianulus>
infinisil: doesn't look like it. the file does not contain the string `hies`
<infinisil>
Ianulus: Did you `sudo cachix use all-hies` and do as the instructions say?
cole-h has joined #nixos
AluisioASG has joined #nixos
<Ianulus>
infinisil: yes
<infinisil>
Ianulus: So you added `imports = [ ./cachix.nix ]` and did a `sudo nixos-rebuild switch` *without* adding all-hies in your environment.systemPackages?
<Ianulus>
yes
jb55 has quit [Quit: jb55]
<Ianulus>
(that's when I reported success, the line that was commented out was the all-hies line)
<Ianulus>
repeating, just to be sure
ddellacosta has quit [Quit: WeeChat 2.2]
<infinisil>
Ianulus: Okay what's `grep all-hies $(nix-build '<nixpkgs/nixos>' -A 'config.environment.etc."nix/nix.conf".source')`
<Ianulus>
(I may have build without switching)
<infinisil>
Ah yeah check that first
ddellacosta has joined #nixos
philr has quit [Ping timeout: 260 seconds]
<Ianulus>
Okay, /etc/nix/nix.conf now has some lines containing `hies`
<Ianulus>
rebuilding … looking good: I see a lot of lines `copying path […] from […] cachix.org`
<infinisil>
:D
crispyavocadotoa has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @jonringer opened pull request #80449 → pythonPackages.signedjson: add typing to python2 → https://git.io/Jv4i7
v88m has joined #nixos
<Ianulus>
All done … hie working in vscode as expected (y)
<Ianulus>
infinisil: Thank you!
<infinisil>
Np :D
Ukari has quit [Remote host closed the connection]
<{^_^}>
Found in packages: toybox, busybox, findutils
grp has joined #nixos
<grp>
I'm having some game-killing problem. NixOS wants a working internet connection for system reconfiguration even when no package is being installed, nor new-service being enabled
<evanjs>
I get e.g. "Error: Could Not Rename: /tmp/tldrfbMqqH/tldr-master to /home/evanjs/.tldrc/tldr-master/" whenever I try to use the "update" command .... and a little too preoccupied to dig into it atm :P
<evanjs>
but probably will eventually ...
ryantrinkle has joined #nixos
vidbina has joined #nixos
<Ianulus>
I'm trying to switch vscode to unstable.vscode in systempackages … getting "unfree licence .. refusing to evaluate" even though nixpkgs.config.allowunfree = true is set. Do I have to set that separately for unstable?
<worldofpeace>
can you share how your code to use `unstable` in configuration.nix Ianulus?
<raboof>
Ianulus: nice! I try to avoid nix-env entirely myself, haven't really seen a need for it on my personal laptop (using nix-shell for 'local experiments')
<{^_^}>
[nixpkgs] @FRidh pushed 7 commits to release-20.03: https://git.io/Jv410
evanjs has joined #nixos
<duairc>
I have a problem where I can't nixos-rebuild because it's failing to find some nar files on one of my binary caches. But nothing on that binary cache is relevant for doing a nixos-rebuild, can I just tell it to ignore that and carry?
<duairc>
*carry on
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<clever>
duairc: try doing `rm ~/.cache/nix/binary-cache-v6.sqlite*` as root
<{^_^}>
[nixpkgs] @raboof opened pull request #80457 → Don't replace /etc in fhs-userenv → https://git.io/Jv41w
<duairc>
clever: Thanks :) It actually started working now after a few retries but I'll remember that in future because I've had this problem before too
<clever>
duairc: that can happen any time a binary cache gets GC'd
<raboof>
also it is scary how fast {^_^} is - typically I hear its notification before the github page creating the PR has finished refreshing :D
<clever>
and the file i listed, is the cache of what is on a cache
<evils>
hmm, in a nixos module, i can use the value of another option in the example of an option, but not the example value of another option?
andi- has joined #nixos
chagra has quit [Ping timeout: 272 seconds]
zupo_ has joined #nixos
<{^_^}>
[nix] @edolstra pushed to flakes « nix eval-hydra-jobs: Check aggregate jobs in --dry-run mode »: https://git.io/Jv4Da
<{^_^}>
[nixpkgs] @betaboon closed pull request #73237 → nixos/tests/installer: port to python → https://git.io/JewBv
Yannik_Sc has joined #nixos
acarrico has joined #nixos
datakurre has quit [Ping timeout: 260 seconds]
<mikky>
how can I reference container name inside the container config{ } ? i.e. containers.mycontainer.config { ..... "I want the string "mycontainer" here somewhere" }
<clever>
mikky: i think its a fully self-contained nixos, so you can do .config = { config, ... }: { ... config.networking.hostname
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mikky>
clever: yeah, that's what I'm doing now but it just doesn't feel right
<clever>
mikky: i think thats the best option, you can probably also do `mycontainer.config = ./container.nix`
<mikky>
mdash: nice :) though little more complex, this might enable me to do even more interesting stuff
linarcx has joined #nixos
erictapen has joined #nixos
datakurre has joined #nixos
o1lo01ol_ has quit [Ping timeout: 260 seconds]
Acou_Bass has quit [Ping timeout: 240 seconds]
<evanjs>
clever: okay maybe I'm looking at this the wrong way. INITRAMFS_SOURCE expects a directory, that it then takes and creates an initrd from. I've been supplying it an initrd.
<evanjs>
I think I just need to tweak it so that's a directory and then give it that, but I'd like to specify that declaratively :P
<evanjs>
e.g. paths in a closure just like initrd. I wonder what function or etc I'd need to do that. e.g. buildEnv?
zacts has joined #nixos
<clever>
evanjs: let me double-check what i was doing
<clever>
evanjs: because i was definitely giving it a cpio file
<evanjs>
for INITRAMFS_SOURCE? bahhh
<clever>
This can be either a single cpio archive with a .cpio suffix or a
<clever>
space-separated list of directories and files for building the
<clever>
-rw-r--r-- 1 clever users 25M Jan 18 13:35 initrd.cpio
<clever>
evanjs: i remember now, i was doing `nix-build -A initrd && cat initrd/initrd | gunzip > initrd.cpio`
<evanjs>
what in the world haha
<clever>
if the extension is right, linux will use it as a raw cpio
<clever>
if the extension is wrong, linux will pack it into a cpio for you
<evanjs>
wait.... you're not telling me... that the reason it work work... is because I have initrd instead of initrd.cpio?
<clever>
yes
<evanjs>
Btw the compressor = "cat" I think should do the same thing as that ^
<evanjs>
finally just about done with this project!
cosimone has quit [Quit: Quit.]
<{^_^}>
[nixpkgs] @disassembler pushed commit from @danieldk to release-20.03 « python3Packages.ftfy: 5.6 -> 5.7 »: https://git.io/Jv499
Pidgeotto has joined #nixos
mexisme has joined #nixos
newuser99 has joined #nixos
kolaente_ has joined #nixos
<adamse>
i have some commits to the nixpkgs repo, how do I best test that building the changed packages works as expected?
<adamse>
anything I can read?
mexisme_ has quit [Ping timeout: 272 seconds]
kolaente_ has quit [Client Quit]
ixxie has quit [Ping timeout: 240 seconds]
ixxie has joined #nixos
<newuser99>
I used to have htop in my config.nix and now I want to use home-manager's htop but they conflict. I think I'm supposed to change the priority or remove the old htop. I tried setting the priority with `nix-env --set-flag priority 8 htop` but got `error: selector 'htop' matches no derivations`. And I tried removing the old htop by doing `nix-env
<newuser99>
--delete-generations old && nix-store --gc` but that didn't solve the problem either.
<adamse>
nix-shell -E "(import ./. {}).path.to.package" seems to be a good start
o1lo01ol1o has joined #nixos
mexisme has quit [Quit: WeeChat 2.7]
joph has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
joph is now known as jonph
ixxie has quit [Ping timeout: 260 seconds]
<jonph>
hi. does anybody else have problems with "systemctl hybrid-sleep"?
growpotk- has joined #nixos
o1lo01ol1o has joined #nixos
jonph is now known as pip3000
nikola_i has joined #nixos
wavirc22 has quit [Ping timeout: 260 seconds]
nikola_i has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}>
[nixos-org-configurations] @edolstra pushed 2 commits to master: https://git.io/Jv4H6
<{^_^}>
[nixos-org-configurations] @edolstra pushed 0 commits to requesting-nix-release-s3-bucket-access: https://git.io/Jv4HP
<{^_^}>
[nixos-org-configurations] @edolstra pushed 3 commits to master: https://git.io/Jv4HX
Pidgeotto has quit [Quit: ZNC: the superior metal to CBLT]
hoijui has quit [Ping timeout: 246 seconds]
knupfer has quit [Remote host closed the connection]
growpotk- has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @cptMikky opened pull request #80469 → fix 80468: remove extra `consul` from command → https://git.io/Jv4HM
knupfer has joined #nixos
newuser99 has quit [Remote host closed the connection]
cosimone has joined #nixos
Pidgeotto has joined #nixos
<mikky>
can I overlay/override a module in similar fasion as a derivation?
<clever>
mikky: the nixos manual says how, disabledModules i think it was
opthomasprime has left #nixos [#nixos]
maddo has joined #nixos
linarcx has quit [Quit: WeeChat 2.7]
pip3000 has left #nixos [#nixos]
<mikky>
ah, "replace" is the keyword here. thanks clever
opthomasprime has joined #nixos
fresheyeball has joined #nixos
<fresheyeball>
hey out there
<fresheyeball>
for some reason today I can't use any ssh nix caches
<fresheyeball>
error: cannot connect to 'nix-ssh@192.168.1.20'
<fresheyeball>
I made no substanital change to my system
<fresheyeball>
how can I debug this kind of error?
<fresheyeball>
I get the error when trying to enter a nix-shell
<{^_^}>
[nix] @edolstra pushed to flakes « nix eval-hydra-jobs: Fix aggregate derivation name »: https://git.io/Jv4QW
slack1256 has joined #nixos
<dashkal>
So I have an odd one. Once in awhile my system locks up. Stops accepting mouse and keyboard interaction. Have to hard-reboot. I'm running a hybrid intel/nvidia laptop. Lenovo P52s. I've had this happen in both intel-only and nvidia prime mode. Where should I look to try to diagnost this?
<waleee-cl>
dashkal: look for i915 in journalctl (with apropriate --since and/or --reverse for best effect)
<fresheyeball>
Oop I figured it out
<fresheyeball>
I accidentlty changed the permissions on my ssh keys
<fresheyeball>
all is well
<fresheyeball>
ugh
<waleee-cl>
kernel 5.4 to 5.5 has some issues with intel iGPU:s
<grp>
I need to be able to force nixos-rebuild without internet. Sometimes I have all that's needed in the store but nixos-rebuild will refuse unless it can grab some *.narinfo cache
zischknall has joined #nixos
<clever>
grp: --option substituters ''
opthomasprime has quit [Quit: Leaving.]
o1lo01ol1o has quit [Ping timeout: 260 seconds]
HugoDaniel has joined #nixos
<bennofs>
can nixos-rebuild take a pre-evaled .drv instead of trying to eval the system again?
<grp>
clever: that did it! I had --option substitute false
<grp>
seems that's outdated
<grp>
clever: thanks for the accurate and fast response. I'm building an ISP-grade border router with nixos and being unable to rebuild some conf just because it can't connect somewhere its a game-killer
<grp>
s/its/is
shibboleth has quit [Quit: shibboleth]
<dashkal>
waleee-cl: Hrms, appreciated. Nothing obvious, but I'll try that again next time it does the thing.
knupfer has quit [Remote host closed the connection]
<grp>
clever: woops, seems it'll let me dry-build but that's it
HugoDaniel has quit [Ping timeout: 248 seconds]
<grp>
reading the to-be-created derivations, I don't see packages
<grp>
only systemd units
mexisme has quit [Quit: WeeChat 2.7]
<clever>
grp: if it doesnt have a compiler, and the cache is off, it will want to build the compiler from source
<grp>
makes sense, but how about system configurations? I've already added nix.extraConfs keep-outputs = true and keep-derivations = true
<grp>
why would it want a cache for that?
<grp>
the only thing I agree with is needing it for packages, even if indirectly needed
mexisme has joined #nixos
<grp>
but anything else is just... not sensible in my oppinion
<grp>
it shatters my use case
<clever>
grp: you can use nix copy and a usb stick to smuggle things in over an airgap
<clever>
grp: but in cases like this, i would just use `ip addr` and editing `/etc/resolve.conf` to bring the link up by hand, since its not meant to be air-gapped
<grp>
yeah, that's what I'd do anyways, but I wanted to keep everything nix-managed
<clever>
grp: have you looked into nixops yet?
<clever>
grp: that pre-builds things on a different machine, so you dont have as much of an issue
<grp>
haven't had the spare effort to invest in it yet
<emily>
clever: I mean... it still shouldn't fail randomly just because the network isn't available if everything needed is on disk, presumably?
<emily>
wouldn't diagnosing the root cause be a better approach?
<clever>
emily: yeah, if you turn off the cache, and have everything, it should just build
<clever>
grp: can you somehow pastebin the output of `nixos-rebuild dry-run --option substituters ''` ?
<grp>
next in line would be nixos containers. I've used them back in nixos 18 but didn't go far with them. Opted for lxc in devuan
hoijui has joined #nixos
<grp>
sure, let me get the box back into the internet
<{^_^}>
[nixpkgs] @cptMikky closed pull request #80469 → fix 80468: remove extra `consul` from command → https://git.io/Jv4HM
<grp>
ok, I screwed up, so sorry. I had a local copy of nixos-rebuild script, where I added the --option substituters '' to the nix-build call. I was calling that but seems extra arguments are handled in a not so trivial manner. Just for good luck I tried the command you quoted verbatim and it did work.
<clever>
grp: i also use that flag with nix-build and `nix build` when iterating on development, because its checking for what i just changed, on every cache, that cant possibly have it yet
<grp>
clever: ./nixos-rebuild dry-build was working fine, strange that boot didn't
<grp>
clever: thanks again. Also I have a fix to contribute regarding vlan devices handling during the boot process
Arahael has joined #nixos
<grp>
it took me a couple of hours to figure out what was making systemd wait for vlan devices that were already up
<grp>
but since the problem should be the same for many other virtual interfaces like macvlans, bridges, etc, I'd first need to define a few and test things
<grp>
is there a test-suite of sorts?
<grp>
well, prolly there's no test-case covering this issue
<cole-h>
For ZHF backporting: do I want to cherry-pick the merge commit, or the actual commit?
jgeerds has joined #nixos
growpotk- has joined #nixos
<samueldr>
the actual commit
<cole-h>
Thanks.
<Ilya_G>
I am declaring a variable that gets pulled out of the environment and then I am trying to pass that into the environment variable set of my service
<fresheyeball>
I just got distrubuted builds working
<fresheyeball>
but I have no idea what these options are
<fresheyeball>
what is maxJobs?
<fresheyeball>
why is setting it to zero mean nothing runs on my machine
garmanarar has joined #nixos
<emily>
because that runs, well, 0 jobs at maximum on your machine
<Ilya_G>
I get the attached error dump
ambro718 has quit [Ping timeout: 268 seconds]
<fresheyeball>
emily: does that mean my local machine is the preferred builder?
<fresheyeball>
and so it will only use remote if the number of jobs exceeds 1?
<emily>
fionera: not sure then, sorry. my guess would be something messed up with udev that means you aren't pulling in the rules giving your user access to the device
<emily>
does it work if you do it as root? (gross, I know)
<fionera>
yes it does o.O
<emily>
oh, you might want to make sure you have yubikey-manager installed too
<emily>
since that has some udev rules too iirc (though I guess nixos won't look at them just because you put it in systemPackages, I don't know how the udev stuff works)
<emily>
I had to add some udev rules manually for my yubikey 4 in the past but haven't lately. I think the upstream rules got fixed/changed
<emily>
(but maybe you're on an older NixOS version and so you do have to manually add it)
<emily>
oh hm the .rules aren't even in yubikey-manager, I must be confused
<fionera>
I am on nixos and nixpkgs unstable :)
<emily>
oh!
<fionera>
ykman does find it as normal user
<emily>
try setting hardware.u2f.enable = true;
<emily>
I think that's probably what's pulling in the udev rules for me
<fionera>
have that already
<emily>
if that works, then you might want to open an issue in nixpkgs -- since either there should be a gnupg option for it too, or gnupg should pull it in by default, or it should be named something other than hardware.u2f
<emily>
hm :(
jonten has joined #nixos
drakonis has joined #nixos
<emily>
oh, is your user actually in the plugdev group? ^^;
<emily>
I had to add it to users.users.emily.extraGroups manually
<emily>
and I guess it's not getting created because no user is using it or something
<Ilya_G>
@emily fresheyeball I think I found it. The property was one level deeper then it needed to be. I added option on a wrong item.
Ilya_G has quit [Remote host closed the connection]
<fionera>
emily: It doesnt get created even when I add it
<emily>
hm, are you sure? can I see configuration.nix/nixos-rebuild switch output maybe?
fenedor has joined #nixos
Yannik_Sc has quit [Quit: Yannik_Sc]
<fionera>
I now manually created it with users.groups.plugdev = {};
<fionera>
gonna reboot real quick for groups to take effect
slack1256 has quit [Remote host closed the connection]
wiml has joined #nixos
<cole-h>
Don't need to reboot IIRC
<cole-h>
Just logout and in
grp has quit [Ping timeout: 240 seconds]
<fionera>
reboot is same speed ^^
orivej has quit [Ping timeout: 265 seconds]
slack1256 has joined #nixos
<cole-h>
haha
fendor has quit [Ping timeout: 272 seconds]
<emily>
huh, I also have users.groups.plugdev = {};
<emily>
so I guess this is just broken upstream and I forgot to report it >_>
<emily>
that should probably not be required when you're enabling udev rules that reference it
<cole-h>
If that fixes it, at least
<emily>
hmm, https://github.com/NixOS/nixpkgs/issues/76482 suggests that the plugdev group is actually not what you're supposed to do and it should Just Work Magically without plugdev
<{^_^}>
#76482 (by hkjn, 7 weeks ago, open): "Unknown group plugdev" errors from pkgs.libu2f-host
<emily>
but it never worked for me, so... /shrug
<cole-h>
If it doesn't work without it, then there is something wrong ;-)
gxt has joined #nixos
<fionera>
yeah but still the same issue
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<fionera>
hmm somehow the device doesnt get the plugdev group assigned in the /sys/devices
HugoDaniel has quit [Ping timeout: 260 seconds]
noudle has joined #nixos
<{^_^}>
[nixpkgs] @zowoq opened pull request #80479 → Revert "postgresql: build < 9.5 with openssl 1.0.2" → https://git.io/Jv4FW
gxt has quit [Quit: WeeChat 2.7]
mexisme has quit [Ping timeout: 272 seconds]
<fionera>
any other idea? plugdev group exists now and I am in it