<elvishjerricco>
Or maybe is it possible to make NetworkManager work with networking.useDHCP? Frankly, I have no idea how these things work so I'm not sure if that's nonsense or not :P
timaaarrreee has joined #nixos
alexteves has quit [Remote host closed the connection]
<Dedalo>
clever how can I change the terminal font size? I have tried to change Lat2-Terminus16 to Lat2-Terminus20, did a reboot, but the font is the same
slack1256 has joined #nixos
thc202 has quit [Ping timeout: 256 seconds]
<clever>
Dedalo: ive never really messed with the console font, i just enable xorg or use ssh from a client with xorg
<adamantium>
Hi , i am thinking about moving over to nix one of my machines, but I'm a zfs-on-root user and am wondering how that is going for you guys? I noticed the guide says also to use legacy mountpoints, why?
<infinisil>
adamantium: Because NixOS likes to manage every mountpoint on its own, which isn't possible with the special zfs mounting, so you need the legacy one which can be in full control of nixos
<infinisil>
Mainly due to systemd or so
<infinisil>
Ah right, the ordering of the mount points has to be correct, which isn't possible otherwise
<clever>
infinisil: with nixos-unstable, there are now systemd units to discover and obey mountpoint=, but it doesnt work for the rootfs
<adamantium>
clever: very nice, thank you for showing me how you add additional entries, i wonder how hard it would be to script that section to detect and auto generate entries
<adamantium>
I already have a bash script I use to generate my stanzas
<clever>
adamantium: nixos will run this script, to scan /nix/var/nix/profiles/system* and generate the grub config
<clever>
adamantium: lines 50/51 and others come from configuration.nix, and thats how the entra entries get in
<adamantium>
See I don't want to fight with the system either .. .Hmm
<clever>
adamantium: you could also modify your script to create a grub-extra-entries.cfg, and then just use extraEntries = "source grub-extra-entries.cfg";
<clever>
then nixos ignores the extra file, and grub sources it
<adamantium>
YES
<adamantium>
That's all my little script does, generate a list of stanzas
<Dedalo>
adamantium I have a readme that I have written with all the passages I have done to install on a Lenovo X1 Carbon
<adamantium>
are the docs for zfs on root current
<clever>
i believe so
<adamantium>
you'd be surprised some projects
<adamantium>
;)
<Dedalo>
clever which is the difference to installa packages using `nixos-env -i` and adding them to the `configuration.nix` file?
<Dedalo>
*install
<clever>
Dedalo: nix-env -i will add it to ~/.nix-profile, and it wont update on its own, so you can wind up with something years out of date
<clever>
Dedalo: systemPackages in configuration.nix will be updated to the current nixpkgs every time you nixos-rebuild
<clever>
in general, i try to use systemPackages for everything, but if i'm just testing something short-term i use `nix run` or `nix-env -i`
<adamantium>
See, as a gentoo / funtoo user, the ideas of nix can be appealing sometimes.
<adamantium>
I just want to set stuff and forget stuff sometimes.
<clever>
the atomic nature of systemPackages is also a double-edged sword
<Drakonis>
^
<clever>
on the plus side, everything updates at once
<Drakonis>
you might want to relocate that to home manager
<clever>
on the minus side, everything updates at once, and 1 thing breaking stops you from doing any updates
<Drakonis>
^ that sucks
hakujin3 has joined #nixos
<Drakonis>
word of advice
<clever>
also, if you changed nixpkgs and forgot to update, you have to update everything at once, to make a 1 line change to a config file
<adamantium>
lol
<Drakonis>
if you run your local mirror
<Drakonis>
that's a problem
<clever>
drakonis: i recently configured my hydra to pre-build my router and nas for the latest nixos-unstable
<clever>
so now its pre-cached, and i can see if it builds or not
<adamantium>
maybe i will just do ZFS for $HOME
<adamantium>
that's one idea.
<adamantium>
I don't really need zfs on root, of course it is nice though.
<clever>
adamantium: i use a single pool for everything, with datasets for / /nix and /home
<adamantium>
Same
<clever>
adamantium: the issue with trying to split things up like your plan, is that your going to underestimate how big to make / or /home
<adamantium>
I run zfs / on all my boxes with either mirrored or raidz1
<clever>
and one is going to get full before the other
<clever>
but zfs solves that
<Dedalo>
interesting: is there a way to create a bunch of conf file that I can apply without touching the configuration.nix file, or should I just put that file in a git repo and keep it in sync when I modify it?
<adamantium>
it seems to be that nix is solving problems that zfs solves also, and it could be redundant
<clever>
Dedalo: you can add as many files into the imports field as you want
<adamantium>
nix is solving at a higher level
<Drakonis>
Dedalo, yeah
<clever>
Dedalo: so configuration.nix has imports = [ ./file1.nix ./file2.nix .... ];
<clever>
Dedalo: then file1 and file2 have the same format, and define more things
<adamantium>
How do you know, when to use a separate boot snapshot vs a rollback from the nix pkg manager?
<clever>
nixos will just merge it all together
<elvishjerricco>
Hm. So it kinda seems like `useDHCP` doesn't break NetworkManager at all, so may I can just freely use them at the same time?
<Drakonis>
there are some abstractions like home manager which enables you to separate the user level configuration from the system level configuration
<clever>
adamantium: as long as it can boot, you can use `nixos-rebuild --rollback`
<clever>
adamantium: grub is mainly for when you break it so badly that it cant boot
silver has quit [Read error: Connection reset by peer]
<adamantium>
hehe
<Dedalo>
clever can I override a section in a file that I include or I need to remove that section from the configuration.nix and add it on my files?
hakujin3 has quit [Ping timeout: 256 seconds]
<adamantium>
Now, how are you guys doing for mesa and xorg and things. Pretty recent versions? What kernel version are you guys on
<clever>
Dedalo: you can use mkForce to force things, but its better to split it into 2 files, and then choose just the files that dont conflict
phreedom has quit [Remote host closed the connection]
<elvishjerricco>
However, boot.initrd.networking only seems to want to get a dhcp lease for one interface. I know I can choose which one, but I really want it to do all of them.
phreedom has joined #nixos
mayhewluke has quit [Ping timeout: 244 seconds]
mayhewluke has joined #nixos
<Dedalo>
clever things like useradd cannot be used anymore?
<clever>
Dedalo: if immutable users is set to false (the default) then useradd works, but its recomended to use users.extraUsers in configuration.nix
<Dedalo>
interesting
<Dedalo>
clever and when I'm not root, if I want to change `/etc/nixos/configuration.nix` do I need to sudo?
Fare has joined #nixos
<clever>
you could just chown the file or directory to make it editable by another user
<clever>
so its mostly personal choice there
<Dedalo>
but sudo is available, I mean, I can sudo and run, for example `sudo nixos-rebuild switch`?
<clever>
yeah
<clever>
i prefer doing `sudo -i` then edit things, and `nixos-rebuild switch`
<Dedalo>
yeah sure
<Dedalo>
or su -root
<clever>
if you have sudo, dont bother with su
<Dedalo>
another question about the kernel: recently I had to update on a Raspberry Pi the BlueZ stack, and I did that from source, which has required a lot of time, because make was failing, I add to add some lib, than run configure, then make again, many times. Can I update something like that easily and just do a reboot I suppose, even if it's a kernel module?
<clever>
Dedalo: yeah, just need to correctly define the changes in configuration.nix, and it builds everything
<Lisanna>
ugh, ec2 takes 24 hours before you can spin up an instance if you're a new member. damnit
<gchristensen>
wat
<clever>
probably anti-abuse
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 272 seconds]
lassulus_ is now known as lassulus
Fare has quit [Ping timeout: 240 seconds]
Supersonic has quit [Ping timeout: 256 seconds]
<selfsymmetric-mu>
youtube-dl works great for downloading YouTube videos. Is there something similar for downloading Twitch videos?
nonfreeblob has quit [Quit: Leaving]
<clever>
selfsymmetric-mu: youtube-dl supports a number of platforms, try just giving it a twitch url
andreabedini has joined #nixos
tertle||eltret has joined #nixos
<Dedalo>
clever can I run chrome on Sway / Wayland or do I need to reconfigure the package because it uses X11? Same for all the other software.
<clever>
Dedalo: unknown, i only use x11 right now
<emily>
it should work fine through xwayland
carlosdagos has joined #nixos
Supersonic has joined #nixos
<Dedalo>
emily but Firefox, for example, comes with Wayland support, so it should run, theoretically fine. The question is that the firefox.nix forces you to use X11
<Dedalo>
clever I guess there is no way to compile Firefox from the command line, I should, eventually, create a new package for the wayland version using the nix language, right?
<clever>
Dedalo: or use overrides to modify the existing package
<Dedalo>
interesting, I definitely need to look into the nix language
<d1rewolf>
hi guys...using password-store ('pass'), ubuntu, and zsh, I would have autocomplete of my various store password (<tab>name would bring up matches). On nixos, no dice. anyone know how to get this working?
Denommus has quit [Remote host closed the connection]
Lisanna has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @puckipedia opened pull request #44960 → postgresql: use proper path for system-tzdata → https://git.io/fNdEX
<pikajude>
isn't there an env var I can set to get more information out of nix build scripts
<pikajude>
this python package is failing silently after printing "configuring..."
<clever>
pikajude: add NIX_DEBUG=1; in the derivation
<clever>
possibly using overrideAttrs
<pikajude>
oh ok
<pikajude>
oh ffs
<pikajude>
it shouldn't be allowed to put "|| exit 1" anywhere in a build script
<infinisil>
Does anybody have some reference for the evaluation time increase of NixOS over time? I think I saw eelco say something about it in some issue, but can't find it
<clever>
the build is ran with `set -e` active, so any command returning non-zero will kill the whole thing
<pikajude>
right
<clever>
,profiling
<{^_^}>
Use NIX_COUNT_CALLS=1 and/or NIX_SHOW_STATS=1 to profile Nix evaluation
<clever>
infinisil: these let you measure things
<pikajude>
but this preConfigure script explicitly uses "[ -f some-file ] || exit 1"
<infinisil>
clever: Yeah, but I'd like to find a comment/discussion about it
<clever>
pikajude: ah, yeah, it really should print an error first
<pikajude>
it really should :)
<pikajude>
i'll go hunt down the blamer
<pikajude>
or rather, the blamee
<selfsymmetric-mu>
clever: Wow, youtube-dl is awesome. It totally works for Twitch. :o
<clever>
selfsymmetric-mu: i think it also works with facebook
<infinisil>
youtube-dl works with pretty much everything
<pikajude>
yeah, the name is a bit misleading
<pikajude>
more like any video anywhere-dl
<selfsymmetric-mu>
The manpage and README don't even mention it.
<selfsymmetric-mu>
Occult knowledge!
<{^_^}>
[nixpkgs] @puckipedia closed pull request #44960 → postgresql: use proper path for system-tzdata → https://git.io/fNdEX
<pikajude>
can i *disable* hpack integration with cabal2nix?
<pikajude>
I've already run it myself
<pikajude>
and it uses the github defaults reference thing
<{^_^}>
[nixpkgs] @noneucat opened pull request #44961 → mimic: init at 1.2.0.2 → https://git.io/fNdul
<clever>
pikajude: i heard hpack is already fixed on master
<pikajude>
ooh
<pikajude>
err no, i meant with the files it generates
<pikajude>
I know the build itself was broken for awhile
<pikajude>
but cabal2nix seems to assume hpack by default when package.yaml is present, and not just when the flag is specified
_rvl has joined #nixos
sb0 has joined #nixos
Fare has joined #nixos
jperras has quit [Quit: WeeChat 2.2]
hakujin3 has joined #nixos
timaaarrreee has quit [Quit: Lost terminal]
hakujin3 has quit [Ping timeout: 256 seconds]
Taneb has quit [Quit: I seem to have stopped.]
<dmj`>
how do I remove a haskell dependency from a derivation
NegaNexus has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @Ekleog opened pull request #44962 → wasm: rename unofficial package into proglodyte-wasm → https://git.io/fNdzB
<dmj`>
I have a haskell package, I call pkgs.haskell.lib.dontBenchmark myPkg, but the benchmark dependencies still try to get built, despite what the docs say, what am I doing wrong
<elvishjerricco>
wtf. I'm getting "Package vscode... has an unfree license", despite `allowUnfree = true;`
<elvishjerricco>
And it's only vscode. Other unfree packages are installing fine
<clever>
elvishjerricco: where did you set allowUnfree, and where are you referencing vscode?
<elvishjerricco>
clever: Oh derp. I'm referencing vscode from an separate unstable nixpkgs import, to which I forgot to forward my nixpkgs config argument
<vodurden>
If it's a global override I guess you'd need to do something similar where you override nixpkgs.haskellPackages and then override the specific package
Drakonis has quit [Remote host closed the connection]
hakujin3 has joined #nixos
hakujin3 has quit [Ping timeout: 256 seconds]
sb0 has quit [Ping timeout: 268 seconds]
vodurden has quit [Ping timeout: 265 seconds]
b has quit [Ping timeout: 240 seconds]
sb0 has joined #nixos
aarvar has joined #nixos
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jD91mZM2 has joined #nixos
<jD91mZM2>
Welp, that's fun. Woke up today to a computer without a $PATH
<jD91mZM2>
Accidentally overwrote it to nothing in home-manager
mayhewluke has quit [Ping timeout: 240 seconds]
mayhewluke has joined #nixos
<jD91mZM2>
And my video drivers are kinda broken so I couldn't switch to a TTY. Had to get the USB and disable xorg so I could properly fix it and `home-manager switch`
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ekleog>
otherwise, grub allows you to boot into /bin/sh (as root without password), which would have let you fix home-manager in a way maybe a bit easier than through USB :°
<jD91mZM2>
Maybe that also allows logging in as root, I don't know
<jD91mZM2>
I have no idea how booting works because it takes so long I lose interest heh
slack1256 has quit [Remote host closed the connection]
<ekleog>
I'd guess it does, but don't know, I'm trying to stay as far as systemd as possible, it's trying to help me way too much for my liking :)
<PolarIntersect>
hmm
<PolarIntersect>
Does anyone here use Amazon EKS or something else that leverages aws-iam-authenticator? Seems like kubectl has an issue that specifically doesn't work on NixOs
<PolarIntersect>
Wondering if anyone has it working
Lisanna has joined #nixos
orivej has quit [Ping timeout: 244 seconds]
derchris has quit [Ping timeout: 248 seconds]
slyfox has quit [Ping timeout: 240 seconds]
slyfox has joined #nixos
<{^_^}>
[nixpkgs] @Ekleog opened pull request #44967 → buildRustPackage: allow patches to fix Cargo.lock → https://git.io/fNdVn
<{^_^}>
[nixpkgs] @Ekleog opened pull request #44968 → wasm-gc: init at 0.1.6 → https://git.io/fNdV4
endformationage has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @carlosdagos opened pull request #44969 → docs: add some docs mentioning hackage2nix → https://git.io/fNdVg
<ambro718>
I am unable to deploy with nixops to AWS anymore, it takes a very long time and ends with "error: out of memory". The AWS VM has 1GB RAM and I added 1.5GB swap now but it didn't help. This didn't use to happen.
<ambro718>
I can see the memory usage of nix-store on the remote system rising, not sure to what point it will rise before failing.
<ambro718>
is there a new memory inefficiency/leak ?
<ambro718>
pretty sure this started after upgrading from 17.08 to 18.03
<viric>
I didn't notice anything in particular
<ambro718>
possibly because you don't have such a memory-constrained machine?
<ambro718>
this deployment had no issues before without even adding the swap
<jD91mZM2>
How do you index a list in nix btw? I mean, like ([1 2 3])[0] in most other languages
<johanot>
jD91mZM2: builins.elemAt
<johanot>
builtins*
<jD91mZM2>
johanot: Oh, okay, no special syntax. Thanks!
<ongy>
oh, that's interesting. are the manpages regenerated in some interval?
trylist has joined #nixos
<jD91mZM2>
ongy: Guessing they are updated per release
<srhb>
ongy: Whenever you rebuild, iirc?
<jD91mZM2>
oh
<ongy>
well, still installing from the nix install into my current setup. So I wasn't even sure I got all manpages
<srhb>
ongy: Basically all the options are generated from theird actual definitions in the nixos/modules tree
<srhb>
ongy: There's a nixos-manpages derivation that depends on those.
<srhb>
same for the manual
<ongy>
ahh
<ongy>
that's cool
<srhb>
It is. :)
<ongy>
hmm, can I find the file referenced in "Declared by:" somehow? Preferably online to browse
<srhb>
where do you see "Declared by" ?
<johanot>
nix-build error msg perhaps? :)
<srhb>
ongy: If you give us an example file it'll be easier to tell. most likely it's a file in the nixpkgs tree, so the NixOS/nixpkgs github repo if you want it online.
<srhb>
Or most likely rather the nixpkgs-channels on the branch for your specific channel.
<tilpner>
Last time this happened, I killed the server, so let's not do that again. How can I force a retransmission of this alive store path?
<tilpner>
The two store paths both grew by 4096 bytes, huh
<ongy>
error: out of memory
<ongy>
is that RAM or disk?
lsyoyom has quit [Ping timeout: 244 seconds]
<tilpner>
Let's check: df -h, free -th
<tilpner>
(Though probably RAM. I'd expect disk to say "space")
<ongy>
I got +3G or ram free. But the process already aborted, so that's not a very good indicator
betaboon has joined #nixos
<tilpner>
What were you doing? nixos-install?
<ongy>
yes
<tilpner>
Could try \time -v nixos-install
<tilpner>
That might print max RES
balsoft has joined #nixos
<ongy>
huh, either htop is reporting weird things, or the nixos-install aborts pretty early
<ongy>
still had ~700MB ram to spend
<tilpner>
Or htops update frequency was too low for you to catch it
<tilpner>
Could try adding swap
<tilpner>
fallocate -l 4G /swap
<tilpner>
mkswap /swap
<tilpner>
swapon /swap
<{^_^}>
[nixpkgs] @FRidh pushed 1000 commits to python-unstable: https://git.io/fNdD9
<tilpner>
But wait, if you're in the live ISO, /swap is not the right location
<srhb>
I also think that will be very scary on btrfs
<{^_^}>
[nixpkgs] @FRidh opened pull request #44973 → Python packages set: last major updates before branch off → https://git.io/fNdDb
<srhb>
iirc allocating swap files on it is Bad Stuff.
<tilpner>
Oh
* tilpner
never used btrfs
<{^_^}>
[nixpkgs] @FRidh pushed 108 commits to python-unstable: https://git.io/fNdDx
<balsoft>
btrfs is awesome
__Sander__ has quit [Ping timeout: 256 seconds]
<srhb>
ongy: Did you perchance add some ghc stuff to your system configuration? If so you might want to defer that to after you have a fully operating system.
<balsoft>
but not for swap
<srhb>
They tend to be large store paths and really hurt the memory bug.
<ongy>
srhb: xmonad? :)
<srhb>
Yeah, that'd do it...
<srhb>
But I see a catch 22 now re. fully operating system :-)
<srhb>
Having some swap space on some disk would definitely be the easiest route...
<tilpner>
USB drive!
<srhb>
Calm down there speed demon.
<srhb>
:P
<ongy>
well, with my slow as molasses disk access... I don't like swap
<tilpner>
Hey, I didn't even propose swap on webdav mounted storage yet
<srhb>
ongy: It's just to get you started.
<srhb>
tilpner: lol
<ongy>
I have an NFS mount on my old laptops spinning 2.5" disk. I think that's bad enough
* tv
used btrfs for years on a lot of machines and it is only good until it breaks, leaving around undeletable/unfixable directory entries
<ongy>
oh, so every parallel build will run with its own user?
<srhb>
ongy: Yup.
<srhb>
Especially with sandbox on, builds are very isolated.
<sphalerite>
rauno: yep. This happens with other filesystems too. I recommend putting "nofail" in the mount options for all filesystems that aren't needed for boot!
<ongy>
hmm, stuck at 'mounting /dev/mapper/btrfs on /..', let's go make some food and see if it's done mounting after that
<teto>
,locate hasktags
<{^_^}>
Couldn't find any packages
freeman42x]NixOS has quit [Ping timeout: 244 seconds]
<srk>
haskellPackages.hasktags :)
<LnL>
infinisil: ^ you can use overlays with recurseIntoAttrs to make nix-index find more stuff
hakujin3 has joined #nixos
Fare has quit [Ping timeout: 240 seconds]
ersran9 has joined #nixos
hakujin3 has quit [Ping timeout: 240 seconds]
<{^_^}>
[hydra] @ledettwy opened pull request #588 → Consumable system features → https://git.io/fNdbT
<Lisanna>
^ my first pull request!!!!!!!
<srhb>
Lisanna: Hooray! :D
<ocharles>
Is there a way to evaluate a Nix file to make sure all imports are valid?
<Lisanna>
(reviews most welcome)
<ocharles>
nix-instantiate --eval-only doesn't step under lambdas and stuff, so it doesn't really help with things like `{foo}: import ./i-dont-exist.nix` (that just normalises to LAMBDA)
<ocharles>
Lisanna: welcome :)
ersran9 has quit [Ping timeout: 240 seconds]
<teto>
srk: haha sure I had guessed so thanks
<thekolb>
my builder tries to put files in /var/empty/.cache/ (which fails), I *think* it tries to use ~/.cache. Any ideas how to deal with that?
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
<thekolb>
I am a bit at a loss because /var/empty doesn’t appear anywhere in the builder’s environment
Maxdamantus has quit [Ping timeout: 260 seconds]
Maxdamantus has joined #nixos
<Lisanna>
thekolb: the builder for a derivation should never try to access non-local paths like ~ or /. The sandbox will prevent that.
<Lisanna>
thekolb: usually you will either want to tell whatever program is doing stuff like that to not do that (e.g., by setting special environment variables / command line flags), or modifying e.g. the shell script with something like substituteInPlace
<Lisanna>
it can be tricky, depending on what's actually trying to access those locations
<{^_^}>
[nixpkgs] @vcunat pushed to staging-next « util-linux: fixup bad shell expansion »: https://git.io/fNdNQ
<srhb>
Uh, did legal hydra jobset specifiers change recently? o_o
<{^_^}>
[nixpkgs] @alyssais opened pull request #44978 → cargo-download: init at 0.1.1 → https://git.io/fNdx3
chpatrick has joined #nixos
<Dedalo>
Hi guys, does someone here has a working system system with Sway + Wayland on NixOS? I was able to install and launch Sway, but unfortunately the keyboard doesn't work at all.
<chpatrick>
hey, I'm trying to deploy with nixops over an ssh tunnel
<chpatrick>
I get copying closure..., then
<chpatrick>
NAR info file '....narinfo' is corrupt
<chpatrick>
about 15 times
<chpatrick>
then the deployment fails
<chpatrick>
do you know what it could be?
worldofpeace has joined #nixos
<aminechikhaoui>
chpatrick: do you have some logs that you can paste somewhere ?
Izorkin has quit [Ping timeout: 240 seconds]
<srhb>
Taneb: ping :)
fendor has quit [Remote host closed the connection]
fendor has joined #nixos
Lisanna_ has joined #nixos
<sphalerite>
rauno: yep
<ongy>
hm, after following the guide to install from different linux, I got an error on nixos-rebuild: nixpkgs was not found in Nix search path (I logged in as root on a tty)
<rauno>
sphalerite, weird is that when i know upgraded my system using nixops, it won't boot anymore, hangs on mounting system disk, does the hardware-config change when system is upgraded or smth?
init_6 has joined #nixos
<sphalerite>
rauno: no, hardware-configuration.nix is only modified if you change it or rerun nixos-generate-config
<rauno>
hum, weird that it can't find the system disk using uuid
<sphalerite>
rauno: but if you have a broken filesystem definition in your config it will fail to boot I think
<rauno>
i got that fixed
<rauno>
at least i think :)
<rauno>
when i migrated to nixops, i copied hardware config from nixos, so it should be right..
<srk>
rauno: even with boot.initrd.availableKernelModules?
<tfc[m]>
hey there. i have been studying nixos integration tests a bit. one thing that is unclear to me: how to get program output into the log output in `result/`? e.g. the test `<nixpkgs/nixos/tests/timezone.nix>` does `print` shell output, but i cannot see it neither on the build shell output nor in the log.html...?
<Dedalo>
sphalerite I did, but no one answered :-(
<sphalerite>
Dedalo: ah right, I missed that. Sorry!
<sphalerite>
How does the keyboard fail to work? No response to input at all?
<Dedalo>
sphalerite exactly, I can move the mouse cursor, but that's all
<rauno>
srk, i renegenerated hardware config after upgrade and will try to reboot now, lets see..
<ongy>
Dedalo: do you have the stderr output of sway somewhere? that should contain some details about the input devices it finds
<srk>
ongy: \o/ gonna give it a go, been a while
<ongy>
post issues! I need some motivation lately, since it works for my current needs
<srk>
yeah, I will even post code when current heat wave is over :D
<Dedalo>
sphalerite I have installed sway and wayland using `nix-env -i`, enabled the OpenGL support in configuration.nix, then I run sway from the command line, it starts but I can't do anything, I can't even switch to another console with ALT + F2.
<sphalerite>
Dedalo: and this isn't just because you haven't configured any key bindings?
<ongy>
Should be [Ctrl]+[Alt]+F# to switch ttys, not just [Alt]+F#
vidbina_ has joined #nixos
<sphalerite>
Dedalo: after installing weston and having `bindsym $mod+Return exec weston-terminal` in my config, I can get a terminal using super+return
<sphalerite>
and I can quit sway using super+shift+e
<Dedalo>
sphalerite possible, I'm new to sway and I don't know where I should put the configuration in NixOS. I suppose I should have a .config dir somewhere, but I can't find it. Where NixOS put the sway configuration?
<yorick>
aminechikhaoui: my current workaround is "use ap-southeast-1, that seems to work"
<Taneb>
srhb: pong
<yorick>
aminechikhaoui: in general, it seems that nixops is in need of maintainers
<Dedalo>
ongy well, it's Fn + Alt + F# apparently
<sphalerite>
Dedalo: sway uses the config included in the package by default. It also looks at i3's config location
<srhb>
Taneb: Did you figure out what on earth was going on with the invalid jobset specifiers? I've just hit it. It appears to be an UI bug only, thankfully, but was it related to numeric jobsets (as in PR numbers)?
<sphalerite>
Dedalo: to be sure, you may want to use sway -c path-to-your-config to ensure it's getting exactly that condig
<sphalerite>
config*
<Dedalo>
sphalerite I didn't touch the configuration because I don't know where is stored
<Taneb>
srhb: yeah! Changing from "1912" to "pr1912" fixed it!
<ongy>
huh, that's weird. Maybe something can remap your Fn key? IME that doesn't even reach the system
<srhb>
Taneb: Weird!
<sphalerite>
Dedalo: if you installed sway using nix-env, you can copy the default config from ~/.nix-profile/etc/sway/config and work from there
<srhb>
Taneb: Thank you. :)
<Dedalo>
ongy dunno, I got this laptop two days ago, it's an X1 Carbon
<{^_^}>
[nixpkgs] @xeji merged pull request #44953 → jameica: add darwin support → https://git.io/fNdlb
<{^_^}>
[nixpkgs] @xeji pushed commit from @flokli to master « jameica: add darwin support (#44953) »: https://git.io/fNFel
<sphalerite>
Dedalo: `man sway` also explains where sway looks for its config
<{^_^}>
[nixpkgs] @xeji pushed commit from @LightDiscord to master « protonmail-bridge: 1.0.5-1 -> 1.0.6-1 (#44950) »: https://git.io/fNFeg
<rauno>
srk, well that didn't work, still it can't find the disk by uuid :|
<srhb>
Taneb: I see. Nasty surprise!
<Dedalo>
sphalerite thank you, this should help. I'm sorry but I'm new to NixOS and everything is new, is not like any other Linux distro, so I need to get use to it :-)
lopsided98 has quit [Ping timeout: 240 seconds]
<sphalerite>
Dedalo: were you using sway on your previous distro as well?
<infinisil>
LnL: Huh, it should find hasktags, nix-index searches through haskellPackages by default
lopsided98 has joined #nixos
arjen-jonathan has joined #nixos
<infinisil>
,locate bin idris
<{^_^}>
Found in packages: haskellPackages.idris
reinzelmann has quit [Quit: Leaving]
<Dedalo>
sphalerite I'm not used to Linux on the desktop, I have been using macOS for the last 10 years, I'm in the process to switch
<sphalerite>
Dedalo: I'd suggest sticking with more mainstream windowing systems for now then. Sway and nixos's support for sway aren't really mature yet
<rauno>
if i deploy with nixops then /etc/nixos directory isn't being used anymore, am i right ?
<sphalerite>
rauno: yes
<rauno>
hum, why the hell isn't it booting and finding my disk then :)
<Dedalo>
sphalerite I should go with i3 + Xorg instead?
<adamt>
Dedalo: i3 works without too many surprises on NixOS
<sphalerite>
Dedalo: for example. Although that's probably still a big change from macOS.
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « pony-stable: 0.1.4 -> 0.1.6 (#44715) »: https://git.io/fNFv4
<Dedalo>
sphalerite I know, but that's the way I want my desktop, on macOS I didn't have any choice. I don't like KDE or Gnome, I want to be able to open firefox or chrome in a console
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « mate.mate-media: 1.20.1 -> 1.21.0 (#44745) »: https://git.io/fNFvV
<thekolb>
Ok so I need to set XDG_CACHE_HOME to a local path, but my builder expects it to be an absolute path. Surely there is a variable that holds the path the derivation where I can put intermediary files?
<srk>
both should give you pretty much the same if configs and nixpkgs matches
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « cstore_fdw: 1.6.0 -> 1.6.1 (#44792) »: https://git.io/fNFJE
<rauno>
nixpkgs are different..
<thekolb>
Okay so I can use $TMP in buildPhase, I had hoped I could use an equivalent variable in the derivation
<rauno>
older generation is 17.09 and nixops is deploying 18.03
<srk>
rauno: could possibly be a problem if they are too different. I would still suspect missing module
<rauno>
and there's a chance that nixos-generate-config doesn't add it ?
<rauno>
as I regenerated hardware config in a sperate directory after doinng the nixops deploy
<ongy>
huh, does the nix daemon run in a restricted cgroup or something odd? It's still running out of memory installing ghc, but looking at htop it's not even close to full at any point
<srhb>
ongy: Helpful. :-) Well, my guess still applies.
<ongy>
srhb: if larger chunk is ~2G and it somehow avoids overcommit, then maybe
<srhb>
ongy: Hm, yeah...
<srhb>
Not sure indeed.
<rauno>
ongy, do u have swap?
<srhb>
Still, with that current bug, I think the only viable solution is to add swap until things work
hakujin3 has joined #nixos
<ongy>
rauno: no
<rauno>
with 2g memory i would indeed try the swap
<srhb>
(Or attempt a newer/fixed/workarounded version of nix itself)
<ongy>
4G total, the 2G is what's still available (looking at htop) at the very least
<ongy>
if that exists? What's the easiest way to get that?
<srhb>
If the fix is in nixUnstable (perhaps someone can confirm) and that version of nixUnstable is in your channel (which channel are you on?) you can set nix.package to nixUnstable
vodurden has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<srhb>
Caveat emptor.
<ongy>
18.03
ng0 has quit [Quit: Alexa, when is the end of world?]
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @borisbabic to master « pythonPackages.browser-cookie3: init at 0.6.4 (#44562) »: https://git.io/fNFUj
Drakonis has joined #nixos
<srhb>
ongy: It has a lot of constant space fixes, but maybe not all of them. *shrug*
hakujin3 has quit [Ping timeout: 240 seconds]
<ongy>
cool, how do I switch to that? Change my channel, nixos-rebuild switch and then add xmonad to the configuration again?
alexteves has joined #nixos
<srhb>
You could just try the one that's in your current channel. Disable the haskell stuff, set nix.package = pkgs.nixUnstable, rebuild, try re-adding haskell
<srhb>
This is unstable software and all that jazz.
<srhb>
And my recommendation is adding swap :P
<sphalerite>
ongy: also if you don't want to use "real" swap, zram can be very helpful for this partiuclar issue
<srhb>
sphalerite: Good point! I forgot about that
rauno has quit [Ping timeout: 244 seconds]
alexteves has quit [Remote host closed the connection]
iyzsong has joined #nixos
<ongy>
does it actually? I thought that's still 4G in the end, just that less of them are used once the system decides to swap
<thekolb>
My builder tries to open libssl via dlopen and can’t find it. I suspect nix expects builds to use ld and sets NIX_LDFLAGS to that effect?
<sphalerite>
well you create a zram device, format it as a swap partition, and swapon it
<sphalerite>
then it'll start swapping stuff into compressed land
<{^_^}>
[nixpkgs] @dotlambda pushed 38 commits to python-unstable: https://git.io/fNFTR
<sphalerite>
thekolb: at build time, yes. At run time, stuff is usually found via executables' RUNPATH entries
<inquisitiv3>
Has there been any discussions regarding switching from Grub to Systemd-boot as a bootloader for UEFI systems?
<sphalerite>
inquisitiv3: systemd-boot is currently the default AFAIK.
<timokau[m]>
Since switching from arch to nixos, mbsync fails to fetch one of my mail accounts (same config as before). Does anybody have experience with that?
<timokau[m]>
`Error: SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (No Kerberos credentials available (default cache: FILE:/tmp/krb5cc_1000))`
<inquisitiv3>
timokau[m]: Different version?
<inquisitiv3>
Thinking changes in the configuration format.
<timokau[m]>
inquisitiv3: isync (mbsync package) wasn't updated since 2017 so I don't think so
<timokau[m]>
I'm not 100% sure but arch should be as up to date as nix
<timokau[m]>
It looks like it is not really an mbsync error but an error in the authentication library it uses
<alexteves>
how can I add memtest to grub? I tried adding 'boot.loader.grub.memtest86.enable = true;', followed by 'nixos-rebuild switch' but it didn't show up
<ongy>
srhb: now it works :0
<thekolb>
sphalerite: sadly I won’t get around it trying to load libssl at build time or run time, so I think I might need to set LD_LIBRARY_PATH but I am not sure how given the builder environment only exposes the libssl’s lib in NIX_LDFLAGS
<srhb>
ongy: Fantastic :)
<srhb>
ongy: That's with nixUnstable from nxos-18.03?
<sphalerite>
thekolb: typically we wrap that sort of thing with a script that sets LD_LIBRARY_PATH.
<ongy>
I think! I have xmonad installed now? now I just need to find out which version and how to plug my overgrown xmonad.hs
<sphalerite>
thekolb: lib.makeLibraryPath can be helpful for generating the actual value as above
<srhb>
Er, probably s/nixpkgs/nixos on your system (your channel name)
<thekolb>
sphalerite: cool thanks!
<{^_^}>
[nixpkgs] @wigust opened pull request #44980 → ansible: install man pages → https://git.io/fNFkz
freeman42x]NixOS has joined #nixos
<ongy>
0.13 =.= Well, that's old
<infinisil>
How so?
<infinisil>
0.14 only came out very recently
<ongy>
it's the latest one that got released, but that's because xmonad releases are a pipe dream
<timokau[m]>
Maybe I should just switch from mbsync to offlineimap, at least the latter looks like it is maintained
<ongy>
it did? I must have missed that
<srhb>
ongy: We generally don't do major bumps in the stable releases
<srhb>
Yeah, july 30.
<srhb>
(On Hackage, at least)
<ongy>
ohh, 2 weeks ago. That's cool
<ongy>
nobody bothered to update the irc-channel topic o.0
<srhb>
And if you use the xmonad window manager setting in configuration.nix, your normal xmonad file should just be picked up automatically.
<srhb>
It's not very magical.
<infinisil>
Oh! I've been meaning to make this more deterministic
<infinisil>
Currently it compiles your xmonad config at runtime..
<infinisil>
Which got me all sorts of problems
<ongy>
can I force xmonad from unstable channel? I guess that would require to pull about every haskell package from there?
<srhb>
ongy: Yes, no.
<srhb>
(Unless the dependencies require it)
thetet has joined #nixos
<infinisil>
Well if you don't want to recompile it, then you need all that channels haskell packages
thetet has left #nixos [#nixos]
<{^_^}>
[nixpkgs] @Ekleog opened pull request #44981 → buildRustPackage: allow patches to fix Cargo.lock → https://git.io/fNFIf
<Lears>
Is 0.14 working with unstable? I'm using it via overlay pulling in git source.
<srhb>
Lears: I'm using it.
<adamt>
Is it possible to force the `nix` cmd to output as if it was attached to a tty? It seems like it does something different depending on whether it think it's attached to a tty, or not (like missing progress bar when not).
<timokau[m]>
inquisitiv3: In case you care: the issue was the sasl implementation used by mbsync. Nix uses `cyrus_sasl`. Switching that to `gsasl` fixes my issue. I'll see if it makes sense to make a PR for that.
<srhb>
adamt: I don't know, but I imagine the progress bar would look... Strange.
fendor has quit [Ping timeout: 248 seconds]
<infinisil>
adamt: Pretty sure the answer is no, unless you use some hack to simulate a tty
<infinisil>
There's some utilities for that I think
ericsagnes has joined #nixos
<ongy>
you could LD_PRELOAD away isatty(), but it's probably a horrible idea
<Lears>
Good to know, srhb. I guess I can clean up my overlays a bit then.
<adamt>
srhb: It probably wouldn't. I'm just trying to capture the output (which will be kinda sad looking) while also displaying it to screen, but wrapping the stdout in a writer (Go) that just fans out the input to multiple other writers.
<adamt>
ongy: I thought about it, but that would make this the worlds ugliest Go app. :P
<srhb>
Lears: Here's a tip, add an assertion to your overlays that throws when the super.version no longer matches the version you made the overlay for
<Taneb>
I seem to have a problem where Hydra's GithubPulls plugin has authorization but GithubStatus does not
<sevcsik>
gistering an Oracle account). Is there a way to handle this in Nix (similar to Gentoo's fetch restricted ebuilds)?
<gchristensen>
Sorry, sevcsik, I think your question got ... cut off ... but at the beginning?
<gchristensen>
it starts at "gistering an Oracle account)."
<sevcsik>
... Hi, I'm tying to write a nixpkg for sqldeveloper. Unfortunately the package can be downloaded only manually (after registering an Oracle account). Is there a way to handle this in Nix (similar to Gentoo's fetch restricted ebuilds)?
<sevcsik>
yes, I noticed, sorry :)
<gchristensen>
ah yes
<srhb>
sevcsik: The oraclejdk is an example of such a package.
<Myrl-saki>
myrl@myrl:~/Dev/ASCIIVN[master•]$ nix-build channel:nixos-unstable -A 'pkgsCross.mingwW64.callPackage ./. {}'
<Myrl-saki>
error: attribute 'callPackage ' in selection path 'pkgsCross.mingwW64.callPackage ./. {}' not found
<Myrl-saki>
Oh, wait.
<Myrl-saki>
I guess -A is not what I want.
<Myrl-saki>
Still.
davenpcm has joined #nixos
<flokli>
sevcsik: there already is a sqldeveloper package
jperras has joined #nixos
<Myrl-saki>
Yeah, um.
<Myrl-saki>
Is there like fetchChannel or something
<sevcsik>
flokli: ah, yes, indeed. I just missed it because it doesn't appear in the package search.
<sevcsik>
problem solved, then!
<sphalerite>
Myrl-saki: how about nix-build -I nixpkgs=channel:nixos-unstable -E 'with import <nixpkgs> {}; pkgsCross.mingwW64.callPackage ./. {}'
<Myrl-saki>
sphalerite: Oh, thanks.
<Myrl-saki>
Yeah, that should work.
<flokli>
sevcsik: yes, that's all the unfree stuff. the sqlplus/instantclient/cx_oracle stuff is packaged too (without a need to set strange oracle env vars), in case you want to get to these databases programmatically. saved my sanity once or twice already now :-)
<Myrl-saki>
Welps, same problem with cmake though.
<Myrl-saki>
error: Package ‘libkrb5-1.15.2’ in /nix/store/419f0gjfvjk6mmxl4fa24hkfs0yr7q78-nixexprs.tar.xz/pkgs/development/libraries/kerberos/krb5.nix:74 is not supported on ‘x86_64-pc-mingw32’, refusing
<Myrl-saki>
to evaluate.
<Myrl-saki>
I honestly don't wanna use cmake anymore lol
<flokli>
sevcsik: you should keep all the binaries in your downloads folder, as they get garbage-collected every one and then
<sevcsik>
flokli: good to know. is there any way to search the unfree packages online? or only in git?
<Myrl-saki>
OTOH, I'm porting this to Rust(no, seriously), so I'll, uh, hope rust works instead.
endformationage has joined #nixos
<flokli>
sevcsik: cd $nixpkgs_git;ag $packageName ;-)
<flokli>
this is how we roll
<sphalerite>
argh. On one of my users, I currently have 3 different sizes of stuff. A, tiny (regular-DPI size on Hi-DPI display); B, the right size; and C, huge, where scaling seems to be getting applied twice >_>
<Myrl-saki>
Anyways, found why. Apparently, buildRustPackage adds git to the buildInputs.
<inquisitiv3>
gchristensen: I'm thinking in of creating a new version controlled `configuration.nix` after I got my system up and running. I would like to generate a clean config file w
<inquisitiv3>
when I begin use git.
<ongy>
symphorien: ahh, that looks more like what I wnated. thx
<thekolb>
so I noticed machines deployed with nixops don’t have a configuration.nix?
<clever>
thekolb: thats normal
iyzsong has quit [Ping timeout: 260 seconds]
<thekolb>
clever: trying to change the machine from within itself is probably a bad idea right? I don’t have access to the deployment machine right now and wonder if I can somehow make it redeploy itself (non-rebooty changes obviously, basically services.postgresql.enable=true)
<clever>
thekolb: yeah, you cant really change it with nixos-rebuild
<gchristensen>
thekolb: I break nixos-rebuild on nixops-managed systems because you'll break it
<sphalerite>
sb0: I think you'd need to set the appropriate permissions on /dev/rfkill. For a start, try `sudo setfacl -m u:$USER:rw /dev/rfkill` and see if that enables you to use rfkill
<clever>
and i believe a udev rule can automate that
<sphalerite>
sb0: since the default permissions on it are root:root, ug+rw, o+r, you'd need to set up a udev rule or something to set its ownership to a different group or set an ACL for it
<sb0>
yes, it does
<sb0>
isn't there something for it in nixos already? it
<sphalerite>
no, but if you're willing to make a PR... :)
<sb0>
it's a pretty common problem that the user GUI has to enable/disable e.g. bluetooth...
<sphalerite>
yes, but that's usually done via the bluetooth daemon
<{^_^}>
[nixpkgs] @volth opened pull request #44986 → [wip] resolvconf to respect config.networking.nameservers → https://git.io/fNFnr
<sb0>
well, it doesn't work right now for me in KDE due to this rfkill permission problem
<sphalerite>
network-manager manages the wifi killswitch
<sb0>
this setfacl command also fixed KDE
tyil has joined #nixos
<sphalerite>
huh, I thought plasma used network-manager
<tyil>
I'm trying to install nix using `curl https://nixos.org/nix/install | sh`, but it fails with a permission denied on line 65
<sb0>
yes. it uses network-manager for wifi and that works fine; but bluetooth is apparently different
<tyil>
if I alter the script to use sh explicitly to call the script, it seems to work
<sphalerite>
aaah right
<sb0>
well I actually haven't tried KDE rfkill for wifi, since I always enable it
binaryphile has joined #nixos
<sb0>
but switching networks etc. works fine
<clever>
tyil: what does `mount | grep noexec` print?
<tyil>
however, it then fails with error: cannot connect to daemon at '/nix/var/nix/daemon-socket/socket': No such file or directory
<tyil>
clever: quite a few mointpoints, including /tmp
<tyil>
so that explains that error
<clever>
yep
hakujin3 has joined #nixos
<tyil>
that leaves the daemon issue, sadly
<clever>
it failed to even start the install, so i can see how things would be broken
<tyil>
I got that specific script to work by calling it with sh from the install script, though
<tyil>
I remounted /tmp with exec, and redid the curl | sh command, and the daemon connectivity issue remains :/
<clever>
tyil: is there a nix-daemon.service somewhere in /etc/systemd/?
hakujin3 has quit [Ping timeout: 240 seconds]
<tyil>
I hope not, I'm not using systemd
<tyil>
(and I checked to verify, there is indeed no /etc/systemd directory)
<clever>
it might be that the new install script defaults to expecting it
<tyil>
:/
<clever>
its been changed recently
<clever>
but it should also support a --single-user i think
<tyil>
that sounds like a bad idea
<tyil>
the script says "performing a single-user installation of Nix..." after the dl
<clever>
ah, then not needed
<clever>
what is $NIX_REMOTE set to?
<tyil>
"daemon"
<clever>
unset it
<clever>
thats claiming its in a multi-user mode
<tyil>
re-run the installer after unsetting?
<clever>
yeah
<tyil>
ah, it installed correctly now
<tyil>
thanks clever :>
rardiol has joined #nixos
<clever>
yep
fresheyeball has joined #nixos
<fresheyeball>
how can I limit journalctl's collection size?
<Dedalo>
How can I delete the `~/.nix-profile/etc` files that are not useful anymore? I have installed then removed a package but there is a file still there and it's read only.
<clever>
Dedalo: does `nix-env -q` list those packages?
<fresheyeball>
clever: can I clear it out?
<fresheyeball>
what happens if it gets too big?
<clever>
fresheyeball: there are also the vacuum family of options in `man journalctl` to do a one-time clearing
<clever>
fresheyeball: the only thing that happens when it gets big, is that it uses more disk space
robstrr has joined #nixos
<tfc[m]>
from within a nix expression where i have `x = ./someLocalFile.txt`, how can i transform this into a valid /nix/store....someLocalFile.txt path?
<clever>
tfc[m]: just treat x as a string
<tfc[m]>
clever: that converts it to a normal path outside of /nix/store. the thing is... i want to reference it from within a vm expression in an integration test.
<clever>
tfc[m]: where are you using x ?
__Sander__ has quit [Quit: Konversation terminated!]
hyper_ch2 has quit [Quit: Page closed]
<tfc[m]>
clever: i am writing a test that needs to move a zip file into the /var/www/ folder of the wwwserver VM. in `<nixpkgs/nixos/tests/bittorrent.nix>` they do it with `file = pkgs.hello.src;` and `$tracker->succeed(" cp ${file} /tmp/data/foo");`
<tyil>
this issue might be chromium specific, but after installing chromium and trying to run it, I get this error: https://p.tyil.nl/z33e
<tfc[m]>
and i suspect this only works because `pkgs.hello.src` is a valid /nix/store/.... path
<tyil>
(using nix on Funtoo)
acowley has joined #nixos
<tfc[m]>
clever: so i need some function that takes my local ZIP file and copies it to the /nix/store so i can reference that, right?
<clever>
tfc[m]: that happens entirely automatically when you do things like src = ./local.zip;
<tfc[m]>
clever: ok, but it does not seem to happen in the repl, or is tryin that in the repl stupid?
<clever>
tfc[m]: the repl checks the type, and doesnt treat it as a string
<clever>
> "${./.} can force it"
<{^_^}>
"/nix/store/34564rwjqc8lwii2b683a2dgmbqz24dn-nixpkgs can force it"
<Dedalo>
clever `nix-env -q` doesn't list, but `nix-env -qa` does list it
<tfc[m]>
clever: oooh, i see. that is very helpful. thank you clever!
<clever>
Dedalo: what is the name of the thing in ~/.nix-profile/etc you want to get rid of?
<tfc[m]>
this integration test thing is so awesome. too bad it's using perl. :D
<clever>
tfc[m]: thats the same thing the torrent test is doing, cp ${file} ...
<Dedalo>
clever `i3`, that I have installed before
<clever>
tfc[m]: yeah, i rewrote my own usecase specific test in lua just to avoid that, lol
<tfc[m]>
clever: yeah i just thought that this is a nix path because its taken from a derivation that is already in my nic store.
<clever>
Dedalo: ls -lh ~/.nix-profile/etc/i3
<clever>
tfc[m]: in the case of hello.src, its a fetchurl based derivation
<tfc[m]>
clever: are there any attempts to rewrite such stuff in any other nice language? i am not sure if python was much better...probably not. something statically typed would be great.
<hyper_ch>
joepie91: will retry after rebooting at home :) thx
<joepie91>
hyper_ch: note you only need to restart the bluetooth service
<joepie91>
not the entire system :)
<bkchr[m]>
joepie91: your headset does not connect after resume? Or what is the error?
<hyper_ch>
joepie91: I understood that... but I'll reboot anyway when I'm at home
<acowley>
clever: Thank you, I'll try that. I couldn't find any mention of xrandr in the docs. You wouldn't happen to know wht the failure mode is if a different monitor gets plugged in, would you?
<joepie91>
bkchr[m]: it.. sort of connects, presumably fails somewhere in the process, headset believes it is connected, bluez believes it is not, seeing journalctl spam like https://bugzilla.redhat.com/show_bug.cgi?id=1534857#c1
<joepie91>
does not appear as an audio device
<symphorien>
what is the user specific equivalent of /etc/nix/nix.conf ?
<clever>
acowley: it will just log the error to the journal and continue
Ariakenom has quit [Ping timeout: 244 seconds]
tv has quit [Ping timeout: 276 seconds]
<sphalerite>
symphorien: ~/.config/nix/nix.conf
<symphorien>
thanks
<acowley>
clever: Thank you!
kisik21 has joined #nixos
<bebarker>
Getting some mysterious issues when I try to add a new package to nixpkgs (which I've done before but never had this issue): `nix-env -I nixpkgs=/home/brandon/workspace/nixpkgs -i ats-pkg` results in `selector 'ats-pkg' matches no derivations`; here is a PR that results in a different but equally catastrophic error: https://github.com/NixOS/nixpkgs/pull/44887
<{^_^}>
#44887 (by bbarker, 2 days ago, open): ats-pkg init at 3.2.1.8
<clever>
bebarker: nix-env basically ignores NIX_PATH and -I by default
<clever>
bebarker: you need to use -f '<nixpkgs>' to make it search the path
<sphalerite>
lumiguide do automatic rollback stuff
<manveru>
is there a module for that yet?
<clever>
sphalerite: ah, that looks like it does most of whats needed
<bebarker>
Trying to get a Haskell Cabal package to build in nixpkgs - is it advised to get all cabal dependencies building as nixpkgs first?
<bebarker>
I assume so unless Cabal is somehow a special case in nix
<pie__>
sphalerite, iirc that uses systemd
<sphalerite>
pie__: yes
<pie__>
clever, what do you mean started without a rebuild
<clever>
pie__: i was thinking use at to start a timer to activate the current build, activate the new one, and if the network doesnt come back, the timer fires and undoes it
<clever>
and if the network does come back, cancel the timer
<hyper_ch>
hmmm, spl fails to build on nixos-unstable-small with 4.18 kernel :(
<ocharles>
If I have a `nixpkgs` and an overlay, how do I apply the overlay to the nixpkgs? I would normally do it when I import nixpkgs and pass an `overlays` parameter
<acowley>
So that nix repl patch by dtzWill does seem to do the trick. Downside is that nix is a somewhat slow thing to build.
<gchristensen>
ocharles: you have to import nixpkgs again
<gchristensen>
you can do that via import nixpkgs.path { ... }
<ocharles>
Can I do that with import (nixpkgs.src) or something?
<inquisitiv3>
clever: I read that, but is that line up to date?
<clever>
i think your example may also work
<acowley>
I had it recommended me to me that one use /dev/disk/by-uuid/... and it actually turned out to save my bacon
<inquisitiv3>
E.g. can't find the option `preLVM`.
<acowley>
I use the preLVM option in my configuration
<tilpner>
Hey clever, remember when I killed my server with --ignore-liveness? The issue that caused me to do that happened again. Any idea how to force retransmission of a store path (nix copy) without first making sure that path is dead?
<tilpner>
(In this case I just disabled the service and collected everything)
jperras has quit [Ping timeout: 272 seconds]
<symphorien>
tilpner: nix-store --repair-path ?
<clever>
tilpner: there is no need to re-copy the path, nix ensures that that is never needed
<inquisitiv3>
clever: The default value for the option is already `true`.
<clever>
tilpner: why exactly do you want to re-copy it?
<clever>
inquisitiv3: ah, didnt notice that
<tilpner>
clever - I checked the sha256sum on both sides, and they differed. The server-side storepath was 4096 bytes larger than the path on my laptop
<clever>
tilpner: run `nix-store --verify-path /nix/store/foo` on both ends
<tilpner>
symphorien - I tried those, but of course the server can't rebuild them. --verify-path also found no issues
<clever>
tilpner: did the client garbage collect the path, then rebuild it?
<inquisitiv3>
clever: Another reason I'm note sure is that I got an error message after adding that to my file. But it's possible I did a mistake.
<symphorien>
tilpner: by adding a file as a substituter, maybe it can re-copy them ?
<clever>
inquisitiv3: what error did you get?
<clever>
tilpner: if --verify-path says its good, then --repair-path will probably not want to change it
<tilpner>
Not sure what you mean. I deployed a new generation that had the service that needed this file disabled, then ran nix-collect-garbage -d as root on the server, then deployed another generation with the service enabled again. This forced the file to be copied again
<clever>
tilpner: what file are you trying to force a re-copy, and how exactly is it differing?
<inquisitiv3>
clever: I think it was a syntax error, but I'm not sure and can't find the output now.
<clever>
inquisitiv3: you can run `nixos-rebuild build` to check the file again
<inquisitiv3>
clever: But it was after successfully finishing the installation and running the command `nixos-install`.
<tilpner>
clever - Unfortunately I did not keep those files. I hashed the first and last 1MB of each, and there was no similarity, so I can't tell how exactly they differed. They were squashfs files
<clever>
tilpner: its possible that mksquashfs is not deterministic
<clever>
tilpner: given the same input files, it can produce different squashfs files
<clever>
which are effectively identical
kisik21 has joined #nixos
<clever>
and if your client GC's one, it has to recreate it, and then the clients one is technically wrong
<d1rewolf>
is there a way to cache things like nix-env -qaP ? It ends up being slow when searching on my system, so I'll typically dump "nix-env -qaP > /tmp/pkgs" and then grep for stuff out of there.
<clever>
d1rewolf: the `nox` tool will cache that, `nix search` also uses multiple threads to speed it up i think
<kisik21>
d1rewolf: I knew I'm not the only one to do so...
<sphalerite>
d1rewolf: `nix search` caches it and provides a nicer UI too
<sphalerite>
(searches descriptions as well)
<d1rewolf>
k, thx guys
<tilpner>
clever - I'm quite sure it was a new derivation, i.e. there was no GC between first build and nix copy. I can't test any of that now, unfortunately :/
<sphalerite>
I used to use nox but now I almost exclusively use `nix search`
dfranke has quit [Quit: leaving]
<inquisitiv3>
Can a set span several lines if it's located inside a list?
<inquisitiv3>
Reading Nix manual, but couldn't find an answer.
<clever>
inquisitiv3: yes
<Dezgeg>
yes, whitespace or newlines is not significant
<Baughn>
I wish `nix search` would automatically rebuild its cache when it's old.
<Baughn>
As it stands, I ended up aliasing it to `nix search -u` because otherwise I'd forget forever.
<kisik21>
How to add Perl modules to irssi? I need to launch some scripts that require Perl modules. Would that involve overriding irssi derivation and building it from source?
vidbina_ has quit [Ping timeout: 272 seconds]
<sphalerite>
Baughn: or you could remove ~/.cache/nix/package-search.json at regular intervals? (cronjob or whatever)
<Baughn>
sphalerite: I *could*.
<Baughn>
I think what I'll do is add it to my nixos build. Somehow. I feel like that should be happening already.
<Baughn>
I suppose right now it's able to search a package set that isn't the one it's from, but most of the time that's not what it's doing. It should be possible to build a cache into the package set.
<Baughn>
...which could be used in either case, actually.
<inquisitiv3>
I asked this question yesterday, but I'm still indecisive about it. What is the cleanest and best way to version control configuration.nix? Is it to create a git repo as root, create a symbolic link to a repo located in $HOME for a regular user or something else?
<inquisitiv3>
It just feels wrong to run a tool like git as root, but my fear may be irrational? I'm thinking from a security perspective.
<Mic92>
inquisitiv3: I created the repository as a normal user in my home and made a symlink to /etc/nixos
<Dezgeg>
I symlink /etc/nixos/configuration.nix to my user's home
<Mic92>
you can also alter the NIX_PATH instead
<Mic92>
to redirect nixos-config to the right file
nly has joined #nixos
<samueldr>
I chowned /etc/nixos to my user
<samueldr>
I mean, the same issues would stand wherever it exists, right?
<inquisitiv3>
samueldr: I guess so. Just want to know what the different options is. Want a clean solution to it. It seems that most people just symlink it to a local file.
<inquisitiv3>
Mic92, Dezgeg: Thanks for the input.
<samueldr>
I think there are as many ways as there are people :)
<samueldr>
(my /etc/nixos/configuration.nix is gitignored, and it `import ./machines/[hostname]`
trebuh has joined #nixos
<hyper_ch>
Mic92: yey
<inquisitiv3>
samueldr: Just want to check. It shouldn't be any security problems with that setup? You still need to authenticate yourself with `sudo` or `root` to actually realize the changes in the file to the machine.
<samueldr>
inquisitiv3: unless I'm blind, there shouldn't be
<samueldr>
the same applies if it's elsewhere, e.g. rogue $software modifies it
<Dezgeg>
except if you've enabled auto upgrades beforehand
nly has left #nixos [#nixos]
<dmj`>
Hi
<dmj`>
I just nix-build’d something and have a result symlink
<dmj`>
how do I nix-env install it
<dmj`>
nix-store -r result ?
<dmj`>
I want to keep it around so the gc doesn’t get it
<infinisil>
dmj`: nix-env -if .
<infinisil>
(or whatever file you used in nix-build)
<dmj`>
infinisil: thanks!
<dmj`>
cabal2nix is badly broken right now, so have to patch it locally and throw it into my profile
<dmj`>
should probably put this into my ~/.config/nixpkgs/config.nix too
arbxs has quit [Ping timeout: 256 seconds]
<sphalerite>
dmj`: you can also nix-env -i path/to/result
<acowley>
Two questions: 1) Can it populate environment variables like `cmakeConfigurePhase`? 2) Is there a way to globally deny it on reboot so re-opening console windows don't all pile into a pit of automated rebuilding at once?
<clever>
acowley: if you put cmake into the buildInputs, then the cmakeConfigurePhase is automatically set when the stdenv is loading
Fare has joined #nixos
<{^_^}>
[nixpkgs] @freepotion opened pull request #44992 → ivan: info update → https://git.io/fNF1L
rhomboidcactus has joined #nixos
<acowley>
clever: It's in nativeBuildInputs
<clever>
that also works and is better
<dmj`>
sphalerite: thought I tried that hmmm
<freepotion>
Please look at my PR. I'm back with a new account.
<acowley>
clever: But the problem is that `cmakeConfigurePhase` is not in the environment direnv constructs
<sphalerite>
dmj`: nix-env -i result won't work (it searches for result in .nix-defexpr), you can do nix-env -i ./result though
<clever>
acowley: are you using nix-shell?
<acowley>
clever: I usually use nix-shell, and everything works fine there, but I was trying out direnv and its nix integration since a few nix people have recommended it.
<clever>
ah
<acowley>
It is almost really nice
<acowley>
But I'm finding its failure modes are overwhelmingly not nice for the way I tend to do things
<infinisil>
,pr freepotion
<{^_^}>
freepotion: 0. Sorry. 1. If you complain about PR being in limbo, always provide a number («I have an unmerged PR (#23924)…»), bot will print PR title and it might bring you an impulse-merge. 2. Please look up who commits similar work and ping these people (or request-review), keeping up with all the PRs is not really possible.
<infinisil>
I guess not entirely relevant, but you should at least post a link to your PR
<bebarker>
Haskell people: is my assumption that it is generally better to specify haskell dependencies that are nixpkgs instead of just letting haskellPackages.callPackage do its magic and build the library of hackage (assuming said dependency exists already in nixpkgs)? I assume this would allow better caching and maybe better reproducibility, but don't know how it works in practice
<{^_^}>
#44836 (by Izorkin, 3 days ago, open): qemu-ga: fix working guest-shutdown
<acowley>
bebarker: I wouldn't want to argue "better", but I rely on nixpkgs versions until something doesn't work for exactly the reasons you identify.
<{^_^}>
[nixpkgs] @vcunat pushed commit from @hedning to staging-next « {qt4,qt3}: Fix breakage after eeb9837beba38e0f5c5e26357e478f74a7f6bc7c »: https://git.io/fNFMk
<bebarker>
acowley, great - looks like I may have to try it anyway - the last dependency for the haskell pacakge I'm trying to build just failed locally.
<bebarker>
(via cabal/hackage)
justanotheruser has joined #nixos
nikki93 has joined #nixos
<freepotion>
infinisil: beecause I created and maintain this package. Just for privacy reasons, I created a new account on github. I created and support this pack. Just for privacy reasons, I created a new account on github. So I don't write about it in the PR and in commit message
<freepotion>
because
<nikki93>
are there any utilities out ther to use a nix package on nixos to make a self-contained linux binary or tarball that can be distributed to other distros?
<freepotion>
sorry for the repetition)
ryanartecona has quit [Quit: ryanartecona]
<bebarker>
nikki93, i don't know if it has been tried, but flatpak or snap might be worth looking into (probably flatpak). I've used other container tech with nix that is less focused on individual apps (singularity and docker)
<freepotion>
infinisil: You may see the history, yesterday I removed myself from the maintainers list
<infinisil>
freepotion: Well open source work needs communication, just not providing a PR description because of privacy reasons isn't acceptable, even when it's just a maintainer update. At least fix the commit message and reply in the PR
<infinisil>
And if you think you can prevent anybody linking your new account to the old one then you already failed at that
<{^_^}>
[nixpkgs] @vcunat pushed 95 commits to staging-next: https://git.io/fNFDF
<vcunat>
95 commits? I feel so productive!
<gchristensen>
you're a star, vcunat!
tnks has joined #nixos
reinzelmann has quit [Quit: Leaving]
ryanartecona has joined #nixos
<acowley>
I am failing at getting cabal to build a project with an unreleased dependency on Travis CI. Does anyone have a nix travis setup for a haskell pacakge that uses a git reference for a dependency? Wrestling with this feels wildly unproductive.
<freepotion>
infinisil : ok, I did it. It seems that you are right :( But you could not tell anyone about that? :)
yosemitesam has joined #nixos
<symphorien>
Well the logs of the channel are public, so...
smolboye has quit [Ping timeout: 248 seconds]
chpatrick has quit [Quit: Connection closed for inactivity]
<tilpner>
Your username will show up in Google results
<freepotion>
:( epic fail then
mayhewluke has quit [Ping timeout: 260 seconds]
mayhewluke has joined #nixos
<bebarker>
tilpner, wow, that is awesome, didn't know about nix-bundle ... may have a use for it this week
<gchristensen>
sorry vcunat, you've hit your commit limit for the day
gurmble has joined #nixos
grumble is now known as Guest76306
Guest76306 has quit [Killed (weber.freenode.net (Nickname regained by services))]
gurmble is now known as grumble
<yosemitesam>
Hey guys. I am trying out nixos in a vm and wanted to install qtile, a window manager written in python. But the version in nixpkgs is for python 2.7, while my config only works with python 3.x (quite complicated configuration). Is it hard to rewrite the qtile package to use python3 and/or could somebody give me a bit guidance to get it working? It would be very appreciated!
binaryphile has quit [Ping timeout: 240 seconds]
<vcunat>
:-)
<samueldr>
gchristensen: if you restrict the activity we'll get 18.09 by ~2021
<gchristensen>
hehe
<trebuh>
Hello, I tried configuring my server to use BTRFS RAID over LUKS (2 encrypted partitions but only the first one is mounted) How can I state in my configuration de ask for the passphrase for both of the partitions?
<{^_^}>
[nixpkgs] @vcunat pushed to staging-next « texinfoInteractive: fixup build by using older perl »: https://git.io/fNFSN
<emily>
freepotion: thanks for making ivan it's a work of art
aarvar has joined #nixos
haitlah has quit [Ping timeout: 248 seconds]
<freepotion>
emily: glad I can help :) actually, I didn't do anything special, just nix package (I'm not ivan dev)
<symphorien>
earlier today I complained that I had not the same hash for derivations in nixpkgs: turns out the store was on cifs, which is case insensitive, so all hashes were different.
hsribei has quit [*.net *.split]
hydraz has quit [*.net *.split]
akl has quit [*.net *.split]
jasom has quit [*.net *.split]
jcrben has quit [*.net *.split]
teh[m] has quit [*.net *.split]
freusque[m] has quit [*.net *.split]
Phil[m]2 has quit [*.net *.split]
Khorne[m]1 has quit [*.net *.split]
mlaskus[m] has quit [*.net *.split]
bluewolfy[m] has quit [*.net *.split]
nico202[m]1 has quit [*.net *.split]
Dean[m] has quit [*.net *.split]
kainospur[m] has quit [*.net *.split]
HamishHutchings[ has quit [*.net *.split]
zaphar_ps[m] has quit [*.net *.split]
sevanspowell[m] has quit [*.net *.split]
ayyjayess[m] has quit [*.net *.split]
pierrebeaucamp[m has quit [*.net *.split]
aniketd[m] has quit [*.net *.split]
devr[m] has quit [*.net *.split]
tamwile[m] has quit [*.net *.split]
k0d3fr34k[m] has quit [*.net *.split]
ArtemVorotnikov[ has quit [*.net *.split]
bkchr[m] has quit [*.net *.split]
Dt[m] has quit [*.net *.split]
aspiwack[m] has quit [*.net *.split]
davidarmatrixorg has quit [*.net *.split]
dtz[m] has quit [*.net *.split]
herzmeister[m] has quit [*.net *.split]
cruxeternus has quit [*.net *.split]
zgrep has quit [*.net *.split]
PyroLagus has quit [*.net *.split]
thekolb has quit [*.net *.split]
sjourdois has quit [*.net *.split]
angerman has quit [*.net *.split]
georgew has quit [*.net *.split]
oharvey has quit [*.net *.split]
xplat|work__ has quit [*.net *.split]
rodarmor has quit [*.net *.split]
heatm1s3r has quit [*.net *.split]
zielmicha_ has quit [*.net *.split]
smithx10 has quit [*.net *.split]
andi- has quit [*.net *.split]
himmAllRight has quit [*.net *.split]
vaninwagen has quit [*.net *.split]
terrorjack has quit [*.net *.split]
dredozubov has quit [*.net *.split]
dkibi has quit [*.net *.split]
elvishjerricco has quit [*.net *.split]
LoneTech has quit [*.net *.split]
anton_ has quit [*.net *.split]
Guest9248 has quit [*.net *.split]
hiberno has quit [*.net *.split]
hodapp has quit [*.net *.split]
bitchecker has quit [*.net *.split]
cocreature has quit [*.net *.split]
suvash_away has quit [*.net *.split]
oharvey_ is now known as oharvey
georgew_ is now known as georgew
heatm1s3r_ is now known as heatm1s3r
angerman_ is now known as angerman
elvishjerricco_ is now known as elvishjerricco
hsribei_ is now known as hsribei
vaninwagen_ is now known as vaninwagen
akl_ is now known as akl
terrorjack_ is now known as terrorjack
jcrben has joined #nixos
<clever>
inquisitiv3: what about the contents of hardware-configuration.nix and the output of `mount` ?
sigmundv has quit [Ping timeout: 272 seconds]
zgrep_ is now known as zgrep
<inquisitiv3>
clever: You want the output from `mount`?
<clever>
all i can think of is "boo systemd" and to try grub, lol
<clever>
inquisitiv3: change line 14 of https://pastebin.com/yMgBBGSk to "boot.loader.grub.enable = true; and re-run nixos-install
<inquisitiv3>
clever: `nixos-install` complains that I haven't set `boot.loader.grub.devices` or `boot.loader.grub.mirrorBoots`. I've checked the option on the website. Should I set the former option to /dev/sda1?
<clever>
boot.loader.grub.device = "nodev";
<clever>
that option is only for use with legacy booting
<inquisitiv3>
We'll see how this goes...
<inquisitiv3>
The installation finished successfully.
johnw has joined #nixos
<clever>
yay
<clever>
now we just umount everything, reboot, and pray!
<inquisitiv3>
Nope, can't boot NixOS :/
freepotion has quit [Quit: Page closed]
<inquisitiv3>
clever: ^
<clever>
what error?
<inquisitiv3>
clever: I only get the options "EFI Default Loader" and "Reboot Into Firmware Interface". No error messages.
<Dedalo>
clever I'm using Oh My Zsh on macOS, with a theme and some plugins. How can I replicate the same in NixOS? Change the bash to Zhs aht install oh-my-zhs.
<mightybyte>
Has anyone ever encountered this error?
<clever>
inquisitiv3: boot the installer again and run `efibootmgr -v` what does it list?
<mightybyte>
"error: opening file '[': No such file or directory"
<clever>
Dedalo: i just run plain bash here
<inquisitiv3>
clever: When I choose the former it reloads (I think?) and just show me the later option. After some seconds the computer reboots into UEFI setup.
<Dedalo>
anyone here running oh-my-zhs?
<Dedalo>
*zsh
<jD91mZM2>
,ask
<{^_^}>
Just ask your question. It's the best way to know if anybody can help.
nonfreeblob has joined #nixos
<mightybyte>
I'm seeing this error a fair amount when working with NixOS AWS instances.
<clever>
mightybyte: can you screenshot it?
<jD91mZM2>
inquisitiv3: How does the interface look? Any borders or just black with white text and a highlighted entry?
<jD91mZM2>
Dedalo: Yeah no I don't, but I'll google
<clever>
mightybyte: ls -l ~/.nix-profile/bin/\[
<mightybyte>
ls: cannot access '/home/glrunner/.nix-profile/bin/[': No such file or directory
<inquisitiv3>
jD91mZM2: Seems to be a UEFI screen.
<clever>
mightybyte: ls -l ~/.nix-profile/bin/
<clever>
inquisitiv3: thats a crap-ton of uefi options, and the nixos one is missing
<Dedalo>
jD91mZM2 currently I have added this to my `configuration.nix`:
<inquisitiv3>
jD91mZM2: White text on black screen. The same theme as Lenovo's UEFI boot scree.
<clever>
inquisitiv3: re-open the luks device with cryptsetup, then re-activate lvm, and mount your rootfs and /boot, then edit configuration.nix, add boot.loader.grub.efiInstallAsRemovable = true; and re-run nixos-install
<inquisitiv3>
clever: Will do! Reporting back soon.
<elvishjerricco>
It'd be neat if nix.conf could be a nix expression. We do get that in NixOS and nix-darwin, but for everything else...
<mightybyte>
clever: Oh, that can't be a list?
<gchristensen>
elvishjerricco: that would be neat :)
<clever>
mightybyte: correct, its just a single path
<mightybyte>
Aha!
<elvishjerricco>
mightybyte: Also lists in nix.conf aren't written with [ ] syntax
<LnL>
elvishjerricco: evalModules
<inquisitiv3>
clever: The last bullet point dissapeard, but I still get the former error message (the one saying that I should turn on `boot.loader.grub.efiSupport`).
<elvishjerricco>
LnL: ?
<clever>
inquisitiv3: oh, thats why grub didnt work earlier, oops
<clever>
inquisitiv3: remove efiInstallAsRemovable, set canTouchEfiVariables = true again, and also set boot.loader.grub.efiSupport = true;
<clever>
inquisitiv3: the lack of efiSupport = true perfectly explains why it was not in the efi vars
<LnL>
elvishjerricco: we could add a function that just uses the module system using that and returns a nix.conf
<mightybyte>
Wow, talk about failing slow...
<elvishjerricco>
LnL: Ah, interesting idea.
<clever>
LnL: most of that is already where, and i think nix-darwin is just stealing the nixos module
<clever>
LnL: but options like secret-key-files are not supported, leading to user error
<LnL>
yep
<clever>
add more options to the module!
<LnL>
make the strict evaluation even slower! :p
<typetetris>
Is there a special channel for the haskell infrastructure in nixos?
<inquisitiv3>
clever: Should I run `nixos-install`?
<clever>
LnL: i have nixops evals that consume 30gig of ram and take 15-20mins :P
<clever>
inquisitiv3: yeah
<gchristensen>
clever: cursed deployment
<clever>
gchristensen: i was able to shave several gig of memory usage off the eval, just by not installing nixops in every machine
<gchristensen>
that seems to hint at some easy optimisations to be made in nixops
<inquisitiv3>
clever: So the installation finished successfully.
<clever>
inquisitiv3: and if you check efibootmgr -v, you should now see grub
vidbina_ has joined #nixos
Lears has quit [Remote host closed the connection]
hydraz_ is now known as hydraz
<inquisitiv3>
clever: Oh, I rebooted the computer before I saw what you wrote. Btw, it can't boot... I reboot again and see if anything changes.
<clever>
inquisitiv3: you can also try something like f12 or the boot order config and see if nixos is listed
<inquisitiv3>
clever: YEAH! I was able to boot into NixOS!!
<clever>
:D
<inquisitiv3>
So, the problem is systemd-boot?
<dhess>
gchristensen: this broke NixOps on Darwin. https://github.com/NixOS/nixpkgs/pull/44900 Ideally, it would have triggered an ofBorg on Darwin. Could NixOps be added to what ofBorg builds on Darwin?
<pie__>
how do i do the thing where i package a nix closure thing so i can run binaries on non-nix machines?
<ocharles>
dhess: it's also `dhall format` in later Dhall releases
alex`` has quit [Ping timeout: 240 seconds]
<pie__>
im compiling a program in a nix-shell and id like to bundle it
<dhess>
ocharles: thanks
<dhess>
All the world's moving to the git command line model.
<typetetris>
pie__: maybe try to statically link it?
rhomboidcactus has quit [Quit: Leaving]
<elvishjerricco>
Trying to use the graphical install CD on my 2013 MacBook Pro. Starting X seems to try to use a few different graphics drivers before erroring out with `(EE) open /dev/dri/card0: No such file or directory`
<elvishjerricco>
I would just try doing things without graphics, but I worry that I'll get the same issue on the installed OS.
ambro718 has quit [Quit: Konversation terminated!]
hodapp has joined #nixos
fragamus has joined #nixos
<symphorien>
pie__: if you can control /nix on the target machine, tar cvf $(nix-store -qR /nix/store/blah) and then unpack the tar on the target machine
<pie__>
typetetris, do you have any idea how to do that with haskell?
<pie__>
symphorien, ah the thing is the target is non-nix
<symphorien>
you don't nix nix on the target
<symphorien>
only write permission to unpack the tar at /nix
<pie__>
otoh id hope i dont need to copy a whole haskell closure over
<ocharles>
Anyone have any tips for profiling this?
<elvishjerricco>
pie__: For a silly, nuclear option, you could build Nix from source on the machine (does not require Nix), then use chroot stores so you don't have to install anything in /
<ocharles>
It's a huge shell to be fair, bringing in 500 haskell deps and all sorts of other stuff. But 22s with a hot cache is pretty sad
<clever>
ocharles: nix-instantiate shell.nix should measure the same time
<symphorien>
pie__: normally it only contains the runtime deps
<ocharles>
ok, but that doesn't really tell me much
<pie__>
thanks for the suggestions guys, ill give it a shot
<clever>
,profiling
<{^_^}>
Use NIX_COUNT_CALLS=1 and/or NIX_SHOW_STATS=1 to profile Nix evaluation
<clever>
ocharles: and then add these env vars
<elvishjerricco>
pie__, symphorien: Yea but that includes all the haskell libs as dynamic libraries. You can use `justStaticExecutables` to cut those out and statically link them though
<ocharles>
ah yea, I tried that with nix-shell but it didn't do anything
<ocharles>
thanks!
<ocharles>
evaluations of 6337 attributes:
<ocharles>
496069 undefined position
<ocharles>
wonderful.
<pie__>
typetetris, im a bit confused, so i run nix-build --no-out-link to get a static ghc?
<ocharles>
but thanks, this gives me something to start with
jmeredith has quit [Quit: Connection closed for inactivity]
ceevusee has joined #nixos
<pie__>
ah i guess i need the building arbitrary packages part
<typetetris>
pie__: In the linked repo everything is linked again musl and you have to build all your build dependencies from scratch so depending on your use case that might be overkill.
<clever>
ocharles: can you use a pastebin that doesnt screw with the selection buffer?
<pie__>
typetetris, if you have a moment....currently i use this to get a ghc env https://bpaste.net/show/bc057ae51839 and build my app with the following: ghc -threaded -Wall src/GUI.hs -isrc -hidir "$BUILDDIR" -odir "$BUILDDIR" -o "$BINDIR/GUI"
<inquisitiv3>
How do I get wifi working? I got a Thinkpad T430 with a Intel WIFI chip.
<pie__>
most of those flags are just for keeping my working directory clean though and i can drop them
<inquisitiv3>
clever: The problem I had with systemd-boot, is that a bug?
<clever>
inquisitiv3: probably
siers has quit [Quit: Connection closed for inactivity]
<inquisitiv3>
Where does one report such bugs for NixOS?
__monty__ has quit [Quit: leaving]
justbeingglad has joined #nixos
<typetetris>
pie__: I assume you have a dependency on qt ? I have to admit, that I don't see, how it can be statically linked. There don't seem to be an output path for it, like `zlib.static` for `zlib`. I never tried this with qt. The `static-stack` example will probably not work also, as it also assume that the non haskell dependencies provide an output path for an archive.
<pie__>
typetetris, ugh. well i think haskell has two sides to static linking, one for haskell libs one for external libs? maybe i can leave qt dynamically linked for the moment...
<typetetris>
pie__: That will not rid you of the necessity to ship a nix closure.
<pie__>
yes thats correct...but its still progress...kind of
<pie__>
(i think?)
jmeredith has joined #nixos
<pie__>
symphorien, what would i replace /nix/store/blah with
<symphorien>
with the store path of the program you want to transfer
<pie__>
the derivation corresponding to my current nix-shell?
<pie__>
aha
fragamus has joined #nixos
<pie__>
my program isnt built by nix
<pie__>
i guess i could try to get it to but i think i need to learn stack for that?
<symphorien>
I don't know anything about haskell, sorry
<pie__>
right now i just build it with ghc -threaded -Wall src/GUI.hs
<inquisitiv3>
Fare: I'll have to do that. Thanks for the information!
<dhess>
ocharles: completely unrelated to this nix-shell issue you're having, but are you using dhall-nix in any projects?
<ocharles>
dhess: as in turning dhall expressions into Nix?
<dhess>
yes
* pie__
looks at cabal2nix
<typetetris>
pie__: I just noticed that a toy program of mine is build statically last time and I am just trying to reproduce it.
<ocharles>
dhess: only a little. We store secrets in a dhall file in keybase
<dhess>
Oh interesting.
<ocharles>
When I deploy machines, we turn that config dhall into a nix expression and then use it with nixops deployment keys
<dhess>
Have you blogged about that at all?
<ocharles>
I'm trying to write more Dhall and less Nix
<ocharles>
nah, it's not doing much interesting yet :)
<pie__>
typetetris, thanks for the effort. ^.^ it would be cool if I could use nix for a lot of build/redist stuff. this is my first "serious" program im trying to write
<dhess>
ocharles: I would like to start doing that as well.
<dhess>
Ahh I think I had but had forgotten about it
<dhess>
maybe somewhere in the back of my mind it's why I was compelled to ask you about dhall-nix :)
<ocharles>
I'd like to do more on that in the nfuture
<typetetris>
pie__: I don't know wether it will help you. It is an app using a minimal part of gtk and sdl2 and no networking. static linking get's harder if there is dns in the mix, as the standard resolver is only available as a shared library.
<pie__>
typetetris, hm.
<pie__>
sounds funky :I
<pie__>
that will also be an issue then...
<pie__>
I suppose I have my work cut out for me
<dmj`>
clever: I have a haskell project that depends on a package that is in a private repo. I’m currently using the ssh:// path and builtins.fetchGit to retrieve this. This works well for my local user where the ssh keys are known. When I go to deploy my application, sudo nixos-rebuild switch fails since the user that performs the switch doesn’t have access to these keys. How should I handle this? Should I give the nix user...
<ocharles>
dhess: the next thing I might explore is DhallOS - basically something that compiles Dhall into a NixOS configuration
<dmj`>
clever: ... access to my ssh keys, or should I obtain the package by other means
<ocharles>
but I kinda want to ditch the module system. I'm not a huge fan of it
<{^_^}>
[nixpkgs] @vbgl opened pull request #44997 → coq: default to version 8.8 → https://git.io/fNbJ7
<dhess>
ocharles: wow, cool!
<ocharles>
early days :)
rouma has quit [Ping timeout: 248 seconds]
rouma has joined #nixos
<dmj`>
a clever can never be far away
rouma7 has joined #nixos
rouma7 has quit [Client Quit]
rouma has quit [Ping timeout: 240 seconds]
buckley310 has quit [Quit: Bye]
<Zajcev>
hello guys, my vps nixos is missing most of man pages, I can't figure why
<Zajcev>
man ls
<Zajcev>
/nix/var/nix/profiles/default/bin/man: can't set the locale; make sure $LC_* and $LANG are correct
<Zajcev>
No manual entry for ls
<Zajcev>
for example man man is working
neeasade has joined #nixos
<typetetris>
how can I globally set `doCheck = false;` override mkDerivation somehow?
<clever>
dmj`: if you use a sha256, it should be able to compute the storepath and find it was already downloaded
<clever>
dmj`: using an ssh agent should also solve it
<dmj`>
ahh, ssh-agent, sure
<dmj`>
clever: but yea I assume it would have been downloaded already …
<dmj`>
clever: I’ll try again tonight. Thanks
yosemitesam has quit [Remote host closed the connection]
<clever>
if the sha256 is missing, it wont know what storepath to reuse
<pie__>
symphorien, do you know if i can make a second store in like... /opt/myappgoeshere or something? that way root wouldnt be needed for installing
<pie__>
i mean for taring the closure or what
* dmj`
ssh’s into his home nixos machine to check if the sha256 is missing
<symphorien>
a lot of path "/nix/store/dfsdfdsf" are hardcoded in the executables
<symphorien>
so relocating won't work
<pie__>
ugh seriously? why?
<pie__>
i thought that was supposed to be flexible
<symphorien>
try to run ldd on any of the executables
<symphorien>
you will see
<symphorien>
you can ask nix to build a derivation in another location than /nix but this means recompiling the world
johnw has joined #nixos
Ariakenom has quit [Quit: Leaving]
<Dedalo>
I was able to change the shell, I'm now using zhs with Powerlevel9K, which is quite cool. You don't need Oh My Zhs to use Powerlevel9K
<Dedalo>
I'm now in the process to change the terminal, and I'm thinking to use Termite, anyone with some experience on it?
<pie__>
symphorien, hm
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @vcunat merged pull request #44995 → ntl: darwin support → https://git.io/fNFjR
inquisitiv3 has quit [Quit: Leaving]
<pie__>
ok so apparently I can't put this in the mkDerivation generated by cabal2nix: QT_PLUGIN_PATH = qt5.qtbase.bin + "/" + qt5.qtbase.qtPluginPrefix;
<pie__>
if I put that in stdenv.mkDerivation it sets the environment variable
<pie__>
does anyone know how to do this with haskell's mkderivation?
<pie__>
well i guess i could make another derivation that has the haskell one in its buildinputs and uses stdenv
<elvishjerricco>
Well that's frustrating. I need a proprietary nvidia driver for my macbook so I have to build my own live CD iso :/
Denommus has quit [Remote host closed the connection]
<pie__>
elvishjerricco, ah thats annoying :)
Fare has quit [Ping timeout: 260 seconds]
<elvishjerricco>
For some reason I don't remember that being the case previously... Maybe I just did it with the minimal installer or something...
<pie__>
i think nix may have stuff for generating livecds? not sure. then again youd have to have a working nixos for that already :D
<pie__>
well...afaik there isnt a nonminimal installer?
<pie__>
maybe you set some kernel flags to force the nonnvidia stuff? idk what its called, does it have like...the dual gpu setup where one is intel?/
mayhewluke has quit [Ping timeout: 248 seconds]
rtjure has quit [Ping timeout: 260 seconds]
<sphalerite>
elvishjerricco: usually the EFI/vesa graphics drivers should be enough to get a console displaying in the installer..?
<elvishjerricco>
pie__: Yea I used the stuff in nixpkgs to make my live cd. There is an integrated gpu and it looked like it was trying to use it in the logs, but for some reason it failed. It also tried vesa (and a VMware driver for some reason), but obviously those failed too.
johnw has quit [Read error: Connection reset by peer]
<elvishjerricco>
sphalerite: Yea I could get a console. But not an X server
<pie__>
i think i used nomodeset on my friends laptop once
<sphalerite>
elvishjerricco: ah right. Shouldn't that be enough for installing?
<elvishjerricco>
sphalerite: Yea but I'm being picky :)
<pie__>
ah. are you sure its even a driver issue? (idk why it wouldnt be)
<elvishjerricco>
sphalerite: I've been messing around with building all sorts of NixOS systems from my main config. Was hoping to be able to use my own config in the installer to do the install :P
jb55 has quit [Quit: WeeChat 2.1]
<elvishjerricco>
pie__: I just saw X saying it loaded a bunch of drivers then failed to find /dev/dri/card0
<pie__>
ah well ok i guess then
<sphalerite>
elvishjerricco: yeah fair enough. Should just be a matter of adding <nixpkgs/nixos/modules/installer/cd-dvd/iso-image.nix> to your imports and building config.system.build.isoImage
<pie__>
ok so i just went from nix-shell to nix build and it breaks my script and i never remember how to deal with it: i went from nix-shell shell.nix to nix-build shell.nix with the error "variable $src or $srcs should point to the source"
<pie__>
or, well, i assumed its an attrset and i tried to do // but its not happy
<clever>
in { inherit drv; }
<pie__>
just replaced the stdenv.mkDerivation with drv // { QT_PLUGIN_PATH = qt5.qtbase.bin + "/" + qt5.qtbase.qtPluginPrefix; }
vidbina_ has quit [Ping timeout: 248 seconds]
init_6 has joined #nixos
johnw has joined #nixos
<pie__>
it complains of the following with both approaches: error: undefined variable 'qt5' at /mnt/data/hask/bb/cabal2nix.nix:49:22
<clever>
the with statement is missing
<pie__>
ah of course
<clever>
and dont // onto drv
<clever>
make a new set, where drv is a value inside it
<pie__>
sorry i always get stuck on such basic things :<
<q3k>
hm, what's the Reference way to include some proprietary acquire-them-yourself sources into a nix derivation as a source, especially if I want to submit it to nixpkgs?
<clever>
q3k: requireFile
<clever>
q3k: check the oraclejdk for an example
<pie__>
q3k, o/
<q3k>
clever: good poing
<q3k>
pie__: hi!
<pie__>
clever, ok awesome, now it builds but the binary isnt in my path again
<LnL>
yeah, the examples in the nix pills are linux only for simplicity's sake
<clever>
pie__: builtins.derivation doesnt work on darwin when the sandbox is enabled
<psnively>
Not unreasonable, but it seems like gcc SHOULD work.
<infinisil>
psnively: Or just don't use -m with nix-info. The output of it without that flag is meant to be shared here
<psnively>
Good to know. Thanks!
<LnL>
psnively: it's possible to use gcc on darwin, but it requires some extra tweaking
<psnively>
nixpaste too.
<psnively>
Right. FWIW, `gccStdenv.mkDerivation` fails exactly the same way.
<sphalerite>
If I'm starting a small haskell project and don't care about compatibility with non-nix systems, how should I start off structure-wise?
<clever>
sphalerite: i generally start with a runCommand based derivation, using ghcWithPackages in the inputs
<LnL>
psnively: in practice you'll never use derivation directly, stdenv.mkDerivation sets up this kind of stuff for you (in a way that does work for all platforms unlike the example)
mayhewluke has quit [Ping timeout: 248 seconds]
<clever>
sphalerite: and if it starts to get more complex, i generate a .cabal file, and switch to callCabal2nix
<kisik21>
What is the best way to build every package in overlay (e.g. binary cache purposes) without writing too much on the command line? Please note that I added some xfce packages to super.xfce in the overlay, which means trying to build it with `nix-build -E "import default.nix (import <nixpkgs> {}) (import <nixpkgs> {}) will try to build whole XFCE package set from nixpkgs in addition to one or two my XFCE
<kisik21>
packages.
<psnively>
OK, let me try the stdenv.
<LnL>
psnively: did you set PATH?
<sphalerite>
clever: so use a ghcWithPackages and just call ghc in the build, then copy the built stuff to $out?
<kisik21>
(XFCE packages are added with `xfce = super.xfce // { <...> };`
<clever>
sphalerite: ghc ${./main.hs} -o $out/bin/foo, dont even have to copy
<LnL>
psnively: and yeah, there's gccStdenv which does the same but with gcc instead of clang
<sphalerite>
clever: great, thanks!
<clever>
sphalerite: though you might want to copy the src, to stop ghc from dumping .hi files in /nix/store/
<LnL>
psnively: in the builder, like the derivation example does, that would override a bunch of stuff the stdenv does which you don't want
<psnively>
I think I'm a bit confused. I'm trying to follow https://nixos.org/nixos/nix-pills/generic-builders.html. It does assume gcc. But macOS does have "gcc," which admittedly uses clang under the hood, but so what?
<psnively>
Ah, right.
justanotheruser has quit [Ping timeout: 240 seconds]
<psnively>
LnL: I don't touch PATH anywhere but in simple_builder.sh.
<psnively>
What's weird is the error: "/nix/store/15bnl096akln14x4r3wv7fr54k8c46n7-gcc-wrapper-7.3.0/bin/as: assembler (clang) not installed" But chasing down the symlinks, it absolutely is.
<q3k>
hm, `nix build` on my workstation (non-nixos) always displays a pretty build progress ([1/0/1 built, 0.0 MiB DL]) - how do I make it just spit out build logs?
<clever>
q3k: nix-build
<q3k>
oh.
<q3k>
they're two different tools (?!)
<clever>
nix-build is the old 1.0 interface, nix is the new 2.0 interface
<clever>
2.0 includes all of the old 1.0 tools
<clever>
but the new interface sometimes lacks the off switch for fancy features
<tertle||eltret>
what if I forgot my password to use "su -"?
<clever>
tertle||eltret: are you in the wheel group?
<tertle||eltret>
yes
<clever>
tertle||eltret: then you never need to use su again
<kisik21>
sudo? pkexec?
<clever>
use sudo or `sudo -i`
<kisik21>
pkexec is hacky, but works if you broke your sudoers file
<tertle||eltret>
im trying to find the list of all my different config versions that shows in grub?
<tertle||eltret>
i wanna switch back to normal kernel
jbaum98 has joined #nixos
<clever>
tertle||eltret: how did you change the kernel initially?
<tertle||eltret>
i installed "musix"
<clever>
tertle||eltret: how did you install musix?
<tertle||eltret>
its a few lines I added to the config file
<tertle||eltret>
hmm let me go look at that
<clever>
comment those lines out and nixos-rebuild, and it will go back to the old config
<tertle||eltret>
the sudo -i worked
<tertle||eltret>
ty
<jbaum98>
i'm trying to givaro build on darwin, but the problem is that tests fail because they are looking for the dylib in the place it will eventually end up, in then nix store, instead of where it is. the easiest way to fix it is to change the order so that installPhase is before checkPhase, but is that frowned upon? also, does anyone know why this is an issue only on darwin?
<clever>
jbaum98: thats what the installCheckPhase is for
<clever>
jbaum98: doInstallCheck = true; instead of doCheck=true;