bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
aristid_ has joined #nixos
zeta_0 has joined #nixos
Rusty1 has quit [Remote host closed the connection]
<zeta_0>
i burned nixos into an sd card and put it into my raspberry pi, and my pi is not detecting it(tv tells me no signal) ? why is it not working ?
<zeta_0>
i burned a .img file onto the sd card, should i convert it to a .iso file and then burn it onto the sd card
<notgne2>
I believe in this case they should be the same thing (just a different extension)
jgeerds has quit [Ping timeout: 240 seconds]
<notgne2>
that is, if you're writing it with `dd`, I'm not sure how to use raspis really
<zeta_0>
notgne2: i used dd, i don't know why the pi is not recognizing nixos ?
ng0 has quit [Quit: Alexa, when is the end of world?]
<zeta_0>
has anyone here had this issue before with their pi ?
<aleph->
Hmm, anyone see something wrong with this nginx service declaration? Not getting any errors on a rebuild but there's no nginx service file/nginx isn't starting up.
<daspork>
So are there any active cache.nixos.org mirrors for mainland china? I see there is a mirror of the actual nix package manager @ tsing hua uni, but im unclear if that is also a package mirror. The information on this seems to be a little sparse.
LysergicDreams has joined #nixos
<gchristensen>
daspork: I can't look now, but I suppose fastly doesn't have any POPs in China?
<clever>
aleph-: nginx wont do anything until you nginx.enable = true;
<aleph->
... god dangit
<aleph->
Guess I deleted that stanza
<aleph->
Sigh...
pbb has joined #nixos
<daspork>
gchristensen doesnt seem like it, at least from china mobile's network, i have not tested china telecom
<daspork>
getting mirrors in china is reasonably easy to do and im willing to do that work to get at least the local uni to set it up. the unis, huawei, and alibaba have extensive mirrors of very minor things.
<daspork>
but I saw no clear documentation on any of this, mirror changes etc, but this is most probably my ignorance
mexisme has joined #nixos
lovesegfault has quit [Ping timeout: 240 seconds]
LysergicDreams has quit [Ping timeout: 250 seconds]
mexisme has quit [Ping timeout: 250 seconds]
h0m1 has quit [Ping timeout: 246 seconds]
<nh2>
clever: do you use zfs on root with encryption? If yes, does systemd-boot support unlocking that?
<nh2>
(without /boot partition)
<clever>
nh2: i use grub on everything, and my encrypted systems are all plaintext /boot with luks+zfs
Okinan has quit [Quit: Konversation terminated!]
<clever>
nh2: efi requires a plaintext /boot for the efi binaries
<adisbladis>
daspork: Fastly doesn't have anything in the mainland. HK is the closest.
LysergicDreams has joined #nixos
h0m1 has joined #nixos
<adisbladis>
daspork: We don't really have mirrors, we have cache frontends
Okinan has joined #nixos
<daspork>
and there is the rub, if you know anything about internet here its split between three provider networks and for instance if im on china mobile and the HK link is on china telecom its not that great.
<adisbladis>
daspork: Yeah I know :/
<daspork>
i will add that its not unusable. ~90k, but when you are on gigabit fiber......
<adisbladis>
daspork: Yeah my experiences with the nixos cache in mainland china are not fantastic...
<daspork>
cool, ill do some reading on those links, but im here boots on the ground and have at least reasonable ties to a decent sized local uni with some existing mirrors, maybe running a cache isnt out of the realm of possibility
<adisbladis>
daspork: You could easily just spin up a caching proxy
<daspork>
let me read more about how it works etc
<adisbladis>
Though that wouldn't really help with the initial downloads
<daspork>
yeah the issue is, that its never gonna really help me but would help others
<clever>
daspork: ive got a caching mirror for cache.nixos.org on my lan, and it gets about 50% hit ratio (by byte) over the long term
<clever>
daspork: so roughly half of the things i get from the binary cache, are just direct gigabit from another hdd in the house
<{^_^}>
[nixpkgs] @edef1c opened pull request #73948 → ###### Motivation for this change → https://git.io/Jei8R
<aleph->
clever: Hmm, see anything wrong here? Specifically with the git entry. Confirmed nginx serice up, confirmed that git serice is up, however it's timing out trying to connect over https and complete. https://bpaste.net/show/QFIJ6
<clever>
aleph-: did you tell the nixos firewall to open both 80 and 443?
bridge[evilred] has quit [Remote host closed the connection]
<edef>
i swear to god, hub(1) is going to end me
bridge[evilred] has joined #nixos
morgaine[evilred has joined #nixos
<aleph->
... clever can we just assume yes and never speak of this again
<{^_^}>
[nixpkgs] @edef1c opened pull request #73949 → iperf3: correct license to bsd3 → https://git.io/Jei80
<daspork>
adisbladis clever thanks for helping
<aleph->
clever: Yeah I tried that, gonna go back to it. Assumed I was doing something wrong but alas it was my iptables conf...
<aleph->
Sighhhh
<adisbladis>
daspork: Out of curiousity, how many nix users are there in your uni?
<adisbladis>
I haven't met a whole lot of chinese nix users
<adisbladis>
There is a fair community in HK though
<daspork>
I'm not part of or at the uni just know a lot of people there. There is a lot of interest in it. I see it mentioned a lot in our QQ group
<adisbladis>
Cool :)
<{^_^}>
[nixpkgs] @edef1c opened pull request #73950 → Fix steam build under `allowAliases = false` → https://git.io/Jei8u
<daspork>
And to be fair on this whole issue, all of us have ways around GFW, but the reliable methods are not simple and hard to set up on a bare OS
<daspork>
For me the only 100% reliable, never gets throttled way is proxy over stunnel. This is not a simple thing to include in a chroot, nspawn, or virtualbox install
<adisbladis>
daspork: I'm aware.. It used to be so simple :/
<adisbladis>
I used to use obfsproxy, dunno if it's still a viable approach or not.
<{^_^}>
[nixpkgs] @edef1c opened pull request #73951 → Fix gnupg build under `allowAliases = false` → https://git.io/Jei8V
johnw has joined #nixos
<daspork>
obfsproxy works for a while for me, 7-10 days then the hosts become unreachable. They seem to completely ignore TLS traffic on 443, 8000, 8080 though
<adisbladis>
daspork: Hmm, interesting. I used to use that approach but it started being unreliable, hence switching to obfsproxy.
rhalff has quit [Remote host closed the connection]
<daspork>
thats the thing, people seem to think of the GFW as a monolithic thing, but its an extremely fractured thing with many many implementations and methods, for instance even if you completely obfuscate the traffic, a high ratio of unsniffable traffic to normal china traffic over time will get a server ip banned. This i have been able to replicate a lo
<daspork>
t, hence the use of proxy over TLS since its very easy and well supported in browsers to pass traffic to proxies based on regex
<adisbladis>
daspork: My favourite solution was always to get one of those special HK sims that bypass GFW :P
<adisbladis>
Even in the mainland
<edef>
samueldr: i'm confused by your checkmarks
<daspork>
when your traffic just disappears and goes to a single ip and its uninspectible, its only takes days to get a server ip ban
<edef>
samueldr: you're aware that [x] shows a checked box, right?
<edef>
samueldr: (and is what ticking the box in GitHub UI produces)
<samueldr>
I have seeing "x/y tasks completed" on my PRs
<samueldr>
I hate*
<samueldr>
checkboxes should be used for tasks that can be completed imo :)
<samueldr>
the current way they're used it couldn't really be used to keep track of the status of a PR with "todo items"
<samueldr>
though I don't see an alternative
<edef>
mmm
<edef>
i just delete items that aren't relevant
Lysergic1reams has joined #nixos
LysergicDreams has quit [Ping timeout: 276 seconds]
<nh2>
clever: I am trying out zfs's native encryption. https://nixos.wiki/wiki/NixOS_on_ZFS recommends vfat for /boot. Do you know if that's necessary?
<edef>
VFAT is a reasonable choice if you're using EFI
<edef>
UEFI*
<clever>
nh2: also, i dont think grub supports zfs crypto, so the kernel+initrd must be on a non-zfs /boot/
Lysergic1reams has quit [Ping timeout: 240 seconds]
<clever>
and efi requires /boot to be vfat
<adisbladis>
edef: Not only reasonable but required
<edef>
adisbladis: this is all of course mildly ridiculous, but technically usable
<nh2>
edef adisbladis clever: I know ESP has to be vfat, but there seems to be lots of possibility of what actually gets mountet at /boot (according to the systemd-boot man page, apparently sometimes the ESP itself get s mounted at /boot, but sometimes at a subdirectory). So I'm wondering if the "/boot needs to be vfat" requirement is only true if the ESP is at /boot
<clever>
nh2: yeah, you can shove the ESP at /boot/ESP, but grub still doesnt support the zfs crypto, so /boot must be non-zfs
orivej has quit [Ping timeout: 276 seconds]
<clever>
nh2: and that just adds one more partition&fs into the mix
<edef>
do you have anything *but* the ESP stuff in there
felixfoertsch23 has quit [Ping timeout: 265 seconds]
<edef>
i'm using systemd-boot and there's just like, kernels and a systemd-boot binary and .conf's for the entries
<adisbladis>
edef: That's my kind of crazy right there :)
<edef>
adisbladis: ^_^
<edef>
if i had a non-laptop to mess around with i'd totally patch ZFS support into the firmware
<clever>
edef: i'm not sure what systemd-boot will do if /boot isnt the ESP
<edef>
shouldn't be that much trouble to repack those, i used to do it back in the day for patching custom SLICs into the firmware
<clever>
edef: my understanding, is that systemd-boot is more limited, and must use the FS drivers the firmware provides
<edef>
clever: correct, yes
<clever>
while grub is basically an entire os, and can supply its own drivers
<edef>
yep
<clever>
related, grub does NOT have nvme drivers!!
<edef>
systemd-boot is a very boring UEFI chainloader
<edef>
oof
<clever>
it relies on the efi firmware to provide nvme support
LysergicDreams has joined #nixos
<clever>
for my desktop, my entire /boot must be non-nvme, i cant chainload from a stage1.5->nvme/boot
<clever>
but for my laptop, it boots directly from nvme
rhalff has joined #nixos
mla has quit [Quit: WeeChat 2.2]
<clever>
edef: i also dont know how, but the windows installer can detect if the bios has nvme support, and will refuse to even install to an nvme disk
ddellaco1 has quit [Ping timeout: 265 seconds]
gagbo has joined #nixos
<edef>
clever: sounds reasonable tbh
<clever>
i'm interested in how, so nixos could tell you its not going to work
<clever>
and give bypass options, like using a sata disk to bootstrap
<edef>
hmm, EFI runtime services might know
<edef>
there's probably some protocols for NVMe stuff
<clever>
yep, just a matter of how to interface with them from userland, and what to ask
<edef>
been a while since i did UEFI programming
<clever>
i tried building a hello-world with the nixpkgs cross-compilers, but it didnt boot under qemu
<Ashy>
does anyone here have an example of adding udev rules to configuration.nix for a solokey?
<Ashy>
or just custom udev rules in general?
<nh2>
clever: hmm I found that systemd-boot-builder.py complains when the ESP is mounted under /boot/efi
<edef>
welp, found a bug in my patch submission code i forgot about
<clever>
Ashy: services.udev.extraRules
<clever>
nh2: you must set boot.loader.efi.efiSysMountPoint to where you mounted the ESP
<nh2>
clever: is there a benefit to not having ESP directly on /boot (I imagine one benefit is that I can dictate amount of space available to kernels this way if i don't want to resize the ESP that's already on my machine?)
<clever>
nh2: i think the only real value, is if / is ext4, then /boot can just be a directory on / itself, and you have no size limits
<clever>
nh2: only the main efi binary will be on the esp, and it basically never grows
<Ashy>
clever: cheers
<nh2>
clever: right, I have that setup on another machine and find that convenient, but I guess that doesn't work if / is zfs
<clever>
nh2: yeah, so you need to make another partition for /boot/ and then you just moved the problem elsewhere
<clever>
nh2: for non-encrypted zfs, i have had limited success with grub reading zfs
<clever>
nh2: somehow, it can boot, but all directory listing operations fail, so its nearly imposible to debug how it works
<clever>
and when things do go wrong, your screwed :P
<nh2>
clever: yeah I've seen the bug that dir listings don't work
<nh2>
clever: I'm going with the unencrypted /boot == ESP option for now and see how that goes. I like that nixos prompted me for the passphrase; it did interleave that prompt with some other boot garbage though
<nh2>
the Ubuntu + LUKS graphical boot prompt on my other machine looks a bit slicker in that comparison
<clever>
nh2: i mentioned how to fix that in an issue...
o1lo01ol1o has quit [Remote host closed the connection]
<nh2>
which was the helper function that allows me to prepare a directory tree in the nix store? I always struggle to find it
lovesegfault has quit [Ping timeout: 252 seconds]
lovesegfault has joined #nixos
<infinisil>
nh2: symlinkJoin or buildEnv?
<infinisil>
Or there's linkFarm too
<lovesegfault>
infinisil: You nerd sniped me
<infinisil>
Hehe how?
<nh2>
infinisil: I think it wasn't one of them but will double check
<lovesegfault>
I was going to go to Hawaii on Sunday and not bring my laptop, just my pipe and a book
<lovesegfault>
Now I need to build my beets replacement
<lovesegfault>
So I guess that's what I'll do in hawaii :P
<infinisil>
nh2: What do you mean by "prepare a directory"?
<infinisil>
lovesegfault: Haha, I'm not taking any responsibility for a wasted Hawaii trip xD
<lovesegfault>
infinisil: I've already directed my wife to you for complaints
<nh2>
infinisil: make a nested directory structure where leaves can be writeFile and so on. If it was one of the ones you said, it was probably linkFarm
<lovesegfault>
it's too late
<infinisil>
!
<infinisil>
nh2: Yeah that sounds about like that. I also have a function for transforming an attrset into a dircetory structure somewhere
<infinisil>
Like { foo.bar = "test"; } gets made into $out/foo/bar containing test
<nh2>
should `displayManager.sessionCommands" manage to run tray GUI apps like `pasystray`? It suggests these run before the window manager so I'm not sure it's legal
orivej has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
codygman____ has joined #nixos
bvdw has joined #nixos
<codygman____>
nix-build looks for default.nix right? Is there a minimal default.nix I can make that simply executes a shell script?
<zeta_0>
ok, i got nixos to boot up in my raspberry pi 4, it brought me to the terminal, after this are the installation instructions the same as installing nixos on a laptop, or am i going to need to take different steps from here ?
<clever>
zeta_0: should be pretty similar from then on
mexisme has joined #nixos
<zeta_0>
clever: so i need to use the nixos manual as well as the manually for pi ?
<clever>
zeta_0: you should be able to freely use configuration.nix and nix-env as normal
<zeta_0>
clever: there is no configuration.nix file, do i just create one ?
<zeta_0>
clever: what instructions do i need to follow from here ?
<clever>
zeta_0: ah, yeah, youll need to create one, and it should include the proper bootloader config
<zeta_0>
clever: so let me get this straight, i just need to create a configuration.nix file, fill it out, then do a rebuild switch, or do i need to do other steps as well ?
mexisme has quit [Ping timeout: 276 seconds]
<clever>
zeta_0: should be that simple
<zeta_0>
clever: ok, so i'll do a `touch configuration.nix` in `/etc/nixos/`
<clever>
and it must be a valid nixos config
<clever>
that accurately describes the pi (what mounts where, and how it boots)
slack1256 has quit [Remote host closed the connection]
palo1 has joined #nixos
<zeta_0>
clever: ok, i am using the configuration options from the raspberry pi documentation
palo has quit [Ping timeout: 252 seconds]
palo1 is now known as palo
<zeta_0>
clever: i haven't setup any passwords, so how do i sign into root ?
isHavvy has joined #nixos
sb0 has joined #nixos
<clever>
zeta_0: what happens if you `sudo -i` ?
<zeta_0>
clever: it worked, i got signed into root, thanks, i haven't done this in a long time, so i don't remember the commands to well
orivej has quit [Ping timeout: 240 seconds]
<clever>
zeta_0: normally, sudo will ask for a password, so you may want to set one now, it sounds like that image was changed from the default
isHavvyGhosting has quit [Ping timeout: 245 seconds]
<zeta_0>
i need to set a password for both: `user` and `root`, right ?
<clever>
yeah
zqxw has joined #nixos
zupo has joined #nixos
captn3m0 has quit [Ping timeout: 265 seconds]
<zeta_0>
clever: to disconnect the fan attached to the raspberry do i just need to unplug one of the 2 cords(while its on), i don't want to break the fan ?
<clever>
zeta_0: fan?
<zeta_0>
i placed the pi in a case that comes with a fan
<zeta_0>
clever: and it connects to 2 pins
o1lo01ol1o has joined #nixos
<clever>
zeta_0: which 2 pins?
<zeta_0>
clever: it's just to loud, 2nd and 14th pin(like the instructions stated)
<clever>
can you link those instructions?
<zeta_0>
clever: the instructions came with the pi, so let me see if i can find a link
<clever>
pistache: the pinout i have printed, says the 5v is on the complete oposite end from that photo
<pistache>
zeta_0: quiet mode is 3.3V, and full mode is 5V
<pistache>
but you may be able to go even lower, depending on the fan
<zeta_0>
they're both loud so ya, i'll eventually to figure out how to lower the rpm
<pistache>
they just reused the two available potentials on the pi, but I suppose the fan has a wider range
<zeta_0>
clever: last time i couldn't install nixos because i didn't set any passwords, i just want to make sure that i don't run into that same issue again
<clever>
zeta_0: as long as you set a pw on root, you can get root again to fix things
xkapastel has quit [Quit: Connection closed for inactivity]
<zeta_0>
clever: cool, now i can finally go to configuration.nix
zupo has quit [Client Quit]
<zeta_0>
do programmers stay up late at night, i didn't think anyone would be on at this time ?
<pistache>
what function should I use to map each pair of an attrset to multiple pairs of another attrset ?
<lovesegfault>
I'm trying to fix the derivation of cargo-edit
xkapastel has joined #nixos
<lovesegfault>
tests are failing for no good reason; how can I disable them?
<evils>
lovesegfault: `dontCheck = true;`?
<lovesegfault>
evils: inside buildRustPackage?
<evils>
lovesegfault: ah, no idea
<clever>
lovesegfault: try it and see what happens!
<lovesegfault>
trying
<zeta_0>
clever: configuration.nix is empty, i hope i am doing this right
<lovesegfault>
:D
<codygman____>
Anywho, thanks infinisil!
<clever>
zeta_0: try starting with no configuration.nix file, and run nixos-generate-config
<zeta_0>
clever: ok, i'll delete it then run that command, thanks for the heads up
<lovesegfault>
clever: That did not work
<clever>
lovesegfault: how did it fail?
<lovesegfault>
is it `doCheck = false;`?
<lovesegfault>
it ran the check
<clever>
lovesegfault: which derivation did nix say failed?
<lovesegfault>
error: build of '/nix/store/x3yxk05nvn88m50gcyl2b5qcizcsr8lj-cargo-edit-0.4.1.drv' failed
<lovesegfault>
the one I'm editing
<clever>
lovesegfault: and if you run `nix show-derivation` on that drv, does it have a `doCheck` in it?
<clever>
lovesegfault: or a dontCheck
<lovesegfault>
clever: it had a `dontCheck = true` now I wrote `doCheck = false` to see what happens
zupo has joined #nixos
halfbit has quit [Ping timeout: 240 seconds]
<evils>
xD no idea where i got 'dontCheck' from
<zeta_0>
clever: will the generated default configuration.nix work with a rebuild switch right away, or will i need to change some of those options ?
<lovesegfault>
clever, evils it works now
<clever>
zeta_0: not sure, i havent done it in a while
<clever>
zeta_0: maybe try `nixos-rebuild test` first
<evils>
lovesegfault: nice when people use the same term for the same thing, and someone remembers it correctly
ArdaXi has quit [Ping timeout: 246 seconds]
ArdaXi has joined #nixos
<zeta_0>
clever: is there any way to increase the font size from the terminal, the words are hard to see ?
<clever>
zeta_0: i generally just turn ssh on, and use another machine
bahamas has joined #nixos
<zeta_0>
clever: are there some instructions on how to that in nixos ?
dema has joined #nixos
<clever>
zeta_0: services.sshd.enable = true;
dansho has quit [Remote host closed the connection]
<zeta_0>
clever: in laptop or pi ?
<clever>
zeta_0: the pi
dansho has joined #nixos
<zeta_0>
clever: i don't have a cord, and wireless is not setup on pi, may be too painful
<clever>
zeta_0: yeah, it gets harder if you dont have network setup yet
codygman____ has quit [Ping timeout: 260 seconds]
marusich has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @orivej-nixos pushed 3 commits to master: https://git.io/JeiR5
ixxie has joined #nixos
mexisme has joined #nixos
mojjo has joined #nixos
mexisme has quit [Ping timeout: 250 seconds]
<mojjo>
can I run `nix-build` with current packages installed on nixos provided as default arg? including overlays of course...
<clever>
mojjo: you would need to put the overlays into somewhere under ~/.config/nix i think
gwen has quit [Quit: Leaving]
gwen has joined #nixos
ixxie has quit [Ping timeout: 252 seconds]
smatting_ has joined #nixos
genesis has quit [Remote host closed the connection]
<gwen>
My tor browser is kind-of broken since 19.09 -- does not automatically connect to tor network and crashes when downloading files. Any ideas?
<gwen>
I tried removing ~/.local/share/tor-browser and using the tor-browser from 19.03 (on the 19.09 configuration), but it didn't work.
raboof has joined #nixos
<evils>
gwen: can you try it from nixos-unstable?
hamishmack has joined #nixos
cbarrett has joined #nixos
scott has joined #nixos
m0rphism has joined #nixos
chessai has joined #nixos
zupo has joined #nixos
<dema>
`substituteInPlace servers/native-espeak/Makefile --replace 'LIBPARENTDIR = ${PREFIX}/' 'LIBPARENTDIR = /'` How do I escape `${` so nix wont think that it's a variable PREFIX?
mjsir911 has joined #nixos
<aria>
i have a pc on stable 19.09, but need to install a package (clang-tools) from unstable. how do i do it?
<clever>
> '' ''${foo} ''
<{^_^}>
"${foo} "
<clever>
dema: ^
<gwen>
aria: You add the unstable channel, and install the package via that channel.
<leotaku>
How can I get the nth item of a list in Nix?
<clever>
> lib.elemAt 2 [ "a" "b" "c" "d" ]
<{^_^}>
value is a list while an integer was expected, at (string):271:1
<clever>
> lib.elemAt [ "a" "b" "c" "d" ] 2
<{^_^}>
"c"
<clever>
leotaku: ^
<leotaku>
clever: thanks
jeregrine has joined #nixos
Tritlo has joined #nixos
<dema>
clever++
<{^_^}>
clever's karma got increased to 251
chloekek has joined #nixos
<dema>
One more question :) Is it possible to run installPhase from inside nix-shell without getting Read-only filesystem errors? Or I just have to set $out to something like /tmp/myout?
<clever>
dema: yeah, just change $out first
<dema>
ok!
<dema>
clever++ :)
<{^_^}>
clever's karma got increased to 252
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ng0 has joined #nixos
<{^_^}>
[nixpkgs] @thoughtpolice pushed to master « vector: make some more options override-able »: https://git.io/JeiE5
ckauhaus has joined #nixos
mananamenos has joined #nixos
ckauhaus has quit [Quit: WeeChat 2.6]
ckauhaus has joined #nixos
dansho has quit [Quit: Leaving]
MichaelRaskin has joined #nixos
iqubic has quit [Remote host closed the connection]
iqubic has joined #nixos
mananamenos_ has joined #nixos
mananamenos has quit [Ping timeout: 240 seconds]
chloekek has quit [Ping timeout: 240 seconds]
captn3m0 has joined #nixos
<{^_^}>
[nixpkgs] @Dema opened pull request #73957 → emacspeak: init at 50.0 → https://git.io/Jeiuq
<gwen>
bahamas: I guess usually, you would do something like (pkgs.callPackage (pkgs.fetchFromGithub {...}) {}), but maybe this package is already in the NUR?
<mananamenos_>
Hi, i've set up HIE, lsp-mode, lsp-haskell with emacs. The doc snippets, error messages, hlint warnings all work, except the stuff like lsp-find-type-definition, lsp-goto-type-definition. I get "Not found for". Any knows what im missing?
<gwen>
bahamas: Ah sorry, no it's not in the NUR.
smatting_ has quit [Ping timeout: 240 seconds]
<bahamas>
gwen: yes, I just tried and it complained about not finding it
<{^_^}>
[nixpkgs] @markuskowa pushed 2 commits to release-19.03: https://git.io/Jeiui
<dolanbatar>
hi, have you tried to run VS Code on nixos?
<dolanbatar>
i have to do it unfortunately
<dolanbatar>
ive tried to patchelf it but no luck
<dolanbatar>
it segfaults
<leotaku>
Is there any standardized way to get the current nixexprs.tar.xz from a nixos-channels url?
<gwen>
evils: I still run into the same problems on tor browser 8.5.6 (based on Mozilla Firefox 60.9.0esr), which is the one I got from the unstable branch
<gwen>
my next step would be to try the binary version
<leotaku>
tilpner: Oh right, I tried that but accidentaly put "tar.gz"...
<gwen>
evils: The binary version works better, but has weird graphical display (there seems to be a thick white margin around the displayed content). Whatever, I have to leave soon...
<tilpner>
leotaku: In many places of Nix tooling, you can also do: channel:nixos-unstable
ozychhi has joined #nixos
<bdju>
does nixos have a packaging wishlist? would be cool to have OpenITG and Etterna packaged. free software rhythm games
<gwen>
bdju: I think you can open an issue on the nixpkgs repository, at least I saw many "packaging request" issues there.
<bdju>
cool, thank you
ng0 has quit [Ping timeout: 260 seconds]
sb0 has quit [Quit: Leaving]
clefru has left #nixos ["Kicked by @appservice-irc:matrix.org : issued !quit command"]
gwen has quit [Quit: Leaving]
ng0 has joined #nixos
<bdju>
anyone have tips for profiling to try to find the cause of performance issues? I'm getting really bad lag pretty often on a reasonably strong machine. the clock will stop updating, the mouse will freeze up, that sort of stuff.
<eon`_>
hi, is there a nixos module for managing a pki (ca, self-signed certs, like easyrsa) ?
smatting_ has joined #nixos
Okinan has joined #nixos
<tilpner>
> easyrsa.meta.description
<{^_^}>
"Simple shell based CA utility"
<tilpner>
The package is there, what would the module do?
<tilpner>
Renewals?
fusion809 has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @Ma27 pushed to master « nixos/networkd: add missing `dhcpv6` and `static` options to `IPv6PrefixDelegation` »: https://git.io/JeizY
m0rphism has quit [Quit: WeeChat 2.4]
<{^_^}>
[nixpkgs] @Ma27 pushed to release-19.09 « nixos/networkd: add missing `dhcpv6` and `static` options to `IPv6PrefixDelegation` »: https://git.io/Jeiz3
smatting_ has quit [Ping timeout: 240 seconds]
clefru has joined #nixos
m0rphism1 has quit [Ping timeout: 250 seconds]
bahamas has quit [Quit: leaving]
mexisme has joined #nixos
<{^_^}>
[nixpkgs] @spacekookie opened pull request #73960 → wally-cli: init at 1.1.1 → https://git.io/JeizW
bvdw has quit [Read error: Connection reset by peer]
Raffa has quit [Remote host closed the connection]
<mananamenos_>
i have cachix on my nixos, added `cachix use hercules-ci` succesfully, also ` (import (builtins.fetchTarball "https://github.com/hercules-ci/ghcide-nix/tarball/master") {}).ghcide-ghc865` but then nixos-rebuild switch still compiles this project instead of getting the binary from cachix. What am doing wrong?
<{^_^}>
[nixpkgs] @kwohlfahrt opened pull request #73961 → nixos/kerberos: port tests to python → https://git.io/Jeiza
roberth has joined #nixos
<roberth>
mananamenos_: you're probably running nixos-rebuild as root whereas cachix use applies to the user settings
* clever
scratches head
<clever>
roberth: you answered a question from before you joined the channel, lol
<mananamenos_>
roberth, `sudo -i; cachix use hercules-ci` says this operation should not be done as root
<clever>
mananamenos_: try `nixos-rebuild build`, without root
mexisme has quit [Ping timeout: 245 seconds]
<clever>
mananamenos_: long-term, you want to get the url and pubkey for the cachix server, and add them to your configuration.nix file
<mananamenos_>
fails with permission denied
<roberth>
mananamenos_: you can use cachix --nixos to write nixos configuration files
<clever>
mananamenos_: permission denied to what?
<mananamenos_>
when doing `nixos-rebuild switch' without sudo. It fails with error: creating symlink from '/nix/var/nix/profiles/system-62-link.tmp-19104-67170885
<clever>
mananamenos_: i said build, not switch
<mananamenos_>
oh sorry
<clever>
mananamenos_: build will obey the non-root config that cachix had generated, and use the cache
<clever>
mananamenos_: then it will already be in /nix/store, so switch as root wont have to build anything
<clever>
mananamenos_: but `cachix --nixos` would be better, to make it just work as root
<mananamenos_>
Invalid option `--nixos'
<clever>
mananamenos_: it may be cachix use --nixos?
<{^_^}>
[nixpkgs] @dasJ opened pull request #73963 → rainloop-standard: Fix pname and license → https://git.io/Jeiz7
<evils>
since bdju asked for it, i'm giving packaging etterna a try, getting a build error, any suggestions? https://paste.ee/p/7Ugrz
<clever>
evils: thats the format security warnings being turned into errors, youll want to check nixpkgs for examples of how to disable format security
<clever>
evils: its mainly a safety, to make the code harder to be exploited, so they are doing something "wrong" but it will work
<evils>
oh, a grep tells me the manual has something about it xD
misterwhatever has quit [Remote host closed the connection]
kleisli has quit [Quit: Leaving]
jco has joined #nixos
hmpffff has joined #nixos
m0rphism has joined #nixos
m0rphism1 has quit [Ping timeout: 265 seconds]
mexisme has quit [Ping timeout: 276 seconds]
Thra11 has quit [Ping timeout: 276 seconds]
civodul has joined #nixos
mexisme has joined #nixos
dema has quit [Ping timeout: 276 seconds]
mexisme has quit [Ping timeout: 245 seconds]
Chiliparrot has joined #nixos
mexisme has joined #nixos
mexisme has quit [Ping timeout: 276 seconds]
mexisme has joined #nixos
o1lo01ol1o has joined #nixos
mexisme has quit [Ping timeout: 246 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
ng0 has quit [Ping timeout: 260 seconds]
mexisme has joined #nixos
<das_j>
clever: Actually, the reboot made everything worse. As I rebooted, I booted into a patched kernel which has AppArmor networking support enabled which I forgot to configure. Hence, almost everything on that server broke and I had to write policies as fast as possible
<clever>
das_j: heh, you can always pick an older generation at grub to undo things?
mexisme has quit [Ping timeout: 276 seconds]
<das_j>
clever: Nah, then I would have to write the policies at a later time. It just forced me to do it now in the middle of the day (it's 3 PM here)
<das_j>
It was just some php stuff and my gitea
mexisme has joined #nixos
<srk>
adisbladis: yea, this. I suspect 'unset propagatedDepFilesVars', I will try again later as the stdenv build takes quite long on my machine
<clever>
evils: dont you just love windows style paths? :D
<evils>
i had the good sense to abandon windows before i had a chance to thuroughly hate it
<clever>
evils: i notice that only windows and apple will install the Etterna binary, weird
<clever>
you may want to just toss in a postInstall to copy it yourself, but how will it find the other bits...
<evils>
the readme says the only way to use it on linux is to build it yourself, and doesn't mention installation instructions...
<avn>
Folks, anyone know how to connect Bluetooth headset and wacom tablet to nixos? (my kid have new toys)
mexisme has quit [Ping timeout: 246 seconds]
<clever>
i suspect lines 42-53 are only meant to be used on windows and apple, but where shared between the 2
<clever>
and linux install support was never added
dema has joined #nixos
<clever>
so if you try on linux, you wind up with half an install, the stuff that windows&apple happened to share
<clever>
evils: youll need to reverse engineer how the game finds its own files, and finish the install by copying things to the right places
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @dasJ to release-19.09 « rainloop-standard: Fix pname and license »: https://git.io/Jeiax
<evils>
clever: this stuff's fairly actively developed, i'm just gonna open an issue and wait xD
<avn>
clever: btw, I cases like this -- I usually suggest just wipe any cpack, and any custom platform detection, just let cmake core macros do the job
<clever>
evils: that also works
<clever>
avn: out of the box, cmake wont install anything, and needs some install() statements added
<avn>
clever: may be it need elseif(LINUX) then (but need some quirks, to force LINUX paths here on darwin)
<clever>
avn: yeah, and there is the unknowns of how the binary will try to find the other files, and the icky problem of it creating a $out/Etterna/ dir, which will show up in places like ~/.nix-profile and /run/current-system/sw/
<avn>
clever: $out/share/Etterna should be ok then.
<das_j>
ah, is there a simple way to flatten nested attrsets with a separator? something like { a = { b = 3 } } which would turn into { "a/b" = 3 }
<clever>
das_j: lib.mapAttrsRecursive might help
<das_j>
nice, thanks!
<avn>
clever: btw sometimes it general problem, I like to have a way strip unneeded paths from .nix-profile or /run/current-system/sw/
<clever>
avn: one option is to just make it split output, outputs = [ "out" "data" ]; then tell cmake to shove all of the data into $data, and the binary in $out/bin/
<clever>
nix-env and systemPackages will usually ignore .data
mexisme has quit [Ping timeout: 252 seconds]
mexisme has joined #nixos
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @orivej to master « python: keyring: support Python 2 »: https://git.io/JeiVG
<avn>
clever: that a solution also
<avn>
clever: but it a thing which nice to have to wrap derivation to keep out only bin (or even just some binaries from bin)
<clever>
yeah, ive done that to extract `strings` from binutils
<avn>
I like to have "objdump" and "strings", but I won't full binutils polluting my $PATH
<clever>
because i really dont want compiler tools in my global env, but i use strings a lot
mexisme has quit [Ping timeout: 276 seconds]
<avn>
I probably push my pulseaudio changes for 1st review today, I tired from massive rebuilds :/
<avn>
(or tomorrow, when build complete)
<clever>
avn: that reminds me, my desktop sound card is a bit weird
<clever>
it has 3 ADC channels, and 3 physical inputs (front&rear line-in, and a mic jack)
<clever>
and 3 muxes, to select any jack for any ADC
<avn>
clever: sound always have some weirdness ;) Someone who use pulseaudio as non-sytemwide would be welcome to build/test ;)
mexisme has joined #nixos
<clever>
out of the box, pulseaudio only supports a single capture channel
reactormonk has joined #nixos
<clever>
but you can define a config file to describe all of the above to PA, so it can enable capturing on each seperately
<clever>
and you can either expose the mux's to the user (via pavucontrol) or pre-configure them with the config file
<avn>
hehe. I still hope that nixos wouldn't go mainstream "no go for systemwide pulse" ;)
<clever>
however, all 3 muxes have the identical name (due to alsa drivers), and they only differ by index#
<clever>
and the pulse config file format, didnt support configuring them by index
<clever>
so i patched pulse to support that, lol
<avn>
:thumbsup: ;)
<clever>
once i got it all working, i never used it, never upstreamed the patches, and just commented out the package override! lol
<clever>
dont code while bored :P
<avn>
clever: I splitted from upstream here year ago, and rebuild browsers is always boring ;)
<avn>
clever: one doubtful modification also -- .server output for pulseaudio itself, and only cli tools to $out
genesis has joined #nixos
<clever>
neat
<avn>
(err $bin for cli, $out for libs)
<clever>
you could also use $lib for libs, and $out for any text content
ddellacosta has joined #nixos
<avn>
clever: I probably do some changes after review. Sadly rebuilds are massive, and I need reboot to ensure that daemon starts ;)
zupo has joined #nixos
<hyper_ch>
eyJhb: for me the new patch works. It also auto-restores both screens... but once in a while it gets stucked at bootup of kde
<clever>
i sometimes play with loopback modules in my pulse, and i'm pretty sure systemwide blocks all module loading
Makaveli7 has joined #nixos
chloekek has joined #nixos
mexisme has quit [Ping timeout: 246 seconds]
mexisme has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
FRidh has quit [Quit: Konversation terminated!]
dema has quit [Ping timeout: 252 seconds]
mexisme has quit [Ping timeout: 245 seconds]
mexisme has joined #nixos
<leotaku>
What's the current status of the nix flakes effort? It seems to me like it's something that's definitely going to land in Nix in the nearer future. Is that correct?
<{^_^}>
[nixpkgs] @mat8913 opened pull request #73968 → nixos/upower: Allow customization of UPower.conf → https://git.io/Jeiwl
<tilpner>
_pash: Note that you can enjoy fresh packages from unstable even while using a stable channel for your important system packages
<sondr3>
I'm curious how many people on home machines use unstable over stable for NixOS
<_pash>
but how do people work with the repo on localhost? what's the best way to set it up so that your packages build from that repo and you can manually decide to update it
Makaveli7 has quit [Quit: WeeChat 2.6]
<tilpner>
_pash: You can use multiple worktrees to keep your config buildable while working on other branches
<tilpner>
_pash: And then you just use (import ~/dev/nixpkgs/feature-x {}).foo instead of foo
<tilpner>
That gets more complicated in restricted mode, but we'll just ignore that for now
mexisme has quit [Ping timeout: 246 seconds]
<_pash>
i see, thank you, so i can clone the repo anywhere, it doesnt have to be .config/nixpkgs
acarrico has joined #nixos
<tilpner>
Yes
<_pash>
what's the benefit of having it inside .config/nixpkgs?
<tilpner>
You can even clone the repo with Nix during evaluation
<tilpner>
No objective advantage
LysergicDreams has quit [Ping timeout: 265 seconds]
<tilpner>
I guess you could make an argument that it's nice to keep everything together
tilpner has quit [Remote host closed the connection]
<_pash>
i see, and what the config uses when i do import <nixpkgs>... is the directory that's defined in the NIX_PATH?
tilpner has joined #nixos
<mojjo>
is there a way to allow `nix-build` to connect to the network?
mexisme has joined #nixos
<avn>
_pash: set NIX_PATH=nixpkgs=${path_to_your_local_checkout}
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever>
mojjo: only if you declare upfront what the hash of $out will be
<_pash>
tilpner: and is there a downside to using the master branch for the latest packages over nixos-unstable?
<_pash>
avn: thank you
<tilpner>
_pash: Yes, things will break
LysergicDreams has joined #nixos
<mojjo>
mh, mhh.. I like the concept of 'import from derivation'... just realizing that it only works if there's no network traffic.
<tilpner>
_pash: And there will be less cached outputs
<avn>
_pash: downside -- if you start rebuild right after staging merge, rebuild will take few days (browsers, libreoffice, etc)
<mojjo>
trying to tame those xyzToNix maintainance
<_pash>
gotcha - thank you
<mojjo>
isn't the local file system equally unpredictable?
<clever>
mojjo: when you do src = ./foo, nix will copy ./foo to /nix/store/hash-foo, and hash it as it copies
<LnL>
that's why builds don't have access to that either
<clever>
mojjo: then use that hash to compute the outputs of things that depended on foo
<clever>
mojjo: fixed-output derivations just define the hash upfront, and then download later, and nix enforces it matching that hash
ng0 has joined #nixos
<avn>
_pash: but if urgent update from libc/ssl/etc security fix come -- it usually hit master fast, and you rebuild almost everything
zupo has joined #nixos
<avn>
I personally rebuild each (second) weekend.
<mojjo>
@clever ok, I makes sense.
mexisme has quit [Ping timeout: 276 seconds]
philr has quit [Ping timeout: 240 seconds]
<srk>
sondr3, _pash: I'm running master - pulling from time to time when there's window of no urgent work, hitting issues quite rarely, not recommended (by this channel) tho :)
<mojjo>
a different but related question: If everything from `./.` is copied to the store, that's not so nice if I only need 2 files from the folder. I guess `./fileA` and then `./fileB`does just copy those two files. Is there an utility function that gives me the initial filenames back from sth like `nix/strore/9869...4223-fileA`?
<clever>
mojjo: you can also use builtins.filterSource to copy ./. and filter what it copies
<randomuser232>
Hello everyone. I have a quick noob question since I'm switching to NixOS. How can I enable a systemd service from configuration.nix file? I am trying to enable the "syncthing@username" service.
Thra11 has joined #nixos
mexisme has joined #nixos
<mojjo>
@clever true.. the filterSource.. baseName thing is a bit long
LysergicDreams has quit [Ping timeout: 276 seconds]
mexisme has quit [Ping timeout: 252 seconds]
drakonis has quit [Ping timeout: 240 seconds]
testy has joined #nixos
testy has quit [Max SendQ exceeded]
LysergicDreams has joined #nixos
<randomuser232>
evils: This is what I am using right now but I cannot gain write access to my home directory that way. I need to enable the syncthing@username service specifically. See the last message of this issue for what I am trying to achieve: https://github.com/NixOS/nixpkgs/issues/53932
<randomuser232>
evils: No idea to be honest. This is how it's done in Ubuntu and Arch. Ideally I would just enable syncthing.service but I can't get it to write files in my home directory this way.
<mojjo>
@clever .. and then I'd use it like `PATH=$PATH:${lib.makeBinPath [hello]}` in the beginning?
mexisme has quit [Ping timeout: 252 seconds]
shabius has quit [Quit: Leaving]
theduke has joined #nixos
<clever>
mojjo: yep, i would put $PATH at the end though
<clever>
mojjo: so your things have priority over what the user had
<theduke>
Hey there. I've booted up nix os in kvm and want to prepare switching my system from Arch. Does anyone have a good, easily digestible resource (blog post etc) that explains how to declaratively set up a complete desktop system?
LouisDK has joined #nixos
<theduke>
including creating package wrappers that include configuration
shabius has joined #nixos
<Thra11>
worldofpeace: What's the story with the jack2 arm build fix revert?
wildtrees has joined #nixos
fendor has joined #nixos
<{^_^}>
[nixpkgs] @nh2 opened pull request #73973 → qtpass: 1.3.2 cherry-pick to 19.09 → https://git.io/Jeio3
palo1 has joined #nixos
palo has quit [Ping timeout: 246 seconds]
palo1 is now known as palo
LysergicDreams has quit [Ping timeout: 240 seconds]
LysergicDreams has quit [Ping timeout: 240 seconds]
silver has quit [Quit: rakede]
LysergicDreams has joined #nixos
<OmnipotentEntity>
clever, I'm sorry for bothering you directly, I have a question about something specific. Currently the python Theano package is broken because it attempts to compile something when you import it, and it does so in /run/user/$uid. I can change that location to the current directory, which will fix the purity part, but it might have other implications (such as perhaps being vulnerable to a hypothetical attack, which is why
<OmnipotentEntity>
this stuff was moved from tmp in the first place.) Is there a standard nixos place to put temporary files in a pure way?
drakonis has joined #nixos
<{^_^}>
[mobile-nixos] @samueldr merged pull request #47 → Add support for xiaomi-tissot → https://git.io/JeiKF
<{^_^}>
[mobile-nixos] @samueldr pushed 7 commits to master: https://git.io/JeiKb
<clever>
OmnipotentEntity: is it possible to pre-compile that code when nix is building the python library?
<OmnipotentEntity>
good question, I'll try to find out.
Cale has joined #nixos
drakonis_ has quit [Ping timeout: 246 seconds]
<OmnipotentEntity>
wtf. >:( now it's not erroring anymore once I changed the path to the temp directory, even after a refresh cycle.
<OmnipotentEntity>
exiting and reentering a pure nix-shell that is
<clever>
OmnipotentEntity: strace it and see what files its touching?
LysergicDreams has quit [Ping timeout: 245 seconds]
<adisbladis>
srk: ^
<adisbladis>
Ericson2314 fixed it \o/
<adisbladis>
Ericson2314++
<{^_^}>
Ericson2314's karma got increased to 1
<srk>
cool \o/
jgeerds has joined #nixos
LysergicDreams has joined #nixos
_pash has quit [Quit: leaving]
<OmnipotentEntity>
ok it looks like it modified stuff in the nix store
<OmnipotentEntity>
so it should be AOK to just attempt an import within the build to finish it up?
<clever>
OmnipotentEntity: run `nix-store --verify --check-contents` ?
waleee-cl has joined #nixos
mjsir911 has quit [Quit: Goodbye, World!]
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #73980 → rocksdb: Build with MinGW for 19.09 → https://git.io/Jei6L
<Ericson2314>
adisbladis: :) and thanks for getting me the emacs one too
<clever>
Ericson2314: ah, i was just wondering why plex is broken on master, i thought somebody had fixed the qt stuff, now i see lua is broken, and you just fixed it
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<clever>
Ericson2314: i need to test the vc4 stuff today
<pistache>
is config.system.stateVersion a good way to determine the current NixOS release ?
<{^_^}>
Setting stateVersion to the latest release doesn't upgrade anything and can only break your setup at best. To actually upgrade NixOS see https://nixos.org/nixos/manual/#sec-upgrading. If you want to update the stateVersion option regardless, Ctrl-F for "stateVersion" in https://nixos.org/nixos/manual/release-notes.html to see things that need to be manually migrated with the new value.
<clever>
nix-repl> config.system.nixos.release
<clever>
"20.03"
<pistache>
ah yes, nixos.release, nice
<clever>
pistache: this one always has the release for the nixpkgs building nixos
<clever>
:q
<pistache>
I'll submit a PR to nixos-generators, then
<clever>
pistache: stateVersion should be set to release, when nixos-generate-config first makes the config, and then left at that value
<pistache>
yes, this is what I had understood, and that's why it was weird to see it used by nixos-generators
<pie_>
is there a tutorial for deploying nixos on hetzner
<pistache>
nixos-in-place is known to work on Ubuntu, Debian, CentOS, Fedora, Arch, and Slackware, including x86 and x86_64 variants, with and without LVM, including systems on Digital Ocean droplets and Hetzner Cloud!
<tilpner>
pie_: I recommend the kexec method for Hetzner Cloud
<clever>
kexec lets you ditch whatever partition layout you started with
<pistache>
clever: as well as on bare-metal, I suppose
<pistache>
?
<clever>
pistache: yeah, the idea is that it should work on pretty much anything, cloud providers, baremetal providers, and even baremetal you have physical access to
<pistache>
mmh bare-metal was not really the right word, but I see what you mean
<clever>
pistache: you just need a way to give nixops root ssh to a nixos running from ram (or an iso), and it will do the install for you and deploy
<pistache>
do you plan on using nixpart for this ?
<clever>
pistache: and then certain backend plugins, like hetzner would just tell hetzner to boot the iso, to meet that requirement
<clever>
not sure what will be used for partitioning yet, but thats one option
<nh2>
pistache: for Hetzner cloud, we should switch to the new Python API I mention on the ticket, and use clever's approach to get NixOS onto the machine
<samueldr>
asymmetric: sounds like "public API vs. private API" to me, though I don't have any prior knowledge stating so
gagbo has quit [Ping timeout: 265 seconds]
<samueldr>
and... something that needs to be validated, wouldn't running `nixos rebuild test` *not* update the system symlink?
<clever>
asymmetric: and what does current-system point to? just ls -lh it?
Okinan has quit [Quit: Konversation terminated!]
<asymmetric>
clever: sorry, i'm dumb. i was only looking at the git commit sha at the end of the directory name, rather than the sha at the beginning
<clever>
asymmetric: ah
<OmnipotentEntity>
This is a simple question, but I can't find the answer anywhere. How do I get the path of the store within a build? I need to set an environment variable to it in a shell hook.
<srid>
What is the semantics of `imports` list? I see that config, pkg, etc. are passed to the imported modules. Can I pass custom values (mainly, utility functions to share among modules) in this set?
<clever>
srid: any attributes you add to _module.args are visible to all nixos modules
<clever>
so you can just _module.args.something = ...; in any module, and then { something, config, pkgs, ... }: in others
<srid>
Doesn't look like it works, when working with home-manager ...
<clever>
srid: it should, what error did it give?
<srid>
error: attribute 'fetchGH' missing, at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:163:28
<srid>
I added this to configuration.nix: _module.args.fetchGH = fq: rev: builtins.fetchTarball ("https://github.com/" + fq + "/archive/" + rev + ".tar.gz");
<clever>
srid: home-manager modules are seperate from nixos modules
<clever>
so you may need to add it to a home-manager module
<elvishjerricco>
How can I edit `/etc/zed.d/zed.rc` on NixOS? Trying to set it with the `environment.etc."zfs/zed.d/zed.rc"` option gives me `mismatched duplicate entry <-> /nix/store/dy9ryp6jycrx9b1jmvh4jny14pchxnn1-etc-zed.rc`
<clever>
elvishjerricco: youll need to set a var that is being inserted into that string, or modify the module to allow editing what you want changed
<elvishjerricco>
clever: Yea, somewhere in nixos `environment.etc."zfs/zed.d".source` is being set to ZFS's default `zed.d`, so it can't be changed without a change to the ZFS module.
<tilpner>
elvishjerricco: Least painful way might be to override the zfs attribute
<tilpner>
Though a PR to nixpkgs would be more proper
<elvishjerricco>
Not sure how to modify the module properly. I don't want to have to set `environment.etc` for each file included in ZFS, since that list might change.
<clever>
elvishjerricco: only thing i can think of, is to buildEnv the zfs files with an override derivation
<clever>
and then put the buildEnv into source
<elvishjerricco>
clever: Yea I might just do that
<clever>
there is a buildEnv flag to allow collisions, so you just need the order right
<clever>
though it wont be the normal environment.etc api anymore
<{^_^}>
[nixpkgs] @dredozubov opened pull request #73984 → apple_sdk: broken link update → https://git.io/JeiPW
<elvishjerricco>
clever: Can buildEnv be told to only allow specific collisions?
<clever>
not really
<clever>
but you could just have a runCommand that will cp ${zfs}/etc/zed.d/* $out/ and then use normal bash to replace/edit certain files
<infinisil>
elvishjerricco: Have you tried mkForcing the environment.etc assignment?
<elvishjerricco>
infinisil: See the issue I linked above. The directory above the file that I want to change is what has been set by the module, so it's children can't be set no matter what
<OmnipotentEntity>
theano is a mess. I'm getting an issue where it's not finding a header file now. It has something to do with the build environment, but I have no idea what. The include is a quote include, so I can't just set CPATH and make it good. Any ideas?
<infinisil>
elvishjerricco: Ah I see
<infinisil>
There was a PR for allowing zed changes I think
<Dandellion[m]>
Dandellion nix run -f someurl someattribute does it
iqubic has joined #nixos
justanotheruser has joined #nixos
gwen has quit [Ping timeout: 265 seconds]
Makaveli7 has quit [Quit: WeeChat 2.6]
<o1lo01ol1o>
I'm trying to override lens with lens = haskellPackagesNew.callHackage "lens" "4.18.1" {}; with ghc881 but I get an infinite recursion error, anyone know how to handle that?
<bdju>
if my mouse freezes and the clock falls behind but my visible htop doesn't show high cpu or memory usage, what is it that could be going on?
<bdju>
temps are fine too
<gwen>
evils: ...turns out white margins in tor-browser 9 is actually a feature :) so tor-browser-bundle-bin is good.
<ivan>
bdju: bad clock on your motherboard, get a new one? :/
<samueldr>
bdju: dmesg output around freezes?
<ivan>
hmm, have you tested to see if the clock falls behind on other operating systems
<samueldr>
kernel version?
<bdju>
ivan: no, what I mean is my panel updates every second but during these moments of lag it falls behind and then catches up quickly because it couldn't update the clock each second during the lag
<bdju>
samueldr: I don't see any new dmesg stuff
<ivan>
ah it sounds like the freezing is the primary issue then
<samueldr>
I might have been experiencing something similar on 5.3
<ivan>
are you writing to disk when this happens?
<samueldr>
bdju: what kernel version?
<bdju>
5.3.11
<samueldr>
intel gpu?
<bdju>
yes
<bdju>
ivan: possible
<ivan>
bdju: XFS?
<bdju>
ext4
<samueldr>
a friend of mine, too, has been having similar issue with intel gpu on 5.3, but on archlinux
<bdju>
interesting
<samueldr>
not sure if intel gpu is exactly related, or a red herring though
<samueldr>
bdju: du you know if you're on the intel or modesetting X driver?
<samueldr>
hmm, you'd need to track down the X11 logs
<bdju>
I'm not using a display manager
<bdju>
and I'm using sway on wayland
<samueldr>
that explains why :)
<samueldr>
ah
<samueldr>
so... not X11 related
<samueldr>
(if it's the same issue)
<bdju>
yeah probably not then
<bdju>
I do run xwayland but this freezing seems to happen with more than just xwayland stuff
<samueldr>
I guess if the mouse freezes, it shouldn't happen because of xwayland
<samueldr>
I had to go back to 4.19 because of how irritating the issue was, while not having the time to investigate
iqubic has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<bdju>
I changed from a ThinkPad X220T to a ThinkPad T440p recently (and also from Guix System to NixOS) and have been having much worse performanc and a lot of issues. I really hope I can solve it eventually
<bdju>
on paper this is a much more powerful computer but frankly it's running like crap
zeta_0 has joined #nixos
lnadav has joined #nixos
<bdju>
I don't know if it's nixos, hardware, sway, intel gpu, drivers...
lnadav has quit [Client Quit]
<samueldr>
do you know on the X220T which kernel was running?
lnadav has joined #nixos
<samueldr>
if it's an older LTS, try it on your newer machine, to check
<bdju>
5.something but not sure exactly
<samueldr>
hm
<bdju>
and also running sway
<samueldr>
5.something is not likely an LTS
<samueldr>
though if it's older than 5.3 it may help guesttimating a moment the issue started
<samueldr>
oh, and it will be annoying to bisect considering it's not exactly reproducible at will
<bdju>
the other day I was doing tests. the two gens older laptop with i5 instead of i7 was playing back video in mpv much much better. I keep having desycn or frame drop issues on this one
<{^_^}>
[nixpkgs] @OmnipotentEntity opened pull request #73988 → arviz: init at 0.5.1 → https://git.io/JeiXX
<bdju>
althought considering the mouse freezing I would bet the mpv issues are just a symptom of a greater problem
<bdju>
s/ght/gh
<samueldr>
bdju: try 4.19, see if it also helps with video rendering and such
<bdju>
hm okay
<samueldr>
I'm wondering how seemingly no one is having such issues :/ (if it even is the same issue)
<zeta_0>
i just finished setting up configuration.nix in my raspberry pi 4, now do i need to run: `nixos-install` or `nixos-rebuild switch` ?
<lnadav>
would you reccomend guix or nixos for a somebody who is reletivly condident in linux?
<lnadav>
arch is anoying me
<samueldr>
well... you're going to get biased answers of "nixos"
<samueldr>
and, are you relatively condiment (ketchup, mustard) or confident? :)
<OmnipotentEntity>
zeta_0, nixos-rebuild switch, but you have to install raspbian first, because RPi4s have actual real firmware that need to be updated, iirc.
<bdju>
guix is understaffed which leads to them being behind on packaging. I have personally added probably 50+ things to the wishlist but it's slow to get packaged
<bdju>
but aside from that it's pretty pleasant to use
<samueldr>
OmnipotentEntity: our image does boot on a non-updated rpi4
<samueldr>
OmnipotentEntity: our rpi4 image, that is
<OmnipotentEntity>
oh good
<lnadav>
how often do you have issues woth nixos?
fusion809 has joined #nixos
<samueldr>
though, it might be a good thing to, at some point, getting the firmware updates story fiured out
<bdju>
samueldr: should the kernel line look like this? boot.kernelPackages = pkgs.linuxPackages_4_19;
<bdju>
I had it set to _latest
<samueldr>
bdju: yeah
<bdju>
alright
hagelslag[m] has joined #nixos
<OmnipotentEntity>
lnadav, having an issue with it right now ;) it's certainly not issue free. It's a bit rough around the edges. And sometimes the software you want simply isn't packaged. However, packaging software is so much easier than on Debian, so I actually want to do it.
<zeta_0>
OmnipotentEntity: are you serious, i already burned nixos to my sd card and setup configuration.nix, i don't want to have to burn rasbian too ?
<OmnipotentEntity>
But while I say it's a bit rough around the edges, it's one of those technologies where... once you use it and learn it exists, you never ever want to be without it, and you don't understand how you've managed to live without in for so long in the past.
<lnadav>
OmnipotentEntity, so does nixos have a version of the aur?
<OmnipotentEntity>
zeta_0, no, samueldr corrected me.
<sondr3>
lnadav: I guess NUR comes kinda close but for the most part everything is just stuffed into nixpkgs
<samueldr>
lnadav: not really, there is the NUR project which is a bit in the spirit of
<samueldr>
lnadav: yeah, or people have their own overlay with stuff as nixpkgs is built with composability in mind
<lnadav>
i see
<zeta_0>
i'm confused so i don't need to burn rasbian then, right ?
<lnadav>
so nixos whole idea is that any program will run the same no matter what
<samueldr>
most of the issues I've had when using nixos are issues with the upstream software, lnadav
<OmnipotentEntity>
you do not zeta_0, unless you want updated firmware, which you probably do eventually
<lnadav>
and so how excactly does that work?
<OmnipotentEntity>
but you don't need immediately
<lnadav>
samueldr, what do you mean?
<samueldr>
lnadav: software X has bug Y, then nixpkgs will have bug Y in software X :)
<lnadav>
oh
<samueldr>
it's been rare in my experience that nixos has issues specific to nixos
<zeta_0>
OmnipotentEntity: so i can't update the firmware of my pi with nixos ?
<samueldr>
but there *are* issues specific to system integrations, sometimes
<lnadav>
how updated are the packages in the main repo?
<lnadav>
also isnt guix just nixos but free and with an installer?
<elvishjerricco>
lnadav: In what way is nixos not free?
<OmnipotentEntity>
zeta_0, not right now, maybe later down the line.
<samueldr>
the way nix works, there are no "repos", but channels, but in the end potato/tomato...
<lnadav>
can you expand on that?
<samueldr>
lnadav: there is nixos-unstable, which is rolling-release like, and then there are stable channels cut every 6 months or so
LysergicDreams has quit [Ping timeout: 240 seconds]
<lnadav>
samueldr, i see
<samueldr>
lnadav: those stable channels are more ubuntu~ish in that everything is kept at the version it was
<samueldr>
so you can have your cake and eat it too...
<samueldr>
... especially considering you can somewhat mix and match if required
<zeta_0>
should i first update the firmware in my pi, or am i good without it ?
<samueldr>
e.g. alacritty has an upstream bug with the version in 19.09, I've been using the 19.03 version for the time being, while still runnning 19.09 for everything else
<samueldr>
zeta_0: should be good without updating the firwmare
<samueldr>
AFAIK the only firmware that is relevant once the system is booted is the usb controller, and it's mostly thermal stuff
LysergicDreams has joined #nixos
<lnadav>
and what the advantage of unprivildged package managment?
<sondr3>
aren't there very big thermal gains from the firmware updates though? Feels like its all I see on /r/raspberrypi
<elvishjerricco>
lnadav: Also guix has waaay less development than nixos, so it's got a lot fewer packages among other things.
<zeta_0>
samueldr: so i shouldn't have any security issues or anything like that ?
<samueldr>
not that I know of
<lnadav>
espaily when to use a package you need to run nixos-update
<samueldr>
sondr3: yeah, mostly thermal, AFAIK
<samueldr>
sondr3: there is also network booting, but that doesn't matter here
<elvishjerricco>
lnadav: You don't need sudo just to try out some software. It can't affect other users, so it doesn't require root privileges
<sondr3>
which I guess indirectly causes better performance because you get less throttling, I had to buy a proper case for my 3B+
<lnadav>
elvishjerricco, does that mean that I can try out some software temp and then it will disapear after i reboot?
<samueldr>
sondr3: possible :) though not strictly required
<sondr3>
nix run nixpkgs.blah -c blah is one of favorite things about Nix(OS)
<sondr3>
heck, with nix run you can trial it without it ever being installed
<bdju>
well the video desync in mpv was the easiest thing to test and it still happens on kernel 4.19.
<zeta_0>
samueldr: will i eventually be able to upgrade/update the firmware on my pi using nixos ?
<samueldr>
I think so
<kyren>
lnadav: you can do more than just try out some software and then let it be cleaned up on garbage collection, you can do that with whole dev environments, custom per project, it's kind of like python virtual environments but for everything all at once
<samueldr>
at the very worst you sould be able to boot *another* sd card with an os that does if it's never figured out
<lnadav>
damn that sounds pretty cool
<kyren>
lnadav: you can write scripts using nix-shell that use arbitrary numbers of packages that just install them as needed (independently of everything else mind you)
<lnadav>
but lets say i download 3 irc programs but i only like on of them how do i tell nixos to keep that one?
<OmnipotentEntity>
oh hey kyren
<samueldr>
using the word "install" is even a bit misleading :) it procures the software, puts them in the store, and the shell (and project) knows how to use it
<OmnipotentEntity>
*wave*
<lnadav>
oh yeah so i do i need to learn nix (the langauge)
<kyren>
lnadav: nix has a concept of "garbage collection" and "garbage collector roots", generally you just set garbage collection to run daily, weekly, whatever, and you can just invoke arbitrary packages at any time, generally that doesn't create a new root
<samueldr>
it will help to get yourself familiar with it, lnadavn
<kyren>
oh hey OmnipotentEntity :D
<samueldr>
as the system is configured using it
<lnadav>
oh thats pretty cool
<samueldr>
strictly speaking, it should be possible to install and use without getting acquainted with the nix language
<lnadav>
and how well does it work bedrock linux?
<samueldr>
not sure at all
<OmnipotentEntity>
kyren, may I ask for a pair of eyes on a problem that's been vexing me?
<samueldr>
I haven't been keeping up to date with bedrock since a couple years ago
<kyren>
OmnipotentEntity yes you may! pm?
<samueldr>
but it's possible that some assumptions fail, mostly FHS stuff
<kyren>
I can't promise I can help though
alexherbo2 has quit [Ping timeout: 240 seconds]
<lnadav>
hmm
<lnadav>
i really want to get debian for stable and important stuff and nixos/guix/arch with bedrock linbux
<gchristensen>
why not just nixos?
<samueldr>
you can use nixpkgs outside of nixos, if you're not intending to _run_ nixos
<samueldr>
a good chunk of what you'd end up using is nix and nixpkgs features, in such a setup
<lnadav>
how up to date is the minecraft package?
<lnadav>
also with nixos will i still have issues with java and stuff?
<sondr3>
Minecraft, like Steam, lives in its own bubble where it updates freely so you're always up to date with it
<sondr3>
I've used Java extensively with NixOS and no troubles, honestly I'd almost say I've had less issues than my friends... but I also have more experience making IntelliJ cooperate
zebrag has joined #nixos
inkbottle has quit [Ping timeout: 240 seconds]
isidore has joined #nixos
isidore has quit [Client Quit]
<zeta_0>
how hard is it to configure nixos to do firmware upgrades/updates for raspberry pi ?'
isidore has joined #nixos
gwen has quit [Quit: Leaving]
ckauhaus has quit [Quit: WeeChat 2.6]
Chiliparrot has joined #nixos
<infinisil>
zeta_0: How would you do these upgrades without nixos?
justanotheruser has quit [Ping timeout: 246 seconds]
<zeta_0>
infinisil: if i understand correctly, i can only get firmware upgrades/updates on my pi with raspbian, but you currently can't do this with nixos ?
jco has quit [Quit: WeeChat 2.6]
<srid>
I've finalized my Nix recipes for Haskellers article (target audience: Haskellers not yet familiar with nix, but wants to try it). If you have any feedback, please let me know! https://www.srid.ca/haskell-nix.html
<{^_^}>
[nixpkgs] @flokli opened pull request #73990 → nixosTests.systemd-nspawn: convert test to python → https://git.io/Jei11
<OmnipotentEntity>
Thra11, the rpi4 has actual firmware that's installed to the device itself.
<Thra11>
Sounds... fun
<samueldr>
among others, firmware for the usb chip, firmware for the booty bits
zupo has joined #nixos
dckc has joined #nixos
mexisme has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<bdju>
samueldr: the lts kernel might have fixed the freezing/mouse lag. I haven't gotten it to happen so far anyway. mpv playback is still not great, though. so maybe two separate problems.
<samueldr>
bdju: you got it backwards :) the LTS kernel doesn't have the freezing bug yet
<samueldr>
bdju: yeah, likely two separate problems
<bdju>
well' yeah. "the change to the lts kernel fixed..." then
<{^_^}>
[nixpkgs] @flokli opened pull request #73991 → nixosTests.neo4j: port test to python → https://git.io/Jei17
<samueldr>
though, it's nice having confirmation that I'm not going crazy :)
<samueldr>
bdju: I'm just being pedantic for no good :)
mexisme has quit [Ping timeout: 246 seconds]
<betawaffle>
has anyone tried managing configurations for ubiquiti switches with nix?
<samueldr>
I should check if I can repro the issue on my test computer, and 5.3, and bisect the issue... but not having a clear reproduction is going to cause headaches
<{^_^}>
[nixpkgs] @c0bw3b merged pull request #68113 → mkdocs: update meta-information, set myself as maintainer → https://git.io/fjh5d
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @rkoe to master « mkdocs: update meta-information (#68113) »: https://git.io/Jei1h
<{^_^}>
[nixpkgs] @adisbladis pushed 2 commits to staging-19.09: https://git.io/JeiMJ
ozychhi has quit [Ping timeout: 240 seconds]
ozychhi has joined #nixos
smatting has joined #nixos
isidore has quit [Quit: WeeChat 2.6]
<samueldr>
hmm, I don't know how to check exactly, but is it problematic to cross-compile using the Nixpkgs rust infra currently?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<samueldr>
(well, how to check quickly)
knupfer has joined #nixos
zeta_0 has joined #nixos
<zeta_0>
when doing a rebuild to try and install nixos on my pi, i got the error: xf86-video-vmware not supported on aarch64-linux
sheenobu has joined #nixos
<zeta_0>
how do i fix this ?
ambro718 has quit [Ping timeout: 246 seconds]
<sondr3>
have you included that in your packages or as a videodriver? You can't use x86-packages on non-x86 architectures
smatting has quit [Ping timeout: 250 seconds]
bob6 has joined #nixos
<zeta_0>
sondr3: i don't know which packages are those ?
<zeta_0>
sondr3: in configuration.nix ?
cosimone has quit [Read error: Connection reset by peer]
cosimone has joined #nixos
<zeta_0>
am i going to need to use alternative packages ?
cosimone has quit [Client Quit]
<dolanbatar>
hi! i'm unable to setup gtk-3 themes, does it work for somebody?
cosimone has joined #nixos
<sondr3>
have you specified the `xf86-video-vmware` package yourself in your configuration.nix? VMware is a virtual machine application and I doubt using their drivers outside of the application itself is any good
<samueldr>
the defaults for videoDrivers include some non-universal drivers
cosimone_ has joined #nixos
cosimone has quit [Read error: Connection reset by peer]
<zeta_0>
samueldr: thanks, but now the rebuild threw the error: broken revdeps on set ?
<samueldr>
no idea what that is, sorry
<samueldr>
(haven't actually used the rpi4 other than for testing the initial contribution of that image)
<samueldr>
(I'm still waiting on mainline Linux fixes)
<zeta_0>
samueldr: i can't get it to install, should i just move back to raspbian ?
<samueldr>
I don't know, that's your raspberry pi, your call
<wucke13>
Is there a way to specify the features to build for rustPlatform.buildRustPackage ?
<dolanbatar>
overloadAttrs?
<samueldr>
currently the raspberry pi 4 is not among the supported platforms for NixOS, so if you don't have the capacity (and time) to debug stuff, it may not be the best choice for now
<dolanbatar>
just guessing
<samueldr>
depending on what you intend to do with the raspberry pi 4
<{^_^}>
[nixpkgs] @flokli opened pull request #73994 → Nixos test port nix ssh serve → https://git.io/JeiDJ
<notgne2>
I seem to have broken my NixOS (in runtime at least)
<notgne2>
my auto upgrade service ran but then started saying things like `Failed to restart polkit.service: Unit -.mount is masked.`
<notgne2>
ah, well I was trying to find it at least
<notgne2>
I'm surprised double-width monitors cost so much extra, I expected them to be cheaper given they get the "lock-in" of you buying more than just 1x monitor