<halfbit>
complains about ${version} not being availble
<halfbit>
*available
<halfbit>
can I ${self.version} it up or something there
<andi->
add a rec after the `.override` before the `{`
<halfbit>
duh, thanks
<andi->
that makes the attribute set recursive and allows you to refer to attributes defined within itself
<halfbit>
can't self reference right without rec
<halfbit>
bah
veleiro has quit [Remote host closed the connection]
<andi->
I guess you could also so self.libnats-c.version but that feels hacky :D
<{^_^}>
[nix] @matthewbauer opened pull request #4311 → Include static "nix" binary in Hydra build products → https://git.io/JIYOk
<infinisil>
I was just working on lazy attribute names again today (nix#4154), and I was kind of thinking about whether it's really worth implementing this
<halfbit>
effectively I'm creating a docker image with some static binaries in my case in the end, I'd like to do -flto and -fpie along with the section garbage collection magic
<halfbit>
for all things I compile against
<lovesegfault>
This is me getting rid of it, so just invert the diff :P
<lovesegfault>
lukegb: nope
<lovesegfault>
I did it for fun
<lovesegfault>
AIUI there's no way to globally add an arbitrary flag
<lukegb>
Doing things for fun is good, that's allowed :D
<lovesegfault>
this is, afaik, _not_ by design, but just an omission of the platform "API"
lord| has quit [Ping timeout: 265 seconds]
<halfbit>
that's nice that it lets you do it
<fuzzypixelz>
well,
<fuzzypixelz>
"The option setting is not guaranteed to reflect the current keymap. This option is provided for compatibility; bindkey is
<halfbit>
localSystem, I'll have to peek under the covers perhaps at that one
<fuzzypixelz>
the recommended interface.
<lovesegfault>
ideally it would just have a `gcc.extraFlags`, but that doesn't exist
<fuzzypixelz>
"
<fuzzypixelz>
nvm
<halfbit>
-flto with gc-sections almost requires everything from scratch being built a specific way
supersandro2000 has quit [Disconnected by services]
supersandro2000 has joined #nixos
pushqrdx has joined #nixos
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 36 commits to staging-next: https://git.io/JIYGU
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 39 commits to staging: https://git.io/JIYGk
<fuzzypixelz>
at uni I've been given source code for a program I need to "install", I have no idea what its dependencies are. I'm looking to challenge myself and make this my first nix derivation. What is the general outline for such a task?
<andi->
do you know which language it is written in?
<fuzzypixelz>
how would my system be affected if I install derivation from outside my channel
lord| has joined #nixos
<andi->
if it is C/C++/… i'd just start out with stdenv.mkDerivation and then add deps as I encounter them
<andi->
with install you mean nix-env -i ?
<fuzzypixelz>
well the executable is a bash script
<fuzzypixelz>
I got it to at least run and display some help when I swaped #!/bin/bash for #!/bin/sh, I know this si dirty but I was just checking
<andi->
wrap it in a derivation and apply patchShebangs and wrapProgram and all those good things
<andi->
until it behaves
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
<fuzzypixelz>
haha please send some references I have no idea when that comes from
<fuzzypixelz>
well, I've been dodging that for a while
<fuzzypixelz>
as in, the past 3 days
<fuzzypixelz>
ok, one last question, I was told that in the case of an "issue" I need to install the 32-bit libraries "libncurses5:i386" and "libc6-i386"
<fuzzypixelz>
I suppose there are wrappers for this too? :D andi-
<andi->
pkgsi686 has your back
<andi->
maybe patchelf
<fuzzypixelz>
what is pkgsi686
<andi->
it is the package set that still has x86 packages (the 32bit variant)
<fuzzypixelz>
weird, I couldn't find it on search.nixos.org
pjt_tmp has joined #nixos
cr4y1__ has joined #nixos
<fuzzypixelz>
is that even where I'm supposed to look andi- ?
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JIYzo
<tpw_rules>
if it makes you feel better various tests have shown the lifetime generally far extends that
<growpotkin>
I use mine, but my thinking is that I wind up buying a new drive every 3-4 years so I'm not really sweating it.
<growpotkin>
Files that I want to keep forever I keep on HDD, with a backup on a NAS collection
<siraben>
hexa-: how did you inspect those ssd stats?
<growpotkin>
wait yeah I didn't even consider how you found those lol. Does Linux actually log that?
<hexa->
siraben: smartctl
<hexa->
ah well, I might be wrong about how old that ssd is though
hlolli_ has joined #nixos
<tpw_rules>
what are the power on hours?
<hexa->
the ssd is from 07/2018
<hexa->
Power On Hours: 3,012
<hexa->
so, >>10y at the current usage
<hexa->
¯\_(ツ)_/¯
<beandipper[m]>
hm, I'm wondering if I don't use my ssd for nixos, but put it on my old fashioned drive, what is my ssd good for. I don't really play games or anything 🤔
<growpotkin>
hexa-: Do you have a smartmon daemon on NixOS? Or does the binary alone work?
<hexa->
growpotkin: nix run nixpkgs.smartmontools -c smartctl -a /dev/nvme0n1
<hexa->
no daemon necessary
<growpotkin>
sweeet
<tpw_rules>
lifetime average of 4.7MB/s
<tpw_rules>
write
<tpw_rules>
smartctl doesn't necessarily have those stats for all models of drive
<siraben>
Hm I don't see data units read
hlolli__ has quit [Ping timeout: 260 seconds]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil>
beandipper[m]: Well you could put data on it?
<infinisil>
SSD's are much faster than HDD
<infinisil>
s
supersandro2000 has quit [Read error: Connection reset by peer]
<DigitalKiwi>
nix store on a hdd is not really fun
supersandro2000 has joined #nixos
<infinisil>
ZFS also has an interesting mode: Using a disk as a cache device. So you could make the SSD be a cache of the HDD, so that operations are faster for often-used data
<{^_^}>
#46109 (by tycho01, 2 years ago, closed): make NixOS more SSD-friendly
<growpotkin>
I had asked this a while back but nobody could tell me: Is it possible on NixOS to split the store across multiple drives? I wanted to place my kernel, and my most commonly used packages on SSD, but leave other junk on HDD. My dream was something like `environment.systemPackages = with pkgs; [ junk ]; environment.ssdPackages = with pkgs; [ shit-i-use-a-lot ];`
<infinisil>
growpotkin: Well that's pretty much what a ZFS cache device does, but without any manual setup :)
<infinisil>
Splitting the store isn't really possible I'm fairly sure
<growpotkin>
Hmmm... the downside there is that I need to wipe and setup ZFS lol. But that's a good tip for my next install.
<infinisil>
Yea..
<growpotkin>
infinisil: yeah the handful of times that I have even tried to relocate the store has been a nightmare. It seems like one of the least flexible things about NixOS
<infinisil>
Hm Isn't there cachefs
riksteri has joined #nixos
<V>
there's bcachefs
<V>
there's also overlayfs
<V>
so you could make an overlay of your current fs and an additional one, and use the overlay as your nix store
<infinisil>
I was hoping for a generic cache filesystem
<V>
I'm deeeefinitely regretting not putting zfs on my laptop now though. it's been lovely on the servers I've used it on
<beandipper[m]>
<V "so you could make an overlay of "> so do you mean using a FS like zfs for the base install, but then using an overlay to move /store/ to another FS type? I am not sure i understand but it sounds interesting
* DigitalKiwi
am also happy zfs user
<growpotkin>
How many of y'all are using flakes? TBH I have poked at them a handful of times but just don't understand them well enough "want to use them". I've only been able to find the Wiki Page and that tweag.io blog post as a guide.
supersandro2000 has quit [Disconnected by services]
<V>
beandipper[m]: basically a virtual fs that's backed by multiple existing fs
<growpotkin>
I managed to get my NixOS setup to use flakes, but I don't really understand how to cleanly migrate my custom packages and modules into separate flakes, and compose them.
supersandro2000 has joined #nixos
<V>
I'm considering looking at flakes. haven't touched them yet
<V>
I'm somewhat wary of using them given nixUnstable's current, well, instability
sss2 has joined #nixos
<growpotkin>
I understand conceptually why they would be nice, they help solve some of the hackish stuff I had done to compose my own packages and modules into NixOS, and would make managaging my configs across machines easier. But I think I need like "Nix Pills" for flakes to be comfortable enough to actually use them.
<V>
growpotkin: have you used niv?
sss2 has quit [Read error: Connection reset by peer]
<growpotkin>
nope
<V>
I'm considering trying that out as a precursor
sss2 has joined #nixos
h0m1 has quit [Ping timeout: 240 seconds]
<growpotkin>
Yeah after I got my NixOS config to load in a flake, I had no idea how to re-organize my packages and modules so they still use the same hacks. The only real difference is now everytime I rebuild I have to read a "your config directory is dirty you filthy pleb" warning message lol
h0m1 has joined #nixos
<beandipper[m]>
I'm waiting to try out flakes until either I have a better grasp on the nix ecosystem, or the nix ecosystem moves so much in that direction that it kind of requires it. I haven't seen many projects using much less require using them yet though. They do look very cool though
<V>
currently I don't have a lot of package repos to manage, so monorepo/pinning via fetchtarball works fine for now
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<samueldr>
what's the most painless way to try "wayland" (for what that name is worth) on NixOS?
<growpotkin>
What I don't understand is how I keep bumping into flakes in GitHub projects. Like how is anybody even learning how to use them? lol
<V>
samueldr: open a terminal, nix run nixpkgs.sway -c sway
<samueldr>
there's word that for a particular computer I own it'd fix "all the problems with tearing"
<V>
s/terminal/vtty/
<samueldr>
yeah, I figured :)
<samueldr>
let's see
sss2 has quit [Client Quit]
<V>
yup. every single person I've installed sway for so far has been rid of the tearing
sss2 has joined #nixos
<samueldr>
though I'm willing to bet it will by making the perfs worse, just like the x11 driver does
<samueldr>
it's a cherry trail device
<V>
dunno
<V>
is this vaguely recent/does it have a GPU
<samueldr>
yeah, intel
<samueldr>
well, in fact it's not really
<V>
(additionally, is the GPU not NVIDIA)
<samueldr>
oops
<samueldr>
well, in fact it's not really about the tearing, but really about the rendering speed, which I think some say that the modesetting driver out of x11, e.g. wayland I guess, would work fine with
<samueldr>
but on x11, since it needs screen rotation, it's not great
Wulfsta has quit [Remote host closed the connection]
<V>
in sway you can just rotate the screen however
<V>
BTW, I often didn't have luck with custom driver configs/extra options/etc for X11. So so often they just didn't do anything
<simpson>
If tearing is the only thing you wish to cure, then there are do-nothing compositors for Xorg. We have both `xcompmgr` and the fork `picom` packaged.
<V>
lmao
<V>
samueldr: look at the i3 user guide
<V>
all the keybinds will be the same, more or less
<samueldr>
in my case options did work
<samueldr>
as in, they did change things
<samueldr>
for the worse :)
<V>
lol
<samueldr>
(for X11)
<V>
I did have one machine where it worked
heyitsrama has quit [Remote host closed the connection]
<samueldr>
the best I had was DRI 2, Tearfree off (because really it's not actually about tearing, but rendering perfs)
<samueldr>
uh, alt+enter does nothing
<samueldr>
I guess a specific terminal must have been configured that's not there in my PATH
<V>
yep
<samueldr>
and I guess dmenu isn't there either
<V>
easily fixable, though
hlolli_ has quit [Ping timeout: 260 seconds]
<V>
not quite the shining experience you get with i3 on Arch, but that's just room for improvement :)
<samueldr>
hehehe, segfaulted it by pkilling it
<V>
welcome to the club
<hexa->
if you like rofi, try wofi
<samueldr>
for now I'm just looking to check if what is told is true
<samueldr>
then I'll explore options
<V>
also, dmenu-wayland instead of plain dmenu
<V>
er... maybe not. looks like that's a custom package that I didn't upstream
<samueldr>
hopefully I won't have to implement a wayland compositor that fakes X11 for an X11 WM to get a pleasant enough experience
<V>
you should be able to just do that with cage + Xwayland already
xcmw has joined #nixos
<samueldr>
hmmm
* samueldr
takes notes
<V>
or cage + Xephyr
<V>
note: I have not attempted this myself
<V>
additionally, cage's semantics will do weird things if you have more than a single window/etc (hence I think Xephyr would be necessary)
<{^_^}>
[nixpkgs] @trepetti opened pull request #105844 → nodePackage.zeal-user-contrib: init at 1.1.0 → https://git.io/JIYwY
dozn has quit [Quit: I'm probably just changing some settings or have had an outage, I'll be back soon.]
<samueldr>
now, how can I *disable* vsync with wayland? :)
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aswanson has quit [Ping timeout: 260 seconds]
xcmw has joined #nixos
aswanson has joined #nixos
ericsagn1 has quit [Ping timeout: 272 seconds]
jonatanb has joined #nixos
<beandipper[m]>
infinisil: looking at zfs 2.0, it seems that the persistent l2arc cache does what I want, but do you know how to get the unstable zfs on a nixos installation ISO?
jonatanb has quit [Ping timeout: 240 seconds]
xcmw has quit [Ping timeout: 260 seconds]
<veleiro>
uh
<veleiro>
all of my nixos generations just disappeared
<veleiro>
nothing worked in the path after a reboot and there was only 1 generation
<veleiro>
when i know that's not true
<veleiro>
i had to install git by nix-env just to do a rebuild on my config
<veleiro>
afaict i only uninstalled home-manager-path from nix-env, because i dont
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.oauthenticator: 0.12.1 -> 0.12.2 »: https://git.io/JIYNS
m1cr0man has joined #nixos
<KarlJoad>
A build I have is failing after I add a dontFixup = true; to it. I've disabled most phases, as I just need Nix to download the unpack the tarball, and that's it. How do I go about that?
jonatanb has quit [Remote host closed the connection]
zupo has joined #nixos
cfricke has joined #nixos
vidbina_ has quit [Ping timeout: 240 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vidbina_ has joined #nixos
seku has quit [Ping timeout: 260 seconds]
sgrunert has joined #nixos
<ldlework>
Tried to nix-env staruml and got:
<ldlework>
error: packages '/nix/store/aay2xv1f1jnw0yp5nbxnw4g8h6cx4nr9-staruml-2.8.1/lib/libstdc++.so.6' and '/nix/store/1cvgdsbdvw420npdm1fag0ahqysibcqm-renoise-3.2.1/lib/libstdc++.so.6' have the same priority 5; use 'nix-env --set-flag priority NUMBER INSTALLED_PKGNAME' to change the priority of one of the conflicting packages (0 being the highest priority)
<ldlework>
how do i actually fix this
saschagrunert has quit [Ping timeout: 272 seconds]
<ldlework>
i uninstalled renoise, and now it conflicts with samba
<ldlework>
wth is goin on
<ldlework>
haha i thought of the value adds of nix was it avoided package collisions like this 🤔
<ldlework>
error: selector 'staruml-2.8.1' matches no derivations
<srk>
pinpox: [669523.927570] Out of memory: Killed process 13382 (nix-channel) total-vm:643736kB, anon-rss:40404kB, file-rss:12kB, shmem-rss:12kB, UID:0 pgtables:200kB oom_score_adj:0 :)
<ldlework>
ah it has to be on the already installed package
<ldlework>
error: collision between '/nix/store/aay2xv1f1jnw0yp5nbxnw4g8h6cx4nr9-staruml-2.8.1/bin/profiles' and non-directory '/nix/store/ffmnpr9s08ap5jdz4aj33rh47b2fjgr9-samba-4.12.5/bin/profiles'
<ldlework>
.......
<ldlework>
i am so confused
FRidh has joined #nixos
<srk>
there's lib.setPrio along with lib.lowPrio / hiPrio
<ldlework>
I guess they both want to create a binary named 'profiles'?
<srk>
seems like it
<ldlework>
Priority wont help there I suppose?
<supersandro2000>
staruml is packaged incorrectly
<ldlework>
samba or fancy native uml designer... 🤔
<supersandro2000>
profiles is a directory there
<ldlework>
lol
<ldlework>
i kinda really want both
<ldlework>
could i write a small wrapper package that calls staruml's binary
<supersandro2000>
then I have the right solution for you: I'll mark it broken and you fix it? Just joking
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
thibm has joined #nixos
rgrau has joined #nixos
<esotericn>
is there a way to determine all of the paths that would be used by a nix build? I want to feed them into an inotify script to trigger a rebuild basically, at the moment I'm doing it manually which is kind of annoying
<esotericn>
e.g. for a trivial derivation with ./src it's just everything in ./src, plus the nix file, plus any relevant imports
<pinpox>
is nixops currently broken? I'm getting an error about insecure packages refusing to be installed
<pinpox>
error: Package ‘python2.7-cryptography-2.9.2’ in /nix/store/hqibgj5npv52mylvw2fhahgjm1rfywvs-nixos-21.03pre255377.11b75530a1f/nixos/pkgs/development/python-modules/cryptography/2.9.nix:60 is marked as insecure, refusing to evaluate.
werner292 has joined #nixos
wfranzini has quit [Quit: wfranzini]
werner291 has quit [Ping timeout: 246 seconds]
werner292 is now known as werner291
<adisbladis>
pinpox: I'm fixing this as we speak
<pinpox>
adisbladis: Oh nice. Any idea how long that might take?
<adisbladis>
Since the implications of it not being merged is that our recommended deployment tool is broken
<infinisil>
yorick: Ah nope
<Reventlov>
when rebuilding my configuration for the first-time, home-manager has not been fetched yet, and I get this error message: "the option home-manager defined in /foo/bar.nix does not exist"
* adisbladis
should put NixOps as a channel blocker
<infinisil>
yorick: lib.mapAttrsRecursive might work
<yorick>
adisbladis: who uses nixops?
<adisbladis>
yorick: A ton of people?
<yorick>
adisbladis: ah, it seems to be much better now
<yorick>
adisbladis: last I looked at it was 1.5 years ago
<patagonicus>
Reventlov: Why do you use "${…}" instead of just (import (builtins.fetchTarball …?
<yorick>
adisbladis: but I got annoyed at having to maintain a fork so the aws deployment worked at all
<patagonicus>
The latter should work since there nix knows that you're referencing something from the nix store and not just some random string (that happens to start with /nix/store).
<yorick>
hr, I get error: attempt to call something which is not a function but a string, at /nix/store/3b0q8ax860diqv5vhz2ps2smhzbaxhqx-nixos-21.03pre255600.24eb3f87fc6/nixos/lib/attrsets.nix:279:20
<{^_^}>
attempt to call something which is not a function but a string, at /var/lib/nixbot/nixpkgs/master/repo/lib/attrsets.nix:279:20
<yorick>
yes
<infinisil>
> x:y
<{^_^}>
"x:y"
<infinisil>
> x: y
<{^_^}>
<LAMBDA>
marsh has quit [Ping timeout: 272 seconds]
<infinisil>
yorick: ^
ericsagnes has quit [Ping timeout: 272 seconds]
<yorick>
:(
werner292 has joined #nixos
werner291 has quit [Ping timeout: 272 seconds]
werner292 is now known as werner291
<yorick>
thanks infinisil
<{^_^}>
[nix] @edolstra merged pull request #4312 → When moving paths out of sandbox, ensure we have write permission → https://git.io/JIYMG
<{^_^}>
[nix] @edolstra pushed 2 commits to 2.3-maintenance: https://git.io/JIOXU
<{^_^}>
[nixpkgs] @peti opened pull request #105867 → Update Haskell package set to Stackage Nightly 2020-12-04 (plus other fixes) → https://git.io/JIOXt
<{^_^}>
[nix] @edolstra pushed 2 commits to 2.3-maintenance: https://git.io/JIOXO
ericsagnes has joined #nixos
<{^_^}>
[nixpkgs] @FRidh merged pull request #104630 → pythonPackages.class-registry: Add typing as propagatedBuildInput when python2 → https://git.io/Jkowz
<{^_^}>
[nixpkgs] @FRidh pushed commit from @seppeljordan to master « pythonPackages.class-registry: Add typing propagatedBuildInput when using python2 »: https://git.io/JIO1g
<supersandro2000>
adisbladis: well... I mean you think but is it actually?
<gios_>
by chance someone could trigger the hydra build for openjdk8? it seems to be broken (verified it so far for the master branch - but my build machine is rather slow)
<FRidh>
gios_: there it says the last build attempt was 6 days ago and successfull
<f00860>
gios_: thanks!
<FRidh>
what branch/channel do you follow?
rurt91 has quit [Remote host closed the connection]
vidbina_ has joined #nixos
<gios_>
FRidh: i built it with today's master
<gios_>
FRidh: accoding to a PR for openjdk11 the old repos were not fully reproducable - which is why they switched the source to a github-repo. openjdk8 on the other hand remained the same
<pinpox>
adisbladis: I did nixos-rebuild switch --upgrade (I'm using unstable) and tried to install nixops but get the same error. Do I have to do anything special to get it to install?
<fuzzypixelz>
how do I add a locally built derivation to my profile?
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 16 commits to staging-next: https://git.io/JIO5s
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 17 commits to staging: https://git.io/JIO5G
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JIO5c
<{^_^}>
[nixpkgs] @SuperSandro2000 merged pull request #105874 → stlink: Correct comment about the use of services.udev.packages → https://git.io/JIOpz
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JI3vN
<{^_^}>
[nix] @regnat opened pull request #4314 → Make `make install` less noisy → https://git.io/JI3LV
davidv7_ has joined #nixos
<thibm>
esotericn: you'll need the list of source files, *.nix files and others, that may change at each evaluation. Obviously, you cannot rely on evaluation's output itself
<supersandro2000>
I did not want to commit this to master
<thibm>
esotericn: if you use `nix-build -vv |& grep -E "^(copied source|evaluating file)"` you get a list (with some noise) of source files :) (I may be missing more cases)
leotaku_ has joined #nixos
<supersandro2000>
does not break eval...
<supersandro2000>
ma27[m]: by mistake I pushed the commit to master which disables the tests for pass-audit on master
<thibm>
esotericn: you could remove files in /nix/store are these will not change (normally) and there are a lot of them.
leotaku has quit [Ping timeout: 272 seconds]
Lordcirth has joined #nixos
<nf>
i'm trying to run a flake-based hydra job, but i get a failed "stdenv.isLinux" assertion at evaluation time
<nf>
any idea why?
<nf>
(on a linux server, of course)
<Lordcirth>
nf, a NixOS server, or another distro?
<{^_^}>
[nixpkgs] @maralorn pushed 0 commits to revert-105813-dconf2nix-v0.0.7: https://git.io/JI34s
<maralorn>
Oh, first I thought it had actually pushed that revert to the haskell-upadets branch …
<maralorn>
Okay, everything fine now. There is nothing to see here. Please go on.
<siraben>
I see `boot.kernelPackages = pkgs.linuxPackages_latest;` but fail to build because a package is unfree, however I have `nixpkgs.config.allowUnfree = true;` already?
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JI3BT
<supersandro2000>
maralorn: doing things on GitHub Web is sometimes really dumb especially if you can push to a certain branch it always pushes to there
<maralorn>
supersandro2000: I didn‘t event intend to do anything. I just wanted to close the tab with the PR but accidentally hit the wrong key kombination in vimium, which select the wrong link.
cizra has quit [Remote host closed the connection]
<siraben>
Can I allow unfree packages in boot?
<duairc>
I'm getting a strange error when I try to rebuild my system, I've never seen anything like it before. I've narrowed it down to a Firefox package. https://0x0.st/i75B.txt Does anybody have any ideas?
<{^_^}>
[nix] @regnat opened pull request #4315 → Properly store the outputs of CA derivations → https://git.io/JI3RB
<adisbladis>
siraben: Are you sure linuxPackages_latest is the culprit?
sbock has joined #nixos
<siraben>
Yes, when I comment out `kernelPackages = pkgs.linuxPackages_latest;` it works
<duairc>
What's stranger is that 1382 of the stdenv/setup file is the last line and blank, so I don't know why that would be causing a permission error
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JI30M
<asdf58>
hi, I'm relatively new to Nix. I'd like to start a PostgreSQL instance when entering a Nix shell and stop it when leaving the shell. I'm thinking about using the `trap` shell command. Is there a better, more idiomatic way in Nix to achieve something like that?
<asdf58>
for the context, it's about setting up a dev environment
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JI3oZ
<asdf58>
adisbladis for overmind, I just skimmed the readme, but how would you assure it stops a process (e.g. PostgreSQL) when someone does `cd ..` i.e. goes out of the Nix environment
Izorkin has joined #nixos
<adisbladis>
asdf58: You don't :)
<asdf58>
:)
<adisbladis>
But at least you have a single entry point to run your services
<adisbladis>
Tbh I'd _hate_ having magic that spins up services when cd'ing around
<asdf58>
yeah yeah I see your point
<{^_^}>
[nixpkgs] @ryneeverett opened pull request #105894 → firefox: Prefix $PATH with xdg_utils → https://git.io/JI3oP
commander has quit [Remote host closed the connection]
<lordcirth__>
You don't want it on cd, have an activate script that starts a shell, then exit the shell to quit
sangoma has quit [Ping timeout: 260 seconds]
<asdf58>
OK, thanks for the suggestions
<asdf58>
I'm trying to establish a good flow, but I feel I'm overengineering a bit here ;) I'll follow your advice here
sleepyMonad has joined #nixos
<lordcirth__>
Actually, if you are going to start and stop services, I would just make a nixos-container and have your activation just be start + root-login.
<asdf58>
I'm not yet familiar with nixos-container, but I'll check it out, thanks for pointing it out
<asdf58>
my case is a bit specific I think, because it's about setting up dev envs mostly on MacOS computers for several programmers
<asdf58>
the idea is to have local tools ready, when starting the work on a specific project e.g. starting a PostgreSQL instance etc
<evanjs>
asdf58: mmmm lorri :P
<asdf58>
Initally I wanted to start postgresql for better shareability across teams + new members
jonatanb has joined #nixos
Izorkin has quit [Ping timeout: 256 seconds]
<asdf58>
ie. to avoid situations like: "you forgot to start PG" etc
<asdf58>
evanjs thanks! I don't know it yet, will check it out :)
<LilleCarl>
Probably not very NixOS specific, but since I'm running NixOS i hope this'll work. Anyone knows of a way to make systemctl isolate rescue automatically continue back to graphical.target? (well or something that does kinda the same thing as systemctl isolate)
<lordcirth__>
Ah, nixos-containers requires a NixOS host
<evanjs>
asdf58: yeah I use it quite heavily :D
<lordcirth__>
asdf58, perhaps NixOS in Vagrant?
<LilleCarl>
It's really nice to do a quick "reboot" without reinitializing hardware, unlocking zfs encryption etc...
<evanjs>
asdf58: it also works on nix-darwin
<asdf58>
lordcirth__ I'll check that, but Vagrant seems a bit heavy, unless it changed recently
<asdf58>
in the long term, I'd like to build a pipeline to deploy in production on NixOS, so your suggestion is helpful anyway
<asdf58>
so many new things to learn I suppose ;)
<lordcirth__>
It is heavy, but it's strong isolation and cross-platform compat. And your devs should not be worried about an extra 1GB of RAM
<lordcirth__>
The vagrant build could just be nixos-rebuild --flake
<asdf58>
ok, sounds interesting
<lordcirth__>
Or nixos-install
lordcirth__ is now known as Lordcirth
jonatanb has quit [Remote host closed the connection]
cosimone has quit [Quit: cosimone]
asdf58 has quit [Remote host closed the connection]
Izorkin has joined #nixos
davidv7_ has quit [Ping timeout: 240 seconds]
kalbasit has joined #nixos
<{^_^}>
[nixpkgs] @djanatyn opened pull request #105895 → snowmachine: init at 1.0.1 → https://git.io/JI3XK
<vifon>
OK, I have taken the new service I was testing (and needed to stop before nixos-rebuild) out of the equation. Just adding a few hundreds MiB to /dev/shm makes nixos-rebuild OOM.
<vifon>
I must admit, that puts a wrench in my plans to migrate to NixOS on my VPS.
<cap_sensitive>
Hi. Suppose I migrate my /etc/nixos/configuration.nix to something flake-based, and I have multiple machines. Given that there's only 1 flake.lock, is it true that all my machines will be forced to use identical versions of `nixpkg`?
<cap_sensitive>
I also kinda like the idea of refuse evaluation if git working dir is not clean
<{^_^}>
[nix] @stephank opened pull request #4316 → Fix compatibility with newer AWS SDKs → https://git.io/JI3pt
<{^_^}>
[nixpkgs] @vbgl pushed commit from @sternenseemann to master « ocamlPackages.mirage*: 3.10.0 -> 3.10.1 »: https://git.io/JIsfA
oida has quit [Quit: byez]
<eyJhb>
Anybody else having really bad WiFi issues? Mine will usually not connect after a sleep untill a reboot, and if I add a new network I need to reboot as well
<Lordcirth>
eyJhb, you probably need to disable wifi powersave. Some cards don't handle it well
<{^_^}>
[nix] @Horki opened pull request #4317 → rust: base32; decode_len, add case for 0 → https://git.io/JIsk8
<Yaniel>
Lordcirth: that actually sounds like a not too terrible idea...
xcmw has joined #nixos
<Lordcirth>
Yaniel, it's basically what the installer does, and it's good for immutable infrastructure. To save RAM, you can also do this: https://grahamc.com/blog/erase-your-darlings
<Yaniel>
assuming you have /home separate already
zupo has joined #nixos
<KarlJoad>
Is `callPackage` not a Nix built-in? I can't seem to figure out where it is.
<KarlJoad>
I just found it. It's in nixpkgs. pkgs = import <nixpkgs> {}; pkgs.callPackage ...
sbock has joined #nixos
<Yaniel>
Lordcirth: thanks for the tip
<Yaniel>
I'm very tempted to try that ~next week when the parts for my new desktop arrive :D
<Lordcirth>
np. I keep meaning to try it myself
lukegb has quit [Quit: ~~lukegb out~~]
LiceoProva has joined #nixos
LiceoProva has left #nixos [#nixos]
lukegb has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage2nix: update list of broken builds to avoid evaluation errors »: https://git.io/JIsIf
<srhb>
KarlJoad: There's actually several callPackages around in nixpkgs. The common theme is that they call packages filling in arguments from their scope.
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JIsIJ
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JIsIq
<veleiro>
glad to have no PATH now.
<srhb>
KarlJoad: So pkgs.callPackage fills in arguments from pkgs, and pkgs.haskellPackages.callPackage fills in arguments from pkgs.haskellPackages, etc.
<shapr>
Is there anything like ghcid for nix build? I want some way to do a fast edit/compile with nix packages.
<KarlJoad>
srhb: Gotcha. I've gotten it working now. I'm trying to build stuff for Octave packages. I might define a new callPackage for that.
<betaboon>
does anyone have a good suggestion how to remove those clipped RF-shields from pcb? (or is this way to offtopic for here? )
<KarlJoad>
srhb: Thanks! Now, just to figure out how to remove these parameters to the callPackage function...
sbock has quit [Ping timeout: 260 seconds]
<KarlJoad>
Right now, I'm calling `callPackage` with one large `inherit` as the parameter. Other programming language's packaging doesn't do this (python). How do I get around having to specify those arguments?
werner292 has joined #nixos
werner291 has quit [Ping timeout: 256 seconds]
werner292 is now known as werner291
<tpw_rules>
the point of callPackage is that it does that automatically?
<tpw_rules>
like if you're using the right one you shouldn't really have to specify any arguments
<srhb>
KarlJoad: Indeed, you're probably not using the callPackage local to your set (was it ocamlPackages? Then ocamlPackages.callPackage)
<tpw_rules>
some packages take options like withFoo = true or false, but certainly not all the packages and parameters
<tpw_rules>
s/parameters/functions/
teto has joined #nixos
vidbina_ has quit [Ping timeout: 246 seconds]
ddellacosta has joined #nixos
noudle has quit []
justanotheruser has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @peti merged pull request #105867 → Update Haskell package set to Stackage Nightly 2020-12-04 (plus other fixes) → https://git.io/JIOXt
<{^_^}>
[nix] @Horki closed pull request #4317 → rust: base32; decode_len, add case for 0 → https://git.io/JIsk8
sbock has joined #nixos
a4wc6n[m] has joined #nixos
plp has joined #nixos
Lordcirth has quit [Ping timeout: 264 seconds]
werner292 has joined #nixos
cosimone has quit [Quit: cosimone]
werner291 has quit [Ping timeout: 272 seconds]
werner292 is now known as werner291
<KarlJoad>
,locate fetchTarball
<{^_^}>
Couldn't find in any packages
<KarlJoad>
Huh... That's a weird one. Does `pkgs.fetchTarball` technically not exist?
<cap_sensitive>
@Lordcirth But that defeat the purpose of being fully reproducible no?
<cap_sensitive>
If `flake.lock` is not commited to the git repo, then for each rebuild it'll get a different `nixpkgs` version
<a4wc6n[m]>
@KarlJoad is it possible that locate won't work on builtins?
<KarlJoad>
a4wc6n[m]: That is very likely why.
<KarlJoad>
a4wc6n[m]: That is exactly why.
Dotz0cat has quit [Ping timeout: 272 seconds]
nf has quit [Quit: Fairfarren.]
<a4wc6n[m]>
@KarlJoad Good to know. I'm a little embarrassed to play around with some of the nixbot commands. :)
nf has joined #nixos
<KarlJoad>
a4wc6n[m]: That's the only one I know, but I don't know any others. `,locate` is very useful to find things I don't want to `grep` around for.
<a4wc6n[m]>
Does anybody have an example (other than nixpkgs) of multiple packages in a single flake/repo?
<a4wc6n[m]>
I'm working on a side-quest for my employer to create like a nixpkg like channel full of internal tooling. It looks like I should investigate flakes.
<{^_^}>
[nixpkgs] @vbgl pushed commit from @sternenseemann to master « ocamlPackages.tls: 0.12.6 -> 0.12.7 »: https://git.io/JIsnI
<gios_>
a4wc6n[m]: i'm running flakes on my dev machine for a couple of months now, i do like them, however i wouldn't introduce them to coworkers at this point in time
<a4wc6n[m]>
@gio
<a4wc6n[m]>
Sorry, keep missing a key lol
<gios_>
a4wc6n[m]: to use flakes you'll use nixUnstable, and well, it's unstable :/
<a4wc6n[m]>
gios_: Yeah, for a lot of folks this would be their first exposure to nix. Sounds like channels would be better for now.
<a4wc6n[m]>
gios_: Thanks for the advice :)
cosimone has joined #nixos
cosimone has quit [Client Quit]
<gios_>
a4wc6n[m]: yw, if you are still tempted, here is what currently happens if i rebuild my system http://paste.debian.net/1175650/
<gios_>
:P
<jtojnar>
for dev environments you can also just use fetchurl (or niv if you want to automate it)
erasmas has quit [Quit: leaving]
<jtojnar>
channels are global state so it is PITA
<Lordcirth>
gios_, why is it looking in /nix/store?
sbock has quit [Quit: WeeChat 2.9]
pjt_tmp has joined #nixos
cosimone has joined #nixos
alp has quit [Ping timeout: 272 seconds]
tejing has joined #nixos
<a4wc6n[m]>
gios_: Huh, so you don't have to pass the --flake to nix-rebuild?
tejing has left #nixos [#nixos]
tejing has joined #nixos
tejing has left #nixos [#nixos]
<gios_>
lordcirth: i'm not sure, there are multiple things wrong right now, taking it one by one....
<a4wc6n[m]>
gios_: Oh, I guess the docs say that it's just for specifying different flakes. It's kinda interesting that it looks like it's just trying to find your config in $PWD.
alp has joined #nixos
<gios_>
a4wc6n[m]: i think it was required initially, but it isn't anymore. finding the flake in $PWD kinda makes sense - considering that the same applys for default.nix
nf has quit [Quit: Fairfarren.]
<Lordcirth>
If /etc/nixos/configuration.nix exists, it will use that. So I symlinked it
<Lordcirth>
er, /flake.nix
nf has joined #nixos
<gios_>
lordcirth: looks like it looked at the wrong path because i accidentally disabled the flake feature
<gios_>
lordcirth: are you sure? i still do have the configuration.nix (legacy) and flake.nix in the same folder - and nix uses the flake
neiluj has quit [Quit: leaving]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Lordcirth>
gios_, that's what I meant. I auto-typed configuration.nix. I have flake.nix symlinked, and it is used.
<gios_>
oh, my bad
sgrunert has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @raboof opened pull request #105924 → jabba: easy access to various JDK versions → https://git.io/JIsW9
rprije has joined #nixos
werner292 has joined #nixos
werner291 has quit [Ping timeout: 272 seconds]
werner292 is now known as werner291
civodul has quit [Quit: ERC (IRC client for Emacs 27.1)]
<rprije>
Is there a command line option to disable using the binary cache with nix-build? I suspect there's an unsigned path in my configured cache which is breaking my build and I want to try building it without the cache.
<Cadey>
/nix/store/fr5myy31s195b9448vm356x07isr8wnf-discord-0.0.13/bin/Discord: error while loading shared libraries: libgbm.so.1: cannot open shared object file: No such file or directory
<Cadey>
what package contains libgbm?
<gchristensen>
,locate libgbm.so.1
<gchristensen>
,locate libgbm.so
<{^_^}>
Found in packages: libGL_driver, driversi686Linux.mesa
<{^_^}>
Found in packages: libGL_driver, driversi686Linux.mesa
<Cadey>
i added that dependency and it's not working still
<gios_>
rprije: --option substitute false
tejing[m] has joined #nixos
eoli3n has quit [Remote host closed the connection]
fendor_ has quit [Remote host closed the connection]