<craige>
Anyone seen an issue where a NixOS host reverts to a pre-nixops controlled state "automagically"? My Gopogle foo is failing me this morning.
stepcut has joined #nixos
hio has quit [Quit: Connection closed for inactivity]
mexisme has joined #nixos
<craige>
It appears that the NixOS upgrade daemon is wiping out the nixops-installed setup.
testtest4 has joined #nixos
turbo_MaCk has joined #nixos
Drakonis has quit [Quit: WeeChat 2.4]
Drakonis has joined #nixos
<samueldr>
oof, nixos upgrades through the daemon AFAIK don't know anything about nixops
<samueldr>
just like if you ssh'd in and did a nixos-rebuild switch --upgrade it wouldn't know
* craige
nods
<craige>
Thanks samueldr - should probably disable it then.
<samueldr>
I'm not a nixops user, don't know if nixops users have strategies for that
<craige>
I've seen one attempt to copy a conf across. I'll dig deeper for strategies :-D
xkapastel has quit [Quit: Connection closed for inactivity]
<day|flip>
I have not try to find away. im like samueldr but am a nixos user
<craige>
It's rather unsettling to come back in and see your machine reverted each day. "Am I being prank hacked" :-)
Fare has joined #nixos
doyougnu has quit [Ping timeout: 272 seconds]
testtest4 has quit [Remote host closed the connection]
<romildo>
bsima, it can not be that restrictive. Imagine a multi-user system with different users want different desktops. It should be possible to enable any number of desired desktops/window managers, and choose one at session login.
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjPRl
<ajs124>
Seems like the hydra package doesn't build on unstable rn, because its dependency perlPackages.EmailSender fails to build :(
<romildo>
bsima, I have more than one enabled on my system, and it is just pantheon that is not working, giving the reported conflict: error: The unique option `networking.networkmanager.basePackages.modemmanager' is defined multiple times
doyougnu has joined #nixos
<romildo>
bsima, I think it is an issue to be fixed.
<lopsided98>
Does "nix-store --repair" actually work? I ran into some disk corruption, and running "sudo nix-store --verify --repair --check-contents" doesn't seem to fix anything
orivej has joined #nixos
<lopsided98>
Manually deleting the path with "nix-store --delete --ignore-liveness" and then redownloading it with "nix-store -r" does work
<lopsided98>
Repairing an individual path doesn't work either
<SebastianHasler[>
lopsided98: nix-store --delete --ignore-liveness can destroy your system on NixOS.
___laika has quit [Ping timeout: 268 seconds]
Chiliparrot has quit [Ping timeout: 252 seconds]
<lopsided98>
SebastianHasler[: I know, but fixing any issues it causes is no more work than transferring the disk to another machine to fix the corruption because --repair does not work
<day|flip>
SebastianHasler[: i learn the hardway. done it once
<lopsided98>
Either way I need to repair the system from another machine, so I'll take the risk while testing
___laika has joined #nixos
<SebastianHasler[>
That is, you might need to boot into the installer
<lopsided98>
SebastianHasler[: This is an aarch64 machine, so there is no installer
<hpfr[m]>
Hello, I’m trying to boot the graphical iso, but starting the display manager fails. Systemctl status display-manager shows a log where it restarts after 200ms, but then says the start request repeated too quickly and says failed to start X11 server. Any ideas? I’m on an RTX GPU and a 1440p display. Tried nomodeset as well as nouveau.modeset=0
<day|flip>
why not try nouveau.modeset=1 make sure you are using nouveaufb
<hpfr[m]>
How can I determine if I’m using nouveaufb? dmesg | grep nouveau returns nothing other than the parameter I set
gagbo has quit [Ping timeout: 245 seconds]
<day|flip>
dmesg | grep fb
<day|flip>
other wise vesa is your only option if you want gui
gagbo has joined #nixos
<hpfr[m]>
I get several lines, looks like it’s using efifb
<day|flip>
nixos iso is free drivers. so. i wonder why nouveau is not added?
turbo_MaCk has quit [Ping timeout: 268 seconds]
<hpfr[m]>
So I’m pretty much stuck with the command line installer then
<day|flip>
it not that bad. you don't really have to chroot\
sigmundv has quit [Ping timeout: 244 seconds]
<hpfr[m]>
That’s fine tbh I prefer the cli installers but I do like to use gparted out of paranoia
<day|flip>
it more like installing arch without a cli
<atlas_>
gparted is nice but fdisk is cool too
<atlas_>
better than parted imo
<day|flip>
i like fdsik
<day|flip>
disk
<day|flip>
fdisk*** bla
<atlas_>
why don't more people use nixos? I haven't even started looking at it (I've been reading the docs on and off) and it already sounds awesome
<hpfr[m]>
I prefer fdisk too for simple installs but I need to move my windows partition to enlarge my efi partition, that’s actually the only reason I was gonna use the graphical installer. Guess it’s back to Linux mint for gparted
<hpfr[m]>
Linux mint iso*
<day|flip>
installing it on the gui is no different from installing from cli. it just you can look at browser at the same your on the terminal
noudle has quit []
<hpfr[m]>
Yeah I just was hoping I could use one iso that had gparted
<day|flip>
but ya. it not to hard to install. if you know how to make your own partition. heads up. your want to make a partition for /nix/store
<atlas_>
I still pretty much live inside the terminal when I have a graphical environment, but I do like graphical installers. Especially when I'm just checking out a distro
<atlas_>
day|flip: thanks, I'll remember that
<day|flip>
like around 30GB for /nix/store and 5GB /
<atlas_>
/nix/store is where everything gets installed?
<day|flip>
ya
<hpfr[m]>
That’s just the equivalent of having a separate home partition tho right
sb0 has joined #nixos
<hpfr[m]>
Just separating / and /home for handling breakage but instead of / it’s /nix/store
<day|flip>
i feel like 10GB root is like way to much
<day|flip>
got my /nix/store to 20gb before cleaning it up
<day|flip>
other people here are maxing it out with 50GB
<Ralith>
I would not recommend making separate partitions on new systems
<atlas_>
so / is like /home?
<day|flip>
idk why glances show two /nix/store even though it one
<hpfr[m]>
<day|flip "https://imgur.com/a/AozhwjI"> What’s the benefit of a separate partition for /nix/store, nothing in the manual about that
<atlas_>
Ralith: why not? I recommend separate / and /home partitions for arch installs. IDK about NixOS
<day|flip>
hpfr[m]: for me. i had 20GB for / and felt like there was no space at all
<hpfr[m]>
/ is the root partition like any other Linux os @atlas, i just thought the separation of /nix/store was the same intention as separating root
<Ralith>
because on a reliable filesystem it does not confre a meaningful benefit, and you will almost inevitably find you have allocated too little space for something and be in a world of pain
<Ralith>
confer*
<day|flip>
i keep hitting near max useage
<jcrd>
yes, what's the benefit of separate partitions. it's unnecessary complication
<atlas_>
well, I usually don't fill up my 2tb disk anyway, and most of it is Windows
jluttine has joined #nixos
<day|flip>
at this point. i gotten so used to it. it been the norm for me
<Ralith>
you're just making trouble for yourself
<hpfr[m]>
Yeah, I’ve never separated root and home either because of the space issue and since my home is backed up
<day|flip>
idk. i have not pull my hair out yet
<jcrd>
especially on a single user system separate home and root isn't worth it
<day|flip>
if you think im crazy for having 5 partition. be my guess. just do it they way you want. make a 40gb root and rest in home. i don't care
<Ralith>
I don't think you're crazy, but I do think maybe you shouldn't be recommending that approach to new users
<day|flip>
nixos is not really for noobie to linux distro.
<day|flip>
hell. if your not a coder. like i. but have background to using window manager like dwm, awesome, and xmonad. by all means. give it a shot
deech has joined #nixos
<day|flip>
nixos have been a very stable distro for me. and one the most painless upgrade to new releases. it is a good distro try. but understand that it not really ment for noobie to linux. im sure it can be done. but the headache will be real. and it is up to that person to understand the basic of configuration.nix
___laika has quit [Ping timeout: 258 seconds]
<day|flip>
but i will take nix over playing wack-a-mole with gentoo portage any day of the week.
kiloreux_ has quit [Remote host closed the connection]
<atlas_>
do you guys use a terminal dashboard for things like checking up on github, your servers, weather, etc? I just recently found https://wtfutil.com/ and I wonder if anyone else knows of a better version
jgt has joined #nixos
kvda has joined #nixos
jgt has quit [Ping timeout: 252 seconds]
<kvda>
Why are nix packages getting installed with 1 Jan 1970 date?
mexisme has joined #nixos
gagbo has quit [Ping timeout: 246 seconds]
<eeva>
kvda: to make sure the packaging procedure does not depend on the current date
<Cale>
kvda: Because it's important for the sake of purity that nothing depend on the precise time those files got written -- the things in the nix store on your machine should be identical to the corresponding things on anyone else's
<Cale>
kvda: Otherwise, you might end up with things whose hash was suddenly different due to depending on those dates, and you'd end up rebuilding them rather than obtaining them from a cache for instance
<kvda>
Ah gotcha. It was failing my python wheel builds.
<kvda>
I found a workaround by specifying SOURCE_DATE_EPOCH=315532800
ilya-fedin has quit [Quit: Connection closed for inactivity]
mexisme has quit [Ping timeout: 245 seconds]
ilya-fedin has joined #nixos
Yakulu has joined #nixos
Yakulu has left #nixos ["Disconnected: Replaced by new connection"]
<sevanspowell>
How do I nix-copy a haskell derivation to a binary cache?
gagbo has joined #nixos
___laika has joined #nixos
<petersjt014>
cachix is the easiest experience I've had with that
<petersjt014>
cachix.org
<petersjt014>
it has a basic push command for this
<petersjt014>
but for a server-oriented situation nix-copy-closure would probably be what you're looking for
day|flip has quit [Remote host closed the connection]
slack1256 has quit [Ping timeout: 248 seconds]
<petersjt014>
also sevanspowell: the man page for nix-store. It has a --serve option that might also be relevant to you
<sevanspowell>
Thanks, I'm just looking to copy it to a local location. `nix copy --to file:///tmp/cache $(type -p chromium)` works great for a nixpkgs, but I don't know how to "namespace" this to a haskell package
<clever>
sevanspowell: nix copy can work on any storepath, including haskell packages
ericsagnes has joined #nixos
Ariakenom has quit [Quit: Leaving]
gagbo has quit [Ping timeout: 245 seconds]
<petersjt014>
wait, does type follow symlinks? I've been doing stuff like readlink `type cat`
gagbo has joined #nixos
<petersjt014>
hm, no manpage
<clever>
petersjt014: type is part of bash, `help type` or `man bash`
<sevanspowell>
clever: thank you
<petersjt014>
man type doesnt work for me, but help type and type --help do
<petersjt014>
huh, weird
<clever>
petersjt014: `type type` reveals its part of bash
<clever>
so its in the bash man page
<clever>
`help` also only works on bash internals, so `help type` works
<petersjt014>
ah
<petersjt014>
I see
cr4y1 has quit [Remote host closed the connection]
<petersjt014>
welp I'm trying what you suggested rn
<petersjt014>
and It's compiling 997 C files
<petersjt014>
*visible nervousness*
<clever>
petersjt014: it needs a static build of glib to work right
<petersjt014>
I haven't been this nervous over something compiling since I tried to do some x-compile stuff with llvm
<petersjt014>
took ages, even on my shiny nvme machine
gagbo has quit [Ping timeout: 244 seconds]
gagbo has joined #nixos
<petersjt014>
...or it'll just finish rn. Pleasant surprise I guess
___laika has quit [Ping timeout: 248 seconds]
sushi_ has quit [Ping timeout: 246 seconds]
<clever>
nix-build '<nixpkgs/pkgs/stdenv/linux/bootstrap-files/aarch64.nix>' -A busybox -o sh
<clever>
petersjt014: this will fetch the aarch64 busybox, and create a symlink called sh pointing to it
<hpfr[m]>
Oh I thought the wireless option was just to enable wireless interfaces not manage them, how could i use networkmanager and disable wireless then
rauno has joined #nixos
lucasvo_3 has joined #nixos
gagbo has quit [Ping timeout: 272 seconds]
gagbo has joined #nixos
Thra11 has joined #nixos
Jackneill has joined #nixos
lucasvo_3 has quit [Remote host closed the connection]
<clever>
hpfr[m]: network manager handles wireless itself, which conflicts with networking.wireless.enable
bakakuna has joined #nixos
<hpfr[m]>
Yeah I misunderstood the wireless option, do I disable the wireless interface via networkmanager then
<clever>
hpfr[m]: depends on if you want to manage it with networkmanager, or raw wpa_supplicant.conf
<{^_^}>
[nixpkgs] @FRidh pushed commit from @etu to master « phpPackages.phpstan: 0.11.8 -> 0.11.12 »: https://git.io/fjPg6
<colemickens>
I've got `make-disk-image.nix` using a custom nixpkgs, but it seems to still copy the system nixpkgs channel over? Even though I have NIX_PATH unset?
Shoubit has joined #nixos
<clever>
colemickens: how did you make it use a custom nixpkgs?
<colemickens>
Originally I was using an official upstream git commit, which obviously wouldn't include my local changes.
<turion>
clever: Awesome, thanks!
<colemickens>
But I've added a new "local" variant that at the very least caused Nix to download all newer packages, which I think are in the image....
<colemickens>
but changes I made to nixos/virtualisation/azure-common.nix aren't present in the resulting image.
<clever>
colemickens: looking...
<clever>
colemickens: make-disk-image.nix is meant to be opened with callPackage, and that will supply most of the args for you
<clever>
pkgs/lib for ex
<cizra>
Hi! How do I see the dependency graph of my packages?
<clever>
colemickens: also, i think you want (nixpkgs + "/nixos/lib/make-disk-image.nix") to make it obey the right nixpkgs version
<clever>
cizra: and also nix why-depends /some/root /nix/store/fat-package
knupfer has joined #nixos
<clever>
cizra: to see why a given root depends on something
<colemickens>
clever: I'm sorry to have wasted your time. The image is actually fine, I had "rebuilt" both images and then grabbed the last url, which was still the 19.03 nixpkgs commit.
<colemickens>
I've booted a new instance of my latest0 revision and it includes the local nixpkgs/nixos changes I expected. :)
najibpuchong has quit [Quit: Leaving]
Ariakenom has joined #nixos
<clever>
colemickens: ah
<cizra>
clever: Ahh, yeah, that gave what I wanted. Steam depends on Mono, and Mono hogs disk space like crazy. I had to enlarge the / partition AGAIN.
Ariakenom has quit [Remote host closed the connection]
<clever>
cizra: another factor, is that you might have 6 copies of mono, from rollbacks
<clever>
cizra: so you can check each mono, and see which one you can maybe GC
<cizra>
Repeating yesterday's question, maybe somebody has bright ideas: How can I inject an environment variable to games launched via Steam? I think something unsets $LOCALE_ARCHIVE and so some programs can't find my en_US.UTF-8 locale, falling back to C. Half-Life: Source is affected but still runs. Torchlight 2 fails to start because of missing locales. < infinisil> It might be the buildFHSUserEnv thing that
<cizra>
clever: I'll just run nix-collect-garbage -d every now and then, that should do the trick, right?
<clever>
cizra: these 2 commands let you safely remove a single generation of system
<clever>
`nix-collect-garbage -d` just deletes EVERY generation your not using
<clever>
depends on if you want to keep some undo's available or not
<cizra>
clever: I store checkpoints under another prefix.
<clever>
cizra: i also prefer zfs, because / and /home share the free space, and i dont have to resize things constantly
<dminuoso>
Here's a question.. so Ive been compiling the linux kernel for 20-30 minutes now and I kind of need to restart my display manager - but I dont want to recompile all over from scratch.
<dminuoso>
What does nix/nixos have in its toolbag to cache intermediate object files?
<cizra>
Huh, is ZFS good on Linux, these days?
<clever>
dminuoso: thats only possible if the nix-build is running under something like screen
<cizra>
cool. BtrFS has eaten my data a couple of times.
<etu>
cizra: Good enough for FreeBSD to rebase their ZFS on ZoL
<dminuoso>
clever: Oh yeah, that occured to me as well. But I was really actually wondering about caching instead, because if I made slight changes to the source code, it would take ages all over again.
<clever>
cizra: zfs on nixos is somewhat better then other distros, the modules just automatically deal with building out-of-tree kernel stuff, and the kernel has even been patched to support zfs, which some other distros arent doing
<dminuoso>
Wouldn't it?
<cizra>
etu: But that's FreeBSD, right. Do they share code with Linux?
<clever>
dminuoso: nix cant cache a partial build, and will start over from the begining
<{^_^}>
[nixpkgs] @FRidh merged pull request #64351 → fix: #64340 building python wheels in non-standard store → https://git.io/fj6dI
<cizra>
Anyway, I'll give it a spin, some day.
<{^_^}>
[nixpkgs] @FRidh pushed commit from @cdyson37 to master « fix: #64340 building python wheels in non-standard store »: https://git.io/fjP2f
<etu>
cizra: Yes, that's what I just said.
<dminuoso>
clever: What do nix maintainers have in their toolbag to make it less painful? I mean if Im working on something as large as qt, it'd be braindamaging to wait an hour every time I make a change.
<dminuoso>
Or is it just "don't make mistakes and get it right on your first patch"?
<clever>
dminuoso: building the package under nix-shell lets you keep the intermediate files, but it cant install to /nix/store/
<dminuoso>
clever: Ah mmm. So in case of the linux kernel I could just copy the kernel over to /boot manually until I have the right patchset and then switch back to a nixos workflow?
<dminuoso>
(from within the nix-shell)
<{^_^}>
[nixpkgs] @FRidh merged pull request #55989 → Add optional Jupyter kernelspec options from the spec → https://git.io/fh5Fe
<{^_^}>
[nixpkgs] @FRidh pushed commit from @thomasjm to master « Add optional Jupyter kernelspec options from the spec (#55989) »: https://git.io/fjP2k
<clever>
dminuoso: i would just boot it under qemu in that kind of situation
<dminuoso>
Mmm, Im not sure whether that'd even work because Im working on drivers for hardware built into this laptop. :)
jasongrossman has joined #nixos
<clever>
dminuoso: ah, you dont even have to reboot then, sometimes
<clever>
dminuoso: just rmmod ; insmod
<dminuoso>
clever: Oh. Heh. Yeah there's that.
* dminuoso
doesn't usually hack on the kernel, so not much workflow experience
<clever>
dminuoso: so you just nix-shell into the kernel, make oldconfig after copying it over from /proc/config.gz, and them `make modules` to build the modules
<clever>
then just unload and reload until it works, or the machine crashes hard due to a silly typo
hmpffff has quit [Quit: nchrrrr…]
<clever>
when you reboot, just re-run nix-shell, make modules, and continue
<dminuoso>
clever: Mind a last question, how do I nix-shell into the linux kernel inside nixpkgs?
<dminuoso>
For a regular nix derivation it'd be very clear, but Im really not sure about the whole nixpkgs thing.
<__monty__>
tdeo: Yes, nix downloads sources and builds if anything's not in the cache.
mexisme has joined #nixos
<__monty__>
Though my knowledge doesn't apply if you're talking about nix itself.
<tdeo>
so there's a prebuilt stdenv for each supported architecture, which then builds 4 other ones until it gets to a point where it doesn't depend on any of the original stuff
___laika has joined #nixos
mexisme has quit [Ping timeout: 250 seconds]
<Taneb>
Why does nix why-depends need to build anything if I pass in two .drv's
ng0 has joined #nixos
<clever>
Taneb: thats a bug that has been fixed in the latest nix
<Taneb>
clever: ah, so I'm going to need to update nix. Are there instructions for doing that on multi-user nix-on-other-linux?
<clever>
Taneb: i dont think the fix has hit nixpkgs yet, so its simplest to just wait
<Taneb>
OK
bakakuna has quit [Quit: bakakuna]
bakakuna has joined #nixos
bakakuna has quit [Client Quit]
bakakuna has joined #nixos
gagbo has quit [Ping timeout: 268 seconds]
___laika has quit [Ping timeout: 245 seconds]
gagbo has joined #nixos
jackdk has quit [Quit: Connection closed for inactivity]
civodul has joined #nixos
alpounet is now known as alp
sigmundv has quit [Quit: Leaving]
klntsky has quit [Remote host closed the connection]
klntsky has joined #nixos
Tucky has joined #nixos
orivej has quit [Ping timeout: 245 seconds]
sigmundv has joined #nixos
Tucky has quit [Client Quit]
astrofog has joined #nixos
orivej has joined #nixos
Tucky has joined #nixos
ThatDocsLady_ has joined #nixos
ThatDocsLady has quit [Remote host closed the connection]
cfricke has quit [Quit: WeeChat 2.5]
o1lo01ol1o has joined #nixos
ilmu has quit [Ping timeout: 248 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
gxt has quit [Remote host closed the connection]
gxt has joined #nixos
PLPD-Bot has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @spacekookie opened pull request #64617 → kak-lsp: init at 6.2.1 → https://git.io/fjPax
gagbo has quit [Ping timeout: 272 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
gagbo has joined #nixos
o1lo01ol1o has joined #nixos
jasongrossman has quit [Ping timeout: 258 seconds]
___laika has joined #nixos
o1lo01ol1o has quit [Ping timeout: 245 seconds]
___laika has quit [Ping timeout: 244 seconds]
markus1189 has quit [Ping timeout: 248 seconds]
Wharncliffe has joined #nixos
<__monty__>
What's the proper way to split a string across multiple lines to adhere to width restrictions? Concatenation?
cfricke has joined #nixos
m1sosoup has joined #nixos
<{^_^}>
[nixpkgs] @astsmtl opened pull request #64618 → virt-manager: depends on gtksourceview4 → https://git.io/fjPV8
<clever>
tjg1: the problem, is that only extraConfig is an option, and it doesnt support merging of any attrs below that level
<clever>
tjg1: the nixos module will need to be restructured to support defining inputs as its own nixos option, and can then merge multiple inputs for you
<clever>
tjg1: you could also define your own helper module, that creates an inputs type, and then sets extraConfig.inputs based on the result
___laika has joined #nixos
<tjg1>
are there any examples of how to do that?
bakakuna has quit [Ping timeout: 252 seconds]
<clever>
tjg1: basically every nixos module is an example of that
Zer0xp has joined #nixos
knupfer has joined #nixos
<Zer0xp>
Hey everyone, which is the best utility tool in NixOS for sending a mail via terminal ?
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjPr1
<ajs124>
does volth hang out here?
<gchristensen>
not often
gagbo has quit [Ping timeout: 248 seconds]
<ajs124>
ok. A commit of his seems to have broken the build of a dependency of the hydra package on master/nixos-unstable-small
gagbo has joined #nixos
meck has quit [Quit: WeeChat 2.5]
<ajs124>
Seems like some weird perl issue. I kinda get the impression that the test that fails now already should have failed, but just didn't get executed.
meck has joined #nixos
turbo_MaCk has quit [Ping timeout: 244 seconds]
Jonathan has quit [Remote host closed the connection]
<gchristensen>
okay, probably best to open an issue and ping them, they're pretty responsive
Neo-- has joined #nixos
<worldofpeace>
(notices choice of pronouns :P)
phreedom has joined #nixos
<ajs124>
gchristensen: Ye, I already found the relevant PR and commented on it.
<dminuoso>
clever: Mmm, so Ive dabbled a bit with it, but the workflow is still not clear. Let's say I have `nix-shell -A linuxPackages.kernel`, where do I do my modifications?
<dminuoso>
clever: Or is it assumed I unpack my own kernel version, and just use the nix-shell to have all the required tools and paths set up?
shomodj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever>
dminuoso: run unpackPhase
stepcut has joined #nixos
<dminuoso>
clever: Oh magic things happen. This is unexpected.
<samrose>
tdeo: thanks! I was just moving to try that from googling.
<samrose>
tdeo: that was it thanks
hmpffff_ has joined #nixos
Makaveli7 has quit [Quit: WeeChat 2.5]
hmpffff has quit [Ping timeout: 245 seconds]
<sbj>
clever: if you don't mind; so find the module file that defines crashDump, and disable it in my configuration? I'll try that. But, what if I just want to change the kernelPackages version, which is now pointing to an unknown/old version? Would I do that by redefining the linuxPackages_3_4 definition in packages before importing? Or can I re-define the boot.crashDump.kernelPackages somehow?
<clever>
sbj: it already supports changing the kernelPackages
<clever>
i think
<clever>
sbj: dang, no, it currently just loads /run/current-system/kernel
<clever>
sbj: boot.crashdump.kernelPackages was removed in oct of 2017
<sbj>
Ahh, so it's not because I can't override it, its because it no longer exists, and the system-tarball-pc.nix is outdated?
<clever>
sbj: so just kill that entire line in system-tarball-pc.nix
<clever>
yep
<sbj>
right, thanks!
<sbj>
Right now I must be using a system supplied version(?), because I'm just testing with a 'imports = [ <nixpkgs/.../system-tarball-pc.nix> ]' line, without a checkout of the repo.
veske2 has quit [Quit: This computer has gone to sleep]
<sbj>
clever: Ah, convenient. I think I have some documentation to study. Thank you for your patience :)
andreas303 has joined #nixos
andreas303 has quit [Client Quit]
andreas303 has joined #nixos
veske has joined #nixos
tput has joined #nixos
nbathum has joined #nixos
__monty__ has quit [Quit: leaving]
<colemickens>
how do I prove to myself wrapProgram is doing something?
cfricke has quit [Quit: WeeChat 2.5]
<Miyu-chan>
Prove?
tput has quit [Remote host closed the connection]
<colemickens>
The sway module wraps the program, and I see the env vars when I do `nvim $(which sway)` but I don't see the swaybg path prefixing in the wrapper script?
<arcnmx>
anyone able to take a quick look at #64118?
<nbathum>
I'm trying to add an npm scoped package to my system profile ("nodePackages_10_x.@angular/cli"). nix-env can somehow handle this, but seems like all other tools complain about the unexpected '@'. Ended up adding it quite indirectly by filtering the nodePackages and selecting the drv value. Is this a known issue? I couldn't find anything for it.
<{^_^}>
[nixpkgs] @joachifm pushed commit from @r-ryantm to release-19.03 « python37Packages.aiorpcx: 0.17.0 -> 0.18.3 »: https://git.io/fjPKn
vmandela has quit [Remote host closed the connection]
vmandela has joined #nixos
<colemickens>
Is there something special I need to do to make EGL available to an application?
<colemickens>
When I try to use Sway's RDP backend, I get a crash after EGL fails to initialize a display. The error comes from inside libglvnd, and it seems it pops after trying all vendors and failing to init a display.
<colemickens>
I know nothing about how GL / EGL / mesa / libGL / nixpkgs work... :(
<otini>
In NixOS, I have two programs (unison and zathura) that segfault when started from a shell
<otini>
but not from a GUI or as root. What could possibly cause this? :/
phreedom has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @FRidh opened pull request #64629 → pythonPackages.fetchPypi: support SRI hashes → https://git.io/fjPKK
<nbathum>
infinisil: is attribute escaping someone in the docs? if not, I'd be willing to write something up, if someone could recommend where
<{^_^}>
[nixpkgs] @FRidh pushed commit from Roman Kashitsyn to master « pythonPackages.sphinxcontrib_plantuml: use top-level plantuml »: https://git.io/fjPKD
<FRidh>
otini: nix-env -i takes as argument expressions that match the name(s) of packages. It's typically preferred to use instead nix-env -iA which uses attribute paths. nix-shell -p also uses attribute paths, though it also accepts urls.
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjPPO
vmandela has quit [Quit: Leaving]
<infinisil>
Miyu-chan: You can't do it without hacks
___laika has joined #nixos
<Miyu-chan>
Aw. :(
<infinisil>
For reference, the hack is `(builtins.unsafeGetAttrPos "x" { x = 0; }).file`
<Miyu-chan>
Maybe I should just add a `.enable = true;` then use .definitions
<tdeo>
why's it unsafe?
<FRidh>
the resulting value is a function not just of your code, but also how it is formatted and where it is put. I suppose that, in a way, breaks referential transparency.
<Miyu-chan>
TBF, you can say the same with ./
<FRidh>
so if you would inject the output in a derivation, then if you reformat your code, the output (hash) would be different
<Miyu-chan>
I don't think it's as unsafe as the name implies.
<Miyu-chan>
nix-repl> builtins.unsafeGetAttrPos "a" {}
<Miyu-chan>
null
<FRidh>
with ./ it is different. Take the file `foo` you want to include with `./foo`, and put it in a folder `bar`, and now refer to it with `./bar/foo`. The output hash will be the same.
Thra11 has joined #nixos
Mateon2 has joined #nixos
<exarkun>
does carnix work?
matt` has joined #nixos
Mateon1 has quit [Ping timeout: 246 seconds]
Mateon2 is now known as Mateon1
orivej has joined #nixos
<matt`>
is there any nix-specific downside to using ccache for all my package builds? How would I even do this? The documentation explains how to enable ccache for individual packages, but I don't see anything for enabling it universally
<tdeo>
i think that would necessitate a rebuild of all your packages
<tdeo>
not sure though
<{^_^}>
[nixpkgs] @arcnmx opened pull request #64636 → electrum 3.3.8, optional qt, darwin fixes → https://git.io/fjPP2
<mkaito>
anyone know where I can see an example of a module option that's a list of attrset?
lordcirth has quit [Ping timeout: 276 seconds]
lordcirth has joined #nixos
lordcirth_ has quit [Ping timeout: 264 seconds]
m1sosoup has quit [Quit: Leaving]
lambda-11235 has joined #nixos
Drakonis has joined #nixos
<mkaito>
found it in the nixos manual (hey, the manual is useful!) but only after the source code sent me there
lordcirth_ has joined #nixos
lordcirth has quit [Read error: Connection reset by peer]
lordcirth has joined #nixos
Jackneill has quit [Read error: Connection reset by peer]
lordcirth_ has quit [Ping timeout: 276 seconds]
Myhlamaeus has quit [Read error: Connection reset by peer]
___laika has quit [Ping timeout: 244 seconds]
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #61981 → nixos: Don't set LD_LIBRARY_PATH for graphics drivers that don't need it. → https://git.io/fjB0f
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjPXf
ilya-fedin has quit [Quit: Connection closed for inactivity]
endformationage has quit [Ping timeout: 245 seconds]
domogled has joined #nixos
noudle has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to master « python-m2crypto: update to version 0.35.2 »: https://git.io/fjPXS
<Thra11>
clever: I'm just looking at your (I think it's you?) qemu.nix in nixos-configs. If I try to build e.g. qemu-user-arm, I get a meson error, "ERROR: Got argument default_library as both -Ddefault_library and --default-library. Pick one.". If I change --default-library to -Ddefault_library in overlays/qemu/qemu/default.nix, it gets past that bit (still building, so don't know if it will succeed...)
<clever>
Thra11: what nixpkgs rev are you on?
<matt`>
i'm having some trouble getting ccacheStdenv to work (bit new to overlays). i've set nixpkgs.overlays = [(self: super: { stdenv = super.ccacheStdenv; })]; but i get infinite recursion
___laika has joined #nixos
<clever>
matt`: that will just make performance worse for you, it will force nix to rebuild EVERYTHING from source, starting from gcc
<Thra11>
clever: 17e0f36f7221b864ba978ebf47760864648787e3 (Sun June 30th)
<matt`>
clever: I'm actually ok with that. i'd prefer enabling ccache globally and installing everything from source than enabling it on a per-package basis. if it becomes unbearable i can always go back of course
endformationage has joined #nixos
<clever>
matt`: the problem, is that ccache itself is built using stdenv, so now you need ccache to build ccache
acarrico has quit [Ping timeout: 245 seconds]
<clever>
matt`: and the sandbox for nix wont allow it to actually access to the cache directory, so you likely wont benefit from it any
<matt`>
clever: ok, so there's basically no way to enable ccache globally? it's only available on a per-package basis? What's ccacheStdenv for then?
<clever>
matt`: i think its only for use with nix-shell, to make ccache work when in a nix-shell
<tdeo>
stdenv is overridden with ccacheStdenv for enabled packages
<tdeo>
maybe `stdenv = super.ccacheStdenv.override { stdenv = super.stdenv };` will work though (probably not)
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<matt`>
tdeo: so when i set ccache.packageNames = [ ... ]; that's using ccacheStdenv?
<clever>
Thra11: it also loads the arm qemu from pkgsi686Linux, so its based on a 32bit gcc and 32bit libc
<clever>
Thra11: emulating a 32bit guest on a 64bit host has performance costs, so its faster to do 32bit on 32bit
<Thra11>
clever: I see
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
veske has quit [Ping timeout: 272 seconds]
<Thra11>
clever: Having changed the meson argument and fiddled with arch_map (I'm on an aarch64 host), I have sucessfully built nix-user-arm.
doyougnu has joined #nixos
halfbit has quit [Quit: WeeChat 2.5]
srid6390803 has quit [Ping timeout: 272 seconds]
abrar has joined #nixos
srid6390803 has joined #nixos
<Thra11>
I just forgot I was in a nix-shell and tried to nix build something. For ages I couldn't work out why it was trying to unpack the sources into the tiny /run/user/1001 fs instead of the 6G /tmp.
<clever>
Thra11: it obeys $TMP
<clever>
Thra11: and there is already an entry in the overlay for aarch64
<clever>
Thra11: if your not running nixos on the aarch64 host, you will need to read this, and manually configure the kernel to know where qemu-user-arm is
<clever>
nix-build '<nixpkgs/pkgs/stdenv/linux/bootstrap-files/armv6l.nix>' -A busybox -o sh
<clever>
Thra11: this will fetch a pre-build busybox, for armv6l and make an sh symlink to it
<iqubic>
how does one change the way that the X11 Cursor looks?
lovesegfault has joined #nixos
Mateon1 has quit [Ping timeout: 272 seconds]
Mateon2 is now known as Mateon1
xkapastel has quit [Quit: Connection closed for inactivity]
bakakuna has joined #nixos
<codedmart>
Is there services or options I should have set when using xmonad? I notice even though I have icons/themes set certain applications don't respect that setting and just show the fallback icons. Ie lxappearance doesn't show proper icon previews of the icons sets I have installed.
lovesegfault has quit [Quit: WeeChat 2.5]
lovesegfault has joined #nixos
iqubic` has joined #nixos
iqubic` has quit [Remote host closed the connection]
<jackdk>
My laptop died and I was working on a project with all my dependencies configured. I checked out the project on another computer, ran nix-shell and went back to work. The end. Thank you all so very much.
ericsagnes has quit [Ping timeout: 264 seconds]
<gchristensen>
<3 jackdk
<{^_^}>
jackdk's karma got increased to 4
bakakuna has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @costrouc opened pull request #64643 → [WIP] pythonPackages.fipy: init at ... → https://git.io/fjPyO
Fzer0 has joined #nixos
Fzer00 has joined #nixos
Fzer0 has quit [Client Quit]
Drakonis has joined #nixos
Fzer00 has left #nixos ["Leaving"]
ericsagnes has joined #nixos
teej has joined #nixos
hmpffff_ has quit [Quit: nchrrrr…]
tbenst has joined #nixos
<tbenst>
hi, anyone know how to use private github repos with nixos? I'm pulling my hair out over here. examples from 2018 blog posts not working
<tbenst>
seems like fetchgit should support my ssh key in ~/.ssh/id_rsa (but doesn't find it), and I can't figure out how to set env vars for fetchFromGithub with private=true
<{^_^}>
[nixpkgs] @pradyuman opened pull request #64644 → grpcui: init at 0.2.0 → https://git.io/fjPyE
<atlas_>
I just ran `sh <(curl https://nixos.org/nix/install) --daemon` on Arch, and the install succeeded. However, when I open a new terminal, I can't run any nix-* commands or simply `nix`.
alex`` has quit [Ping timeout: 245 seconds]
kim0 has quit [Quit: Connection closed for inactivity]
karetsu has quit [Quit: WeeChat 2.4]
jgt has quit [Ping timeout: 252 seconds]
Jonathan has joined #nixos
shah^ has quit [Ping timeout: 248 seconds]
nefix has joined #nixos
jgt has joined #nixos
<nefix>
Hey there! I'm trying to build a derivation for chronograf. The thing is that it's a Go app (which I know how to build), but it also needs to compile some javascript parts before embedding them to the Go binary. How can I package a JavaScript thing?
<atlas_>
makefu: neither of those files exist for me, even though I have bash installed and am using zsh
Neo-- has quit [Read error: Connection reset by peer]
fusion809 has joined #nixos
Neo-- has joined #nixos
spaark has joined #nixos
xkapastel has joined #nixos
justanotheruser has quit [Ping timeout: 248 seconds]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
jgt has quit [Ping timeout: 252 seconds]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
shomodj_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<spaark>
hi. i'm trying to set up nix on a system where i don't have root access. i followed the manual and installed from source. i think there are problems, though.
<spaark>
for one, .nix-profile and .nix-defexpr/channels_root are dangling links. is this normal?
<clever>
spaark: .nix-profile is automatically fixed when you firs tinstall something with nix-env
<spaark>
besides this, running 'nix-channel --update' returns an error while setting up the build environment: "getting attributes of path '': no such file or directory". possibly because of the dangling links.
<clever>
spaark: .nix-defexpr/channels is fixed the first time you run nix-channel --update
<spaark>
clever: ok, both nix-channel --update and nix-env -i don't work, however.
<spaark>
'nix-env -f ~/nixpkgs -iA vim' attempts to install the package, but i get the same issue as with nix-channel. "error while setting up the build environment: getting attributes of path '': No such file or directory"
<spaark>
i'm looking at issue #2673 on the nix repo. it might fix my problem.
hio has quit [Quit: Connection closed for inactivity]
<infinisil>
nix#2673
<{^_^}>
https://github.com/NixOS/nix/issues/2673 (by trofi, 21 weeks ago, open): 'nix-channel --update' stopped working on nix-2.2.1: error: while setting up the build environment: getting attributes of path '': No such file or directory
nefix has quit [Remote host closed the connection]
<atlas_>
| and the install succeeded. However, when I open a new terminal, I can't │ arcnmx
<atlas_>
| run any nix-* commands or simply `nix`.y
jgt has quit [Ping timeout: 252 seconds]
<atlas_>
whoops, sorry for the bad copy
jkachmar has quit [Quit: Connection closed for inactivity]
<aanderse>
what shell do you use? was nix properly added to your path?
<atlas_>
I use zsh, and it wasn't added to my path. I read that the installer modifies /etc/zshrc if it exists. It didn't exist, but I tried reinstalling after doing `touch /etc/zshrc` and it didn't fix my issue (didn't modify my path)
<atlas_>
it doesn't work in bash either
<aanderse>
you should pastebin the actual error you are hitting then
<atlas_>
I'm just getting a "command not found" and I can't find where the binaries are manually