<spease>
I'm attempting to fetchurl a zip which includes a directory(?) that has a space in it. I get a message that "builtins.path { nmae = ... } can be used to give it an alternative name" but there are no instructions as to how to use it that I can find. I did add "name" to fetchurl already to get to this point.
asbachb has quit [Remote host closed the connection]
<Yaniel>
hmm how do I deal with glibc version conflicts in nix-shell?
<Yaniel>
I pull in the (host) gcc to build something that has to run as a build step, but looks like *that* gets loaded by something that is linked against an older glibc
<{^_^}>
[nixpkgs] @cdepillabout pushed 3 commits to haskell-updates: https://git.io/JTbQp
ilmu has quit [Remote host closed the connection]
fazbee has joined #nixos
<fazbee>
My GNOME GDM doesn't recognize my user as "normal user", so must manually type username & passw. I suspect it is due to default gid = 100 (users). Anyone the same?
supersandro2000 has quit [Disconnected by services]
supersandro2000 has joined #nixos
m0rphism has quit [Ping timeout: 264 seconds]
<Unode>
fazbee: do you have isNormalUser=true set?
<fazbee>
Yes, isNormalUser = true as well as isSystemUser = false..
<Unode>
and I assume you don't have any xserver.displayManager.hiddenUsers set?
<{^_^}>
[nixpkgs] @cdepillabout opened pull request #102683 → haskellPackages.shellFor: add a doBenchmark argument for enabling benchmark deps → https://git.io/JTb7h
<fazbee>
Nope, the uid I set = 1000. I found the setting /var/lib/AccountService/users/<myuser> pointed that SystemUser = true after all those config. But, manually editing not take effect.
<danderson>
Unode: nixUnstable outputs hashes that look like "sha256-vmKzS51D0pnMqvbWT+tDkhSBxDBKyu2oO/e5Y1aCf/Y="
<danderson>
which looks like base64, rather than the base32 of stable nix.
<colemickens>
danderson: there's some commands you can use to convert
<Unode>
hum... I don't think so. = is a valid character
<pushqrdx>
becausei am trying to build wayland packages from the wayland overlay however `wlroots` it throwing a meson error stating `meson version is 0.52 and needed verision 0.54`
<pushqrdx>
i don't know why does it do that even though i just ran pkgs update
<pushqrdx>
looking at the overlay source for wlroots it doesn't specify meson 52 so idk why it's using an older version for the build while 0.54 is the one required
<pushqrdx>
the exact meson error is `ERROR: Meson version is 0.52.1 but project requires >=0.54.0`
<pushqrdx>
i noticed that i was on the 20 channel not on the unstable channel, on the 20 channel apparently meson is at v0.52, i switched to unstable and it is updating everything, hopefully meson >0.54 is pulled down
<pushqrdx>
i thought that new nixos version is already using unstable by default
<pushqrdx>
thought i heard someone saying*
<colemickens>
hm, that wouldn't be my expectation, probably.
<pushqrdx>
yeah doesn't make sense to be on unstable by default tbh :D so i just believed it for no reason
<pushqrdx>
can i specify the channel declaratively in my nix config?
<pushqrdx>
i want my config.nix to use unstable by default
<pumpy>
i'm using i3 and in it i'm using xfreerdp to rdp into another box running i3. when mouse is over rdp client the meta key gets passed to rdp client, but also rdp host. how can i make xfreerdp (or whatever) keep keyboard presses and not pass them on?
Fare has quit [Ping timeout: 264 seconds]
pushqrdx has quit [Remote host closed the connection]
<{^_^}>
[nixos-homepage] @samueldr pushed 8 commits to fix/misc-columns-and-alignment: https://git.io/JTbbf
<{^_^}>
[nixpkgs] @Ericson2314 pushed commit from @fabianhjr to release-20.09 « nixos/modules/services/network-filesystems/ipfs: refactor »: https://git.io/JTbbs
<{^_^}>
[nixos-homepage] @samueldr opened pull request #636 → misc. alignments and columns fixes → https://git.io/JTbbn
v0|d has quit [Remote host closed the connection]
aasg has joined #nixos
v0|d has joined #nixos
cr4y1_ has quit [Ping timeout: 246 seconds]
Fare has joined #nixos
<{^_^}>
[nixpkgs] @mweinelt opened pull request #102690 → pythonPackages: fix pythonImportsCheck typos and capitalization → https://git.io/JTbbz
<{^_^}>
[nixpkgs] @dlahoti opened pull request #102691 → nixos/modules/config/pulseaudio: add support for custom ALSA paths and profiles → https://git.io/JTbbw
<lightandlight>
nix is trying to download from a binary cache that I've removed from my `substituters` list. How do I fix this?
<lightandlight>
I think there's a database somewhere that I have to delete, but I've forgotten which one
<m1ndstr0rm>
Hi, everyone. I'm playing with nixos flakes and GCE image and I got stuck with this problem: hardware-configuration.nix does 'import <nixpkgs/nixos/modules/virtualisation/google-compute-image.nix>', but this is impure. Is there any way around this without setting --impure flag?
<clever>
lightandlight: does it show in `nix show-config` ?
sigmundv__ has joined #nixos
<lightandlight>
clever: nope
<clever>
lightandlight: then it shouldnt be using the cache anymore
<lightandlight>
I think nix caches remote derivation locations.
<benny>
that marvin bot is great, seemingly being able to do /needs_merger instead of writing this in the discourse thread (which already was good) is quite a QoL improvement
<JaakkoLuttinen[m>
`fetchFromGitHub` doesn't seem to support `leaveDotGit.. Is there any way to use `fetchFromGitHub` so that `.git` directory is available in the source tree?
<{^_^}>
[nixpkgs] @vbgl pushed commit from @sternenseemann to master « ocamlPackages.mirage-crypto: 0.8.6 → 0.8.7 »: https://git.io/JTNCT
mallox_ has joined #nixos
psy3497 has joined #nixos
<psy3497>
Can anyone point me to the derivation in nixpkgs that contains the `make` executable, or at least a way in which to search which derivation has a particular executable? I am creating a docker image with Nix and it does not come with the make executable, so I am looking for the derivation to add
<{^_^}>
Use ,locate <filename> to find packages containing such a file. Powered by nix-index (local installation recommended) https://github.com/bennofs/nix-index
<V>
oh, I am on NixOS, yes
<psy3497>
I do use NixOS on some of my machines. But on this one I am using Debian
<psy3497>
nix-index nice!
<{^_^}>
[nixpkgs] @gnidorah opened pull request #102727 → qtcurve, kde2-decoration: fix for Qt 5.15 → https://git.io/JTNCS
<psy3497>
Thanks clever
jabster28 has joined #nixos
sangoma has quit [Read error: Connection reset by peer]
<danderson>
anyone know a quick way to break nix-env so it refuses to install stuff? Switched to flakes and home-manager, so want to stop my muscle memory installing random other stuff.
n9nes has quit [Read error: Connection reset by peer]
<danderson>
hm, I guess deleting all channels would do the trick...
cransom has quit [Ping timeout: 260 seconds]
<dminuoso>
danderson: set up a shell alias?
n9nes- has quit [Ping timeout: 272 seconds]
<dminuoso>
deleting channels can be annoying if you have some adhoc `import <foo>` things in nix files
zupo has quit [Ping timeout: 240 seconds]
<dminuoso>
Or, you could set up a systemd timer to periodically delete all nix-env things! :P
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<expelledboy>
Hey guys, I have been using nix on my mac for about 2 years now, but honestly I forgot most of what I did to set it up because I never change it. It just worked. Until now... I am getting this error, and I dont know how to fix it.
<expelledboy>
```
<expelledboy>
building '/nix/store/9gadvrvnk1v2643jzm11lh55fmw5kh8j-system-path.drv'...Use of uninitialized value $stat2 in numeric ne (!=) at /nix/store/cshp53j0b81b819g4a31y2db4x9wrjbn-builder.pl line 94.Use of uninitialized value $stat1 in numeric ne (!=) at /nix/store/cshp53j0b81b819g4a31y2db4x9wrjbn-builder.pl line 94.collision between
<expelledboy>
`/nix/store/19w7md3172c7m6xx7hririwkg4pq8660-zulu14.28.21-ca-jdk14.0.1/share/man' and `'
<flokli>
Izorkin: I mean, https://github.com/NixOS/nixpkgs/pull/81172 still breaks some basic system components, like IPForward= for networkd… I don't think it can be merged until upstream has support for it.
<{^_^}>
#81172 (by misuzu, 35 weeks ago, open): iptables: switch from iptables-legacy to iptables-nftables-compat
<{^_^}>
[nixpkgs] @zimbatm pushed commit from @ajs124 to master « open-iscsi: install systemd files (#97793) »: https://git.io/JTN4P
<Izorkin>
flokli: error: build of '/nix/store/daphxm7zaddf0hv4kfgzk9l4y9qg36ib-postgresql-11.9.drv' failed - The pinentry dependencies include the postgres package. Postgres error build.
<flokli>
Izorkin: if postgres is broken with #81172, then please comment there, so it can get fixed.
<{^_^}>
[rfcs] @zimbatm merged pull request #72 → [RFC 0072] Switch to CommonMark for documentation → https://git.io/JJO9s
<{^_^}>
[rfcs] @zimbatm pushed commit from @mboes to master « [RFC 0072] Switch to CommonMark for documentation (#72) »: https://git.io/JTN4j
lsix has joined #nixos
<expelledboy>
So I have been wondering, why can I wrap nix package manager into a distributable gui? The problem is I dont understand it well enough, it doesnt help that I use nix-darwin with home-manage so my idea of nixos is not consistent enough.
n9nes has quit [Ping timeout: 260 seconds]
<arianvp>
danderson: asking the right questions =)
<FRidh>
its going to happen now, the flood of documentation PR's
<{^_^}>
[nixpkgs] @FRidh pushed commit from @roberth to staging-next « postgresql: Fix timetz test failure »: https://git.io/JTNRF
m0rphism has joined #nixos
Anonymous[m] has quit [Quit: Idle for 30+ days]
darkharmony9999[ has quit [Quit: Idle for 30+ days]
the_rajsun[m] has quit [Quit: Idle for 30+ days]
juan[m] has quit [Quit: Idle for 30+ days]
yusdacra[m] has quit [Quit: Idle for 30+ days]
l_inus[m] has quit [Quit: Idle for 30+ days]
<danderson>
okay, home-manager finally installed. Turns out NixOS declarative containers really don't work well with flakes right now.
<{^_^}>
[nixpkgs] @FRidh merged pull request #91316 → Support virtio_scsi devices on nixos-generate-config → https://git.io/JfxeR
<{^_^}>
[nixpkgs] @FRidh pushed commit from Victor Nawothnig to master « Support virtio_scsi devices on nixos-generate-config »: https://git.io/JTN0v
<danderson>
in particular: can't import a flake nixosModule from within a container config, because the container.config type doesn't offer specialArgs to make the module eval work out
<danderson>
so, cut out the home-manager stuff from the container configs, and it's happy now
<danderson>
now... wtf was I installing home-manager for...
<{^_^}>
[nixpkgs] @zowoq pushed commit from @saschagrunert to master « slirp4netns: 1.1.4 -> 1.1.6 »: https://git.io/JTNEp
<expelledboy>
@V its a start, let me see if I can get this installed in a working nix system :D been fighting with nix for 2 days now, just whacked my entire setup because I cant delay anymore
__monty__ has joined #nixos
<{^_^}>
[nixpkgs] @expipiplus1 opened pull request #102735 → Fix several haskell packages. → https://git.io/JTNuE
<aasg>
leonardp (IRC): Looks like you might be missing `services.ceph.enable = true;`
<{^_^}>
[nixpkgs] @magnetophon opened pull request #102743 → melmatcheq.lv2: init at 0.1 → https://git.io/JTNwH
vk3wtf has quit [Ping timeout: 264 seconds]
eoli3n has quit [Ping timeout: 272 seconds]
<expelledboy>
yus this is a mission.. so it seems I have now installed nix multi user with nix-darwin, which gives me nixos-ish running in root. How now to I piggy back that and install a user based home-manager?
<inquisitiv3>
I'm running Nix on ElementaryOS. I've created an environment with Intellij and OpenJDK by running `nix-shell -p jetbrains.idea-community jdk`. Is there a dynamic link to the Java binaries so that I don't need to manually change them in Intellij every time I update the JDK?
<clever>
inquisitiv3: you would want to instead do something like `nix-build '<nixpkgs>' -A jdk -o jdk
<clever>
inquisitiv3: that will create a symlink called jdk, that points to jdk
<inquisitiv3>
Should I do that inside the environment with Intellij, or before I enter it_
<inquisitiv3>
?*
<betaboon>
when i delete particular generations using nix-env and run nix-collect-garbage afterwards, i would have expected the kernel and initrds of those old generations to be deleted on /boot but it seems like that is not the case. am i misunderstanding something ?
<etu>
betaboon: nix-collect-garbage is a "nix" command and not a "nixos" command and is therefore not aware of nixos things
<etu>
betaboon: But they will go away if you do a "nixos-rebuild boot"
<{^_^}>
[nixos-homepage] @garbas closed pull request #634 → Fix asciinema player breaking site width → https://git.io/JTPF6
<{^_^}>
[nixos-homepage] @garbas pushed 9 commits to master: https://git.io/JTNiL
<{^_^}>
[nixos-homepage] @garbas pushed 0 commits to fix/misc-columns-and-alignment: https://git.io/JTNiq
<betaboon>
etu: i am in the situation that my /boot is full thus i cannot run `nixos-rebuild boot` without getting rid of old kernels before. but there is a particular generation that i need to keep
<clever>
inquisitiv3: i would do it before you start it
<clever>
betaboon: run `nix-store --query --roots` on a given path, to see why its not being deleted
<{^_^}>
[nixos-homepage] @garbas pushed commit from @samueldr to fix-597 « site-styles: Fix asciinema breaking width by removing aspect ratio code »: https://git.io/JTNi4
<clever>
betaboon: but for /boot, nix-collect-garbage never deletes anything from /boot/
<azazel>
is it possible to pass lists to nix-shell --arg option?If yes, with which format
<azazel>
?
<clever>
betaboon: instead, nixos-rebuild deletes the ones not tied to a generation, after you switch, without any need to gc
<clever>
azazel: nix-shell accepts --arg, but it functions the same as --arg elsewhere
<{^_^}>
[nixos-homepage] @garbas opened pull request #637 → site-styles: Fix asciinema breaking width by removing aspect ratio code → https://git.io/JTNiV
<azazel>
mmm, clever, thanks... so the answer is...no?
<clever>
azazel: the file you open (usually shell.nix) must define a function, that accepts the arg you are giving
<clever>
azazel: or the attribute your refering to with -A can also define the function
werner291 has quit [Ping timeout: 272 seconds]
werner292 is now known as werner291
<clever>
(recursively, all the way down)
<inquisitiv3>
clever: Thanks for the help! That is a nifty solution
zakame has joined #nixos
Yaniel has joined #nixos
<betaboon>
clever: so i guess my only option is to manually delete stuff from /boot then ?
<clever>
betaboon: yeah
<clever>
betaboon: nixos-rebuild will put back the files that matter
<clever>
betaboon: also...
<azazel>
clever: thanks, but what i meant was if and how i can express and pass a "list of strings" as an argument
<clever>
boot.loader.grub.configurationLimit
<clever>
betaboon: nixos-rebuild will only put the last N generations into /boot
<azazel>
like [ "foo" "bar" ]
<clever>
azazel: --arg takes raw nix expressions, and you must quote them to stop bash from eating it
<{^_^}>
[nixos-hardware] @sevenfourk opened pull request #206 → lenovo/thinkpad/t14: created symlink to t14s/ → https://git.io/JTNij
<clever>
azazel: so --arg key '[ "foo" "bar" 1 ]'
<betaboon>
clever: so it should be safe to remove every kernel but the one I'm currently running and nixos-rebuild should populate the ones that i still need based on my generations ?
alp has quit [Ping timeout: 272 seconds]
Dotz0cat has joined #nixos
<clever>
betaboon: yeah, and boot.loader.grub.configurationLimit can limit how many, so you wont have to delete generations either
<azazel>
clever ah, ok, thanks
<betaboon>
clever: yeah i know about that option, currently i still need an old generation due to a steam-issue (steam cant connect on newer generations, havent figure out why yet) so i dont want to risk to throw that old one away
<clever>
betaboon: you can often just `nix-env -i /nix/store/steam` to grab an old version, and add it to the users profile
<clever>
betaboon: and then it will ignore the system-wide copy
<betaboon>
clever: for the steam-issue: i dont think the root-cause is the steam-version but something with the kernel, weird issue
<{^_^}>
[nixpkgs] @mweinelt pushed 2 commits to staging-20.09: https://git.io/JTNP0
sangoma has joined #nixos
zfnmxt has quit [Quit: Bye!]
MmeQuignon has joined #nixos
<inquisitiv3>
Wait, Intellij says that it's just a JRE and not the JDK? Is the `jdk` package just the JRE, or is there some issue with Intellij?
zfnmxt has joined #nixos
alp has joined #nixos
<{^_^}>
[nixos-search] @garbas merged pull request #221 → Closes #220 Latest stable is now the default channel → https://git.io/JTdrD
<{^_^}>
[nixos-search] @garbas pushed commit from @plfaucher to master « Latest stable is now the default channel (#221) »: https://git.io/JTNPd
FRidh has quit [Remote host closed the connection]
malook has quit [Quit: malook]
alp has quit [Remote host closed the connection]
alp has joined #nixos
<__monty__>
inquisitiv3: I think general advice on libraries applies. Installing it in your profile is not enough. No FHS -> programs can't find libraries in the places they expect them.
FRidh has joined #nixos
<{^_^}>
[nixpkgs] @raboof opened pull request #102754 → inkcut: update to 2.1.2 → https://git.io/JTNX8
<sszark>
Can you use relative paths for nix variables? instead of the fully qualified path.
<typetetris>
Anyone using tmux+gnupg-agent here?
<humancalico[m]>
I'm not able to view/switch generations while booting since the past few days but `nix-env --list-generations` shows it just fine. Was there a recent update or something regarding this?
sigmundv__ has quit [Read error: Connection reset by peer]
sigmundv__ has joined #nixos
<typetetris>
humancalico: Might GC have erased your generations?
<humancalico[m]>
[typetetris](https://matrix.to/#/@freenode_typetetris:matrix.org) Not really. `nix-env --list-generation` does show the previous generations
<typetetris>
humancalico: I am not aware of a change regarding generations in 20.09.
sszark has quit [Quit: leaving]
zfnmxt has quit [Quit: Bye!]
sszark has joined #nixos
werner292 has joined #nixos
zfnmxt has joined #nixos
werner291 has quit [Ping timeout: 272 seconds]
werner292 is now known as werner291
sangoma has quit [Read error: Connection reset by peer]
sangoma has joined #nixos
<{^_^}>
[nixpkgs] @primeos pushed to master « llvm_11: Add myself as maintainer »: https://git.io/JTNyZ
<mschwaig>
typetetris: thanks, that command did the trick
<mschwaig>
makefu: thanks
domogled has quit [Ping timeout: 272 seconds]
whald has joined #nixos
orivej has joined #nixos
`slikts has quit [Ping timeout: 272 seconds]
cjpbirkbeck has joined #nixos
<Raito_Bezarius>
is there any person who succeed to use distcc with NixOS ?
<Raito_Bezarius>
succeeded*
fendor_ has joined #nixos
werner291 has quit [Ping timeout: 272 seconds]
`slikts has joined #nixos
<whald>
Raito_Bezarius, i think it is more common to specify additional nix.buildMachines, so if this meets your requirements it's probably easier to set up
tru_tru has joined #nixos
<Raito_Bezarius>
but, does it split up the work at the compile-level?
<Raito_Bezarius>
I mean, if I only have a derivation to build, does it split it?
<Raito_Bezarius>
last time I checked I believed it only worked at the derivation level
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raghavsood has joined #nixos
lukegb has quit [Ping timeout: 265 seconds]
<raghavsood>
Hello fellow humans - was wondering if there was a convention on when to add a new directory to the package tree - I intend to package several blockchain/cryptocurrency related things, and was intending to create `pkgs/applications/blockchains/tools` to differentiate them from the actual blockchain network server/node packages, which are just under
<raghavsood>
`pkgs/applications/blockchains`.
<raghavsood>
I couldn't find any convention or default choice for when to add a new directory in any docs, though
<{^_^}>
[nixpkgs] @R-VdP opened pull request #102769 → nixos/oci-containers: restore ability to easily view the container output in the logs → https://git.io/JTAJa
<pushqrdx>
so i have found a perfect sweet spot for package versions that solved most of my graphics related issues and i want to know how can i get the currently installed hash of my configuration.nix so that i can pin everything
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
jabster28 has joined #nixos
zupo has quit [Client Quit]
bennofs[m] has quit [Quit: Idle for 30+ days]
ArtemVorotnikov[ has quit [Quit: Idle for 30+ days]
<ToxicFrog>
Are you running nixos, or something else with nix installed
<pushqrdx>
nixos
<pushqrdx>
the directory is there
<pushqrdx>
but readlink doesn't return snything
zupo has joined #nixos
<ToxicFrog>
ls -ld /run/current-system?
<ToxicFrog>
On my system that's a symlink to the path in /nix/store of the system configuration built from configuration.nix, which I think is what you were asking for
sangoma has joined #nixos
jabster28 has quit [Ping timeout: 244 seconds]
<{^_^}>
[nixpkgs] @RaghavSood opened pull request #102808 → miniscript: init at unstable-20201104 → https://git.io/JTAmp
<ToxicFrog>
pushqrdx: so...to "pin" configuration.nix, just...don't edit it. It's entirely user-created. Don't change it and it won't change.
<ToxicFrog>
However, the system configuration as a whole is made from configuration.nix + the contents of the channel(s) it references
<pushqrdx>
this is not what i am saying, i want to pin the package versions that this generation used
<pushqrdx>
for instance it installed a particular version of mesa, etc
<supersandro2000>
is anyone there?
<jmercouris>
yes
<pushqrdx>
i want to be able to have a config.nix that if i were to install it from scratch will pull down the same packages
<ToxicFrog>
pushqrdx: ok, so, take the channel you used and make a copy of it that you never update, say `nixos-pinned`, and then import that and load the packages you want pinned from that rather than from <nixos>
<ToxicFrog>
Oh
<ToxicFrog>
Hmm
tilcreator_ has joined #nixos
dne has joined #nixos
otavio__ has joined #nixos
<ToxicFrog>
I don't think there's a way to say in configuration.nix what channel version to load; the channels are out-of-band. So at minimum you'd need the configuration.nix + a comment saying "you need to have nixpkgs commit whatever as <nixos-pinned> to build this"
orivej has joined #nixos
<pushqrdx>
yesterday i switched the channel from 20 to unstable, and it installed a bunch of newer packages, and many of the problems i had are fixed this is why i want to have the same commit as my base
<otavio__>
Hello everyone; I am migrating one Debian machine to NixOS and I got an error message on nixos-install, close of finish:
<otavio__>
/nix/store/pfwjz7y41hi78y9xmrjxvfxmrmyd4kb3-nixos-enter/bin/nixos-enter: line 71: chroot: command not found
<otavio__>
/nix/store/pfwjz7y41hi78y9xmrjxvfxmrmyd4kb3-nixos-enter/bin/nixos-enter: line 74: exec: chroot: not found
<otavio__>
How I can fix this?
otavio__ is now known as otavio
<pushqrdx>
so if i were to upgrade again or reinstall from scratch i can go back to this exact version if iwant
<pushqrdx>
my current-system is pointing to this `/nix/store/5ak7bw6csihy9mqvb8l8dzyfwypfw07q-nixos-system-nixos-21.03pre250162.34ad166a830`
lukegb has joined #nixos
<ToxicFrog>
Save the channel tarball next to your configuration.nix?
heyitsrama has joined #nixos
<pushqrdx>
i am new to nix so i will need more clarification please
<pushqrdx>
where and how can i do that
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cole-h has joined #nixos
<ToxicFrog>
Ok, so, first of all, do you know what the channels are
jonringer has joined #nixos
<pushqrdx>
if you mean my system wide channel like nix-channel --list then it's the unstable channel because i switched to that yesterday
<ToxicFrog>
Ok I'm just going to explain it
<ToxicFrog>
A channel is basically the package index; it's a list of all the packages in nixpkgs at a given version and instructions on how to build them
<ToxicFrog>
The thing `nix-channel --update` does is download the latest snapshot of the index
<ToxicFrog>
When you `nixos-rebuild`, configuration.nix says which packages to install, and the current contents of your channels define which version of each package is installed
<ToxicFrog>
So, if you want to "pin the current version of a package" you need to pin the channel you got that package from
<ToxicFrog>
The easiest way to do this is probably just to make a copy of the channel before your next `nix-channel --update`; it's in the nix store, you can find it with `ls -l /nix/var/nix/profiles/per-user/root/channels/`
<ToxicFrog>
You can then import it in configuration.nix with something like: let pinned = (import /path/to/your/pinned/channel { config.allowUnfree = false }) in { ... }
<ToxicFrog>
And then reference the stuff you want to pin in systemPackages or the like as `pinned.foo` rather than `pkgs.foo`
<ToxicFrog>
(I have done something similar to this with calibre)
werner292 has joined #nixos
<pushqrdx>
however there are things that i didin't specify in config.nix but were built as a result of a dependency things like drivers, mesa, opengl etc those are the things i care about pinning
FRidh has quit [Quit: Konversation terminated!]
werner291 has quit [Ping timeout: 272 seconds]
werner292 is now known as werner291
troydm has quit [Ping timeout: 260 seconds]
<ToxicFrog>
This sounds more like you want to just never update your system
<ToxicFrog>
In which case...just don't update it
<ToxicFrog>
Stop running `nix-channel --update`
sangoma has quit [Ping timeout: 272 seconds]
<ToxicFrog>
You can copy the configuration.nix and channel snapshot over to a new machine and it'll work there for as long as the sources referenced by the channel are still online
<cole-h>
(`--update` takes a channel name as an optional arg, if there is a channel you do want to update, FWIW)
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #nixos
<pushqrdx>
the question is, were all of this built as a result of stuff i specified in config.nix, like services.xserver, opengl etc so if i just use the pinned channel on those it will essentially pin the rest?
<pushqrdx>
or is there some packages that get installed after --upgrade that are system related, without essentially being there in config.nix
<pushqrdx>
like linux kernel etc
<pushqrdx>
because i don't have linux kernel anywhere in my config.nix and still after i did rebuild switch --upgrade it installed a newer kernel
<{^_^}>
[nixpkgs] @romildo opened pull request #102810 → canta-theme: restrict platform to linux → https://git.io/JTAsP
<lassulus>
pushqrdx: there are default values for every option, also for the linux kernel. So if you upgrade your channel the default values will also change.
<lassulus>
boot.kernelPackages defines what kernel you use
lsix has quit [Read error: Connection reset by peer]
<ToxicFrog>
> were all of this built as a result of stuff i specified in config.nix
<{^_^}>
error: syntax error, unexpected IN, expecting ')', at (string):345:57
<ToxicFrog>
Like I said before...it's a result of configuration.nix + the current contents of the channels. Don't touch either of those and the system won't change. The stuff that you don't reference in configuration.nix that gets pulled in anyways, like dependencies, the kernel, the specific version of each package, the default settings for ones you don't explicitly configure, that all comes from the
<ToxicFrog>
channels.
lsix has joined #nixos
<pushqrdx>
so it's hard to get configuration.nix to reproduce the same package versions it produced this time again
<supersandro2000>
with channels kinda
<supersandro2000>
with flakes or niv not
<gustavderdrache>
it's probably better to say that configuration.nix and your packages are only soft coupled - unless you make specific arrangements, the system applies configuration to whatever is available
<gustavderdrache>
which defaults to the current channel version, as folks have mentioned
<gustavderdrache>
but you're looking for a hard coupling: configuration.nix + specific packages
<gustavderdrache>
(part of me wonders if it would be better to use an overlay or some other trick just to pin a subset of packages, thereby allowing updates of other stuff)
<pushqrdx>
which makes me wonder if given the same channel hash that is it used to build this generation, can i make it reproduce the same setup
<siraben>
How do I find the location of nixpkgs in the store?
<teto>
I have the feeling several people use some kind of neovim-nightly, would that be ok to add one entry ? with buildLocal=true; to not bother the cache
zakame has joined #nixos
<V>
siraben: nixpkgs does not automatically appear in the store?
<V>
it's only in the store if you copy it in there
CyberManifest has quit [Remote host closed the connection]
CyberManifest has joined #nixos
werner292 has joined #nixos
shuwan4games has joined #nixos
growpotkin has joined #nixos
zakame_ has joined #nixos
zakame has quit [Ping timeout: 265 seconds]
alp has joined #nixos
werner291 has quit [Ping timeout: 272 seconds]
werner292 is now known as werner291
BJTH has joined #nixos
<BJTH>
Hello, I have a small question. I am trying to get PlantUML to work with emacs and whilst the package works great. I have to tell emacs in its init.el where to find plantuml.jar. I have found out that plantuml.jar is located in the user-environment in the nix store, is there a symlink somwhere without the prefixed hash that I can use easily?
<Guest32744>
if you use home-manager or similar you can use that, and I'm sure there's something similar in nixos proper
Guest32744 is now known as AmandaC
<AmandaC>
For example, I use this line in my config to symlink the latest nixpkgs manual into my ~/Documents: `home.file."Documents/Nixpkgs Manual.epub".source = "${nixpkgs-manual}/share/doc/nixpkgs/nixpkgs-manual.epub";`
<siraben>
I'm running a python project with nix-shell http://ix.io/2D0C with a coworker (we're both on darwin), but he gets the following error whereas I don't; http://ix.io/2D0D
<tpw_rules>
is there any way to automatically get udev rules and systemd units and stuff when not using nixos?
cosimone has joined #nixos
<shuwan4games>
Hello I have a issue with a java application I am trying to run, I get the error GLib-GIO-ERROR **: 12:53:48.479: No GSettings schemas are installed on the system. How could I go and fix this?
<{^_^}>
[nixpkgs] @NeQuissimus opened pull request #102817 → ammonite: Add test reference, update script → https://git.io/JTAC7
domogled has quit [Ping timeout: 265 seconds]
dbmikus_ has joined #nixos
zakame_ has quit [Remote host closed the connection]
jabster28_ has joined #nixos
jabster28 has quit [Ping timeout: 244 seconds]
<{^_^}>
[nixpkgs] @etu opened pull request #102818 → php: Refactor to have the different versions as separate files → https://git.io/JTAWG
<supersandro2000>
pushqrdx: $() is nicer because `` is the code for making a code block
domogled has joined #nixos
jonringer has quit [Remote host closed the connection]
zakame_ has joined #nixos
<pushqrdx>
supersandro2000 sorry i didn't quite follow, you mean in irc?
superherointj has quit [Quit: Leaving]
fresheyeball has joined #nixos
lsix has quit [Ping timeout: 244 seconds]
ManiacOfMadness has quit [Ping timeout: 272 seconds]
zakame_ has quit [Ping timeout: 265 seconds]
domogled has quit [Ping timeout: 260 seconds]
domogled has joined #nixos
shuwan4games has quit [Remote host closed the connection]
sangoma has joined #nixos
<Fafnir[m]>
<siraben "I'm running a python project wit"> Even though nix tries to be reproducible, the evaluation of nix files into derivations is not (yet; see Flakes). You might want to pin the nix packages to ensure reproducibility: https://nixos.wiki/wiki/FAQ/Pinning_Nixpkgs
<siraben>
oh so it's the nixpkgs that is not pinned
<Fafnir[m]>
I assume your nix-channels both point to different versions of the nixpkgs tree, thus the different behaviour
domogled has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @zimbatm pushed to master « terraform-providers.linuxbox: init at 0.3.11 »: https://git.io/JTAlu
domogled has joined #nixos
lsix has joined #nixos
zupo has joined #nixos
pushqrdx has quit [Remote host closed the connection]
<cosarara>
hi! small question. I have a local copy of nixpkgs on branch 20.09 with an added package I made. Using `sudo nixos-rebuild switch -I nixpkgs=/home/jaume/nixpkgs` I can tell nixos to use it, but can I set that nixpkgs path option in some config file?
<cosarara>
or, is there a better way?
<worldofpeace>
cosarara: I believe u can do ` nix.nixPath = [ "nixos-config=wherever" ] ;
cptrbn has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<benley>
hm, no python channel
<DigitalKiwi>
there might be one but it's not one of the largest
<worldofpeace>
benley: valid 👍️ and needed
<benley>
aaaanyway. Is there really no still-maintained tool for generating python derivations? Both python2nix and pypi2nix appear to be abandoned
cosimone has quit [Remote host closed the connection]
<gchristensen>
poetry2nix is really nice
<DigitalKiwi>
isn't poetry2nix a thing
cosimone has joined #nixos
<benley>
I'm trying to convince my teammates to try using nix for internal python packaging and it's a very difficult sell when the tools are deprecated :-/
werner292 has joined #nixos
<benley>
oh yeah poetry2nix does exist
werner291 has quit [Ping timeout: 272 seconds]
werner292 is now known as werner291
<benley>
which is great as long as your python projects are using poetry, which most are not
<benley>
but that's a thing I'd consider promoting at work too if it's good
<benley>
oh I have not seen pip2nix!
<worldofpeace>
I've never actually used it, but it's sad those seem to be abandoned ☹️ I think they're in the nixpkgs manual too
<benley>
yep, pypi2nix and python2nix are the ones mentioned in the nixpkgs manual, and those are both marked abandoned
* benley
considers a PR to replace those links in the manual
<gchristensen>
a nice idea
lsix has quit [Ping timeout: 264 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cosarara>
worldofpeace: doesn't seem to work, it complains about not finding the package this way. Maybe because it's too late to set that in configuration.nix (pkgs is passed down from elsewhere)
<worldofpeace>
benley: it's in markdown so it should be editable on github (and it's just removal since both mentions are abandoned)
<cosarara>
what do people with a forked nixpkgs usually do?
<Raito_Bezarius>
I'm trying to get a cross-compiling shell for riscv64-embedded for gcc, but it seems like it wants to evaluate/install gcc-debug-wrapper which does not look like to be compatible with an embedded-like system, does anyone know how to say that I want gcc w/o debug?
zupo has joined #nixos
<worldofpeace>
cosarara: if u set it and then not pass it on command line it won't work. that's because editing the configuration will not suddenly modify the running environments nixPath value. and for the matter, no sessions environment is going to be modified, you'll have to logout and log back in
<cosarara>
ah right so I'd have to rebuild with the option on the command line
<cosarara>
then after that it's going to be picked up
<cosarara>
right?
cptrbn has joined #nixos
<worldofpeace>
yep, it will change what gets set in the shell environment without logout/login
<benley>
worldofpeace: whoa, did the "switch to markdown for docs" RFC actually get implemented?
Latr_work has quit [Quit: Connection closed for inactivity]
<benley>
worldofpeace: I was following that PR for a while but stopped paying attention while I was unemployed
<worldofpeace>
benley: the nixpkgs manual supports using markdown currently, I believe with pandoc. I'd hope someday very soon the commonmark RFC gets implemented, though
<benley>
ah, ok
<worldofpeace>
I already use markdown for the release management docs
<benley>
in any case I don't mind editing docbook sources, as long as there are examples of how to do whatever formatting stuff I need
oida has quit [Quit: byez]
<{^_^}>
[nixpkgs] @wahjava closed pull request #102534 → pango: Import a patch to fix an issue with Pidgin → https://git.io/JTdDF
domogled has quit [Ping timeout: 260 seconds]
oida has joined #nixos
<cosarara>
worldofpeace: had to make sure to add the nix-config too, but it worked
<cosarara>
ty
alp has quit [Ping timeout: 272 seconds]
justanotheruser has quit [Ping timeout: 272 seconds]
<DigitalKiwi>
i am definitely doing some trans ones with transparent bg and also rainbow...so if you're not one of the people that i already know wants those let me know so i can make more
<ToxicFrog>
I would love one (or several), especially in trans, bi, or general-purpose pride rainbow colours
<ToxicFrog>
(and I know you said "free" but I can and will pay for them if it means people can have more stickers)
<ToxicFrog>
This is also making me wonder how hard it would be to customize the colours on the NixOS logo ancilla shows when it boots...
<DigitalKiwi>
gchristensen: lol some of those lolol *hides*
<voidless>
Hey there, I had a Problem with performance with the new 20.09 release. Since 20.03 will soon be end of life, I wanted to write an issue, but am not sure which information would be relevant here. What I know for sure, is that my kernel version changed.
<voidless>
all my uis (especially web content) are very laggy since upgrading
jabster28 has joined #nixos
jabster28_ has quit [Ping timeout: 272 seconds]
<ToxicFrog>
Video hardware acceleration busted?
jess has joined #nixos
<voidless>
would there be a way to verify this?
cosimone has quit [Quit: cosimone]
mmohammadi9812 has joined #nixos
<{^_^}>
[nixpkgs] @cosarara opened pull request #102819 → dosemu2: init at git 2020-11-04 → https://git.io/JTARY
jabster28 has quit [Ping timeout: 272 seconds]
<aasg>
,locate nameser.h
<{^_^}>
Found in packages: zig, psol, uclibc, musl.dev, glibc.dev, emscripten, glibc_multi.dev, glibc_memusage.dev
saschagrunert has quit [Remote host closed the connection]
werner292 has joined #nixos
werner292 is now known as werner291
werner291 has quit [Ping timeout: 272 seconds]
thc202 has quit [Ping timeout: 260 seconds]
jabster28 has quit [Ping timeout: 246 seconds]
Swant has quit [Changing host]
Swant has joined #nixos
<sphalerite>
voidless: check `nix run nixpkgs.glxinfo -c glxinfo | grep string`. If there's anything with llvmpipe, it's almost certainly a graphics acceleration issue
<voidless>
sphalerite: alright gona restart my machine to verify on the new version
fresheyeball has quit [Quit: WeeChat 2.7.1]
rprije has joined #nixos
sigmundv has joined #nixos
wnklmnn has quit [Quit: Leaving]
ris has joined #nixos
detran has joined #nixos
domogled has joined #nixos
zebrag has quit [Quit: Konversation terminated!]
addcninblue has joined #nixos
voidless has quit [Ping timeout: 245 seconds]
voidless has joined #nixos
<voidless>
alright did this with on both the old and the new release. This is the new one:
<voidless>
server glx vendor string: SGIserver glx version string: 1.4client glx vendor string: Mesa Project and SGIclient glx version string: 1.4OpenGL vendor string: IntelOpenGL renderer string: Mesa Intel(R) HD Graphics 5500 (BDW GT2)OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.1.7OpenGL core profile shading language version string:
<voidless>
4.60OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.1.7OpenGL shading language version string: 4.60OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.1.7OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
zebrag has joined #nixos
<voidless>
woops cr arent there any more
at_mart has joined #nixos
<at_mart>
hi all, could someone help me set an unsupported displayManager (that is, one that doesn't have a neat ...displayManager.displayManagerName.enable option)?
<voidless>
alright unfortunately im not so familiar with this kind of log files, but the last line seems promising, doesnt it?
Chiliparrot has quit [Ping timeout: 244 seconds]
<benny>
I don't know if I'm violating the spirit of nix right now but I'm changing an upstream project to build an artifact using their impure build process so I can grab the artifact from the project's release location
justanotheruser has joined #nixos
Chiliparrot has joined #nixos
v0|d has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @0x4A6F opened pull request #102822 → dasel: init at 1.1.0 → https://git.io/JTAuX
<Siilwyn>
I ran 1, 2 and 3. So GPT partition table, root partition and swap partition
<Siilwyn>
I know this is not really NixOS specific but if somebody knows if this is recoverable at all I'd love to know.
sss2 has quit [Quit: Leaving]
<Siilwyn>
but I suspect not ...
<tpw_rules>
did you just rewrite the partition tables then?
MyriaCore[m] has joined #nixos
<tpw_rules>
not format any of them>?
<lordcirth>
Siilwyn, photorec might be able to get some files off
<Siilwyn>
didn't format indeed
<Siilwyn>
will look into photorec
<Yaniel>
if you didn't format most stuff should be recoverable
werner291 has quit [Quit: werner291]
<tpw_rules>
nah it should be fully recoverable
<Siilwyn>
yeah just the partition commands, I hope so!
<tpw_rules>
what system did you have before? was it just one partition?
<Siilwyn>
tpw_rules: yes just one partition, default Ubuntu installer settings
<tpw_rules>
was it bios boot?
<Siilwyn>
I did add a swap file later, I'll have to look up if I created that partition
fresheyeball has joined #nixos
goodnight_noom[m has joined #nixos
<Siilwyn>
tpw_rules: bios boot?
<tpw_rules>
i.e. not UEFI?
cptrbn has joined #nixos
<tpw_rules>
gpart should find it automatically. but i bet you can just delete the partitions you just wrote and create a new one with the default settings and your data will be bac
<tpw_rules>
k
<Siilwyn>
hmmm not sure how can I tell? it does show the grub menu but just shows nothing when I try to boot
<freezeboy>
clever apparently, there are multiple glib involved ... what a mess
<freezeboy>
result/lib/protonmail-bridge: /nix/store/jvjchabdmcxlwjhbiii5sy6d2hcg6z7r-glibc-2.31/lib/libc.so.6: version `GLIBC_2.32' not found (required by /nix/store/wzgqf12klflkwfn214dwy921n9kzyxvr-glib-2.64.5/lib/libglib-2.0.so.0)result/lib/protonmail-bridge: /nix/store/jvjchabdmcxlwjhbiii5sy6d2hcg6z7r-glibc-2.31/lib/libc.so.6: version `GLIBC_2.32' not
<freezeboy>
found (required by /nix/store/kah5n342wz4i0s9lz9ka4bgz91xa2i94-glibc-2.32/lib/librt.so.1)
o1lo01ol1o has quit [Remote host closed the connection]
<clever>
thats glibc, not glib
<freezeboy>
oops typo
mmohammadi9812 has quit [Ping timeout: 256 seconds]
<infinisil>
And once that's fixed I get "jupyter_client.kernelspec.NoSuchKernel: No such kernel named poetry"
<energizer>
oh sorry
<pushqrdx>
I have the nixpkgs-wayland overlay added to my configuration.nix, and i want to use a package from from there in a nix-shell, however when i specify it in buildInputs i get undefined variable
<energizer>
i called 'name = poetry' but maybe that's not what that parameter does
<pushqrdx>
so i wonder how can i use packages from overlays as build inputs
<pushqrdx>
note: i can install packages from that overlay normally with `nix-env -iA ` so i don't know why it doesn't work in buildInput
<colemickens>
pushqrdx: did you ping me? I got a notification and can't find anything.
alp has quit [Ping timeout: 272 seconds]
<pushqrdx>
colemickens no i didn't
<colemickens>
pushqrdx: you would use them as a build input the same way as any other package - just take a nixpkgs that you have, and reimport it with the overlay applied.
<colemickens>
pushqrdx: baffling, maybe it was an old one from last night and I just forgot and then saw it when I sat down.
<colemickens>
pushqrdx: if it's for a package in nixpkgs, that wouldn't be appropriate, you'd probably want to copy that dep into nixpkgs as well.
<pushqrdx>
colemickens :D that's a happy coincidence then, just when i was trying to do something with the wayland overlay lol, so the problem is i have a simple shell.nix with the `with (import <nixpkgs> {});` at the top
<pushqrdx>
but i imported the overlay in my configuration.nix so i assume it's merged into import <nixpkgs> ?
<colemickens>
pushqrdx: you could just throw config.overlays = [(overlay_goes_here)] in that {}
<colemickens>
pushqrdx: that would be true *when evaluating configuration.nix*
<colemickens>
pushqrdx: that wouldn't affect the nixpkgs that is available to the system at runtime
malook has quit [Remote host closed the connection]
<colemickens>
pushqrdx: for that, you either need to be explicit in the shell.nix (do this) or rely on user-state by adding the overlay to config in your homedir so nix always uses it.
supersandro2000 has joined #nixos
<colemickens>
(oh look, its this conversation again -_-, death to NIX_PATH)
<pushqrdx>
colemickens hmm so when i run nix-env -iA it's evaluating from configuration.nix?
<pushqrdx>
because i seem to be able to install packages from the overlay using that