<{^_^}>
[nixpkgs] @hjones2199 opened pull request #102200 → phd2: init at 2.6.9dev1 → https://git.io/JT9CF
m0rphism has quit [Ping timeout: 256 seconds]
lunik1 has quit [Ping timeout: 246 seconds]
lunik15 is now known as lunik1
<tpw_rules>
lukegb: wow, same
rgoswami has quit [Quit: rgoswami]
bennofs1 has quit [Quit: WeeChat 2.9]
<lukegb>
:p
<evalexpr>
I'm trying to contribute an upgrade to a package in nixpkgs, when I run nix-prefetch-git to fetch the new sha256 value, I get something different than when I deliberately set the hash to 0000.., and run `nix-env -f . -iA package` this output seems shorter, how do I make it show the correct sha256 value?
<evalexpr>
when I deliberately set it to 0000... I get wanted: sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=, got: sha256-aS2KIclwCbsOxkU0qIv+fPm7YIzpq21S4Q/NH9bbL7g=
rnea has joined #nixos
<demostanis[m]>
I'm still reading about NixOS, and I've came across Home Manager and its ability to install firefox extensions, however, it requires them to be on the NUR. Can't https://github.com/demostanis/InstallFirefoxAddon be used? Is it worth to open an issue for something I've never used (yet)?
astronavt has quit [Quit: Leaving]
<lukegb>
evalexpr: I think in nixpkgs master either will work; the "AAAAA..." format is base64, whereas the other format is the older base32 format
<lukegb>
if you use "nix to-base32" it should convert the latter into the former
shibboleth has quit [Quit: shibboleth]
<clever>
you can also just do `sha256 = "sha256-aS2KIclwCbsOxkU0qIv+fPm7YIzpq21S4Q/NH9bbL7g=";`
<lukegb>
right, yeah, you should probably just use the base64 version
<demostanis[m]>
* I'm still reading about NixOS, and I've come across Home Manager and its ability to install firefox extensions, however, it requires them to be on the NUR. Can't https://github.com/demostanis/InstallFirefoxAddon be used? Is it worth to open an issue for something I've never used (yet)?
<evalexpr>
lukegb: clever: is there any convention for what is preferred in nixpkgs?
<infinisil>
demostanis[m]: Nope that won't work
<evalexpr>
base32 or I think the other is base16?
<infinisil>
demostanis[m]: Nix requires pretty much everything to be written with Nix in mind to work
<demostanis[m]>
<infinisil "demostanis: Nix requires pretty "> And would a rewrite in Nix of my Python program be possible? It simply fetches and parses data from Mozilla addons page
<infinisil>
That might be possible yeah
<lukegb>
evalexpr: basically... not really? the base64 format is newer, may as well use that. e.g. android-studio is using it here: https://github.com/NixOS/nixpkgs/pull/96874
<vika_nezrimaya>
question for Nix gurus: does `nix copy --to ssh://machine` use Nix on the other machine?
<lukegb>
siraben: yeah, I have something similar but still systemd-based
<lukegb>
Not quite as small though
<siraben>
There's a subset of Linux users that despise systemd, I wonder if eventually NixOS's init system could be swapped out
<lukegb>
I use it for building RPi/other misc appliance systems where I know I'm just going to replace the entire storage anyway
<lukegb>
So I'm optimizing for image write time :p
<Yaniel>
siraben: there is a subset of NixOS users who are trying to achieve just that
<lukegb>
(netboot is... tricky in that environment)
<siraben>
Yaniel: oh cool, is there a thread with their ongoing process?
<siraben>
lukegb: Nix can also generate docker images, but I'm not sure about generating ISOs for other distros
<Yaniel>
idk beyond the occasional related issue on github
<Yaniel>
systemd is quite deeply integrated in the nixos module system though so it's quite a bit of work
<siraben>
Is another alternative to use a very minimal non-systemd distro and use Nix on top?
<siraben>
But that isn't really the same as NixOS I suppose
<notgne2>
siraben (chat.freenode.net): you could write a replacment to the systemd implementation on nixos which makes the options instead apply using a shim to another service manager
<notgne2>
though the right solution is making a higher level interface to nixos for services to use instead of systemd options, which is useful even to systemd users, but involves getting nixpkgs to accept such a thing
<tpw_rules>
is there a way to do nix-copy-closure type things but to a file? i'd like to use it in scenarios where it's not possible to know what the other computer has installed or access it before computing what needs to be transferred. but a delta mode would be nice if i can say that i know it has this closure
<ejpcmac>
Hi! Is there a way to know the NixOS version from a channel without building a system from it and running `nixos-version` ?
<Yaniel>
what, a channel advance? how outra- oh nevermind
<vika_nezrimaya>
the struggle of living on nixos-unstable: constantly waiting for Hydra to become green on the commit you desperately need to see in your system
<{^_^}>
[nixpkgs] @danderson opened pull request #102204 → nixos/transmission: point at the settings dir in cfg.home. → https://git.io/JT9Eg
<vika_nezrimaya>
i mean I could just rewind my flake to master and try to live with it in the meantime but it requires me to consciously pin the revision that contains everything that's NOT HORRIBLY BROKEN
h0m1 has quit [Ping timeout: 264 seconds]
<energizer>
tpw_rules: i'm sure there's a better way, but `nix path-info -r /nix/store/foo | tar cfz foo.tar.gz -T -` ?
h0m1 has joined #nixos
<DigitalKiWicked>
vika_nezrimaya: git master ;D
<tpw_rules>
energizer: how do i get it back into the other machine's store? i thought in addition to just extracting it you had to modify the database
<vika_nezrimaya>
DigitalKiWicked: just what I said
<{^_^}>
#102204 (by danderson, 5 minutes ago, open): nixos/transmission: point at the settings dir in cfg.home.
<danderson>
I would add the maintainer, but github won't let me.
ryantrinkle has joined #nixos
<Reiser>
Oh man, I'm sorry if this has already been asked a lot, it seems like it might've been but I'm just arriving on a lot of nixpkgs issues with no resolution. I'm trying to build something with cargo (caveat: latest in nix-unstable), I'm running into a GLIBC 2.13 build issue. `<snip>/libc.so.6: version `GLIBC_2.32' not found (required by
<vika_nezrimaya>
but it's stuck on the tip of my tongue
LnL has quit [Ping timeout: 258 seconds]
<vika_nezrimaya>
anyway it's an impurity of some sort that somehow crawled in
<vika_nezrimaya>
at least if I remember it correctly
<vika_nezrimaya>
try rebuilding the package?
LnL has joined #nixos
<Reiser>
Interesting, what's the best way to build? I'm guessing `nix-env -e <pkg> && nix-env -iA <pkg>` won't do it
<Reiser>
rebuild*
<vika_nezrimaya>
it'll do if you do nix-collect-garbage after that and nothing else requires this package
<ejpcmac>
Oh, thanks gchristensen ! I still don’t have the reflex to use lib in the repl…
<vika_nezrimaya>
also maybe try `nix build --rebuild nixpkgs#cargo`? assuming you use flakes
<ejpcmac>
(I thought of the repl, but not lib)
<vika_nezrimaya>
which you probably don't judging by your nix-env usage
<vika_nezrimaya>
nix-store --repair-path /nix/store/... can also work
<vika_nezrimaya>
it'll try to substitute the package from cache.nixos.org - if it's not there, it'll fail though
<Reiser>
vika_nezrimaya, you set me on the right path, which cargo still finding a linked binary in my profile even without cargo installed
<Reiser>
Something went wrong somewhere, this seems to be it
sigmundv has quit [Ping timeout: 265 seconds]
<Reiser>
I wonder how it happened
<vika_nezrimaya>
no idea
<cole-h>
supersandro2000++ Thanks for the darwin testing. It's much needed these days.
<{^_^}>
supersandro2000's karma got increased to 8
<{^_^}>
[nixpkgs] @omasanori opened pull request #102206 → kmscon: add omasanori as a maintainer → https://git.io/JT9zB
<supersandro2000>
cole-h: no problem
<supersandro2000>
I am just a bit worried why my nixpkgs-review is sometimes failing for no good reason. Do you know if I need to adjust nix.conf to have lower TTLs?
<cole-h>
¯\_(ツ)_/¯
<cole-h>
Sorry
<supersandro2000>
I just keep asking until someone knows something
<cole-h>
Me too
<cole-h>
:P
<supersandro2000>
pyobjc has so many modules...
<samueldr>
maybe if you shared the actual error rather than vague "no good reason"
visl has quit [Read error: Connection reset by peer]
pittma has quit [Read error: Connection reset by peer]
jmercouris has quit [Read error: Connection reset by peer]
nick_h has quit [Ping timeout: 268 seconds]
chrisaw has quit [Ping timeout: 268 seconds]
raboof has quit [Read error: Connection reset by peer]
dmj` has quit [Read error: Connection reset by peer]
nand0p has quit [Read error: Connection reset by peer]
scoates has quit [Ping timeout: 240 seconds]
pittma has joined #nixos
zmacs has joined #nixos
rolodex________ has quit [Read error: Connection reset by peer]
mpickering has joined #nixos
steveeJ has joined #nixos
hamishmack has joined #nixos
acertain has joined #nixos
chrisaw has joined #nixos
gluegadget has joined #nixos
rolodex________ has joined #nixos
zot has quit [Ping timeout: 240 seconds]
robmyers has joined #nixos
nand0p has joined #nixos
raboof has joined #nixos
thoughtpolice has quit [Ping timeout: 264 seconds]
davidtwco has quit [Ping timeout: 264 seconds]
jmercouris has joined #nixos
scoates has joined #nixos
visl has joined #nixos
dmj` has joined #nixos
orbekk has quit [Ping timeout: 256 seconds]
thoughtpolice has joined #nixos
nick_h has joined #nixos
davidtwco has joined #nixos
Tritlo has joined #nixos
zot has joined #nixos
orbekk has joined #nixos
growpotk- has joined #nixos
<elvishjerricco>
So I am SSH'd into a NixOS server, trying to use my GPG key to decrypt something, but I'm getting this: `gpg: public key decryption failed: No pinentry`
<elvishjerricco>
After running this: `echo hi | gpg --encrypt -r elvishjerricco@gmail.com | gpg --decrypt`
<elvishjerricco>
I'm pretty sure I've used GPG on this box before. What's going on?
davidv7 has quit [Ping timeout: 240 seconds]
ilmu has quit [Ping timeout: 268 seconds]
ilmu has joined #nixos
<elvishjerricco>
I can use gpg on another machine of mine through ssh, so I don't know what's different
cjpbirkbeck has joined #nixos
cjpbirkb1 has quit [Ping timeout: 260 seconds]
<__red__>
the problem is that gpg doesn't let you enter passwords using stdin
cjpbirkb1 has joined #nixos
<__red__>
pinentry is an api which is used to allow you to pass your pin / password in
<__red__>
elvishjerricco: did you install nixpkgs.pinentry?
<cole-h>
worldofpeace: OK, #100136 LGTM. On my laptop I tried adding a file, referencing it, and got "access to path ... is forbidden in restricted mode", but it kept going a little further with `--impure`
<elvishjerricco>
__red__: No, and I also did not with the system where it *is* working.
whatisRT has joined #nixos
<cole-h>
elvishjerricco: You didn't even enable `programs.gnupg.agent`?
<__red__>
okay - I'm crashing after 48 hours of neing awake
<__red__>
nite
<elvishjerricco>
cole-h: I do have that enabled on both machines
cjpbirkb1 has quit [Ping timeout: 258 seconds]
<cole-h>
Have you tried `gpg-connect-agent updatestartuptty /bye`?
<cole-h>
And what is your pinentry flavor? I've found that gnome3 doesn't have a TTY fallback, but gtk2 does.
<elvishjerricco>
cole-h: I have tried that. I have not configured pinentry flavor on either system. GPG falls back to TTY on the working machine when I'm using it over SSH
cjpbirkbeck has joined #nixos
<cole-h>
Does it work if you do configure the pinentry? (Sorry, just spitballing things. Don't actually know what could be going on.)
<elvishjerricco>
So I'm trying to get a server to run over https using `services.nginx.virtualHosts.<name>.{enableACME,forceSSL} = true;` and `locations."/".proxyPass = "http://localhost:30000";`, but it's not allowing WebSocket connections.
<elvishjerricco>
I have `proxyWebsockets = true;` but it didn't fix it
<Dotz0cat>
I just got nixos installed in a kvm. it has nothing installed other than the extreme basics. what is the quickest way I can get the system up to the point it is graphical and I can do packaging?
z9004158 has joined #nixos
LnL- has joined #nixos
LnL- has quit [Changing host]
LnL- has joined #nixos
<z9004158>
I have what is probably a really stupid question, please forgive my naivety. I would like to try and use nixos (the new release piqued my interest). I like to use 2bwm which requires editing it's config.h to one's liking. On another linux system, I can clone it from github, modify the file and make/install. But if I understand correctly, the file
<z9004158>
structure of nixos is differnt. I see that 2bwm is in the community repo, if I install from there how may I edit the config.h?
<z9004158>
Thank you in advance for any help.
LnL has quit [Ping timeout: 260 seconds]
rnea has quit [Ping timeout: 260 seconds]
<Dotz0cat>
also to add I have never used nix or nixos until today
<DavHau[m]1>
Is there a way to generate a docker image with multiple services running inside? something like nixos-container but as a standalone docker image? I know arion, but arion isn't really standalone. It requires nix and a /nix/store on the host
<elvishjerricco>
Huh, even just forgoing nginx and pointing the original server at port 80 is blocking websockets.
<elvishjerricco>
Does my router need to be forwarding a particular port?
Supersonic112 has joined #nixos
ryantrinkle has joined #nixos
Supersonic has quit [Ping timeout: 260 seconds]
Supersonic112 is now known as Supersonic
vika_nezrimaya has quit [Remote host closed the connection]
<elvishjerricco>
Oh, no I think it's just operating unbearably slowly, so the ws connections timed out. It got there this time though.... But nothing seems to be the bottleneck. CPU is low, disk IO is low, network traffic is low.
<nixnoob>
is it possible to multi boot different linux OSs on different logical volumes on the same physical LVM partition?
palo1 has joined #nixos
cole-h has quit [Ping timeout: 272 seconds]
<jophish>
Hi all
lerhyd has joined #nixos
palo has quit [Ping timeout: 264 seconds]
palo1 is now known as palo
<lerhyd>
Hello. Could you help with a problem? I installed NixOS. To do this, I created 3 partitions: boot, swap, root. After the reboot, when I boot the system, I have this problem. Job is running until timeout and that's it. The system is no longer loading.
<Mic92>
siraben: I don't see the issue yet in your build but if you set NIX_DEBUG=1 in your derivation than you get more output i.e. which compiler commands are run
<sb0_>
hi. nixos 20.09 doesn't seem to have binary substitutes for thunderbird and libreoffice, and compiling them takes a lot of resources. could the channel advance only when these packages are available in binary form?
<siraben>
How do I take away a buildInput using overrideAttrs?
<Mic92>
siraben: there might be something to filter list, but the easiest way is probably to just replace the old list with a new one.
<ar>
nixnoob: yes
<siraben>
Mic92: I don't understand why the build succeeds with NIX_DEBUG=1 but fails otherwise
<nixnoob>
ar thanks. and how about multibooting mixed os on the same LVM primary volume? eg, multibooting mac windows and linuxes on the logical volume. looks like it's possible.
<nixnoob>
@ar thanks. and how about multibooting mixed os on the same LVM primary volume? eg, multibooting mac windows and linuxes on different logical volumes of the same LVM primary partition. looks like it's possible.
lerhyd has quit [Remote host closed the connection]
vonfry` has joined #nixos
vonfry has quit [Ping timeout: 268 seconds]
<nixnoob>
of course, with gpt+uefi
sangoma has quit [Ping timeout: 256 seconds]
<siraben>
Is it still a good idea to use NixOS/nix-channels for pinning?
McSinyx[m] has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @lf- to master « nixos/postgresql: fix inaccurate docs for authentication (#97622) »: https://git.io/JT9Q5
nixnoob has quit [Ping timeout: 245 seconds]
<McSinyx[m]>
I'm sorry if this is obvious in the docs, but how do I install nonfree firmware for my wifi on the installation live media?
<ar>
nicolas[m]: windows and macos don't support lvm
CMCDragonkai1 has joined #nixos
<ar>
erm
<ar>
oh, nixnoob left
<ar>
nicolas[m]: sorry, tabfail
<McSinyx[m]>
let me phrase it differently, how do install intel2200BGFirmware on a nixos system that the only data transfer I have is another flash drive?
mzcore_ has joined #nixos
sb0_ has quit [Quit: Leaving]
<etu>
siraben: For old things, sure it doesn't matter. For new things, no, because it doesn't update.
<etu>
That's fine, because that means it passed the tests
<siraben>
Great
<siraben>
What kinds of tests? It's not the case that every package succeeds
<Jezhehim[m]>
So the database that gets used by [{^_^}](https://matrix.to/#/@freenode_{^_^}:matrix.org) when I do something like ",locate ping"...
<etu>
siraben: it depends if it's a nixos-* or nixpkgs-* channel. A nixos-* channel perform tests for important operating system functions, like bootloaders, etc. The other one is just a bunch of packages. Then it should also attempt to build all packages.
<{^_^}>
[nixos-hardware] @sevenfourk opened pull request #201 → macbook-pro/12-1: added link → https://git.io/JT9Ap
<bqv>
colemickens: strong support for native-pgtk. i was torn between the two forks, and picked native-comp, until i found that repo
dbmikus has quit [Ping timeout: 264 seconds]
vonfry` has quit [Quit: ERC (IRC client for Emacs 27.1)]
<nschoe>
Hi all!
<nschoe>
I'm trying to use the latest 'st' version (0.8.4) and they seem to have added the "universalscroll" plugin, which seems to require 'scroll' AFAIU.
<nschoe>
but I can't seem to find 'scroll' in nixos, am I missing it?
<supersandro2000>
betawaffle: I guess it is missing a directory
<supersandro2000>
Failed at step NAMESPACE spawning /nix/store/x58q7zabmnkq0qall5d72d396fxmz8cd-systemd-243.3/lib/systemd/systemd-resolved: No such file or directory
<betawaffle>
i think it was out of disk space (oops)
<betawaffle>
i turned on auto updates, but think i forgot auto gc
dansho has quit [Ping timeout: 260 seconds]
<supersandro2000>
you could also turn on auto symlinking
<nschoe>
Wow, I just discovered 'nix edit -f "<nixpkgs>" pkg-name'. That's a time saver:)
<supersandro2000>
I wish it could cache the file location or somehow work if the file is not valid nix
sss2 has quit [Quit: Leaving]
<nschoe>
supersandro2000: oh?
stevenleiva has joined #nixos
ardumont has quit [Ping timeout: 260 seconds]
<stevenleiva>
Hi everyone. I installed nix by using "sh <(curl -L https://nixos.org/nix/install) --daemon", but I was a bit distracted when doing so. I think it completely successfully, but I know there are some instructions that I had to follow to make `niv-env` and other binaries available in my $PATH.
stevenleiva is now known as stevenxl
<{^_^}>
[nixpkgs] @zimbatm opened pull request #102222 → pythonPackages.pip: make reproducible → https://git.io/JTHfB
<stevenxl>
Does anyone know what the instructions at the end are?
<stevenxl>
I don't have any of the `.nix` directories that I was expecting to see (/home/steven/.nix-profile /home/steven/.nix-defexpr /home/steven/.nix-channels), but maybe these are created later on.
<solene>
I'm trying to compile a simple C program only requiring ncurses lib, should I lurk where ncurses is in /nix/store and pass it to -I flag or is there a better way?
<__monty__>
solene: The "proper" way would be to write an expression that has ncurses in the buildInputs.
seku has joined #nixos
<solene>
__monty__: indeed but I thought there was a simpler way for such a situation
<LnL->
that's what -p does
<LnL->
but building stuff using nix-shell dependencies does have the caveat that nix won't know the dependencies are needed by the resulting binary
<__monty__>
Nothing wrong with a quick one-off nix-shell. It's just that it often turns out you'll end up reusing that one-off bunches of times and then you've ended up without a paper trail and no effort spared.
LnL- is now known as LnL
<nschoe>
Hey everyone, I've got a quick question: I want to use an older (different) version of a program in my environementPkgs (it's st).
<nschoe>
- using an overlay
<nschoe>
- using st.overrideAttrs and change the src attribute
<nschoe>
- cloning the repo and using callPackage to it (inside my systemPackages)
<nschoe>
I'm pondering the "best", "correct" way of doing so, I've thought about:
gnidorah has quit [Quit: Connection closed for inactivity]
<nschoe>
I've been reading the overlay manual page, and some posts about it. I'm not sure what they would bring on top of simply using overrideAttrs. Except that, if done properly, the modified package can be "broadcast" to the rest of the nix tools.
<nschoe>
But essentially, from what I can read, inside overlys we use .override or .overrideAttrs. So I was wondeing about the difference :/
<roberth>
nschoe: sounds like you understand overlays. .override changes the inputs to a package, whereas .overrideAttrs changes the output, the derivation directly
dansho has joined #nixos
<roberth>
nschoe: I don't think you need an overlay for this, because you have a single place where you want to use it, which is easy to set in your configuration.nix
<roberth>
as opposed to an override to a library for example
<nschoe>
roberth: oh I would not dream of saying that I "understand overlays". But this overlay vs packageOverride vs .override vs ... had been bugging me for a logn time. So I finally took the tiem to read a bit more about them.
<nschoe>
From what I can read, and from this talk (https://www.youtube.com/watch?v=W85mF1zWA2o) which I only started to watch, it seeems overlays are the nw and correct way of doing things.
<__monty__>
Yes, overlays compose while overrides don't.
<nschoe>
roberth: okay so basically it makes sense to simplye have something like (st.overrideAttrs {...}) in my systemPackages rather than an overlay because it's just about installing st and it's unlikely st will be used as input for any other derivation. But if it was a library, then it would make more sense. Am I correct?
<nschoe>
(Sorry trying to make sure I'm not mistken)
<nschoe>
__monty__: just ot make sure, when you say "overrides", you're talking about doing 'pkg.override' and/or 'pkgs.overrideAttrs', right?
<siraben>
solene: you can easily write a short derivation for your C program
<nschoe>
Oh there's this 'overrides' (with an 's' at the end) which I came across sometimes, and still don';t understand.
<roberth>
nschoe: that's right. That way you don't have to think about overlays and you won't accidentally affect other parts of your system (which could be good or bad)
<__monty__>
Mostly the former. You're right though that for things you won't compose anyway that it doesn't matter much. I'm not even sure you can do overrideAttrs with an overlay.
<roberth>
nschoe: perhaps you're thinking of packageOverrides? That's an old thing, basically a single overlay
<{^_^}>
[nixpkgs] @poscat0x04 closed pull request #81876 → fix #81873: xsession file generated for xmonad blocks on xmonad if the configuration is set → https://git.io/Jvwm4
<roberth>
nschoe: .override first, because that will return a package with the same "interface". I don't think the result of .overrideAttrs supports .override, but I may be wrong about that
luc65r has joined #nixos
<nschoe>
roberth: okay. And is that 'normal' practise/
<nschoe>
?
<roberth>
nschoe: so you'll have (st.override f).overrideAttrs g
<roberth>
nschoe: as normal as it gets ;)
<nschoe>
So I'm not the only oen doign this, and I'm not messing up ?^^
<siraben>
solene: good luck, ping me if you have ant questions
<siraben>
any*
<roberth>
if you do have ant questions, I guess there's #nixos-jvm ;)
dansho has quit [Ping timeout: 265 seconds]
<nschoe>
-jvm ?
<roberth>
it's a channel for nix + the java ecosystem. ant is a build tool for java
<roberth>
nschoe: the overrides will do their thing and the most likely way it will fail is a build error because a patch didn't apply or the expression in Nixpkgs has become incompatible with your src version. The kind of thing that requires manual intervention anyway
<nschoe>
roberth: okay, so if there's manual intervention, then it's repo-cloning, manual patch aplpying and then calling callPackages, right?
<{^_^}>
[nixpkgs] @Atemu opened pull request #102226 → mlterm: darwin support → https://git.io/JTHkL
<roberth>
nschoe: yeah you'd have to fix your patch that way
<roberth>
nschoe: I assumed you want the base version to be from Nixpkgs, but you could also just maintain your own fork in git
<NinjaTrappeur>
0/ I'm trying to run obs studio on Sway (wayland). I currently cannot see any videofeed. The obs documentation is specifying the program is not compatible with wayland. I'd like to force it to use the x11 backend (through xwayland). I there a specific Qt env variable to set to do that?
<nschoe>
roberth: well I wanted to keep the base version in nix indeed...
<emmanuel_erc>
Hello there. I want to know if this is risky or not. I'm currently using an amazon ec2 instance but I'd like to host "/nix" on a separate volume (namely an EBS volume).
alexherbo2 has joined #nixos
<emmanuel_erc>
Would it be advised for me to simply mount the drive at "/nix" (even if there is stuff already there?)
tenniscp25 has joined #nixos
gthm has joined #nixos
endformationage has joined #nixos
Chiliparrot has joined #nixos
whatisRT has joined #nixos
rgoswami has joined #nixos
gthm has quit [Ping timeout: 260 seconds]
sangoma has quit [Read error: Connection reset by peer]
<emmanuel_erc>
Ok, so I found this page https://nixos.wiki/wiki/Storage_optimization . There is a section called "Moving the store". I think this is what I want. However, I don't follow what they mean in steps 3 and 7.
ManiacOfMadness has joined #nixos
<emmanuel_erc>
Can anyone care to clarify these points. I'm miffed.
jabster28 has joined #nixos
mananamenos has joined #nixos
stree has quit [Quit: Caught exception]
<crazazy[m]>
siraben: yea that seems to work out, I think
stree has joined #nixos
<{^_^}>
[nixpkgs] @oxzi opened pull request #102237 → nixos/tlp: Fix deprecation hint → https://git.io/JTHll
mschwaig has quit [Read error: Connection reset by peer]
mschwaig has joined #nixos
veleiro has quit [Ping timeout: 246 seconds]
<nschoe>
Sorry guys, quick question, just to make sure, what would one usually put in "~/.zshrc" goes into 'programs.zsh.interactiveShellInit' options, right? (Except aliases which go inso shellAliases).
<nschoe>
For for instance, I'm looking to put 'eval $(dircolors ~/.dir_colors)'. It's the right nixos optiosn?
jonringer has joined #nixos
<qyliss>
nschoe: yeah I think that's right
<qyliss>
zshrc is the file that's loaded iff the shell is interactive
<ejpcmac>
Hi! I’m just updating a workstation to nixos-20.09, and there are some huge applications to compile (like LibreOffice, Thunderbird and so). Is this normal on the full channel?
<ejpcmac>
I mean, on the -small one, this is expected, but these apps should be in the Hydra job for the full channel, aren’t they?
<MichaelRaskin>
Not normal in general, can happen under some circumstances, known problem this time
alexherbo24 has joined #nixos
alexherbo2 has quit [Read error: Connection reset by peer]
alexherbo24 is now known as alexherbo2
rnea has quit [Ping timeout: 264 seconds]
<ejpcmac>
Mmm. And what’s the cause?
<ejpcmac>
Hydra overload?
<MichaelRaskin>
Basically, there are packages where build has to end but it doesn't matter what's the outcome, channel will advance
<MichaelRaskin>
And apparently there was an infrastructure problem
<MichaelRaskin>
And many jobs ended up aborted
<ejpcmac>
I see. And this time the whole channel takes more time to compile.
<ejpcmac>
Ok.
<ejpcmac>
Thanks for the explanation :)
<nschoe>
I've tried this on a running shell and it works okay.
<nschoe>
Hum, anyidea why 'test -r ~/.config/.dir_colors && eval $(dircolors ~/.config/.dir_colors)' doesn't work when I put it inside programs.zsh.interactiveShellInit?
<nschoe>
I've also replaced the 'test ... && eval $(...' by just the 'eval $(...)' part, and it doesn't work either.
<nschoe>
Is it the '$(' syntax, causign issues?
<MichaelRaskin>
nschoe: I would start by reading the generated file
<luc65r>
nschoe: you need double quotes
<nschoe>
MichaelRaskin: ah, good idea. How can I get its path?
<nschoe>
luc65r: I currently have this is two single quotes.
<MichaelRaskin>
I would just look for anything starting with z in /etc
<luc65r>
nschoe: in single quotes $() doesn't expand
asbachb has joined #nixos
<nschoe>
MichaelRaskin: thanks, found it.
<nschoe>
luc65r: okay I'm tryign now :)
<nschoe>
luc65r: it doesn't work either.
<nschoe>
But I guess it makes sense: I don't need to $() to be expanded in nixworld: I just need this to be written in the /etc/zshrc file.
<nschoe>
Because that's zsh which will execute this.
<{^_^}>
[nixpkgs] @nlewo opened pull request #102244 → Re-enable the Systemd remote support → https://git.io/JTHRo
cole-h has joined #nixos
<asbachb>
Hi. Which hydra job is refelctin nixos-unstable channel?
<supersandro2000>
asbachb: that we already know or otherwise it would have advanced in the last days
<asbachb>
supersandro2000 What I don't understand why nixos-unstable is on a state where a package is unable to build. Shouldn't a broken build prevent from beeing merged into nixos-unstable?
<supersandro2000>
asbachb: is it unfree?
Dotz0cat_ has quit [Ping timeout: 272 seconds]
<qyliss>
asbachb: sometimes packages can be broken because a dependency updates
<qyliss>
and testing every dependent of packages with a lot of them isn't feasible
<bqv>
this one's a pain to search. is there a preferred way to import an ini file into nix?
rgoswami has joined #nixos
<qyliss>
builtins.fromTOML, if it's valid TOML
<qyliss>
otherwise it might be difficult
<bqv>
wait, ini is a toml subset?
<asbachb>
supersandro2000 I'm unsure if it's unfree.
ManiacOfMadness has quit [Ping timeout: 265 seconds]
<asbachb>
qyliss: Ah in case an ffmpeg dependency is updated that change does not trigger ffmpeg to rebuild.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pr06lefs has joined #nixos
ManiacOfMadness has joined #nixos
<cole-h>
domenkozar[m]: A nice feature of Cachix would be the ability to see all the storepaths of a specific cache by clicking on it, rather than through the garbage collection page (which lists all caches)...
<cole-h>
(This includes the paths of every cache, though)
<cole-h>
(and only the N oldest)
dbmikus has joined #nixos
<siraben>
ugh, I can't copy the hash because it appears on hover
rgoswami has quit [Ping timeout: 258 seconds]
<cole-h>
domenkozar[m]: Another thing that should be fixed ;)
<cole-h>
siraben: You can inspect element it
<siraben>
Yay `nix-env -i /nix/store/nhd7hj1sa9yj4qn2ac438p8qhfwqw7a2-git-2.28.0` seems to be downloading from the caches
<siraben>
Yep, did that.
<pr06lefs>
I'm writing a nix package - my makefile doesn't have an install phase, so it fails. I'm writing the makefile solely to support this being nix package, so I guess I could do whatever. Or override the installPhase to I guess copy the executable to $out.
<siraben>
cole-h: is it possible to just fetch it into the current folder?
<pr06lefs>
I did the override thing, but then my app isn't available from the console after.
orbekk has quit [Ping timeout: 264 seconds]
<pr06lefs>
maybe it needs to be $(out)/usr/bin/myapp ?
<m1cr0man>
Heyos. Does anyone know any, uh, no-op FUSE filesystems? I am trying to spoof an NFS mount as totally-not-NFS so that Wine doesn't pick it up as a network drive. I can use overlayfs to do it but ideally I just want the writes to go back to the NFS.
whatisRT has quit [Ping timeout: 260 seconds]
<fendor>
firefox can't open the zoom app from an invite link. Can I fix that somehow?
<supersandro2000>
fendor: do you have a log? Does it use xdg-open?
<{^_^}>
[nixpkgs] @andir opened pull request #102251 → WIP: introduce -frandom-seed in stdenv → https://git.io/JTHar
<fendor>
supersandro2000, I have, unfortunately, no idea. Zoom opens a link with a "Launch Meeting" button, but clicking that does nothing. On chromium, it works, and on other OS's, firefox works, too
<supersandro2000>
fendor: I suspect that it tries to open something which is not available in firefox like maybe xdg-open
<nixnewbie>
hello, I want to override xrandr version. I created an overlay https://dpaste.org/zf7T but I still have xrandr 1.5.0 after rebuild, what am I doing wrong?
<supersandro2000>
nixnewbie: home-manager?
<worldofpeace>
infinisil: lol, a secret project
<siraben>
fendor: Hm, I'm not familiar with this overlay
<siraben>
Seems to act like home-manager
<worldofpeace>
infinisil: it sure seems, hmm, slightly overlapping with another feature...
<fendor>
clicking on the "launch meeting" button definitely sends a request and I get a response, afaict
<nixnewbie>
How can one override system package?
<sphalerite>
nixnewbie: did you intentionally call the new attribute "xorgn" instead of "xorg"?
<DigitalKiWicked>
xorgn + 1
<nixnewbie>
sphalerite no, it was xorg before, and it wasn't working as expected, so I began changing more
ddellacosta has joined #nixos
<Reventlov>
Hi
<Reventlov>
Is there some nix option to access usb devices as a normal user ?
<sphalerite>
nixnewbie: hm ok. I'm not too familiar with overrideScope stuff, so I can't say for sure. But do you actually need to use an overlay for a particular reason, or would building your system from a nixpkgs checkout with your changes also do?
<sphalerite>
Reventlov: on NixOS? You can make udev rules like on other distros using services.udev.extraRules
<bqv>
the string 'mdadm-grow-continue@' is not allowed to refer to a store path (such as '!out!/nix/store/h1gkj2m1s289ynmgvkfwpxmydisrsbgp-mdadm-4.1.drv')
<nixnewbie>
sphalerite I just wanted to use new xrandr, because it has filter nearest. I don't know how, but now it is working, sorry for being a bother. Is there an option to override package version easier?
<sphalerite>
nixnewbie: yeah, there are several easier ways — if you just want it in systemPackages, you can directly put environment.systemPackages = [(pkgs.xorg.xrandr.overrideAttrs (attrs: {…}))];
<Reventlov>
sphalerite: yeah, I'm trying to be able to access pretty much any usb device, as my own user
<nixnewbie>
sphalerite thank you!
<sphalerite>
nixnewbie: but you can also take a nixpkgs checkout, modify it there, and build your system from it by passing -I nixpkgs=path/to/your/nixpkgs to nixos-rebuild
<sphalerite>
nixnewbie: the latter approach is also more useful if you want to contribute the change upstream
<sphalerite>
Reventlov: That doesn't sound like a good idea tbh, I have for example services.udev.extraRules = ''SUBSYSTEM=="usb",ATTRS{idVendor}=="1050",ATTRS{idProduct}=="0405",OWNER="linus"''; to give my user access to my yubikey based on the vendor/product ids
<nixnewbie>
I hope, that there will be 1.5.1 soon, as it has nearest scaling mode and it works like a charm in my setup
astronavt has joined #nixos
<sphalerite>
Reventlov: you _can_ allow your user access to all usb devices by removing the two ATTRS conditions, but I don't recommend it.
<zeta_0>
hello there, does home-manager now have a 20.09 nix channel? all i see currently is 20.03 and unstable.
<infinisil>
nixnewbie: `man configuration.nix`
<scott>
is there any way to use nix-collect-garbage without deleting things i've used in `nix-shell -p` or `nix run` in the past week or two (which will generally be unrooted)?
<dutchie>
you can use lorri to autocreate gc roots for nix-shell environments
<scott>
i will definitely check out lorri and possibly put together something of my own for making temporary roots
<zeta_0>
cole-h: sweet, thanks for link?
<supersandro2000>
Can I run tests with nix or do I need nixos?
<sphalerite>
that's the one! I had completely forgotten the name but wanted to suggest it :D
Fare has joined #nixos
<nixnewbie>
infinisil yes, but there are many options which are false, I only want to get which are true | can be overrided, without having to read though all of them by hand
<zeta_0>
cole-h: woops i accidentally put a question mark
<sphalerite>
supersandro2000: you do need to be on a linux with KVM support in the kernel, but that should be enough to run the NixOS tests.
<sphalerite>
actually not sure kvm support is even needed, though they'll probably be horrendously slow without.
<sphalerite>
nixnewbie: you can set all/any of the options listed in configuration.nix.
<zeta_0>
i was having a couple of issues with lorri and decided to switch to nix-direnv, so far i really like it, have any of you tried out nix-direnv?
<zeta_0>
i don't understand flakes, but i have them enabled for the nix tools that support them, like nix-direnv.
<nixnewbie>
sphalerite yes, I understand that, but I want to know which options are true now. so I can edit the current state and reduce it
tenniscp25 has quit [Remote host closed the connection]
<bqv>
if anyone's interested, i think the issue is that attrnames can't have contexts
<supersandro2000>
elvishjerricco: did you solve the `Cannot allocate memory for gzip -d` error with the sandbox enabled?
mschwaig has quit [Read error: Connection reset by peer]
<bqv>
but in my case i can just remove it from the attrname because the value has the same context anyway
mschwaig has joined #nixos
<zeta_0>
i just want to say thanks to the nix community for developing these amazing tools, they've helped me a lot!
<zeta_0>
oh, before i forget, does nix work on windows or will i need to put windows on a virtual machine instead? i was lucky enough to land a job as a software engineer, but everyone at my work uses Windows 10.
<energizer>
What is the downside of using buildFHSUserEnv?
<cole-h>
Nix does not (yet) support Windows.
<zeta_0>
and can i build software on nixos that can run on Windows 10? i should probably ask these questions on reddit as well!
<DigitalKiWicked>
there's some support or at least work being done to support mingw cross compilation
whatisRT has joined #nixos
<cole-h>
Possibly. We do have `pkgsCross.mingwW64`
<cole-h>
Nothing's stopping you from running it at home, but if it's work-critical I wouldn't want to tempt fate...
<Jezhehim[m]>
Does that include nixos not working on WSL?
<zeta_0>
simpson: that's why i was thinking to either develop windows applications on nixos, or install nix on Windows(which i guess cannot work at the moment)
<bqv>
infinisil: this seems up your alley. how could i fetch the submodule of an option from options, to reuse in another option? i'm peeking into type.functor.wrapped.functor.payload and seeing something promising (for an attrsOf submodule)
<bqv>
actually nevermind, i think that does work, i've misinterpreted my error
<infinisil>
Yee
tenniscp25 has joined #nixos
jumper149 has quit [Quit: WeeChat 2.9]
<zeta_0>
simpson: thanks, that pyinstaller looks like just what i need, and ya, i know elm's type system is restricted but the experience felt so much better than using yesod(weird verbose template languages) to develop web applications, but with miso, i also have access haskell as well.
<DigitalKiWicked>
i also avoid yesod lol
<simpson>
zeta_0: As a fun puzzle to imagine how to free your mind from type systems, imagine using e.g. Haskell's `cereal` or `binary` across a network. How can a type system span multiple computers?
tenniscp25 has quit [Ping timeout: 260 seconds]
<cole-h>
zeta_0: It probably doesn't have any docs. I only know about it because I used `nix repl ~/nixpkgs` and used the tabcompletion
<supersandro2000>
Does tab completion in 2.X need rl-wrap or was that previous command?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sphalerite is now known as spookyscarysphal
cjpbirkbeck has joined #nixos
<zeta_0>
simpson: uhh, i don't know
hnOsmium0001 has joined #nixos
<zeta_0>
simpson: so are you implying that type-systems have limitations?
<simpson>
zeta_0: IMO it *cannot*. Other folks have other opinions. Type systems are restrictive; they protect us from making mistakes but also constrain us from certain possibilities.
astronavt has joined #nixos
cole-h has quit [Ping timeout: 264 seconds]
<zeta_0>
simpson: ya that makes sense, i get that experience switching back and forth between python and haskell.
<DigitalKiWicked>
simpson: akka?
<DigitalKiWicked>
assuming you don't just use Any >.>
<zeta_0>
currently, i prefer haskell, but i decided to use python instead for developing on Windows, my boss only understands object-oriented languages, he gave me a weird look when i brought up functional programming.
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JTH6G
<simpson>
DigitalKiWicked: We do. Communicating over the network requires that messages be in a uniform format and that they can be given to any object. So, regardless of choice of type system, it's only at runtime that the message can be rejected.
<tpw_rules>
how is that any different from the message simply being corrupt?
alexherbo2 has joined #nixos
<simpson>
It's not corruption. Imagine e.g. that we try to make `cereal` network-safe by wrapping each message with a representation of its type, and letting types be rebuilt by the receiver to do type-checking. The receiver is now *closed*, limited in its possible behaviors by the type of messages. But this contradicts the idea that the receiving computer is an opaque black box.
* etu
notices that ryantm's bot is awake and hopes for some php packages updates this time around
<nixnewbie>
I can : p res.config, how do I use f.e. builtins.toJSON on it and export this to file?
<etu>
nixnewbie: But your config is already a nix file? Isn't that enough?
<nixnewbie>
nevertheless...
nixy37179 has joined #nixos
<spookyscarysphal>
nixnewbie: you can use pkgs.writeText "filename.json" (builtins.toJSON …) to construct a derivation that will write the stuff to a file in the store.
<spookyscarysphal>
(build that by using `:b` on it)
<nixnewbie>
ty!
<spookyscarysphal>
but it may well not be possible since the values can't all be evaluated fully.
<etu>
nixnewbie: If you have any form of "advanced" data in your nix file, such as a function. There's no "good" way to print that in a json file. Nix is a programming language, json is not. But if one has simple nix data it's easy to export it in a realized form to json.
<nixnewbie>
json was an example, not a requirement. even simple redirection to stdout works
<nixnewbie>
s/works/works for me/g
alexherbo21 has joined #nixos
brettgilio has joined #nixos
alexherbo2 has quit [Ping timeout: 246 seconds]
alexherbo21 is now known as alexherbo2
<symphorien[m]>
nixnewbie: nixos-option can do a best effort to print options vales
<symphorien[m]>
but again, you don't disclose your final goal
<nixnewbie>
symphorien[m] I disclosed it earlier. I want to list all options which are now true. some of them are default ones and I want to change them accordingly
<symphorien[m]>
everything that you set explicitely is described in configuration.nix
endformationage has quit [Quit: WeeChat 2.9]
<nixnewbie>
one more time: I want to list what has _default_ true now. not what I enabled, but hidden ones
<nixnewbie>
symphorien[m] let me give an example: now there is lvm in my system, but I really don't need it. So I want to see, what is enabled by default with my config and fix those in my config
<symphorien[m]>
so your final goal is: remove bloat from nixos
urkk has left #nixos [#nixos]
<symphorien[m]>
right ?
<nixnewbie>
and I don't want to go through every option by hand, this is insane
<nixnewbie>
symphorien[m] close, remove bloat, override some packages
<symphorien[m]>
ok, now that the xy problem is explained, let us start over
mmohammadi9812 has quit [Ping timeout: 268 seconds]
<symphorien[m]>
I don't know how to list options which create bloat, but you should probably use some disk usage utility to see what are the big items in the system closure
<symphorien[m]>
like /run/current-system
<symphorien[m]>
you can do it with nix-store --qR and clever pipes to du with xargs
<nixnewbie>
bloat != big
<symphorien[m]>
or you can use nix-du or nixdu
<nixnewbie>
bloat is useless (for me) software
<symphorien[m]>
for bloat as in "runtime daemons" or things like that, no idea
<nixnewbie>
also I want to understand system, and in order to do this I want to understand some of the evaluations and internals. as my final goal was to migrate to libressl, and make some of my system static. after that I want to look at what was proposed in RFCs and try to simulate useflags. yes, i want to build nix from scratch and use it like better
<{^_^}>
[nixpkgs] @andir pushed 2 commits to firefox-82.02: https://git.io/JTHPy
<nixnewbie>
gentoo|exherbo because it is better in my setup
<nixnewbie>
f.e. I haven't found yet: is it possible using leaps timezone?
<symphorien[m]>
what is it ?
<zeta_0>
does `nixos-rebuild switch --upgrade-all` upgrade all of the root and user channels? i just heard of the -all option recently!
deltahotel has joined #nixos
<symphorien[m]>
only root's I think
<MichaelRaskin>
Oooh, leaps timezone is indeed a nice thing, although I guess it needs ntpd support because now NTP server time is not true time?
v0|d has joined #nixos
<zeta_0>
symphorien[m]: thanks, that's good to know, i think that i'll just have all of my nix-channels placed in root, that way i can upgrade all of my nix-channels at once.
<MichaelRaskin>
In general I would say nixpkgs leans pro-bloat until closure size grows too much
urkk has joined #nixos
<symphorien[m]>
and not all of this bloat is accessible in terms of nixos-options
<aasg>
nixnewbie (IRC): I think what you'd need is a way to list every option that was evaluated to produce the system. I don't know if we have that.
<symphorien[m]>
a lot of this is just "all optional dependencies are passed to the build, and if you really don't want them, override them with null"
<nixnewbie>
aasg bullseye!
__red__ has left #nixos [#nixos]
urkk has quit [Client Quit]
<zeta_0>
thanks for the help, i have to go now, later!
<nixnewbie>
symphorien[m] and I will do this, but I need to understand the full picture. then I can go through every package (I think I'll write something for this as it is easier to use software for this)
urkk has joined #nixos
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<symphorien[m]>
maybe your best bet is to remove the file in nixpgks which includes all modules by default, and then only add modules you use explicitely
<symphorien[m]>
then you can use man configuration.nix as the set of options of the modules you use
<nixnewbie>
it's better than nothing but still I won't get the whole picture
<symphorien[m]>
I quicly checked, apparently nixos-option does not have a recursive model
<symphorien[m]>
s/model/mode/
<symphorien[m]>
I don't get what you mean by whole picture
katrin has joined #nixos
<nixnewbie>
list every option that was evaluated to produce the system. like aasg said
malook has quit [Quit: malook]
<nixnewbie>
When the system is a blackbox it's really difficult to navigate
<MichaelRaskin>
If you only include the modules you use, isn't their set of options that list by definition?
<simpson>
That sounds like more XY thinking. Knowing how Gentoo's stage1/stage2 is produced will not help you control your actual userspace. Instead, try out clever's one-liner to look for packages that are big, and then you could `nix why-depends` or similar to figure out how to remove that package.
zupo has joined #nixos
<aasg>
Not really, if you have `services.someService.enable = false`, usually none of their other options are even evaluated
<Taneb>
I would like there to be programs.ssh.knownHosts.<name>.extraConfig
<MichaelRaskin>
aasg: yes, but we were talking about removing the unsued modules from include list
<nixnewbie>
Still I want to understand nix better. f.e. I want to add x32 cross option and I've read through some of the sources in order to get this done
<{^_^}>
[nixpkgs] @zimbatm pushed to staging « pythonPackages.pip: make reproducible (#102222) »: https://git.io/JTHXx
amir has quit [Quit: No Ping reply in 180 seconds.]
amir has joined #nixos
deltahotel has quit [Quit: Best 73's]
mmohammadi9812 has joined #nixos
<elvishjerricco>
So I have a windows program I'm trying to run with wine, but I'm getting this error: `This program can only be installed on versions of windows designed for the following processor architectures: x64` Is this a wine problem or a nixos problem?
nixnewbie has quit [Remote host closed the connection]
<danderson>
Flake question: is there a way for flake.nix to include derivations that use source from the same git repo as the flake?
<danderson>
I'd like to add a flake.nix to a repo that contains the source for a program. Ideally, I'd like to be able to specify to the derivation "just pull from the same place you got flake.nix from" and skip having to provide hashes and whatnot - since the pointer to the flake should fully identify the code I'm building from.
<danderson>
I suspect this isn't possible, and so if I want to make a change I have to first commit to the code, then make a second commit to flake.nix to update the derivation to use the source at HEAD^. Am I missing something?
<notgne2>
why does your code need to be a flake input?
<{^_^}>
[nixpkgs] @gilligan opened pull request #102276 → upterm: init at 0.4.6 → https://git.io/JTHDV
<danderson>
notgne2: the flake is providing derivations and nixos modules to build and run that code. What else would it be?
katrin has joined #nixos
<danderson>
my aim is to avoid having to update flake.nix every time the code changes (which requires a separate commit), when the git revision of flake.nix is sufficient to fully describe the source in the first place.
<tpw_rules>
danderson: is your project public? i think i want to do something similar
<pta2002>
I just installed nixos on a raspberry pi
<pta2002>
Is it normal that nix-env -i takes so long?
<pta2002>
I ran it with -v and it seems to be evaluating every single package
urkk has joined #nixos
<simpson>
nix-env is a memory hog, and on low-memory systems it may be impractical.
<pta2002>
(as far as I can tell that's how I can get it to install everything i set up in .config/nixpkgs
<dutchie>
this is probably when you want to run -iA and give an attribute
<dutchie>
oh
<pta2002>
no i declared some vim configurations on .config
<pta2002>
as far as i know nix-env -iA is for installing a specific package right?
<pta2002>
but i run it with -v and now it seems to be evaluating everything under /nix/store/.../nixos/pkgs
<{^_^}>
[nixpkgs] @freezeboy opened pull request #102284 → Refactor google to python3 → https://git.io/JTHHQ
<pta2002>
which is the entire nixpkgs repo...?
<pta2002>
not sure, but seems like it
<nicolas[m]>
You want the `-A` flag in most cases
<nicolas[m]>
unless you don't know the package name
<samueldr>
nix has to evaluate Nixpkgs to be able to work with Nixpkgs :)
<pta2002>
does it evaluate all of nixpkgs every time?
<pta2002>
because this has been going on for at least 5 minutes now
<pta2002>
jsut to install neovim
<pta2002>
or is this just the first time
<samueldr>
but yes, if you were doing -i (which is not the case here, other readers) -A would be helpful in not getting an additional cost at working over every name attributes
<pta2002>
to get it to evaluate my configuration and do what i specified there
mananamenos has quit [Ping timeout: 240 seconds]
<samueldr>
which Raspberry Pi is it?
<pta2002>
3
<pta2002>
B
<samueldr>
right, just checking
<pta2002>
it's officially supported, installed without much issue
<samueldr>
yeah, I know :) and good to hear the "without much issue"
<pta2002>
just some issue with wifi but that was solved by enabling the firmware
<pta2002>
had to dig around for that one
<pta2002>
was missing the wifi drives
<pta2002>
drivers*
<samueldr>
I'm really not sure about that nix-env thing
<samueldr>
or, let me rephrase, I really don't know
<samueldr>
I wonder if it is made worse by slow I/O (SD card I presume)
<pta2002>
hm
<pta2002>
yeah it's an sd card, not that fast
<pta2002>
still, nixos-rebuild was not that slow
<samueldr>
yeah, that's what confuses me a little
<samueldr>
what is the exact `nix-env` invocation you used?
<pta2002>
i just did nix-env -i
<pta2002>
im not sure what i should run
<pta2002>
i just want to reload the nixpkgs config
urkk has left #nixos [#nixos]
<pta2002>
i put somethings in .config/nixpkgs/config.nix
<pta2002>
and wanted that to come into effect
<samueldr>
for all the time I've been using Nix and Nixpkgs I've never used declarative nix-env (and been staying away from installing anything elsewhere than systemPackages), so uh weird
<samueldr>
I can't seem to find, in the man page, what `nix-env -i` (without further args) really should be doing
<pta2002>
im not sure this is supposed to be done with nix-env
<Jonathan74>
At one point I needed to add the lib folder to the LD_LIBRARY_PATH in the shell.nix.
hmpffff has joined #nixos
pushqrdx has joined #nixos
<pushqrdx>
hi there
<pushqrdx>
i am having two issue and would love if anyone can help with them
<Jonathan74>
I think it may not be LD though.
<Jonathan74>
Can I change the path without clearing it? `PATH = "$PATH...` is clearing the old path?
<pushqrdx>
my onboard audio creative ca0132 needs 2 firmware bin files that i need to put into us/lib/firmware normally (otherwise my audio is completely broken)
<pushqrdx>
idk where should i add that in nix
ddellacosta has quit [Ping timeout: 260 seconds]
<Jae[m]>
OK, for some reason, Nix is trying to build Libreoffice and doesn't try to pull it from the cache. Here is the output of the diagnosis script http://ix.io/2CDM
<Jonathan74>
Jae[m]: have you update the nix-channel recently?
<Jae[m]>
Yes, I went from 20.03 -> 20.09 and I did 'nix-channel --update' before rebuilding (with the --upgrade switch)
<Jonathan74>
pushqrdx: that is above m head, maybe try again some other time when someone else is one.
<Jonathan74>
Jae[m]: normally when I have a problem like that it is because my channel is old.
<Jonathan74>
Are you on unstable?
<pushqrdx>
alright onto the second issue then, i installed the pantheon desktop and i am sure saw `elementary-wallpapers` package being downloaded during system installation, However after booting to the system there's no wallpapers there
<Jonathan74>
Jae[m] I'd not expect hydra to not have it built then, I don't know.
<Jonathan74>
pushqrdx: have you looked at how to configure `elementary-wallpapers`? Should it have something by default?
<pushqrdx>
in the nix docs it said in order to use Pantheon desktop all you have to do is to specify it under desktop managers, nothing more as it's a meta package with all the needed stuff
<pushqrdx>
and it is. it installed everything, but for some reason no wallpapers (even though i saw the package downloaded)
<Jae[m]>
Changed to `libreoffice-fresh` and it seems to work
<Jonathan74>
Jea[m]: I am glad you found a solution.
<Jonathan74>
pushqrdx, is there a settings app in Pantheon?
<Jae[m]>
Not gonna lie, It's kinda ridiculous xD
<Jonathan74>
pushqrdx: Will it show a wall paper when you try reconfiguring it?
kirc has joined #nixos
<pushqrdx>
yes there's a setting but if i go in settings>desktop>wallpaper there's nothing
fendor has quit [Remote host closed the connection]
<pushqrdx>
it opens the dialog if that is what you are asking, but default wallpapers should be there by default. also idk where they are anyway
Acou_Bass has quit [Ping timeout: 258 seconds]
<pushqrdx>
there was even a default nix wallpaper set when i first booted but now it's gone
<Jonathan74>
It looks like the problem is just that the standard defaults are either not working and non existent for some reason.
<notgne2>
I don't know anything about pantheon, but a lot of problems like this come from hardcoded paths to dead nix store locations
<Jonathan74>
I was thinking it may probably related to nix's store locations.
<notgne2>
some config might have auto generated itself with `stockWallpapers = /nix/store/blah-blah-blah`, then pantheon updated and now the store path is dead