<infinisil>
Command-not-found hasn't been working at all for me though :/
hakujin has quit [Ping timeout: 265 seconds]
<foldingcookie>
the version provided system-wide does seem to work here
tos9 has joined #nixos
<{^_^}>
[nixpkgs] @primeos pushed to release-18.03 « wlroots,rootston: Mark them as broken until the first stable release »: https://git.io/vxHzj
<tos9>
Hi. NixOS locked me out of my machine. Is there a quick tut on fixing that via booting into the livecd -- presumably I need to reset root's password, and/or be able to nixos-rebuild switch after editing the configuration.nix
<tos9>
If I just chroot, mount /proc and /dev or so, and chroot into the disk, is that gonna give me enough to do the latter?
sigmundv has quit [Ping timeout: 260 seconds]
<tos9>
(I tried chrooting and just running `passwd`, but that appears to not have persisted)
<clever>
tnks: nixos-install --chroot
<clever>
tnks: and also, you need to use nixos-rebuild boot
<clever>
switch wont work in a chroot
<infinisil>
clever: wrong nick
<clever>
oops
<tos9>
clever: giving that a shot, thanks.
adamt has quit [Ping timeout: 240 seconds]
jrolfs has quit [Ping timeout: 256 seconds]
<tos9>
ech...
<tos9>
can I tell nixos-install --chroot where configuration.nix lives?
<tos9>
it appears confused, because /etc/nixos/configuration.nix is a symlink, which it's looking for outside the chroot
<clever>
tos9: i suspect your iso is on the version that has broken --chroot support
<clever>
so its trying to do a full install
<tos9>
I'm on...
telent has quit [Ping timeout: 260 seconds]
dan_b has quit [Ping timeout: 264 seconds]
<clever>
tos9: another quick fix is to just edit the kernel params in grub, change init= to init=/bin/sh
<clever>
it will complain it doesnt exist, tell it to continue anyways
<tos9>
17.09.2987.something
<tos9>
clever: yeah ok was gonna be my next step. /me tries...
<ruhatch>
So I just added a couple of lines to services.openssh.extraConfig and deployed with NixOps and I've lost SSH connection to the machine...
<clever>
tos9: so you can get a fully working nixos, with more basic (but still customizable config) as a rescue env
<infinisil>
ruhatch: Well your line was probably wrong, and I'm afraid there is no way to do it remotely (unless you have some other way of accessing the machine via a qemu or so)
random-nixor has joined #nixos
<ruhatch>
:O
<infinisil>
ruhatch: The ssh daemon tried to restart and it couldn't
<ruhatch>
Yeah, I thought as much :(
<tos9>
clever: it's not letting me hit * to continue :/
<tos9>
clever: (thanks by the way, will keep that link for whenever I get back in)
<infinisil>
ruhatch: Also happened to me recently, I really think NixOS should have something that prevents you from locking yourself out like that
<clever>
tos9: ah, that can happen if you dont have usb drivers in the initrd
<ruhatch>
infinisil: Yeah, I agree
<ruhatch>
Like if the SSH config fails, just roll back!
<infinisil>
Yeah
<clever>
tos9: you will need to use a ps2 keyboard if possible, or try the iso again
Ariakenom has quit [Quit: Leaving]
<ruhatch>
Do you know how to have NixOps delete a specific machine rather than the whole deployment?
<ruhatch>
Or do I just delete the machine manually on AWS
<tos9>
clever: this is a laptop, and its builtin keyboard (though I know that might still need usb, just mentioning it)
<clever>
ruhatch: --include
<clever>
tos9: ah, id try the iso again, also, there is a shortcut to get around chroot
<clever>
tos9: just run passwd on the host, read the hash from /etc/shadow, then edit /mnt/etc/shadow
<tos9>
I can burn a new ISO obviously too
<tos9>
clever: you're saying the new one should fix this?
jrolfs has joined #nixos
<infinisil>
Burn?? You mean you actually burned a CD for this??
<clever>
tos9: yeah, also, the iso works on USB
<tos9>
infinisil: no I jailbroke a usb drive
<infinisil>
Ah, not sure what jailbreak means with usb disks though
<clever>
you can just dd the iso into any normal usb stick
<tos9>
infinisil: I was trying to trigger you :)
<infinisil>
Whew
<tos9>
(it's a regular usb stick, yeah, via dd)
<elvishjerricco>
Is there a way to get a completely statically linked Nix toolchain?
<clever>
elvishjerricco: i think dtz is working on something like that
<tos9>
clever: can I ask you a bit more specifically how I use that rescue boot you linked
jrolfs has quit [Ping timeout: 260 seconds]
<tos9>
that's your own personal config repo right?
<tos9>
you're saying I should copypaste this into a module, and then import that in my configuration.nix?
<clever>
tos9: yeah
<tos9>
got it, thanks.
<clever>
tos9: in your imports list, just do ./rescue_boot.nix
* tos9
nods
<clever>
and as long as your using grub, and have ~300mb on /boot, it will work
<tos9>
cool.
stumble has joined #nixos
<tos9>
oh. interesting.
<tos9>
clever: if I'm masochistic, and chose btrfs, I take it I need that in that boot.supportedFilesystems array
<tos9>
instead of zfs
stumble has quit [Remote host closed the connection]
<clever>
yeah
<tos9>
oh hey look at that, which your comment already said :), never mind me.
<clever>
and you can customize that however you want, you could even go nuts and put xorg into it with xfce
<clever>
but it will cost more /boot space, and make it more fragile
stumble has joined #nixos
<tos9>
this way I can lock myself out twice!
<clever>
potentially breaking in the same way as the machine you want to fix
<clever>
yep
<clever>
only major problem, it rebuilds with the same nixpkgs as the host
<clever>
so if something in nixpkgs breaks nixos horidly, it also breaks the rescue env
<tos9>
so if it's a package that broke you, you... yeah k
<clever>
it was originally meant to shuffle /nix into its own dataset on my laptop
<clever>
so it only had to work once
Lisanna has joined #nixos
<clever>
but i saw more uses in it, and left it enabled
<tos9>
whee, the new ISO appears to not support controlling my backlight
<tos9>
time to run this under candle light :D
eqyiel has quit [Changing host]
eqyiel has joined #nixos
<tos9>
hm, it says nixos-install --chroot: unknown option --chroot
<clever>
with one of my laptops, i suspect there was a partial break in the ribbon cable that controlled the backlight
<clever>
and i found that changing the brightness, with the display at the right angle, would fix it
<clever>
or just opening and closing the lid until it comes on :P
<ottidmes>
I am no C/C++ developer, so this might be a strange question, but why is configure so super slow? I would expect its checks to go super fast. I am building Samba, but just getting to the end of the configure phase takes forever (feels like a few minutes, should really time it)
<clever>
tos9: oh, i think it got renamed into its own tool, nixos-enter
<tos9>
(nixos-install --help still lists it)
* tos9
tries tat
<Lisanna>
ottidmes your might have something slowing down your shell
jrolfs has joined #nixos
<infinisil>
Lisanna: I think he means during builds, how configure takes a fraction of a second for every step, nothing to do with the shell
<infinisil>
Happens with nix-build at least
stefan___ has quit [Quit: stefan___]
thc202 has quit [Ping timeout: 256 seconds]
<ottidmes>
Lisanna: Yeah, what infinisil says, like, I can track every configure step easily, so slow it goes, fraction of second for each, and there are many
<Lisanna>
infinisil I mean, having a slow shell might be slowing down each configure step, since configure is just shell code
<tos9>
clever: ok, some sort of progress, I added a `password` to the configuration.nix, but running nixos-rebuild boot gives some funny errors
<tos9>
complaining that /run/user/0/ doesn't exist when trying to create tempdirs via perl
<clever>
tos9: unset TMPDIR
<tos9>
(just before and after where it'd run "buildin")
<tos9>
a ha..
<infinisil>
Lisanna: And that still has nothing to do with the shell, the shell doesn't interpret stdout of processes
<tos9>
clever: hm, not set
<tos9>
clever: Set it to /tmp?
<Lisanna>
infinisil what do you mean?
<clever>
tos9: just unset, thats a command
<clever>
tos9: also check `env | grep user/0` to see if anything else points there
<ottidmes>
And it stops directly when I ctrl+C, while if it was a shell slowdown, shouldnt it lag?
<tos9>
clever: Yeah I know, TMPDIR isn't set
<Lisanna>
ottidmes not necessarily
<tos9>
clever: I see XDG_RUNTIME_DIR is what's set to that
<clever>
tos9: try to unset that too
<ottidmes>
Lisanna: I am using zsh with no special config
<tos9>
k
<tos9>
clever: ok cool, that worked, except for some errors about dbus not being running
<tos9>
let's see if it works after a reboot...
<infinisil>
Lisanna: when a shell launches a process (like ./configure), it just streams the stdout of that process to the terminal, it doesn't even look at it. And shell's are only slow when they look at stuff and interpret that.
<tos9>
clever: hm, I don't see a new Generation entry when booting
<tos9>
should I expect one?
<Lisanna>
infinisil I'm not necessarily saying that the launching shell is slow, but that the executing shell is slow
<Lisanna>
(maybe slow)
<clever>
tos9: was /boot mounted when you ran nixos-rebuild boot?
<infinisil>
Lisanna: The output of a process doesn't even touch the shell
<Lisanna>
infinisil configure is written in shell code
<infinisil>
Ahh you mean like that
<Lisanna>
<_<
<clever>
infinisil: the shell doesnt even stream the stdout on, it just shares the file handle with the child
<infinisil>
yeah
<infinisil>
(Had to think a second about how pipes work in linux again)
<Lisanna>
anyways, autotools is full of suck anyways, we should bug eelco to finish the nix build system project he started forever ago
<clever>
Lisanna: i just use raw makefiles in all of my nix based projects
<infinisil>
I'm not sure how faster that would be
<tos9>
clever: all I ran was the nixos-enter command as soon as I got into the live cd
ertes has joined #nixos
<tos9>
clever: was I supposed to do more than that
<clever>
the makefile assumes its being used inside nix, and that the compiler is sane
<clever>
so there is no point in checking the size of things
<clever>
tos9: you still need to mount your rootfs to /mnt, your store to /mnt/nix and your boot to /mnt/boot, the same as when you initially installed
<tos9>
ah, k, right yeah I did do that but only the first one
<Lisanna>
clever manually written makefiles can be painful though, 'cause they won't always have the same set of options you can enable (like verbose output)
<ottidmes>
I think it probably is some python code that is to blame, since it uses some kind of python build tool (Samba that is), but it looks like any other C project configure, and most of Samba is C, so I doubt that actually is it
<Lisanna>
so, lots of people will use autotools just so they can have a "regular makefile"
<clever>
Lisanna: and cmake if the project is a bit more complex
<foldingcookie>
how can I create/install one modified package and use it in environment.systemPackages?
stumble has quit [Quit: Leaving]
<Lisanna>
foldingcookie put an expression that returns the derivation in systemPackages
slack1256 has joined #nixos
<Lisanna>
let myPkg = stdenv.mkDerivation { blah }; in systemPackages = [ vim emacs myPkg ]
<foldingcookie>
ok, thanks
pkill9 has quit [Quit: WeeChat 2.0.1]
<Lisanna>
^ that is definitely not correct nix syntax, but you get the idea
hamishmack has quit [Quit: hamishmack]
<foldingcookie>
yeah
<{^_^}>
[nix-pills] @dudebout opened pull request #56 → replace indent with nix show-derivation → https://git.io/vxHa0
drakonis has quit [Read error: Connection reset by peer]
<tos9>
clever: your shutting the lid trick works by the way :D
<tos9>
now if I could only remember what partition was my boot one :/
<tos9>
I have multiple efi boot partitions (one for OSX and one for nixos)
<clever>
tos9: blkid /dev/sd*
<clever>
and also, just guess, and ls to see if it looks nixos-y
<tos9>
a ha, ok, process of elimination says I have 2 vfat partitions, and 1 is the osx one I am pretty sure
<tos9>
trying the other one...
klntsky has quit [Ping timeout: 268 seconds]
<clever>
apple also tends to use HPFS+ for their /boot's
<clever>
the uefi firmware has been modified to support that
<infinisil>
I'm gonna be using the /dev/nmve's once I get my new laptop!
<clever>
infinisil: that also broke my justdoit script
<infinisil>
\o/
<clever>
the script assumes ${device}${partition} for partitions, and ${device} for the device
chrios has quit [Ping timeout: 268 seconds]
<tos9>
ok! now I see /boot/loader has a new generation, hooray...
<clever>
so /dev/sda + 1 is /dev/sda1
<clever>
but nvme, is /dev/nvme0n1 and /dev/nvme0n1p1
<infinisil>
Heh
<clever>
and without the p, the partition creation tool saw /dev/nvme0n1p11 and created partition 11, then failed to find 1
<tos9>
clever: and I'm alive! Thanks.
<clever>
tos9: your welcome :)
<tos9>
now to fix the 1000 other problems, but at least I'm in.
<lejonet>
clever: and in theory, there can be more than n1 :P
<clever>
lejonet: yeah
<infinisil>
clever: There must be some command to get partitions of a disk
<lejonet>
labels!
<clever>
infinisil: there is, but this problem was during partition creation
<infinisil>
lejonet: They are pretty expensive.. But I think of it as part donation to privacy focused people :)
<infinisil>
clever: Ohh that looks interesting
<clever>
infinisil: in theory, i could unpack the bios, insert an extra PE32/PE64 binary that provides drivers for ext3 or nvme, and then repack the bios
<clever>
infinisil: and then my efi system partition can be ext3 on nvme, lol
<infinisil>
clever: Wait how does putting modified firmware back in work?
<lejonet>
infinisil: true, I still want an AMD option... tired of Intel :P
<clever>
infinisil: uefi firmware is much more standardized, its basically a giant array of .exe files, which get initialized on bootup, before it looks for the boot media
<clever>
infinisil: so you could just insert another into the list
<clever>
and then reflash the chip with flashrom
<clever>
if your lucky, it works
<clever>
if your not, its a paper weight!
<infinisil>
clever: .exe files?? A la windows executable??
<clever>
infinisil: yeah, efi is entirely based around that file format
<clever>
it doesnt use the windows api's, but it uses the PE file format
<infinisil>
Huh
<clever>
its like ELF for linux or mach-o for darwin
<clever>
infinisil: if you then use dd to extract a section of the bios, starting at offset 0x47EBAC, you get a perfectly valid .exe file, which can be read by tools like objdump
<clever>
it wont run under windows, but most tools that can read an exe can work with it
<infinisil>
I'll never be able to look at UEFI the same way as before..
<infinisil>
(Maybe #nixos-chat would be better for further offtopic stuff though)
<ToxicFrog>
infinisil: UEFI has only started catching on recently, but it was originally developed in the late 90s, and PE was a popular choice for executable format at the time
Supersonic has joined #nixos
hamishmack has joined #nixos
<infinisil>
ToxicFrog: I see, we are in #nixos-chat talking a bit more :)
mbrgm has joined #nixos
<Ralith>
holy shit, nix 2 builds python stuff way faster
<Ralith>
or something
ottidmes has quit [Ping timeout: 264 seconds]
jtojnar has quit [Remote host closed the connection]
<iqubic>
Also, how do I tell NixOS to run emacsclient at start up?
<achambe>
you could write a systemd unit I think, you will need to research how to do that
<iqubic>
services.emacs.enable = true; also works.
<iqubic>
Nixos has good documentation.
<achambe>
most of the time haha
jtojnar has joined #nixos
<[Leary]>
Weird thing ... with linux 4.14.32, my boot process gives up immediately after selecting the boot option. I don't see any messages, and nor do the denizens of /var/log. But with 4.14.24 and 4.15.something it boots fine.
<iqubic>
Looks like -d does a whole lot more than delete old generations.
<iqubic>
Either that or I'm miss interperting this long list of terminal output.
<clever>
iqubic: it then does the normal garbage deletion that nix-collect-garbage always does
<achambe>
iqubic collect-garbage deletes all unreferenced packages.
<clever>
and with the generations gone, there is a lot of new garbage!
<achambe>
so if you did an update or something it leaves the old versions until you collect it up
<achambe>
there is an option for automatic background garbage collection to save some disk space.
<achambe>
that just runs periodically
<iqubic>
clever: that makes sense.
CrazedProgrammer has quit [Ping timeout: 268 seconds]
CrazedProgrammer has joined #nixos
<iqubic>
How important is it that I upgrade to 18.03? I currently use 17.09
freeman42x]NixOS has quit [Remote host closed the connection]
freeman42x]NixOS has joined #nixos
kmicklas has quit [Ping timeout: 260 seconds]
jrolfs has quit [Ping timeout: 255 seconds]
<achambe>
iqubic: you just get newer software, if you have no reason to stay back, then you should upgrade. Looking at the patch history, 17.09 will still get some updates for a few months, but i can't find an official document saying when it will end.
<achambe>
17.09 got an update 4 days ago and 17.03 got an update 3 months ago
<{^_^}>
[nixpkgs] @Ekleog opened pull request #38537 → nheko: init at 0.3.0 → https://git.io/vxHrU
<achambe>
clever: sound still not working :(
<clever>
achambe: have you rebooted since applying that change?
<achambe>
yeah
<clever>
achambe: does alsamixer show any devices?
asuryawanshi has joined #nixos
<achambe>
yeah, i tried enabling pulse audio too, not that also shows up
<clever>
what happens when you run pavucontrol?
jrolfs_ has joined #nixos
<iqubic>
clever: can you help me upgrade my system to 18.03. I don't know how to do that.
asuryawanshi has quit [Remote host closed the connection]
<achambe>
I can see two bars, System Sounds and Firefox AudioStream
silver has quit [Read error: Connection reset by peer]
<clever>
achambe: and on the playback tab, is it muted?
<clever>
achambe: if you go into `alsamixer -c 0`, and try to unmute everything, does it start working?
<iqubic>
achambe: I'll also need to update the unstable repo too.
<achambe>
clever: not muted, if i play a video on youtube i can see the output jumping for the firefox stream
<achambe>
clever: that was the problem
<achambe>
strange, doign an update made alsamixer mute everything, I didn't know thats what MM meant
<achambe>
thank you for the help
<iqubic>
So, this is odd.
<achambe>
iqubic: yeah?
<iqubic>
http://termbin.com/n0un This is my configuration.nix. It won't compile because: "syntax error, unexpected $end, expecting ; at configuration.nix:184:2"
<iqubic>
The odd thing is, I get that error 3 times in a row.
<achambe>
iqubic: that last semicolon is not needed
<achambe>
a let expression doesn't need one there.
ona has joined #nixos
hamishmack has quit [Quit: hamishmack]
<iqubic>
I get the same error three times when I remove it.
<achambe>
you have unbalanced {
<achambe>
oh i see
<iqubic>
What?
<achambe>
your xserver { is matching with the last }
<achambe>
you need to add a }
<achambe>
so your windowManager line
<achambe>
has the wrong {
<achambe>
}**
<iqubic>
Yeah, I fixed that.
<iqubic>
I just needed to add a closing bracket for exwm.
<iqubic>
How do I check that I'm running 18.03?
slack1256 has quit [Remote host closed the connection]
<achambe>
nixos-version
<achambe>
just run that
<iqubic>
Upgrading to 18.03 now.
<achambe>
cool
jrolfs has joined #nixos
nuncanada has quit [Quit: Leaving]
<iqubic>
So I dual-boot Windows10 and Nixos on my laptop here. If my bluetooth headphones work on Win10, than I should be able to get them working on Nixos too, right?
<iqubic>
That seems like a really logical thing to request. But it doesn't work that way for me.
<iqubic>
I think my the TTY I was using to update Nixos may have hund for me.
<iqubic>
*hung.
jrolfs_ has quit [Ping timeout: 268 seconds]
* infinisil
is using a bluetooth headset with NixOS
<iqubic>
Cool. How did you get it set up?
<infinisil>
I think I just did hardware.bluetooth.enable = true;
<infinisil>
Then start bluetoothctl and do some steps to pair it
<infinisil>
Once it's connected pavucontrol shows it as a new speaker
<infinisil>
Sometimes I have to `systemctl restart bluetooth` though. And I always need to bluetoothctl > connect <my device id, tab completed>
<infinisil>
when wanting to use it
<iqubic>
Yeah, I can't get bluetoothct to connect to my device.
<achambe>
nixos updates are relatively safe, it installs everything first, then switches
<achambe>
so you can just cancel it
<iqubic>
Let's try this again.
<achambe>
and your old system is unchanged
<iqubic>
Control-C does kill the thing.
<zybell_>
running it under strace may give you progress report.
<achambe>
iqubic: it may just be that the cache server is busy
<achambe>
with lots of machines updating
<clever>
the last person i helped with this issue, it was just network io
<iqubic>
Well, it is hanging at the exact same place.
<iqubic>
And there it goes.
<iqubic>
When was 18.03 released?
jrolfs has quit [Ping timeout: 245 seconds]
<zybell_>
there is a fundamental issue with nix/nixos. It comes up in several disguises at least once a day on #nixos. I would call it the plugin issue. The (often unstated) issue is: A package (like libnss,python,...)uses libdl to load a plugin mentioned in a config/script-file, which it expect to find in a compiled in path. Even when that plugin is installed (dependency is missing)it is never and can't be in that path.
<infinisil>
iqubic: 4th April!
<zybell_>
infinisil:shouldnt that mean proper name is 18.04
<infinisil>
Good point..
<infinisil>
I guess the goal is to have a regular 6 month release, instead of just releasing 6 months after the last release
hamishmack has joined #nixos
<kandinski>
hi, I'm writing my first derivation for a simple autotools-driven program. My first question is about dependencies. If the project page says that I need boost and boost-devel, how does that translate to nixpkgs dependencies?
<zybell_>
But it would be good style to admit not reaching that goal. Ubuntu did so once (But it was 2 month,not a week)
<kandinski>
the string "boost-devel" doesn't exist in the nixpkgs source tree
<zybell_>
-devel you can omit.
<zybell_>
in nix
<iqubic>
How long does the update to 18.03 take?
<infinisil>
kandinski: It's just `boost` as well I'm pretty sure
<infinisil>
kandinski: Packages can contain multiple outputs, and a common one is a "dev" output, which contains development stuff
<infinisil>
mkDerivation will automatically take the .dev output though, so you can just add boost to the buildInputs
hakujin has joined #nixos
sanscoeur has joined #nixos
bsima has quit [Ping timeout: 264 seconds]
colescott has quit [Ping timeout: 256 seconds]
glines has quit [Ping timeout: 264 seconds]
nD5Xjz has quit [Ping timeout: 264 seconds]
<achambe>
iqubic: I just left my PC, I would guess it was 10-30 minutes, I have fiber internet.
glines has joined #nixos
<kandinski>
infinisil: ta
ldlework has quit [Ping timeout: 276 seconds]
<iqubic>
Yeah, it just finished so I'm not concerned.
andromed1-galaxy has quit [Ping timeout: 264 seconds]
abrxs has quit [Ping timeout: 264 seconds]
endformationage has quit [Ping timeout: 264 seconds]
hakujin has quit [Ping timeout: 265 seconds]
abrxs has joined #nixos
<achambe>
if anyone is interested, I'm trying to write a terraform nixos provider that lets you specify a channel and a configuration.nix
andromeda-galaxy has joined #nixos
<kandinski>
why does this happen? Do I need to register the directory somewhere?
<infinisil>
But the ### sections give it somewhat of a structure, which is probably more annoying than anything
Arcaelyx has joined #nixos
<kandinski>
well, once I know how it works I can maybe help fix the docs.
endformationage has quit [Ping timeout: 276 seconds]
jrolfs has quit [Ping timeout: 264 seconds]
asuryawanshi has joined #nixos
endformationage has joined #nixos
martingale has quit [Ping timeout: 260 seconds]
schoppenhauer has quit [Ping timeout: 240 seconds]
abrxs has quit [Ping timeout: 276 seconds]
schoppenhauer has joined #nixos
martingale has joined #nixos
<zybell_>
I think all-packages was once thought to be alphabetically sorted (How else avoid adding pkg twice) but every body who didn't get the idea and added its pkgs every which way deteriorated it into a state more people dont get the idea.
abrxs has joined #nixos
<clever>
zybell_: there is also some rough categories
<zybell_>
Not good, see parentheses.(think 80000 pkgs)
rotaerk has quit [Ping timeout: 260 seconds]
<zybell_>
Of course you could have the same prog in differently named pkgs. But that is already possible and maintainable (multi version)
endformationage has quit [Ping timeout: 256 seconds]
<{^_^}>
[nix-pills] @Ericson2314 pushed commit from @dudebout to master « replace indent with nix show-derivation »: https://git.io/vxHKL
endformationage has joined #nixos
rotaerk has joined #nixos
endformationage has quit [Ping timeout: 260 seconds]
martingale has quit [Read error: Connection reset by peer]
martingale has joined #nixos
<{^_^}>
[nixpkgs] @lopsided98 opened pull request #38539 → nginx: allow basic auth passwords to be specified in a file → https://git.io/vxHKB
endformationage has joined #nixos
<infinisil>
How about 2-char directory subdivisions
<infinisil>
So there's nixpkgs/pkgs/{aa,ab,ac,...,zz} (but only the used ones), and each of them contains the packages with that prefix
rotaerk has quit [Ping timeout: 268 seconds]
<infinisil>
Then we put into each package definition a meta.tag value which is a list like [ "data" "CLI" "application" ] indicating its categaries
<infinisil>
Get some nix functions to filter packages based on tags and kablam! A new and better way is born
<infinisil>
Optionally subdivide each of those prefixes with one more 2-char subdivisiovn
<kandinski>
https://paste.debian.net/1019080/ contains my next roadblock. fetchurl results in a source file with different hash than the one I calculated.
<kandinski>
obviously it will work when I substitute the hash in the error message for the one I calculated on the cli, but I'd like to know what I did wrong.
<kandinski>
...
<kandinski>
Next question. If adding a package (in this case xmleditor) requires upgrading the version on a dependency (in this case intltool), should I upgrade intltool in the same pull request, or do it in a separate pull request?
<kandinski>
...
<infinisil>
kandinski: Maybe you need --flat
<infinisil>
added to nix-hash
<kandinski>
infinisil: yes, this produces a matching hash
<infinisil>
kandinski: Upgrade in the same PR, but with a separate commit
<kandinski>
infinisil: thanks
<infinisil>
:)
<kandinski>
it's not required, btw. master has an updated intltool. I'm running an older version despite being on unstable channel.
<infinisil>
Optimally you should use master for making changes
<kandinski>
I don't know what's wrong here. Error says I need intltool 0.40.0 or later. master branch on nixpkgs (where I am branching off) has 0.51.0.
<kandinski>
Yes, that's what I thought I was doing. using $NIXPKGS pointing at a master branch checkout should get the right tree.
<kandinski>
could ./configure version detection be wrong?
Arcaelyx has quit [Read error: Connection reset by peer]
<kandinski>
could solution be make a user for development and make it be on master?
Fare has quit [Ping timeout: 265 seconds]
Arcaelyx has joined #nixos
endformationage has quit [Ping timeout: 240 seconds]
rotaerk has quit [Ping timeout: 260 seconds]
endformationage has joined #nixos
Arcaelyx has quit [Read error: Connection reset by peer]
rotaerk has joined #nixos
orivej has joined #nixos
Arcaelyx has joined #nixos
endformationage has quit [Ping timeout: 260 seconds]
Arcaelyx has quit [Read error: Connection reset by peer]
endformationage has joined #nixos
aarvar has quit [Ping timeout: 260 seconds]
endformationage has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 264 seconds]
Arcaelyx has joined #nixos
endformationage has joined #nixos
<zybell_>
I would try to link binaries against the *oldest* libs I can use. Makes it run against the newer as well. So a dev user should *not* be based on master. IMHO
<kandinski>
hmm
<kandinski>
I don't know what I'm doing here. First of all, intltool is not an explicit dependency or buildInput
<kandinski>
so i don't even know how to pin it
Arcaelyx has quit [Read error: Connection reset by peer]
Fare has joined #nixos
blonkhart has quit [Quit: WeeChat 1.9.1]
marusich has joined #nixos
<iqubic>
Anyone here have experience setting up a bluetooth headset in nixos?
<zybell_>
Sorry should read:is gettext a transitive dependency?
<kandinski>
is there a command that unfolds the dependencies of a package from its buildInputs?
<kandinski>
(I'm reading documentation but can't find it)
<iqubic>
So no one know how to get bluetooth working on nixos?
<zybell_>
search -qpR I think
orivej has joined #nixos
<kandinski>
iqubic: it works for me just from installing gnome.
<iqubic>
I need to do it manually, as I am running i3.
<zybell_>
First you need to pair the device (check out the -a option to bluetoothctl), then connect should work.
orivej has quit [Ping timeout: 264 seconds]
<iqubic>
How does one connect?
<zybell_>
echo connect id|blut...
<zybell_>
id is the id of the dev
blankhart has quit [Read error: Connection reset by peer]
<zybell_>
or you run bluetoothctl manually
<zybell_>
try help
blankhart has joined #nixos
iqubic has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
stumble has joined #nixos
iqubic has joined #nixos
ruhatch has quit [Quit: Connection closed for inactivity]
<iqubic>
Yeah, I can't make this work at all.
<iqubic>
I'm trying to get the command line bluetooth interface to work, and I can't.
stumble has quit [Client Quit]
<iqubic>
[bluetooth]# power on
<iqubic>
Failed to set power on: org.bluez.Error.Blocked
<iqubic>
[bluetooth]# scan on
<iqubic>
Failed to start discovery: org.bluez.Error.NotReady
<iqubic>
So I'm not sure how to make this work.
<iqubic>
Can I get some help making this work?
jrolfs has joined #nixos
Arcaelyx has quit [Read error: Connection reset by peer]
NightTrain has quit [Quit: Lost terminal]
sanscoeu_ has joined #nixos
Arcaelyx has joined #nixos
sanscoeur has quit [Ping timeout: 264 seconds]
endformationage has quit [Quit: WeeChat 1.9.1]
grahambouvier has joined #nixos
michas_ has joined #nixos
<grahambouvier>
Hey, is it possible to have xerver.enable = true; with no displayManager? Looks like slim is running, but xserver.displayManager.slim.enable = false; causes an error on refresh.
<{^_^}>
[nixpkgs] @FRidh closed pull request #32438 → pytorch-0.3 with cuda and cudnn → https://git.io/vblbG
<grahambouvier>
Actually, I managed my way around that with displayManager.job.execCmd = ""; But I was exepcting that to allow me to run startx, but I still get a `X Error of failed request: BadAccess` error
<grahambouvier>
I haven't tried other wms, but `exec emacs` in an .xinitrc works for me
Arcaelyx has quit [Read error: Connection reset by peer]
ldlework has quit [Changing host]
ldlework has joined #nixos
<{^_^}>
[nixpkgs] @FRidh pushed 189 commits to python-unstable: https://git.io/vxHP3
<{^_^}>
→ a1454514 by @FRidh: python: cookiecutter: 1.4.0 -> 1.6.0
<{^_^}>
→ db39035c by @FRidh: python: coveralls: 1.2.0 -> 1.3.0
<{^_^}>
→ 4825246a by @FRidh: python: cryptography: 2.1.4 -> 2.2.2
Arcaelyx has joined #nixos
<kandinski>
I've advanced quite a bit, mostly by explicity adding dependencies, but now I have an issue with libxml that might not be the first time it appears: wraplibxml.h:26:10: fatal error: libxml/parser.h: No such file or directory
Arcaelyx has quit [Read error: Connection reset by peer]
marusich has quit [Quit: Leaving]
<boomshroom>
I tried to update my environment and firefox failed because an icon wasn't in the directory it expected.
Arcaelyx has joined #nixos
<kandinski>
hmm
<kandinski>
how do I force explicit inclusion of a file in a nix-ish way?
davidlt has joined #nixos
johnw has joined #nixos
<srhb>
lejonet: Hey, sorry I missed you, I've been quite busy. I'll be away until sunday, but I'll try to remember to poke you then :)
orivej has joined #nixos
johnw has quit [Ping timeout: 268 seconds]
phry has quit [Ping timeout: 256 seconds]
phry has joined #nixos
TonyTheLion has joined #nixos
<kandinski>
right, so how can I nix-ish-ly modify the include path in an autotools-managed C/C++ project?
thefloweringash has quit [Quit: WeeChat 2.0]
sanscoeu_ has quit [Remote host closed the connection]
<boomshroom>
kandinski: Probably either configureFlags or an environment variable. Environment variables are just set as set elements of the argument to mkDerivation.
<kandinski>
I've tried a preConfigure=''export CFLAGS="-I${pkgs.libxml2.dev}/include/libxml2/libxml"'' attribute in the mkDerivation function, to no effect.
sanscoeur has joined #nixos
<kandinski>
boomshroom: thanks
<boomshroom>
kandinski: Perhaps try CFLAGS="-I${pkgs.libxml2.dev}/include/libxml2/libxml"; as an atribute itself?
<kandinski>
boomshroom: you meani an attribute to mkDerivation?
<boomshroom>
kandinski: Yes. Attributes are implicitly set as environment variables.
<kandinski>
oooh!
<kandinski>
thanks a lot
alex`` has joined #nixos
asuryawanshi has quit [Ping timeout: 256 seconds]
krey has quit [Ping timeout: 260 seconds]
<kandinski>
I have my derivation in my branch. What's the etiquette here? Is it ok to make a PR for a non-working derivation with an exmplanation of what it is that doesn't work in the PR message?
<kandinski>
or should I rather paste the URL for the github branch here, and ask for advice that way?
<boomshroom>
kandinski: I'd say the latter. It would probably be best to make sure it works before submitting the PR.
<{^_^}>
→ 49d0fa77 by @Moredread: josm: 13500 -> 13576
<{^_^}>
→ f8e90cc1 by @Mic92: Merge pull request #38540 from Moredread/josm
<kandinski>
I'd appreciate some help in going foward.
selaux has joined #nixos
acarrico has quit [Ping timeout: 264 seconds]
hakujin has quit [Ping timeout: 256 seconds]
<thor>
I want to use dnsmasq on my laptop with nework manager, while also providing a couple of custom rules for dnsmasq's resolving rules, I've set networking.networkmanager.useDnsmasq to true
<boomshroom>
Using git for personal projects is usually such a chore, but it is really cool how I can just stow away a particular change in its own branch and then fetch your changes into the same tree.
<thor>
I'm on a laptop that move between corporate and private networks as well as using VPNs
jrolfs_ has joined #nixos
<kandinski>
boomshroom: I love git unabashedly and with very few reserves.
michas_ has quit [Ping timeout: 240 seconds]
<boomshroom>
kandinski: Trying to build your package is making me download a worrying number of packages
Jetien has quit [Quit: Leaving]
<etu[m]>
boomshroom: Probably because it's based on master and you're not running master. So you get alot of newer packages :)
<boomshroom>
kandinski: I was in the middle of typing just that. :P
<kandinski>
boomshroom: oops?
<etu[m]>
Anyone else having a missing firefox icon for firefox-bin in latest nixos-unstable? :)
<boomshroom>
etu[m]: No, my firefox just refuses to build because the icon is in the wrong place.
Arcaelyx has quit [Read error: Connection reset by peer]
<etu[m]>
For me it's just like that
blankhart has quit [Ping timeout: 260 seconds]
<etu[m]>
boomshroom: Then I'm better off :D
zarkone has joined #nixos
stefan___ has quit [Remote host closed the connection]
selaux has quit [Remote host closed the connection]
<zarkone>
hi! configuring was deploy for cluster. in service file, I use `networking.firewall.allowedTCPPorts = ....`, but I can't use `networking.hostname` for some reason: getting
<{^_^}>
[nix] @Bogdacutu opened pull request #2052 → release.nix: Use $sourceRoot instead of hardcoded source directory → https://git.io/vxH1P
<boomshroom>
kandinski: Try setting C_INCLUDE_PATH = "${pkgs.libxml2.dev}/include/libxml2"; I think it would be cleaner than CFLAGS and I think were looking one directory too deep.
<boomshroom>
kandinski: The alternative would be to include pkgconfig and let it handle everything.
<boomshroom>
Hold on. You're setting the pkgs.libxml2 in the include path, but specifying libxml in the buildInputs!
<kandinski>
oops
<kandinski>
I really don't know what I'm doing, I'm sorry for that. About 20% of the time I work by superstition.
<iqubic>
why is bluetoth so confusing?
<boomshroom>
kandinski: I can see what you were trying to do with that: allow the user to select which version to provide.
<iqubic>
*bluetooth
<boomshroom>
kandinski: Setting C_INCLUDE_PATH and CPLUS_INCLUDE_PATH to "${pkgs.libxml2.dev}/include/libxml2" got it to a different error.
asuryawanshi has quit [Read error: Connection reset by peer]
simukis has joined #nixos
winem_ has joined #nixos
johnw has joined #nixos
freeman42x]NixOS has quit [Ping timeout: 265 seconds]
johnw has quit [Ping timeout: 260 seconds]
winem_ has quit [Remote host closed the connection]
<boomshroom>
Well, I can play Xenosaga with Joycons, so that's a thing.
<boomshroom>
And now I'm playing Pokemon Ultra Moon. What will I do next?
justanotheruser has quit [Ping timeout: 264 seconds]
ma27 has joined #nixos
<ij>
Is there a channel update & upgrade wiki or manual? Is it possible to update only via configuration.nix?
<MichaelRaskin>
zybell_: re: "18.04": I would expect checking that all the infrastructure prepared for 18.03 handles 18.04 name to take more than 4 days.
davidlt_ has joined #nixos
<boomshroom>
Goodnight guys, it's almost 2 and I've had fun setting up my Joy-Cons.
boomshroom has quit [Quit: WeeChat 2.0]
justanotheruser has joined #nixos
davidlt has quit [Ping timeout: 260 seconds]
posco has quit [Read error: Connection reset by peer]
<zybell_>
iqubic: gnome depends on dbus, bluetoothctl too, dependency is written into gnome, forgotten in bluetoothctl (or it can use another bluetoothdriver as well, with which it is compiled)
Mateon1 has quit [Remote host closed the connection]
<iqubic>
I got bluetooth working without gnome.
Mateon1 has joined #nixos
ma27 has joined #nixos
<zybell_>
MichaelRaskin:If the infrastructure can't take a change 18.03->18.04 NixOS has no worth. The reason NixOS exists is to make such changes painless dependable. If there is something in NixOS that prohibits that,one should know about it(and fix it).
leat has joined #nixos
<zybell_>
Broken Nix:there is a fundamental issue with nix/nixos. It comes up in several disguises at least once a day on #nixos. I would call it the plugin issue. The (often unstated) issue is: A package (like libnss,python,...)uses libdl to load a plugin mentioned in a config/script-file, which it expects to find in a compiled in path. Even when that plugin is installed (dependency is missing)it is never and can't be in that path.
<MichaelRaskin>
zybell_: do you understand the difference between NixOS code, Nix guarantees and supporting stuff like Hydra job configs, documentation references, web sites etc.?
<MichaelRaskin>
zybell_: plugin issue is a real issue, and is generally solved by patching out the assumption that a user can never privately install a plugin to a system-wide installed package. Once this problem (coming from upstream code) is solved, it becomes trivial to write a wrapper (and the wrapper gets written)
hihello has joined #nixos
xy2_ has joined #nixos
<hihello>
Hi. I'm a total noob here but I'm feeling brave to ask a question. How can I have two nix configurations one with gnome applications and de and one with plasma5 and kde apps?
nyanloutre_ has joined #nixos
michas_ has joined #nixos
ottidmes has joined #nixos
<MichaelRaskin>
hihello: look at the documentation of nesting.children options
<zybell_>
If a user can install a private plugin to a systemwide installed package that is called by root, it has security ramifications that can't easily patched out. Think about how setuid-binaries ignore LD_PRELOAD? And the problem is greater than you assume. If it is a scripting language (bash can load extensions)shebang-lines can't take scripts. So you need an additional wrapper thats callable by env.
<MichaelRaskin>
zybell_: a user should be able to privately install a plugin for the times when the user calls the package without affecting other users' use of the same package
<kandinski>
how does one patch a .cpp file that has a harcoded "/usr/share" path?
chimay has joined #nixos
<kandinski>
I know almost nothing about C/C++, I'm only trying to package this editor that I use.
<MichaelRaskin>
hihello: my statement there that I don't use NixOS bootloaded configuration code anymore is still true.
<MichaelRaskin>
kandinski: does the package install all the files that it wants itself? If so. replacing /usr with build-time value of $out should work
blankhart has joined #nixos
<zybell_>
The problem is that a plugin has to be in a path. For every user that path is different. So it cant be compiled in. Using LD_LIBRARY_PATH as a general environment is size restricted. Using it in a particular call needs at least two wrappers and changed shebangs everywhere. The only scalable approach I see is a $ORIGIN based general plugin infrastructure which is every plugin-using package is patched to use.
TonyTheLion has quit [Remote host closed the connection]
<MichaelRaskin>
zybell_: well, or just using tha Mozilla solution of dlopen to absolute names inside MOZ_PLUGIN_PATH (although the name has to be different)
<MichaelRaskin>
kandinski: not completely sure what wxGTK expects there. You could try the straightforward approach and see if it works…
<ikwildrpepper>
MichaelRaskin: you still using julia from nixpkgs?
<MichaelRaskin>
Not too often nowadays.
<ikwildrpepper>
MichaelRaskin: just wondering if we can remove some of the older versions
<MichaelRaskin>
Definitely 0.4, and probably 0.5
<ikwildrpepper>
I expect to do some julia work with nixpkgs, so want to know what versions are still relevant
<MichaelRaskin>
0.6.2 is upstream-current
<ikwildrpepper>
yep
<zybell_>
MichaelRaskin:The environment Variable may be called LD_LIBRARY_PATH,MOZ_PLUGIN_PATH or whatever, the size of the environment is restricted. If every package needs its plugin path in the environment, there cant be many packages using plugins.
<MichaelRaskin>
ikwildrpepper: yeah, I would hope that almost a year after the last 0.5.x release 0.6.2 will not break again for us
<MichaelRaskin>
zybell_: with some wrappers you do not need to set all the plugin directories inside the user's top-level environment
pkill9 has joined #nixos
coot has joined #nixos
<MichaelRaskin>
But you are right that with some amount of plugin-loading packages it becomes better to use something like $PACKAGE_PLUGINS/lib/${package.name}
ixxie has joined #nixos
<zybell_>
And did you know that *every* binary in the OS loads plugins?
<MichaelRaskin>
Its own plugins? Not really.
<MichaelRaskin>
Probably trying to load some glibc plugins.
<{^_^}>
→ 5e7e762b by @bandresen: maintainers: add bandresen
<{^_^}>
→ 1d0bff83 by @bandresen: pythonPackages.ewmh: init at 0.1.6
<{^_^}>
→ a05f246b by @dotlambda: Merge pull request #38532 from bandresen/pyewmh
<MichaelRaskin>
Well, it is a single plugin-loading package.
<ixxie>
So, some of us have been working on packaging Jupyter ecosystem stuff and other data science tools and I would like to sort of formalize the project
<ixxie>
what is the standard channel for doing that sort of thing on Nixpkgs?
<MichaelRaskin>
ixxie: in what sense of «formalise»?
<ixxie>
MichaelRaskin: in the sense of coordinate in one point with other people interested in working on Nixpkgs data science infra
<ikwildrpepper>
ixxie: easiest to create a PR, and send email to mailing list requesting feedback, or ask if other people would like to participate, I guess
thc202 has joined #nixos
<ikwildrpepper>
ixxie: what kind of infrastructure are you thinking of btw, I'd be interested in jupyter related stuff
<ixxie>
ikwildrpepper: I wouldn't know what kind of PR to make for this sort of strategic coordination which doesn't have anything to do with particular code merged, normally that is what a project is for but I don't have the permission to make one
<MichaelRaskin>
A lot of quasi-projects run on a few tracking issues and a series of PRs
<zybell_>
Yes, but with pam, python, language bindings for middleware like postgres, seldom used but hopefully supported like bash extensions, and possibly others I forget there are many ways to find unexpected dependencys. That plugin infrastructure is needed. And if only because it is where packages are m:n-related. And even in a database that needs an extra table (read infrastructure).
<ikwildrpepper>
oh, I assumed you already had something for a PR. indeed, like MichaelRaskin said, you can just create an issue to discuss
<mkaito>
is there any documentation on using nixos containers as nixops target?
<ixxie>
ikwildrpepper: but most interestingly is aborsu's work here https://github.com/NixOS/nixpkgs/pull/33673 because it opens the way for Nix specified jupyter kernels :)))
<ixxie>
thanks MichaelRaskin, ikwildrpepper - I will make an issue
<MichaelRaskin>
ixxie: re: jupyter-service PR: I think there is a healthy discussion right there…
hihello has quit [Quit: Page closed]
johnw has joined #nixos
<mkaito>
once a PR gets merged into nixpkgs, when does it show up on my system? I'm on unstable.
<MichaelRaskin>
It depends. I would expect something like single-digit days.
<MichaelRaskin>
If a channel is behind the master branch more than by a week, people consider it a problem to fix; but channel bumps wait for Hydra builds of a master revision, so it is far from instant
<mkaito>
oh I thought unstable was tracking master
<MichaelRaskin>
It is, but with a filter
<ixxie>
MichaelRaskin: yes but the scope is too narrow; I wanna look at coordinating coverage of ML/NLP/Statistics stuff from the Python ecosystem, and completing the Data Haskell collection
zybell_ has quit [Ping timeout: 265 seconds]
<MichaelRaskin>
If you can formulate a clear goal and list a set of partial achievements related to it, it sounds like a tracking issue. Maybe put [RFC] in the beginning of the title.
<mkaito>
MichaelRaskin: I was wondering about this PR in particular https://github.com/NixOS/nixpkgs/pull/38427 — only been 3 days, so there's that. but since you mention a filter, maybe that's relevant?
johnw has quit [Ping timeout: 260 seconds]
<MichaelRaskin>
I just run off a git checkout, so I am not really tracking the channel delay
<mkaito>
runtime: may need to increase max user processes (ulimit -u)
<mkaito>
so probably transient
<mkaito>
although it's been failing since the 25th
bollu has quit [Ping timeout: 264 seconds]
<MichaelRaskin>
It is a cached failure, though
<MichaelRaskin>
If it is the same exact build, it doesn't get rebuilt by default
zybell_ has joined #nixos
<mkaito>
hmmm
cinimod has joined #nixos
<mkaito>
5b01b0d316b65f7defac195cf360cf79f797903c bumps the go version
<mkaito>
likely related
bollu has joined #nixos
<MichaelRaskin>
Nothing better for careful reading of dependency change list than a user actually interested in the fix…
<mkaito>
I guess globin might want to have a look maybe
<zybell_>
MichaelRaskin:Because as nss shows librarys can use plugins too, which can be independent from the calling program, I propose a two-step approach. A user-installed pluginloader.so with rpath $ORIGIN/loader, in loader/ a <pkg>.so with rpath $ORIGIN/<pkg>-plugins and in loader/<pkg>-plugins the plugins get installed, systemwide installed ones by symlink. The pluginloader.so is a dependency and provides a DLopen(pkg-name,plugin-name)style
<zybell_>
function.
<MichaelRaskin>
Wait, installed inside a store path?
<Dezgeg>
nss modules is a solved problem by using nscd though
<kandinski>
I'm about to make my first PR, what should I put in the meta.maintainer property? My github account name?
<MichaelRaskin>
And PAM is hopefully system-wide, I guess.
<zybell_>
Thats not solved, thats sidestepping.
<MichaelRaskin>
kandinski: yes, github account name is a fine default, but you also need to fill in the details in nixpkgs/maintainers/maintainer-list.nix
<kandinski>
MichaelRaskin: I'll do that too, thanks.
<MichaelRaskin>
Fortunately, if there is a mismatch ofborg will complain in a way that no committer would override.
b has joined #nixos
<MichaelRaskin>
So just check after 5 to 15 minutes to see if ofborg checks have passed
hakujin has joined #nixos
ixxie has quit [Ping timeout: 260 seconds]
ericsagnes has quit [Quit: WeeChat 2.0]
<zybell_>
If you stop plugin infrastructure from being used, by providing another super-plugin (nscd) that doesn't fix the errors in the plugin infrastructure.
hakujin has quit [Ping timeout: 265 seconds]
jrolfs has joined #nixos
<zybell_>
PAM could be needed on user level too. idk how the (sub)accounts are called, that a user can create, but sometimes I wished for my browser to have the ability to create one for certain websites, because they run so much stuff that it seems warranted.
<Dezgeg>
does PAM even support such user-level things?
<MichaelRaskin>
I prefer the browser to start already inside an nsjail, though (and give the user sudo-like access to grabbing fresh UIDs, just in case)
<zybell_>
idk, but I would consider it a bug if not.
<{^_^}>
[nixpkgs] @domenkozar pushed 2 commits to release-17.03: https://git.io/vxH77
<{^_^}>
→ 2c1838ab by @domenkozar: btrfs-progs: 4.14.1 -> 4.15.1
<{^_^}>
→ d51b5654 by @domenkozar: e2fsprogs: 1.43.8 -> 1.44.1
Izorkin has quit [Ping timeout: 255 seconds]
avn has quit [Remote host closed the connection]
Izorkin has joined #nixos
<{^_^}>
[nixpkgs] @dotlambda pushed 7 commits to python-unstable: https://git.io/vxH5J
<{^_^}>
→ 41ad19aa by @dotlambda: python.pkgs.moto: fix build
<{^_^}>
→ dc79df04 by @dotlambda: octoprint: fix build
<{^_^}>
→ 079ef316 by @dotlambda: python.pkgs.prawcore: 0.12.0 -> 0.15.0
jtojnar has quit [Quit: jtojnar]
Supersonic has quit [Quit: Bye]
Supersonic has joined #nixos
Fare has quit [Ping timeout: 260 seconds]
freeman42x]NixOS has joined #nixos
zybell_ has quit [Ping timeout: 255 seconds]
zybell_ has joined #nixos
spear2 has quit [Ping timeout: 260 seconds]
Fare has joined #nixos
avn has joined #nixos
avn has quit [Client Quit]
avn has joined #nixos
<thblt>
Hi! I've tried to build alacritty locally, and it works fine, but I have to manually hack LD_LIBRARY_PATH to get it to run outside the build shell. What am I missing? The packaged alacritty doesn't need that.
<tilpner>
The packaged alacritty sets the rpath of the binary
* thblt
googles rpath
<thblt>
Oh I see, thanks tilpner
<tilpner>
rpath is similar to LD_LIBRARY_PATH, but is not inherited by child processes AFAIR
<thblt>
tilpner: thanks a lot, now I know where to start
<mightybyte>
That default.nix file will work with any cabal package and it provides a really easy and obvious way to override things that commonly might need to be overridden.
chreekat has quit [Quit: quitting]
<mightybyte>
ThatPako: You were running `cabal exec ...` where? In a nix shell?
<ThatPako>
ye
<mightybyte>
And you ran `cabal build` first?
<ThatPako>
ye
<ThatPako>
running `./dist/build/site/site watch` works
<{^_^}>
[nixpkgs] @dotlambda pushed 2 commits to python-unstable: https://git.io/vxHxa
<{^_^}>
→ 82f958cf by @dotlambda: python.pkgs.spacy: loosen version constraints
<{^_^}>
→ acd67c05 by @dotlambda: python.pkgs.spacy: clean up propagatedBuildInputs
<cx405>
Hi! So I am learning nix in nix-repl and sometimes doing something stupid, like entering cyrillic letter "ц(enter)", at which point nix-repl locks into waiting for EOF, but does not react to Ctrl+C. How do I break the expression to get the control back?
<tilpner>
Ctrl+D
xcmw has joined #nixos
<cx405>
tilpner: Thank you! Any chance you know how to return to repl instead of quiting it, perhaps?
<MichaelRaskin>
Dunno, for me Ctrl-c does break out of ц
<MichaelRaskin>
For quitting there is also Ctrl-\
<cx405>
MichaelRaskin: I am running unstable variant, as in nix-shell -p nixUnstable --run "nix repl"
<cx405>
Well, it advertizes with "nix-repl>", got me confused. :(
hotfuzz has quit [Read error: Connection reset by peer]
<MichaelRaskin>
For maximum confusion, Nix 2.0 has both nix-build and nix build
hotfuzz has joined #nixos
<infinisil>
For backwards compatibility!
<MichaelRaskin>
If only nix build actually could do all the stuff what nix-build does.
<infinisil>
There also isn't a replacement for nix-shell and maybe a bunch more
<infinisil>
as in #!/usr/bin/env nix-shel
<MichaelRaskin>
Of course, nix-shell is used for multiple different purposes
<MichaelRaskin>
Some of them are achievable via nix run
<MichaelRaskin>
Not all of them, though.
Neo-- has quit [Ping timeout: 265 seconds]
<infinisil>
I'm honestly not so sure if it was a good idea to release Nix 2.0 in this seemingly unfinished state
<infinisil>
Most frustratingly of all: `man nix` -> `No manual entry for nix`
<MichaelRaskin>
Hehehe
<cx405>
Could I ask another question if I may? I got system.stateVersion = "17.09", but nixos channel at 18.03. Now that I noticed 18.03 official release, can I "system.stateVersion = "17.09" >> system.stateVersion = "18.03";" safe? I don't seem to have anything relevant that would be mentioned in https://nixos.org/nixos/manual/release-notes.html#sec-release-18.03
<MichaelRaskin>
Well, chroot-store and nix copy _are_ useful even as it is
<infinisil>
cx405: Don't change stateVersion
<ottidmes>
infinisil: There are only a few packages that actually depend on stateVersion, right, some databases and such?
<MichaelRaskin>
Well, it is only about NixOS
<infinisil>
Yeah, it can only break stuff, it doesn't update anything
<cx405>
infinisil: I already borked one install by changing it and understood that stateVersion is sorta "profile". When could I get upgrade it? I am running nixos on baremetal.
<MichaelRaskin>
So DB choice of packages, but also the rules about some small defaults here and there
<MichaelRaskin>
The hope is that you do not need to upgrade it…
<infinisil>
cx405: You don't need to update it
<infinisil>
I think we should use a sequentially increasing integer instead of the nixos versions, to prevent people from thinking they need to change it
jayq has joined #nixos
<cx405>
But how does this var gets updated? I got impression that stateVersion is version of the core, right? I don't have any generation or channel 17.09.
<cx405>
I don't have any generation or channel at 17.09 anymore.
<infinisil>
cx405: stateVersion is used by nixos for state whose default changed throughout different versions, e.g. a database directory now being in /var/db instead of /var/lib/db. So there is a switch: dbDir = if stateVersion < 18.03 then /var/db else /var/lib/db
<infinisil>
wait wrong way, but you get the idea
<infinisil>
Updating this variable would mean that suddenly it thinks the db is in a different place, so it breaks
acarrico has quit [Ping timeout: 240 seconds]
<infinisil>
You can update it if you really want it, but then you need to go through the list of changes and manually migrate everything
<infinisil>
That means moving the database from /var/db to /var/lib/db yourself
<ottidmes>
infinisil: But I count only 8 packages that actually use it, when I search for it in my nixpkgs checkout
<ottidmes>
None of which I use, so I just went and updated mine to 18.03
<infinisil>
ottidmes: Yeah, it's not widely used, and that's even more reason not to need to update it
<cx405>
infinisil: so, basically its core profile and nixos is not truly rolling? I am fine with breaking compatibility to 17.09.
<cx405>
so there is no mechanism, that would automatically update the core, correct?
<MichaelRaskin>
cx405: it is for defaults that can be overriden anyway
<infinisil>
Just don't update it, it's not worth it
<MichaelRaskin>
And it is actually possible just to omit it completely.
<MichaelRaskin>
But it just tracks what were the defaults where they don't matter much anyway
<infinisil>
The only thing it gets you is that the string "17.09" isn't in your config anymore and potential problems, literally nothing else
<infinisil>
It's the only thing module writers can rely on to not change
<infinisil>
To keep it backwards compatibly
<cx405>
Well, this is not correct. There is a structure, that is from 17.09, which is being worked-around by parsing the stateVersion variable, and I would appreciate if I could get away from this relic. Something like tool in live ISO, that allows to upgrade the core. I don't really need any backward compatibility to 17.09.
<infinisil>
I'm not sure what you're talking about
<MichaelRaskin>
cx405: well, you can just erase the line completely…
<MichaelRaskin>
NixOS will still work without that line.
<MichaelRaskin>
You will get slightly more sudden changes of defaults on future upgrades than if you keep it
<infinisil>
That's the same as just setting it to 18.03..
<infinisil>
Which will break your setup if you use a service that uses that option
<MichaelRaskin>
Well, it is the same for now. If you always bump it, you can as well just delete it.
<cx405>
I changed it from 17.09 to 18.03 when 18.03 channel was listed. That lead to bunch of stuff building instead of copying and then broke the printing.
<ottidmes>
I think the question was, how to upgrade those DB store paths to the new locations, if we take DBs as an example that use stateVersion and assume they use it for their changed storage location
<infinisil>
Well that's the point, you're not supposed to bump it
<MichaelRaskin>
I would expect that it will not break the DB services — just initialise a new DB in a new place.
<cx405>
Is there a tool that allows to apply those migration changes?
<MichaelRaskin>
Hm, it could break printing because the DB directory moved and the printing settings were in the old one
<ij>
To update to 18.03 I need to update the channel URL manually?
acarrico has joined #nixos
slyfox_ has joined #nixos
<cx405>
ij: yes.
<infinisil>
cx405: No there isn't
<infinisil>
But the release notes list the changes
<ij>
So it isn't possible to do it with configuration.nix?
<MichaelRaskin>
You can also override cx405 whatever defaults have changed to their old values.
<cx405>
ij: No, you need to update the root channel with "nixos" alias to new release.
knupfer has joined #nixos
<infinisil>
Well whatever, if you wanna update it sure, I'm not going to stop you, but it surely doesn't do anything like update anything
<ottidmes>
ij: You could in theory configure it within your configuration.nix, if you do not use nix-channel but manage it yourself, but generally this is done outside of your configuration.nix
jayq has quit [Ping timeout: 260 seconds]
random-nixor has joined #nixos
<cx405>
infinisil: I have a problem with relics in configuration. As world moves on, the relics tend to get less attention, so at some point I could end with inconsistency in workaround for current old stateVersion, which would produce bugs that nobody can replicate on fresh system. Actually I though that Nixos does core upgrades (irrevocable, its fine) automatically, so flipping the stateVersion after that would change nothing because the core has
<infinisil>
cx405: And what workaround are you talking about?
<ottidmes>
cx405: You just have to do those upgrades yourself, like I said, there are only 8 packages that I counted that actually use it, so it should be managable to do once in 6 months, and they are unlikely to change things that often
knupfer1 has joined #nixos
<random-nixor>
MarcWeber: thank you
<cx405>
ottidmes: Can you elaborate on how to find those packages and how to do manual core upgrade? I am noting everything down, this is likely to go on the Nixos wiki.
<{^_^}>
[nix] @shlevy pushed commit from @Bogdacutu to master « release.nix: Use $sourceRoot instead of hardcoded source directory »: https://git.io/vxHh0
<ThatPako>
is there any reason the pandoc package is two years old?
<{^_^}>
[nix] @shlevy merged pull request #2052 → release.nix: Use $sourceRoot instead of hardcoded source directory → https://git.io/vxH1P
<ottidmes>
concatime: If it is a package you could just use nix-build or nix-shell -p to test it out, if it is a module, you probably want to make the nixpkgs checkout you made the changes in to be your nixpkgs used when building your config (by setting it in NIX_PATH via e.g. nix.nixPath as nixpkgs=/your/path)
blankhart has quit [Ping timeout: 245 seconds]
<cx405>
tilpner: you may probably remember me, you massively helped me when I borked the system by flipping the stateVersion before 18.03 was officially released.
<ottidmes>
ThatPako: Not 100% sure, but could it not be that people now use haskellPackages.pandoc instead of pandoc?
<ThatPako>
ottidmes: I tried both but I get pandoc 1.19.*
<MichaelRaskin>
cx405: maybe a migration tool that could get some tratction would be nix-diffing your system evaluated with different stateVersion values
<ThatPako>
*1.17
johnw has quit [Ping timeout: 276 seconds]
<ottidmes>
ThatPako: That was all I got, hopefully someone else can shed some light upon it
<concatime>
@ottidmes, ok, cool. I will give it a shot right now.
<ottidmes>
concatime: If you do not want a massive rebuild, you might want to copy over the module to the nixpkgs branch you normally use. And if you start managing your own nixpkgs checkout you want to look at: https://github.com/NixOS/nixpkgs-channels
vaninwagen has quit [Quit: Connection closed for inactivity]
keith_analog has joined #nixos
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<sphalerite>
why is allowMissing = true; in the module closure maker in nixpkgs/nixos/modules/system/boot/stage-1.nix ?
ryanartecona has joined #nixos
<keith_analog>
Hi All, I'm writing a nix script `build-all.nix` to assist me in developing an application, which consists of a number of github repositories, e.g., `foo` and `bar`. I'm trying to do the following: I'm writing one `global.nix` script to gather together `foo` and `bar` as runtime dependencies. Both `foo` and `bar` are built via `foo.nix` and `bar.nix` respectively. Further, both `foo.nix` and `bar.nix` each have an input paramter
<keith_analog>
`fooSrc` and `barSrc` respectively. I'd like for `build-all.nix` to introduce options (e.g., via mkOption) to determine `fooSrc` and `barSrc`. In particular, I'd like to select between passing a raw path or a fetchFromGithub result. Can someone point me to a solution? Thanks!
<keith_analog>
oops, please substitute `global.nix` above by `build-all.nix`
tertle||eltret has joined #nixos
<infinisil>
keith_analog: The easiest thing would be to just use foo = stdenv.mkDerivation { src = ...; }
<infinisil>
Then you can override it with `foo.overrideAttrs (old: { src = someOtherSource; })`
knupfer1 has joined #nixos
allter has quit [Ping timeout: 240 seconds]
knupfer has quit [Ping timeout: 264 seconds]
knupfer1 is now known as knupfer
keith_analog2 has joined #nixos
keith_analog has quit [Ping timeout: 245 seconds]
knupfer has quit [Ping timeout: 260 seconds]
<MichaelRaskin>
sphalerite: this reduces the amount of trade-off arguments for including some stuff everyone needs as a kernel built-in instead of a module.
ryanartecona has quit [Quit: ryanartecona]
random-nixor has quit [Ping timeout: 260 seconds]
acarrico has quit [Ping timeout: 260 seconds]
keith_analog2 has quit [Quit: Konversation terminated!]
<boomshroom>
Last night I managed to get my Joy-Cons connected and was able to play Xenosaga. Now I want to try other games, like Borderlands.
<infinisil>
No idea what either of those are, but glad you got it to work :)
blankhart has joined #nixos
<boomshroom>
Joy-Cons are the Nintendo Switch controller. Xenosaga is a PS2 game I emulated, and Borderlands is a game available natively on Linux.
<{^_^}>
[nixpkgs] @dotlambda pushed 116 commits to python-unstable: https://git.io/vxQv7
<{^_^}>
→ bd076ab9 by @FRidh: python: pylint: 1.8.2 -> 1.8.3
<{^_^}>
→ 4d166e03 by @FRidh: python: pyobjc: 4.1 -> 4.2.1
<{^_^}>
→ 832a575f by @FRidh: python: pyodbc: 4.0.22 -> 4.0.23
orivej has joined #nixos
xy2_ has quit [Ping timeout: 276 seconds]
<lejonet>
Hmm, what is the easiest way to get a nix-shell or similar with a functional gcc env? (i.e. basic includes and libraries needed, like gcc_s and libc)
<infinisil>
lejonet: probably nix-shell -p stdenv
<boomshroom>
lejonet: Probably `nix-shell <nixpkgs> -A hello`
<lejonet>
infinisil: I'll try that, thanks :)
John882 has joined #nixos
<lejonet>
worked like a charm, thx!
cript0nauta has left #nixos [#nixos]
<lejonet>
(are there any good guides/howtos to nix-shell? )
<{^_^}>
[nixpkgs] @Ericson2314 pushed commit from @Infinisil to master « lib: make extensible »: https://git.io/vxQf4
<lejonet>
True, the nix tools manpages are usually quite good
<infinisil>
Yay for my PR to get merged \o/
John882 has quit [Quit: John882]
xy2_ has joined #nixos
orivej has quit [Ping timeout: 276 seconds]
michaelpj has quit [Quit: ZNC 1.6.5 - http://znc.in]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
michaelpj has joined #nixos
jayq has joined #nixos
nyanloutre has quit [Quit: Page closed]
<iqubic>
I'm noticing tearing on YouTube videos in the latest Firefox version. Anyone have a fix for this?
nyanloutre has joined #nixos
<nyanloutre>
Hello ! I am curently trying to create a C# package, but I am strugling to get it compiled from sources
<nyanloutre>
I don't know how to manage dependancies (normaly managed with nuget but not possible in a nixos build)
ma27 has quit [Ping timeout: 260 seconds]
<nyanloutre>
Is there any good example are documentation that I could read ?
<MarcWeber>
%$(nix-build -A cabal2nix /tmp/nixpkgs)/bin/cabal2nix . -> does this work for you after cding into git clone https://github.com/NixOS/cabal2nix.git 'ed directory?
<{^_^}>
[nixpkgs] @dotlambda pushed to python-unstable « python.pkgs.progressbar: disable on python 3 »: https://git.io/vxQUB
pkill9 has quit [Quit: WeeChat 2.0.1]
<boomshroom>
joko: It probably implicitly does parallel builds if it can.
<boomshroom>
Is the nix 2.0 command going to receve nix-env functionality at some point?
ndrei has joined #nixos
pkill9 has joined #nixos
<boomshroom>
Does anyone know how to build go packages that depend on the golang.org/x namespace?
<ben>
is there something special about it?
johnw has joined #nixos
<joko>
boomshroom: I see, thanks
<joko>
The thing is I was expecting some kind of a limit
statusfa1led is now known as statusfailed
<boomshroom>
ben: The source code isn't actually located at the url and the website merely hosts it. Also I can't seem to make it look like a git repo.
<ben>
`go get` knows how to deal with it
<ben>
theres like <meta> tags, maybe dependent on some secret query params
<ben>
id assume that go2nix also deals with it by extension?
<michaelpj>
joko: `--max-jobs`. Look at `nix --help-config` for a list of config options you can set
<michaelpj>
not sure what the default is
<boomshroom>
ben: go2nix generated an empty dependencies file.
<{^_^}>
[nixpkgs] @dotlambda pushed to python-unstable « python3.pkgs.git-annex-adapter: replace eject by utillinux »: https://git.io/vxQTC
ThatPako has quit [Quit: Lost terminal]
<ben>
mhh go2nix works for me, after manually fetching the dependencies with `go get ./...`
<ben>
(so theyre in the gopath in the first place? i kinda thought go2nix would take care of that too tbh)
blankhart has quit [Read error: Connection reset by peer]
blankhart has joined #nixos
blonkhart has joined #nixos
<joko>
michaelpj: many thanks!
xy2_ has quit [Ping timeout: 240 seconds]
<ben>
boomshroom: im not sure if youre trying to write a nix expression or just compile some go code you found somewhere
<boomshroom>
ben: The latter. I was manually modifying deps.nix because go2nix left it empty.
<ben>
that sounds painful
<ben>
does `go get ./...` in the package's dir followed by `go build ./...` or w/e do something useful?
<ben>
(if its public code do you wanna link it?)
tertle||eltret has quit [Quit: Connection closed for inactivity]
<joko>
tilpner: let's say that I am searching for my own messages, I add "joko" to the filter and it filters the currectly selected date. Any way to search for "joko" in 2018?
<samueldr>
joko: tilpner: there are two search boxes on the logs thing, the left one searches across days, the top one in the day
<clever>
joko: linked a line of source that is relevant
<clever>
joko: ive got plain-text logs i could search
<joko>
samueldr: got it, thanks... tilpner: I was using the filter :/
<iqubic>
Anyone know how to deal woth screen tearing in the latest version of FF?
<mkaito>
is there a way to specify initial permissions for the home folder of a user when created by nix? I need the home folder of a system user to be 1750 instead of 0700.
johnw has quit [Ping timeout: 256 seconds]
<clever>
mkaito: its hard-coded to 700 in the perl, i think an issue may have been opened for it
jayq has joined #nixos
<mkaito>
sweet. alternative ways to chmod it once after activation?
<mkaito>
I could use the corresponding systemd service's preStart, but that's unnecessary and is probably going to run into problems with the sticky bit later.
<clever>
mkaito: its a bit ugly, but you could use another activation script and mkAfter, to redo the chmod every time nixos changes it
ryanartecona has quit [Quit: ryanartecona]
<mkaito>
let me try that
jayq has quit [Read error: Connection reset by peer]
jayq has joined #nixos
<mkaito>
well, it works. at least it's better than running it in a service's preStart. thanks, clever.
<{^_^}>
[nixpkgs] @samueldr opened pull request #38568 → doc: Fixes repeated callout in 15.1 → https://git.io/vxQtk
ficl has joined #nixos
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
<clever>
yep
raynold has joined #nixos
jayq` has joined #nixos
jayq has quit [Ping timeout: 255 seconds]
jayq` has quit [Ping timeout: 260 seconds]
jayq` has joined #nixos
Tobba has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @samueldr opened pull request #38569 → doc: Fixes in-text callouts and screen callouts. → https://git.io/vxQqm
<{^_^}>
[nixos-homepage] @samueldr opened pull request #206 → doc: overrides `hljs` overflow rules for better linking. → https://git.io/vxQqW
blankhart has quit [Ping timeout: 260 seconds]
pkill9 has quit [Quit: WeeChat 2.0.1]
hakujin has quit [Ping timeout: 260 seconds]
bollu has quit [Quit: Ping timeout (120 seconds)]
corngood has left #nixos ["User left"]
bollu has joined #nixos
spear2 has joined #nixos
cinimod has quit [Quit: Connection closed for inactivity]
<keith_analog>
Hi, I am using the following command `callPackage ../foo/foo.nix {}`, but would like to replace the absolute path by a path relative to the github repository where `foo` lives. Could someone help me find the right command? I'm using pkgs.fetchFromGitHub to source the foo package and am taking the reference to the github source package via a parameter named fooSrc. thanks!
xy2_ has quit [Ping timeout: 260 seconds]
nyanloutre has quit [Ping timeout: 265 seconds]
<{^_^}>
[nixpkgs] @tadfisher opened pull request #38572 → enyo-doom: init at 1.05 → https://git.io/vxQYK
frostspanner has joined #nixos
<{^_^}>
[nixpkgs] @thoughtpolice pushed commit from @roberth to master « linuxPackages_custom: fix missing argument and add test »: https://git.io/vxQYj
fragamus has joined #nixos
<{^_^}>
[nixpkgs] @thoughtpolice closed pull request #38034 → linuxPackages_custom: fix missing argument and add test → https://git.io/vxV1d
allter has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @thoughtpolice pushed 2 commits to release-18.03: https://git.io/vxQOt
<{^_^}>
→ 4bf96589 by @apeyroux: resilio-sync: 2.5.2 -> 2.5.12
<{^_^}>
→ f5f89dd9 by @roberth: linuxPackages_custom: fix missing argument and add test
<{^_^}>
[nixpkgs] @thoughtpolice closed pull request #38035 → linuxPackages_custom: fix missing argument and add test → https://git.io/vxVDC
niklob has quit [Quit: Leaving]
<{^_^}>
[nixpkgs] @kevincox opened pull request #38573 → Allow setting cargoSha256 to null. → https://git.io/vxQO8
hiratara has quit [Ping timeout: 245 seconds]
orivej has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hiratara has joined #nixos
<{^_^}>
[nixpkgs] @joncfoo opened pull request #38574 → Update psc-package from v0.3.2-pre to v0.3.2 → https://git.io/vxQOK
fragamus has joined #nixos
<{^_^}>
[nixpkgs] @joncfoo closed pull request #38574 → Update psc-package from v0.3.2-pre to v0.3.2 → https://git.io/vxQOK
vaninwagen has quit [Quit: Connection closed for inactivity]
<ottidmes>
keith_analog: I am not completely sure I understand your question, but would something like this work: callPackage "${pkgs.fetchFromGitHub ... your code ...}/foo.nix" {}
<{^_^}>
[nixpkgs] @dotlambda pushed to python-unstable « python.pkgs.protobuf: use 3.5 by default »: https://git.io/vxQ30
knupfer has quit [Ping timeout: 255 seconds]
<keith_analog>
ottidmes: super! this looks like what i want
ficl has quit [Ping timeout: 276 seconds]
lostman has quit [Quit: Connection closed for inactivity]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
→ 27c9bd66 by R. RyanTM: getmail: 5.5 -> 5.6
<{^_^}>
→ 584270e3 by @7c6f434c: Merge pull request #38570 from r-ryantm/auto-update/getmail
Arcaelyx_ has joined #nixos
Arcaelyx has quit [Ping timeout: 245 seconds]
<abrxs>
hi all, please forgive me for asking what must be a hideously basic question... I am trying to create a systemd service. I am trying to pass a conffile generated with pkgs.writeText as an argument to the daemon at start up. in order to do this, I am trying to copy the conf file to /var/lib/ in preStart, like this: prestart = ''mkdir -p -m 0755 -p /var/lib/servicename; cp ${confFile}
<abrxs>
/var/lib/servicename/conf.yml''. but I keep getting permission denied. as far as I can tell, this is the exact same procedure being used by countless pkgs out there already, so i'm wondering what i'm doing wrong?
blankhart has quit [Ping timeout: 276 seconds]
civodul has quit [Ping timeout: 255 seconds]
<clever>
abrxs: does /var/lib/servicename/conf.yml exist?
<abrxs>
nope
<abrxs>
itcreating the base directory as a part of the preStart fails
<abrxs>
it's actually*
chisui has quit [Ping timeout: 260 seconds]
<avn>
abrxs: also in case if daemon want config writeable, you may be need chmod config after copying
<clever>
abrxs: is the User field set on the service?, the preStart may not have permission to create the directory
<abrxs>
i have systemd.services.servicename.serviceConfig.User set, is there another option i might be missing?
<abrxs>
i'm creating this user as well with isSystemUser = true; for what that's worth
blankhart has joined #nixos
<clever>
abrxs: you will want to set createHome and home then, and nixos will make the directory for you
kmicklas has joined #nixos
<achambe>
Hi, I'm having a small problem with understanding something. builtins.fetchTarball doesn't seem to return a derivation, but something else. Is that correct?
<clever>
achambe: it returns a string with the storepath
<abrxs>
clever: believe it or not, i've done that as well! maybe a gist will help
<achambe>
is there a way I can get a gc root from that string?
<abrxs>
I tried that as well, actually, and i think the service at startup tries to chmod it or something to that effect. I get a chmod() read only in that case
<clever>
and what is the error in the journal? can you add that to the gist?
<abrxs>
sure, you bet
jrolfs_ has joined #nixos
<clever>
abrxs: in the prestart, run id, and ls -lhd ${cfg.stateDir}
<semilattice>
Is there any easy way to use build sandboxes non-globally?
<abrxs>
alright clever, let me give that a try
<semilattice>
For say a specific package, or temporarily?
<abrxs>
interesting, the user is nogroup
sigmundv has joined #nixos
<achambe>
clever: thanks, it works well. I'm trying to avoid using the nix-channel updater because I don't trust 'small patches' to not break anything :/
<achambe>
though maybe that is just paranoia
raynold has quit [Quit: Connection closed for inactivity]
<achambe>
it would ne nice is nix-channel had a way to go to a specific revision of a channel
ndrei has quit [Ping timeout: 255 seconds]
<achambe>
I guess I could make my own channel too.
<ottidmes>
achambe: Why not just manage your own local nixpkgs checkout?
<abrxs>
hmm... little further along by setting the users group, but now this again: chmod() of /nix/store/il32if3csacahncqilj93c8hcvrqf95k-stubby-0.2.2 via /proc/self/fd/3 failed: Read-only file system
<abrxs>
which is the same error, incidentally, as passing ${confFile} directly
<achambe>
ottidmes: thats sort of what im doing. I go NIX_PATH="" then fetch an exact nixpkgs from the stable channel using clever's derivation he linked, then use that for everything.
<achambe>
and i get the exact version from a stable channel like you said
<ottidmes>
achambe: But why? Is it not more flexible to have your own git checkout that you can then manage, change stuff in? Just add nixpkgs=/your/checkout to NIX_PATH
<achambe>
this is for automated deployments to a remote server, otherwise you are right.
Sigma has joined #nixos
<ottidmes>
achambe: Ah, was about to say that that would be the only valid use case I could think of where your approach would probably be better :P
<achambe>
playing with nix expressions is so addictive
<boomshroom>
achambe: Indeed it is
<ottidmes>
achambe: Yeah, it takes tinkering with Linux to the next level, creating config to generate config :)
<ottidmes>
I like that you basically are building your own specialized distro for your machines (in some sense at least)
<boomshroom>
ottidmes: I've had an idea floating around recently for a "NixOS from scratch", ie: a full Nix built linux system without nixpkgs.
<achambe>
no nixpkgs to be really minimal?
<boomshroom>
achambe: No, more for the challenge of building your own nixpkgs from scratch, in the same way that LFS builds an entire system from a bunch of source downloads and a book.
<achambe>
Oh, that is cool. I'm pretty interested in that
<ottidmes>
boomshroom: I would subscribe to that :) would be fun to experiment with
<avn>
boomshroom: I believe better to spend time refining nixpkgs base components
<clever>
abrxs: when you copied the file, the copy is still read-only
<clever>
abrxs: so you might need to chmod after you copy
<boomshroom>
avn: Ya, but where's the fun in that? And going through it would probably give you a better understanding of Nix itself.
<achambe>
boomshroom: I was a little curious about how to do something like that because I was an openbsd user before nixos, and wondered how difficult it would be to make a hybrid OS.
<avn>
boomshroom: try to remove libkrb5 vs krb5, w/o creating buildloops ;) I tried, and failed
thc202 has quit [Ping timeout: 265 seconds]
<abrxs>
clever: ah, okay, it looks like it's actually working now!: the chmod error seems to be appearing there because the rebuild is trying to modify the config file while the service is running. the service started successfully after all, in spite of the error