<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JJZj5
woleium has joined #nixos
woleium has quit [Remote host closed the connection]
proofofkeags has joined #nixos
user_0x58 has quit [Quit: Leaving]
proofofkeags has quit [Ping timeout: 240 seconds]
<__red__>
thanks!
stteevveen has joined #nixos
woleium has joined #nixos
<stteevveen>
Hi! I'm stumbling on one of my old nix script. There I use an imports variable. Usually I do unit import, one by one. Although I sort of understand how the import funtion may work... I'm more puzzled about how the imports variable works. Is it part of the language to make that any imports variable will map the import function on its element. What
nixbitcoin has quit [Remote host closed the connection]
shibboleth has joined #nixos
nixbitcoin has joined #nixos
bwh_ has quit [Quit: Leaving]
<codygman___>
I'm struggling still to get diagrams-builder working. Here is a minimal nix file of what I'm trying. Basically each override doesn't seem to take the other's override into account: https://gist.github.com/codygman/a07472c5e33bbc034828cd4a214c36eb
<stteevveen>
It happens that I have read today an article that was saying that overideAttrs can only have effect inside a mkDerivation call. Otherwise it is not used. Not sure I remember properly, but that was more or less about that. Do you think it can relate to your problem ?
<armin>
trying to empty my login screens but neither environment.etc."issue".text = ""; nor services.mingetty.helpLine = ""; helped, any hints?
<codygman___>
Maybe. Maybe it's something to do with "propagated build inputs" that I know nothing about. Or it's the composeExtensions thing. I'm not sure really, lol. So many things.
lollo has quit [Quit: Leaving]
<stteevveen>
propagateBuildInputs, if I remember correctly, it displays the input derivation not only to the target derivation you currently build, but also to the other buildInputs. I have to check my notes again on that.
codygman has quit [Read error: Connection reset by peer]
<{^_^}>
[nixops-aws] @adisbladis pushed to master « Type run_command call »: https://git.io/JJneC
codygman has joined #nixos
<colemickens>
I'm debugging this make-disk-image.nix/efi business. IT looks like /dev/block is missing? how's this possible?
<stteevveen>
codygman___ not sure you could read my message: propagateBuildInputs, if I remember correctly, it displays the input derivation not only to the target derivation you currently build, but also to the other buildInputs. I have to check my notes again on that.
<colemickens>
(to be more clear, make-disk-image uses runInLinuxVM and inside, /dev/block is missing, and systemd-boot's bootctl install seems to expect it)
seku has quit [Quit: Connection closed]
Rusty1 has joined #nixos
ex-parrot has joined #nixos
<ex-parrot>
hello all. struggling to work a thing out which seems like it ought to be simple. at the moment I have an imports = [ ... ] section to import a service.nix file from the local filesystem, so I can services.foo.enable = true later. what if I want to move that directory where the service.nix lives to be pulled from e.g. GitHub?
<ex-parrot>
I can find a lot of examples of pulling packages from GitHub but not pulling a whole directory with a NixOS service etc
<stteevveen>
I don't think there are many differences between a tar or a gzip, and a directory that you recover over https. What difference do you see ?
CMCDragonkai1 has joined #nixos
thc202 has quit [Ping timeout: 256 seconds]
<ex-parrot>
stteevveen: is that question for me?
<stteevveen>
@ex-parrot more or less, I'm also thinking aloud ;-)
<ex-parrot>
I'm struggling to work out the syntax mainly, I'll pastebin what I've got at the moment
<ex-parrot>
as you can prob see it's not a 1:1 replacement for the file, it's a zip file of the app. it needs to be downloaded, unpacked etc
<ex-parrot>
this seems like it ought to be a common pattern though
<stteevveen>
ex-parrot looking at your zip , I'm not there yet. In my own scripts I only import local .nix file. The fetchFromGitHub example I have saw, seems to be only focussed on source, not nix expression. However I have a magit nix expression that basically does what you say, though I have not worked for understanding it. Let me paste it.
<romanofski>
is it possible to choose a Python version for a python nix package when installing? If I install the 'hamster' package it uses Python 3.8 which needs a newer version of dbus-python
<romanofski>
:O so easy? jeez.. why didn't I try this before
<cole-h>
I don't see any hamster package in any of the python3 package sets
<cole-h>
> pkgs.python37Packages.hamster
<{^_^}>
attribute 'hamster' missing, at (string):318:1
<romanofski>
yeh :/
<romanofski>
it seems to be only available in the top level
slack1256 has quit [Remote host closed the connection]
<cole-h>
In which case you'll have to override it
h0m1 has quit [Ping timeout: 260 seconds]
h0m1 has joined #nixos
<abathur>
hmm; romanofski are you actually using it as a library, or as an application?
<abathur>
if as an application, the dbus-python mismatch probably needs to be fixed? Unless maybe you're doing something else custom leading to that?
<romanofski>
yeh I'd like to use it as an application
<romanofski>
abathur: alright I see if I can figure out the fix... I guess it's a bump of dbus which would supply the binding.. not sure
<romanofski>
cheers for the pointer
<abathur>
I don't know exactly; it might be that the app's not yet 3.8 compatible and might've been updated by mistake, maybe automatically; but anyways--an app should ideally work without the user needing to know anything about how the sausage got made
<monokrome>
Has anyone else ever seen this error? "/nix/store/lgnkbnskg8jh5ki5yw8fxwbpv4m7isr0-vulkan-validation-layers-1.2.131.2/nix-support/setup-hook: line 1: XDG_DATA_DIRS: unbound variable". The build is at: https://builds.sr.ht/~monokrome/job/257952
* WeblordPepe
declares that he will join
<monokrome>
you already joined WeblordPepe
<WeblordPepe>
damn. failed right from the start ><
<ex-parrot>
hey WeblordPepe
<monokrome>
Seems like nixos is really not ready to be used for a lot of development tasks? IDEs can never find libclang and I've been trying to get vulkan dev to work off-and-on for like 2 weeks but it thinks there's no GPU for some reason even though my compositor is using it perfectly fine? It doesn't think I have DRI
Supersonic112 has joined #nixos
<monokrome>
Is there some manual task that needs to be done to get that stuff to work?
<tpw_rules>
basically it's just a wrapper that detects and sets some environment variables appropriately
pjt_014 has joined #nixos
khumba has joined #nixos
<monokrome>
tpw_rules: thanks, that may help!
<monokrome>
still won't help IDEs not finding clang.so
<monokrome>
but launching the app would be nice lol
dbmikus has joined #nixos
<tpw_rules>
also for the record the way i do development on that machine is by using sshfs to mount the filesystem on my daily driver computer ;P
<WeblordPepe>
whats sshfs like using it daily? my take of it is that it must be a bitch cos you cant update bits of files but rather the whole file at once
<WeblordPepe>
i would have thought that'd make it impossible to do fidgety work
<tpw_rules>
i mean i just use a text editor so i'm not really partially updating files
<tpw_rules>
the sucky part is that it in combination with my editor is somewhat bad at detecting files being added/deleted on the remote machine. i have to wait a bit for the OS to decide to reload the directory or whatever
<WeblordPepe>
;(
andymandias has joined #nixos
<tpw_rules>
but i mean it's how i do basically all my development so it's just fine for me. any file surgery i just write/install the appropriate program on the remote machine
<tpw_rules>
i just have to give it a few seconds to catch up if i do like myProgram > log.log and want to open the log on my local computer
dbmikus has quit [Ping timeout: 240 seconds]
<simpson>
I use sshfs to replace nfs on my local network, mostly because network failure is less likely to wedge the client. It's not perfect, but compared to nfs~
<tpw_rules>
i just use smb for anything with meaningful quantities of data. sshfs seems a bit brittle in my experience. it doesn't wedge anything but it gets in funny states occasionally and isn't that fast
<tpw_rules>
like rarely i'll find out it arbitrarily unmounted itself and i've been saving my files into the empty directory on the local fs for the past 10 minutes
<WeblordPepe>
hmmm. the reason i ask is because im setting up my 'forever server' nas/fileserver and i picked samba cos i have windows workstations. but i was investigating others
<tpw_rules>
i would say samba is good
<WeblordPepe>
tpw_rules: :O
Havvy has quit [Ping timeout: 264 seconds]
<tpw_rules>
just make sure you set the protocol level to SMB3 so you get actual security
<tpw_rules>
i sometimes run into this weird fault though on my samba server (and it may not be the server's fault) where a windows client will refuse to connect to it complaining that you're using incorrect credentials but it never gives you an opportunity to put them in. it works fine if you manually insert the credentials into the windows password store thing
<tpw_rules>
but i have an equal mix of windows, mac, and linux client and it's fast and reliable on all of them
<monokrome>
tpw_rules: Thanks for the help. Unfortunately didn't work and doesn't help the weird error w/ the build failing, but still worth a try
<romanofski>
armin: you're trying to change /etc/issue - not sure where exactly the configuration option for this is
<armin>
romanofski: i had success with services.mingetty.helpLine and services.mingetty.greetingLine set to "libMkforce '';"
<romanofski>
ah nice
ex-parrot has left #nixos [#nixos]
<{^_^}>
[nixpkgs] @hmenke opened pull request #93395 → ZFS: Request credentials only for selected pools → https://git.io/JJnYu
maier has quit [Ping timeout: 264 seconds]
<{^_^}>
[nix] @Mic92 opened pull request #3833 → flakes: rename devShell to developPackages → https://git.io/JJnYw
jbgi has joined #nixos
<Mic92>
a good morning pr
arahael1 is now known as Arahael
redmp has joined #nixos
<redmp>
hi, i've encountered a sort of non-deterministic behavior when building a haskell package with `nix-build` .. i'm not sure if it's a problem with a GHC plugin under development, or something to do with nix.. and i'm new enough to both, that i'm not sure i'm capable of debugging it
<benny>
how do I set a string to either "linux" or "darwin" based on the platform? I basically don't know how to do a simple if in nix :-)
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
<srhb>
benny: This depends on the context in which you want to detect the system, really. You probably want to inspect stdenv.isDarwin in a nixpkgs context
<srhb>
(as opposed to impurely trying to use builtils.currentSystem)
<benny>
I have a package and the fetchurl src path is different for darwin than it is for linux
<srhb>
benny: Right. so url = if stdenv.isDarwin then ... else ...l
stteevveen has joined #nixos
<srhb>
> let url = if pkgs.stdenv.isDarwin then "darwin url" else "linux url"; in url # for instance
<{^_^}>
"linux url"
_reanimus_ has quit [Ping timeout: 260 seconds]
reanimus has joined #nixos
<stteevveen>
Hi! I was trying to refresh my memory on propagateBuildInputs, but contrary to what I thought I had written nothing about it in my notes. After a fast string search at nixos.org/nix/manual , then nixos.org/nixos/manual, then nixos.org/nixpkgs/manual, I do not seem to have found occurences of the string propagateBuildInput . Where would you search
<stteevveen>
for the documentation about it ?
<srhb>
stteevveen: It is mentioned in the nixpkgs manual.
<srhb>
`propagatedBuildInputs`
<srhb>
(notice the 'd')
<srhb>
redmp: Confirmed.
<stteevveen>
@srhb ... thanks for the notice... sometimes little details are crucial ;-)
<srhb>
Indeed. :)
<stteevveen>
By the way, I was wondering, is it possible to grab bits of documentation with nix repl or command line tools like that ?
orivej has quit [Read error: Connection reset by peer]
orivej has joined #nixos
<benny>
srhb: thanks!
<srhb>
stteevveen: Not in a simple way I'm afraid. Sounds like a cool idea though.
<srhb>
redmp: with --cores 1 it seems it fails consistently. Race?
Soo_Slow has quit [Quit: Soo_Slow]
orivej has quit [Quit: No Ping reply in 180 seconds.]
cr4y1 has quit [Remote host closed the connection]
orivej has joined #nixos
mariatsji has joined #nixos
bkv has joined #nixos
lhurttila has quit [Ping timeout: 245 seconds]
S0rin has quit [Quit: WeeChat 2.3]
bqv has quit [Ping timeout: 260 seconds]
<asheshambasta>
I'm trying to add overlays for a package (supercollider); and my overlayed supercollider builds and installs; but fails to start with a Qt related error (qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "").
<asheshambasta>
I'm not sure why pkgs.supercollider doesn't have this issue whereas mine does.
<srhb>
asheshambasta: Not sure, but the lack of a qt wrapping hook looks suspect.
<asheshambasta>
srhb: I'm not sure of how Qt works; however, then I'd like to see what the original supercollider pkg def is doing differently in this regard.
<srk>
asheshambasta: do you use callPackage or libsForQt5.callPackage?
<srhb>
asheshambasta: That's the part I'm not sure about, but try adding wrapQtAppsHook to your nativeBuildInputs if not using the qt callPackage
<asheshambasta>
I just used callPackage
<srk>
original uses the latter - supercollider = libsForQt5.callPackage ../development/interpreters/supercollider ...
<srhb>
That'd do it :)
orivej has quit [Ping timeout: 240 seconds]
<bkv>
Planning on smashing some atoms?
orivej has joined #nixos
<asheshambasta>
srk: you're the boss.
<asheshambasta>
srk: a noob question; how did you view where the supercollider callpackage is hapenning?
<bkv>
/pkgs/top-level/all-packages.nix
<bkv>
It's not searchable on github
<asheshambasta>
I just resort to a github search for something like `supercollider =` which always has misleading reseults
<asheshambasta>
results*
<asheshambasta>
bkv: thanks!
Elorm[m] is now known as frim[m]
Guest96058 has joined #nixos
<srk>
asheshambasta: gg is aliased to `git grep -i' :)
<srk>
nix edit nixpkgs.supercollider is also handy
<asheshambasta>
building sc3plugins with supernova=ON is slow even on my threadripper
<wrl>
is it parallelising correctly?
<asheshambasta>
most likely not; since my derivation for sc3plugins is naive at best.
<srk>
asheshambasta: does it work now? sc + sc3plugins?
<asheshambasta>
srk: sc3plugins seems to build; I've so far introduced 2 overlays. The first adds sc3plugins to nixpkgs; the latter then does a callPackage on a copy-pasted supercollider/default.nix with an additional sc3plugins argument. Now I'm a tad lost on how to link this to sc's systemExtensionsDir (that is; which phase must this go in; I'm assuming installPhase)
<asheshambasta>
so now I have the dreaded infinite recursion encountered error.
<asheshambasta>
ah well.
o1lo01ol1o has joined #nixos
<asheshambasta>
this fixup phase breaks things: https://pastebin.com/NzMDHy72; all I did was change $sc3plugins to ${sc3plugins} (the former is an env-var)
<{^_^}>
[nixpkgs] @ruuda opened pull request #93400 → mopidy-local: init at 3.1.1 → https://git.io/JJnsl
orivej has quit [Ping timeout: 256 seconds]
<asheshambasta>
and I believe it has to do with overlays; and the fact that sc3plugins needs supercollider as a build input.
<asheshambasta>
yowza.
orivej has joined #nixos
alp has quit [Ping timeout: 256 seconds]
<asheshambasta>
srk: I can also confirm that enableParallelBuilding does nothing for me.
<asheshambasta>
(sc3plugins, the value, was not getting evaluated so far since I was not using it)
<{^_^}>
[nixpkgs] @lsix opened pull request #93406 → gama: init at 2.09 → https://git.io/JJnGj
<asheshambasta>
I believe the fixupPhase for QT applications cannot be overriden. If I supply a custom fixup phase, I get the Qt related errors (scide crashes on start); if I remove it; things work as expected.
justanotheruser has quit [Ping timeout: 246 seconds]
<bkv>
Use pre/postFixup
stteevveen has quit [Ping timeout: 245 seconds]
phreedom has quit [Remote host closed the connection]
EsperLily has quit [Remote host closed the connection]
<TheSirC[m]>
Could someone explain why after clonig nixpkgs and trying `sudo nixos-rebuild boot -I nixpkgs=path/to/clone/nixpkgs/` sends back `warning: Nix search path entry 'path/to/clone/nixpkgs/' does not exist, ignoring`
o1lo01ol1o has joined #nixos
<armin>
anyone a clue what i need to install to get the ZSH "command-not-found" like functionality that tells me what to install when i type the name of a program that does not exist?
<armin>
even more confusing: i have a command-not-found program installed, but calling that with a program i have not installed as argument just gives me "programname: command not found"
stites has quit [Ping timeout: 256 seconds]
alp has quit [Remote host closed the connection]
stites has joined #nixos
alp has joined #nixos
<{^_^}>
[nixpkgs] @danieldk opened pull request #93411 → dbxml: use multiple outputs → https://git.io/JJnCv
<TheSirC[m]>
srk: Thanks for answering ! Do I need the `-I` flag in `nixos-rebuild` then ?
<srk>
TheSirC[m]: yw! not needed if NIX_PATH is set
<srk>
jtojnar: last section is a bit confusing - If no such statement is found (which one? > This program is free software: you can .. ?)
<armin>
jtojnar: looks fine to me, only the "do not rely on the COPYING file" thing seems a bit harsh. :)
<TheSirC[m]>
Jan Tojnar: I wonder why not enforce those rules with Github Actions of the sorts because it seems that we would end up having some licenses that would still be accepted because maintainers would not have read the memo or something along this line
<TheSirC[m]>
Jan Tojnar: I do not have any comment on the wording : as a non-native english speaker, the text looked neutral and understandable.
<jtojnar>
srk thanks, that got confusing during rewrite
<jtojnar>
armin yeah, the issue is that the file is useless for the purpose of determining `-or-later` or `-only`
<{^_^}>
[nixpkgs] @liff opened pull request #93413 → nixosTests.taskserver: Port to python → https://git.io/JJnCz
<armin>
jtojnar: yeah but 5 sentences before that you "kindly ask" the reader to do something and then comes this "DO **NOT** DO SOMETHING" thing, i was a bit confused. :)
<armin>
anyways, since i use services.mingetty.helpLine = lib.mkForce ""; i now am lost enough to ask myself what the default value of that thing was, any pointer?
<atemu12[m]>
Jan Tojnar: Shouldn't that be an RFC? Standardising how to determine a project's license and changing license names sounds pretty RFC-y to me
alp has quit [Ping timeout: 260 seconds]
<jtojnar>
armin yeah, I can see how that can come across as harsh but do not have the mental energy to come up wth a better phrasing at the moment
<armin>
jtojnar: it's probably perfectly fine, i didn't spot one single spelling error.
ris has joined #nixos
<jtojnar>
atemu12 I am uncertain about if it should be RFC, it is a minor thing that has always been a best practice
<jtojnar>
on the other hand, it does rename an attribute that is used throughout nixpkgs
michaelstrogoff[ has left #nixos ["User left"]
<lurker>
If I have a `rust = rustChannel.rust.override (o: {` and then right below a `rustc = rustChannel.rustc.overrideAttrs (o: {`, is there a way for me to "unify" both, so I only end up with one outcome?
<jtojnar>
TheSirC unfortunately, GitHub actions are no-go for nixpkgs at the moment due to how GitHub handles results
maier has joined #nixos
slack1256 has quit [Remote host closed the connection]
wildtrees has joined #nixos
<asheshambasta>
srk: I've managed to get things to build but now sc outputs a bunch of SC3-plugins related errors on SuperDirt.start
<srk>
asheshambasta: /o\ paste em
maier has quit [Ping timeout: 256 seconds]
wildtrees has quit [Remote host closed the connection]
<asheshambasta>
the creating the build dir and cd-ing into it and then invoking cmake doesn't seem to work correctly; cmake fails with "could not load cache"
<typetetris>
I have an open pull request in nixpkgs, which has already been approved by someone like a week ago. What do I need to do, to get it merged? https://github.com/NixOS/nixpkgs/pull/92322
<asheshambasta>
I also cannot find any docs. for the FFTW3F_LIBRARY cmake options on the sc3plugins readme
<srk>
ah I see it now - there are warnings during sc3plugins configure https://paste.rs/kAU
<asheshambasta>
srk: interesting
<das_j>
Is there a way to use flakes in nix-shell shebangs? Or are the shebeangs deprecated for some weird reason?
xeijin has joined #nixos
<srk>
asheshambasta: trying with "-DFFTW3F_LIBRARY=${fftw}/lib/libfftw3.so"
sangoma has joined #nixos
<asheshambasta>
srk: yeah I guessed it could be something like that;
<xeijin>
Hi - when I run `nixos-generate-config --root /mnt` from the installer, it fails to add a filesystem entry for my boot partition (mounted to `/mnt/boot`) in `hardware-configuration.nix` does anyone know what could be causing this?
<xeijin>
It has no trouble finding my zfs partitions
<xeijin>
and I can see the boot partition is mounted when I run `mount`
<xeijin>
`/dev/sda2 on /mnt/boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)` is the entry from `mount`
<asheshambasta>
srk: same issues with the .so file AFAICS
<srk>
it seemes to grow dep on fftw, need to test with sc as well
<asheshambasta>
dirty and impure cmake stuff :-)
<asheshambasta>
wild guess: can fftw be a propagated build output?
<emilsp>
hrm, is there a way to make rush not use the default config file at all?
<typetetris>
how do you manage github tokens for nixpkgs-review? I don't want to just put them in .bashrc or some such.
<{^_^}>
[nixpkgs] @stigtsp opened pull request #93419 → convos: fix time() dependent test → https://git.io/JJn84
<asheshambasta>
srk: doesn't work with propagated build inputs either (I'm assuming it means transitive depenency)
<armin>
localectl gives me "Failed to set keymap: Changing system settings via systemd is not supported on NixOS." and i can't find something like keymap in the nixos options. what am i doing wrong?
sreybastien[m] has joined #nixos
<qyliss>
armin: console.keyMap
<armin>
nb: i want to set the x11 keymap, not the console one.
<armin>
sorry, had to add that. :)
<sreybastien[m]>
hi here !
<patagonicus>
xejin: Probably worth filing a bug for that. And you don't have to use what nixos-generate-config is generating, it's more of a convenience thing. So just add it yourself (`"/boot" = { device = "/dev/sda2"; type = "vfat"; };` or something like that).
<sreybastien[m]>
If anyone as installed Nixos with LUKS encryption on Hetzner VPS cloud, i'm interested by some config exemple to deploy.
<armin>
sreybastien[m]: would you be fine with having to enter the luks passphrase each time from a graphical tty representation like web interface or do you require ssh from within initrd?
<qyliss>
armin: services.xserver.layout ?
<armin>
qyliss: that's what i'm looking for, thank you so much.
kreyren_ has joined #nixos
<sreybastien[m]>
armin: I suppose the best way was to use initrd solution on cloud architecture like Hetzner no ?
<armin>
sreybastien[m]: well it would open a tiny ssh server on boot where you can connect to and where you have to input the passphrase in some way.
<armin>
sreybastien[m]: if that's what you want, yes, there are nixos options for that - and no, i don't think that makes too much sense on a cloud server. :)
<sreybastien[m]>
armin:
<sreybastien[m]>
* armin: yes this is a poor level of security, i understand
<sreybastien[m]>
but, this is better than nothing isn't it ?
<sreybastien[m]>
if i want to store my email on VPS for example
<patagonicus>
sreybastien[m]: I've got root on LVM on LUKS on a Kimsufi root server. It's quite simple to set up, actually, just look for the boot.initrd.network.ssh settings. That machine is still using dropbear for the initrd SSH, but with Nixos 20.03 that was replaced with OpenSSH, but the config is almost the same.
<armin>
sreybastien[m]: you could probably easily adapt that setup for such a cloud vm and add the initrd/ssh stuff.
mariatsji has quit [Remote host closed the connection]
<armin>
yeah what patagonicus said. ;)
mariatsji has joined #nixos
<sreybastien[m]>
Thanks @patagonicus @armin
<sreybastien[m]>
* Thanks patagonicus armin
<sreybastien[m]>
i check that
<sreybastien[m]>
(i'm a newbie on nixos, moving from ubuntu, but i already code in FP a little)
<sreybastien[m]>
(summer project :) )
orivej has joined #nixos
<stigo>
sreybastien[m]: welcome to nixos :)
o1lo01ol1o has joined #nixos
<{^_^}>
[nixpkgs] @marsam opened pull request #93420 → _3270font: init at 2.0.4 → https://git.io/JJn4e
mariatsji has quit [Ping timeout: 264 seconds]
<sreybastien[m]>
The more difficult part i found was to understand the different way to manage /home env; I found the way adopted by doom-emacs maintener pretty cool : https://github.com/hlissner/dotfiles
<xeijin>
patagonicus thanks yeah was hoping to avoid that as I'm trying to automate the install process with a Makefile
<xeijin>
I actually figured it out, I was mounting the boot partition to `/mnt/boot` but then mounting my root zfs fs to `/mnt` which basically overwrote the `/mnt/boot` mountpoint ... doh
<armin>
oh and while we're at it: any way to set the keyboard repeat rate under xorg? i currently set it via "xset r rate 210 30" from my .xsession/.xinitrc files, but as soon as i unplug and re-plug my keyboard, i'm again at slow speed.
<typetetris>
Is there any pro and con to use `fetchurl` instead of `fetchTarball` ?
cosimone has joined #nixos
mariatsji has quit [Remote host closed the connection]
cosimone has quit [Client Quit]
cosimone has joined #nixos
cosimone has quit [Client Quit]
<{^_^}>
[nixpkgs] @dasJ opened pull request #93422 → nixos/gitlab: Drop sidekiq PID file → https://git.io/JJn4a
<tpw_rules>
typetetris: fetchurl won't unpack anything. it just downloads the file. fetchTarball downloads and unpacks it so you get the unpacked directory
<emilsp>
in fact, rush doens't seem to read from /etc/rush.rc at all.
<typetetris>
tpw_rules: So for `src` in `stdenv.mkDerivation` it doesn't matter?
<{^_^}>
[nixpkgs] @dasJ opened pull request #93425 → nixos/gitlab: Support extra config for shell → https://git.io/JJnBM
<srk>
yeah, seems to work
<asheshambasta>
I'm still getting the same linking issue
meh` has joined #nixos
knupfer has joined #nixos
mmokulus[m] has joined #nixos
evanjs has quit [Read error: Connection reset by peer]
mmokulus[m] has left #nixos ["User left"]
acarrico has joined #nixos
<padok[m]>
Hi, I've been lurking at nix for a while now and have already tried a few things with it, but it's hard for me to really get a foothold in it.
<padok[m]>
Is there any guided way to introduce myself to nix that may takes smaller steps than the official wiki and uses examples?
<simpson>
What kind of goals do you have in mind? Do you want to package existing software? Configure NixOS systems? Perhaps develop your own custom build toolchains?
orivej_ has quit [Ping timeout: 258 seconds]
<padok[m]>
I would like to start moving all my development projects to nix, since the idea of the pure function for builds is very appealing to me.
cosimone has joined #nixos
<padok[m]>
Later I may plan to run some homelab projects on nixos to get rid of some of the system integration work
<padok[m]>
But that's for the future
<padok[m]>
But I may take a "to much to early" approach on it since my software projects tend to grow quickly
cosimone has quit [Client Quit]
cosimone has joined #nixos
<padok[m]>
And I find a lack of real life examples to learn from
<patagonicus>
The nixpkgs repo has a lot of real life examples. :) I'm currently diving into it, but mostly on the NixOS side, less the packages side, since I'm setting up a system on ARM, but I've already learned quite a bit about Nix during that.
<padok[m]>
But I consider revisiting the pills, maybe I can solve the transverse problems with that
<srk>
asheshambasta: np, I'm just playing with tidal now .. :D
Extends has joined #nixos
<asheshambasta>
srk: nice; no luck for me on that :P
bugra has joined #nixos
<padok[m]>
<patagonicus "The nixpkgs repo has a lot of re"> I may expected to get to fast to solutions. But I also started with environments that are not easily to project on nix, like using nix environments for platformio
<padok[m]>
The world of embedded development is very "dirty" in my experience and I liked to solve it with nix environments
<srk>
padok[m]: all the tools platformio uses are available in nixpkgs
<srk>
with standalone toolchains for arm/avrs
<padok[m]>
I think the problem is that I'm a beginner and I couldn't find a project that I could lern from regarding platformio
<srk>
why platformio? what's the goal?
bugra has quit [Quit: Leaving]
<padok[m]>
I have a project where we use a lot of esp32 and the esp-idf isn't quite widely adopted. Every time I search for a problem I get Ardurino or platformio discussions.
<kaptin>
platformio is pretty neat for embedded dev, gives you a single environment that manages tool chains for multiple targets
<confus>
I'm a bit shaky with overlays and pretty newI have a set of packages in `./pkgs/`then I have a `./default.nix` that I already works with nix-build `./default.nix` and does what I wantthe default nix looks something like:```{ pkgs ? import <nixpkgs> {} }:rec { package1 = pkgs.callPackage ./pkgs/Package1 {}; # ... package9 = pkgs.callPackage
<confus>
./pkgs/Package9 { Package1 = package1 };}```now I want to have `./another_default.nix`, that I can build with nix-build `./another_default.nix`that should just apply one overlay:```self: super:{ package1 = (super.package1.override { defaultTerminal = self.pkgs.kitty; });}```but otherwise build the exact same thing as `default.nix` - i.e.
<confus>
sometimes I want to build it with the over sometimes without depending on which of the files I specifyhow would `./another_default.nix` look like?
<confus>
oh wow, formatting
<confus>
I'm sorry
<kaptin>
padok[m]: seems reasonable, use nix to manage toolchains?
<padok[m]>
That's my target
<padok[m]>
But it's also my first production use of nix and I couldn't manage to get it to work
<{^_^}>
[nix] @ajkovar opened pull request #3834 → Add newline to profile sourcing line #3393 → https://git.io/JJn0n
<padok[m]>
Thanks for your help so far, I keep trying and come back in a few days to share my progress
<padok[m]>
And look at the links
<kaptin>
I'd be interested in what you find, I'm just diving into nix myself
evanjs has quit [Read error: Connection reset by peer]
evanjs has joined #nixos
luna has quit [Ping timeout: 240 seconds]
<fyuuri>
Hi. I am trying to boot the nixos installer on a PC with a nvidia RTX2060. The installer freezes during the boot process (shows a few colored lines). Is there anything I can do?
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<{^_^}>
[nixpkgs] @sorki opened pull request #93431 → nixos/jack,pulseaudio: fix pulse connection to jackd service → https://git.io/JJngM
turlando has quit [Ping timeout: 240 seconds]
<cole-h>
Have you tried booting with the nomodeset option?
alp has joined #nixos
o1lo01ol1o has joined #nixos
philr has quit [Ping timeout: 246 seconds]
<fyuuri>
Just did it and that worked^^. Sry. But will it be fine later? I never installed nixos on a "modern" desktop pc before.
<cole-h>
No idea. You might need to use the proprietary Nvidia video driver. This wiki page might help: https://nixos.wiki/wiki/Nvidia
<patagonicus>
Hmm. I'm trying to nixos-install a system on /dev/loop0, but grub is telling me that it can't find a grub device for /dev/loop0p1 (mounted at /mnt/boot) and that I should check device.map. This used to work a few months ago - does anyone know if something changed or if I'm just holding it wrong?
redmp has quit [Read error: Connection reset by peer]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
<fyuuri>
cole-h thank you! I will try
cosimone has quit [Remote host closed the connection]
codygman has quit [Read error: Connection reset by peer]
<confus>
with nix-repl> let x = { a=1; b=2; }; in with x; { inherit a; }{ a = 1; }
<confus>
with that: `nix-repl> let x = { a=1; b=2; }; in with x; { inherit a; }`
<confus>
I can inherit an item from an attibute set
<confus>
so output will be `{ a=1; }`
<patagonicus>
You can also do `let x = { a = 1; b = 2; }; in { inherit (x) a; }`
<confus>
how do I inhert all of them, as to get `{ a=1; b=2; }`
<confus>
hmm... can I do `let x = { a = 1; b = 2; }; in { inherit (x); }` to get all of them?
<patagonicus>
Doesn't look like it.
<{^_^}>
[nixpkgs] @rycee opened pull request #93432 → sd-switch: init at 0.1.0 → https://git.io/JJn2K
<patagonicus>
But, why inherit? You could do x // { }
<confus>
hmm... maybe I could -.-
<patagonicus>
(My knowledge of nix is not good enough to know if there's a difference between x // { } and { inherit (x) a b; }. I don't think so.
<{^_^}>
input-output-hk/haskell.nix#768 (by NorfairKing, 43 minutes ago, open): Project still uses the wrong version of `time` after putting it in `extra-deps`
codygman has joined #nixos
<cole-h>
confus: `inherit (x) a b c d e f g;`
<cole-h>
Will inherit all of `a b c d e f g` from `z`
<evanjs>
I'd rather not add per-distro functions to cargo-cache, if possible
<evanjs>
I've seen like `workdir="$(mktemp -d)"` and etc in other expressions; wondering if that might work
<jtojnar>
davidak it should be doable to patch espeak-ng to use `XDG_DATA_DIRS`
<evanjs>
pkgs/applications/editors/amp/default.nix seems to export HOME to a temp dir. So that might work for the tests that write to CARGO_HOME, now I need to see if we can do the same for the tests ~
<evanjs>
It looks like I can just export HOME when needed and not really worry about cleanup? e.g. I don't have to unset it or anything for the rest of the build to function normally, it seems?
HackerFoo has joined #nixos
m_hackerfoo has joined #nixos
HackerFoo has quit [Client Quit]
m_hackerfoo has quit [Client Quit]
wildtrees has quit [Ping timeout: 256 seconds]
<evanjs>
I think the question I actually want to ask is "shouldn't this be something we do on the nix expression side?"
<evanjs>
It doesn't seem right to have the program worry about that after a certain point, idk
wildtrees has joined #nixos
KarlJoad has joined #nixos
mariatsji has joined #nixos
<KarlJoad>
I am developing a ruby project, and I am having some issues with direnv and lorri. When using nix-shell, everything works fine. With direnv, it says it is updating the paths, but I cannot use my ruby commands. Any ideas?
jbgi has joined #nixos
<KarlJoad>
I cannot use ruby commands, but jekyll works. However, jekyll cannot find the minima theme library using direnv.
waleee-cl has quit [Quit: Connection closed for inactivity]
HackerFoo has quit [Quit: killed]
m_hackerfoo has quit [Quit: killed]
HackerFoo has joined #nixos
m_hackerfoo has joined #nixos
bakaonichan has quit [Ping timeout: 245 seconds]
cmk_zzz has quit [Ping timeout: 260 seconds]
cmk_zzz has joined #nixos
<{^_^}>
[nixpkgs] @turboMaCk opened pull request #93435 → elm.Packages: Regenerate elm packages → https://git.io/JJnoI
<{^_^}>
[nixpkgs] @matthuszagh opened pull request #93436 → vivado: init at 2017.2 → https://git.io/JJnoL
proofofkeags has joined #nixos
* colemickens
spies 100MB of python3 in a 600MB image that is only used by a single derivation...
ddellacosta has quit [Ping timeout: 256 seconds]
jbgi has quit [Ping timeout: 240 seconds]
oida has quit [Remote host closed the connection]
oida has joined #nixos
<{^_^}>
[nixpkgs] @jtojnar opened pull request #93437 → sublime4-dev: init at 4074 → https://git.io/JJnoR
KarlJoad has quit [Quit: ERC (IRC client for Emacs 26.3)]
shibboleth has joined #nixos
orivej_ has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
a-h has joined #nixos
azure1 has quit [Quit: WeeChat 2.3]
<evanjs>
mmkay, looks like setting NIX_BUILD_TOP might be what I need here. Not sure how reasonable/idiomatic that is in terms of best practices or etc, though
alp has quit [Ping timeout: 260 seconds]
proofofkeags has quit [Remote host closed the connection]
proofofkeags has quit [Remote host closed the connection]
<syd>
I solved that by setting better graphics drivers
<ixxie>
hmmm I will look into it
proofofkeags has joined #nixos
<syd>
I put `nvidia` in my `videoDrivers` for example
o1lo01ol1o has joined #nixos
<evanjs>
ixxie: I wonder if that's why I get weird tearing stuffs, even with nvidia drivers enabled and etc
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JJn6Q
<evanjs>
I don't recall seeing any artifacts, though, hrm
orivej_ has joined #nixos
orivej has quit [Read error: Connection reset by peer]
<ixxie>
syd: didn't know about that option... guess it didn't exist when I bought my laptop a few years back
<sephii>
I'm trying to get the `phpPackages.composer` package use a specific version of php (that I overrode to add extensions). I've tried `pkgs.phpPackages.composer.overrideAttrs (oldAttrs: { php = phpWithExtensions; })`, which built successfully, but the PHP used doesn't have the extension I want.
proofofkeags has quit [Ping timeout: 264 seconds]
lsix has quit [Ping timeout: 260 seconds]
<evanjs>
adisbladis: was going to ask for help re poetry2nix and the `pip install -e` command, but the more I look into it, the more I feel like this project just needs to be fixed to not do that in general lol
slack1256 has joined #nixos
<evanjs>
syd: yeah I use nvidia's drivers and have tried fiddling with the compositing pipeline settings but still get some pretty bad tearing issues at times
dingenskirchen has quit [Quit: dingenskirchen]
<syd>
I still have some tearing because of a lack of vsync but at least I don't have the hologram problem anymore
<syd>
ixxie: watch out that you don't end up running nvidia at all times because your battery life will dissappear
<evanjs>
oh okay, probably a similar situation, then
<evanjs>
lol gaming laptop -> *shrugs*
orivej_ has quit [Read error: Connection reset by peer]
orivej has joined #nixos
abathur has joined #nixos
dingenskirchen has joined #nixos
archH has joined #nixos
<fyuuri>
Hi. I tried installing nixos on a PC with a new b550 mainbord. Both efi mode and legacy compatible mode did not make the new system boot. The installation USB drive booted though. On a few notebooks it worked for me to have a EF02 type Bios boot partion and a EF00 Efi partition behind it. That also did not work on the b550 system. Did anybody install nixos on a system with such a new mainbord`
<ixxie>
syd: wondering which driver I need... I have an Intel card
<fyuuri>
Might it be related to secure boot? And... might this 1KB bios boot partition in front of the EFI partition prevent the system from booting in EFI mode? (just having the EFI partion alone also did not work...)
<evanjs>
oh I just meant like manually, from the BIOS menu :P
<fyuuri>
evanjs : ah. No it does not appear.
<ixxie>
I think secure boot causes problems...
<evanjs>
right, it didn't appear in the list of _boot entries_ for me in the BIOS, so I had to add new items there.
<fyuuri>
ixxie: But the USB drive installer worked fine.
<fyuuri>
The bios menu also does not show it :(
<ixxie>
fyuuri: did you try disabling secure boot?
<evanjs>
alright, that's what I was wondering
<fyuuri>
I never fiddled with a uefi system before... always used legacy and it worked.. sorry.
<evanjs>
and yeah, secure boot can sometimes mess it up. though it will often make it fairly obvious to me lol
<evanjs>
I would try UEFI and see if it works
<fyuuri>
ixxie : I did not yet because the usb drive worked. By uefi bios has no simple option to deactivate secure boot. I can just remove all the keys.
<evanjs>
weird... there's usually an easy option to do that :/
<evanjs>
I've never had to remove keys or anything
lsix has joined #nixos
<fyuuri>
There is an option which says: OS Type -> other OS .... that should support non-Win-secure-boot systems... but switching that on also does not work...
redmp has joined #nixos
shibboleth has joined #nixos
<evanjs>
yeah, that sounds like CSM/legacy boot
growpotkin has joined #nixos
orivej has quit [Ping timeout: 258 seconds]
orivej_ has joined #nixos
a-h has quit [Remote host closed the connection]
<syd>
Peeps. I'm trying to set a `preBuild` in haskell.nix
<syd>
but I'm getting a strange error:
<syd>
the option is defined both null and not null
<evanjs>
note that to run using a certain boot type, you need to install on that. e.g. for UEFI you need to run with UEFI enabled
<fyuuri>
evanjs: I have this layout on all systems: Number Size Code Name
<fyuuri>
1 1000.0 KiB EF02 BIOS boot partition
<fyuuri>
2 500.0 MiB EF00 EFI System Partition
<fyuuri>
3 <the rest> 8E00 Linux LVM
<evanjs>
(checks other desktop) I have NixOS working fine on my B450M it looks like
<fyuuri>
but that does not seem to work.
matthewcroughan has joined #nixos
<{^_^}>
[nixpkgs] @cript0nauta opened pull request #93439 → p7zip: fix build when enableUnfree is true → https://git.io/JJniK
<clever>
fyuuri: EF02 is only used if you want to do legacy booting from GPT
<clever>
fyuuri: EF00 is for booting via efi
<fyuuri>
clever : might that be a reason for the system not booting? I tried with having just the EF00 partition... but that did not boot as well.
<clever>
fyuuri: are you using grub or systemd-boot?
<fyuuri>
grub
<clever>
fyuuri: is boot.loader.grub.device set?
shibboleth has quit [Remote host closed the connection]
<fyuuri>
yes. to /dev/sda That worked for all other systems.
shibboleth has joined #nixos
<clever>
fyuuri: have you tried turning efi off in the bios?
kl3 has joined #nixos
<fyuuri>
clever: I think that is not possible on the B550 uefi-bios. Its strange to me that the installation usb drive works without a problem.
<clever>
fyuuri: the usb image is both efi and legacy
<clever>
fyuuri: what does `efibootmgr -v` report?
archH has quit [Ping timeout: 240 seconds]
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
<fyuuri>
clever: it says: Boot current: 0001 Timeout 1 seconds BootOrder 0000,0001,0002 Boot0000* Windows Booot Manager Could not parse device path: Invalid argument
archH has joined #nixos
orivej has joined #nixos
<fyuuri>
clever: the efibootmanger also seems to detect the installation drive twice
<clever>
fyuuri: try setting `boot.loader.grub.efiInstallAsRemovable = true;` and re-run nixos-install while its all mounted
<kl3>
hi, just booted nixos-minimal-19.03.172538.7bb74e65365-x86_64-linux.iso off an usb stick on my thinkpad x250 just fine, latest nixos-plasma5-20.03.2611.bb8f0cc2279-x86_64-linux.iso just reboots in a loop, same usb stick on same machine. sha256 checks out, turns out uefi boot seems broken, bios boot is fine, though.
<fyuuri>
clever: is it OK to leave the small bios boot partition?
<clever>
fyuuri: yep
<fyuuri>
clever: ill try that. I will need to mount luks devices etc manually. So it will take a few mins
<clever>
fyuuri: the guide you linked also says to use unetbootin, that typically breaks booting from the usb stick entirely
<fyuuri>
clever: for efi boot, the manual says that grub.device line should only be there for BIOS mode
orivej has quit [Quit: No Ping reply in 180 seconds.]
<clever>
fyuuri: yeah, grub.device is only for legacy, and you can set it to "nodev" to disable legacy booting
<clever>
but grub can also do legacy + efi at the same time
<fyuuri>
clever: I did not follow the guide. Its just similar. My setup runs on my thinkpad 440 and 250 though :)
<fyuuri>
ah
<clever>
legacy+efi can be simpler if you dont know what the bios will be doing
<clever>
then it works either way
orivej has joined #nixos
<fyuuri>
OK. And this little BIOS partition does not matter?
knupfer has quit [Quit: knupfer]
<clever>
the `bios boot partition` is only needed if you want legacy booting on gpt
knupfer has joined #nixos
<fyuuri>
thank you so much for guiding me!
knupfer has joined #nixos
<fyuuri>
But "only needed" means its never harmful?
<clever>
correct
<archH>
Hi I have a kinda basic issue. I'm trying to declare a hashedPassword for my user. I've generated a password using mkpasswd -m sha-512, then put it into user.users.arch = { hashedPassword = "hashedPwString";
<TomSecur>
infinisil: thank you, but my project is missing yarn.lock
<infinisil>
Well that's because it's not a yarn project yet. My suggestion is to switch from npm to yarn
<TomSecur>
hmm, it's upsteam, so I can suggest it
<TomSecur>
it's a rather small project, but still has like 300 dependencies, not a big typescript fan
<infinisil>
Ah if it's not your own then that might be a bit difficult
<infinisil>
I think node2nix is the best tooling for npm projects as of now
<infinisil>
(but yeah, it's not that great tbh)
<{^_^}>
[nixpkgs] @robinp opened pull request #93443 → Separate fetch target in buildBazelPackage + fixup. → https://git.io/JJnXw
juanez has joined #nixos
<TomSecur>
Error: getaddrinfo ENOTFOUND codeload.github.comoh what is this now (=,=)
<juanez>
hey.. i have this issue im trying to resolve:
<juanez>
ping
<juanez>
. /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /nix/store/f87w21b91cws0wbsvyfn5vnlyv491czi-python3-3.8.3/lib/libpython3.8.so.1.0)
<juanez>
however, ldd the library shows; libm.so.6 => /nix/store/bqbg6hb2jsl3kvf6jgmgfdqy06fpjrrn-glibc-2.30/lib/libm.so.6 (0x00007f80b4b70000)
<juanez>
any idea why the system /lib/x86_64-linux-gnu version is picked up over the /nix/store version ?
cosimone has joined #nixos
<fyuuri>
clever: the system booted in normal mode with the nvidia driver. Thank you so much!!!
bkv is now known as bqv
<clever>
fyuuri: your welcome
<fyuuri>
clever: Is there more info on these efi settings. I still dont understand why this allow... did the trick
<clever>
fyuuri: not sure, efi is a bit of a mess, there is an official spec, and then every motherboard vendor breaks it in unique ways
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
codygman has quit [Read error: Connection reset by peer]
<fyuuri>
clever: How did you know how to solve this issue?
codygman has joined #nixos
<clever>
Boot0004* UEFI OS HD(1,GPT,27c99b08-455d-4dfe-a44f-6150cbc09ef8,0x800,0x100000)/File(\EFI\BOOT\BOOTX64.EFI)..BO
drakonis has quit [Remote host closed the connection]
drakonis has joined #nixos
__monty__ has quit [Quit: leaving]
juanez has quit [Remote host closed the connection]
<jtojnar>
fionera did you add it to services.udev.packages?
knupfer has quit [Ping timeout: 260 seconds]
<fionera>
Ah that was it
<fionera>
thx jtojnar
leah2 has quit [Remote host closed the connection]
dermetfan has quit [Ping timeout: 260 seconds]
utf64 has joined #nixos
zebrag has joined #nixos
<utf64>
I am trying to install nixos by booting an old machine over iPXE, and it seems that " nixpkgs/nixos/modules/installer/netboot/netboot-minimal.nix " might provide the needed files. How do I build netboot-minimal? (my local machine is running nixos)
<clever>
utf64: there is an attribute for it in the main nixos/release.nix
<clever>
utf64: just `nix-build '<nixpkgs/nixos/release.nix>' -A netboot.x86_64-linux`
<utf64>
Alright
drakonis has quit [Read error: Connection reset by peer]
leah2 has joined #nixos
excelsiora has quit [Remote host closed the connection]
<utf64>
Out of curiosity, are attribute names usually case-sensitive?
<utf64>
It looks like they are ^
<hazel[m]>
so i previously set swaylock to unlock with `security.pam.services.swaylock.text = "auth include login";`
<hazel[m]>
but now i want to do yubikey stuff which would be `security.pam.services.swaylock.yubicoAuth = true;`
<hazel[m]>
but these options conflict, how do i add `auth include login` while still doing `yubicoAuth = true`
<hazel[m]>
if i do not do `auth include login` it does not function and locks forever
<kl3>
after having booted into a fresh nixos installation (without network), can i point nix at the nixos-plasma5-20.03.2611.bb8f0cc2279-x86_64-linux.iso usb stick still inserted to install a few packages from it, e.g. networkmanager?
shibboleth has quit [Quit: shibboleth]
fendor has quit [Read error: Connection reset by peer]
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
sangoma has quit [Ping timeout: 258 seconds]
orivej has quit [Ping timeout: 256 seconds]
xelxebar has quit [Remote host closed the connection]
xelxebar has joined #nixos
inkbottle has joined #nixos
zebrag has quit [Ping timeout: 246 seconds]
drakonis has joined #nixos
xelxebar has quit [Remote host closed the connection]
justanotheruser has quit [Ping timeout: 256 seconds]