<symphorien>
gettext should probably be a nativeBuildInput
<pie_>
ok, i did try that though and it didnt seem to do anything
<pie_>
i guess this is another one of those "not added to $PATH" for some reason problems?
<jasongrossman>
cocoa-nut: There's a channel for nix on darwin. It's fine to ask here, but you might ask there as well.
<symphorien>
pie_: is gettext multiple ouput, by any chance ?
<pie_>
odd, the shell even suggests to me:
<pie_>
The program ‘msgfmt’ is currently not installed. You can install it by typing:
<pie_>
nix-env -iA nixos.gettext
<pie_>
symphorien, i honestly have no idea
<symphorien>
> gettext.outputs
<{^_^}>
[ "out" "man" "doc" "info" ]
xkapastel has joined #nixos
cocoa-nut has quit [Ping timeout: 256 seconds]
<pie_>
symphorien, so..if i get out that should have everything important?
<pie_>
so, since its multiple output, what should i learn from/for that?
<symphorien>
As you say, out should have everything
<symphorien>
Wrong hypothesis
o1lo01ol1o has joined #nixos
<pie_>
hm
o1lo01ol1o has quit [Ping timeout: 258 seconds]
<pie_>
symphorien, so um how do i get cmake to actually do anything
<pie_>
im assuming its somehow in the wrong path
<pie_>
configuring
<pie_>
no configure script, doing nothing
<symphorien>
No idea, sorry
doyougnu has quit [Ping timeout: 268 seconds]
<pie_>
actually i think its ignoring my changes to the nix script
<pie_>
because it should have choked after the patchshebangs but i didnt
<pie_>
or idk, sigh
<pie_>
thanks anyway
<pie_>
ok apparently its preConfigure, and preConfigurePhases, and not whatever i did
<pie_>
or idk. well ill stop spamming now any maybe ill get somewhere
Makaveli7 has joined #nixos
jasongrossman has quit [Remote host closed the connection]
<symphorien>
Ah. Use nix-build then. It is slower but less treacherous
<symphorien>
As a whole you may gain time ;)
shpx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shpx has joined #nixos
<pie_>
symphorien, im actually using nix-build in parallel
<pie_>
and trying to check stuff with nix-shell when something doesnt work
<pie_>
symphorien, so i figured id skip over the msgfmt stuff maybe it works in nix-build, but i cant figureout why i dont even get a preconfigure
abaiste^ has quit []
<{^_^}>
[nixpkgs] @6AA4FD opened pull request #53861 → nicotineplus: init at 1.4.1 → https://git.io/fhngw
<symphorien>
echo $phases
<symphorien>
cmake may have special phase names
hph^ has joined #nixos
shpx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pie_>
symphorien, oh my god. i vaguely remember something about this
<pie_>
except nix-shell says $phases is empty
<pie_>
symphorien,
<pie_>
"cmakeConfigurePhase() {
<pie_>
runHook preConfigure"
* pie_
shrugs :/
eadwu has joined #nixos
erictape1 has joined #nixos
shpx has joined #nixos
dsiypl4__ has quit [Ping timeout: 250 seconds]
Makaveli7 has quit [Quit: Leaving]
thc202 has quit [Ping timeout: 250 seconds]
erictapen has quit [Ping timeout: 258 seconds]
jasongrossman has joined #nixos
<jtojnar>
what error are you getting, pie_?
eadwu has quit [Ping timeout: 252 seconds]
<pie_>
jtojnar, two things for starters: cmake not doing anything (probably possibly unconventional directory structure) and the other is preConfigure not running
<pie_>
but it ooks like cmake hooks arent even getting added or something?
rprije has quit [Read error: Connection reset by peer]
rprije has joined #nixos
<q6AA4FD>
pythonPackages, and haskellPackages are specifically for libraries and development stuff, rather than just any package written in the language, correct?
<infinisil>
q6AA4FD: Yup
<infinisil>
Although, if the package written in it does build a haskell library as well (some do), it should still be in haskellPackages (and can have a top-level attribute too)
Dedalo has quit [Ping timeout: 250 seconds]
<q6AA4FD>
infinisil: so, you would list it in both all-packages and haskellPackages in that case?
goibhniu has quit [Ping timeout: 250 seconds]
wpcarro has quit [Quit: Lost terminal]
<infinisil>
q6AA4FD: Just put a `foo = haskellPackages.foo` in all-packages.nix
<infinisil>
So yeah
griff_ has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhn2q
shpx has joined #nixos
eadwu has joined #nixos
<q6AA4FD>
infinisil: i see. thank you for explaining.
sary has quit [Quit: Lost terminal]
<pie_>
ahh man, when things work with nix. feels good man.
Ashton has joined #nixos
<pie_>
or...welll...it built at least
shpx has quit [Client Quit]
<Ashton>
Ok, so I'm having a hard time figuring this one out.
<Ashton>
Trying to enable Widevine on Firefox (damn you Netflix!)
<Ashton>
But .... I can't figure out how to set that line to true!
<infinisil>
Ashton: Should be something like `pkgs.wrapFirefox (pkgs.firefox-unwrapped.override { drmSupport = true; }) {}`
<Ashton>
Put that in my systempackages?
<pie_>
Ashton, yeah...it may be similare to how one enables adobe flash which might be easier to find resources on since i managed to do it recently (idk)
<pie_>
oh hm , or not, i needed to override something else
o1lo01ol1o has joined #nixos
drakonis has joined #nixos
<pie_>
apparently firefox.enableAdobeFlash exists, but its not listed in the options search thing on the website
oborot has joined #nixos
<oborot>
Does anybody use Bumblebee and Steam?
<Ashton>
pie_ enableAdobeFlash doesn't seem to do much.
<oborot>
Can't seem to get the primusrun or optirun wrapper to work with any steam games, they just crash immediately.
<Ashton>
Oh wait, memory failure.
<Ashton>
The flash download 404s
<pie_>
Ashton, yeah i had to override the url
<pie_>
or rather, i grabbed firefox from unstable
<oborot>
As far as I can tell, Bumblebee is working normally. At least, glxinfo yield the "NVIDIA" string.
<oborot>
You know what... it might be possible that steam is automatically running it through one of the wrappers.
<oborot>
At least, my games seem to work if I don't mess with the start options, and they also seem to be running faster then when they did before I installed Nvidia/Bumbebee.
<oborot>
Hopefull it's not a placebo.
<jtojnar>
pie_: sometimes they are transitive dependencies (from Requires key in the pc file) that are not propagated
<pie_>
makes sense
red_ has joined #nixos
<pie_>
well in any case i got it to build, now i need to figure out which path resolving mechanism is broken...which is causing it to look for some files in the wrong place
<q6AA4FD>
what's the recommended strategy for making multiple changes to nixpkgs at once? do you make a fork of nixpkgs for each change, and a separate remote for each or something?
shibboleth has joined #nixos
<gchristensen>
nodyn: I know of one company which spawns AWS EC2 ~10,000 servers/mo
<jtojnar>
pie_: I think that is for some kind of local build
ng0_ has joined #nixos
<pie_>
jtojnar, i just hackily added the files where it expected them and it worked
<pie_>
might fix later...
<ottidmes>
nodyn: just speculating, but anybody that I have heard / spoken to about NixOS that have taken the effort in learning NixOS tend to run it on both their development machine (except some MacOS+Nix users) and servers if they own any
<pie_>
i cant get it to use shortcuts though
ng0 has quit [Ping timeout: 256 seconds]
evhan has joined #nixos
<pie_>
i mean hotkeys. which is to say i havent gotten the actual functionality to work yet. odd.
<ottidmes>
q6AA4FD: I would either first use an overlay and then a checkout per PR, sharing the worktree (cost like 800M less space...)
<clever>
nodyn: i run nixos on my laptop, desktop, nas, router, and have working installs on some unused hardware, 1 laptop, 2 netbooks
<ottidmes>
NixOS everywhere!
<gchristensen>
nodyn: maybe we can help more if we know more about what you're asking for
<q6AA4FD>
ottidmes: thank you. the examples of overlays i've seen seem rather complicated, do they need to be?
<pie_>
nevermind, it works. starting it from my tmux session gave it the wrong dbus environment or something
<nodyn>
That one was just out of curiosity actually! But I'm looking for help with setting up LDAP through Nix (We're planning to migrate about 4-5 servers to NixOS in the near future).
<nodyn>
(I'm happy to provide more details though)
<ottidmes>
q6AA4FD: overlays are really simple, basically a function with two arguments returning an attrset, the complicated stuff is in what they are overwritting
<gchristensen>
aanderse: send a PR improving it :)
<gchristensen>
nodyn: awesome!
<dmj`>
nixos usage statistics?
<q6AA4FD>
ottidmes: i think i see. if i want them to override packages, i might be in trouble, but if it's just an extra set of packages, it's easy to set up.
<{^_^}>
#49470 (by grahamc, 10 weeks ago, merged): kernel: enable MLX5_CORE_EN when possible
<aanderse>
gchristensen: no problem. appreciate the link. it's been years since i ran gentoo and had to muck with kernel config. so saying i'm "rusty" would be generous. your link will definitely help though :)
<gchristensen>
:)
<ottidmes>
q6AA4FD: Overriding vs adding are the same, you just add: package-name = super.callPackage ./path/to/package { };
<aanderse>
had a production server that needed more ram and found out the hard way hot add was not compiled in... that was bad :(
<gchristensen>
ouch.
Supersonic has quit [Disconnected by services]
<infinisil>
q6AA4FD: Well tbh, if you intend to make changes to nixpkgs directly, overlays are just annoying to go through
Supersonic112 has joined #nixos
<aanderse>
yeah. a definite must have for a production environment!
Supersonic112 is now known as Supersonic
<infinisil>
q6AA4FD: Just use a single fork, clone it, make a branch for every change
<ottidmes>
infinisil: I would disagree with you when it is just about packages, but well, to each his own
<nodyn>
clever: A router? Sounds really cool, what kind of machine are you using for that? Would you be cool with talking about that setup? I'm kind of curious.
<q6AA4FD>
infinisil: alright, i'll look into that too!
sary has joined #nixos
<clever>
nodyn: lets take this to #nixos-on-your-router
<gchristensen>
nodyn: #nixos-on-your-router is a quiet but periodically interesting channel :)
<nodyn>
I'll join that :)
<infinisil>
ottidmes: I mean, the 800MB checkout is something you do once, and I think everybody has that much space. And if you intend to e.g. fix a package in nixpkgs, it's no use writing an overlay when you need to PR it anyways. Okay I guess the overlay would be easier if you intend to use that fix without having to change your nixpkgs path for your system..
<infinisil>
I guess it has both advantages :)
<clever>
infinisil: git worktrees also help save space and work on multiple branches
<infinisil>
Yeah, git worktrees++
init_6 has joined #nixos
<q6AA4FD>
infinisil: that makes sense, though i think it might be nice to use an overlay if you spent a long time developing a package while dogfooding it
<ottidmes>
infinisil: yeah I mean it is like 900MB right now, and using worktrees I cost me only 100M to create a copy and I like that I can just mess with it and not having to deal with having to stash every time I would be changing branches otherwise (if I just kept everything in one directory)
<pie_>
i forgot how to refer to services in a build script. I want to use lib.optional on services.bamf.enable
<pie_>
trying to use {services}: with callPackage doesnt work
<pie_>
and its not config.services either
<pie_>
(afaict)
<clever>
ottidmes: for further savings, keep your source trees on zfs, and flip on dedup, then that 100mbit cost becomes practically zero
<gchristensen>
(don't casually turn on dedup)
<clever>
https://xkcd.com/2083/ "and when i open too many tabs, it fogs nearby photographic film"
<pie_>
its a relatively intermittent problem in that some things seem fine others do not
o1lo01ol1o has quit [Ping timeout: 258 seconds]
<esmerelda>
ohhhhhhhhhhhh I see the problem
<esmerelda>
I should open a bug
<esmerelda>
so, the way VS Code is packaged in NixOS, extensions are intended to be static and declared in a Nix expression
<esmerelda>
before about July or so, VS Code used an intellisense backend called "Jedi", but after that they switched to Python Language Server (pyls)
<esmerelda>
however, the VS code python extension (which lives in nixpkgs!) doesn't include the langage server. instead, VS code tries to fetch the latest version.... and write it to /nix/store
<esmerelda>
this predictably fails, and VS code has no intellisense
alex`` has quit [Ping timeout: 245 seconds]
iqubic has quit [Remote host closed the connection]
fusion809 has joined #nixos
eadwu has quit [Ping timeout: 268 seconds]
shpx has joined #nixos
init_6 has quit []
<jtojnar>
pie_: some programs expect to pick up icon theme from environment
smolboye has quit [Read error: Connection reset by peer]
smolboye_ has joined #nixos
orivej has joined #nixos
o1lo01ol1o has joined #nixos
smolboye_ has quit [Client Quit]
ddellacosta has quit [Remote host closed the connection]
<fusion809>
Hi good folks, where is the docs for makeDesktopItem? I've checked the nixpkgs docs, but it doesn't seem to be in there (I've used Firefox's find function to look for makeDesktopItem and I cannot find it).
<esmerelda>
I'm getting "mv: Cannot remove ...: Permission denied" when I try to build my changes... I have no idea how to debug
tzemanovic has quit [Ping timeout: 252 seconds]
xzdandy has quit [Client Quit]
npmccallum_ has quit [Ping timeout: 252 seconds]
tzemanov_ has quit [Ping timeout: 252 seconds]
vk3wtf has quit [Ping timeout: 252 seconds]
npmccallum has joined #nixos
fusion809 has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 258 seconds]
sb0 has joined #nixos
q6AA4FD has joined #nixos
oborot has quit [Ping timeout: 246 seconds]
<sb0>
I need to put a large tarball (10's of gigabytes) into my nix store. using normal methods (e.g. nix-store --add-fixed file.tar, src=file.tar in the derivation that needs it) results in the whole file being copied into RAM, which breaks
<esmerelda>
I'm getting permission denied and I'm absolutely totally unable to repro at all...
<sb0>
is there an easy way to have a debian container inside nixos?
<esmerelda>
(commands work fine for me, commands fail for nix-rebuild)
<esmerelda>
*nix-build
<sb0>
esmerelda: could it be that you are trying to modify the input source and nix disallows that?
<esmerelda>
sb0: I don't think that's possible! I'm only modifying my copy of the input source
<esmerelda>
oh of f****king course it works now
<esmerelda>
I had to do chmod -R +w after the copy
<esmerelda>
since I think it fails with the 444 mode acls
<esmerelda>
life is way too short for unix permissions
orivej has joined #nixos
jasongro` has quit [Quit: ERC (IRC client for Emacs 26.1)]
griff_ has quit [Quit: griff_]
<q6AA4FD>
sb0: my unfortunate solution to OOM on my 4gb laptop was to make a swap partition
<q6AA4FD>
depend on your rootfs, you could also make a swapfile, mount it temporarily, and then delete it when done
ixxie has joined #nixos
<sb0>
q6AA4FD: why is it doing that?
<q6AA4FD>
sb0: i really don't know. i read on some git issue a day or two ago when i was dealing with it that it's on their radar as an issue, but i don't have any idea of the technicals behind it
<{^_^}>
lxc/lxc#1403 (by foresto, 1 year ago, open): starting any container with umask 007 causes lxc-stop to hang and prevents clean shutdown of host system
Lears has joined #nixos
<ivan>
q6AA4FD: it feels like it's using up too many of something and then Xorg blows up on the next stroke
Jackneilll has joined #nixos
<ivan>
and oops I forgot to look in my ~/.xorg.log to see if it said anything useful this time
[Leary] has quit [Ping timeout: 250 seconds]
<wedens>
can systemd-nspawn be used to run opengl applications?
<sb0>
ivan: before I was trying systemd-nspawn and it would crash on boot. is there any of those container solutions that actually works?
<sb0>
no change after setting umask to 0 and restarting the container
<sb0>
and yes, lxc-stop also hangs and I have to use -k
<ivan>
privileged or unprivileged lxc?
<ivan>
if it's the umask issue, the only way to unbreak it is to reboot the host machine (which will fail to shut down cleanly)
<{^_^}>
[nixpkgs] @vcunat pushed to master « metrics job: update for nix-2.2 »: https://git.io/fhnr0
tzemanovic has quit [Ping timeout: 245 seconds]
Jackneilll has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @vcunat pushed to master « linuxPackages.virtualboxGuestAdditions: fix build after xorg 1.20 »: https://git.io/fhnrg
<klntsky>
Is there a guide on handling systemd services when writing derivations? I see some packages just put service files in $out/etc/systemd/system - are these files handled automatically by systemd?
<klntsky>
One of the packages I'm talking about is tools/networking/modem-manager. It also has systemd in buildInputs.
<symphorien>
also, upstream derivations rarely work on nixos because they relay on the PATH and the default PATH for systemd units is nearly empty on nixos
<symphorien>
on non-nixos, the units will be completely ignored
<wedens>
I think modem-manager uses systemd as a build time dependency
<symphorien>
systemd provides udev iirc
iqubic has quit [Remote host closed the connection]
agander has joined #nixos
sonaj96 has joined #nixos
janat08 has joined #nixos
sonaj96 has left #nixos [#nixos]
<janat08>
Do you require inernet connection during install because it fails on build step
<symphorien>
install of nixos ? With a minimal configuration, no, but if you add packages which are not on the live cd to your configuration.nix, yes
<{^_^}>
[nixpkgs] @dotlambda pushed 2 commits to release-18.09: https://git.io/fhnoX
<janat08>
I didn't.
<ottidmes>
I have a script of 65 lines that I would like to make a PR for to be added to build-support, but I am not sure what the best approach is to package it, should I just include the script, or should I maintain a GitHub repo just for the script?
orivej has quit [Ping timeout: 245 seconds]
<symphorien>
Janat08: what is if (failing to) build ?
<b1000101>
Mic92: hmmm alright, maybe I've noticed it just now but the problem still persists, it won't switch to any new configuration as /boot will not mount.
<sphalerite>
Janat08: it depends on the configuration. If it has stuff that's not included in the installer, yes it will require an internet connection
<sphalerite>
b1000101: how is it failing to mount?
hellrazor has quit [Ping timeout: 272 seconds]
<b1000101>
sphalerite: give me a sec, I'll reebot into the new gen and capture the exact output
<sphalerite>
Does anyone know things about configuring cursors? I want to use Adwaita globally, so what I've done is 1. Set XCURSOR_PATH to ${gnome3.adwaita}/share/icons for my X session 2. run xrdb -merge with Xcursor.theme: Adwaita and Xcursor.size: 64 before anything else in my X session. This *mostly* works, but in the terminal emulators I've tried so far (xterm, gnome-terminal) the cursor is still the weird tiny
<sphalerite>
vertical bar rather than the nice big visible one from Adwaita.
<sphalerite>
This has only happened in terminals, the I-bar shown in Firefox for example is the way I want it
<symphorien>
Janat08: can you paste the end of the error message ? we know that the thing you install which is not included on the live cd depends on curl but that does not narrow a lot :)
<betaboon>
sphalerite: i configure cursor within xresources `Xcursor.theme`. but i have the exact same problem that this doesnt seem to pick up in terminal emulators
<sphalerite>
betaboon: I suppose that's a good thing because reproducibility? :p
<betaboon>
yeah xD
<betaboon>
i have spent maybe 3-5 sessions on trying to find a solution, but never found one
b1000101 has quit [Ping timeout: 256 seconds]
b1000101 has joined #nixos
dsiypl4__ has joined #nixos
<sphalerite>
betaboon: hmm, the cursor appears right in alacritty
<b1000101>
sphalerite: [FAILED] Failed to start File System Check on /dev/disk/by-uuid/9F37-04AF . See 'systemctl status "systemd-fsck@dev-disk-by\\x2duuid-9F37\\x2d04AF.service" '
<janat08>
I decided to try latest image. It just cascaded from there with unmet dependencies
__monty__ has joined #nixos
<sphalerite>
b1000101: that's not mounting it though.
<b1000101>
sphalerite: [DEPEND] Dependency failed for /boot.
<b1000101>
fstab is alright, previous generation have the same uuid
<sphalerite>
b1000101: is it maybe already mounted?
<betaboon>
sphalerite: i can confirm that xcursor.theme gets picket up on alacritty.
<{^_^}>
[nixpkgs] @Profpatsch closed pull request #20960 → odbc: begin generalizing over different driver managers → https://git.io/v1Emu
* sphalerite
jumps into source code to see if he can find what alacritty is doing differently
<janat08>
Funny thing. The torrent version is 776 to 1853 of official. I suppose I got unstable
<janat08>
Oh nm
nokomprendo has joined #nixos
<{^_^}>
[nixpkgs] @FRidh merged pull request #53793 → ninja: re2c is not for building docs → https://git.io/fhZFU
<{^_^}>
[nixpkgs] @FRidh pushed commit from @volth to staging « ninja: re2c is not for building docs »: https://git.io/fhnKO
<spooky_>
Hello folks, I've got some troubles with an USB scanner. I'm able to use it only as root user. Does anyone knows how to fix this and let me use the scanner as normal user?
<betaboon>
spooky_: create a udev rule that changes ownership of the device (maybe to a specific group) ?
<sphalerite>
betaboon: looks like it's a bug in vte, in the case of gnome-terminal
<b1000101>
sphalerite: it's plaint weird... I've just switched to a new generation and I'm able to boot again. I've just added some random packages, reconfigured and poof. Can't figure out why it wasn't working for 10 generations :)
<mtesseract>
Hi, I have a question regarding the haskellPackages set in nixpkgs. In nixpkgs.pkgs.haskellPackages haskell many packages can be found by their short name. e.g. pkgs.haskellPackages.aeson yields «derivation /nix/store/rf9dn81dz5vpm444gp093jv5n8p5f9c4-aeson-1.4.2.0.drv» for my version of nixpkgs. But e.g. pkgs.haskellPackages.text yields 'null'.
spooky_ has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @thefloweringash opened pull request #53876 → bitwarden-cli: init at 1.7.0 → https://git.io/fhnK4
<mtesseract>
Why is that? At the same time, both packages "aeson" and "text" can appear as dependencies in the attribute 'executableHaskellDepends' for Haskell package derivations. There must be some transformation going on under the hood?
janat08 has joined #nixos
<immae>
Hi everyone! Is there any documentation for policies about adding (/maintaining) new packages to the nixpkgs? I started using nix to install my different services, and created in that occasion a bunch of services and packages that didn’t exist, so I’d like to contribute back now
<sphalerite>
betaboon: I'm not sure a path that leads to reading gtk source code is a good one, yet here I am :p
shpx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sphalerite>
oh jeez, urxvt source is managed with CVS??
<__monty__>
immae: Definitely don't refrain *if* you believe your contribution will be valuable to many people. If you just want it in nixpkgs for *your* convenience that's something else.
<immae>
I don’t care having them in the nixpkgs (it’s easier to manage locally)
<immae>
But there are things like mastodon that I heard people wanted in nix
<ixxie>
immae: the manual also has language-specific sections and those have additional guidelines
<immae>
Thanks ixxie I’ll have a look
<__monty__>
immae: Sounds like good contributions to me.
<ivan>
why does this complain about my substituter not having signatures for path '...'? nixos-rebuild --option require-sigs false --option substituters ssh://at@ra.wg switch
mtesseract has joined #nixos
civodul has joined #nixos
echo-area has quit [Remote host closed the connection]
<betaboon>
sphalerite: just switched to polybar for the xwindow-module and the possibility to define left-,middle-,right-moduels
<sphalerite>
fair enough
<estrom>
Is anyone familiar with using Haskells Stack and nixos? I created a default.nix containing buildInputs = [ x11, libXrandr, libXinerama ], and added X11 to stack. But it won't build the X11 package because it can't find the X11/extension/*.h headers.
<ottidmes>
If you have a local src, like src = ./somefile; should I define it like src, or is it considered better to then just inline it, like ${./somefile} in the installPhase for example?
<kumikumi>
basically my question is about how I could change/override something about the way a particular package (in my example, cowsay) gets installed on my system
<__monty__>
kumikumi: Have you considered an overlay?
<sphalerite>
ottidmes: depends whether you need it as an environment variable (e.g. if you're using standard unpackPhase) or not I guess
<kumikumi>
__monty__: Nope I haven't, first time hearing that word :)
<{^_^}>
Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
<ottidmes>
sphalerite: seems like it is not even allowed, I thought I saw some not defining one though, I get: variable $src or $srcs should point to the source, guess I would then need to be explicit about having just a installPhase
<kumikumi>
.... in the context of NixOS, that is :)
<sphalerite>
ottidmes: only if you have the unpackPhase. If you disable unpackPhase you don't need an src
<__monty__>
kumikumi: Without using nixpkgs you mean?
<kumikumi>
__monty__: what do you mean?
<ottidmes>
sphalerite: then I would need unpackPhase = ":"; right?
<sphalerite>
ottidmes: yes, that's one way
<sphalerite>
ottidmes: if you don't need any of the standard phases, you may also want to consider using buildCommand instead of defining phases, or going straight for runCommand
<ottidmes>
sphalerite: that might be better yeah, since it is just wrapping up a script
<__monty__>
kumikumi: If the package comes from nixpkgs then overlays *are* the way to alter them in the context of nixos.
<kumikumi>
__monty__: alright thanks
<ixxie>
my buildPhase doesn't seem to yield an error and yet my installPhase can't seem to find the file it should produce...
<clever>
ixxie: can you pastebin your current nix file?
<kumikumi>
So what is the difference between an override and overlay?
<clever>
kumikumi: an overlay is a set of overrides to apply to many things
<clever>
ixxie: at the end of the buildPhase, add a `ls -ltrh` and then at the start of installPhase, add it again
<ixxie>
how can I make the build more verbose? Its just showing the last 10 log lines instead of all
<clever>
ixxie: use `nix-build` rather then `nix build`
<ixxie>
clever: it seems indeed nothing is built at all
<estrom>
infinisil: I see. What is the `stdenv.mkDerivation` and `haskell.lib.buildStackProject` called in a nix file? And what are their semantics, is it 'I am extending environment X with ...'?
<clever>
sounds like pandoc is to blame
o1lo01ol1o has quit [Ping timeout: 258 seconds]
<klntsky>
how can I actually install & start my newly-written service from local nixpkgs repo? It should be run as root.
<eyJhb>
Off-topic, but if somebody knowns.. How in the hell, can you attach files to a github issue WITHOUT drag and drop?
<clever>
kumikumi: add the module to the imports section of configuration.nix
<__monty__>
eyJhb: Where it says "Attach by drag & drop..." then "selecting them" is a link to a regular file manager widget.
<kumikumi>
clever: is there an example somewhere I could take a look at?
<__monty__>
Actually, the entire box may be the link.
<erictapen>
hello everyone, I have a service that runs 'tcpdump -i any' and I want it to run as soon as possible on system start. any recs for what targets to choose for WantedBy and After?
the-kenny has quit [Quit: WeeChat 2.3]
the-kenny has joined #nixos
dsiypl4__ has quit [Ping timeout: 240 seconds]
<Laalf>
erictapen: systemd-analyze plot might help you
abathur has joined #nixos
JosW has quit [Ping timeout: 252 seconds]
kisonecat has joined #nixos
mtesseract has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kisonecat has quit [Ping timeout: 250 seconds]
dsiypl4__ has joined #nixos
<abathur>
looking for pattern advice regarding nix-shell, developer/language-specific tools, and editor plugins (elaboration coming...)
mtesseract has joined #nixos
shpx has joined #nixos
<{^_^}>
[nixpkgs] @vcunat pushed to master « pythonPackages.pivy: provide libs missed by the linker »: https://git.io/fhn6x
<abathur>
moving systems and using it as a chance to manage more of the system with nix; I was hoping to cut some stuff that was managed by brew or pip (linters, formatters, debug utils etc.) out of my general user environment and push it out into shell.nix files, but I hadn't thought quite far enough to consider that I have sublime text plugins that need to find and use some of these tools
<__monty__>
abathur: Maybe there's writing to be found about how emacs users do it?
fendor has quit [Ping timeout: 240 seconds]
endformationage has joined #nixos
oborot has joined #nixos
freedan42x has quit [Quit: Leaving]
MichaelRaskin has joined #nixos
<abathur>
__monty__: good idea; searches for sublime haven't turned up much, but I'll try emacs now
o1lo01ol1o has joined #nixos
<wedens>
abathur: is there direnv plugin for sublime?
<abathur>
looking
<abathur>
yeah
<wedens>
you can use direnv with editor plugin for exact thing you describe
<abathur>
only 159 installs, but it's there :)
<erictapen>
Laalf: thats indeed a nice command.
<mtesseract>
I am doing a NixOS upgrade using 'nix-rebuild switch --upgrade', which triggers "no space left" errors (e.g. creating file '/nix/store/678hr5chsgf6npgicryhc0nfz7npi5vk-tzdata-2018g/share/zoneinfo/right/Antarctica/South_Pole': No space left on device). But, according to 'df' none of the partitions is close to 100% disk usage. The partition holding /nix has > 4 GB left. What could be the reason for this?
erictapen has quit [Quit: leaving]
<abathur>
wedens: thanks--will look into making that work
<mr_noobs>
A webapp I'm trying to install has some php modules prereqs, but I cant find them with NixOs packages search
<Laalf>
can someone tell me why i should use home-manager over nix-env? stuff like "error: file 'home-manager/home-manager/home-manager.nix' was not found in the Nix search path (add it using $NIX_PATH or -I)" pops up all the time and the primary reason why i use it is so i can easily reinstall my all my packages if i bork my profile or reinstall or whatever. nix-env -q does not output correct names to install. is there an alternative to nix-env -q so that i dont
<Laalf>
have to keep struggling with home-manager?
mtesseract has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
Laalf: 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
<Laalf>
rycee: that is not what i want from home-manager my issue is that for example nix-env -q returns telegram-desktop-1.5.4 while what i have to do to install it is nix-env -iA nixpkgs.tdesktop is there an easier way around that?
<rycee>
Laalf: Yeah, I usually use nix-index to find the package to install.
<Laalf>
i would like to have the option to nix-env -q > file and xargs -a file nix-env -i. which is not possible it seems. and home-manager offers that but seems to break all the time
<Laalf>
i can search for packages with nix search
<infinisil>
,declarative
<{^_^}>
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
<infinisil>
Laalf: ^^
<Laalf>
yes i know. and all of them are painful in one way or another
<wedens>
what's painful about home-manager? what's your workflow?
<Baughn>
wedens: WEll, since you ask. :)
<Baughn>
I want to manage my user environment with nixos-rebuild, but that doesn't seem, er, convenient.
<Laalf>
error: file 'home-manager/home-manager/home-manager.nix' was not found in the Nix search path (add it using $NIX_PATH or -I) until i nix-channel --update and nix-shell '<home-manager>' -A install again. also no way to install from master
<wedens>
Laalf: are you in nixos or some other os?
<Baughn>
(Or possible.)
<Laalf>
wedens: nixos
<timclassic>
Laalf: You can use `nix-env --query --available --attr-path` to include attribute names in nix-env output.
<wedens>
Laalf: you can use home-manager as nixos module, ans use regular nixos-rebuild switch
<Laalf>
wedens: any docs on that?
<wedens>
that's what I do
<infinisil>
I do that too
<timclassic>
Laalf: (The `--attr-path` argument is the important part)
<rycee>
timclassic: But I don't think `--attr-path` works with the plain -q option.
<Baughn>
wedens: That is not what I'd call "docs">
<wedens>
¯\_(ツ)_/¯
<Laalf>
can you install packages from master with home-manager somehow?
<timclassic>
Laalf: Sorry, I was replying specifically to this sentence: "nix-env -q does not output correct names to install"
<Laalf>
timclassic: oh does it? error: cannot import '/nix/store/zsfkn004z6sdfmkwvxf7jpkrw64fjh9y-source', since path '/nix/store/24mcf4vx1wn2srghzwr5q8r2md1ql053-source.drv' is not valid, at /nix/store/hqlpbgzjfl2hgyv0sc5mr1qj80fs3a26-home-manager-18.09/home-manager/tests/default.nix:14:1
<timclassic>
rycee: Perhaps it requres `-a`? I routinely run `nix-env -qaP`.
<rycee>
timclassic: Yeah. My understanding was that Laalf wanted for the installed packages, though.
<Laalf>
that is true
<rycee>
timclassic: Of course, I guess it would be possible to do something like a sql join on them :-)
<timclassic>
rycee: Ah, fair enough.
<timclassic>
rycee: Though that may still be problematic across nixpkgs upgrades, when the names change.
<wedens>
Laalf: you can install packages from any nixpkgs revision anywhere. `let master = (import (builtins.fetchGit { ref = "master"; url = https://github.com/NixOS/nixpkgs" }) {}) in home.packages = [ master.some_package];`
<tilpner>
^ Note that this may prevent you from rebuilding without internet connection
<wedens>
yeah
<tilpner>
You can use other pinning mechanisms to pin recent-enough nixpkgs versions without the constant refetching
<wedens>
I wouldn't recommend using "master"
<wedens>
but if you want, you can :)
<rycee>
timclassic: Yeah. I think it'll be tricky to reliably manage a declarative package set using `nix-env -iA` for individual and then extracting the packages from `nix-env -q`. More reliable to manage a file containing the necessary package expressions.
<Laalf>
home-manager as a nixos module seems interesting. ill see what wedens master stuff might do for me there. i dont know nix tbh so that will be a ride
<timclassic>
rycee: Agreed. I admit I jumped into this conversation in the middle and may not have had full context :)
<rycee>
But I recall seeing some tool on the mailing list that would simplify this somewhat.
imdoor has quit [Quit: imdoor]
<wedens>
Laalf: you can use unstable channel instead of master, if you want to
<Laalf>
wedens: for telegram that is sometimes a bit behind. and i know that kde and unstable dont always play nice
<wedens>
Laalf: you can use it only for telegram
<tilpner>
wedens: Oh, and you generally want fetchFromGitHub vs fetchGit when url refers to GH
<tilpner>
It's going to be much faster on average
mtesseract has joined #nixos
<Laalf>
wedens: that is what i wanted. i will see what your expression does. i dont know nix really
<Baughn>
Probably have to go at it with an axe first. That script fetches the most recent <insert channel here> that's passed the tests, then cherry-picks possibly multiple patch series on top of that.
<Baughn>
Things I'm working on PRs for, mostly.
<wedens>
Laalf: if you have unstable channel, you can `let unstable = import <nixos-unstable> { }; in home.packages = [ unstable.telegram ];`
<Baughn>
get_base() should be generally useful though.
<wedens>
Laalf: and only telegram will use unstable (expression above with master also used master for `some_package` only)
<Baughn>
I also set my configuration.nix to build some nixos tests before deploying. It's great to know that the default config works, but I want to know that *my* config works.
<Laalf>
i will have a snack and see what home-manager as a nixos module offers. then i can throw in the unstable/master telegram. also does the newest anydesk work for anyone?
<{^_^}>
[nixpkgs] @peti pushed 8 commits to haskell-updates: https://git.io/fhnPF
<symphorien>
,locate bin less
<{^_^}>
Found in packages: less, busybox
<symphorien>
^ joepie91
<joepie91>
aha :P
isidore has joined #nixos
thc202 has quit [Ping timeout: 240 seconds]
<wedens>
rycee: could you help me with this home-manager thing https://paste.ee/p/QZ65l ? it failes with "Error installing file '.local/share/applications/mimeapps.list' outside $HOME"
<wedens>
it's considered a conflict or something
<wedens>
even though there is no overlap
<rycee>
Instead of `home.file."${config.xdg.dataHome}…` try `xdg.dataFile."…"`
<wedens>
rycee: same error
<rycee>
Oh, and instead of `toString ../../config/mimeapps.list` use `../../config/mimeapps.list`
tzemanovic has joined #nixos
<wedens>
I want to have a symlink directly to the file (not to the file in the store)
<rycee>
I'm not certain why you are getting that error. I tried it and didn't get such an error. Is `../../config/mimeapps.list` a symlink?
<{^_^}>
[nixpkgs] @FRidh pushed 9 commits to python-unstable: https://git.io/fhnX1
nikivi has joined #nixos
<rycee>
wedens: In any case, even if it worked I would suggest using some other means of solving it. Giving source a string is best avoided. At some point I might make HM error out on such use of the source option. Might instead add another option like `home.impureUnsafeFile` or something 🙂
<wedens>
rycee: no. ../../config/mimeapps.list is a real file. I solved the problem by creating a symlink to ../../config/mimeapps.list inside ../../local/share/applications and HM will just make anither symlink to the symlink :)
<joepie91>
rycee: ah, right
<rycee>
wedens: Hehe, sneaky.
<joepie91>
also, custom folders in /var are ignored by Nix, right?
<symphorien>
I don't know whether it is already enabled in the live cd
<janat08>
I tried doing installation through VM mounting hard disk with paritions from linux through windows, the partitions aren't actually there :D, so much for exposing the "disk"
<janat08>
it would be pretty redicilous if it wherent
tzemanovic has quit [Remote host closed the connection]
<wedens>
rycee: what's the reason why "nixos-rebuild build-vm" (I haven't tried it myself, but it's mentioned in the repo) doesn't work with home-manager used via nixos module?
aleph- has joined #nixos
<rycee>
wedens: Because the activation script needs to install the packages of `home.packages` and therefore needs access to nix-daemon and in particular to make /nix/store rw:able.
<rycee>
Which doesn't work for build-vm
<rycee>
If you absolutely need build-vm then you can use the nixos-module-user-pkgs branch.
<janat08>
is there a way to install package on live image locally?
<rycee>
wedens: With that branch the packages will be installed through the `users.users.<name?>.packages` nixos option rather than through `nix-env -i`.
<wedens>
rycee: I don't need build-vm currently. just being curious :) thanks for the explanation
<Laalf>
rycee: what does home.stateVersion accept?
<wedens>
rycee: does it mean that `nix-env -i` doesn't wotk in build-vm in general?
<joepie91>
hrm. if I want to turn an attrset {foo = "bar"; baz = "qux";} into a string "foo:bar\nbaz:qux", what's the most practical way to do that with nixpkgs utility functions? I always get lost in them...
<Laalf>
rycee: alright. that is kinda confusing but ill get through it
<rycee>
Setting it to 19.03 is a bit riskier since we reserve the right to change defaults under this version until the release happens.
<janat08>
symphorien: won't it try to download it though?
<clever>
joepie91: hmmm, close, but needs more work...
<joepie91>
lol
<rycee>
Laalf: Yeah, I see how it can be a bit confusing. But this is the best we've come up with for making major changes without breaking existing configs 😕
shpx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<joepie91>
symphorien: huh? are you sure that was aimed at me?
<janat08>
symphorien: the issue is that the adapter is recognized, it just drops connection. I installed the driver on ubuntu and it worked, but then it also worked for same image reinstall without the driver :P.
<symphorien>
ah that was for janat08 , sorry
<janat08>
ty
aanderse has quit [Read error: No route to host]
<joepie91>
clever: that seems to do what I need, thanks :)
aanderse has joined #nixos
<clever>
joepie91: found a slightly shorter one, one sec
<clever>
rycee: ah, flatten is identical, but in the deprecated file
<rycee>
Aye.
random_yanek has quit [Ping timeout: 268 seconds]
<rycee>
It would have been convenient to have a `concatMapStringsSep` for attribute sets, though. This pattern is quite common.
<d4g>
does anyone have an idea regarding my question? How to "add" additional runtime packages to an existing package?
<timclassic>
Is there a reasonable way to use a nixos module from a specific revision of nixpkgs? I'd like to use the updated Kerberos server module from https://github.com/NixOS/nixpkgs/pull/31832 with NixOS 18.09.
<{^_^}>
#31832 (by kwohlfahrt, 1 year ago, merged): kerberos_server: allow choosing MIT or Heimdal
<timclassic>
rycee: Oh! Surely I've seen this before and forgot! Thanks :)
* timclassic
has probably read the whole manual at this point, but... there's a lot there, heh.
<joepie91>
clever: seems to be working fine with mapAttrsToList
<joepie91>
thanks :)
<rycee>
timclassic: If it works then I would suggest pinning the module to the specific git revision since future changes may rely on changes in other modules.
<timclassic>
rycee: Yeah, that sounds like the right way. If it works, I'd hope to simply delete the whole thing once the next release comes out.
<rycee>
timclassic: Yeah, I imagine that is exactly the intended use-case for this feature 🙂
<Laalf>
i have something like this in my system configuration: http://paste.debian.net/1060245/ and nixos-rebuild does not like the let there. where would i place it?
griff__ has joined #nixos
<symphorien>
let foo = ...; in
<symphorien>
you missed the in
<symphorien>
ah no sorry
<symphorien>
you must put the let outside the attrset
<rycee>
Laalf: Move the first `{` to after the first `in`
<symphorien>
let master = ...; {
tdbgamer has quit [Ping timeout: 244 seconds]
Dedalo has joined #nixos
griff_ has quit [Ping timeout: 250 seconds]
griff__ is now known as griff_
<rycee>
symphorien: You forgot the `in` before the `{` :-)
<symphorien>
:o
<symphorien>
shame on me
o1lo01ol1o has quit [Remote host closed the connection]
random_yanek has joined #nixos
<Dedalo>
clever: I have installed Python following your configuration.nix. I have a polybar module that uses Python, in particular it does an `import requests`. The package is included in the configuration.nix, but I get an error from the python script: `ModuleNotFoundError: no module named requests`. What am I missing this time?
kisonecat has joined #nixos
<clever>
Dedalo: i believe you need to use python.withPackages to get things into scope
<Laalf>
rycee: i dont quite understand what you mean. could you write the snipplet for me?
<rycee>
Laalf: There's some syntax problem on line 3 I notice. After "nixpkgs" there should be a ; not a ".
waif_ is now known as waif
Guest49471 has quit [Ping timeout: 258 seconds]
morr has quit [Quit: WeeChat 2.3]
<Laalf>
rycee: home.packages already defined. can i get around that somehow?
<{^_^}>
[nixpkgs] @primeos pushed to master « inxi: init at 3.0.30-1 »: https://git.io/fhnMB
<rycee>
Ah, yeah. You can't put the same option twice in the same set. Just remove the `home.packages = [ master.tdesktop];` line and put `master.tdesktop` in the second `home.packages` option.
<Laalf>
rycee: so i have to add pkgs. to every line there?
tzemanovic has joined #nixos
<rycee>
Laalf: No, you already have `with pkgs;` so it should work as-is.
morr has joined #nixos
<rycee>
Laalf: home.packages = with pkgs; [ master.tdesktop xorg.xmodmap …
<clever>
Dedalo: line 20, your installing normal python, and pythonWithPackages
<aleph->
For fetchPypi where can I get the sha256 if it's not listed on the site?
<clever>
Dedalo: they are conflicting, and its using only the normal python
<makefu>
,tofu aleph-
<{^_^}>
aleph-: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<aleph->
makefu: Yeah I figured that out, forgot about tofu
<{^_^}>
[nixpkgs] @schmittlauch opened pull request #53887 → ktouch backport: init at 18.08.0 → https://git.io/fhnMV
<{^_^}>
[nixpkgs] @FRidh pushed commit from @r-ryantm to master « python37Packages.numpy-stl: 2.7.0 -> 2.9.0 »: https://git.io/fhnM1
<shazow>
flatpak apps like steam, discord
<samueldr>
some magic behind the scene with git (and in the commit message) to keep a link between the cherry-picker commit and the other commit
<aleph->
makefu: Actually any chance you could take a look at something? My default.nix keeps failing with "can't call auto function pkgs" https://paste.rs/cTx
<samueldr>
then, more git commands can do more magic behind the scene when they see that magic
o1lo01ol1o has joined #nixos
<aleph->
Heya samueldr joepie91
<samueldr>
otherwise, without -x, to git it looks like a copy/paste of the change
FRidh has quit [Quit: Konversation terminated!]
<clever>
,callPackage aleph-
<{^_^}>
aleph-: If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<{^_^}>
[nixpkgs] @samueldr pushed 2 commits to release-18.09: https://git.io/fhnMD
<samueldr>
joepie91: ^
<aleph->
God damnit
<aleph->
I knew I forgot something
* aleph-
grumbles
<Laalf>
rycee: firstly i love you. it works and all. what is kinda sad is that fetching the git repo takes a long time. how difficult would it be to replicate something like "nix-env -f https://github.com/NixOS/nixpkgs/archive/master.tar.gz -iA ...."? i skimmed the nixpkgs manual and i couldnt find something helpful there
<gchristensen>
I have the most mysterious, unexplained behavior in systemd-boot with my signed .efi's.....
<samueldr>
gchristensen: spooky
<makefu>
aleph-: ha! clever was faster again
waif has quit [Ping timeout: 245 seconds]
<gchristensen>
some of my boot entries have totally differently formatted names from the rest, despite the data format being the same
<joepie91>
samueldr: ah right
<joepie91>
and thanks :)
nadley has joined #nixos
<aleph->
clever: Not to mod that for Python, is it just callPythonPackage?
<aleph->
I think I remember that being it.
waif has joined #nixos
<rycee>
Laalf: It should be faster the second run. But you could instead do `nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable` and change `master = import (builtins.fetchGit { ref = "master"; url = https://github.com/NixOS/nixpkgs" }) {};` to `master = import <nixpkgs-unstable> {};`
<makefu>
aleph-: for python use pkgs.python36.callPackage
o1lo01ol1o has quit [Ping timeout: 240 seconds]
<rycee>
Laalf: You'll need to do nix-channel --update after the --add.
<Laalf>
rycee: but nixpkgs-unstable is not master.... i will see if i can find something about the buildins.fetchWhatever
<{^_^}>
[nixpkgs] @Mic92 opened pull request #53888 → ccls: init at 0.20181225 → https://git.io/fhnM7
ixxie has quit [Ping timeout: 250 seconds]
<rycee>
Laalf: Hmm, what do you mean by nixpkgs-unstable not being master? Isn't it the latest master that have a hydra build. So you are more likely to be able to download the package from the binary cache.
<makefu>
aleph-: python3.pkgs.callPackage, sorry
<joepie91>
samueldr: also, remind me, what was the correct way to in-place override the source for the duplicity package (while the 18.09 change is waiting for the next channel push) in my config?
<joepie91>
was it .overrideDerivation or something?
<aleph->
makefu: Not a prob, thanks mate
<joepie91>
iirc .override was only for deps
<samueldr>
joepie91: not entirely sure what the "correct" way is, I usually stumble through the ones I think will work until it does since I almost never do it
<Laalf>
rycee: when the package is on the github its not instantly built. and sometimes nixos-unstable takes a bit
<joepie91>
ah :P anybody else have any suggestions?
<samueldr>
though it does explain well the difference and now I know, like really know, why I would prefer overrideAttrs :)
<{^_^}>
[nixpkgs] @jwiegley opened pull request #53889 → hol: Update to build from current master → https://git.io/fhnM5
<Laalf>
rycee: i just want a few select programs from master... well i will see if fetchtarball helps me
mariel__ has joined #nixos
mariel__ has quit [Remote host closed the connection]
drakonis has joined #nixos
<Laalf>
rycee: thanks so much! i got it working with fetchtarball. i will see what fun i can have with home-manager when it doesnt need to be reinstalled all the time
<clever>
vbernat: and it never exports modules as a return value, which is why you cant do nginx.modules
<vbernat>
so, an easy way to fix would be to set "modules = modules" as an attribute? I could do a PR for that.
simukis has quit [Client Quit]
<clever>
vbernat: just add it under meta, as meta.passthru.modules = modules;
simukis has joined #nixos
<clever>
or in your case, `passthru.modules = modules;` inside the meta = { ... }; area
<vbernat>
thanks!
elibrokeit has quit [Quit: A random quit message]
elibrokeit has joined #nixos
elibrokeit has quit [Client Quit]
griff_ has quit [Ping timeout: 250 seconds]
waif has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @nh2 opened pull request #53892 → release-18.03: linux: Fix kernel build for Linux >= 4.14.90 → https://git.io/fhnDB
<gchristensen>
given this diff, can anyone see a reason why systemd-boot would display "NixOS-18.09.1822.0a8f35c998f-Linux-4.19.12-2019-01-04 (nixos-generation-11)" for -11, and only "NixOS-18.09.git.5e26c06-Linux-4.19.13-2019-01-13" for -28 ?
<MichaelRaskin>
Shouldn't real nerds disdain graphics before the system is fully functional?
<samueldr>
MichaelRaskin: no
<andi->
gchristensen: your self-nerd-sniping. If it works for everything that sounds like a great feature ;-)
<andi->
For me that usually only works for things not strictly related to my actual task..
<gchristensen>
andi-: secureboot and graphics are definitely not on my todo list :)
<samueldr>
(but many nerds will balk at the idea of making anything pretty...)
<andi->
to bad..
<samueldr>
weird how it seems undocumented in systemd-boot, how that works exactly
<MichaelRaskin>
samueldr: well, making a Mandelbrot set rendering pretty is a proper task
<MichaelRaskin>
Because there prettiness improves information transmission, not competes with it. Or maybe prettiness _is_ the information there
<MichaelRaskin>
Boot has log lines to convey!
<samueldr>
I had made an implementation of a boot splash thing which would still allow unexpected boot messages to show up, while showing a seamless animation when everything went fine
<samueldr>
never ended up remaking it and then porting it to nixos
<samueldr>
the neat thing is it would be able, after conversion, to use android boot animations; opening up a vast library of pre-made animations
<samueldr>
but explained more plainly it's a protocol (often used with flatpak, but not necessarily limited to) to do "desktop stuff" in a more agnostic way, among those: showing an open/save dialog
<samueldr>
the use case in flatpak is to allow the sandboxed app to interact with the host system AFAIUI
<gchristensen>
can anyone using systemd-boot send me the contents of one of their /boot/loader/entries/nixos-generation-... files?
<samueldr>
(I say nice, nice principles, but I kinda dislike the "keep vendor logo on screen" idea)
vk3wtf has quit [Ping timeout: 268 seconds]
<gchristensen>
I do have to type in a LUKS password
<samueldr>
AFAIUI plymouth understands this, but our implementation doesn't work with plymouth
<gchristensen>
but the splash left before the LUKS creds
<gchristensen>
I'll Signal you a video.
<samueldr>
no need to, I think I understand what's going on, but have no solution
<gchristensen>
ok, sure
<samueldr>
sure makes me want to try doing the whole grub-to-login pretty again though
kisonecat has joined #nixos
mtesseract has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen>
ay
<gchristensen>
at any rate, my secureboot stuff works now, and the boot entries show up properly, and ordered
<gchristensen>
trying to decide if it is worth upstreaming or not. it might be a bit invasive for just splicing in to the systemd-boot python script.
shibboleth has joined #nixos
<ottidmes>
is there some way to check whether a string is a valid sha256 inside Nix itself? (outside Nix I could e.g. use nix-hash) I guess I could write something myself, but I would love to know if something already exists, or if there is some other feature I could leverage to determine the validity
<gchristensen>
what does it mean to be a valid sha256?
obadz has joined #nixos
<ottidmes>
gchristensen: that it is the right length and can be decoded
<systemfault>
So, length and check if the characters are in hex?
<ottidmes>
gchristensen: "" is invalid, so is "5mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73" (correct length, but to big number), but this is valid "0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73"
<ottidmes>
I guess for simplicity sake I could just split my Nix script in two, first gathering the sha256 with Nix and validating them in bash with nix-hash or some such, and then using them again in Nix knowing they are valid
<clever>
ottidmes: builtins.exec
<ottidmes>
clever: an undocumented builtin?
<rain1>
I want to build dosbox from source so I tried cd dosbox-src ; nix-shell -p dosbox ; bash configure but it errors that SDL is missing. How do I get a nix shell with all the build dependencies there?
<clever>
ottidmes: yeah, finding an example
<clever>
rain1: `nix-shell -p dosbos` gives a shell suitable for using dosbox, not building dosbox
<ottidmes>
rain1: nix-shell '<nixpkgs>' --attr dosbox (I think)
kisonecat has quit [Ping timeout: 240 seconds]
<clever>
rain1: you want `nix-shell '<nixpkgs>' -A dosbos`
mkoenig has quit [Remote host closed the connection]
stigo has quit [Quit: WeeChat 2.2]
_kwstas has quit [Quit: _kwstas]
<samueldr>
ah, so profiles is an imperative thing, had trouble finding infos, man nixos-rebuild for the curious
<samueldr>
wondering how close to child configs those are, and how much of the profiles things can be re-used or merged with child configs (to resurrect them)
<samueldr>
(see #45345 for a PR re-adding support to grub)
<ekleog>
clever: hmm so I already did it, so it should be working
<samueldr>
yeah, jasongrossman; this was a more general question since I'd never heard of profiles until now
* ekleog
wonders what's wrong with `ACTION=="add", KERNEL=="hidraw*", SUBSYSTEM=="hidraw*", ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0407", TAG+="uaccess"` then
<samueldr>
though had heard of child configs, which sound awesome, but aren't supported right now in any bootloader
<jasongrossman>
samueldr: It's useful to have something imperative for naming generations, because nixos-rebuild switch is imperative!
<samueldr>
jasongrossman: yeah
<ekleog>
it's literally a copy-paste from the yubikey official udev rules :/
stigo has joined #nixos
<q6AA4FD>
clever ekleog i think you also have to reload the daemon right?
<samueldr>
jasongrossman: though I was thinking here about merging some part of the support, since I think child configs have some value
<clever>
q6AA4FD: dont believe thats needed
<jasongrossman>
samueldr: Yes, great! Not sure whether it's worth the work, but if it's fun then definitely.
<samueldr>
e.g. I could have a child config of proprietary nvidia drivers, and the default being nouveau, so I can boot as needed
<jasongrossman>
samueldr: Yes. And anyway I think declarative naming would be excellent.
<ekleog>
q6AA4FD: `sudo systemctl restart systemd-udevd` doesn't appear to help
<jasongrossman>
samueldr: It always seems wrong to me that I have to use my own understanding of where I've put things in my backups to find old configs.
<q6AA4FD>
ekleog: that's unfortunate. i guess i was misremembering from the bsd tool
ng0 has quit [Ping timeout: 256 seconds]
<jasongrossman>
samueldr: As opposed to them containing their own naming scheme.
<samueldr>
though there's not much doc for profiles, not even sure when it was added to nixos... maybe the implementers didn't know of child configs?
<jasongrossman>
samueldr: Seems likely to me.
<ekleog>
q6AA4FD: well… then I guess it's an issue with my udev rule, but now to debug that…
vk3wtf has joined #nixos
<q6AA4FD>
ekleog: yeah, udev mystifies me too. never really got the hang of the syntax. good luck dude
<janat08>
is there configuration file for nixos graphical install
<janat08>
im making my own boot iso. I just realized I forgot display manager. it would be great if i could build on top of the good iso.
<rain1>
should I file a bug report about dosbox?
<rain1>
it probably just needs rebuilt to fix the problem
<{^_^}>
[nixpkgs] @xeji pushed commit from @jfrankenau to master « gurobi: 8.0.1 -> 8.1 (#53884) »: https://git.io/fhn9f
<ekleog>
q6AA4FD clever: so after more investigation and trial/failure with `udevadm test [path to the usb device]` it looks like at least `ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0407", TAG+="uaccess"` adds the uaccess tag
<{^_^}>
[nixpkgs] @vcunat pushed to master « nixos manual: fix a typo that made it invalid XML »: https://git.io/fhn9J
<ekleog>
now… it still doesn't let `gpg --card-edit` work as user :(
<samueldr>
I looked at setting up u2f (not yubikey) for the passphrase of my luks drive, but I'm having issues where it takes maybe minutes (like 2?) before the device is somehow recognized
<ekleog>
makefu: I've just added a TODO to add it to the longDescription of yubikey-personalization
<samueldr>
though here it's a TOMU with a u2f firmware, not a yubikey (re-iterating)
<samueldr>
though if it worked fine, it would mighty convenient (in a security context where it makes sense for the end-user)
<ekleog>
samueldr: hmm wait u2f for the passphrase of your luks drive? how could that work?
<samueldr>
but in my use case it's for convenience in a situation where I only want encryption at rest against opportunistic thieves, where I am expected to have the key away from the computer in those scenarios
q6AA4FD has quit [Ping timeout: 268 seconds]
<mckeanalicej>
im having a bootstrapping problem. In order to install nixos on my rasp pi I need to ssh into it. ssh is disabled by default on the available images. In order to turn it on I need to build a new image. I dont have an ARM machine to build pi images on because my pi isnt set up :P
<jtojnar>
I guess, for me, the icons missing is an easily fixable minor annoyance but the easy solutions are minor annoyances as well, and I just cannot choose which annoyance to tolerate
<pie_>
jtojnar, i will try to add xdg.icons.enable = true;
<pie_>
environment.systemPackages = [ pkgs.gnome3.adwaita-icon-theme ]; and see what happens
drakonis has quit [Ping timeout: 240 seconds]
<samueldr>
(I haven't seen any missing icons with breeze and plasma FWIW)
<jtojnar>
pie_: does not plasma do the first thing by default?
<pie_>
wait, xdg.icons.enable is true by default
<samueldr>
(but am not using many graphical things)
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
<pie_>
idk what the actual problem could possibly be, i just have missing icons someimes
<jtojnar>
yeah, I think adding adwaita is a good thing
<pie_>
is there anything i can do if the problem actually is starting things from tmux
<jtojnar>
or maybe plasma is not setting a gtk icon theme
<jtojnar>
so it defaults to adwaita
Mateon1 has quit [Ping timeout: 246 seconds]
Mateon3 has joined #nixos
<samueldr>
or have a gtk config overriding whatever plasma does?
<jtojnar>
maybe if plasma does not set the icon theme try adding to ~/.config/gtk-3.0/settings.ini
<jtojnar>
[Settings]
<jtojnar>
gtk-icon-theme-name=Breeze or whatever
<pie_>
icons arent broken *everywhere*
Mateon3 is now known as Mateon1
<jtojnar>
well, if Plasma is not setting the GTK icon theme, it defaults to Adwaita
<jtojnar>
pie_: In my experience Qt does not play well when installed from different profiles (e.g. systemPackages vs nix-env)
<pie_>
i dont have an imperative qt installed afaik
seanparsons has joined #nixos
<pie_>
ive had problems as well
<aleph->
pie_: So many tools I need to build to port kali tools to nixos
<{^_^}>
[nixpkgs] @dtzWill opened pull request #53902 → cpupower: fix w/linux 5, rework a bit → https://git.io/fhn9a
<samueldr>
even just having something that brings in Qt imperatively in the user profile can do things as bad as breaking the whole plasma session at boot :/
<aleph->
Is there a guide on porting perl applications to NixOS?
<Unode>
new year and I'm now getting http://dpaste.com/0TBKRAX . Any ideas on what could be causing this?
<Unode>
Other than some system updates and a system reboot, nothing inside nix should have changed
<samueldr>
#44047 intends to fix the Qt issue, if anyone with C++ and/or Qt knowledge wants to review, the fix is (I think) right and complete, but the implementation might not be optimal
<Unode>
Increasing verbosity gives http://dpaste.com/205H4QP and if I call that binary directly with --help I get some kind of JSON response where the error is 'error: stoll'
<Unode>
klntsky: This was on a CentOS 6 system. Things worked in the past. The machine was rebooted recently but I don't know if the admin did something. I'm investigating on that front first. It could be some SELinux policy preventing something that was allowed before. The error doesn't help though :)
<Unode>
klntsky: I'll consider reporting it if I get nothing from this side. Thanks for the help