<{^_^}>
[nixpkgs] @SuperSandro2000 opened pull request #116269 → uutils-coreutils: install symlinks again by converting to stdenv.mkDe… → https://github.com/NixOS/nixpkgs/pull/116269
<sabasedigh>
Do I have an smooth user experience on NixOS with Intel CoreDuo 2 CPU?
<tpw_rules>
probably
zebrag has quit [Quit: Konversation terminated!]
<tpw_rules>
nobody can know but you
<sabasedigh>
tpw_rules: let me say this
zebrag has joined #nixos
<supersandro2000>
probably not for developing
<sabasedigh>
I have a good user experience on ubuntu and on archlinux kde. could I expect the same on nixos?
<supersandro2000>
well maybe. Give it a try
ahmedelgabri has joined #nixos
<sabasedigh>
supersandro2000: as I remember for OS customization I couldn't just edit regular dot files in my home directory. is there a tutorial on that? could you pass me the link please?
<sabasedigh>
:)
<supersandro2000>
you can if you don't manage them with home-manager
<patagonicus>
Is there an easy way to query the store path? I know that it's almost always /nix/store, but I'd like to make some code interacting with nix a bit more robust.
<dxmann>
Hello! I'm new in Nixos and I'm trying to use in on a RPi 3B+. After doing 'sudo nixos-generate-config' in order to have a good configuration.nix to customize, I have added some modifications. After a first update with 'nixos-rebuild switch --upgrade' I noticed that packages are updated but not the configuration. So I called 'sudo nixos-rebuild
<dxmann>
switch' again but I have these errors:
<dxmann>
"error: syntax error, unexpected $end, at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/default.nix:1:1
<dxmann>
building Nix...
<dxmann>
error: syntax error, unexpected $end, at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/default.nix:1:1
<lobre>
atemu12[m] it has been apparently merged 26 days ago if I believe this PR https://github.com/NixOS/nixpkgs/pull/107937. I'd be interested in knowing how often nixos-search updates its index as well. I guess people could get confused when searching "unstable" if it does not necessarily contain recent package. We usually expect the most recent devs
n-osborne has quit [Remote host closed the connection]
Dr8128 has joined #nixos
ManiacOfMadness has quit [Ping timeout: 260 seconds]
<peterstorm[m]>
I have an Intel Wifi AC 9260 that I can see when I boot into a plasma graphical interface, but the interface is not seen when doing `ip a`, how do I fix that? I'm running 20.09
<yaymukund>
I'm still running into some strange issues with Firefox saying "JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory." and "Gdk-Message: Unable to load hand2 from the cursor theme". It still seems to open and function as expected (although I do not get the hand cursor when mousing over links).
ahmed_elgabri has quit [Ping timeout: 265 seconds]
kenran has joined #nixos
emrysmerlin[m] has left #nixos ["User left"]
<kenran>
I'm trying to add packages to emacs via: pkgs.emacsWithPackages (epkgs: with epkgs; [ magit evil evil-magit ]); but this fails with "attribute 'evil-magit' missing". I can see evil-magit in melpa-packages.nix somewhere, but don't know how to access it. Any idea what I'm doing wrong here?
<kenran>
(magit and evil themselves work, it's just about evil-magit)
<clever>
kenran: what if you run `nix repl '<nixpkgs>'` then try to tab-complete `epkgs.evil` ?
<kenran_>
clever: Tried it with pkgs.emacsPackages. and got other evil-stuff beginning with m, but not magit.
<clever>
then the package likely doesnt exist in nixpkgs
<kenran_>
It's probably got something to do with the evil-magit being in "emacs-modes/melpa-packages", but I don't really know what that is. I'll dig around that a bit.
ahmed_elgabri has joined #nixos
<clever>
kenran_: what does that line say?
terrorjack has quit [Remote host closed the connection]
<kenran_>
I've found issue 44971 where someone was using it like I was trying, but that's old. That line I found says 'evil-magit = buildWithGit super.evil-magit;'
kenran has quit [Quit: Lost terminal]
<kenran_>
It's in the function "generateMelpa", which seems to be used to generate the set of MELPA packages.
<clever>
kenran_: yeah, i'm not sure where it is....
werner292 has joined #nixos
<kenran_>
clever: I thought I might have mixed up something with the channels (nixos/nixpkgs/home-manager), and updated everything to latest, but still. Maybe there's a switch "missing" somewhere that I'm not knowing about.
<clever>
kenran_: i ran nix repl against the same nixpkgs src i was reading, and cant find it either
<kenran_>
clever: thanks for looking! How the heck can it just "not be there" or "disappear" like that. Very strange... I gotta run now, but I'm gonna try and see if the other packages in there work fine.
<kenran_>
clever: ahhh, it's not in the recipes-archive-melpa.json file that's used by default. Then the attribute gets filtered out... don't know why though.
<clever>
aha
m0rphism has joined #nixos
dev_mohe has joined #nixos
Reiser has quit [Quit: Ping timeout (120 seconds)]
<stteevveen>
Hi! in the nixos installer there is a entry "Nixos 20.09.... Installer (copytoram)" : by sheer curiosity what does it do differently ?
<atemu12[m]>
kenran: Yeah it's been absorbed into the evil-collection
<stteevveen>
self answering my quesion: "Additionally a copytoram option has been added, which makes it possible to remove the install medium after booting. This allows tethering from your phone after booting from it. "
stree has quit [Ping timeout: 260 seconds]
<Yaniel>
the short version is: it copies the entire image into RAM
ahmed_elgabri has joined #nixos
<stteevveen>
@Yaniel I was sort of assuming this. But I could not understand why it would make sense. Now I'm left with the question that I deduced from this: "... after booting from it... " Uh, booting from the phone. This is the sort of possibility I am not aware of.
griff_ has quit [Quit: griff_]
<Yaniel>
hmm usb-otg to make the phone pretend it's a mass storage device
<Yaniel>
and I guess it makes sense to install nixos on something that normally won't have network connectivity
<kenran>
atemu12[m]: Yeah, saw that now and used it :) I spent some time figuring out how the emacs packages work in nixpkgs though, so that's probably useful at some point!
<kenran>
Already learned a lot from starting "over" (by trying to move from doom emacs to self-rolled config) about just how many packages there are that I've been relying on without knowing.
<peterstorm[m]>
Just in the configuration.nix file? @pata
<peterstorm[m]>
* Just in the configuration.nix file? patagonicus
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<patagonicus>
Yeah, just put `hardware.enableRedistributableFirmware = true` into your configuration.nix, then `sudo nixos-rebuild boot` and reboot (not sure if rebooting is necessary, but if that doesn't fix it your problem is not (just) missing firmware, probably).
ahmed_elgabri has quit [Read error: Connection reset by peer]
Siyo has quit [Quit: Bye]
<peterstorm[m]>
I'll try that, thanks
Siyo has joined #nixos
<peterstorm[m]>
hmmm, no bueno
<peterstorm[m]>
`ip a` still doesn't show the interface :(
<Yaniel>
try running the initial configuration utility again
<Yaniel>
to generate a new hardware-configuration.nix
<peterstorm[m]>
how do I do that?
<Yaniel>
the chip might need a kernel module that isn't mainlined
sabasedigh has quit [Ping timeout: 260 seconds]
<ar>
this sounds like you lack firmware for the nic
<ar>
peterstorm[m]: is this on the liveusb, or on your already installed system?
<peterstorm[m]>
Already installed the system
<peterstorm[m]>
Switched the GFX for 3070
<peterstorm[m]>
Then wifi didnt work
<peterstorm[m]>
Then I upgraded to 20.09
amir has left #nixos ["Read you later guys!"]
<peterstorm[m]>
And I got into plasma again, but wifi still doesnt work :(
zebrag has joined #nixos
sangoma has joined #nixos
<ar>
peterstorm[m]: can you do a "dmesg | grep -i iwlwifi" and paste it to some pastebin (eg. https://dpaste.com/ )?
riksteri has quit [Read error: Connection reset by peer]
corpix_ has quit [Remote host closed the connection]
konobi has joined #nixos
corpix has joined #nixos
dottedmag has joined #nixos
dottedmag has quit [Changing host]
dottedmag has joined #nixos
supersandro2000 has joined #nixos
oldandwise has joined #nixos
wolfshappen has joined #nixos
<peterstorm[m]>
Oh damn, that helped! Windows 10 has a setting in Power Settings turning something called Fast Startup on, that apparently messes with the wifi in Nixos!
<fuzzypixelz>
nevermind ... I almost forgot hardware-configuration.nix existed
julm has joined #nixos
n-osborne has quit [Remote host closed the connection]
<turbo_MaCk>
I did the hackish `du -a /nix/store | grep libuuid.so.1` and found it in util-linux/lib but when I try to ls ${util-linux}/lib I don't see it there. nix-index doesn't work for me - error: reading from the database at '/home/marek/.cache/nix-index/files' failed. no wonders. that directory doesn't exist. Not sure how I can generate the database.
sangoma has quit [Read error: Connection reset by peer]
<turbo_MaCk>
clever: I need libuuid.so.1 - version 1.0 specifically - I need to patchelf some other shared object. Alternatively if there is a way to patchelf with different version (replace libuuid.so.1 with libuuid.so) that might work as well but I'm not aware how it can be done.
<turbo_MaCk>
clever: ah you're right. I tried that before but ldd still says not found so I thought there must be only a newer one. But now I see it's there so there must be some other reason for patchelf not working for it.
<turbo_MaCk>
clever: ha got it! It was because of missing .out. so.1 is present only there. Thanks a lot. You saved me a lot of time because it would took me a while to realize this :D
<infinisil>
So it actually searched for both files "lib" and "libuuid.so.1"
<clever>
ah!
<infinisil>
Currently the only special commands are "bin" and "man"
<ar>
w/31
<infinisil>
,locate libuuid.so.1
<{^_^}>
Found in packages: libuuid, utillinux
<stteevveen>
Hi! the fileSystems type has changed in 20.09, and whatever I write into it in my configuration.nix file, I mean even fileSystems={}; or fileSystems=[]; will bring me an error. Not better results if I try to follow the syntax with some device entries like shown in Nixos.Options web page. Any clue ? what kind of syntax does it expect ?
<stteevveen>
Excellent suggestion. When commented I still have the error. Let me some moment to check this. Am I nixos-install ing the configuration I'm working into... ?
<clever>
stteevveen: depends, is this config for the target machine or the current machine?
<stteevveen>
it should be the target machine. I'm gonna check where generate-config put the files.
<clever>
stteevveen: both generate and install act on /mnt/etc/nixos
<stteevveen>
that's it, they were copied, and I was working on the git version... phew... ashamed ;-)
<stteevveen>
by the way, while we are at it. I had tmpfs drives, for which the device was set to "tmpfs" in the former format. Should I indicate for example "/tmp".device = "tmpfs"; "/tmp".fsType="tmpfs"; or should I leave the device blank ? Just in case that rings a bell for you.
<clever>
stteevveen: not sure it matters, try it and see what happens
marsh has quit [Ping timeout: 272 seconds]
marsh has joined #nixos
<_jv_>
I've been searching around for information on this topic for a couple of days but can't find what I'm looking for. Does anyone have recommendations on how to manage secrets as part of a nix configuration? What's the nix way of doing this?
<_jv_>
Thanks both. Should it be assumed that the example load-secrets is filled in after installation on the target machine? I was hoping to find an example of making it fully declarative, I'm not sure that's even feasible.
<fuzzypixelz>
I'm using flakes for my system config, and in my flake.nix file there is a `nixpkgs-unstable = "nixpkgs/nixos-unstable"` input
<fuzzypixelz>
how do I access that from nix-shell
stree has joined #nixos
<fuzzypixelz>
the usual syntax for importing the <nixpkgs> channel still works, which deeply confuses me
<ehmry>
fuzzypixelz: put `inherit (nixpkgs) legacyPackages` in the output of your flake, and then you can use your flake the way you would the nixpkgs flake
werner291 has joined #nixos
<fuzzypixelz>
ehmry: so how would I write a shell.nix in that case?
<stteevveen>
@_jv_ I'm not sure what you mean something "fully declarative" . It depends on the presence of a file with correct value filled. What other way would you expect ? What operation would you declare so as to the the variables ?
<ehmry>
fuzzypixelz: that depends on what you want to do, now I usually add a flake file to each project I have
<stteevveen>
"so as to to the variable" = "so as to set the varaibles"
ahmed_elgabri has joined #nixos
<fuzzypixelz>
ehmry: I just need some build time deps for a project
amistillgraciesv has joined #nixos
jakubgramsz[m] has quit [Quit: Idle for 30+ days]
seeMee[m] has quit [Quit: Idle for 30+ days]
<ehmry>
fuzzypixelz: you can always do a `builtins.getFlake "/my/flake"`
<fuzzypixelz>
ehmry: I meant that I want to use the same nixpkgs in the inputs of my nixos config flake, inside a nix-shell
<fzakaria>
is there a good write-up of lorri vs. direnv-nix?
<fzakaria>
I struggle to still understand why people use Lorri. The nix-community extension to direnv caches and sets up a GC root also; and doesn't need a daemon
<fzakaria>
I feel like i'm missing some of the other appeals of Lorri
<gchristensen>
lorri runs evaluation in the background and automatically when your code / expression changes
FRidh has quit [Ping timeout: 246 seconds]
<clever>
fzakaria: i think the only "feature" it gives, is that the eval/build happens in the background, so you wind up using the old shell for 10mins, pulling your hair out trying to figure out why the shell.nix isnt taking effect
<clever>
gchristensen: i would consider that a bug :P
<ehmry>
fuzzypixelz: nix repl is good for figuring these things out
<gchristensen>
okay :)
<fzakaria>
nix-direnv seems to notice when my shell.nix changs and re-evaluates. I think it keeps a md5 of nix files
<tpw_rules>
my 2 cents are that i use flakes to replace both lorri and direnv. i don't like lorri's background evaluation either
<fzakaria>
although it does it in the foreground not background.
<clever>
fzakaria: i think its just re-doing the eval every time you enter the dir, and nix caches the build normally
<gchristensen>
clever: lorri was designed for a use case where evaluation takes a *long* time, and it would be a big problem to block on evaluation, but yeah different usecase
<fzakaria>
Nah direnv-nix can automatically detect in most cases
_jv_ has quit [Quit: Connection closed]
<fzakaria>
they call out some cases where it doesn't so it's not perfect
<gchristensen>
ah that is another thing, it makes nix-shell safer, whereas a malicious nix-shell could automatically do scary things. lorri calculates the environment in a nix-build sandbox and runs the shellhook in the sandbox too
<gchristensen>
but that isn't a realistic concern I have
<clever>
gchristensen: iohk has some tricks where doing `nix-shell -A foo` will use the shellHook to run a script and mutate the source in some defined way, using buildInputs to manage getting the right tools
<clever>
gchristensen: in this case, ncurses doesnt properly add to the cross shell, so i have to add it myself, and then just echo 2 things as a reminder
<gchristensen>
yeah that seems totally appropriate
<clever>
that drv allows cross-compiling a kernel, with working `make menuconfig`
<fzakaria>
It's been positive and frustrating at same time.
<fzakaria>
I wrote internally at work a retrospective of trying to push Nix build system last ~7 months.
<simpson>
fzakaria: FWIW I have used the upstream direnv Nix support for like 3yrs and learned to live with all of the quirks. I never got around to adopting lorri. Maybe your team doesn't need the fanciest tools?
<fzakaria>
I might clean it up and post publicly
<simpson>
I appreciate what you're working towards, BTW, and I think that any public feedback you could share would be appreciated.
<simpson>
fzakaria++
<{^_^}>
fzakaria's karma got increased to 1, that's Numberwang!
ahmed_elgabri has quit [Ping timeout: 272 seconds]
<veleiro>
anyone have an example nix usage for python developers? in place of pip
stteevveen has joined #nixos
civodul has joined #nixos
mcornick has joined #nixos
<veleiro>
how about a flake based python dev environment?
<kenran>
veleiro: I don't know about flakes or python, but the easiest step would be to just provide a shell in which you specify what packages shall be present in your python environment.
<sterni>
stteevveen: poetry projects should be pip compatible since they also rely on pyproject.toml and poetry2nix is actively maintained, so it's a good solution, but not the only one probably
<stteevveen>
Hi! I installed my configuration on another machine, and something get broken when they rely on other channels. I notice that on the original machine I have "home/user/.nix-defexpr/channels:" prepended to an other wise similar $NIXPATH env variable. Is it something that needs to be done by hand, or are there commands that would correctly set the
<stteevveen>
$NIX_PATH variable so as to take channesl into account ?
cognemo_ has quit [Quit: cognemo]
cognemo has joined #nixos
evhan has quit [Ping timeout: 264 seconds]
gustavderdrache has quit [Quit: Leaving.]
<clever>
stteevveen: that dir gets added automatically, if your user has ran nix-channel --update
<stteevveen>
@clever okay so i have something broken else where, thx
<stteevveen>
@clever what woudl you search for if you encountered this error message: "file '19.03' was not found in the Nix search path (add it using £NIX_PATH or -I), at ...myNixFIle.nix ; in this file I I do n1903 = import <19.03> {}; so as to point at some package in older version
<stteevveen>
it is not clear why this breaks on my new 20.09 installation, but works on another working 20.03 machine
stree has joined #nixos
dev-kcw[m] has joined #nixos
<stteevveen>
I have that channel 19.03 added, nix-channel --list does display it
<clever>
stteevveen: did you --update after adding it?
zaeph has quit [Ping timeout: 246 seconds]
<stteevveen>
nix-channel --update , yep, but strangely it did not displayed very much stuff, that astonished me
<clever>
stteevveen: as the same user you did --list as?
<stteevveen>
both root and my user I think - I'm gonna check
<citadelcore>
This is all well until I use flake B from A; nix returns an error about the "following a non-existent input", and what appears to be happening is the "follows" statement in flake B is relative to flake A which just makes NO sense
<citadelcore>
Surely follows statements should use inputs relative to the current flake, not the top-level flake?
Lord_of_Life has quit [Ping timeout: 246 seconds]
nek0 has quit [Remote host closed the connection]
<citadelcore>
I've noticed in `flake.cc` there IS a code path for that, but it never gets hit because the "absolute" property is always set on the inputs
<citadelcore>
"'follows' from an override is relative to the root of the graph" whatever that means
fendor has quit [Remote host closed the connection]
nek0 has joined #nixos
mcornick has quit [Remote host closed the connection]
sangoma has quit [Quit: WeeChat 3.1]
mcornick has joined #nixos
hlz has quit [Ping timeout: 260 seconds]
tomberek has quit [Ping timeout: 240 seconds]
UnflickerMe has joined #nixos
hlz has joined #nixos
<UnflickerMe>
Hello, I'm trying to install nixOs on an ideapad laptop but my screen flickers continuously and so I cannot proceed in sane conditions... I've tried both gnome and the minimal install. Booting the nix iso via ventoy if that can have any impact ?
<jesystani>
hello, im trying to run `stack new myproject` and im getting an error about a missing ghc version, even though `ghc --version` is showing the version its asking for. is there something special i have to do to get stack running? thank you
<sterni>
jesystani: it works for me what is the precise error?
Qwerky has quit [Remote host closed the connection]
growpotkin has joined #nixos
griff_ has quit [Ping timeout: 260 seconds]
erictapen has joined #nixos
<apo>
Hey. I'm new to nixos and just installed it on a small vps for the first time. A point that I haven't seen yet is whether and how to put configurations of e.g. daemons into my config. There's some special cases like setting the port of sshd, but what about things like the complete mail server setup?
meh` has quit [Ping timeout: 260 seconds]
kenran has quit [Remote host closed the connection]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #nixos
<ar>
apo: there's, for example, services.exim.config, services.dovecot2.configFile
<ar>
apo: generally, most services that can accept a configuration file, have an option like
<colemickens>
I did udevadm admin -R and rebooted as well.
<clever>
i didnt have to reboot, just re-plugging the device was enough
<clever>
*looks*
<colemickens>
Sure, I didn't figure I should've needed to. I was first experiencing this on my laptop with questionable USB controllers/firmware, but now I'm getting similar behavior on my new/old desktop tower.
<colemickens>
I don't know how polkit stuff works I wonder if sway is related
<colemickens>
or if polkit is even involved? I don't know :|
<clever>
colemickens: when i first insert the ledget, absolutely nothing happens on the usb bus, as confirmed by `dmesg -w`
<clever>
ledger*
<clever>
[root@amd-nixos:~]# [192629.779393] usb 3-1: new full-speed USB device number 4 using xhci_hcd
<clever>
[192630.082650] usb 3-1: New USB device found, idVendor=2c97, idProduct=0004, bcdDevice= 2.00
<colemickens>
I have my udevadm logs from after unlock, it seems like the right things show up, but Ledger Live mostly acts like nothing has happened.
<{^_^}>
LedgerHQ/ledger-live-desktop#3641 (by colemickens, 1 week ago, open): "Add accounts" gets stuck "Loading..." even after "Application is ready" on Ledger Nano S
<clever>
[192630.096973] hid-generic 0003:2C97:0004.000E: hiddev101,hidraw11: USB HID v1.11 Device [Ledger Nano X] on usb-0000:04:00.0-1/input0
<colemickens>
sometimes Ledger Live sees it, the manager even launches, but then once it gets to actually communicating with an app it fails (probably because the app comes back as a different usb device that... [whatever] happens to)
<clever>
colemickens: the + here, says an ACL was added to the device
<clever>
colemickens: yeah, it cant detect my ledger anymore...
<clever>
colemickens: aha, hotplug issues, i re-launched the electron mess, with it plugged in, and it worked
<colemickens>
clever: try to load a receive address ;)
<clever>
colemickens: fhs-env, i see the problem!
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever>
daedalus had the exact same issue
nhs has quit [Ping timeout: 246 seconds]
<colemickens>
>:(
* colemickens
haha matrix shows it as a quote
<clever>
colemickens: hotplug events from udevd, are fired into the kernel, which then re-broadcasts them over a special socket, to every libudev client listening for hotplug
<clever>
colemickens: when the kernel does that, it will try to preserve the uid of the sender
<clever>
colemickens: but, a non-root namespace (like the fhs-env) cant map root to a uid, for security reasons, so the uid of the sender becomes nobody
<clever>
and libudev actively rejects such messages
<clever>
colemickens: daedalus is creating something similar to appimage, but more custom (based on nix-user-chroot and nix-bundle), which allows it to ship a nix closure to a non-nix machine
<clever>
and the nix-user-chroot is behaving similar to fhs-env
<colemickens>
I was wondering if there wasn't possibly a way to throw more Nix at the problem :)
<colemickens>
I'll have to take a look. It's at the intersection of many current interests.
<clever>
depends on if the appimage is shipping its own udev, or relying on the fhs-env to provide one
<clever>
daedalus ships its own everything (nix ftw), so i can just ship a patched udev to the end-user
slack1256 has joined #nixos
hyiltiz has joined #nixos
hyiltiz has joined #nixos
hyiltiz has quit [Changing host]
hyiltiz has quit [Ping timeout: 260 seconds]
hyiltiz has joined #nixos
hyiltiz has quit [Changing host]
hyiltiz has joined #nixos
tomberek has joined #nixos
<colemickens>
clever: is the bundling solution abstracted nicely from daedelus now, or no?
<drakonis>
daedalus?
<colemickens>
maybe you are already seeing if LLD can be wrapped similarly?