mkoenig has quit [Remote host closed the connection]
andrewrk has joined #nixos
<andrewrk>
that thing happened again where I ran out of space on /boot during `nixos-rebuild switch` and I forgot what to do
mkoenig has joined #nixos
<drakonis>
ah yes
<drakonis>
is your boot on your root partition or on a separate partition?
<clever>
andrewrk: grub or systemd?
justanotheruser has joined #nixos
<andrewrk>
systemd, uefi
<andrewrk>
drakonis, separate
<clever>
grub has an option to limit how many generations go into /boot/
<clever>
systemd doesnt
<drakonis>
well, that's a problem
mkoenig has quit [Remote host closed the connection]
<Synthetica>
`env QT_QPA_PLATFORM=wayland konsole` should Just Work ™️ , right?
<andrewrk>
I think I just need to garbage collect old roots
mkoenig has joined #nixos
<Synthetica>
Or am I missing something?
<clever>
andrewrk: you will need to manually delete some of the older initrd's, and GC some older nixos profiles (nix-collect-garbage --delete-older-than` and then you can switch
<andrewrk>
if I remember correctly, I can manually wipe all of these, and then a rebuild switch will fix it? https://clbin.com/sgUZL
<andrewrk>
any reason nix-collect-garbage can't do that automatically?
<gchristensen>
after you delete some genertions, nixos-rebuild switch will delete them
<andrewrk>
oh, perfect. so it was just garbage collection that was the issue then
justanotheruser has quit [Excess Flood]
<clever>
gchristensen: this also reminds me, systemd needs the generation limit
<andrewrk>
hmm no looks like I need to manually delete files. I keep getting "No space left on device" from nixos-rebuild switch
<clever>
gchristensen: and, why cant both bootloaders, look at how much free space there is, what kernels are missing, and then compute backwards (from newest generation) which will fit?
<clever>
andrewrk: yeah, it only deletes old files, after copying the new files in
<gchristensen>
that is a great idea
<clever>
which is why i mentioned manually deleting a few old initrd;s
<andrewrk>
ahh
<gchristensen>
especially great, b/c I can only fit like 10 generations
<clever>
gchristensen: i make my /boot/ 1gig or more, and put an entire nixos on it!
<gchristensen>
each of my generations takes 20MB :X
<clever>
this puts an entire nixos livecd into the /boot/, and adds a grub option
<clever>
it cost ~300mb
<clever>
but you now have the ability to boot the install media at any time
<andrewrk>
that's clever
<clever>
i originally used it to move my /nix to its own dataset in zfs
<clever>
because it was chewing up space on / every time it made a snapshot
<drakonis>
clever: its good as heck and i'll take it
alex`` has quit [Ping timeout: 245 seconds]
<elvishjerricco>
clever: "and, why cant both bootloaders, look at how much free space there is, what kernels are missing, and then compute backwards (from newest generation) which will fit?"
<elvishjerricco>
What's the context here? I don't understand this question.
<clever>
elvishjerricco: nixos-rebuild switch failing, due to /boot/ being full
<clever>
elvishjerricco: so, you need to compute which files have to be copied, then copy them starting from the most recent generation, but check for free space at each generation, and dont copy what wont fit
<andrewrk>
clever, I did `nix-collect-garbage -d` and `sudo rm /boot/efi/nixos/*` and it's still running out of room on a rebuild-switch
<elvishjerricco>
clever: Ah, that's a good idea. I'd also issue a warning if any don't fit
<clever>
andrewrk: `sudo ncdu /boot/` where is all the space going?
<clever>
elvishjerricco: yeah
<elvishjerricco>
andrewrk: sudo that nix-collect-garbage. Your user can't delete root's old system generations
<andrewrk>
oh
<andrewrk>
yeah that did something
<andrewrk>
oh my god I have so much free space
eadwu has joined #nixos
<andrewrk>
I can fit, like, 1 more LLVM debug build on here
<clever>
lol
<clever>
6103 store paths deleted, 64986.73 MiB freed
<clever>
a recent GC i did on my nas
<elvishjerricco>
sidenote: This kind of stuff is one of the reasons I put /boot on ZFS :P
<clever>
without -d
<clever>
the nas i mentioned above, has 2.5tb of free space
<clever>
so i rarely need to gc
<andrewrk>
35160 store paths deleted, 50696.39 MiB freed
<andrewrk>
this is after 20 GiB freed from non-sudo
<clever>
also, the nas above, has snapshots on /
<clever>
and /nix is part of /
<clever>
i deleted 500gig worth of snapshots today
<elvishjerricco>
It's good to run nix-collect-garbage automatically periodically. A while ago, I started running it nightly, keeping 30d of generations, in order to dogfood the GC problems I was creating for users of Nix code I write
<andrewrk>
nixos is such a great developer OS
<clever>
elvishjerricco: ive found min-free based GC has a number of IFD related bugs
<elvishjerricco>
clever: That's why we made the deriver expression a build input to callCabal2nix expressions. Isn't referenced by runtime closures, but `keep-outputs = true` will make sure they stick around and don't get rebuilt. Not the case for IFD generally, so you have to add some kind of reference to the expression's path in the build script
<clever>
elvishjerricco: ah
<elvishjerricco>
clever: You said there were potential issues with booting from ZFS with grub, didn't you? Or was that someone else...
<gchristensen>
oh cool
<clever>
elvishjerricco: yeah, a number of them
<clever>
The sha512, skein, and edonr checksum algorithms require enabling the appropriate features on the pool. These algorithms are not supported by GRUB and should not be set on the bootfs filesystem when using GRUB to boot the system. Please see zpool-features(5) for
<clever>
elvishjerricco: for one, certain checksum algo's arent supported, so if you set those, grub cant read it at all
<elvishjerricco>
clever: Crazy workaround idea for EFI systems: No ordinary boot loader. Make a boot loader out of the Linux kernel with EFI-stub, using actual drivers like ZFS and graphics. Chainload later linux kernels.
<clever>
elvishjerricco: also, grub has trouble if a directory has too many children
* clever
eyes /nix/store/
<gchristensen>
elvishjerricco: omg
<clever>
gchristensen: ive had that idea already, to get ssh enabled bootloaders, for servers
<clever>
gchristensen: how else are we to rollback a headless machine?
<elvishjerricco>
ajs124: Was about to ask if this already existed :P
<gchristensen>
nixos-native bootloader, just provides the options in /nix/var/nix/profiles/...
<ajs124>
Also google's NERF is basically this, but as server firmware, iirc.
argent0 has quit [Ping timeout: 240 seconds]
<drakonis>
linux as the firmware
<drakonis>
its fabulous and a smidge dangerous
nspin_ has quit [Quit: Page closed]
<elvishjerricco>
Hm. Putting it in the firmware is a bit much, and petiboot seems specific to kexec. Would be nice to have something that just chainloads with EFI, as a normal EFI application
<clever>
gchristensen: another option, but a bit more tricky to do securely, have ipxe as your real bootloader, which will chainload a file over https
<clever>
gchristensen: if it times out, or is configured for normal use, chainload grub, and boot normally
<clever>
but, now you can chainload a netboot image
praetorg_ has joined #nixos
praetorg has quit [Ping timeout: 272 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
aleph- has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhyQE
tdbgamer has joined #nixos
halfbit has joined #nixos
marsam has joined #nixos
bfrog has joined #nixos
halfbit has quit [Ping timeout: 240 seconds]
silver has quit [Read error: Connection reset by peer]
maximiliantagher has quit [Remote host closed the connection]
ng0 has quit [Quit: Alexa, when is the end of world?]
fresheyeball has quit [Quit: WeeChat 2.2]
maximiliantagher has joined #nixos
aleph- has joined #nixos
maximiliantagher has quit [Ping timeout: 268 seconds]
bfrog has quit [Ping timeout: 240 seconds]
n0qqe has joined #nixos
jluttine has quit [Ping timeout: 250 seconds]
Supersonic has quit [Ping timeout: 252 seconds]
noqqe has quit [Ping timeout: 250 seconds]
n0qqe is now known as noqqe
Supersonic has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
jluttine has joined #nixos
drakonis has quit [Quit: WeeChat 2.3]
sigmundv_ has quit [Ping timeout: 245 seconds]
jtojnar has quit [Quit: jtojnar]
marsam has quit [Ping timeout: 272 seconds]
nimblepoultry has joined #nixos
nimblepoultry has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
MP2E has quit [Remote host closed the connection]
maximiliantagher has quit [Ping timeout: 245 seconds]
maximiliantagher has joined #nixos
nikola_i has quit [Ping timeout: 244 seconds]
nikola_i has joined #nixos
carlosdagos has joined #nixos
<{^_^}>
[nixpkgs] @yegortimoshenko opened pull request #55026 → thunderbird: clean up, make flags closer to default, official branding → https://git.io/fhyQx
<{^_^}>
teto: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
xok has joined #nixos
<ottidmes>
teto: i.e. you have to change the cargoSha256 attribute, otherwise it will lockdown the dependencies as they were
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
maximiliantagher has quit [Read error: Connection reset by peer]
maximiliantagher has joined #nixos
PeterHK has joined #nixos
<PeterHK>
im having issue with stupid MS python pakage `collision between `/nix/store/vwxrdazjg2z2v0z2m5njlvysxv3bhg07-python3.7-azure-common-1.1.16/lib/python3.7/site-packages/azure/__init__.py' and `/nix/store/vx993ylcavaphrwz483zp1m01js6wjga-python3.7-azure-keyvault-1.1.0/lib/python3.7/site-packages/azure/__init__.py'`
<PeterHK>
i tried `postInstall = '' echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py '';` but no luck
xok has joined #nixos
maximiliantagher has quit [Remote host closed the connection]
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #nixos
sinner has joined #nixos
Guest47920 has quit [Ping timeout: 246 seconds]
<ottidmes>
peterHK: "Python 2 namespace packages may provide __init__.py that collide. In that case python.buildEnv should be used with ignoreCollisions = true."
<ottidmes>
peterHK: here is an example of that workaround being used in nix-shell: nix-shell -p gobjectIntrospection gtk3 '(python27.buildEnv.override { extraLibs = with python27Packages; [ matplotlib pygobject3 ]; ignoreCollisions = true; })'
maximiliantagher has quit [Remote host closed the connection]
endformationage has quit [Quit: WeeChat 2.3]
maximiliantagher has joined #nixos
palo1 has joined #nixos
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
<eyjhb>
Don't know if this is just me, but I cannot get systemd to create the sections for "wantedBy" at all, so I get the error message when I enable my services.. - https://termbin.com/1lw1
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
garbas has quit [Ping timeout: 250 seconds]
jackdk has quit [Ping timeout: 250 seconds]
fusion809 has joined #nixos
maximiliantagher has quit [Ping timeout: 240 seconds]
elgoosy has joined #nixos
random_yanek has quit [Ping timeout: 250 seconds]
rawreraw has joined #nixos
vk3wtf has joined #nixos
maximiliantagher has joined #nixos
brejoc has joined #nixos
Mateon3 has joined #nixos
hyper_ch2 has joined #nixos
Mateon1 has quit [Ping timeout: 272 seconds]
Mateon3 is now known as Mateon1
maximiliantagher has quit [Ping timeout: 244 seconds]
griff_ has joined #nixos
random_yanek has joined #nixos
brejoc has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<PeterHK>
i am trying to have requiredPackages separate so i can easy include it to container build later (container.nix for container build + shell.nix for local dev) `pythonWithPackages = (myNixpkgs.python37.withPackages (python-packages: with python-packages; (requiredPythonPackages ++ devPythonPackages)) ).override { ignoreCollisions = true; };`
<PeterHK>
but i can not have it symbols and it does not work with strings
rauno has joined #nixos
jtcs has quit [Ping timeout: 250 seconds]
freeman42x has quit [Ping timeout: 252 seconds]
reinhardt has joined #nixos
Ariakenom has joined #nixos
vk3wtf has quit [Ping timeout: 264 seconds]
elgoosy has quit [Remote host closed the connection]
Soo_Slow has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
fusion809 has quit [Ping timeout: 250 seconds]
PeterHK has quit [Ping timeout: 256 seconds]
griff_ has quit [Quit: griff_]
srid_ has quit [Quit: Connection closed for inactivity]
maximiliantagher has quit [Ping timeout: 250 seconds]
chrisbarrett has joined #nixos
PeterHK has joined #nixos
<chrisbarrett>
hey peeps. I'm looking for a good way to pass configuration into my nixos and home-manager setup. Right now I have a hack where I put an attrset into an overlay, which my various modules can then take a depedency on. Is there a better way?
<chrisbarrett>
I feel like that `config` parameter that gets plumbed around looks like the right thing, but I've had trouble figuring out how to extend it with my own attributes.
<elvishjerricco>
chrisbarrett: You can create your own options and set them, which will make their values available via `config`
rawreraw has quit [Quit: WeeChat 2.3]
rawreraw has joined #nixos
<chrisbarrett>
thanks elvishjerricco. :D I'll give it a go.
o1lo01ol1o has joined #nixos
brejoc has joined #nixos
rawreraw has quit [Client Quit]
rawreraw has joined #nixos
<chrisbarrett>
it does look quite heavyweight. just to motivate this, say you've got some modules that need to know a user's home directory. Is that the mechanism you'd go for to pass that around?
<infinisil>
chrisbarrett: Yeah declaring options is the way to go
<chrisbarrett>
cool, thanks!
Makaveli7 has joined #nixos
<infinisil>
You could also declare an option as an attrset though, which allows you to be able to use multiple such settings with a single option
<infinisil>
But then you don't have the benefit of type checking them all
<chrisbarrett>
that makes sense. I guess you'd still get errors about missing attributes, which would still point to the problem.
<infinisil>
Yeah
maximiliantagher has joined #nixos
<{^_^}>
[nixpkgs] @vcunat pushed 1000 commits to staging-next: https://git.io/fhydz
maximiliantagher has quit [Ping timeout: 240 seconds]
<q6AA4FD>
any emacs or other IDE-like system users here- how do you reconcile developing with nix-shell and having your IDE integrate with your development environment?
<q6AA4FD>
to be more specific, if i provide for the depends of a project with a default.nix file + cabal or whatever, then a ghc session i run through emacs will not have access to the libraries i'm using, and maybe not to the same version of ghc that i'm using in my specific build
jrddunbr has quit [Read error: Connection reset by peer]
vonfry has joined #nixos
<vonfry>
If I use a custom package to make a development env without version and install this package globally, will nix-env update all packages in it automatically?
<{^_^}>
nix-env has multiple drawbacks as an imperative package manager. nix-env -u will sometimes upgrade to the wrong thing; the outputs to install are very finicky to override; and packages that have been removed or are otherwise unavailable will remain in your profile without any warnings. Consider using a ,declarative setup instead.
<petersjt014>
anyone here have access to the build server? aarch64 needs to compile a shiny new llvm and has been failing at it for ~2 days.
<PeterHK>
anyone managing django app with nix? i ported all deps over but now see a lot of errors in tests :(
Jetien has joined #nixos
<chrisbarrett>
elvishjerricco: infinisil: thanks for the pointers, got those options definitions working. works like a charm!
alter-schjetne has quit [Ping timeout: 272 seconds]
dejanr has joined #nixos
o1lo01ol1o has joined #nixos
<dejanr>
hey all, i am working on nix project, and running nix-build for project expression, just exists with 0 exit code and show's nix store location, any way to debug why is this happening and how to get more insight?
<clever>
dejanr: your source hasnt changed, so its using a cached build
<dejanr>
clever: if i garbage collect builds, it just checks out our nixpkgs layer, switches out to new fetchgit branch, and exists with status code 0 again
<symphorien>
did you change the sha ?
<symphorien>
(in fetchgit)
<dejanr>
we use nixpkgs overlay for some shared expressions
<clever>
dejanr: the result symlink nix-build produced is a GC root, so it will never garbage collect the build
<dejanr>
yes i used nix-prefetch-git to update nixpkgs overlay
chrisbarrett has quit [Quit: chrisbarrett]
<clever>
dejanr: you would have to remove the result symlink first
o1lo01ol1o has quit [Ping timeout: 272 seconds]
<dejanr>
ok
<dejanr>
will try thanks
<clever>
but that wont really fix the problem
<clever>
nix will just remake the path again, with the same source and same output
<dejanr>
clever: now it builds the project, thanks a lot!
<clever>
it is likely building the same version you just deleted, so no real change
<{^_^}>
[nixpkgs] @tazjin opened pull request #55040 → Fix manual Makefile by including function doc generation → https://git.io/fhybg
<immae>
Hi everyone, I recently enabled sandboxing in my nix install, and almost everything works fine, but now I’m trying to update channels (nix-channel --update) and it complains about a missing /usr/bin/bash (and the derivation he’s trying to build contains the /usr/bin/bash : https://paste.ee/p/ZKwfR ), how should I fix it?
maximiliantagher has joined #nixos
dermetfan has quit [Ping timeout: 250 seconds]
sigmundv_ has joined #nixos
maximiliantagher has quit [Ping timeout: 250 seconds]
<fengels>
Quite frequently I seem to be unable to connect to certain pages whilst the rest of the internet is working fine.
<fengels>
Didn't have this issue on any other distribution.
<tilpner>
immae: Mine points into the store, and I'm not familiar enough with Nix-on-not-NixOS configuration to tell why it's set like that
maximiliantagher has quit [Ping timeout: 268 seconds]
<immae>
tilpner: I guess I should edit my /usr/share/nix/corepkgs/config.nix which hardcodes some values?
<fengels>
Also sometimes Firefox can't connect but chromium can and vice versa and at other times I can't even ping the URL
<tilpner>
immae: You can look at the source of <nix> with "nix-instantiate --find-file nix". You could try editing nix.conf to add /usr/bin/bash to extra-sandbox-paths
<tilpner>
immae: But this seems like a problem that would affect other people as well, so maybe wait for someone familiar with Nix-on-not-NixOS, or file an issue
<immae>
ok thanks tilpner (I don’t want to edit extra-sandbox-paths), I’ll try to see and understand how it works
<tilpner>
immae: How long have you had Nix installed on that machine? I don't know if Nix can self-update into non-store locations
<immae>
I don’t know, and yes I should probably update nix :)
<immae>
It’s 2.1.3
<tilpner>
Might be worth trying, but I'm just guessing
<immae>
Yes, the thing is, I don’t want to rebuild everything today, so I’m trying to do it (maybe too) carefully
<immae>
(I first want to freeze, then update :p )
<immae>
But thanks for the hint, I found a path I didn’t know of yet
<tilpner>
Just have your server build everything for you, no need to do that locally
<immae>
What do you mean?
<tilpner>
You can instantiate an expression locally, copy the derivations to a server with Nix installed, build it there, and copy the outputs back
<tilpner>
Build a neat wrapper for that, and it can be convenient if you don't want your laptop fans to spin for hours
<tilpner>
Ah, right. I didn't use that because I wanted to have control over whether things are copied back
<immae>
Well, it’s not th ebuild time that is a problem, it’s that it has a lot of things that changed, and I prefer to be available when I upgrade them
<immae>
So I’d like to freeze the channel for now, and upgrade when I’m available
<tilpner>
Updating Nix shouldn't break anything
<immae>
oh?
<immae>
Isn’t nix a dependency of all nixpkgs?
<tilpner>
I don't think so
<tilpner>
If you manage to upgrade Nix without deleting your store, I don't see why it would rebuild anything, as long as your inputs stay the same
Ariakenom has quit [Ping timeout: 250 seconds]
<immae>
So that means that all the sha's are independent of the nix version, right?
<tilpner>
(Note that 2.2 has a bug with nix-shell as root)
<tilpner>
Yes, they should be
<immae>
Ok
<immae>
I wasn’t aware of that
<symphorien>
tilpner: which bug ?
<sphalerite>
^
<sphalerite>
tilpner: also, still haven't had any more mysterious shutdowns
<tilpner>
Ugh, Github, how can I search for issues I commented on
<immae>
tilpner: do you know if I can specify inside a configuration.nix file which paths I want to use? (both for nixpkgs and "nixos" services/modules)
<immae>
(in my case, <immaeNixpkgs> only)
<tilpner>
immae: You can use nix.nixPath, but it might not be what you want
<immae>
That will override every NIX_PATH right?
<tilpner>
Well, yes, at least after a reboot
<tilpner>
But not immediately, and it doesn't take effect for the current build
<immae>
ok
<tilpner>
It takes a giant workaround to be able to specify the nixpkgs to use for a configuration within that configuration
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<immae>
Ok, I realize that maybe I’m asking the wrong question since I’m building through nixops: I could just edit NIX_PATH and build with nixops, and put whatever I want there, but I’d prefer to use immaeNixpkgs rather than nixpkgs (because I want this for nixops specifically and not for everything)
<immae>
(note: I upgraded nix and it didn’t try to rebuild everything \o/)
<tilpner>
Because it takes a re-login, I try to keep my changes to NIX_PATH as few as possible
dermetfan has joined #nixos
<tilpner>
While I tried nixops, I overlayed it with a wrapper that always set NIX_PATH to a specific value
<tilpner>
Maybe that would work for you
<immae>
ok
<immae>
Yes
<immae>
I already have a wrapper to extract password files, so I can add that
<{^_^}>
[nixpkgs] @danbst pushed commit from @dtzWill to master « zoom-us: 2.6.149990.1216 -> 2.7.162522.0121 (#54969) »: https://git.io/fhyAE
rawreraw has quit [Ping timeout: 240 seconds]
<azazel>
mmm... i've enabled a borgbackup job using the config.service.borgbackup and now systemd fails to run the job with something like "Failed at step NAMESPACE spawning" and "Failed to set up mount namespacing: No such file or directory"... any clue?
Ariakenom has joined #nixos
<sphalerite>
Anybody else heading to FOSDEM? (cc etu)
schjetne has quit [Read error: Connection reset by peer]
schjetne has joined #nixos
dejanr has joined #nixos
rawreraw has joined #nixos
<{^_^}>
[nixpkgs] @Ekleog pushed 2 commits to release-18.09: https://git.io/fhyAP
<{^_^}>
[nixpkgs] @dotlambda merged pull request #54974 → Backport fixes to Dask and Distributed to release-18.09 → https://git.io/fhDCD
<{^_^}>
[nixpkgs] @dotlambda pushed 7 commits to release-18.09: https://git.io/fhyAA
rawreraw has quit [Quit: WeeChat 2.3]
rawreraw has joined #nixos
<{^_^}>
[nixpkgs] @vbgl opened pull request #55043 → coqPackages_8_9: disable a few packages that do not build → https://git.io/fhyxk
maximiliantagher has joined #nixos
<tilpner>
Taneb: If your store path is in a cache, the .narinfos can be consulted to get the runtime closure as well, without having it built/downloaded locally
<fengels>
I simply use Networkmanager and copied over the connection files from my previous distro
<ottidmes>
fengels: was the switch from your previous distro recent? I ask, because maybe a kernel upgrade did something to your network drivers (they did to mine)
<fengels>
ottidmes: it was recent yes, I have 4.19.19 on NixOS and recently had 4.19 and 4.20 on arch an Gentoo
rawreraw has quit [Quit: WeeChat 2.3]
Guanin has quit [Remote host closed the connection]
<ottidmes>
fengels: and its using the same driver as it did on your other OSes: lspci -v | grep -C 10 -i ethernet
<ottidmes>
fengels: I assumed cabled network, might be wireless, considering you copied over connection files
<fengels>
It's WiFi but yes both were using iwlwifi
<fengels>
ottidmes: there's also never any error messages in dmesg
<symphorien>
a firmware issue, maybe ?
<ottidmes>
fengels: maybe try and reset all stored connections and try adding the one you are using now manually, maybe there is something in the configuration of the connections that conflicts with how NetworkManager is configured in NixOS or some such?
sigmundv_ has quit [Ping timeout: 246 seconds]
maximiliantagher has quit [Ping timeout: 268 seconds]
<fengels>
Firmware isn't automatically installed?
<ottidmes>
fengels: ow, and you said you could not ping some URLs, could you still ping IPs at that point, I guess so considering you mentioned the rest of the internet seemed to work fine, so it feels like a DNS issue
sigmundv_ has joined #nixos
<ottidmes>
fengels: not per se, could be you need to enable the unfree firmware
Makaveli7 has quit [Remote host closed the connection]
Makaveli7 has joined #nixos
<fengels>
ottidmes: I'll try that
<fengels>
ottidmes: that doesn't seem to have fixed it. My current network was also setup manually so that wouldn't be the issue.
<ottidmes>
fengels: if the errors occur if you wake up from sleep mode by any chance, than it actually might be related to the same problem I had, but I would expect you to have them on Arch and Gentoo as well
<fengels>
ottidmes: it always happens regardless of waking or fresh boot
<ottidmes>
fengels: you could also try and modify /etc/resolv.conf and change the DNS servers to those of Google/Cloudflare
<ottidmes>
fengels: I edit it like this, to work around the readonly limitation: sudo cp /etc/resolv.conf{,~} && sudo mv /etc/resolv.conf{~,} && sudo nano /etc/resolv.conf
<ottidmes>
fengels: or maybe just try and figure out what the actual problem is, that of DNS, no new connections, no connection at all, any more info helps
maximiliantagher has quit [Ping timeout: 246 seconds]
<fengels>
ottidmes: I tried setting the DNS server I'll have to find a new problematic page because the previous started loading again before changing DNS
<gchristensen>
"ERROR:x11_input_method_context_impl_gtk.cc(144)] Not implemented reached in virtual void"
<{^_^}>
[nixpkgs] @aanderse opened pull request #55050 → nixos/redmine: add an extraEnv option, enable automatic log rotation → https://git.io/fhyp3
reinhardt has quit [Quit: Leaving]
orivej has quit [Ping timeout: 245 seconds]
bfrog has joined #nixos
<fengels>
ottidmes: seems to be DNS related since I can access the pages by IP
brejoc has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<ottidmes>
fengels: if you have such an error, try and test with `dig @8.8.8.8 google.com` and try the same with your ISP provided DNS, or your gateway (like 192.168.0.1) and see what the results are
endformationage has joined #nixos
init_6 has quit [Ping timeout: 250 seconds]
<fengels>
ottidmes: weird dig gives me no error but chromium returns with dns_probe_finished_nxdomain
brejoc has joined #nixos
<fengels>
ottidmes: and that's with the default DNS
ryantrinkle has joined #nixos
<__monty__>
Have you tried an alternative browser to see if it's just chromium?
<fengels>
ottidmes: with 1.1.1.1 as DNS chromium and Firefox seem to behave fine again
<fengels>
__monty__: yeah it's both browsers, it's hard to find pages to test on because magically a page loads sometimes for a while
<__monty__>
Do you do local dns caching?
cantstanya has quit [Remote host closed the connection]
<fengels>
__monty__: that's nscd right? If so then it says it's running
<__monty__>
I'm not sure how much dns caching that does? I know it's necessary for avahi.
cantstanya has joined #nixos
<__monty__>
Haven't the faintest as to your issue though.
<Taneb>
If I want to have a python library link a .so dynamic C library, what's the best way to make sure that people using the library can find it?
<fengels>
__monty__ I'll just figure out how to set DNS globally with Networkmanager ans that will be a good enough workaround
<symphorien>
Taneb: hardcode its path in the python file which opens the library
<fengels>
__monty__: ottidmes: funny thing is I can't even connect to my router
<__monty__>
fengels: But you can ping the wider internet? Very weird.
<__monty__>
Also impossible, no?
jabranham has joined #nixos
<fengels>
I can ping my router through IP but not name
<fengels>
And 192.168.2.1 in the browser redirects to speedport.ip which then my browser can't resolve
<fengels>
Ping also fails at resolving but dig can find the correct ip of everything
o1lo01ol1o has joined #nixos
<ottidmes>
fengels: https://serverfault.com/questions/813158/dig-works-but-ping-does-not-resolve-host this answer and the comments underneath it seem to indicate that it might be the issue that one of your other DNS servers is failing, try and only have one DNS server listed in resolv.conf, e.g. 1.1.1.1 since that one seemed to work for you
<__monty__>
Does nixos use systemd-networkd? Cause then you shouldn't edit resolv.conf manually afaik?
<ottidmes>
__monty__: networkmanager is being used by fengels so systemd-networkd is not used afaik
<fengels>
Is there anything I perhaps should be using instead of Networkmanager nowadays on a laptop.
<fengels>
It's just the one I'm used.
<__monty__>
NM's fine.
<ottidmes>
fengels: its indeed got to be a software issue, but its hard to pin point those issues, could be just a matter of the kernel being configured differently on NixOS or some other piece of software
brejoc has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<fengels>
monty: ottidmes thanks to both of you for helping me
erasmas has joined #nixos
<immae>
Does anyone use nixops in "multi-user" environment? (i.e., several people may deploy to the same server from different locations) I read somewhere that it’s not supported (i.e. one nixops state expects to be the only one touching that), how do you handle this situation?
brejoc has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Serus>
so joepie91 has been selling this to me, and I'm pretty sold so far
<Serus>
But I still have a few questions
<simpson>
We have a few answers.
<Serus>
I want to setup a server that solely exists for logging, and all other servers I setup would connect to that server via syslog-ng, is such a usecase easily supported in nixos?
<simpson>
I've never done anything like that, but it sounds plausible. What kinds of problems have you experienced with this on other distros?
<Serus>
Not necessarily a problem with that exact usecase, but keeping servers in sync in terms of configuration has been entirely manual so far
<Serus>
And I like the servers to do that work for me, which is where I was sold on this
<joepie91>
that sounds like the kind of case where you'd use NixOps
<joepie91>
you can directly reference the machine names of other machines afaik (as they are added to the hosts file), but in my setup I use an internal tinc VPN so I have the internal IPs of each machine separately declared in a file
<joepie91>
ah, judging from my note the /etc/hosts stuff doesn't work :)
<joepie91>
it's in the manual though afaik...
<gchristensen>
what is the story behind the name "cryto"?
<joepie91>
gchristensen: none; fairly randomly picked like a decade ago
<joepie91>
sounded neat
<joepie91>
did not realize the name collisions :P
xtatiKgriD has quit [Quit: Lost terminal]
<gchristensen>
ah, I was sort of expecting something about it being a jokey take on broken crypto
<joepie91>
heh, nah
<joepie91>
you overestimate my naming cleverness :D
<simpson>
Serus: Bare metal, cloud, etc.?
<Serus>
bare metal
<gchristensen>
joepie91: I should have known, given your avatar is coffee, pie, and 91.
<joepie91>
hehe
o1lo01ol1o has quit [Remote host closed the connection]
sigmundv_ has joined #nixos
<simpson>
Serus: I haven't found tools I like more than git and ssh for bare-metal management. If nixops or disnix work on bare-metal though then that might be worth trying.
<joepie91>
simpson: nixops does; you can point it at any existing NixOS installation with SSH access and it'll take it over
<joepie91>
(this is a bit sparsely documented but it definitely works)
<joepie91>
this is how all my stuff is set up in fact :P
<simpson>
Admittedly this is more because of NixOS' power than because of problems with other tools; were this Debian or Ubuntu, something like Puppet or Terraform might be worth the time investment. But Nix is more reliable than those.
<simpson>
joepie91: Oh, cool.
<joepie91>
simpson: on the first connection it'll also set up a key specific to that server, and will roll its public part into the deployment, so that for future deployments you don't need your 'seed' key (read: normal SSH keypair) anymore
<joepie91>
the keypair is then just a NixOps resource
<joepie91>
so a typical deployment on a VPS provider or a dedicated server provider or w/e is to place an order, load a custom ISO (or maybe nixos-infect), set up a really barebones system with SSH access through your keypair, and then run the initial deployment; and then you're done
ryantrinkle has quit [Ping timeout: 240 seconds]
<Serus>
How hard is it to write your own nixops packages?
Makaveli7 has quit [Quit: Leaving]
<joepie91>
Serus: NixOps doesn't have its own packages; it's just orchestration automation around a NixOS-based configuration really
<Serus>
For both existing packages, and custom software
<joepie91>
so you have a bit of wrapper code (also written in Nix, the language) that defines the machines that exist, and the value of each machine is a NixOS configuratioin
<joepie91>
configuration*
<joepie91>
and so it can use everything that's in nixpkgs, the default package set for NixOS
<joepie91>
and any custom Nix packages
<Serus>
right
<joepie91>
writing *NixOS* packages varies strongly in difficulty
<simpson>
Serus: I wrote two Nix derivations last night while half-asleep. One of them was a Node application, which meant that I added a line to a JSON file and waited 30min to scrape npm. The other was standard autoconf and took maybe 5min.
<joepie91>
the writing of packages itself is fairly easy, but a) the documentation for 'standard library' functions etc. is still very incomplete, and b) if applications vomit state all over your system it can be hard to contain them into a stateless, isolated package
<joepie91>
Node applications are indeed very easy, it's basically an automated process; same for a few other languages that have their own registry system and for which conversion tools exist
<Serus>
For example I have some highly customized configs for some software, like ssh, and nixos doesn't seem provide nearly enough customizability as far as I can see
<joepie91>
but if you look at eg. KDE or GNOME stuff it tends to involve a loooooot of hacks to keep it from shitting state everywhere :P
<joepie91>
Serus: oh, for that almost every service just has an 'extraConfig' option or so
<joepie91>
you paste your custom configuration lines in there and that's it
<Serus>
and it overwrites them?
<simpson>
Adding new functionality to existing NixOS service modules is straightforward and a great way for beginners to get into writing Nix.
<ajs124>
Serus, run-time or compile-time configuration?
lfish has joined #nixos
<joepie91>
Serus: generally appends, unless that doesn't make sense for a particular application in which case it'll usually overwrite (this is usually in the option description)
Makaveli7 has joined #nixos
<Serus>
ajs124: config file values
<joepie91>
Serus: I can also heartily +1 what simpson said :)
<Serus>
idk what ssh does in case there's a value with the same key later in the config
<simpson>
Usually the extra config lines are merged in. It's a common pattern that if multiple modules define the same thing, then the values will get merged somehow. (You can know for sure by reading the option types in the manual or source code.)
<{^_^}>
#53024 (by ajs124, 4 weeks ago, open): sshd: Add user options for ForceCommand and ChrootDirectory
<joepie91>
Serus: anyway, a key thing to keep in mind is that everything is code; which means that each service/application interprets and translates configuration options in whatever way is most sensible for that particular service/application, it's not decided by Nix how that translation occurs
<lfish>
hello. Ruby bundle is working correctly only once in a project, if you change the Gemfile and `bundle install` again then it tries to write to nix store. By the way, gem install works just fine. Any ideas about what might be happening?
<joepie91>
you'll see the same in how Nix elsewhere; Nix is more like a language runtime that happens to produce builds
<joepie91>
all the heavy lifting in terms of build and configuration logic is defined in the package set itself, in whatever way makes most sense for a given case
<joepie91>
in how Nix works elsewhere*
<dmj`>
Has anyone launched an Ec2 instance into an already defined VPC with nixops before?
<Taneb>
immae: setting up a multi-user nixops environment is something I'd like to know too
<joepie91>
Taneb: as in, multiple people can deploy from different systems?
<Taneb>
joepie91: yeah
<joepie91>
Taneb: so how NixOps works right now is that it has an on-disk state database, and that contains all the necessary state to do a deployment correctly; there's no replication mechanism for that that guarantees things won't go out of sync or conflict
<joepie91>
Taneb: so the only certainly-safe option at the moment is to have everybody run the deployment from the same central machine
<dmj`>
Taneb: that's exactly what my setup is, I have two different access key ids
<Serus>
does nixos have a license restriction for packages?
<Serus>
Like no non-free software
<joepie91>
Serus: packaging proprietary software in nixpkgs is something that's a little frowned upon though not forbidden (and there's an 'unfree' flag and you do need to set a flag to make unfree software installations possible)
<immae>
For now, I’ll synchronise with my mate before each deploy, but if I can find an automated way, it would be better
<joepie91>
Serus: but you don't need to rely on just what nixpkgs provides; you can easily specify custom packages locally
<joepie91>
even specific to your NixOps configuratioin for example
<Taneb>
Serus: wikipedia suggests onlyoffice's desktop version is AGPL
<Serus>
I have it running on my nextcloud setup
<Serus>
on an arch server
<Taneb>
Ah, right
<joepie91>
Serus: keep in mind that you don't *need* to publish a package to use it yourself; it's not the "define remote repositories and install only from that" model that most distros follow in some fashion
<Serus>
it did require me to make some changes to it to get it to run, but a nix package would be cool
dejanr has quit [Ping timeout: 250 seconds]
<joepie91>
Serus: it is 100% possible to package the thing directly from within your nixops config and never publish it anywhere
<gchristensen>
I do this withlots of software, myself
<joepie91>
since 'packaging' just involves writing Nix code
<laas>
what package includes the pkgconfig file for openssl?
<gchristensen>
openssl.dev probably, laas
<Serus>
qyliss^work: oh, looks like it
<tilpner>
,locate openssl.pc
<{^_^}>
Found in packages: openssl.dev, libressl.dev, openssl_1_1.dev, libressl_2_6.dev, libressl_2_8.dev, openssl-chacha.dev
<laas>
thanks
<laas>
I searched for openssl but couldn't find it
<gchristensen>
what are you trying to do?
<gchristensen>
usually, just referencing openssl will do the trick
<laas>
well it's for rust
<Serus>
only thing I'm missing in onlyoffice is documentation and syslog support
<gchristensen>
ah
<Serus>
unless the syslog support is there, which is a better argument for documentation
<joepie91>
Serus: but yeah, I feel like your underlying question is "are there limits to what software I can reasonably get running on NixOS" - to which the answer is "no, not really, unless it's so poorly designed that you need to implement a lot of hacks to get it to behave without spewing all over the system"
griff__ has joined #nixos
<joepie91>
licensing is certainly not a problem
<{^_^}>
[nixpkgs] @pSub pushed to master « pfstools: port to qt5 (#33248) »: https://git.io/fhyj5
<joepie91>
hell, there are some package definitions in nixpkgs for proprietary games that don't even include a link to the source; just a "please add the installer to your store first" note and then it uses that
sigmundv_ has quit [Ping timeout: 245 seconds]
<joepie91>
so long as you can *somehow* define a way for Nix to get at the 'source', whether it be as a local file or over HTTP or whatever, it will work
<tilpner>
Serus: There definitely is software I gave up on packaging just because it would be such a pain to patch everything just right
<joepie91>
(for the record, I feel like it's mostly desktop software that's problematic to package; server software seems to mostly behave)
<joepie91>
(in my experience anyway)
<laas>
how do I install the openssl.dev package? I can't find it anywhere
griff_ has quit [Ping timeout: 246 seconds]
griff__ is now known as griff_
<qyliss^work>
laas: how are you using Rust?
<symphorien>
,libraries laas
<{^_^}>
laas: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<simpson>
Serus: As an example of a package which does not play nicely with Nix's isolation, Steam does not work on NixOS as-is at all, and must be placed into a fake FHS-compatible user environment.
<laas>
qyliss^work: I'm just using rustup directly
<laas>
carnix didn't work
<laas>
symphorien: I realize that but I first want to find the package lol
<joepie91>
oh, Rust
<joepie91>
uh, one sec
<ottidmes>
laas: just add pkgconfig and openssl to buildInputs like you would for any other package, if you use rustPlatform.buildRustPackage at least.
<joepie91>
I don't recall why I did it that way but it should work
<laas>
thanks
<ottidmes>
laas: here is an example of what I have used: https://github.com/msteen/nix-update-fetch/blob/master/default.nix just replace ncurses for your openssl dependency, note that since I needed to use some of the latest Rust features, I did have to add RUSTC_BOOTSTRAP = 1; and I had to build it using nixos-unstable
jevonearth has quit [Quit: Leaving.]
<ottidmes>
laas: since some packages used edition = 2018 which is only supported in the latest stable rustc on nixos-unstable
jevonearth_ has joined #nixos
<{^_^}>
[nixpkgs] @vbgl opened pull request #55053 → mkDerivation: cleaner handling of the `name` argument → https://git.io/fhSet
<Serus>
simpson: well, I want to use nixos for servers anyway, no need to run steam on a server
<joepie91>
laas: btw, for installing Rust, I can strongly recommend Mozilla's nixpkgs overlay :) which provides all the same packages as rustup, but integrated into your Nix config
jevonearth_ has quit [Client Quit]
<tilpner>
And you already have mozillas overlay setup if you have the nur installed
Ariakenom has quit [Ping timeout: 250 seconds]
<tilpner>
E.g. nur.repos.mozilla.rustChannels.beta.rust
sigmundv_ has joined #nixos
<ottidmes>
I like the mozilla overlay for its dev tools, but I do try to keep it all working with the stable rustc release on nixos-unstable, so packages can actually be put into Nixpkgs
<joepie91>
ottidmes: good thing we have nix-shell then ;)
<ottidmes>
joepie91: I do indeed use nix-shell to put those dev tools to use, but what did you mean by it? its not like nix-shell solves the "keep things working under the constraints of what is in Nixpkgs right now"
griff__ has joined #nixos
<joepie91>
ottidmes: as in, you can test anything you build by instantiating a nix-shell with nixpkgs Rust and seeing if it still works/compiles
noonien has joined #nixos
sicklorkin has quit [Remote host closed the connection]
<ottidmes>
joepie91: I actually use nix-shell only for development, and nix-build to test if it works under Nixpkgs, because I know from many stories here on the IRC, nix-shell != nix-build in terms of making sure things build
<joepie91>
ottidmes: hm. that sounds like a bug in nix-shell...
knupfer has joined #nixos
<Taneb>
Hmm, what if there was a sort of nixops serivce running on one machine, and to use nixops people on other machines could via the network use that service...
<ottidmes>
joepie91: things like lack of sandboxing, poisoning caused by the environment, anyway, its just as simple and effective to test with nix-build for release kind of builds
<ajs124>
you can always reboot by writing to /proc/sysrq-trigger
magnetophon has joined #nixos
<noonien>
oh, forgot about sysrq+REISUB
<Synthetica>
fengels: can I just put that in system packages?
Makaveli7 has quit [Quit: Leaving]
o1lo01ol1o has joined #nixos
seku has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
tertl3 has joined #nixos
<mpickering>
Can you use nix run as a script interpreter like you can with nix-shell?
agander has joined #nixos
<fengels>
Synthetica: Just tried and that doesn't seem to exist, I'm not sure where the Wayland plugin is hidden then
ThatDocsLady has quit [Ping timeout: 252 seconds]
rcshm has joined #nixos
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
<{^_^}>
[nixpkgs] @vcunat pushed 2 commits to staging-next: https://git.io/fhSvC
kisonecat has joined #nixos
<noonien>
where do you guys mount your external drives?
<noonien>
under what path?
<gchristensen>
I just mount them to /mnt
<noonien>
on ubuntu, it usually happened in /media/user/label
<noonien>
on the nixos livecd, with plasma, i saw they got mounted in /run/media/user/label
<gchristensen>
seems reasonable, mine don't get automounted
<noonien>
what DE are you running?
<gchristensen>
I use i3
thibm has joined #nixos
<slabity>
Is it possible to have multiple Nix stores on a single machine? I'd like to put a read-only one on an SD card that I can move between systems
agander has quit [Ping timeout: 250 seconds]
johnnyfive has quit [Quit: I quit now.]
<makefu>
slabity: what the nixos iso is using is overlayfs, so you an have a "lower" store which contains read-only packages and a write-store on top of it.
<samueldr>
using udisksctl mount will mount disks like a DE would, under /media/$USER/something
dermetfan has joined #nixos
<samueldr>
(also gives the right access rights if needed, etc)
<samueldr>
no need to sudo to use it
maximiliantagher has quit [Ping timeout: 240 seconds]
aleph- has joined #nixos
<noonien>
samueldr: oh, awesome!
<noonien>
didn't know about udiskctl
iqubic has joined #nixos
<noonien>
i want to mount an ext4 to be accessible by my user without sudo-ing
<samueldr>
the first part makes it mount simply to /media/$volume_name, the scond part is a bind mount, and *somehow* most tools show /Volumes instead of /media, don't know why they would
dermetfan has quit [Client Quit]
lassulus has quit [Ping timeout: 268 seconds]
dermetfan has joined #nixos
lassulus_ is now known as lassulus
Ariakenom has joined #nixos
cyphase has quit [Ping timeout: 268 seconds]
<slabity>
makefu: Thanks. I'll look into that.
orivej has quit [Ping timeout: 240 seconds]
<noonien>
samueldr: nice configs, they seem pretty comprehensive!
<gchristensen>
samueldr: are you macosing your system?
<thibm>
slabity: you can mount bind the store, but take care of NIX_IGNORE_SYMLINK_STORE (look at man pages of any nix tool). And that may not be a good idea to do at runtime
<samueldr>
my linux kernel is basically behaving like a rootkit and simply omits reporting some paths
<gchristensen>
oh gobohide
<samueldr>
otherwise called the gobohide patches borrowed from gobolinux
<gchristensen>
*stare*
<samueldr>
to be fair, there really isn't a /home/, my home really is under /Users/
shibboleth has quit [Remote host closed the connection]
<gchristensen>
imagine this: a nixos bootloader which let you specify a nixos config on github, and it nixos-rebuild-switch'd to it
shibboleth has joined #nixos
shibboleth has quit [Remote host closed the connection]
<gchristensen>
chromebook-style
<samueldr>
I also considered /Documents and Settings/
<samueldr>
but without the C: beforehand it's less powerful
* samueldr
is thinking about remounting everything under /C:/
<samueldr>
udisks would need to be patched to mount drives with D:++ names
<gchristensen>
nixos hackers are the best/worst :P
<noonien>
i've been running nixos in a VM for a few days, just switched to it on my local machine
bfrog has joined #nixos
<noonien>
when i get some time, i'll probably try to find a way to embed secrets in my nixos config stored on github
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 268 seconds]
<noonien>
for user/hostnames, wifi passwords, maybe even ssh keys, even though that might not be such a good idea to guard with just a passphrase
lassulus_ is now known as lassulus
<noonien>
i really like how LUKS does encryption, i'll probably end up just tar-gz-ing then just AES-GCM with an argon2id generated key from a passphrase
ZeDestructor has quit [Quit: o.O]
ubert has quit [Quit: Leaving]
ubert has joined #nixos
<gchristensen>
btw, Soong?
<noonien>
yeah :D
orivej has quit [Ping timeout: 272 seconds]
<gchristensen>
nice, I also chat with your progeny in another channel :)
shabius has quit [Quit: Leaving]
maximiliantagher has joined #nixos
ubert has quit [Client Quit]
<noonien>
hehe, they have a mind of their own
<samueldr>
Data, Lore or one of the augmented humans?
<noonien>
careful, one is really mischievous
<gchristensen>
commander data, in #sparkfun :P
<noonien>
all of them, by design
<noonien>
hehe
<noonien>
oh, TIL about sparkfun
<noonien>
didn't know they have an irc channel
ZeDestructor has joined #nixos
bfrog has quit [Quit: WeeChat 2.3]
<gchristensen>
:)
<aleph->
Hmm, anybody see why is failing? Got the correct sha256 but the queried url just 404's.
<gchristensen>
I think fetchPypi probably takes name not pname
<gchristensen>
no?
appleclusters has joined #nixos
<thibm>
I'm trying to write a derivation for a proprietary software. I'm actually doing the installation inside a FHS-compatible sandbox (with buildFHSUserEnv) and that works well!
<thibm>
The problem is that at some point it tries to writes to /var/empty/.somestuff and that does not work. So far it's still good, but afterwards it tries to read those files again and fails.
<gchristensen>
nothing should ever write to /var/empty
<thibm>
I know
<thibm>
It looks like /var/empty is the $HOME (and not /homeless-shelter), and I don't find any relevant reference to /var/empty in nixpkgs
reinhardt has joined #nixos
<thibm>
I tried to overwrite HOME environment variable, it did not work
<thibm>
Of course I cannot modify the software. I'm not sure where this /var/empty comes from so I cannot fix it. Does anyone have any idea?
<noonien>
does anyone have an example of a polybar instalation? (i'm interested in the config options)
<LnL>
homeless-shelter is HOME inside a build while /var/empty is probably the home directory of the build user
<gchristensen>
hmm maybe instead of the software, run `env` and see if it is in there anywhere?
<ajs124>
thibm, how did you set HOME? I had a similar problem (I think) and setting HOME fixed it.
<thibm>
LnL: it's really happening during the build
fresheyeball has joined #nixos
<fresheyeball>
so I installed that new graphics card
<thibm>
ajs124: I tried in the derivation itself (like any env var), in the installPhase, etc
<fresheyeball>
and this is a nixos success story worth sharing
<fresheyeball>
I am running nixos on my wacom tablet as well, and it's objectively done a better job than windows or osx
dermetfan has quit [Quit: WeeChat 2.3]
<thibm_>
The software is like using the home as a temporary directory -_-
<gchristensen>
"nixos on my wacom tablet" :'D I forgot about that!
<fresheyeball>
I am very happy with it
pbb has joined #nixos
<fresheyeball>
it was a bitch to get everything working, because it not well traveled ground
<fresheyeball>
but the result is reasonable, and stable
johnw has quit [Ping timeout: 252 seconds]
<aleph->
Interesting
<ldlework>
huh
thibm_ is now known as thibm
<fresheyeball>
It goes from power off to I'm drawing, in under 5 minutes
<ldlework>
5 minutes?!
<fresheyeball>
With windows I was waiting for it to update every time
<pbb>
I just ran a rebuild on one of my servers running NixOS 18.09 that I hadn't updated in a few days, and was surprised to find that it rebuilt *everything* down to every config file that shouldn't have changed.
<fresheyeball>
it recovers from suspend faster than it does on windows
<fresheyeball>
but I have not measured yet
dermetfan has joined #nixos
<fresheyeball>
So, at this point, it looks like we could run nix on basically any hardware on which we can run linux (excluding weird cpus ect)
<thibm>
Is it possible to creates a dummy /var/empty folder inside the FHS-compatible sandbox? Like with extraBuildCommands from buildFHSUserEnv? I could just make this folder exists for the installation (inside the chroot)
<thibm>
(I tried to do it in buildFHSUserEnv, does not seem to work)
<ajs124>
thibm, if it's really getpwnam and you're motivated enough, you can override that with an LD_PRELOAD hook
<pbb>
actually nix-collect-garbage seems to collect a lot that isn't garbage.
<pbb>
a whole lot
<thibm>
ajs124: sounds doable
<thibm>
sounds easier to dump a /var/empty directory in the chroot though
<thibm>
but thanks for the idea
cyphase has joined #nixos
<thibm>
Is there a writeCBin equivalent to create a shared library ? :D
<devalot>
Using NixOps on Ubuntu, getting error about missing the {kvm} feature. Where does Nix/NixOps pull this feature list from?
<symphorien>
derivations can declare a requiredSystemFeature
<aleph->
Okay what in the frag is with fetchPypi
<infinisil>
pbb: Then your definition of garbage doesn't match yours
<aleph->
Let me try a random other hash
<infinisil>
Um, nix's *
<pbb>
infinisil: actually changing "builtins.fetchGit" to just "fetchGit" for fetching my nixfiles fixed ot o.o
<symphorien>
devalot: kvm is required by nixos tests and all that runs in a vm in nixpkgs
o1lo01ol1o has quit [Remote host closed the connection]
<infinisil>
pbb: fetchGit uses ~/.cache/nix i think
<fresheyeball>
devalot: hey man
<devalot>
symphorien: I have kvm installed and working on this machine. How do I tell the nix install that this feature is present?
<infinisil>
Oh
<dhess>
Anyone around who's using nix-deploy?
<devalot>
fresheyeball: Hey there!
<infinisil>
pbb: what, builtins.fetchGit is different? O.o
<aleph->
Okay so pname was the issue
<aleph->
That was odd.
<infinisil>
pbb: Can you double check that that fixed it? Those should be the same
<symphorien>
devalot: maybe nix show-config ? but also /etc/nix/machines on the nixops machine
* devalot
may just make my coworker use NixOS instead of Ubuntu ;)
<pbb>
infinisil: yes. it also fixed a problem where my nixos-upgrade service was failing because it had collected the git derivation as garbage. I will check again.
<infinisil>
Derivations do get deleted by default, unless you change that setting
<devalot>
Which config option in Nix controls local features? I don't see anything in `man nix.conf'
<symphorien>
see the release notes of the last version of nix
<symphorien>
this changed
<pbb>
wtf now that I changed it back to builtins.fetchGit it's behaving as I want it again
<pbb>
I don't understand what was wrong before
<symphorien>
builtins.fetchGit needs git in PATH
knupfer has quit [Ping timeout: 264 seconds]
<symphorien>
it's a bit counterintuitive
<pbb>
yeah but now this works too, even though git is not in my system profile
<devalot>
symphorien: Ah, system-features
<pbb>
ah, nevermind
<pbb>
nixos-upgrade doesn't work
<pbb>
but it did not collect things as garbage that I didn't want it to collect
<{^_^}>
#54946 (by m45t3r, 2 days ago, open): nixos-upgrade.service: error: executing 'git': No such file or directory
<fresheyeball>
dhess: I have not used nix-deploy, but I am a nixops user
<fresheyeball>
nix-deploy looks like it could replace nixops
<pbb>
symphorien: thanks
<pbb>
that's indeed my problem, but I am only seeing it with builtins.fetchGit.
<pbb>
doesn't matter though
<dhess>
fresheyeball: yeah that's why I'm looking into it.
<fresheyeball>
both appear to be active projects
<WilliamHamilton[>
has anyone installed the videodownload-helper companion app for firefox in nixos?
<fresheyeball>
and I got respect for Awake for sure
<dhess>
ditto
<infinisil>
fresheyeball: does nix-deploy support having config from one machine depend on config of a different machine
<fresheyeball>
infinisil: I think we would just do that with nix code
<fresheyeball>
it deploys a configuration
<dhess>
fresheyeball: nix-deploy doesn't have any concept of a "network," as far as I can tell, so you'd need to script that bit; i.e., a script to deploy to multiple machines in one go.
<fresheyeball>
that is enough to have it deploy one config to one machine, and then pass that config to a function config -> config, and deploy to another machine
<dhess>
fresheyeball: also it has no support for secrets.
<infinisil>
fresheyeball: Yeah, I'm working on this actually :)
<dhess>
those appear to be the main drawbacks.
<fresheyeball>
infinisil: you are working on nix-deploy?
<infinisil>
Nah
dckc has joined #nixos
<fresheyeball>
infinisil: can you rephrase then?
<infinisil>
On an extensions of nixos-rebuild that can efficiently interlink configurations between machines
rawreraw has joined #nixos
lfish has quit [Ping timeout: 256 seconds]
<infinisil>
Like, depend on stuff in other machines
<dhess>
it also lacks some additional "porcelain" that NixOps provides, like group rollback.
<infinisil>
I switched to nixops because it can do that, but that's really slow
<dckc>
I'd like to install ROracle from CRAN (https://cran.r-project.org/web/packages/ROracle/ ); it depends on Oracle's liboci, so the generic R package builder isn't working. Any suggestions? Should I use `nix-store --add-fixed` somehow?
<dhess>
maybe I'll ask a different question: anyone around who's using something like Hashicorp Vault to deploy secrets to NixOS machines?
<fresheyeball>
dhess: I will soon
<dhess>
fresheyeball: oh interesting. Any plans to GitHub it, or at least blog about it?
<gchristensen>
dhess: LnL
<dhess>
gchristensen: which bit? :)
<LnL>
hm?
o1lo01ol1o has joined #nixos
<fresheyeball>
dhess: I have legions of shit I need to blog about
<LnL>
that way you can use nix expressions instead of the weird go templating, while still keeping the content safe
griff_ has quit [Ping timeout: 244 seconds]
<{^_^}>
[nixpkgs] @svalaskevicius opened pull request #55057 → Fix electron crash when using file chooser dialog → https://git.io/fhSfh
<dhess>
hmm yeah I didn't consider using Nix for templating.
<dhess>
I would probably look into using Dhall though
<noonien>
what terminal emulators do you guys use?
<dhess>
I'm trying to move more config to Dhall and then generate as much Nix from that as possible.
<gchristensen>
sakura, noonien. it is pretty good.
<__monty__>
noonien: I like terminology and kitty.
<thibm>
ajs124: trying with the LD_PRELOAD trick ;) I'll see the result later (each install takes a lot of time…). Thanks for the help, I hope that will be the last step to get it works
<noonien>
hmm, are there any packages for https://getstation.com/, i see a package for rambox, there might not be one, just asking
thibm has quit [Quit: WeeChat 2.2]
<tilpner>
I don't see one, but this is a perfect opportunity for you to test #54693
<tilpner>
You don't need to bother with platform selection here, since there only is one AppImage available anyway
<ddellacosta>
hi folks, can anyone suggest any pointers on where to start reading up on how to connect an old firewire interface via thunderbolt (if it's possible!) on linux?
<tilpner>
And you don't need to provide meta for a private-use package either
<noonien>
looks simple enough!
<noonien>
pretty great way to start writing my first derivation :D
<tilpner>
Well, no, not really. You see, appimageTools haven't been merged yet
<tilpner>
You would have to copy them locally, use them to package station, then report back on that issue so appimageTools can get merged and you can delete your local copy
ddellacosta has quit [Quit: WeeChat 2.2]
dsiypl4 has quit [Ping timeout: 250 seconds]
sigmundv_ has quit [Ping timeout: 240 seconds]
<tilpner>
But don't worry, I'll be here to help you with that, at least for a little while
magnetophon has quit [Ping timeout: 240 seconds]
ddellacosta has joined #nixos
<tilpner>
Have you discovered overlays yet?
dermetfan has quit [Ping timeout: 272 seconds]
freeman42x has joined #nixos
<{^_^}>
[nixpkgs] @veprbl opened pull request #55058 → ftgl: fix on darwin → https://git.io/fhSJc
wigust has joined #nixos
<noonien>
gchristensen: sakura seems awesome! but from what i can tell, it doesn't support settings colors through Xresources, do you know if this is the case?
realrokka has joined #nixos
wigust- has quit [Ping timeout: 250 seconds]
<gchristensen>
I think it does, but I dunno -- ... erm, I just use the standard colors of all the programs
<noonien>
hehe, ok
wigust has quit [Ping timeout: 246 seconds]
wigust has joined #nixos
<{^_^}>
[nixpkgs] @veprbl merged pull request #55039 → Added myself as a maintainer → https://git.io/fhybn
<{^_^}>
[nixpkgs] @veprbl pushed commit from @abhi18av to master « Added myself as a maintainer »: https://git.io/fhSJg
dsiypl4 has joined #nixos
johnnyfive has joined #nixos
MichaelRaskin has joined #nixos
<lejonet>
Anyone have any good tutorial on how to use the type submodule?
maximiliantagher has quit [Remote host closed the connection]
griff_ has joined #nixos
<lejonet>
strongswan-swanctl is whining at me bout it, but the nixos manual isn't really making me any wiser :/
griff__ has joined #nixos
griff_ has quit [Ping timeout: 246 seconds]
griff__ is now known as griff_
ddellacosta has quit [Quit: #linux]
ddellacosta has joined #nixos
<lejonet>
solved, the suffix wasn't as optional as it claimed :P
fusion809 has quit [Remote host closed the connection]
PLPD-Bot has quit [Remote host closed the connection]
fusion809 has joined #nixos
olto has joined #nixos
<Guanin>
Hi, is someone using `pass`? I'm trying to install pass and passExtension.pass-audit, but when adding both to my configuraion, nixos-rebuild fails with a collision between those derivations
orivej has joined #nixos
marcinja has joined #nixos
rawreraw has quit [Quit: WeeChat 2.3]
PLPD-Bot has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<iqubic>
How does one go about installing Dejavu-sans?
Thra11 has joined #nixos
<kurimi>
Hello!
<symphorien>
I think it is already the default
isHavvy has joined #nixos
<dmj`>
gchristensen: yes, it is very complicated
<gchristensen>
it is basically as flexible as if you had a full network closet
Havvy has quit [Ping timeout: 245 seconds]
<dmj`>
gchristensen: yea, exactly
<petersjt014>
could someone with access to the build machine double(ish) the timeout for the aarch64 build (again?) It's getting closer but still timing out:
<dmj`>
gchristensen: I don't think nixops covers the gamut of options though
<dmj`>
gchristensen: which is not good since I need to deploy into someone elses vpc
<dmj`>
gchristensen: but it doesn't allow that
<dmj`>
gchristensen: so I have to go through and mimic all the rules
<gchristensen>
it doesn't
<gchristensen>
ouch
<dmj`>
You can either create a vpc, or it will attempt to use the default one if it exists
<dmj`>
but doesn't allow to specify an existing one
<gchristensen>
pretty sure if you specify a subnet_id it'll "just work"?
<aminechikhaoui>
yeah that's the state of most of the nixops resources :/ I just did the same for VPCs
olto has quit [Ping timeout: 245 seconds]
<dmj`>
aminechikhaoui: you went through and mimicked an existing configuration? Or you just specified the subnet id ?
<iqubic>
How does one go about installing the DejaVu-Sans font?
<dmj`>
gchristensen: I still can't specify a security group that exists already
<gchristensen>
specify the security group ID?
<gchristensen>
should work
<aminechikhaoui>
dmj` I meant most of nixops resources don't support importing a resource, so I didn't implement that when I added the VPC resources
<aminechikhaoui>
in theory it should be possible
<dmj`>
aminechikhaoui: thanks for implementing the vpc infra in nixops
<dmj`>
aminechikhaoui: it should be possible to import resources from an existing vpc?
<aminechikhaoui>
"in theory" :D just not implemented
<dmj`>
heh :)
<gchristensen>
but still
<gchristensen>
yous hould be able to just specify th esgid
elgoosy has quit [Remote host closed the connection]
<dmj`>
gchristensen: ok, so I'm querying the existing network setup with the awscli tool, I'll set deployment.ec2.subnetId and .securityGroupIds and try to deploy
<dmj`>
gchristensen: keypair should be created by me iiuc
<thoughtpolice>
It's hard to overstate how difficult it would have been to reliably put all the moving pieces here together without Nix.
jtcs has joined #nixos
jacereda has quit [Ping timeout: 240 seconds]
<gchristensen>
WOW
kenshinC1 has joined #nixos
<thoughtpolice>
Considering it's multiple pieces of different academic software with intertwined dependencies, two compiler ports, an array of demos and toolchain needs, etc. I cannot fathom doing things like this without Nix now.
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<thoughtpolice>
Oh, and a code generator (or 3)
<gchristensen>
this is yours, thoughtpolice?
<cransom>
is my browser mining bitcoin now?
<gchristensen>
thoughtpolice: what should I say about this, when sharing it with people?
<thoughtpolice>
Yep
<thoughtpolice>
I mean, it's mine, yes. Also you can say whatever you like! @stdlib if you need a name on the Tweetoverse
<gchristensen>
yeah, but in terms of cool teaser words :)
<thoughtpolice>
cransom: No, but you can run a benchmark from 1984 on an emulated CPU on an abstract instruction set inside a web browser that's compiled to real code at runtime that your operating system then runs on your own hardware.
<infinisil>
thoughtpolice: Nice!
<thoughtpolice>
It's not mining bitcoin, but it's about as energy efficient.
<kenshinC1>
I'm trying to try our Rust, and I wanted to use Idea as an IDE. Looks like I need to give Idea a path where it can find rustc, cargo and the standard library. How can I do that without installing everything in my user environment, but ideally in a shell or something?
<infinisil>
thoughtpolice: Are the Nix files online?
appleclusters has quit [Quit: Connection closed for inactivity]
<thoughtpolice>
gchristensen: Ah, just something like -- "A full 32-bit RISC-V simulator, built and delivered to the browser, with Nix!" maybe? :)
<gchristensen>
thanks!
<thoughtpolice>
infinisil: Not yet, but that's not due to a technical limitation so much as an operational one.
<emily>
thoughtpolice: wow this is so cool!
jacereda has joined #nixos
<thoughtpolice>
Basically, I'm using GitHub's new Actions thingy to do some deployments, e.g. I want it to deploy that webpage, and a Docker container (buildLayeredImage is amazing btw, gchristensen!)
jacereda has left #nixos [#nixos]
<gchristensen>
yay!
<thoughtpolice>
So it has some credentials in there, right. Like it invokes a thing to copy a docker image to Docker Hub right now
<thoughtpolice>
But I'm not super sure about how GitHub action's log permissions work, or whether the way I'm using skopeo might expose some of my keys
<thoughtpolice>
So I'm basically just testing things atm before doing that.
<gagbo>
very naive question : I've learned about guix recently, and I've been wondering ever since why Nix chose to use its own language for declarations. Were lisps not good enough ?
<thoughtpolice>
(GitHub basically can encrypt some things and decrypt them on-demand for a few actions, like a Docker Hub upload -- but I end up passing those keys through a command line, not an environment variable, at the end of it -- so I don't know like, if a non-zero return code, or a 'set +x' will expose things, you know?)
jonreeve has joined #nixos
<gchristensen>
gagbo: guix was forked from nixos / nix
<thoughtpolice>
infinisil: But I might just rip out the Docker container thing for now and publish it. I still need to do the same thing for Cachix, unfortunately. But once I do it, ideally Nix projects can use GH actions to do cache uploads!
<gchristensen>
gagbo: so your question about why Nix chose to make its own language is similar to why did any language choose to make their own instead of choose a lisp
<thoughtpolice>
Cache uploads are really useful here since a lot of things have to be built...
<thoughtpolice>
emily: Thanks! I'm surprised at how fast it came together, actually.
shabius has joined #nixos
<emily>
gagbo: Nix has a fair number of properties that are nice for its use-case but not common in general
<emily>
like the lazy evaluation semantics
endformationage has quit [Ping timeout: 250 seconds]
<thoughtpolice>
The instruction decoder (generated from a Haskell program) and most of the execution engine worked first try, nearly. In fact the only reason the RISC-V upstream tests didn't pass the first time was because they violate C ABI rules which caused failures ;)
<jonreeve>
Can anyone manage to install Clay successfully? Using, say, nix-env -iA `haskellPackages.clay`?
<dmj`>
thoughtpolice: this is pretty sick, bravo
<infinisil>
jonreeve: Better just post the problem you're having
<gagbo>
fair enough gchristensen, it's just that the tooling is not the same, and I didn't mean it in a "why not Guile way ?" but more in a "why choose to have to work on addtional stuff ?" way
<gchristensen>
gagbo: I understand
<gchristensen>
gagbo: for a build system which carefully tracks dependencies as part of the language, I think a language of its own is very natural
<gchristensen>
nix is quite unique in some important ways
drakonis has joined #nixos
<emily>
if Nix had just embedded Lua or something it'd probably be a fair bit less usable, even if it didn't require hacking up the interpreter too much
<emily>
not that the Nix language itself is... great
<emily>
(but I don't think Scheme really solves many of its problems)
<gagbo>
I guess I'll learn about those features as I use it, it's just hard on a starter :)
<emily>
remember that it also doubles as a system configuration language
<emily>
the lightweight notation for nested recursive data makes it way more suitable than your average programming language or data language for this
<makefu>
in the end, nix is a domain-specific language with the domain being software packaging and system configuration
<thoughtpolice>
Well, that's its primary use. But actually it's also just really good at reliably describing dependencies between any two commands. (As long as those dependencies can be expressed with a file. And Everything Is A File(TM)*)
<thoughtpolice>
* Not Everything Is A File
<infinisil>
jonreeve: Yeah, Haskell packages sometimes need some fixing. It seems that nixpkgs has newer versions of these libraries, so we need to `doJailbreak` it, which removes the packages version constraints, and then hope for it to compile
<gagbo>
I'll continue to play in vms until I understand how to make it work the way I want anyway, I was just wondering because I keep getting errors because of stupid mistakes I make (like each time I go into a new language)
<MichaelRaskin>
gagbo: I would say that for a long time, and even now, Nix tries to deny it has to be a general-pure-functional-purpose programming language, too
<MichaelRaskin>
Using any general purpose language would be a capitulation on that point
<rain1>
the thing I d'nt really get about nix is how indirection is supposed to help
<rain1>
same with guix
<rain1>
instead of writing X directly you write some nix/scheme code that gets turned into X
<thoughtpolice>
gagbo: I think in the end, Nix and Guix are simply two ways to one goal. The ideas behind them, in my mind, reflect a lot of the differences between Scheme and Haskell, actually. (Yes, Haskell is typed and Nix isn't, but that isn't so important here). In the Haskell world, lazy structures give rise to APIs that you define in a language like scheme using macros -- declarative ones
<thoughtpolice>
Because declarative APIs, like the ones Nix and Guix have for, say, defining packages, fundamentally require the ability to kind of define your own DSLs and control structures.
<infinisil>
jonreeve: What does `nix-shell -p nix-info --run nix-info` output? You can paste it in here directly
<MichaelRaskin>
Unlike Haskell, here the complete purity and resulting calculation-action separation makes a lot of sense from the get-go…
<thoughtpolice>
I think it's reasonable to fall into either camp and like either approach. If you have laziness, a lot of forms of macros become less useful. If you have macros, maybe laziness isn't as readily needed for you!
Dagger has quit [Excess Flood]
<gagbo>
I don't know yet enough about 'languages theory' I guess; I'll just take your word for it :)
<thoughtpolice>
I think spinning Nix and taking it the language to a well known, full blown programming language is an interesting point in the design space. Personally I don't know Scheme very well and I found Nix first (Guix has always been a smaller community, and Nix is already pretty small), and I'm a Haskell programmer, so -- well, that about says it.
Dagger has joined #nixos
eadwu has joined #nixos
eadwu has quit [Client Quit]
<infinisil>
thoughtpolice: MichaelRaskin: gagbo:Btw, there's #nix-lang if you want a channel explicitly for nix as a language
digitalgrease has joined #nixos
eadwu has joined #nixos
<gagbo>
I'm good for now, I'm still way too bad at installing nixOS in a VM, need to work on that :p
vk3wtf has joined #nixos
kenshinC1 has quit [Quit: WeeChat 2.2]
isHavvy has quit [Ping timeout: 244 seconds]
ddellacosta has quit [Ping timeout: 272 seconds]
Havvy has joined #nixos
<Judson1>
Hm. I'm taking weechat for a test drive. Two initial negative impressions: I can't find all the default color aliases so that I can change them to work with my solarized terminal. And "don't edit the configs by hand" and home-manager seems like it might be a bad match.
<{^_^}>
[nixpkgs] @pSub pushed 0 commits to update-calibre: https://git.io/fhSTI
<dmj`>
gchristensen: specifying the subnetId and securityGroupIds (one for theirs, the other to open 22), allows the instance to be deployed, but it just hangs on "Waiting for SSH...."
<{^_^}>
#30011 (by vaibhavsagar, 1 year ago, closed): plasmashell crashing on NixOS 17.09
<vaibhavsagar>
I prefer not to use `nix-env` for anything
<vaibhavsagar>
if you're running NixOS this should actually be doable
<fresheyeball>
vaibhavsagar: agreed
<vaibhavsagar>
eacameron: it might be something else, but you might be able to get more info by running one of these applications from the terminal and looking at the output when it crashes
<eacameron>
vaibhavsagar: I am. What is the alternative? adding things to `configuration.nix`? I like to use things from nixpkgs-unstable but I suppose I could pull them in there
<vaibhavsagar>
eacameron: create a `shell.nix` and use `nixpkgs-unstable` in your expression
<vaibhavsagar>
between `configuration.nix` and `nix-shell` there's almost no reason to use `nix-env`
<eacameron>
vaibhavsagar: nix-shell nested is not very good... :(
<vaibhavsagar>
not as bad as `nix-env` :)
<eacameron>
I guess I could use environment.systemPackages to pull in drvs from nixpkgs-unstable
<vaibhavsagar>
sure
<eacameron>
But you think the issue is *unique* to nix-env?
<vaibhavsagar>
no, I actually have no idea why this is happening
<vaibhavsagar>
but I've personally experienced weird crashes related to my use of `nix-env`
<vaibhavsagar>
so I don't use it anymore
<eacameron>
hm, well I could be convinced not to ... heh
<fresheyeball>
nix-env is imperative and does not accompany a git commitable artifact
<fresheyeball>
you should avoid it on principle
<eacameron>
I use nix-env in such a way that it is immutable.
<vaibhavsagar>
what does that mean
<fresheyeball>
if you need something now, and want to use <nixpkgs> do nix-shell -p instead
<fresheyeball>
eacameron: I got it, I was passing allowUnfree = true
<fresheyeball>
when I should have been passing config.allowUnfree = true
<fresheyeball>
to my import
<Judson1>
gagbo, thanks. That's helpful.
<eacameron>
fresheyeball: oh I see
<Judson1>
I've started messing with a setup that'll let me drop files I'm not ready to turn into module templates yet into a directory. The next step, I think, is going to be a little shell function or something to replace the home-manager link with a copy of the file.
<Judson1>
But weechat is its own league wrt to configuration. I'm not sure it's where I want to be :/
<Judson1>
And I'm sure it will be sad if I /set things and its configs are read-only.
<gchristensen>
error: a 'x86_64-linux' with features {} is required to build '/nix/store/bkzpx0sazf7f38acvzxkkg26mxnx5h76-append-initrd-secrets.drv', but I am a 'aarch64-linux' with features {benchmark, big-parallel, nixos-test} this error is SO NICE.
Havvy has quit [Ping timeout: 240 seconds]
<clever>
gchristensen: :D
griff_ has joined #nixos
rwe has quit [Ping timeout: 245 seconds]
<clever>
gchristensen: how up to date are you on the cross-compile stuff? i need both a cross and native compiler in the same stdenv
<gchristensen>
notat all :)
shlevy has joined #nixos
jonreeve has quit [Ping timeout: 250 seconds]
maximiliantagher has quit [Read error: Connection reset by peer]
_kwstas has quit [Quit: _kwstas]
Havvy has joined #nixos
dermetfan has quit [Ping timeout: 250 seconds]
lord| has quit [Quit: WeeChat 2.3]
Makaveli7 has joined #nixos
Havvy has quit [Ping timeout: 240 seconds]
timor has quit [Remote host closed the connection]
lord| has joined #nixos
ryantrinkle has quit [Ping timeout: 246 seconds]
martinb_ has joined #nixos
<clever>
gchristensen: dang!, haskellPackages.pipes-async fails to build on master
lassulus has quit [Ping timeout: 244 seconds]
rwe has joined #nixos
Havvy has joined #nixos
<clever>
8.6.3 is too new
balsoft has joined #nixos
lassulus has joined #nixos
balsoft has quit [Remote host closed the connection]
ddellacosta has joined #nixos
knupfer has quit [Ping timeout: 250 seconds]
<clever>
haskell.packages.ghc862.pipes-async might work then
<teeAyy>
howdy, ive included tewi-font in my list of packages for home-manager to install, but it wont show up in xfontsel, is there any xserver settings i need to set to get the font?
dsiypl4 has quit [Ping timeout: 246 seconds]
<infinisil>
teeAyy: I don't think home-manager has supports for fonts like nixos does, for now at least
<dckc>
I'm trying to build ROracle, which needs some compiled libraries supplied by Oracle. I added them to the store with `nix-store --add` but now I don't know how to use them.
<dckc>
how do I, for example, get them unpacked?
<dckc>
what does cannot auto-call a function that has an argument without a default value ('stdenv') mean?
<dckc>
oh... looks like it means I shouldn't start with { stdenv }: but rather: with import <nixpkgs> ..
<{^_^}>
[nixpkgs] @danbst closed pull request #51527 → [WIP] all-packages.nix: Use pkgs ("self") instead of res (next stage super) → https://git.io/fpPxT
<clever>
,callPackage
<{^_^}>
If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<infinisil>
dckc: (What {^_^} said was meant for you)
* dckc
nods
Havvy has quit [Read error: Connection reset by peer]
<petersjt014>
any chance someone with access to the build server could roughly double the timeout for the aarch64 build (again?) It's getting closer but still timing out:
<jonreeve>
infinisil: Sorry, got called away to do stuff. Here it is: system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.2, channels(jon): "home-manager, nixos-19.03pre166987.bc41317e243", channels(root): "nixos-19.03pre167858.f2a1a4e93be", nixpkgs: /nix/var/nix/pr
<samueldr>
petersjt014: some firepower was added a few hours ago to aarch64-linux
<jonreeve>
ofiles/per-user/root/channels/nixos
<samueldr>
petersjt014: hopefully it will help
<samueldr>
petersjt014: but upping the timeout isn't the right solution though :/
<samueldr>
hopefully, the next evals will show fewer timeouts due to how the compile farm was reconfigured
<infinisil>
jonreeve: Hmm, and can you confirm that you really get that error when you run the installation command for clay i gave you?
<petersjt014>
more cores?
<samueldr>
(I think one of the main issue is how timeouts are global to hydra, so cannot be done to aarch64 only, but unsure)
lassulus has quit [Ping timeout: 245 seconds]
<samueldr>
petersjt014: yes
<jonreeve>
infinisil: Sure, I'll try again
lassulus has joined #nixos
<samueldr>
and also, maybe it won't hit the server the first time, the new sever *might* be beefier, so if it's cpu-heavy it might help