<tenten8401_>
Is there a proper way to declaratively define a raid array that the server should be installed on?
<tenten8401_>
I think making it with mdadm is required unless you're deploying to a cloud service that NixOps supports
thc202 has quit [Ping timeout: 268 seconds]
elasticdog has quit [Ping timeout: 260 seconds]
elasticdog has joined #nixos
newhoggy has quit [Remote host closed the connection]
kp__ has quit [Ping timeout: 256 seconds]
<infinisil>
Myrl-saki: Um, what's not good with runCommand?
bennofs1 has quit [Quit: WeeChat 2.0]
<Guanin>
Okay, my libGL problem persists even with a new user and after switching from xmonad to gnome3, so I guess I can rule out any problems that might be caused from ~ and the window manager. Even worse, nextcloud crashes always (with xmonad, it only crashed once and worked afterwards)
<`_>
infinisil: you got any idea? I am at a loss, the pkgs are pinned, both computers have the same versin of nixops
<aszlig>
infinisil: lots of movie os going on :-D
<infinisil>
aszlig: Fancy
<infinisil>
`_: "It doesn't work" isn't very helpful
<infinisil>
What doesn't work?
<infinisil>
Error?
<`_>
Sec
<`_>
So its a nixops deployment. The second file paseed to nixops create specifiys a machine on digital ocean. The config in that file is generated by nixos on that machine, and copy pasted to make the deployment work. This deploys just fine on one computer but the other computer inexpclicably rejects the whole thing claiming the eth0.ipv4 option does not exist.
<`_>
I am failing to find any reason why it would fail to build the machine because it has to have ipv4
<`_>
Actually this deployment works on 2 other machines
<alexteves_>
is there a way to launch a gui application via cron? cron seems to run commands just fine by using https://nixos.wiki/wiki/Cron, so I'm not sure if my problem is nixos-specific
<infinisil>
`_: What's that base.nix thing?
<`_>
We have multiple machines, base.nix defines the base configuration for them.
<infinisil>
I'm not really sure if that could be the reason, but the option values need to get merged properly with mkMerge or imports
<aszlig>
`_: might be a good idea to use imports = [ ./base.nix ]; or something like that
<aszlig>
`_: what's the traceback you're getting?
<infinisil>
Yeah, would also use imports
<`_>
what do you mean traceback?
<infinisil>
Oh yeah you still didn't post the error hah
<`_>
error: The option `networking.interfaces.eth0.ipv4' defined in `/home/xxx/dev/hs/kassir/infrastructure/src/web-digital-ocean.nix' does not exist
<infinisil>
Can you gist how base.nix looks like as well?
<alexteves_>
turns out it wasn't nixos-specific at all, I just needed to add `DISPLAY=:0;` before,
<infinisil>
`_: I think using imports might solve the problem
<aszlig>
this looks a lot like configuration didn't get merged properly
<infinisil>
Yeah
<`_>
infinisil: how is the nix evaluator not being deterministic?
<`_>
because the exact same code, builds and deploys on 2 other machines
<`_>
did the set merge system undergo changes?
<infinisil>
Nix is deterministic, you have done something wrong somewhere
<infinisil>
And I can't know what you did wrong with too little information
<aszlig>
`_: well, if you have the exact same config, have a look at the differences of the physical spec of nixops
<`_>
I am saying, I have the code checked out on two computers
<aszlig>
`_: nixops show-physical
<`_>
both computers are nixos
<`_>
and one it builds and the other it doesn't
<aszlig>
`_: it might be that the DO backend defines a networking interface
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
<`_>
aszlig: its not the DO backend
<`_>
its the nixos backend
<`_>
as in nixops deploying to nixops
<`_>
eck
<`_>
as in nixops deploying to nixos
<infinisil>
`_: Okay the problem isn't the merging, probably
<aszlig>
`_: you mean the "none" backend?
<aszlig>
`_: for both?
<`_>
none
<infinisil>
`_: Somewhere there will be a difference between the machines, Nix doesn't just decide to not work on one of them
<infinisil>
Maybe add some -v's and compare the output on the 2 machines
<`_>
good idea
<`_>
it's saying -v doesn't exist as an argument
<`_>
flag*
<aszlig>
`_: as said, please compare the physical spec of the two machines
<infinisil>
Oh that's nixops, right..
<joepie91>
`_: have you verified that you're running the latest NixOS on *both* of them?
<joepie91>
the networking options changed in either 17.09 or 18.03, I forgot
<`_>
go for it
<`_>
we haven't
<`_>
we should
<`_>
sec
<infinisil>
02:51:17 <`_> pinned nix packages
<aszlig>
joepie91: in 17.03 for the ipv4 attribute
<joepie91>
was it 17.03 where it changed? oof, time flies
<infinisil>
I think that was the first NixOS I installed :O
<aszlig>
joepie91: well, it could be even before than
<`_>
I do believe that's the case
<joepie91>
I started on... 16.09....?
<joepie91>
I think?
<`_>
I think we're on different versions
<aszlig>
joepie91: but in 17.09 it changed again, but not in an incompatible way... in 17.03 (IIRC) the ipv4/ipv6 attributes got introduced
<joepie91>
aszlig: at some point a changed was introduced where you could now specify multiple address assignments instead of one
<joepie91>
I believe
<joepie91>
change*
<joepie91>
I had to change that format for one of my servers
<infinisil>
joepie91: Wait what's your GH handle?
<joepie91>
infinisil: joepie91, why?
<infinisil>
Just wanted to check nixpkgs for your first commit :P
<joepie91>
lol
<joepie91>
I don't have many nixpkgs commits, if any at all
<joepie91>
just some PR(s?) that I need to redo
<joepie91>
on the miles-long todo liost
<joepie91>
list*
<infinisil>
Ah I see
<aszlig>
joepie91: it was 2014 what i meant, but back then ip4/ip6 were introduced
<aszlig>
joepie91: so ipv4/ipv6 got introduced in december 2017
<`_>
ok, the vm being deployed to is 18.03
<joepie91>
right
<aszlig>
so in a way it's only available in 18.03
<aszlig>
s/\<a way/in this case/
<aszlig>
s/in in/in/ ;-)
<joepie91>
aszlig: error at line 3: stack overflow
<aszlig>
`_: okay, so one is a vm and the other one is a physical machine?
<joepie91>
:P
<`_>
ok
<`_>
so one machine is 17.09, and the other is 18.03
<`_>
that is a legit difference between the machines
<`_>
going to try upgrading the 17.09
<aszlig>
`_: yep, especially because in 17.09 there is no ipv4 option
<`_>
will update
<infinisil>
Watching a git bisect run is so satisfying..
<`_>
I want to understand why this is the case, so I can recognize other errors in this class in the future
<`_>
also infinisil: yes git bisect run is _super_ satisfying
<joepie91>
`_: it's basically just that the config format changed between 17.09 and 18.03, and so while the option was valid in one version, it wasn't valid in the other
<`_>
why does the underlying version of nixos impact the success evaluating this expression???
<joepie91>
generally, whenever one thing works somewhere but not elsewhere, it's because the systems are on a different channel
<`_>
ok
<joepie91>
`_: the config option you're setting for the network is defined in nixpkgs, and the nixpkgs channel/release you're using determines your nixos version
<`_>
so, the picture of what needs to be consistent to guarentee success:
<`_>
- The nixos version of the command runner
<`_>
- The nixpks version
<joepie91>
(those two are tied together)
<`_>
nixpkgs*
<`_>
I pin to a commit hash
<`_>
not a channel
<`_>
so from the perspective of project, there are more variables
<joepie91>
`_: for this kind of 'option doesn't exist' error, nixops version should not matter for anything that lives within the machine definition
<joepie91>
just the nixpkgs/nixos being used for that system
<joepie91>
(and possibly hardware in some cases)
<joepie91>
nixops version should only affect nixops-specific settings, like provider backend, the options available for them, and so on
<joepie91>
either way, if something produces magically different results on two systems then 9 out of 10 times it's going to be a matter of "machine follows a different release/commit"
init_6 has joined #nixos
`_ has quit [Ping timeout: 264 seconds]
andymandias has quit [Ping timeout: 264 seconds]
andymandias has joined #nixos
silver_ has quit [Read error: Connection reset by peer]
<pikajude>
what's the command to copy a certain path from a certain host
<tenten8401_>
Just figured I'd ask before I try, are you able to run Docker inside of NixOS containers?
<tenten8401_>
and what technology are they based on?
<tenten8401_>
scratch that last question, it's based on systemd-nspawn
tzemanovic has joined #nixos
alexteves_ has quit [Remote host closed the connection]
newhoggy has joined #nixos
Mateon3 has joined #nixos
newhoggy has quit [Ping timeout: 240 seconds]
tzemanovic has quit [Ping timeout: 256 seconds]
Mateon1 has quit [Ping timeout: 245 seconds]
Mateon3 is now known as Mateon1
blankhart has quit [Ping timeout: 268 seconds]
blankhart has joined #nixos
alex`` has quit [Ping timeout: 268 seconds]
rschm has quit [Remote host closed the connection]
rschm has joined #nixos
<{^_^}>
[nixpkgs] @uri-canva opened pull request #42832 → bazel: fix darwin build on hydra → https://git.io/fwlk8
mkoenig has quit [Remote host closed the connection]
hxrts has joined #nixos
mkoenig has joined #nixos
realrokka has quit [Read error: Connection reset by peer]
realrokka has joined #nixos
tenten8401_ has quit [Ping timeout: 245 seconds]
tenten8401_ has joined #nixos
stepcut has joined #nixos
iyzsong has joined #nixos
tenten8401_ has quit [Ping timeout: 268 seconds]
lassulus_ has joined #nixos
coot has joined #nixos
<init_6>
is there some deriviatives for vmware-player?
coot has quit [Client Quit]
lassulus has quit [Ping timeout: 240 seconds]
lassulus_ is now known as lassulus
tenten8401_ has joined #nixos
ryantrinkle has quit [Remote host closed the connection]
tenten8401_ has quit [Ping timeout: 264 seconds]
drakonis_ has joined #nixos
stepcut_ has joined #nixos
<infinisil>
Heh, there's the nicely named option power.ups :P
tenten8401_ has joined #nixos
tenten8401_ has quit [Client Quit]
stepcut has quit [Ping timeout: 248 seconds]
07IADBG9K has joined #nixos
07EABLV63 has joined #nixos
iyzsong has quit [Read error: Connection reset by peer]
sbdchd has quit [Remote host closed the connection]
drakonis_ has quit [Quit: Leaving]
Drakonis has joined #nixos
tenten8401_ has joined #nixos
tenten8401_ has quit [Ping timeout: 240 seconds]
spear2 has quit [Remote host closed the connection]
bluesfreak72 has joined #nixos
Ross has quit [Ping timeout: 260 seconds]
nallar has joined #nixos
nallar is now known as Ross
<bluesfreak72>
Hi there. I'm trying to change my default WM/DE to awesome wm. I installed the package and copied / pasted changes to /etc/nixos/configuration.nix Here is a pastebin of the error and my configuration.nix file: https://hastebin.com/idahiyuqej.bash
<clever>
bluesfreak72: line 8 and 87 are both starting a set, thats not valid
andymandias has quit [Ping timeout: 260 seconds]
<clever>
bluesfreak72: and why do you have an entire options&config block on lines 80-138??
<bluesfreak72>
clever: I'm very green on Nix. I'll take a look.
<clever>
bluesfreak72: id say delete the entire 78-138 chunk, it doesnt belong in configuration.nix
<clever>
if you want to enable awesome, just do services.xserver.windowManager.awesome = true;
<clever>
if services.openssh.openFirewall is true (the default) then it allows services.openssh.ports thru the firewall automatically
<bluesfreak72>
clever: I guess I'm thinking too deeply into it. If I change the port in sshd_config will it automatically open 60022?
<infinisil>
bluesfreak72: There ain't no sshd_config you can safely edit on NixOS, use the `services.openssh.*` options
<infinisil>
Specifically services.openssh.ports to specify the port it should use
<clever>
bluesfreak72: nixos will ignore the /etc/ssh/sshd_config file and only use the port defined in configuration.nix
<bluesfreak72>
Ok. That time I didn't get an error, so I'm going to try logging out and back in...
<bluesfreak72>
I'll be back in here shortly...
bluesfreak72 has quit [Quit: Leaving]
* infinisil
is confused why he logs out
Drakonis has quit [Remote host closed the connection]
bluesfreak72 has joined #nixos
<bluesfreak72>
clever: I'm now in awesome!!! Thanks for the help. I just noticed the time. I need to hop off here for the night. I'm sure I'll be back in here soon.
<clever>
its 1:40 am here :P
<bluesfreak72>
I'm an hour behind you. Suburb of Toledo, Ohio.
<bluesfreak72>
clever: I really appreciate the nix-fu. I'm out.
<clever>
laters
bluesfreak72 has quit [Client Quit]
07EABLV63 has quit [Remote host closed the connection]
07IADBG9K has quit [Remote host closed the connection]
tadni has joined #nixos
tadni_ has joined #nixos
tadni- has joined #nixos
tadni_ has quit [Quit: Leaving]
tadni- has quit [Client Quit]
tadni has quit [Remote host closed the connection]
robstr has joined #nixos
tadni has joined #nixos
tadni_ has joined #nixos
tadni_ has quit [Remote host closed the connection]
tadni has quit [Remote host closed the connection]
alex`` has joined #nixos
tadni has joined #nixos
iyzsong has joined #nixos
Drakonis has joined #nixos
Guanin has quit [Ping timeout: 276 seconds]
Guanin has joined #nixos
tadni has quit [Ping timeout: 245 seconds]
tadni has joined #nixos
freeman42x[nix] has quit [Ping timeout: 256 seconds]
freeman42x]NixOS has quit [Ping timeout: 248 seconds]
alex``` has joined #nixos
alex`` has quit [Ping timeout: 264 seconds]
aarvar has quit [Ping timeout: 268 seconds]
<init_6>
12:37 PM here
Drakonis has quit [Read error: Connection reset by peer]
endformationage has quit [Quit: WeeChat 1.9.1]
graphene has quit [Remote host closed the connection]
tadni has quit [Remote host closed the connection]
blankhart has quit [Ping timeout: 245 seconds]
tadni has joined #nixos
tadni_ has joined #nixos
tadni has quit [Remote host closed the connection]
juhe has joined #nixos
b has quit [Ping timeout: 260 seconds]
blu3r4d0n has quit [Changing host]
blu3r4d0n has joined #nixos
<juhe>
Hi any idea how to get file system specified in configuration.nix' fileSystems configuration option up after network is up and put it down before network is stopped? It's inconvenient especially during shutdown to wait for unmount fail due to inaccesible network (which was put down before).
<gonz_>
Is there a convenient way to build a nixos image from a box that only has `nix` and not `NixOS` yet? I'd like to just build the image with everything I know I want and then install it and sort out the details when I'm already up and running.
buckley310_ has joined #nixos
buckley310 has quit [Quit: Bye]
<srhb>
gonz_: I believe the usual approach is to use one of the kexec-based installers
<Turion>
I have a nixos machine running, and I want to install basically the same config on a 10 years old mac book. Anything I should know? In particular, do I need to understand what UEFI is? (Because I'm not sure I do)
<Havvy>
UEFI shouldn't be a thing on a 10 years old mac book.
<srhb>
Havvy: Are you sure about that? I think I remember my very, very old white macbook using UEFI?
<srhb>
Or maybe the 'U' is what is wrong?
<Turion>
Either way, it's not the good ol' BIOS?
<gonz_>
srhb: Thanks, I'll take a look at this.
<srhb>
Turion: I tend to avoid old MBR style booting if I can at all. Not sure whether you can in this case, but I'd certainly try..
<srhb>
Then again, I don't consider the old way "good" :D
buckley310 has quit [Quit: Bye]
<Turion>
srhb
<Turion>
srhb: Happy to give up the old ways, as long as I know how to get the machine running ;)
<srhb>
Turion: (Un)fortunately my mac days are long gone, but I think I used some boot manager called rEFIt (now rEFInd?) back in the day to eventually load the efi boot of my linux. Which I think was Arch at the time...
buckley310 has joined #nixos
<sphalerite>
I've got an old macbook pro booting nixos just through GRUB
<srhb>
Neat.
<sphalerite>
Turion: I'd recommend using EFI, since apple's BIOS emulation performs various kinds of weirdness
<sphalerite>
not sure which ones apply in your case, but yeah
<sphalerite>
Do you know the model number?
<sphalerite>
Should be something like MacBookx,y
rschm has quit []
<juhe>
\o/, Is there an alternative to nixos-container, that would run different OS in container? Or should I use low level systemd-nspawn to handle that?
<Turion>
sphalerite: Below the display it says MacBook pro...
<Turion>
srhb: The manual says I should use systemd boot for UEFI, but EFI is different then?
<srhb>
Turion: No, that should be the right and only NixOS adjustment you need to make iirc :)
andymandias has quit [Ping timeout: 264 seconds]
<sphalerite>
Turion: is OSX running on it? You should be able to get the model number like MacbookPro2,3 or something from the "About this Mac" thing
<Turion>
Where would I find the model number?
<sphalerite>
or if you've got some linux on it run dmidecode and grep it for MacBookPro
<srhb>
Turion: fwiw I use that for all the machines I have except for one where I uses grubs mirroring capability.
<Turion>
sphalerite: Ah, I don't know. Never actually turned it on. (A friend gave it to me, doesn't need it anymore)
<srhb>
(well, NixOS' grub mirroring facility)
<Turion>
Let me se
<Turion>
srhb: You use what? systemd boot?
<sphalerite>
you can use systemd-boot or grub on EFI systems, whatever you prefer
<sphalerite>
I generally use systemd-boot unless I need one of GRUB's features (which I usually don't)
<Turion>
sphalerite: I want the one that is most failsafe to set up :P
wchresta has joined #nixos
<sphalerite>
🤔 not sure which one that would be. systemd-boot is probably easiest though.
<srhb>
Turion: Yeah, I use systemd-boot primarily.
andymandias has joined #nixos
<srhb>
I think it has the least need for knob-turning, and also the least support for it.
<Turion>
sphalerite: It's a MacBook Pro 5,5
<Turion>
I'll try that then
<srhb>
Turion: Remember lots of swap space then... :-)
<Turion>
srhb: :/ Oh well... I was hoping to get a more performant machine than my similarly old HP, but that one also has just 2 GB
<srhb>
Turion: It will probably be fine, I'm only mentioning it because Nix 2.x currently has some bugs that makes it really hard to run on very low memory systems.
<srhb>
Turion: Once things are installed, it's probably fine :)
<Turion>
Then I wonder how I'll actually get the files on there. I already have my whole system on this machine. Can I just copy the store so it needs to download very little?
<sphalerite>
yes
<Turion>
srhb: Running on this HP is already a pain sometimes. When I upgrade my system, I need to switch of firefox, chromium, thunderbird and other big apps
<sphalerite>
for a start boot the installer system
<srhb>
Turion: More swap for installing and you'll be fine :)
<srhb>
Turion: Should be fixed in 2.1/2.5 anyway iirc.
<srhb>
Hope it's out soon.
<Turion>
Oh that's great to hear
<srhb>
Er.. 2.1 / 2.0.5
orivej has joined #nixos
<srhb>
Reducing the number of jobs allowed can also help. (I just oomed the nix daemon on a 16 GiB RAM system...)
<Turion>
But can't I pry open the Mac, take the disk and connect it to my machine via USB and install from my system?
<sphalerite>
no, you need to change some firmware settings to make it do the GRUB stuff
<sphalerite>
s/GRUB/systemd-boot/
<sphalerite>
is copying over the LAN not a desirable option?
<Turion>
sphalerite: What firmware settings?
knupfer has joined #nixos
<sphalerite>
boot order
<Turion>
I don't have a LAN. I have a WLAN, if that helps
<sphalerite>
using efibootmgr or similar
<sphalerite>
that's a type of LAN ;)
<sphalerite>
may well still be faster than the internet, depending on your connection
<sphalerite>
but yeah I'd still recommend using the regular installer system, if you don't want to burn a CD or put it on a USB stick maybe you can netboot it
<Turion>
I must admit I have no idea how to copy files over a WLAN
<sphalerite>
we can worry about that once you've actually got the installer system running :)
<Turion>
sphalerite ok ;) I'll report back
<Turion>
(Still leaves a glaring question mark on my face: What's efibootmgr and how do I use it. Gotta do some reading on that now)
<srhb>
Turion: Learning how efi booting works is probably a worthwhile investment anyway. :)
<Turion>
I guess so
<sphalerite>
you shouldn't actually need to touch it yourself though, nixos handles it if you set boot.efi.canTouchEfiVariables = true; :)
<Turion>
Why can't I change the boot order when I start the machine? Does EFI/UEFI not have some kind of console before boot?
<Turion>
sphalerite: Ah, so I just set that true when I write my initial config, then I create my first generation, then I can remove that config line again?
<sphalerite>
yes
<Turion>
Great
<sphalerite>
or you can just leave it there, it shouldn't break anything either
<srhb>
Turion: iirc efibootmgr actually installs a small program into the firmware of the machine which in turn hands over to a boot loader(?) on your disk.
<srhb>
this is the point where I realize I have forgotten most of the efi essentials... :-)
<sphalerite>
srhb: it tells the firmware where to find the next stage boot loader, no actual program involved
<Turion>
srhb: Oh wow. Does sound a bit hacky, to admit.
<sphalerite>
srhb: you can view the paths by running efibootmgr -v
<Turion>
Ah ok
<srhb>
sphalerite: Thanks :)
<sphalerite>
Turion: important thing on macs: don't delete the existing EFI System Partition when installing, make sure to reuse it
<sphalerite>
i.e. mount it on /boot
<sphalerite>
it contains some files that are important to the boot, though I can't remember or may never have known how
<Turion>
sphalerite: Ah ok, otherwise it won't even boot into the initial system and I'm locked out?
<sphalerite>
I'm not 100% sure what the consequences are, just that they're undesirable :p
phdoerfler has joined #nixos
<Turion>
Now here's a thing that nearly made me give up on NixOS: When I installed it on this machine, systemd wouldn't give me a terminal before it could set up networking on its own. But how on earth can it get to the internet if I'm not allowed to enter my Wifi password, let alone specify my nonfree wifi firmware?
<srhb>
Turion: Uuuh, that sounds broken for sure. You should get a terminal which you then use to setup the network.
<sphalerite>
yeah that shouldn't happen
<Turion>
srhb, sphalerite: Yeah, the problem was a bit intricate
<Turion>
If I waited for the terminal to appear, I couldn.t connect to the network because it had already done all the hardware checks and deemed my network card dead (because no cable was plugged in)
<srhb>
That does not sound like normal behaviour.
<Turion>
If I plugged in the cable during boot, it would recognise the card, but not find network (because... gosh I don't remember... MAC filter??)
<srhb>
You should absolutely be able to set up networking after the fact without a cable plugged in..
<Turion>
srhb: Yes, that was strange, maybe old hardware misbehaving, no idea
<srhb>
Indeed. Doubt you'll experience the same thing on the macbook. :)
<srhb>
Probably other fun stuff though!
<Turion>
Anyways it was a mess. I just hope the nixos installer knows how to make the Mac's wifi run and everything will go moderately smoothly I guess!
<Turion>
Yaay ;) as long as it's fun stuff I can resolve by learning something, that's great!
<srhb>
I am dreading buying a new laptop and seeing what quirks I'll have to deal with. Fortunately I suffer from laptop paralysis, so that'll probably be a few years yet.
<sphalerite>
srhb: ♥ laptop paralysis
<srhb>
sphalerite: It's horrible, but cheap... :P
<sphalerite>
srhb: I think I managed to worsen mine by getting a new laptop last year. In retrospect I think I spent far more money than I really needed to
<sphalerite>
because I can do most of the stuff I actually use my big laptop for on the chromebook, which was 10× cheaper
<sphalerite>
s/worsen/increase/
<sphalerite>
it's not necessarily a bad thing, eh?
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sphalerite>
Although I do rather like the 4K monitor
<srhb>
sphalerite: Aw.. Yes. I have the same thing, I think. I can't decide on cheap laptop and get a real PC and just stream games and stuff to my laptop, or expensive laptop that'll probably be way overpowered for most things....
<srhb>
I hate 4K, can't get anything to look right. I'll probably get one for color/brightness and scale down to 1080p :P
<sphalerite>
the one thing the chromebook is lacking in is storage
<sphalerite>
s/lacking/most lacking/
<srhb>
I've gotten used to living on 180G, I think that should be easily achievable.
<sphalerite>
2GB RAM can be a bit bottlenecky as well
asymmetric has joined #nixos
<srhb>
O_o THAT I couldn't live with
<sphalerite>
Ah but my chromebook only has 16GB of storaage built in. I use a 32GB micro-SD card for everything though
<srhb>
ouch.. OK. Definitely not for me :P
<sphalerite>
it's certainly not usable as a sole primary driver
<sphalerite>
But it can do a lot of what I need my computers for
<sphalerite>
Oh and I still haven't got a graphical browser running on it. But that's also a minor detail, right? 😉
<srhb>
Totes. Who care about the 21st century anyway
<sphalerite>
dillo runs just fine on it
hamishmack has joined #nixos
<srhb>
ooo unstable got bumped. Reboot time.
<sphalerite>
still I love it. Amazing battery life and stuff. And it was so cheap that I'm a lot less worried about taking it with me. And it's small and light so it's also *easier* to take with me.
<sphalerite>
plus it has an ARM processor. And can run without any nonfree software (including firmware).
<srhb>
sphalerite: That *is* cool.
<sphalerite>
no graphics acceleration either *yet*, but there's a project to remedy that which seems to be coming along nicely.
<sphalerite>
supposedly you can get that working with ARM's nonfree driver crap but I don't want to fight that beast
<juhe>
I put nixos on couple of lars chromebooks, runs well, though 32GiB is really a limitation w.r.t. NixOS. It's important to garbage collect rather often.
<sphalerite>
but that's an intel one isn't it?
<juhe>
yes
<juhe>
relatively powerful, with core i3 I think.
<sphalerite>
but my freedom :p
<srhb>
can pls has hexacore freedom laptop. thx.
<juhe>
hm, I wanted to look at ryzen laptop a dell one with 13" display - not available in europe though :-/
<Turion>
The mac didn't like my boot stick so far... I'm creating a new one
john2 has quit [Ping timeout: 260 seconds]
thc202 has joined #nixos
wchresta has quit [Ping timeout: 240 seconds]
<Turion>
It would be cool if there was something like nixos code review where people show their configs and other people comment on how they can beautify it/fix bugs etc.
<sphalerite>
srhb: asus chromebook flip c101pa has 6 cores and will probably eventually be quite freedom-compatible
<sphalerite>
srhb: the main missing piece is graphics acceleration AFAIK
<sphalerite>
and wifi firmware but that's what USB dongles are for right?
<sphalerite>
Turion: how did you create it?
<sphalerite>
you need to write the image straight to the block device for EFI boot
<sphalerite>
I usually use dd if=nixos-….iso of=/dev/sdX bs=1M status=progress oflag=direct
phdoerfler has quit [Quit: Leaving.]
rihards has joined #nixos
<Turion>
sphalerite: I don't recall, it's over a year ago. For that reason I'm making a new one with "cp blabla.iso /dev/sdb"
<sphalerite>
also good :)
<sphalerite>
and to make it boot you need to hold left alt while turning it on I htink
<Turion>
Yes, it doesn't detect the usb stick as anything it can boot from
<Turion>
It does offer "Network Startup" whatever that'll mean
<Turion>
Yep, with the new iso on USB it still only offers the main disk when I hold left alt on startup
<Turion>
Also, it says that it can't read the disk when I boot into MacOS
<Turion>
Should I... burn a CD??!? It feels... wrong, but I think I might be able to do that.
<sphalerit>
Weird that it doesn't want to boot from it either though
<sphalerit>
Same if you hold alt while powering on, and only plug it in after?
knupfer has quit [Ping timeout: 265 seconds]
<srhb>
wait, does cp foo.iso /dev/bar really do the right thing
<srhb>
TIL.
Turion has joined #nixos
<Dezgeg>
reportedly not in all variants of 'cp'
<sphalerit>
srhb: yep.
<sphalerit>
Oh?
<srhb>
I suppose it should make sense that dd and cp are essentially the same thing if you don't pass any of the more elaborate parameters to dd
<{^_^}>
[nixpkgs] @Mic92 pushed to master « iwd: set statedir to /var/lib/iwd »: https://git.io/fwlGM
<sphalerit>
But coreutils doed
<srhb>
Never thought about it.
<Turion>
What do I need to do in order to have the correct permissions to write cds? k3b claims that cdrecord should have different permissions than it has
<cocreature>
is there an easy way to modify an existing derivation to add arguments and environment variables while still getting all the desktop files and similar stuff?
<cocreature>
e.g. I want to run thunderbird with some environment variable set
<cocreature>
I can make a new derivation and use makeWrapper but then I don’t have the desktop file and whatever other files thunderbird expects to be installed
coot has quit [Quit: coot]
<srhb>
cocreature: Cheap hacks I can think of are things like overriding postInstall
<srhb>
cocreature: (To provide the wrapper)
<srhb>
cocreature: Cheaper yet, symlinking the contents of the unwrapped derivation in place.
<srhb>
cocreature: Or maybe using something like buildEnv to combine a wrapper with the original.
<tilpner>
^ symlinkJoin
<Turion>
Installing a new system is always when the funniest stuff happens. Episode 23: I started wpa_cli just for fun and now it hangs trying to connect to wpa_supplicant. I can't kill it because apparently Ctrl + Alt + F2 etc. doesn't give you a different terminal on a MacBook keyboard
<Turion>
Ctrl + Z works though! Glorious times!
<cocreature>
srhb: I was trying to avoid overriding postInstall since that’s a) somewhat fragile for packages that have a complex postInstall and b) forces me to build the package from source
<cocreature>
tilpner: perfect, thanks!
<Turion>
sphalerit: You said I definitely have to keep the disk structure of the MacBook?
<Turion>
I have an "EFI System" on sda1 which is 200M big and an "Apple HFS" on sda2
coot has joined #nixos
<sphalerite>
urien1[m]: you can throw out Apple HFS if you don't need OSX on it. EFI System is whaty ou need to keep
<sphalerite>
oops wrong highlight
<sphalerite>
Turion: ^
<sphalerite>
Turion: for the ctrl-alt-f2 thing, try ctrl-alt-fn-f2
<sphalerite>
also, make sure to actually kill wpa_cli after stopping it
<Turion>
Ah! Thanks
<Turion>
So I'd mount sda1 as /mnt/boot and sda2 as /mnt, although the latter reformatted as ext4 or whatever
<sphalerite>
And you can toggle how the f-keys work using the fnmode parameter for the apple-hid kernel module
<Turion>
Ok
<sphalerite>
yes that should work
<Turion>
Apparently I need b43 firmware for the wireless to work -.-
<sphalerite>
I've heard people recommend keeping OSX around for firmware updates and stuff but I'm not sure any of those will still be happening for a 10-year-old machine
<sphalerite>
oh no, the horrors of the BCM4331
<Turion>
Yes indeed :/
<Turion>
Do I have to make a custom installer?
<sphalerite>
I'm pretty sure I've had nightmares about that chip.
<sphalerite>
networking.enableB43Firmware should make it work though
<sphalerite>
do you not have any way to connect through an ethernet cable?
<Turion>
Yes, but it needs internet in order to download it
<Turion>
I don't even have an ethernet router
<srhb>
Just copy the path from another machine
<srhb>
Oldskool
<srhb>
Sneakers transfer :-)
<Turion>
srhb: Haha good ol' two-legged network
<sphalerite>
yeah it's a bit of a pain but you should be able to do it
<sphalerite>
Or you could make a custom installer
<sphalerite>
You don't need an ethernet router if you have an ethernet cable and an ethernet port on another machine that does have internet access though
<Turion>
well, stupid question, /etc/nixos/configuration.nix is readonly for the installer...
<sphalerite>
plug cable into both laptops, ip a add 10.123.123.1/24 dev ens25 on one and some non-colliding one on the other
<sphalerite>
you can make it read-write
goibhniu has joined #nixos
<sphalerite>
oh hm. I'm not sure whether it'll actually look for the firmware in the right place even after a switch thoguh
<sphalerite>
Because it might use /run/booted-system/firmware and not /run/current-system/firmware.
<sphalerite>
As an extra nasty-delightful hack I guess you could replace /run/booted-system
<sphalerite>
Turion: I've often had that with faulty USB sticks iirc
grumble has quit [Ping timeout: 600 seconds]
<juhe>
Dezgeg: will try it right away, then report back, thx!
<srhb>
mpickering: When you have Nix 2 I guess?
<srhb>
And when you're willing to pay the cost/reap the benefits... builtins.fetchgit can be exceptionally slow.
<srhb>
But private repos are easy.
joehh has joined #nixos
<Turion>
sphalerite: Hmmm, yes might just be the hardware :/ it's the only one I have right now though
<mpickering>
Because there is no sha for builtins.fetchgit, isn't it mutable?
<sphalerite>
mpickering: yes
<mpickering>
So that seems a big difference to pkgs.fetchgit?
<sphalerite>
mpickering: you *can* in fact pass a hash to it since nix 2.0, but yeah
<sphalerite>
it's for use outside nixpkgs when the convenience of a non-deterministic git fetching tool outweighs the disadvantages of non-determinism
<Turion>
sphalerite: No, the errors occur for other devices (e.g. my phone as well) :/ something wrong with the USB subsystem, I guess
<sphalerite>
Turion: well that's a pain. Maybe that's why it didn't want to boot from the stick either.
<Turion>
No, the USB system on my HP isn't working properly
coot has quit [Quit: coot]
<palo>
I just read about the gentoo-github repo security issue from the 28th (eg : https://bit.ly/2KmNWJq) do we also have something inplace to not fully depend on the verfification algorithms of github ?
<palo>
(maybe this was already discussed here)
<sphalerite>
Turion: oh. So you have 2 only-partly-functioning laptops? Fun :D
<srhb>
palo: What verifications algorithms are you referring to? afaik if you can commit to nixpkgs, you can add malware.
<Turion>
sphalerite: Make it 3 actually. The third is the most broken. Doesn.t even get past POST.
<Turion>
sphalerite: I don't know, I'm somehow hoping that the MacBook isn't broken and a tiny bit faster than the HP
graphene has quit [Remote host closed the connection]
<sphalerite>
Turion: oh boy.
<Turion>
Now how do I copy things into the /nix/store of the live cd? That's not supposed to even work, right?
<sphalerite>
yes it is
<sphalerite>
well
<sphalerite>
you can't put them on the CD itself
taktoa has joined #nixos
<sphalerite>
but you can put them in the store of the booted system
<Turion>
mount -o remount,rw /nix/store doesn't work
graphene has joined #nixos
<sphalerite>
you don't need to
<sphalerite>
you can just write to it using nix commands as usual
<sphalerite>
like nix copy, nix build, etc
<Turion>
Ah. I'll pretend I knew before that nix copy existed.
<Turion>
nix-copy? I only see nix-copy-closure which seems to need SSH..? I just manually copied /nix/*b43-firmware*, hoping for the best
<palo>
srhb: I mean the one from github. (email password, maybe 2 factor or what they use).
<Turion>
Ah sorry. Spaces matter.
<srhb>
palo: I don't think we have any further verification systems.
<srhb>
I also don't know what they could possibly be... post-commit phone-ring? :-)
<palo>
I found it quite smart that they found a way to use github tools (issues, pull-requests, ...) make package maintainment simple, but have there own servers and own ways to verify users. This way they don't depend on the quality of github code.
<srhb>
palo: Oh, I didn't realize this was caused by a bug in github verification.
<Turion>
Why does nix copy need a default.nix?
<srhb>
Turion: It does not.
<palo>
srhb: well it happend before (and most likely will happen again) that if somebody hacks github and injects code in important repos. I was just currious if we have something in place to make that harder for our repositories.
<sphalerite>
Turion: you just need to tell it what to copy
<palo>
but I more or less have an answer now.
<srhb>
palo: I don't think self-hosting necessarily makes this easier. If someone gains access to privileged credentials, you're boned either way...
<sphalerite>
Turion: if you don't specify anything it tries to copy the result of building default.nix in the CWD
<palo>
srhb: this is true. but other strange things, like bad configured networks of github, or a shitty cloud hoster is also a good way to get unverified access.
<srhb>
Turion: --from store thing-from-store
<palo>
anyway. I was just currious.
<srhb>
palo: I didn't mean to dissuade you from being security conscious. :D
<sphalerite>
Turion: it needs to be a flat-file binary cache for nix copy --from file:///… to work
<srhb>
palo: I'm sure there's room for improvement.
<srhb>
just not sure which approaches are worth it :)
<Turion>
srhb, sphalerite: it's just a directory where I've copied all the stuff from the store that I deemed necessary
<sphalerite>
Turion: won't work that simply unfortunately :(
<srhb>
Turion: You probably want to nix copy --to your-removable-store paths
<srhb>
Turion: And then nix copy --from your-removable-store paths
<sphalerite>
Turion: on the machine where you have it, run nix copy --to /myphonemounted /nix/store/somehash-b43-firmware-5.100.138
<Turion>
Ah ok
<sphalerite>
then on the machine where you want it, run nix copy --from /myphonemounted /nix/store/somehash-b43-firmware-5.100.138
newhoggy has joined #nixos
<palo>
srhb:that is for sure, security is not building up wall without a cloue what could happen, it must be thought through and is not easy.
<sphalerite>
or --all instead of the full path on the nix copy --from, since the store will only contain the relevant stuff
<srhb>
palo: agreed. :)
<palo>
srhb: thanks anyway, I will think about this topic a bit and might start another discussion in the future with some concrete ideas
<srhb>
palo: Great to hear. Do you know about discourse.nixos.org ? It might be a good venue too.
<pstn>
What's wrong with my nix 2.0 when it asks me to update the search cache on all searches?
<sphalerite>
pstn: nothing wrong.
<srhb>
pstn: Nothing, it always does.
<palo>
srhb: no did not know about it. will check it out
rihards has quit [Ping timeout: 256 seconds]
<sphalerite>
pstn: you don't need to update it every time, it's just informing you because the results *might* be stale if you've updated stuff since its generation
<srhb>
pstn: It's just a warning that the results are always that of the cache.
andymandias has quit [Ping timeout: 276 seconds]
<srhb>
(The entire point of the nix search command :))
<pstn>
Ah, alright. Thanks.
xy2_ has joined #nixos
<Turion>
sphalerite, srhb: In the "nix copy --to" part, I'm getting first "error: creating symlink from '/home/turion/mnt/nixos/nix/var/nix/gcroots/profiles' to '/home/turion/mnt/nixos/nix/var/nix/profiles': Operation not permitted" and when trying again "error: could not set permissions on '/home/turion/mnt/nixos/nix/var/nix/profiles/per-user' to 1777: Operation not permitted"
<sphalerite>
aw pff I'm guessing it's a function-impaired filesystem
<sphalerite>
a flat-file binary cache should still work though I think
<Turion>
Yes, it's an android emulated mass storage device
<sphalerite>
so the same command but with file:// before the path
<Turion>
I'd be surprised if it works 100% normal
<sphalerite>
then you need to copy out with file:// as well
<Turion>
Yay!
<Turion>
The --to part worked
<sphalerite>
this would be a lot easier if you had a network connection between the two machines — then you could just do `nix copy --to ssh://root@10.123.123.2 <paths>` on the source machine
<sphalerite>
but hey, we work with what we've got, right? :D
patrl has joined #nixos
<juhe>
just curious, what's relation between "nix copy" and "nix-copy-closure"?
<sphalerite>
juhe: nix copy is the fancy new tool which has nice progress and is part of the new UI
andymandias has joined #nixos
newhoggy has quit [Remote host closed the connection]
<sphalerite>
juhe: in addition to fancyness, it also supports more types of stores — so you can copy to and from flat-file binary caches via the filesystem or the web as well as via SSH
<sphalerite>
juhe: nix-copy-closure isn't entirely superseded yet as far as I know though, as nix copy does not have any facilities for copying .drvs as opposed to output paths.
<juhe>
sphalerite: hm, nice (apart from some lacking functionality), that's probably what I've seen during installation some time (a week?) ago - liked it. Can it do something like "nixos-rebuild switch" too?
<sphalerite>
juhe: for that you'd use nix build. It's not integrated into nixos-rebuild yet because it's not a stable UI and as such may change
<sphalerite>
juhe: but you can get a fancy progress bar for system building by running `nix build -f '<nixpkgs/nixos>' --no-link system`
<juhe>
it's pity that systemd-importd didn't get to NixOS. I'm migrating some systemd-nspawnd containers to nixos and systemd-importd would be very handy for this task
<Turion>
I'm just wondering whether the hardware detection didn't find my filesystems because of that
<tilpner>
And there are mounted things below /root/mnt, which did not result in an entry?
<tilpner>
That's not good
<Turion>
It just recognised my swap
juhe has quit [Remote host closed the connection]
<Turion>
Ah. I did "nixos-generate-config --root mnt", being in the /root directory. Apparently hardware detection doesn't work with relative paths, or with paths other than /mnt. I remounted everything under /mnt and generated a new config, that worked
stepcut_ has quit [Remote host closed the connection]
stepcut has joined #nixos
juhe has joined #nixos
<sphalerite>
Turion: yeah it expects you to put the destination system entirely in /mnt
<sphalerite>
Turion: or whatever root you specify
stepcut has quit [Ping timeout: 276 seconds]
<cocreature>
is there a way to mask a systemd user service (pulseaudio in this case) for a specific user?
<cocreature>
Failed to connect to bus: no such file or directory :(
<clever>
cocreature: it may only work when at the gdm login screen
<clever>
i suspect the systemd user service for systemd itself has to be running?
<cocreature>
yeah probably something like that
<sphalerite>
if you run dm-tool switch-user (it's from lightdm but works for other DMs) you should get a new gdm login screen and active gdm user session
<cocreature>
this probably isn’t going to work anyway, since $HOME for gdm seems to be /run/gdm
<cocreature>
I should probably try to figure out what the equivalent of putting a file at /var/lib/gdm/.config/pulse/default.pa is on nixos
<Turion>
I have a USB soundcard that used to work. Currently, when I connect it, dmesg will eventually stop complaining and show me that the card is recognised. But alsamixer doesn't list the card anymore. (It did just a few days ago)
Lears has quit [Remote host closed the connection]
<Turion>
Ok, now even dmesg doesn't tell me that the card exists
silver has joined #nixos
<clever>
Turion: does lsusb say it exists?
<Turion>
clever: No, not anymore :(
<Turion>
Ok, I think this computer is physically falling apart
<Turion>
As in, the USB must be breaking away from the mainboard
<ben>
can `nixos-rebuild` put it back together
<Turion>
ben: You meant me?
<ben>
meh, not particularly
Lears has joined #nixos
<Turion>
sphalerite: Got nixos running on that ol' macbook! Thanks for your help!
ajs124 has joined #nixos
<Turion>
Dang, I did want it to be encrypted...
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
klntsky has quit [Ping timeout: 250 seconds]
<Turion>
I set "services.xserver.displayManager.sddm.enable = true;" and "services.xserver.desktopManager.plasma5.enable = true;", and when running nixos-rebuild I get "attribute 'display-manager' missing"
<clever>
Turion: you also need services.xserver.enable = true;
klntsky has joined #nixos
<Turion>
*ahem* oops. Thanks, clever!
ajs124 has left #nixos [#nixos]
<Turion>
Does any place sell NixOS stickers?
<Turion>
I really need to cover up that apple logo before I go outdoors with this thing
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<qyliss>
I have NixOS stickers
<qyliss>
Trying to remember where I got them
<qyliss>
Conference or something?
tzemanovic has quit [Remote host closed the connection]
<qyliss>
Oh, somebody brought me them from CCC
<qyliss>
They exist, anyway
<Turion>
qyliss: Do you have a huge batch or just for your personal use?
tzemanovic has joined #nixos
<qyliss>
I have like 2
<qyliss>
But whoever was giving them out there must have had a bunch
tzemanovic has quit [Remote host closed the connection]
<Turion>
Ok ;) seems like I need to make friends with your friends
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<Turion>
How legal is it if I use the nixos logo and order stickers from e.g. stickermule.com, I wonder
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
goibhniu has quit [Ping timeout: 256 seconds]
tzemanovic has joined #nixos
<infinisil>
Hey, how could I check a libfoo.a file to see if there are any errors with it?
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
blankhart has quit [Ping timeout: 248 seconds]
<infinisil>
It's a random libfoo.a downloaded from the internet, and I'm wondering if it would be usable on NixOS
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
goibhniu has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<infinisil>
Ah, I guess that's a static library so it would work on NixOS anyways, I think
<Turion>
LnL: Yes, CC-BY license! Should work. Will do that for the next meetup or conference
tzemanovic has joined #nixos
leat has quit [Ping timeout: 256 seconds]
tzemanovic has quit [Ping timeout: 256 seconds]
<sphalerit>
Turion: on my last macbook I crossed the apple out with electrical tape and put a tux sticker on top :D
<sphalerit>
That was before I used nixos
<sphalerit>
Now I have nixos stickers on my laptops
leat has joined #nixos
<Turion>
sphalerit: Yes, I'll do something like that, as soon as I have proper stickers
<Turion>
sphalerit: The EFI stuff didn't quite work, though... I have canTouchEfiVariables = true, but still I need to manually select the disk on startup
leat has quit [Remote host closed the connection]
leat has joined #nixos
<Turion>
My automatic hardware configuration detected the swap device by uuid. Now I want encrypted swap, which means uuid won't work anymore. Do I just delete the lines from hardware-configuration.nix? But they might be added again by some automatic tool?
<sphalerite>
Turion: uuid should still work, it'll just be a new one
<sphalerite>
you can rerun nixos-generate-config to update hardware-configuration.nix
<Turion>
I thought it's a new one on every boot?
<sphalerite>
it won't touch configuration.nix if it already exists
<sphalerite>
oh right that depends on how you set it up
<sphalerite>
if you have a persistent key (which you need if you want to use the swap for suspend as well) it doesn't generate a new one every time
<sphalerite>
but you can also generate it with a random key each time in which case yeah you'll need to use /dev/mapper/cryptswap or whatever you call it
<Turion>
I don't need suspend. And I don't want to enter a password every time on boot, so I guess I need random encryption.
<Turion>
I'll just say device = "/dev/sda2";, is there any downside with that?
<Turion>
(Assuming that I'll never reconnect disks anyways)
<Turion>
Any idea on the EFI issue, though?
bluesfreak72 has joined #nixos
bluesfreak72 has quit [Client Quit]
tzemanovic has joined #nixos
bennofs has quit [Quit: WeeChat 2.0]
andymandias has quit [Ping timeout: 248 seconds]
sbdchd has joined #nixos
tzemanovic has quit [Ping timeout: 265 seconds]
Turion has quit [Ping timeout: 265 seconds]
andymandias has joined #nixos
<sphalerite>
Turion: using device = "/dev/sda2"; will make the swap unencrypted.
<typetetris>
Hi, I use nixos-18.03 und tried to install chromium with `chromium.enableWideWine = true` in my ~/.config/nixpkgs/config.nix, but it fails with `tar: ./opt/google/chrome/libwidevinecdmadapter.so: Not found in archive` is it a known issue ?
<sphalerite>
Turion: for the EFI issue, could you paste the output of `efibootmgr -v`?
<cocreature>
can I get nixos to create a file somewhere in /run/gdm on every boot? /run/gdm appears to be in a tmpfs so whatever I create there doesn’t persist
<symphorien>
maybe with systemd-tmpfiles ?
<cocreature>
symphorien: ah that looks like it might work! now I only need to figure out how to use that :)
<Turion>
sphalerite: Why does device = "dev/sda2" imply unencrypted swap? What do I do otherwise?
orivej has quit [Ping timeout: 264 seconds]
GiGa has joined #nixos
GiGa has quit [Changing host]
GiGa has joined #nixos
<GiGa>
Hello
<{^_^}>
[nixpkgs] @ldesgoui opened pull request #42839 → qutebrowser: shorten launch time marginally if an instance is already running → https://git.io/fwl0s
<cocreature>
symphorien: thanks again, I got it working! now my bluetooth headset is finally happy with being an a2dp sink
phdoerfler has quit [Quit: Leaving.]
<symphorien>
:)
<cocreature>
that reminds me, I think Baughn you had a problem with a2dp yesterday? have you got it working since? if not, I might have some ideas now that I finally managed to get it working for me
hxrts has quit [Remote host closed the connection]
teej has joined #nixos
alex``` has quit [Quit: WeeChat 2.1]
<{^_^}>
[nixpkgs] @gebner opened pull request #42841 → HEIF support → https://git.io/fwlE3
humanoyd has joined #nixos
obadz has quit [Ping timeout: 265 seconds]
Lisanna has joined #nixos
obadz has joined #nixos
liuyb has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @Pneumaticat opened pull request #42842 → barrier: fix compilation on Qt 5.11 → https://git.io/fwlEa
alexteves has joined #nixos
<Lisanna>
can declarative hydra project/jobset configs be specified in the extraConfig option of the nixos module?
<jluttine>
libgfortran.so.4 and libgomp.so.1 not found :/
<Lisanna>
jluttine are you building from source or trying to repackage an existing ELF?
<jluttine>
Lisanna: building from source
<Lisanna>
jluttine builds done with stdend are supposed to add lib dependencies to the RPATH of produced elfs
<Lisanna>
stdenv*
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<Lisanna>
use the patchelf tool to help you debug what might have gone wrong?
asuryawanshi has quit [Read error: Connection reset by peer]
alex`` has joined #nixos
<Lisanna>
so it should have added the paths to the libgomp and libgfortran deps to the rpath... if they weren't provided as buildinputs, the linking step should have failed
<Lisanna>
...just a guess, I'm not an expert on stdenv, but did you maybe specify them as nativeBuildInputs instead of buildInputs?
<mpickering>
is fetchFromGithub allowed in restricted evaluation mode?
rardiol1 has joined #nixos
<mpickering>
is it just builtins.fetchgit which is not allowed?
<Lisanna>
mpickering well, builtins.fetchTarball isn't allowed either
teej has quit []
<infinisil>
mpickering: All networking is disallowed unless you add the url to allowed-uris
<infinisil>
Wait, maybe not all, not sure about fixed output ones
<mpickering>
NUR does evaluation in restricted eval mode
<mpickering>
so this means you have to put all your nix files in your nur-packages repo
<mpickering>
or use submodules
Izorkin has joined #nixos
<samueldr>
Myrl-saki: don't know! I think that low-memory is what you make of it
aszlig has quit [Quit: Kerneling down for reboot NOW.]
<samueldr>
though, low storage space is more of a factor
<samueldr>
for that, always building the system using cross-compilation and flashing a "one-genration only" image may alleviate issues
aszlig has joined #nixos
<jluttine>
Lisanna: needed to add gfortran.cc.lib to buildInputs instead of just plain gfortran :S
<tomberek>
I am using a private hydra for CI. I thought I was signing packages because I have added the "store-uri=local?secret-key=/path/to/key" into services.hydra.extraConfig, but it doesn't seem to be taking effect. When I manually run nix sign-paths --all, everything works. Is there another setting or way to inspect/debug this issue?
<Baughn>
cocreature: It's working for the moment. We'll see what happens when I reboot.
<tomberek>
for example, does the secret-key-file need to be in nix.conf?
<tomberek>
Lisanna: hydra provides warnings about binary_cache_secret_key_file as deprecated and ignored, and recommends the store_uri=...?secret-key instead
<Jason_Grossman>
Hi hi. I'm finding neither stable nor unstable will build for me at the moment, because I have windowManager.stumpwm.enable = true;
<Jason_Grossman>
This is a pity!
<Jason_Grossman>
Any advice?
humanoyd has quit [Quit: WeeChat 2.1]
<Jason_Grossman>
I have the latest stumpwm installed manually (using nix-env -iA), but NixOS is trying to install an older version of stuwmpw because of that .enable line. And the older version won't build.
17WABN9L8 has joined #nixos
7GHAA8L61 has joined #nixos
<srid>
my nixos 17.09 install isnot really using cache, for installing things like tmux
<srid>
was the cache removed for older nixos versions?
7GHAA8L61 has quit [Remote host closed the connection]
<Turion>
Jason_Grossman: don't you have the same channel globally and for your user?
<Jason_Grossman>
Turion: No, but I'm not sure what difference that makes in this case. The problem is that stumpwm.enable is causing NixOS to pick a version of stumpwm that won't build.
aristid has quit [Ping timeout: 260 seconds]
aristid has joined #nixos
<Turion>
Jason_Grossman: That would make a difference. Everything in /etc/nixos/configuration.nix will build with your global channel, everything you install as user with nix-env will take your user channel
<Jason_Grossman>
Yes. I'm not sure how that helps - sorry if I'm misunderstanding your point.
<Turion>
So if the build fails in an older channel, it will fail on Hydra, and not finding the binary, your nix will try to build it from sources, which probably fails for the same reason like it did on Hydra. Update the root channel to whatever channel you can install it successfully as user, and then hopefully it should work
<Turion>
Which channels do you have, respectively?
<Jason_Grossman>
I've tried both unstable and stable, globally.
GiGa has quit [Quit: Leaving]
mightybyte has quit [Quit: leaving]
<Jason_Grossman>
"if the build fails in an older channel" - note that the problem is not with a package.
<Jason_Grossman>
The problem is with something pulled in by a .enable option.
<Jason_Grossman>
nixos-rebuild doesn't try to do anything with sources (for this particular problem).
<samueldr>
Jason_Grossman: it may help if we can see the full error message, and as it's issues with channels, the output of `nix-info`
<samueldr>
(use gist or any pastebin for more than one line output)
<Jason_Grossman>
Thanks.
<Jason_Grossman>
I see there is already an issue for this, and it's marked as resolved but doesn't seem to be, so I'm updating my channels and trying again.
<Turion>
Jason_Grossman I thought you said something failed to build? Well, what happens with .enable = true;, amongst many other things, is building a derivation. This also happens when installing a package.
jb55 has joined #nixos
<Jason_Grossman>
Turion: Right, but that derivation doesn't give me any control over which version of the package is built, and it builds the wrong version even in stable.
<samueldr>
Turion: the error message may actually have been "is marked as broken, refusing to evaluate."
<samueldr>
if it was related to the issue they linked
<Jason_Grossman>
samueldr: Yes.
<Turion>
Yes right
<samueldr>
ah good, then updating should fix this
<samueldr>
as long as the channel you subscribe to has that fix
<Jason_Grossman>
I thought I'd tried that, but I'm double checking. :-)
Izorkin has joined #nixos
<samueldr>
18.03 (current stable) doesn't have the fix
<mpickering>
How is nix cat-store different to cat?
<samueldr>
a quick hacky fix, Jason_Grossman, would be to download the raw fixed file, and add it to `imports = ...;` in your configuration.nix
bennofs has joined #nixos
<samueldr>
I would suggest you add a comment describing why it's there and starting 18.09 or if you use unstable to remove it :)
<Dezgeg>
a guess: cat-store works for directories
<samueldr>
oh, and there's another thing you'll need (give me a minute)
<Jason_Grossman>
samueldr: Ah. Thanks. That's the sort of advice I was expecting (I just didn't know the syntax), and I'll do that if updating doesn't work. This is strange, because I thought I'd updated several times since the fix was merged, but we'll see.
<Jason_Grossman>
samueldr: Thanks, but you might want to not bother looking it up until I've finished double checking that I still have the problem.
<samueldr>
with this: disabledModules = [ "services/x11/window-managers/stumpwm.nix" ];
<Jason_Grossman>
samueldr: Great. Thanks. I've made a note of that.
<samueldr>
eh! I already know the solution, so anybody else having the problem on 18.03 now maybe can find it in the logs :)
<LnL>
mpickering: cat-store works for all store types, not just locally
<gchristensen>
samueldr: oh cool I didn't know that worked
<Lisanna>
although it's a little weird that the release.nix build logic for a package and the nixpkgs build logic for a package are completely separate... makes me feel a bit uneasy
hxrts has quit [Ping timeout: 245 seconds]
<LnL>
Berra: nix/fetchurl doesn't work if your nix isn't installed in the store
<Berra>
LnL so nix-env -i nix ?
<LnL>
maybe, depends on your install
<Berra>
LnL I'm on an Arch machine and have nix installed
<samueldr>
Berra: which method%
<Berra>
samueldr: I installed it using the arch user repository - so I don't know the details.
<samueldr>
(as AFAIR there were multiple AUR packages, there is the official curl method, and the new fpm package)
<Berra>
samueldr: What should I look for when reading the tarball?
<LnL>
can you run nix-shell -p nix-info --run nix-info
<Lisanna>
or is the ideal way to do this to move all of a package's build logic into its release.nix, then import release.nix from the nixpkgs expression for it?
<samueldr>
(I just looked in the AUR, there are no more multiple versions, only nix and nix-git, fwiw)
tomberek has quit [Quit: Page closed]
<Berra>
Ok ok - so I'm now suspecting that nix (I did not know this is something nix did) picked up some .nix in the dir I stood in and thus effected the install
<Berra>
I was anyhow now able to install hies - It might also have been solved by intalling nix in the store.
<Berra>
Thanks for the help samueldr LnL
patrl has quit [Ping timeout: 276 seconds]
<LnL>
Berra: ok so it also installed the daemon, in that case nix-env -i nix only changes the client. I think that will fix this problem but might introduce issues down the line if you don't keep those versions in sync
<Berra>
LnL: Hmm - I will avoid that problem when I switch to NixOS I guess - but my coworkers will be using nix on MacOS
<Berra>
LnL So they will have that problem
<{^_^}>
[nixpkgs] @aszlig pushed to master « libtorrent-rasterbar: Use Boost supporting Python »: https://git.io/fwwNw
<Unode>
On a CentOS 6.5 with nix in a custom location I'm having issues re-compiling openjdk. It has been successfully compiled in the past so other paths already exist in the store. Is there any way to 'force' nix to use one of those as dependency instead of trying to rebuild it?
<LnL>
not if you use nixos or the installer from nixos.org
<Unode>
other paths = the exact same version of openjdk already exists in the store but different hash.
<LnL>
since those don't install into /usr/local while the AUR package does
<Berra>
LnL: Ok - they will install using the nixos.org installer and thus avoid that problem, good to know. Thanks
<LnL>
yeah, it's a bit of a weird edgecase if nix is installed in a custom location
<cocreature>
Hey, I’m trying to package lollypop-portal but when I try to run it I get “No module named 'gi'”. I stole from the lollypop the pythonPath = [ pygobject3 ] line thinking that this would help but evidently it doesn’t. Here’s is my derivation https://gist.github.com/cocreature/a38f18a30879f281131e9574c7709999
<cocreature>
I never had to deal with python and nix before so I’m probably doing something stupid here
<booglewoogle>
hey. i'm trying to build something -- https://github.com/FasterMelee/Ishiiruka -- with cmake. it fails with this https://pastebin.com/UCDNhhMw telling me It can't find ALSA or OpenAL. i've got those in the store though. (packages AlsaLib and mesa - from what I understand, that's those). how can I access them for the build procedure?
moet has joined #nixos
john2 has joined #nixos
<alphor>
what's your nix expression?
<booglewoogle>
umm, I haven't made one, wouldn't really know how to go about that yet either
<cocreature>
infinisil: it looks like "postFixup = ''wrapPythonProgramsIn $out/libexec "$out $pythonPath"''" did the trick!
freeman42x]NixOS has joined #nixos
<cocreature>
infinisil: thanks for your help!
<infinisil>
Ah, yeah i think it only wraps stuff in $out/bin by default
<cocreature>
it did claim that it wrapped the stuff in libexec, it just doesn’t seem to have added the pythonPath
<cocreature>
no idea why
<alphor>
booglewoogle: I'm not at all familiar with cmake but nix doesn't look in your $PATH to resolve dependencies. You need to explicitly say what your dependencies are in a nix expression, and nix will provide an environment where they're there when building.
jwynn6 has joined #nixos
john2 has quit [Ping timeout: 256 seconds]
srl295 has quit [Quit: Connection closed for inactivity]
CcxWrk has quit [Remote host closed the connection]
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
stepcut has joined #nixos
xy2_ has joined #nixos
roconnor has joined #nixos
stepcut has quit [Remote host closed the connection]
emmanuelrosa has joined #nixos
<Lisanna>
OK, I think I understand why having the release.nix build logic be separate from the channel / nixpkgs build logic is useful. The release.nix build logic focuses on the build needs of the package maintainers, which will be different from the build needs of the users
<Lisanna>
channel build logic will also usually be behind the release.nix build logic
<Lisanna>
and to still get all the other benefits of the channel, in your release.nix file you can still depend on the channel, but with that package overridden
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/frqM2
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
orivej has joined #nixos
mariatsji has quit [Remote host closed the connection]
sbdchd has joined #nixos
kalbasit_ has joined #nixos
emmanuelrosa has left #nixos [#nixos]
<kalbasit_>
Hi there, I'm Nix/NixOS noob (migrating from Arch for the last two days). I need to install Bazel 0.14.1 but the stable channel comes with 0.10 and the unstable channel provides 0.13. What's the Nix-way of installing the custom version if Bazel in my case?
<samueldr>
you could make an overlay which either overrides or uses a custom copy of the bazel instructions, but for 0.14.1
<kalbasit_>
re overriding: I tried packageOverrides = with pkgs; { bazel = bazel.override { version = "0.14.1"; }; }
<kalbasit_>
but got called with unexpected argument 'version'
<samueldr>
(I generally change a couple of the digits to zeroes, or !tofu)
<samueldr>
!tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<kalbasit_>
oh nice, I did not know about nix-prefetch-url (even though I have it installed lol)
coot has joined #nixos
<Lisanna>
kalbasit_ it's a standard nix tool - there's nix-prefetch-git as well, but it's a separate package not installd by default
<kalbasit_>
@samueldr awesome!! let me test that
<samueldr>
takes a while since it runs tests
<samueldr>
but tested software is better than untested!
<samueldr>
it's a bit weird how the count of ran test / total tests, both ran and total are increasing
<kalbasit_>
nix-env -i looks promising so far!
* infinisil
and many others don't use nix-env at all because they find it sucks so much
<samueldr>
FTR I'm using nix-build since I don't intend to install it
<samueldr>
oh, it wasn't tests, it's the build that's taking time
<samueldr>
it probably will fail
<samueldr>
(just failed here)
<kalbasit_>
I'm loving Nix so far. I came to it because I was just sick and tired of pyenv rbenv asdf etc.. Vim/deoplete never works well with those shims and so far I'm wondering why I haven't came across it yet
<kalbasit_>
it's going well so far on my end
<kalbasit_>
let's see
<Lisanna>
kalbasit_ really awesome to hear :)
<samueldr>
it built fine, it's something after the build
* samueldr
doesn't know much about bazel
<kalbasit_>
I have ton to learn though but It'll be worth it
<samueldr>
looks like it's either part of a test or install, it tried to download an external dependency
<samueldr>
if you don't have sandboxing turned on it may build fully
arbxs has quit [Ping timeout: 240 seconds]
<kalbasit_>
sandoxing for builds is not the default?
<Lisanna>
kalbasit_ nope
<Lisanna>
(but it probably should be!!!!!)
* samueldr
agrees
* infinisil
agrees
<Lisanna>
oh man, the bazel expression is quite a nightmare
<samueldr>
infinisil: feature request: with a full link, print the same info (without the URL, but "nixpkgs#XXX" prefix instead)
<infinisil>
Yeah just thought the same
<infinisil>
Well not exactly the same
<booglewoogle>
when nix-building i now get the error "error: cannot auto-call a function that has an argument without a default value ('stdenv')" -- this is my expression: https://pastebin.com/L7xaBvfA
<samueldr>
I'm simply thinking that having two times the URLs next to eachother is a bit noisy, and it shows the alternative syntax :)
<infinisil>
Hmm, what other info might be also useful for issues/prs?
<booglewoogle>
what's wrong about the expression?
arbxs has joined #nixos
<samueldr>
infinisil: don't think anything else really is useful, no need for dates, tags are noise here... to get more info, follow the white rabbit^W^W link
<samueldr>
booglewoogle: expression is right, but it's a function (to be called usually with callPackage)
<kalbasit_>
specifically `error: packages '/nix/store/wkq4lm5jd8kgffj4dp1zrrd7lzqn7ixg-all/bin/bazel' and '/nix/store/4kgqsjhwywfw4yfqn5a44idck9f09c9s-bazel-0.10.1/bin/bazel' 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)`
palo has quit [Ping timeout: 256 seconds]
<hyper_ch>
nixos unstable is still broken - Unknown CMake command "qt5_use_modules". :(
<kalbasit_>
never mind
<samueldr>
,callPackage booglewoogle
<{^_^}>
booglewoogle: If a Nix file ./foo.nix starts with something like `{ bar, baz }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<kalbasit_>
nix-env -e bazel fixed it
<infinisil>
kalbasit_: What do you think it means? The error is pretty self explanatory
<infinisil>
Yeah or that
<kalbasit_>
infinisil: yea but I was confused why bazel 0.10 was there in the first place, I think I installed it yesterday and forgot about it
<samueldr>
aww, foiled again by a bug in the chrome inspector
<infinisil>
Building the options.html page via `nix-build nixos/release.nix -A manual.x86_64-linux` and opening `firefox result/share/doc/nixos/options.html` doesn't have that problem (not the same as the nixos.org page though)
<samueldr>
nah, it doesn't even use the same data source
<infinisil>
Oh
<samueldr>
the nixos-homepage builds a json of all options
<samueldr>
it'll take more than a sec, I have to build it :/
<infinisil>
Not sure why that needs replacement at all
<samueldr>
the escaping must have been right at one moment, then changed to escape closer to the DOM
asymmetric has quit [Ping timeout: 248 seconds]
<samueldr>
webdev is hard ;)
<infinisil>
I mean, looking at the html, it contains the > without any xml confusion
<samueldr>
(I'm also looking at the git history to see why it broke if it broke)
<samueldr>
infinisil: if at one point it used innerHTML, then changed to innerText (or equivalent jquery) it could mean a big difference
* infinisil
nods
<infinisil>
Do you just know how to fix it or should I open an issue?
<samueldr>
I'm fixing it
<samueldr>
I already have the 5 more recent commits on that file, must keep the streak going on :)
<samueldr>
infinisil: know any options with example values having < and >?
<samueldr>
or as you're our resident jq expert, a good query for the options.json file?
<infinisil>
Heh, I'll give it a quick go
kp__ has joined #nixos
andymandias has quit [Ping timeout: 265 seconds]
<samueldr>
made my own, finally
moet has quit [Ping timeout: 240 seconds]
andymandias has joined #nixos
<{^_^}>
[nixos-homepage] @samueldr opened pull request #229 → Removes useless escapes from `ppNix` in options page. → https://git.io/fovPq
<infinisil>
samueldr: My jq skills have failed me
<Lisanna>
Is there a better way to pin nixpkgs than importing from builtins.fetchTarball? hydra and builtins.fetchTarball don't seem to like eachother. It seems to be the source of my hydra evaluation hang problems.
<samueldr>
infinisil: don't worry, got it verified by modifying the json file
<Lisanna>
I want to have a single version of nixpkgs that is used across all my infrastructure
<Lisanna>
nixops, channel, hydra evals
<infinisil>
samueldr: Nice, thanks \o
<infinisil>
/
<Mic92>
Lisanna: does hydra use `restrict-eval`?
<samueldr>
¾ of the work being ensuring I wouldn't cause new issues :)
<booglewoogle>
building of my nix-expression will now fail with this error: https://pastebin.com/tyBTDa4A -- someone got a sec to help me understand how to fix this? I've got xorg.libX11 installe
<gonz_>
I'm not super thrilled about having to switch my mail fetcher just because of nixos
tzemanovic has joined #nixos
tzemanovic has quit [Client Quit]
<worldofpeace>
gonz_: You forgot to `enable = true;`
<gonz_>
worldofpeace: It makes no difference
<gonz_>
`offlineimap` still doesn't see `libkeepass`
<gonz_>
It's not that the service isn't available or anything, it just doesn't have access to the lib for whatever reason.
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patrl has quit [Ping timeout: 265 seconds]
blankhart has joined #nixos
<worldofpeace>
Could you explain what "can't see libkeepass" means? I see that you have `pkgs.keepass` in the `path = [ ];`. But that's about all I know.
<gonz_>
`offlineimap` fails to start, complaining that there is `no module named libkeepass`
<worldofpeace>
Is there an error saying it can't find the lib when you run `nixos-rebuild`? Or is this output in the logs for the service?
<worldofpeace>
So logs for the service.
<gonz_>
For the service (or if I just start it manually)
<gonz_>
Normally you'd just pip install it, I suppose
<gonz_>
Ideally it would just be part of the build script
<gonz_>
Which is what I thought I signed up for with nix
<infinisil>
They might be from the secret developer friendliness evaluation association
<{^_^}>
[nixpkgs] @jmitchell opened pull request #42851 → vmTools: update Debian minor version to 8.11 → https://git.io/foAp2
<worldofpeace>
We should be really kind and possibly ask for steps to reproduce and if they've recieved any death threats prior from the 'leftists'. We're concered about the users safety.
newhoggy has joined #nixos
<infinisil>
Totally, should I or do you want to respond? :P
newhoggy has quit [Remote host closed the connection]
<infinisil>
worldofpeace: ^
<samueldr>
^ don't go for anything they could troll for, so a completely neutral response
<samueldr>
asking how this relates to nixos, mostly
newhoggy has joined #nixos
<infinisil>
Ah yeah, agreed
<worldofpeace>
Totally.
<worldofpeace>
perhaps we should get anotehr opinion also
<worldofpeace>
Wait they edited it
<infinisil>
Haha
buckley310 has quit [Quit: Bye]
<worldofpeace>
steps to reproduce? Are they saying I should test this on someone else?
<worldofpeace>
I'm worldofpeace so I should make a peaceful response.
<infinisil>
Just asking what this has to do with NixOS would be good as samueldr mentioned
<samueldr>
well, they obviously "landed in the wrong place"
buckley310 has joined #nixos
testuser has joined #nixos
<testuser>
hi, what's the best way to enter an environment where I can build 32-bit applications with nix-shell?
<infinisil>
testuser: I think `nix-shell -p stdenv_32bit` should work if you only need the basic stuff
<samueldr>
testuser: for games, steam-run may be a good choice
<testuser>
infinisil, I also need the gnu/stubs-32.h
<samueldr>
glibc_multi has this
<infinisil>
I think stdenv_32bit includes that by default though
<samueldr>
(I was actually checking that)
<infinisil>
The stubs-32.h thing is the most common error when you don't have the 32 bit stuff
<samueldr>
yes
<samueldr>
it fetched glibc-multi
coot has quit [Quit: coot]
jluttine has quit [Ping timeout: 268 seconds]
<infinisil>
I see
<testuser>
I'm getting this error:
<testuser>
error: /nix/store/p85kjy91dfvs4in358zyfxlksvibw0zn-glibc-2.26-131-dev/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file or director
<infinisil>
testuser: Do you have a shell.nix file?
<testuser>
compiling with "g++ temp.cpp -m32"
<testuser>
infinisil, not in the current directory no
rprije has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
jluttine has joined #nixos
graphene has quit [Remote host closed the connection]
<infinisil>
samueldr: testuser: The problem with `nix-shell -p stdenv_32bit` is that that's still just `stdenv.mkDerivation { buildInputs = [ stdenv_32bit ]; }`, which is a normal stdenv
<testuser>
infinisil, I guess not, since the binary is still there and works, thanks
<infinisil>
worldofpeace: dotlambda: Hah
<worldofpeace>
We can't close an issue without directing someone to the correct location. We just lost points from the developer friendliness evalution association
<infinisil>
Oh no!
<worldofpeace>
Re open it quick!
<worldofpeace>
With a terse apology
andymandias has joined #nixos
<alphor>
is terseness unfriendly? I think it does the other party the favor of not having to wade through noise.
<infinisil>
alphor: We just wanted to have some fun with this probable troll #42850 :P
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
moet has quit [Ping timeout: 245 seconds]
sbdchd has quit [Remote host closed the connection]
testuser has quit [Ping timeout: 256 seconds]
booglewoogle has quit [Remote host closed the connection]
joehh has joined #nixos
Sonarpulse has quit [Ping timeout: 265 seconds]
<Unode>
hi all, when using nix-shell to install zlibStatic, no variable is set in the environment pointing to it other than buildInputs. Is there any reason why it doesn't also appear as part of NIX_TARGET_LDFLAGS or some other NIX specific variable?
tmaekawa has joined #nixos
<Unode>
(correction) what is included in buildInputs, doesn't actually point to libz.a
tmaekawa has quit [Client Quit]
Forkk has joined #nixos
<gonz_>
If I've successfully made a derivation for a python library, how would I go about making that visible to a program that executes python?
sbdchd has joined #nixos
<gonz_>
I've no control over the program itself, but I'd just like to make sure that the scripts that it runs can import the library.
<Unode>
gonz_: you have 2 options. Either you use nix-shell to create an environment where the library is present and run your program through nix-shell. Or you wrap the program itself with the correct dependencies.