gchristensen changed the topic of #nixos to: Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://botbot.me/freenode/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64
<mfiano> UEFI but in legacy bios mode. gpt
<MichaelRaskin> Did you create BIOS boot partition?
<MichaelRaskin> Did you read the complaints of GRUB that you didn't create the partition?
marusich has joined #nixos
<mfiano> Yeah, the same partition scheme works with both Arch and Ubuntu
<mfiano> I'm wondering if btrfs module is not available during early boot despite me mentioning that it should be in my config
<mfiano> But, I get no errors. Just a rescue prompt
<clever> mfiano: can you gist your configuration.nix file?
<clever> mfiano: and hardware-configuration.nix
<mfiano> Sure one minute
<MichaelRaskin> Also /boot/grub/grub.cfg I guess
<mfiano> Trying to find the best way to paste that from a command line
<clever> mfiano: nix-env -iA nixos.gist ; gist -p /path/to/file1 /path/to/file2 ...
jtojnar has quit [Remote host closed the connection]
ryantrinkle has joined #nixos
jtojnar has joined #nixos
pie__ has quit [Remote host closed the connection]
pie__ has joined #nixos
<clever> boot.initrd.supportedFilesystems = [ "btrfs" ];
<MichaelRaskin> And grub config?
<clever> mfiano: this line isnt required
BlessJah has quit [Ping timeout: 252 seconds]
<mfiano> Ok
<clever> mfiano: nixos auto-detects the .fstype of the filesystem configured for / and /nix
<mfiano> That could be the problem?
<clever> and the problem is before grub even found its own config
<clever> my only guess is that grub cant make sense of your btrfs, and you need an ext4 /boot partition
ashkitten1 has quit [Remote host closed the connection]
<mfiano> Heh that's strange that it works on 2 other linux distributions. The only thing I did was format the root partition and mounted nix/store under that
<clever> mfiano: the subvolumes could be making it more complex
<mfiano> I don't see how, considering they are the same, minus the nix-store sub-subvolume, but that's post boot
<pie__> my plasmashell or something died again and i keep forgetting the executable names to restart this stuff so now i cant switch out of irc but i can run programs
<pie__> can anyone tell me how to get my window manager back?
Myrl-sak1 has joined #nixos
ashkitten has joined #nixos
<pie__> (stuff is still runnig i just cant switch, and i dont want to kill everything)
Myrl-saki has quit [Ping timeout: 256 seconds]
<pie__> anyone awake? xD
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos
<MichaelRaskin> I am awake, but my advice would be to got to console ant install icewm or something
<MichaelRaskin> (Something very lightweight by capable to switch)
<mfiano> I'll try again some other time. Thanks for the help
<pie__> would that work? everything except the window switcher and taskbar seem to be runnig
<MichaelRaskin> I though KDE WM was KWin but that's before Plasma (maybe)
<MichaelRaskin> Not sure, but could?
<clever> pie__: in theory, you can run any window manager, and it should just take over and give you window switching
<MichaelRaskin> IceWM is small; if the WM place is not free for taking IceWM will safely refuse
<pie__> oh i think kwin was the thing i always forget
<pie__> hm its not fixing the problem this time around though
Myrl-sak1 is now known as Myrl-saki
<clever> pie__: try nix-env -iA nixos.ratpoison && ratpoison
<MichaelRaskin> I thought of it, but I find that cruel!
<pie__> ok looks like i needed to start both plasmashell and kwin_x11
<pie__> \o/
<MichaelRaskin> Nice
<pie__> my dbus environment might be all f***ed up not but window management is back
<pie__> maybe i wont forget the name of kwin_x11 for the Nth time next time
<pie__> thanks a bunch
<MichaelRaskin> Having a session-wide DBus instance is too complacent
<pie__> (i knew it had something like wm in the name but i just couldnt remember it)
<pie__> s/not/now
kp__ has quit [Quit: WeeChat 2.0.1]
<MichaelRaskin> Optimism!
jtojnar has quit [Remote host closed the connection]
BlessJah has joined #nixos
jtojnar has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mguentner opened pull request #35507: geckodriver: use devel version with slog fix (master...fix_35301) https://git.io/vAw0W
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] tokudan opened pull request #35508: fix service.kresd fails due to kresd-cachedir hiatus (release-17.09...kresd-cachedir) https://git.io/vAw0K
NixOS_GitHub has left #nixos [#nixos]
<mfiano> clever: I just reinstalled using an ext4 /boot partition. same exact problem
<clever> mfiano: what type of drive is the rootfs?, sata?, nvme?
<mfiano> sata
<clever> spinning rust? ssd?
<mfiano> ssd
<clever> should just work
<clever> what did nixos-unstable print when installing grub?
<mfiano> I used nixos-install
<clever> meant to say that one
<mfiano> It said wrote grub successfully, blah blah no errors
<clever> you should be able to re-mount your FS's, and delete /mnt/boot/grub/state, and re-run nixos-install
<clever> mfiano: interested in what else it printed, the details
coot has joined #nixos
<mfiano> let me rerun it
<mfiano> what are the arguments to nixos-install again? I'm not near a web browser in a console
<clever> mfiano: if / and /boot are mounted to the right spots (/mnt and /mnt/boot), you can just run nixos-install without any args
<mfiano> Yes, they are. Ok thanks
<mfiano> building
<MichaelRaskin> Building? Did you mount /nix/ ?
Drakonis has joined #nixos
<clever> MichaelRaskin: thats a bug in nixos-install, it always builds on the host, then copies to /mnt
freeman42x]NixOS has quit [Ping timeout: 256 seconds]
<mfiano> Not sure what information you want. I have it printed to a tty
<clever> mfiano: can you get a screenshot of it and link the image on irc?
<mfiano> I'm in a terminal. How do I screenshot without X?
<clever> mfiano: camera?
<mfiano> Good idea
Drakonis has quit [Read error: Connection reset by peer]
<MichaelRaskin> Actually, «screen», but oh well
asuryawanshi has joined #nixos
coot has quit [Ping timeout: 256 seconds]
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos
<clever> mfiano: lets switch over to screen so its easyer to manage things, nix-env -iA nixos.screen, then run screen
<clever> mfiano: copy is ctrl+a [, arrows to move the cursor, enter once to start a selection, enter again to end&copy
<clever> ctrl+a ] to paste
<mfiano> It's been years since I used screen. I'll have to get familiar with that over tmux
<Ankhers> I'm on a mac. Is there a way to update to Nix 2.0 or do I have to uninstall and reinstall Nix?
<clever> you could alos use tmux instead
asuryawanshi has quit [Ping timeout: 260 seconds]
<clever> Ankhers: sudo -i then nix-env -iA nixpkgs.nixUnstable
<Ankhers> clever: Thanks.
<clever> mfiano: and nix-env -iA nixos.gist lets you pastebin files with `gist -p file.txt`
<clever> mfiano: what does fdisk -l /dev/sda say?
<Ankhers> Is it actually unstable?
<clever> Ankhers: i'm not sure why its still in nixUnstable after being "released"
<Ankhers> clever: Do you know if it will eventually be removed from unstable and my system will just update itself?
<clever> Ankhers: probably
<Ankhers> clever: Thanks. I will just leave it as is for the time being.
<mfiano> clever: Give me a few. I can't paste from screen to a remote irc instance inside tmux. I'll have to figure something out
<clever> mfiano: oh, also, systemctl start sshd, and passwd
<clever> mfiano: then just ssh into it from a more capable machine
<mfiano> If I had one :/
<disasm> clever: I think 18.03 will be where it's no longer called nixUnstable but I could be wrong.
iyzsong has joined #nixos
ckauhaus has joined #nixos
<disasm> maybe not, master is still unstable for 2
<mfiano> clever: Ok, it helps to remember that you are booted using the nixos kde livecd instead of the minimal
mk-fg has quit [Ping timeout: 248 seconds]
<disasm> clever: ah, PR still open: https://github.com/NixOS/nixpkgs/pull/34636
chocopuff298 is now known as chocopuff
<clever> disasm: ah
<samueldr> wait, according to all this 17.09 could get nix 2.0 before?
ckauhaus has quit [Ping timeout: 245 seconds]
<clever> mfiano: and fdisk -l /dev/sda ?
thc202 has quit [Ping timeout: 240 seconds]
<mfiano> sda6 is boot. sda7 is the btrfs container. sda8 is swap
mk-fg has joined #nixos
mk-fg has quit [Changing host]
mk-fg has joined #nixos
<clever> mfiano: sda1 is way too big
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] volth opened pull request #35510: jdk: use oraclejdk on aarch64 (master...jdk-on-aarch64) https://git.io/vAwEQ
NixOS_GitHub has left #nixos [#nixos]
<clever> mfiano: also, what does `mount` say?
<mfiano> clever: That was created by Windows install, and any attempt to make it smaller results in me not able to boot. Additionally, any other Linux distribution I tried has no issue there.
<disasm> samueldr: but nix 1.12 is still the default, it just adds nixStable2 instead of nixUnstable as the name of 2.0, hence why that change is much less complex than the other PR and is already merged.
<clever> mfiano: what does `mount` say?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] deepfire opened pull request #35511: GHC 8.4 configuration: more package fixes (master...ghc-8.4) https://git.io/vAwEb
NixOS_GitHub has left #nixos [#nixos]
<samueldr> yes, disasm, but still :)
<samueldr> I find it mildly interesting
Drakonis has joined #nixos
<clever> mfiano: the bios boot partition on sda1 only needs to be about 2mb, and it must never be mounted or formated with an FS
<clever> mfiano: also, is the CSM enabled in the bios?, your configured for legacy booting, not efi
<mfiano> clever: I understand that but this was auto-created and any attempt to resize it prevents me from dual booting. I'm a game developer and need to test my code on Windows too
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] volth opened pull request #35512: i2p: force openjdk (master...patch-98) https://git.io/vAwuv
NixOS_GitHub has left #nixos [#nixos]
<mfiano> Windows installer did that for me
<disasm> mfiano: are you booting efi or bios with grub?
<mfiano> CSM is enabled and set to legacy
mk-fg has quit [Ping timeout: 245 seconds]
<clever> mfiano: dual-booting can be restored, once nixos is working, with the right nixos config for grub
<mfiano> This motherboard is pretty horrible and it can't even detect a usb drive at boot without CSM on/set to legacy
<MichaelRaskin> Ouch
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] volth closed pull request #35512: i2p: force openjdk (master...patch-98) https://git.io/vAwuv
NixOS_GitHub has left #nixos [#nixos]
<mfiano> I'll nuke the whole partition table, create a 2mb unformatted bios at head, and the rest as a btrfs container. I'll reinstall Windows on another drive at some point when I need it
<mfiano> Anything else you suggest?
<clever> mfiano: that should work
<mfiano> Also I'm very curious as to why other distributions don't have any problems
<clever> mfiano: my primary desktop is a 2 drive raid for nixos, and a 3rd drive for windows
<clever> mfiano: its very puzzling how just shrinking the bios boot partition breaks booting, because re-running nixos-install should fix it, and make it only boot nixos
mk-fg has joined #nixos
mk-fg has quit [Changing host]
mk-fg has joined #nixos
<mfiano> What partition type should the 2mb partition be? I'm using cfdisk
<disasm> mfiano: if your system supports EFI, why not just have a 1 GB EFI vfat partition mounted as /boot? Then you don't need to worry about grub being able to talk to the btrfs partition.
<mfiano> disasm: It does support it, but it doesn't work
<disasm> oh, lol :)
<mfiano> I cannot boot from a usb drive with EFI
<clever> mfiano: one sec
<mfiano> It just doesn't even detect hardware present, even in the boot menu
<clever> mfiano: if you install nixos with boot.loader.grub.efiInstallAsRemovable = true; and the vfat mounted to /boot, it should become bootable
<mfiano> Hmm?
<clever> mfiano: that tells grub to configure the sata drive as-if it was a removable disk
<clever> and most bios should then boot it automatically without the special efi vars config
<mfiano> I have a blank partition table right now. I'm asking if the partition table needs to have type partition type byte set
<mfiano> for the bios boot
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar opened pull request #35513: meson: fix rpath fixup (master...meson-rpath-fix) https://git.io/vAwuS
NixOS_GitHub has left #nixos [#nixos]
<clever> depends on if you want MBR or GPT, and if you want legacy or EFI
<mfiano> GPT and legacy considering I can't even boot EFI
<mfiano> the install media that is
mk-fg has quit [Ping timeout: 245 seconds]
<clever> mfiano: boot.loader.grub.efiInstallAsRemovable lets you do an EFI install when not booted from EFI
<clever> mfiano: which might fix your EFI issues
<mfiano> I'll try that
<mfiano> I have actually never did an EFI linux install before, and I suspect this will be a lot of research and troubleshooting. I need this ready for work on Monday
<mfiano> So I'm a bit hisitant
<mfiano> hesitant rather
<clever> mfiano: we could just do legacy on gpt then, a 2mb bios boot partition, and the rest for btrfs and it should work
<mfiano> I'm wondering now if I should have swap after biosboot or end of disk
<MichaelRaskin> I would actually create a 1GiB /boot with FAT anyway
<mfiano> Why, and why FAT?
<clever> mfiano: so you can upgrade to efi later on
<MichaelRaskin> FAT because if you ever want to try migrating to UEFI, you can do a quick attempt and roll back if it doesn't go well
<mfiano> ok so 2mb bios boot, 1gb FAT /boot, 8gb swap, and rest btrfs sound okay?
<MichaelRaskin> Also because GRUB2 not reading FAT32 correctly would be big news, and GRUB2 having a limited support for some subvolumes on BtrFS would be a Tuesday.
<clever> mfiano: yeah, and another optional thing you could try, is leave some empty space after that for windows
dan_b has quit [Ping timeout: 260 seconds]
<mfiano> Ok
TonyTheLion has quit [Ping timeout: 260 seconds]
<mfiano> How can I install gparted on the kde live media?
<clever> mfiano: nix-env -iA nixos.gparted
<mfiano> I want to set the correct partition byte flags
<mfiano> Thanks
mounty has joined #nixos
<simpson> MichaelRaskin: "For you, the day btrfs lost your data was the most important day of your life. But for btrfs, it was Tuesday."
<simpson> (obscure film reference: https://www.youtube.com/watch?v=iVzAMmpMra8)
smichel17 has quit [Quit: smichel17]
<MichaelRaskin> And actually a second-hand film reference
<mfiano> Have people really had that much bad luck with btrfs?
<simpson> mfiano: I've never personally lost data on it, but many of my peers have. I've never felt confident enough to actually use it!
aarvar has joined #nixos
<mfiano> For me, that bad luck was reiserfs way back in the day, ironically around the same time as the real murder.
<MichaelRaskin> I don't consume primary media. https://allthetropes.org/wiki/But_for_Me_It_Was_Tuesday
<mfiano> Well I've lost my fair share of data before, which is why I have periodic cron jobs that backup to 3 remote servers of mine.
<clever> simpson: i once tried to resize an lvm volume, while an xfs one was mounted, something borked, and it overwrite a decent chunk of an ext3 volume in lvm
<MichaelRaskin> mfiano: note that I mentioned not irrevocable loss of data, but a problem with reading fancy-featured BtrFS variants by minimalistic GRUB2 implementation
<clever> mfiano: ive got zfs with redundancy configured, and snapshots
<MichaelRaskin> Frankly, at some point I was in a situation where BtrFS losing my /nix was just another Tuesday for _me_.
<mfiano> I use borgbackup hourly for data deduplication so i can roll back to any hour with minimal space usage
<mfiano> across 3 remote machines
<simpson> clever: Yikes. I've had LVM incidents. It is a sharp and multifaceted footgun.
<MichaelRaskin> I just have nightly backups. Hourly is too advanced for me.
Arcaelyx_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mfiano> btrfs will just be a local redundancy measure, so I'm not scared, and haven't lost data with it yet
<clever> simpson: my only guess, is that xfs looked up the mappings, then bypassed lvm, and got confused when lvm began shifting blocks around
cmacrae has joined #nixos
<MichaelRaskin> I think some of my dead BtrFS partitions were not really dead, I could mount them read only, I just couldn't fix them to be r/w and not fail after two operations.
<MichaelRaskin> As it was /nix/store, I didn't care enough to investigate.
<mfiano> fat16 for /boot?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rnhmjoj opened pull request #35514: Fix mitmproxy (master...mitm) https://git.io/vAwzZ
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vAwzc
<NixOS_GitHub> nixpkgs/master 3d8a664 Peter Hoeg: neomutt: 20171215 -> 20180223
NixOS_GitHub has left #nixos [#nixos]
<MichaelRaskin> But I would say that BtrFS advanced a lot w.r.t. stability, and it definitely did have a space for advancement.
cmacrae has quit [Ping timeout: 245 seconds]
<mfiano> Anyway, I've had my eye on nixos for a couple years. Installed it in a VM once or twice and I really like it. I've been using Arch Linux since 2001 when it was released, and I dislike how much it has gone downhill in the last year or 2.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vAwzg
<NixOS_GitHub> nixpkgs/master 7d7b7a0 Shea Levy: libgpgperror: Add derivation for gen-posix-lock-obj to help in cross-compilation
NixOS_GitHub has left #nixos [#nixos]
<mfiano> For example, the latest binary nvidia driver is not picked up by the latest chromium, and thus everything is rasterized on the cpu, and video decoding as well. even moving my mouse cursor is laggy. Nearly 20 years without any issues whatsoever on the same install, and then about 10 things pile up. That's why I'm switching
kelleyNif has joined #nixos
kelleyNif has quit [Client Quit]
<clever> mfiano: one of the major strenghts of nixos, is that once you know a rev of nixpkgs that works good, you can always go back to that, no mater how bad things get, at the cost of downgrading to the versions within that rev
<MP2E> well unfortunately we're not immune to regressions either. But you can always rollback
acarrico has quit [Ping timeout: 252 seconds]
<mfiano> All software is horrible and regressions and new bugs are a way of life. I hear that. But yes, nixos let's me roll back.
<MichaelRaskin> The real strength is that you can rollback, then still install that one package you really need — from a fresh version
<mfiano> Arch Linux has just got completely unusable for me after almost 2 decades of use, and it's quite sad
<mfiano> But there are better now.
<MichaelRaskin> When I learned of NixOS, it was an instaswitch (ten years ago)
<MichaelRaskin> The fact that I was trying to get something similar by manipulating unionfs in a A/B LFS system did play a role…
<samueldr> not long after actually looking at nix, and nixos, I HAD to switch, didn't regret it
<mfiano> MichaelRaskin: Curious, being a Lisp guy, what made you choose NixOS over GuixSD?
<MichaelRaskin> GuixSD didn't exist back then?
<mfiano> Fair point.
<MichaelRaskin> And then, the extra extra purity of deblobbing Linux kernel of all blobs for add-on processors — I never got englightened enough to be able to keep track of hardware on that level
<mfiano> For me, it's mostly staying away from the GPL
<clever> MichaelRaskin: and what is guix going to do with microcode blobs and meltdown?
<MichaelRaskin> Also, I am not actually that pure a Lisp person — I have written shell scripts — complicated shell scripts — before writing anything large in Lisps
<MichaelRaskin> clever: good question, but I think the main protection against Meltdown is still KPTI
<clever> MichaelRaskin: and spectre
<clever> MichaelRaskin: i think there might have also been something about KPTI ruins performance, but the microcode can fix it faster
<MichaelRaskin> Spectre is just a mess, really.
goibhniu has quit [Ping timeout: 260 seconds]
<samueldr> MichaelRaskin: nothing wrong with shell scripts :)
<clever> spectre-meltdown-checker is also in nixpkgs, so you can test your boxes
<MichaelRaskin> clever: I think on some generations KPTI can be implemented as-is. And on some generations speedup comes from tuning caches for KPTI
coot has joined #nixos
<MP2E> is there a tool I can run to figure out why an executable is not running? The steam package seems to be broken for me but nobody else can reproduce the issue I have... it just gives me "~/.local/share/Steam/steam.sh: line 755: ~/.local/share/Steam/ubuntu12_32/steam: No such file or directory"
<gchristensen> anyone want to buy a town with me?
<clever> MP2E: are you using the hardened linux kernel
<MichaelRaskin> Basically, for _build scripts_ around shell-based build systems I actually prefer shell to Guile.
<MP2E> I don't think so, my kernel is just "linux = pkgs.linuxPackages_4_14.kernel;"
<MP2E> (with linuxPackages overriden as well)
<clever> MP2E: if you override boot.kernelPackages, it will set the kernel automatically
<clever> MP2E: if you run ls -lh ~/.local/share/Steam/ubuntu12_32/steam, what does it say?
<mfiano> how big should my nix store be for a graphical desktop?
<MP2E> it shows this :
<clever> mfiano: for my laptop, its using 62gig, and my desktop, 46gig
<MP2E> -rwx------ 1 cray nogroup 4.4M Nov 17 2015 /home/cray/.local/share/Steam/ubuntu12_32/steam*
<MichaelRaskin> mfiano: I like GPL for many kinds of things, AGPL not so much because I don't understand it.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lopsided98 opened pull request #35517: python: pytest-mock: fix Python 3 compatibility (master...pytest-mock-python-3) https://git.io/vAwgT
NixOS_GitHub has left #nixos [#nixos]
<clever> MP2E: and if you run file on it?
<MichaelRaskin> For store size, remember a simple fact: a glibc upgrade means you need to store both all the old stuff and all the new stuff at once.
<MP2E> "/home/cray/.local/share/Steam/ubuntu12_32/steam: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 3.2.32, BuildID[sha1]=12e429cc13f7db94a201d1ecf83bd7bdff5b2457, not stripped"
mk-fg has joined #nixos
mk-fg has quit [Changing host]
mk-fg has joined #nixos
<mfiano> I've read horror stories about 40gb being too small to build some things. I just want to be safe but have as much unallocated space at the end of my disk as I can get away with
<clever> MP2E: what does this output? cat /proc/config.gz | gunzip | grep IA32
<MichaelRaskin> These 40GiBs are probably needed in /tmp
<MP2E> "CONFIG_IA32_EMULATION=y" and "CONFIG_IA32_AOUT=m"
<MP2E> 2 lines
mbrgm has quit [Ping timeout: 240 seconds]
<clever> MP2E: yeah, 32bit support is on, are you using the steam chroot stuff from nixpkgs?
mbrgm has joined #nixos
<MP2E> yep! just installed it with 'nix-env -f ~/nixpkgs -iA steam'. with ~/nixpkgs being a git checkout of nixpkgs that was last pulled a week ago
<MP2E> I have also tried deleting ~/.local/share/Steam and all .steam* related files
<MP2E> and ran it again
<MP2E> it installs and then fails with the same error
<clever> MP2E: one min
<MP2E> stranger still, my laptop with a nixos config that is basically the same as this PC, but with a few changes for hardware, runs it just fine
<MP2E> alright no problem
mk-fg has quit [Ping timeout: 252 seconds]
<clever> MP2E: try you try it again from nixpkgs f607771d0f5 ?
<MP2E> sure thing
sigmundv has joined #nixos
asuryawanshi has joined #nixos
<mfiano> so to clarify, that's FAT16 and not FAT32 or exFAT for the 1GiB /boot partition?
goibhniu has joined #nixos
<MichaelRaskin> FAT32
<clever> [root@system76:~]# blkid /dev/nvme0n1p1
<clever> /dev/nvme0n1p1: UUID="7DBC-2698" TYPE="vfat" PARTUUID="27c99b08-455d-4dfe-a44f-6150cbc09ef8"
<MP2E> hmmm seems to fail still
<MP2E> same error
<clever> [root@system76:~]# hexdump -C /dev/nvme0n1p1 | head
<clever> 00000000 eb 58 90 6d 6b 66 73 2e 66 61 74 00 02 08 20 00 |.X.mkfs.fat... .|
mk-fg has joined #nixos
goibhniu has quit [Changing host]
goibhniu has joined #nixos
<mfiano> clever: ?
<clever> mfiano: thats what my EFI system partition looks like when inspected
<mfiano> as far as I know, vfat is used to denote both FAT16 and FAT32, just using a _f 32 switch during the creation process in the case of the latter.
<mfiano> -F 32 rather
mk-fg has quit [Changing host]
mk-fg has joined #nixos
asuryawanshi has quit [Ping timeout: 245 seconds]
<MichaelRaskin> Yes
mk-fg has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 3204061 Ryan Mulligan: assh: 2.6.0 -> 2.7.0...
<NixOS_GitHub> nixpkgs/master 529ea1f Michael Raskin: Merge pull request #35504 from ryantm/auto-update/assh-2.6.0-to-2.7.0...
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/vAwgE
NixOS_GitHub has left #nixos [#nixos]
gorre has joined #nixos
<gorre> Hello! Is this channel only for NixOS (like the operating system) realted talks...or also for the Nix package manager (in general)?!
<MichaelRaskin> Nix+*, really.
<samueldr> with a list of (package) outputs, assuming I can generate a correct nix list, is there a way to then get a list of paths for those?
<samueldr> I don't know how I can "just run nix"
<MichaelRaskin> map (x: x.outPath) ?
<samueldr> how do I run that nix code?
<samueldr> that may be my main issue :)
<samueldr> I'm still learning the nix language
<MichaelRaskin> What you have?
d4g_ has joined #nixos
Supersonic has quit [Disconnected by services]
<samueldr> okay, let me rephrase, given nix code, how can I run it? nix-env seems to be to manipulate, like install/uninstall
<gchristensen> gorre: Nix, Nixpkgs, NixOS the whole Nix ecosystem :)
<MichaelRaskin> nix-instantiate --eval-only --strict -E 'with import <nixpkgs> {}; map (x: x.outPath) [hello zlib.static]'
<gchristensen> gorre: if your question is super off topic, we'll suggest a different place
Supersonic112 has joined #nixos
<gorre> Thanks! So, OK...I'm running Ubuntu 16.04 LTS and I installed Docker via `nix-env --install --prebuilt-only docker-17.12.0-ce`. I'm under the assumption that after running that command, that's all I needed to have Docker installed...but I'm always getting: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
<samueldr> "instantiate store derivations from Nix expressions" I thought it meant that was used to "create stuff in the store" :/
<samueldr> thanks MichaelRaskin!
Supersonic112 is now known as Supersonic
<MichaelRaskin> It is not even about language…
<MichaelRaskin> It is about model of evaluation
<clever> gorre: that command only installs the docker programs, it doesnt configure any docker services
<clever> gorre: if you want docker to work outside of nixos, you have to manually run the daemon as root, and do all the normal config stuff
jophish___ has joined #nixos
<MichaelRaskin> There are Nix expressions. They can be evaluated to something, that might include derivations (objects representing stuff that needs building). nix-instantiate primarily writes the derivations to store
<jophish___> Hi all
<clever> gorre: but if your on nixos, its as simple as services.docker.enable = true; and your done
d4g has quit [Ping timeout: 252 seconds]
acarrico has joined #nixos
<MichaelRaskin> But nix-instantiate doesn't launch builds, so that's where --eval-only should be added naturally
<jophish___> 10:37 [ bebarker ] [ epta ] [ johbo ] [ mudphone ] [ rodgort ] [ wak-work ]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35518: auctex: 11.90 -> 12.1 (master...auto-update/auctex-11.90-to-12.1) https://git.io/vAwgH
NixOS_GitHub has left #nixos [#nixos]
<MichaelRaskin> And I guess Nix 2.0 «nix» command has a new split of responsibilities among subcommands
<jophish___> oops, ignore that
<samueldr> MichaelRaskin: it may have been me assuming from the synopsis, because I was swearing it must be it that I saw used for such tasks
<samueldr> that'll teach me to use `man`
<samueldr> :)
<mfiano> clever: I'm not sure if this partitioned correctly. I'm seeing flags I didn't set after a reboot
<gorre> @clever So, basically, I have to install more stuff...I'm used to the "normal" install
<clever> mfiano: its possible that your bios is doing funky things like messing with the partition table to "fix" it for you
<MichaelRaskin> samueldr: maybe this part actually requires the full manual
<samueldr> well, I'm always referring to the three manuals, but yeah, definitely should actually *read* the nix manual now that I know how to understand it :)
<mfiano> clever: like i made the first partition unformatted 2mb, and parted is showing it's type as "grub2 core.img". Also, the 1GiB boot partition has the flag "msftdata", and my btrfs-formatted partition is now of an unknown type
Guanin has joined #nixos
Guanin has quit [Remote host closed the connection]
<clever> mfiano: it sounds like gparted just looked inside sda1, and found the core.img within
Guanin has joined #nixos
justanotheruser has joined #nixos
<clever> 00000050 20 20 46 41 54 33 32 20 20 20 0e 1f be 77 7c ac | FAT32 ...w|.|
<clever> mfiano: oh, just noticed this within my EFI system partition
<mfiano> clever: Yeah after some googling EFI is always FAT32 I think
<clever> mfiano: gparted shows /dev/sdb1 as being a grub2 core.img on my end, with flags bios_grub and legacy_boot
<clever> mfiano: so what you said sounds right for the bios boot partition
<mfiano> I'm really an EFI newbie, so I'll try to install with that boot configuration declaration first to see what happens
<mfiano> Oh I don't have those flags
<clever> mfiano: try setting them?
<clever> mfiano: also, check to see what blkid says about the btrfs
<mfiano> I reformatted that one already and it seems good now.
<mfiano> What about the "msftdata" flag?
markus1199 has joined #nixos
cmacrae has joined #nixos
<mfiano> My guess is that the formatting operations were queued but didn't run for some reason. Probably due to the layout changing and kernel not detecting them.
<mfiano> So it was just reading the flag from the previous table
<clever> mfiano: id recomend fully closing gparted once your done, then re-opening it to confirm things stuck, and closing again
<clever> mfiano: then formating things
<clever> mfiano: ive also seen a friend try to repartition with both fdisk and gparted open at once, and they where overwriting eachothers tables
markus1189 has quit [Ping timeout: 248 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 2 new commits to master: https://git.io/vAw2Z
<NixOS_GitHub> nixpkgs/master 09e5763 Shea Levy: libgpg-error: Add RISC-V patch.
<NixOS_GitHub> nixpkgs/master 87270fb Shea Levy: gnu-efi: Only build on efi-enabled systems
NixOS_GitHub has left #nixos [#nixos]
<mfiano> I did that actually
mrkgnao has joined #nixos
pkill9 has quit [Ping timeout: 252 seconds]
<mfiano> It seems I can't even remove the flag. Setting another flag is okay, but removing that other flag just puts msftdata back
<mfiano> Maybe this is needed for FAT32?
<gchristensen> shlevy: you are just killing it
<clever> mfiano: i think thats a result of the uuid type code that was set when creating
cmacrae has quit [Ping timeout: 245 seconds]
<MichaelRaskin> On GPT you are expected to have _some_ data type, and 0700 is the default
<shlevy> gchristensen: Slowly but surely getting to systemd :)
<gchristensen> [ "x86" "arm" ] <- does arm imply aarch64?
<shlevy> gchristensen: Don't think so, but gnu-efi is currently only building on those two right now
<gchristensen> I see
<shlevy> Probably straightforward to get it on aarch64
<gchristensen> well... I don't know the details, but I'm pretty sure I use create an efi aarch64 image
* gchristensen places a double-dose of i-have-no-idea-what-im-doing.dog
gorre has quit [Quit: Leaving]
<mfiano> clever: Ok I'll try this. Is there anything special I have to do to install with EFI using that 1GiB boot partition?
<clever> mfiano: if your not booted under efi, you have to set the install as removable flag i mentioned earlier
<mfiano> clever: and that's it other than mounting that fat32 under /mnt/boot as before?
<clever> mfiano: and run nixos-generate-config --root /mnt, so it knows about that fat32
<chocopuff> gchristensen: I'm reading Dr. Dolstra's thesis, maybe it was sphalerite_ that referred me to it, he was the guy that laid most of the foundation?
<gchristensen> chocopuff: yep!
<chocopuff> I'm assuming, he made it *for* his thesis
<chocopuff> so nix arose from academic research?
<gchristensen> yep
<chocopuff> oh man, that's cool to learn
<gchristensen> yeah?
<chocopuff> I feel like this is pretty revolutionary research
<gchristensen> (Eelco, Dr. Dolstra) is still very involved with Nix and the ecosystem
jooni has quit [Quit: Bye]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar opened pull request #35519: tree-wide: autorename gnome packages to use dashes (master...gnome-normalisation) https://git.io/vAw2R
NixOS_GitHub has left #nixos [#nixos]
MP2E has quit [Remote host closed the connection]
<mfiano> clever: When is the 1-2mb first partition needed? I noticed your EFI is the first partition on your nvme...
<clever> mfiano: the bios boot partition is only used for legacy booting
<mfiano> I see
<clever> mfiano: with legacy on MBR, grub puts a 512 byte stub into sector 0
<clever> mfiano: and then it puts core.img between sector 0 and partition 1, in 'unused' space
plakband has quit [Quit: Lost terminal]
<mfiano> and it wouldn't cause problems with UEFI if i upgrade?
<clever> mfiano: but gpt uses more then the 1st sector
<clever> and they are against ugly hacks of using "unused" space
<clever> so you just make a proper partition to hold that data
<clever> efi just ignores the bios boot partition
<clever> instead, it loads the efi system partition, and boots the .efi file from that
<Guanin> Hi all, I am currently trying to setup a centralized user management (so that I can reuse system users all over different services) and plan to use PAM. As far as I understood from earlier questions and my own research, the unix pam library uses a setuid helper binary to check passwords, but deliberately fails when it is invoked as a non-root user to authenticate a different user. Would you either patch the helper binary (just one
<Guanin> line needs to be change) or would you chmod the helper binary and /etc/shadow (because group permissions are not dropped, setgid would help here)?
<clever> but typically, the bios can only boot an efi image configured in the efi vars
<Guanin> sorry, that became longer than expected
<mfiano> clever: THanks, I'm going to try using the option you suggested now
MP2E has joined #nixos
<clever> Guanin: here is a custom pam client i had worked on a few years ago
<clever> Guanin: this part configures pam to allow it access: https://github.com/taktoa/hsdm/blob/master/hsdm-module.nix#L32-L35
<clever> Guanin: and this part calls functions in pam from the unpriveledged user: https://github.com/taktoa/hsdm/blob/master/haskell/src/System/HSDM/PAM/Internals.chs#L55-L72
orivej has quit [Ping timeout: 256 seconds]
<clever> something in the pam library then deals with gaining root, and confirming the name/pw
<Guanin> well, that is probably the unix_chkpwd binary, which is setuid and is solely there to open /etc/shadow and checking the pw
<clever> Guanin: ah, and i think you provide a username to pam, then pam runs a callback to ask for more details
ebzzry_ has quit [Read error: Connection reset by peer]
<Guanin> But it drops privileges when you are not root and try to authenticate as a different user
mk-fg has joined #nixos
mk-fg has quit [Changing host]
mk-fg has joined #nixos
<clever> [root@amd-nixos:~]# cat /etc/pam.d/sudo | uniq
<clever> Guanin: i think this file is also involved somehow
<clever> Guanin: oh, correction to what i said above, hsdm is running as root when it does these calls, and will drop root to the chosen user once it confirms things
<Guanin> so you do not run into any problems, correct?
<clever> yeah, that program didnt have any pam problems
nuncanada has quit [Quit: Leaving]
<clever> other then pam not handling stray signals well
<clever> haskell uses a timer signal to implement lightweight threads
<clever> and if pam gets interrupted with any signal,returning an error code that says to try again, pam instead treats it as a hard failure
ebzzry_ has joined #nixos
<Guanin> well, I want to use PAM with e.g. gogs (or gitea), nginx and elsewhere - and in my opinion, running the daemons as root is not desirable. So I am calling pam as a normal user and this code triggers: https://github.com/linux-pam/linux-pam/blob/master/modules/pam_unix/unix_chkpwd.c#L139
<clever> Guanin: have you considered just having normal pam setup everywhere, but using a nixos config file in git to keep them in sync?
plakband has joined #nixos
<Guanin> what do you mean with normal pam setup?
mk-fg has quit [Ping timeout: 245 seconds]
<clever> Guanin: ignoring the normal centralized user stuff in pam, and just using git to sync the nixos config that generates users
<Guanin> Is it possible that we are talking about slightly different things? I want to use the users in /etc/passwd to be able to login on a gogs/gitlab instance or to access directories with http basic authentication, using the same username/password in all places
<clever> Guanin: ah, yeah, thats a bit different
<Guanin> So I do not have the problem that I want to feed multiple hosts with the same user
<clever> Guanin: i was thinking more about things like not even having users in /etc/passwd, and looking them up over the network
<Guanin> Ok, that would be solvable by putting PAM modules into the config
<Guanin> e.g. pam_ldap
<clever> ah, ldap, thats what i was trying to think of
<Guanin> (I know that ldap _might_ also be a solution for my problem, but it provides way too many features and I failed all five times trying to set it up)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vAw2x
<NixOS_GitHub> nixpkgs/master 0ac6d4a Shea Levy: gnu-efi: Fix aarch64 cross-build
NixOS_GitHub has left #nixos [#nixos]
<Guanin> So, I know that unix_chkpwd drops the privileges for a good reason: to prevent brute force attacks from other users on the same system
<Guanin> and I know that my problem is probably solvable by either removing that privilege drop, or by chmodding and chowning /etc/shadows and unix_chkpwd
<Guanin> But to be honest, I'm too new to nixOS to know how to do any of the two approaches
jophish___ has quit [Remote host closed the connection]
<Guanin> And I do not know which of the two ways would be the cleaner one
mrkgnao has quit [Ping timeout: 260 seconds]
<mfiano> clever: Heh I got an error for efi installation
<gchristensen> anyone know how to use go2nix with vendored dependencies?
mrkgnao has joined #nixos
<mfiano> Ignore that. I messed up the boot partition
<samueldr> nice, now that I'm not using nix-env on each of 4k pkgs, I can, with parallelism, get all narinfo downloaded from the nix-locate query in 17s :D
<gchristensen> :o
mk-fg has joined #nixos
mk-fg has quit [Changing host]
mk-fg has joined #nixos
<gchristensen> !tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<samueldr> someone needed a specific amount of zeroes
* gchristensen shifty
<joepie91> hehe
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master f4a0c57 Franz Pletz: Merge pull request #35514 from rnhmjoj/mitm...
<NixOS_GitHub> [nixpkgs] fpletz pushed 3 new commits to master: https://git.io/vAwaC
<NixOS_GitHub> nixpkgs/master 35e8aef rnhmjoj: mitmproxy: remove old patch
<NixOS_GitHub> nixpkgs/master 85dda55 rnhmjoj: mitmproxy: 2017-10-31 -> 3.0.2
<samueldr> beforehand, it took me 45 minutes to get my first estimate of the total size, because it was: 2 nix-env call per package, with one download per peckage (narinfo), without any parallelism
<samueldr> 45 minutes to 17s is great improvement imho
<gchristensen> shlevy: can you revert your gnu-efi thing? it broke master
<gchristensen> shlevy: PS may I recommend a PR so you don't break master? :)
* BlessJah wonders if nixos would make a good router (VM)
<mfiano> Well, installation was a success, but I can't boot. But not NixOS's fault this time.
<samueldr> at least two users here are actively using nixos as their routers
<clever> BlessJah: i run it on my router, and we have #nixos-on-your-router
<samueldr> but not as VM
<shlevy> gchristensen: One sec...
<gchristensen> BlessJah, samueldr: there is a whole channel for it, #nixos-on-your-router
<samueldr> gchristensen: I know, I'm idling there :D
<shlevy> gchristensen: I ran a tarball eval I thought
<gchristensen> it breaks evals for aarch64
<shlevy> Aah I'll run that
<mfiano> clever: Did an EFI install with the option you recommended, rebooted, switched firmware to not use CSM, and now my firmware does not see any boot devices. I can't even change the order in the UEFI. However, it boots fine in legacy mode.
<mfiano> Something is strange with my motherboard, not letting me boot at all in EFI mode
<gchristensen> shlevy: this won't catch all the ways master can be broken, but it covers several
<shlevy> Thanks
<gchristensen> shlevy: but is there a reason to push right to master?
<clever> mfiano: that reminds me
<shlevy> No, I just didn't realize ofborog was ready
<clever> mfiano: i heard somebody mention in here a week ago, about a bios that could only boot windows
<samueldr> mfiano: which motherboard is it?
<clever> mfiano: it was just hard-coded to the path windows uses
<dpc> ln: failed to create symbolic link '/nix/store/hnr5cvavqcd12iiclcpqy2vvwz2pry7d-neovim-ruby-env/bin/bundle': File exists
<dpc> builder for ‘/nix/store/lv4khjybbjhh4dgzbjg2xk3bgrgiw4za-neovim-ruby-env.drv’ failed with exit code 1
plakband has quit [Quit: leaving]
<gchristensen> shlevy: well it doesn't gate, but it is ready in that it has been doing reliable PR checking for 4mo now
<samueldr> oh, try copying grubx64.efi to /EFI/boot/bootx64.efi in the ESP (so at /boot/EFI/boot/bootx64.efi)
<dpc> What do I do? :(
<shlevy> Ah OK. I'll start using PRs then. But we should gate ;)
<mfiano> samueldr: ASRock Z87 Fatal1ty Killer
<samueldr> /EFI/boot/bootx64.efi is the default boot program for EFI
<gchristensen> I agree :) thanks!
<samueldr> I'm a bit "forced" on a crappy EFI to put refind there
<samueldr> (cheap cherry trail atom tablet that loves to lose all EFI config)
<mfiano> samueldr: I'm an EFI newbie. I don't know what you mean by ESP
<samueldr> the /boot/ you created is the ESP
<samueldr> FAT32 partition
<samueldr> and then, if bootx64.efi doesn't work, try what clever linked
* samueldr shudders
<mfiano> My problem is that when I switch off CSM, I have no boot devices. The internal drives nor any flash drive plugged in cannot be seen in the firmware menu or its boot selection menu.
<clever> samueldr: yeah, lol
<mfiano> Does that make sense to anyone?
<clever> mfiano: try copying the grub.efi file to EFI\Microsoft\Boot\bootmgfw.efi within the efi partition
<samueldr> the fact the external drives cannot be seen is weird, but sometimes it's *yet another option*
<clever> mfiano: you will probably also want to change the \'s to /'s
<mfiano> Ok I have to reboot into something usable first. brb
Drakonis has quit [Read error: Connection reset by peer]
<shlevy> gchristensen: That command worked fine... what am I supposed to see in the output?
<gchristensen> if all goes well, nothing, but in the out-paths result file a list of all outputs for four archs
<shlevy> gchristensen: Did you check with my latest commit?
<clever> mfiano: the above copy can be done without nixos-install, just mount it and copy the file, then umount
<gchristensen> ah seems fixed, shlevy , sorry
<shlevy> :) No worries
<shlevy> I'll stop committing to master
<gchristensen> :) <3 thank you
<shlevy> Prepare for PR churn
<mfiano> ugh. i dont know what happened but now the nix livecd isnt obtaining an ip address ever since i toggled cam off/back on
<mfiano> csm rather
<samueldr> mfiano: no need to, mount /boot somewhere e.g. /mnt/boot, `cd /mnt/boot; cp EFI/NixOS-boot/grubx64.efi EFI/boot/bootx64.efi`
<samueldr> you shouldn't need to run nixos-install if it is to boot as efi using the default bootx64.efi
chocopuff has quit [Ping timeout: 240 seconds]
<samueldr> THEN, if it doesn't work, copy it at the path mentioned in clever's last link
robstr has joined #nixos
<mfiano> let me try, thanks
<mfiano> samueldr: that file isn't present
<samueldr> hmm, I went from memory, find /mnt/boot -iname '*.efi'
<mfiano> /mnt/boot/grub/x86_64-efi/core.efi
<mfiano> /mnt/boot/grub/x86_64-efi/grub.efi
<mfiano> /mnt/boot/EFI/BOOT/BOOTX64.EFI
<samueldr> oh, you already have a bootx64.efi in there
<clever> the removable option setup bootx64.efi
<samueldr> ah, sorry then
<samueldr> TIL
<samueldr> and had I thought for a minute it should have been obvious, ouch, your motherboard really seem to be built to make people hate EFI
<mfiano> :(
<mfiano> This is why I never did an EFI install
<clever> samueldr: mine entirely ignores the boot order and the legacy options if the EFI drive can be found at all
<clever> samueldr: i have to either unplug the efi drive or disable efi support
<samueldr> mfiano: mkdir -p /mnt/boot/EFI/Microsoft/Boot ; cp /mnt/boot/EFI/BOOT/BOOTX64.EFI /mnt/boot/EFI/Microsoft/Boot/bootmgfw.efi
<samueldr> ugh, in the end, I'm lucky with my EFI that "only" loses all their settings
robstr has quit [Ping timeout: 256 seconds]
<mfiano> is that it?
<samueldr> that should be equivalent to the operations in clever's link
<mfiano> if that doesn't work should i try copying grub.efi to that location too?
<samueldr> not sure if grub.efi is a "real" efi program or something internal to grub
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy opened pull request #35520: libgcrypt: Fix cross-compilation (master...libgcrypt-cross) https://git.io/vAwVm
NixOS_GitHub has left #nixos [#nixos]
<mfiano> That worked!
<samueldr> it saddens me how the open implementation (tianocore) can be made to work flawlessly on non-EFI hardware (chromebooks) while vendors ship hapazard broken implementations still
<samueldr> mfiano: then make a mental note: this specific motherboard, `ASRock Z87 Fatal1ty Killer` only boots efi programs at the "microsoft" location
<clever> samueldr: ive messed with the EFI within virtualbox, and it has a usable UI for editing the boot entries!!
<samueldr> clever: do you think it would be wise to *also* copy the grub program there?
<clever> samueldr: as in, i can edit the efibootmgr type stuff, from the firmware
<samueldr> clever: IIRC it's the same implementation I'm using on my chromebook that's used in virtualbox
<clever> samueldr: id say just copy it everywhere until it starts working, lol
<mfiano> ha
<samueldr> clever: sorry, I meant, for the usb drive for the nixos installer
<clever> samueldr: ah, maybe
<mfiano> Ok now I just have to fix my config. Its booting into some unusable wm with a small terminal, when i told it i3
<samueldr> mfiano: progress is good :D
<clever> mfiano: ctrl+alt+f1 to get a text console
<clever> mfiano: then you can edit the config and nixos-rebuild switch followed by systemctl restart display-manager
<mfiano> I know but what wm does it use hmm
<clever> samueldr: i need to poke around some more and get efi working under qemu
<samueldr> uuuh, I had it working
<clever> samueldr: and i recently found http://efi.akeo.ie/
<clever> samueldr: this is an efi binary, that contains every FS driver in grub2, and hooks them into the efi system
<clever> samueldr: it then returns a standard "i cant boot" failure, causing the firmware to just try to the next entry in the config
<samueldr> clever: definitely NOT good nix parctices, but it got me a fast way to test my grub PR
<mfiano> heh its not even starting the dm in efi. weird
<clever> samueldr: in theory, efi.akeo.ie would allow efi to boot from ext4 or zfs
<clever> samueldr: i tried something like that earlier and it just hung, i'll need ot try it again
<mfiano> systemctl start display-manager only works in legacy. no output in efi
justanotheruser has quit [Ping timeout: 256 seconds]
<samueldr> clever: from a successfully built iso, `qemu-efi -cdrom result/iso/nixos-18.03.*-linux.iso -m 512` got me working
<clever> mfiano: journalctl -f -u display-manager, any errors?
<clever> [clever@amd-nixos:~/apps/uefi]$ nix-build '<nixpkgs>' -A OVMF.fd -o OVMF
<mfiano> yeah Failed to start X11 Server
<clever> [clever@amd-nixos:~/apps/uefi]$ nix-build '<nixpkgs>' -A qemu_kvm -o qemu
<mfiano> how descriptive
<clever> mfiano: anything else, further up?, maybe add -n30 or -n300
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] deepfire opened pull request #35521: ghc841: bump to 20180224 (master...ghc84-20180224) https://git.io/vAwV8
NixOS_GitHub has left #nixos [#nixos]
<mfiano> clever: 3 lines, just as descriptive
<clever> [clever@amd-nixos:~/apps/uefi]$ ./qemu/bin/qemu-system-x86_64 -bios $(realpath OVMF-fd/FV/OVMF.fd)
<clever> samueldr: got a tianocore logo, and a single . but no efi shell
<mfiano> main process exited, unit entered fialed state, service hold off timer over
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vAwV2
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 1c1a6df Shea Levy: libgcrypt: Fix cross-compilation
<clever> mfiano: journalctl -u display-manager | gist -p -
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy closed pull request #35520: libgcrypt: Fix cross-compilation (master...libgcrypt-cross) https://git.io/vAwVm
NixOS_GitHub has left #nixos [#nixos]
<clever> samueldr: lol, right as i tried to close it, it sprang to life
<clever> then i clicked the X
<samueldr> ah lol
<samueldr> I don't know if it ships with the shell though
<clever> samueldr: i'm attempting to build my own efi application, as an experiment
<clever> Feb 24 22:57:32 basilisk display-manager[1052]: (EE) VESA(0): V_BIOS address 0x0 out of range
<mfiano> I am using the dummy 'auto' dm, telling it to start i3 directly. it works in legacy mode
<clever> Feb 24 22:57:32 basilisk display-manager[1052]: (EE) Screen(s) found, but none have a usable configuration.
<clever> mfiano: i think the EFI is blocking the video drivers
<mfiano> So now what is EFI doing wrong? :/
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy opened pull request #35522: Only build libseccomp on supported systems (master...seccomp-unsupported) https://git.io/vAwVy
NixOS_GitHub has left #nixos [#nixos]
<clever> mfiano: everything? :D
<mfiano> So I can't use Linux in EFI mode?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35523: audacity: 2.2.1 -> 2.2.2 (master...auto-update/audacity-2.2.1-to-2.2.2) https://git.io/vAwVQ
NixOS_GitHub has left #nixos [#nixos]
<clever> mfiano: would you like to join the church of coreboot? lol
<mfiano> umm
<clever> mfiano: https://www.coreboot.org/
<clever> opensource bios/firmware
<mfiano> I have no browser
<clever> samueldr: yep, after a ~1 minute timeout, i get an efi shell
<mfiano> That sounds scary. I don't want to brick my only PC
<clever> mfiano: yeah, thats why i havent tried it on any hardware yet
<samueldr> oh coreboot definitely isn't for the faint of heart
<samueldr> I do run it on my c720p
<samueldr> and it's lovely
<samueldr> that's what all computers should run
<samueldr> always
<clever> samueldr: i want a sure-fire way to unbrick it before i start
<mfiano> Now I want to try it heh
<clever> samueldr: either a clip-on programmer, or leave the recovery mechanism intact
<mfiano> Can I backup current firmware?
<samueldr> chromebooks are almost 100% sure-fire recoverable :D
<clever> samueldr: my desktop motherboard can re-flash itself if you give it a usb stick with the firmware, and hold a special button
<samueldr> oh, that's useful
<clever> mfiano: the problem, is how do you load the backup, when it doesnt boot
<clever> samueldr: but, would coreboot break the re-flash thing i mentioned?
<clever> samueldr: what level does it work at?
<samueldr> clever: no idea!
<mfiano> Hmm
<clever> samueldr: yeah...
<samueldr> #flashrom or #coreboot might know
<samueldr> I was betting on the fact that the process was widely used on my c720p, and that there was clear instructions on how to recover
<mfiano> I guess I'm stuck with legacy then.
justanotheruser has joined #nixos
<clever> samueldr: product: CROSSHAIR V FORMULA-Z
<samueldr> sadly, I'm only a user of coreboot :(
<samueldr> though, I'll probably try looking at how impossible it would be to port to either my cheap atom tablet or my main laptop
<samueldr> now that I have the hardware to unbrick
<clever> samueldr: this motherboard also has a non-standard double-male usb cable, that connects a special usb port on the mobo, to another pc running special software
<samueldr> (though, first I'll do a dry run of backing up and recovering the bios)
<clever> samueldr: then using USB HID packets, it can change the bios settings, simulate the power/reset buttons, and monitor the temps and fan speeds
<samueldr> clever: is it a non-standard double-male USB or a standard double-male USB? recently learnt that it *is* standard
<clever> samueldr: even if the motherboard is "off"
<samueldr> though there's no negotiation with that standard cable, or something akin to that
chocopuff has joined #nixos
<clever> samueldr: ive been told that its violating the standards to make such a cable
<clever> samueldr: you have to hit a special button on the motherboard, to switch it into device mode on that port
<samueldr> I've read that all my life
<mfiano> this motherboard is horrible. id rather have fun configuring nix than being tortured with a locked down firmware anymore
<clever> its the same port that handles reflashing itself
<samueldr> but I bought one for chromebit shenanigans
<samueldr> and was wondering why it seemed to be sold
<clever> samueldr: oh, and the stick firmware on this motherboard can take bitmap screenshots of itself, and save them to usb
<clever> stock*
<samueldr> I can't find the source of my assertions though
<samueldr> but while it's unusual and won't do anything by default, USB-A to USB-A male to male is standard
schoppenhauer has quit [Ping timeout: 252 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vAwwG
<NixOS_GitHub> nixpkgs/master 3c57e77 Shea Levy: Only build libseccomp on supported systems
NixOS_GitHub has left #nixos [#nixos]
schoppenhauer has joined #nixos
asuryawanshi has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy closed pull request #35522: Only build libseccomp on supported systems (master...seccomp-unsupported) https://git.io/vAwVy
NixOS_GitHub has left #nixos [#nixos]
alex`` has joined #nixos
<clever> samueldr: ah
<samueldr> though, while searching, I found out that USB *3* has A-male-to-male in the spec, maybe that's what they were thinking about
<mfiano> What is wrong with this? I want i3wm to start automatically, but instead some crippled, unknown wm is starting instead: https://gist.github.com/588f0cac5e1da1e47f2cca67a4fa7bd2
<clever> samueldr: only 4 leads in this cable
<samueldr> eh, so it's still "maybe compliant"
<clever> mfiano: if your using the slim display manager, i think it was f1 or f3 to cycle between the options, and its white on light blue, so its hard to read
<mfiano> I'm not
<clever> and auto-login skips that
<mfiano> I'm using the dummy "auto" dm
<clever> mfiano: there is an xterm desktop manager that may be enabled by default
asuryawanshi has quit [Ping timeout: 248 seconds]
<mfiano> services.xserver.displayManager.auto.enable = true;
<mfiano> services.xserver.windowManager.i3.enable = true;
<mfiano> What else is needed to autostart i3?
<shlevy> Damn systemd has a ridiculous number of dependencies.
<clever> mfiano: can you screenshot what comes up when you initially login?
<mfiano> Can you tell me how to do that with a crippled install?
<clever> mfiano: camera again?
<mfiano> Ok
<clever> mfiano: yep, thought so
<clever> mfiano: services.xserver.desktopManager.xterm.enable
<gchristensen> is it possible to ask a specific SSH private key when setting up a new node?
<clever> mfiano: this option defaults to on, and with the auto-login, your not being asked which DM to use
<clever> mfiano: set xterm to false and it should use i3 instead
<mfiano> ok how do i rebuild?
plakband has joined #nixos
<mfiano> sorry no access to docs right now
<clever> mfiano: nixos-rebuild switch as root
acarrico has quit [Ping timeout: 260 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35524: autojump: 22.5.0 -> 22.5.1 (master...auto-update/autojump-22.5.0-to-22.5.1) https://git.io/vAwwM
NixOS_GitHub has left #nixos [#nixos]
Mateon3 has joined #nixos
<mfiano> clever: same thing with that false
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35525: autorevision: 1.20 -> 1.21 (master...auto-update/autorevision-1.20-to-1.21) https://git.io/vAwwS
NixOS_GitHub has left #nixos [#nixos]
Mateon1 has quit [Ping timeout: 252 seconds]
Mateon3 is now known as Mateon1
<clever> mfiano: and you may need to `systemctl restart display-manager` also
<mfiano> clever: i rebooted lol
<mfiano> same thing
cmacrae has joined #nixos
jophish_ has joined #nixos
jophish_ has quit [Client Quit]
cmacrae has quit [Ping timeout: 240 seconds]
<clever> samueldr: if i boot my custom efi program in virtualbox, it says invalid parameter, but in qemu, it says command error status: not found
<clever> samueldr: yet the efi shell looks nearly identical
<mfiano> wonder if the auto dm is completely broken
<BlessJah> is this supposed to happen? https://imgur.com/a/9rwCS
<samueldr> clever: even while only booting refind and grub, I found out both those "identical" implementations differed
<samueldr> IIRC either tianocore or OVMF has v1 and v2 both available and maintained
<BlessJah> vm built with no config {...}:{} complains about root user being invalid
<clever> BlessJah: you have invalid json in one of the state files, and that breaks the perl script managing users
<clever> BlessJah: one min
<clever> BlessJah: /var/lib/nixos/uid-map and /var/lib/nixos/gid-map
<BlessJah> on host?
<clever> BlessJah: you can also just delete the entire nixos-something.qcow2 in the directory you launched qemu from, to wipe the virtual hdd
jophish_ has joined #nixos
jophish_ has quit [Client Quit]
<clever> BlessJah: inside the broken guest
<BlessJah> I'm rebuilding it over and over
jophish_ has joined #nixos
<clever> 10 my $uidMapFile = "/var/lib/nixos/uid-map";
<clever> 11 my $uidMap = -e $uidMapFile ? decode_json(read_file($uidMapFile)) : {};
<clever> BlessJah: line 11 says its the uid-map file
<clever> BlessJah: deleting the .qcow2 file is the simplest way to fix it
<BlessJah> ok
<BlessJah> I'm not sure how build works then
<clever> BlessJah: and it shares the /nix from the host
<clever> BlessJah: nixos-rebuild build-vm generates a bash script that launches nixos inside a vm, with nixos-something.qcow2 as the root hdd
<clever> BlessJah: the /var/lib/nixos/uid-map file inside of nixos-something.qcow2 got corrupted by an improper shutdown of the VM
<clever> and that entirely broke nixos's ability to auto-create users
jophish_ has quit [Client Quit]
<BlessJah> kk
<BlessJah> works, thanks
<mfiano> ok even if i set auto.enable to false, it STILL autostarts an xterm
<mfiano> something seems very wrong
<clever> mfiano: after you reboot, can you compare ls -l /run/current-system to ls -l /nix/var/nix/profiles/
<clever> mfiano: is current-system pointing to the latest system symlink?
<Li[m]> can someone explain the difference between `inherit lib` and `inherit (lib)`
<mfiano> clever: heh no. its pointing to one from an hour ago
<mfiano> ugh now i'm even more confused
<clever> mfiano: you dont have /boot mounted
<clever> mfiano: so every time you reboot, it does a rollback to the initial install, ignoring every config change
alex`` has quit [Ping timeout: 240 seconds]
<mfiano> ha
<clever> mfiano: make sure you mount /boot, and add it to your hardware-configuration.nix
<mfiano> how do i generate hardware config without touching main file?
jophish_ has joined #nixos
<clever> mfiano: nixos-generate-config doesnt touch the main file
<jophish_> Has anyone ever seen curl output like this before? https://asciinema.org/a/aQG8NpCAA00SChDziXKtxnpxi
<clever> jophish_: curl has a callback to give some of its output to the host process, which should print it to the console
<clever> jophish_: nix is adding a \n at the end of each fragment of output
<jophish_> That would certainly explain the output
<jophish_> aha:
<jophish_> Looks as though I should update the daemon
<clever> jophish_: ahh, that explains things more
<clever> its the daemon trying to wrap up the stdout of curl, and ship it over the nix protocol
sigmundv has quit [Ping timeout: 245 seconds]
<mfiano> thank you. I can auto boot to i3 now
<jophish_> clever: updating the daemon to 2.0 fixed everything :)
izdmar has joined #nixos
<clever> jophish_: i should start spreading that to all of my machines then
chrios has joined #nixos
<Li[m]> > The problem is that we cannot use it in any way, because it's unnamed... joke!
<Li[m]> From the nix pills #5. Did anyone laugh?
izdmar has quit [Remote host closed the connection]
abbe has joined #nixos
<abbe> Hi!
<abbe> I'm a new user of NixOS. I have a question regarding adding new expressions, or modifying existing expressions, e.g. trying to update a package to its latest version.
<clever> abbe: thats normally done with package overrides
chrios has quit [Ping timeout: 260 seconds]
<abbe> okay, but how about if I like to make changes, so that I can contribute them upstream (nixpkgs) ?
<clever> abbe: fork nixpkgs, clone your fork, and then edit the files in that fork
<clever> abbe: if you run `nix-build -A hello` in the root directory of the fork, it will build a test of the hello world package
<abbe> oh!
<abbe> thanks!
<abbe> that's what I was confused about
asuryawanshi has joined #nixos
endformationage has quit [Quit: WeeChat 1.9.1]
asuryawanshi has quit [Ping timeout: 245 seconds]
<mfiano> I can't seem to find the right option(s) to turn on the proprietary nvidia driver.
<clever> mfiano: services.xserver.videoDrivers
asuryawanshi has joined #nixos
<mfiano> and it will fetch the binary even though it's not open source?
<clever> mfiano: you can use the keywords from this list to activte it
<clever> mfiano: it will fail to download because its closed source, and the error explains what you have to add to configuration.nix, to enable unfree software
<clever> mfiano: oh, and the nvidia drivers may not have trouble with efi
<clever> it might only be the basic vesa driver that had trouble
<mfiano> Ha, I'll retry that in a bit then
<mfiano> So far I am falling in love with nix even if it has a long initial writing of a config step, that's once, and iteratively edited thereafter
<samueldr> let's say that your motherboard doesn't help :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] yrashk opened pull request #35526: sit: 0.1.2 -> 0.1.3 (master...sit-0.1.3) https://git.io/vAwo8
NixOS_GitHub has left #nixos [#nixos]
Tehnix3 has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar opened pull request #35527: pythonPackages.cairocffi: 0.7.2 → 0.8.0 (master...cairocffi) https://git.io/vAwoB
NixOS_GitHub has left #nixos [#nixos]
Tehnix has joined #nixos
asuryawanshi has quit [Ping timeout: 252 seconds]
jophish_ has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] samueldr opened pull request #35528: installer: Makes iso image compatible with *wrong* UEFI. (master...feature/bootmgfw.efi) https://git.io/vAwoK
NixOS_GitHub has left #nixos [#nixos]
<samueldr> let's hope this can be merged, and will be merged
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vAwoX
<NixOS_GitHub> nixpkgs/master a60774c Peter Hoeg: tome4: 1.4.9 -> 1.5.5
NixOS_GitHub has left #nixos [#nixos]
asuryawanshi has joined #nixos
<clever> samueldr: ive yoinked the grub efi file from my laptop, and stuck it into the qemu image, to confirm if i'm even using the efi shell right
<samueldr> and the verdict is?
<clever> waiting for the 60 second hang
<clever> it boots
<clever> just typing fs0: and bootx64 into the shell runs bootx64.efi
<clever> but without /boot, grub cant find normal.mod, so its stuck in rescue mode
<clever> i didnt copy enough of it
<samueldr> by... this day... well... after one sleep cycle, I should have *something* with the manpages, I at least have the full nar archives + restored roots :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy opened pull request #35529: perl: Work around cross-compilation issue with gcc 7 (master...perl-gcc6-cross) https://git.io/vAwod
NixOS_GitHub has left #nixos [#nixos]
<clever> samueldr: nice
asuryawanshi has quit [Ping timeout: 248 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35530: babeltrace: 1.5.3 -> 1.5.4 (master...auto-update/babeltrace-1.5.3-to-1.5.4) https://git.io/vAwoN
NixOS_GitHub has left #nixos [#nixos]
<samueldr> what's left for the first draft is 1) keeping only $out/share/man 2) converting into a format 3) listing :D
chrios has joined #nixos
mrkgnao has quit [Ping timeout: 256 seconds]
ryantm has quit [Ping timeout: 248 seconds]
chrios_ has joined #nixos
<mfiano> I sort of wish nixos-generate-config was smart enough to copy the mount options. I just realized btrfs isn't even mounted with compression and other options, so I'll have to redo it all after I make my config.
<clever> mfiano: near line 338
<clever> mfiano: 401 has btrfs handling
<clever> it has to query the subvolume, and persist that option correctly, it it wont even mount the right one
chrios has quit [Ping timeout: 245 seconds]
<clever> mfiano: i prefer zfs, and compression is a setting on the sub-volume, that persists between reboots, so you cant forget it so easily
<mfiano> Yeah it is only applying the subvol mount option and nothing else to hardware-configuration
<clever> mfiano: you can also set just one option in configuration.nix, and nixos will merge them
<clever> fileSystems."/".options = [ "iwantcompression=yes"; ]; for example
<clever> list based options concat between files
asuryawanshi has joined #nixos
<mfiano> Anyway, is it considered bad practice to move hardware-configuration to the main config file so you can write your own instead of having it wrongly generate things like that and the frequency scaling governor? The manual says never to edit the hardware-configuration file
<clever> mfiano: its mostly personal preference
<clever> mfiano: the only real point i see with hardware-configuration, is to make it easy to re-generate the basic mount stuff with nixos-generate-config
<clever> but your free to just never use that again, and manage it all yourself
<mfiano> Right ok
<clever> and you can just edit hardware-configuration, just be aware that it gets overwritten, if you run nixos-generate-config by mistake
Rusty1_ has quit [Quit: Konversation terminated!]
<mfiano> Well it looks like NixOS has the same problem that drove me to it from Arch
<clever> mfiano: ?
<mfiano> Oddly Ubuntu and Mint do not suffer this bug
<clever> samueldr: grub flagged the rescue shell with noreturn, so you cant return control to the efi shell
<mfiano> What's the fastest way to take a screenshot?
<clever> mfiano: i usually install xfce4-screenshooter and bind it to the printscreen key
asuryawanshi has quit [Ping timeout: 256 seconds]
<simpson> mfiano: $(nix-shell -p scrot --run scrot)
<clever> mfiano: nix-env -iA nixos.xfce.xfce4-screenshooter
<mfiano> how can i install that and then remove it
<clever> mfiano: nix-shell -p xfce.xfce4-screenshooter --run xfce4-screenshooter
asuryawanshi has joined #nixos
<mfiano> I'll have to figure out how to removei t later
<clever> nix-shell changes dont persist
<mfiano> chromium uses 100% of all my cores to play videos and to browse certain websites because it is not compatibile with my nvidia gpu or something....but not on all distros: https://i.imgur.com/YwYEckZl.png
<mfiano> i can't even type into the address bar without it feeling like i'm thrashing ram to disk
<samueldr> mfiano: which nvidia gpu?
<mfiano> GTX 1060 6GB
<clever> mfiano: nix-shell -p glxinfo --run glxgears
<samueldr> clever: wow no return... that's not useful
<clever> mfiano: what kind of fps does this get?
<samueldr> hmmm, mfiano I would have expected such failure to happen with older hardware...
<mfiano> Oh all other apps work fine. I'm a game developer and I get a perfect GL context elsewhere
<simpson> clever: Obligatory reminder that glxgears is not a benchmark and that the output of glxinfo is more likely to tell you whether a driver's configured.
<samueldr> though unhelpful, on a GTX570 it google-chrome seems fine here
<samueldr> mfiano: have you started with an empty and fresh profile?
<mfiano> Yes
<clever> simpson: yeah, and i typicaly expect lower FPS numbers to be better with glxgears
<samueldr> :/
<clever> simpson: having 200 fps means you lack v-sync, and the cpu is going nuts rendering a simple thing crazy-fast
<mfiano> Same issue. and that purple link is this...an issue from 2012 marked as wontfix: https://bugs.chromium.org/p/chromium/issues/detail?id=137247
<clever> simpson: but 60 fps means you have v-sync working, and the gpu is probably doing its job
<simpson> Sure.
<mfiano> for the record, i get about 200,000fps with glxgears
<mfiano> (i disabled vertical blank sync)
<clever> mfiano: definitely sounds like the gpu drivers arent , or that
Guanin has quit [Ping timeout: 240 seconds]
<clever> mfiano: one min
<mfiano> This is some incompatibility with newer chromium or nvidia binary...or other. It doesn't occur with ubuntu or mint's stable repo...which tends to hold back a year or 2 for most stuff
<mfiano> It is a problem on Arch as well. Leads me to believe some bleeding edge incompatability
<clever> mfiano: try closing chrome fully, then run chromium --disable-gpu
<mfiano> ok?
asuryawanshi has quit [Ping timeout: 252 seconds]
<clever> mfiano: does that make any difference?
<mfiano> Yeah, everything is disabled under gpu, and i'm unable to test my game due to unable to get a webgl context :)
<mfiano> also super slow
<clever> mfiano: ok, lets see...
<samueldr> mfiano: do you have anything for me to test to see if my chromium has accel
<samueldr> I have one computer with nvidia drivers, and one with intel drivers
<mfiano> samueldr: yes
<samueldr> on both, both chromium and google-chrome
<samueldr> maybe I'm too dumb to see that it isn't accelerated
<mfiano> That should rotate smoothly, and your about:gpu page shouldn't list anything running in software mode
<samueldr> I mean, it was such an upgrade from my older computer
<clever> LIBGL_DEBUG=verbose chromium --enable-gpu-debugging --enable-gpu-driver-debug-logging --enable-gpu-benchmarking --enable-gpu-client-logging
<clever> mfiano: try this one?
<clever> just throw all the debug flags at it! lol
<joepie91> lol
<samueldr> mfiano: humour me, install the unfree google-chrome
<samueldr> I can see a big difference between the two
<joepie91> clever: was going to say, that's just missing the --log-my-daily-walks flag
<lopsided98> mfiano: on Arch I have to use chromium-vaapi (in the AUR) to get accelerated video decode
<mfiano> ok, after i try clever's
<pikajude> how easy is it to create and maintain my own hackage-packages.nix based on a different hackage index
<samueldr> (I usually use the unfree google-chrome, so it's probably why I haven't seen such behaviour)
Guanin has joined #nixos
<lopsided98> I'm on intel, but I think it also works with Nvidia
<clever> pikajude: there is a hackage2nix program, that you could probably use
<mfiano> ok, give me the nix shell recipe for the other chrome :)
<mfiano> clever: nothing useful there
<samueldr> mfiano: `NIXPKGS_ALLOW_UNFREE=1 nix-shell -p google-chrome --run "google-chrome"`
<samueldr> not 100% sure it will run as-is, but pretty confident
<mfiano> samueldr: that fails
<mfiano> /run/user/1000/nix-shell.pIHA7A/rc: line 1: google-chrome: command not found
<clever> mfiano: run ls on the chrome path it downloaded, and check the bin directory
<lopsided98> Google refuses to enable VAAPI support on Linux (ie. that WONTFIX bug report), so I don't think google-chrome has acceleration either
<clever> it might have a different name
<clever> lopsided98: even without hw accel, i can play youtube videos with only ~20% cpu usage
<samueldr> hm weird, just ran the command and it works here
<samueldr> weirdly, both chromium and google-chrome's about:gpu are identical
<samueldr> but mfiano's link with the helmet performs much better on google-chrome
<mfiano> Yeah google chrome isn't any better
<mfiano> both slow
MP2E has quit [Remote host closed the connection]
<samueldr> and youtube videos (on google-chrome) are fine on my end without vaapi
<clever> simpson: https://imgur.com/a/yPJe6 is what i get
<lopsided98> clever: yeah, I never had problems like mfiano is having even without accelerated video decode - maybe it is a different issue
<clever> i have had the oposite problem in the past
plakband has quit [Quit: leaving]
<clever> xterm required abnormally high amounts of cpu, just to bloody scroll
<clever> yet every other program was fine
<mfiano> In the past chromium worked great. This is only a recent issue that drove me away from Arch Linux
<clever> i suspect xterm was trying to v-sync on every single character
<mfiano> and now experiencing similar behavior here
<mfiano> And it does not occur on the debians with older software as mentioned
<lopsided98> The helmet shouldn't be affected by video decode either - it is webGL - which is listed as accelerated
<clever> mfiano: we can also try older copies of chrome
<clever> mfiano: one min
<mfiano> I assure you it renders about 1fps
<pikajude> clever: wow, neat
<mfiano> the helmet that is
<pikajude> thanks
<clever> pikajude: thats what made hackage-packages.nix to begin with
<clever> mfiano: nix-store -r /nix/store/2j0anj185jb0w7zxpp5q3q6cqib956ib-chromium-62.0.3202.62
<clever> mfiano: then run /nix/store/2j0anj185jb0w7zxpp5q3q6cqib956ib-chromium-62.0.3202.62/bin/chromium
<pikajude> Oh no :(
<clever> /nix/store/20di7bfxaljl4vky7dwm6g2rr499i6sp-chromium-60.0.3112.90
<pikajude> it needs hackage on the local filesystem
<clever> mfiano: and here is version 60 if you want to go another 2 steps older
<mfiano> warning: you did not specify ‘--add-root’; the result might be removed by the garbage collector
<pikajude> I'm trying to generate one from head.hackage.haskell.org
<pikajude> :/
<mfiano> and i see no bin
<clever> mfiano: oh, one sc
<clever> [clever@amd-nixos:~]$ ls /nix/store/2j0anj185jb0w7zxpp5q3q6cqib956ib-chromium-62.0.3202.62/libexec/chromium/chromium
<clever> mfiano: its over here
<mfiano> clever: no luck
<mfiano> clever: let me find out which nvidia binary ubuntu is using
<mfiano> 384.111
<mfiano> how would i roll back to that version?
<clever> mfiano: rollbacks only really work for something you have installed via nixos, so you will need an override instead, one min
<mfiano> ok
<clever> mfiano: simplest thing to do is to try the 5 versions in here: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/hardware/video/nvidia.nix#L14-L25
<clever> mfiano: put one of those 5 strings into services.xserver.videoDrivers, then rebuild switch, and reboot
<mfiano> they are much too old
<clever> mfiano: next...
<mfiano> I suppose I could try 340, but that's pretty old
<clever> mfiano: nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion
<clever> mfiano: near the end of the version is a short hex string, that is a git revision from nixpkgs
<clever> mfiano: clone nixpkgs, and checkout that revision
<clever> then edit this to change the version
<clever> nixos-rebuild switch -I nixpkgs=/home/clever/nixpkgs/
<clever> then use this to apply the modified nixpkgs to the system
<mfiano> My gpu is too new to run the legacy driver
<mfiano> It falls back to vesa
<clever> then youll want to edit the file i pointed at, to specify an arbitrary version
asuryawanshi has joined #nixos
<mfiano> heh i don't even have git installed yet. i have to figure out how to uninstall all the junk above first
<clever> all the nix-shell stuff isnt really installed
<clever> so there is no need to remove it
<clever> nix-env -q will list what was installed
<mfiano> there was a few not using it though
<mfiano> nix-store and whatnot
<clever> `nix-store -r` also does not "install" anything
<clever> it just sits in a cache
<mfiano> Ok
<mfiano> cloning nixpkgs
<clever> 2018-02-25 02:18:32 < mfiano> warning: you did not specify ‘--add-root’; the result might be removed by the garbage collector
<clever> and this warning means that the path it downloaded could just disapear the next time you do a garbage collection
asuryawanshi has quit [Ping timeout: 245 seconds]
<mfiano> something is strange
<mfiano> nvidia-settings says my driver version is already 384.111
<clever> nix-store -qR /run/current-system | grep --color nvidia
<clever> this should show what version its currently using
<mfiano> nvidia-x11-384.111-4.9.83
<mfiano> I'm out of ideas then.
<mfiano> Just tested firefox and the helmet demo is smooth as hell
<mfiano> This is clearly a problem with chrom{e,ium}
robstr has joined #nixos
Moredread has quit [Ping timeout: 260 seconds]
abbe has left #nixos ["<Xach> so easy when you don't have to be compatible with anything!"]
<mfiano> Oddly I see this in firefox's about:support:
<mfiano> HW_COMPOSITING
<mfiano> blocked by default: Acceleration blocked by platform
<mfiano> OPENGL_COMPOSITING
<mfiano> unavailable by default: Hardware compositing is disabled
<mfiano> I'm just lost
<robstr> morning
<robstr> I'm still trying to get emsdk package up and running, but it fails for whatever reason, can someone check, error appended ... https://gist.github.com/rsoeldner/b1a2009a741d42f2815cc54ec29ab4e7
asuryawanshi has joined #nixos
asuryawanshi has quit [Ping timeout: 256 seconds]
<mfiano> clever, samueldr: Thank you for the help though. I think I'm just going to have to use Firefox until this passes. I only really need chromium once a week for my programming group (Hangouts doesn't support Firefox).
asuryawanshi has joined #nixos
asuryawanshi has quit [Ping timeout: 252 seconds]
<mfiano> Hmm, my ~/.xinitrc is not being sourced, probably because of the "auto" display-manager. Anyone know how I can have that sourced as usual?
<clever> mfiano: one sec
alex`` has joined #nixos
<clever> mfiano: i think nixos only obeys .xprofile and .xsession
<mfiano> I have a 4K display and my text is super small right now without my x settings being set :)
<clever> .xprofile is sourced, if it exists, and will then continue on to the chosen WM
<clever> if .xsession is executable, it gets directly ran, and assumes full control, the WM does not get run for you
<mfiano> [[ -e $XDG_CONFIG_HOME/xorg/xmodmap ]] && xmodmap $XDG_CONFIG_HOME/xorg/xmodmap
<mfiano> [[ -e $XDG_CONFIG_HOME/xorg/xresources ]] && xrdb -merge $XDG_CONFIG_HOME/xorg/xresources
<mfiano> Thats the extent of my .xinitrc
ottidmes has joined #nixos
<clever> try renaming it to .xprofile
<clever> nixos will also auto-load ~/.Xresources if it exists
<clever> oh, and also
<clever> services.xserver.displayManager.sessionCommands = ''
<clever> [[ -e $XDG_CONFIG_HOME/xorg/xmodmap ]] && xmodmap $XDG_CONFIG_HOME/xorg/xmodmap
<clever> [[ -e $XDG_CONFIG_HOME/xorg/xresources ]] && xrdb -merge $XDG_CONFIG_HOME/xorg/xresources
<mfiano> restarted dm, and no change
<clever> '';
<clever> if you add these 4 lines to configuration.nix, then it will be baked into the nixos config
<clever> and you wont need to remember a random file in $HOME anymore
<mfiano> Well I use my $HOMe on live media etc too
<clever> line 122 inserts that config into the generated script
asuryawanshi has joined #nixos
<mfiano> also...
<mfiano> What is the correct place to set custom XDG environment variables, otherwise that is not even going to work
<mfiano> Just noticed those aren't getting set on nix either
<clever> one sec
octe has quit [Ping timeout: 248 seconds]
<clever> there are half a dozen ways of setting env variables in nixos
<clever> environment.interactiveShellInit just inserts raw strings into /etc/bashrc
<mfiano> The important bit is them being set before dependency directives needing them
<clever> environment.shellInit inserts raw strings into /etc/profile
<clever> programs.bash.shellInit also goes into /etc/profile
<clever> and environment.loginShellInit
<clever> environment.variables.A = "1"; deals with escaping and directly handling variables, and environment.extraInit bypasses that and just does raw strings again, both go into a special set-environment script
<mfiano> You have a lot of nice examples :)
<clever> and /etc/profile sources set-environment
asuryawanshi has quit [Ping timeout: 240 seconds]
<clever> i have so many gists that i had to find a dedicated service that deals with finding your own gists, lol
<clever> it says i have 715 gists....
<Havvy> clever: Gotta prune 'em once in a while.
<mfiano> haha yeah. I have over 2000. I learned that the day I found out there is no api to batch delete them, so i just left them there.
<mfiano> one by one, no thank you
<clever> https://app.cacher.io/ is how i search them
<Havvy> Is there a way to see what the Hydra instance that builds for the nixpkgs unstable channel is currently doing?
<clever> Havvy: hydra.nixos.org
mrkgnao has joined #nixos
<Havvy> 500 Internal Server Error
<Havvy> DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI connect('dbname=hydra;user=hydra;','',...) failed: could not connect to server: No such file or directory
<mfiano> I have a lot to learn. I have a very complex .bash_profile/.bashrc system for adding all my vars and appending to path etc. It would be nice to use the nix way
asuryawanshi has joined #nixos
Arcaelyx has joined #nixos
<lopsided98> Havvy: its broken right now, but hopefully should be fixed soon
simukis has joined #nixos
<mfiano> clever: stupid question, how do i set multiple of say environment.shellInt variables?
<mfiano> shellInit rather
<clever> mfiano: use a ''mult-line string''
<mfiano> Oh I wasn't aware of that
<mfiano> Nice
<clever> both "strings" and ''strings'' accept multiple lines
<clever> but ''these ones'' will strip out any common spaces between each line
<clever> so if every line is indented by 4 spaces, the resulting string has no indentation at all
<mfiano> Not sure I like that though, otherwise the indentation is going to get added
<mfiano> and I like my nix config to look pretty :)
<clever> thats the point of ''double single'' strings
asuryawanshi has quit [Ping timeout: 256 seconds]
<clever> it strips the indent that makes the nix config pretty, keeping the output pretty as well
<mfiano> Oh just read. Now that is nice
knupfer has joined #nixos
<mfiano> clever: is environment.shellInit going to expand ''export XDG_CONFIG_HOME="$HOME/.config"'' or have a literal $HOME? I want it to be a literal so it applies to all users
<clever> its probably going to be a literal $HOME
<clever> let me find the source
<mfiano> great
<clever> this defines the option itself, but does nothing with it
<clever> bash then sets its own shellInit config, to contain a copy of the global environment.shellInit
<clever> and then uses its own shellInit to generate /etc/profile
asuryawanshi has joined #nixos
<clever> and since its going thru .text, there is zero shell-level expansion
<mfiano> Ok
<clever> but ${nixexpansion} can still happen
<clever> ''you can escape such things like ''${this} in a multi-line''
<mfiano> does nix have a dedicated option for prepending/appending to $PATH, or just do it here too?
<clever> what do you want to add to PATH?
<mfiano> export PATH="$HOME/.bin:$PATH"
<mfiano> export PATH="$HOME/.cargo/bin:$PATH"
<mfiano> is basically all
<clever> ~/bin gets added automatically if it exists
<mfiano> I want ~/.bin
<clever> not sure about the other 2
<clever> let me see where PATH comes from...
asuryawanshi has quit [Ping timeout: 260 seconds]
ottidmes has quit [Ping timeout: 245 seconds]
<clever> mfiano: ah, this generates everything from PATH to LIBEXEC_PATH, relative to everything on lines 27-29
<mfiano> Basically, I want to put those 2 lines in the right section so that they ALWAYS appear before any other PATH components that are added
<clever> thats how /run/current-system/sw/bin winds up in PATH
<clever> you probably want to use shellInit them
<clever> export PATH=~/.bin/:~/.cargo/bin:$PATH
<mfiano> Ok, thanks.
<clever> the other methods dont always offer full control over the order of things
<clever> and most are append, rather then prepend
<mfiano> I see
<mfiano> Makes sense. Let me see if this works now
<mfiano> It's just amazing how well nix works
<mfiano> I'm sticking with this for sure
<mfiano> I need sleep in a few, but thank you very much for all your help, clever.
<clever> yep
<clever> i should test my router upgrade, and then get to bed
<clever> let me find a monitor for recovery...
<clever> its currently running a copy of nixpkgs from 2016
<mfiano> Hmm
<mfiano> I have some env vars that depend on certain packages being installed
<hyper_ch> clever: it's way too early for bed
<mfiano> xport LD_LIBRARY_PATH=$(rustc --print sysroot)/lib:$LD_LIBRARY_PATH
<mfiano> etc
Tobba_ has joined #nixos
<clever> mfiano: ${rustc}/bin/rustc will be the path to the binary, even if its not installed
Tobba has quit [Ping timeout: 268 seconds]
robstr has quit [Remote host closed the connection]
robstr has joined #nixos
<clever> router> restarting systemd...
<clever> oh god, lol
<clever> !tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<hyper_ch> and I always thought tofu is something to eat
<clever> and the router survived a switch from 16.03 to 17.09!
<mfiano> clever: still, I get messages when I open a terminal: -bash: rustc: command not found
<clever> mfiano: then the string i gave wasnt in a nix config file
robstr has quit [Ping timeout: 240 seconds]
<mfiano> Hmm?
<clever> mfiano: ${rustc} will expand to the full path of the rustc files, if placed in a nix file
<clever> mfiano: but anywhere else, its just an unset bash variable
<mfiano> yes, but I can't assume rustc will be installed, and when it's not I get the error
<clever> nix will automatically download rustc if you use what i gave above
<mfiano> I don't experience that
<clever> LD_LIBRARY_PATH=$(${rustc}/bin/rustc --print sysroot)/lib:$LD_LIBRARY_PATH
<clever> what did you put in your nix file?
<mfiano> also I don't want it to automatically download
<mfiano> I want it to use the one I download in ~/.bin
<clever> ahh
<mfiano> hence why it appears early in PATH
<clever> then you would need to check for it
<clever> if [ -x ~/.bin/rustc ]; then
<mfiano> Ok
<clever> also, any ELF file you download will just break, /lib/ld-linux.so doesnt exist
<clever> only programs installed via nix will work
<mfiano> Are you familiar with rustup?
<clever> nope
<mfiano> It allows switching stable/nightly profiles and different software etc. I wonder how that works on nix
<clever> nix-shell
<clever> as an example, nix-shell -p haskell.packages.ghc802.ghc gives me the 8.0.2 version
<clever> and nix-shell -p haskell.packages.ghc822.ghc gives me 8.2.2
<mfiano> export LD_LIBRARY_PATH=$(${rustc}/bin/rustc --print sysroot)/lib:$LD_LIBRARY_PATH
<mfiano> error: undefined variable ‘rustc’ at /etc/nixos/configuration.nix:13:34
<clever> in configuration.nix, it needs to be ${pkgs.rustc}
<clever> forgot that small detail
<mfiano> Ah
evhan` is now known as evhan
<clever> Feb 25 07:48:44 router postgresql-start[8288]: DETAIL: The data directory was initialized by PostgreSQL version 9.4, which is not compatible with this version 9.6.6.
<clever> also, nix makes it trivial to fix problems like this
<clever> nix-repl> postgresql94
<clever> «derivation /nix/store/p91w916iyanllx3yw78bny065p9vrx17-postgresql-9.4.15.drv»
<clever> 78 postgresql.enable = true;
<clever> 79 postgresql.package = pkgs.postgresql94;
<clever> i just add a 94 to line 79, and its now forced to use version 9.4
<mfiano> I see what you mean. So rust isn't going to work
<mfiano> Without me learning more
<mfiano> bash: /home/axion/.cargo/bin/rustc: No such file or directory
<clever> mfiano: there is a rust overlay that has those things
<clever> yep
<sphalerite_> chocopuff: yep. And that was back in 2005, it's been quite a while now!
<clever> mfiano: this allows you to access toe nightly, beta, and stable channels
<mfiano> Yeah, I'll save that for later as I don't even know what an overlay is yet. I was studying Rust but it's not my programming language of choice.
<clever> Feb 25 08:01:35 router systemd[1]: Started PostgreSQL Server.
<clever> and the tweak i did above is now in place, my router has postgress again
<sphalerite_> clever: Dell's firmware, at least the one on the XPS 15 9560, also allows editing boot entries inside the firmware. The UI isn't optimal but it does work, and it saved me a whole lot of effort when I got my motherboard replaced and all the settings were gone.
<clever> sphalerite_: nice, ive never seen that on real hardware
<sphalerite_> it's got a graphical file browser for it and everything
<clever> sphalerite_: i saw similar in virtualbox
<clever> sphalerite_: also, i just used `nixops deploy` to upgrade a nixos 16.03 (from nixos-unstable) machine to nixos 17.09, and it experienced minimal downtime
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vAwPP
<NixOS_GitHub> nixpkgs/master f5d145a Peter Hoeg: oath-toolkit: use autoreconfHook
NixOS_GitHub has left #nixos [#nixos]
<clever> sphalerite_: it wasnt even nixops managed to begin with either!
<sphalerite_> also, I ran memtester (userspace memtest) on the vocore (that MIPS device I was having trouble with, where running nix-built programs would fail the first 2 or 3 times with various errors — illegal instruction, bus error, segfault…). It was just fine after the first 3 attempts at running it, which crashed
<sphalerite_> it's still a mystery to me why it would fail 2 or 3 times then consistently work fine
<sphalerite_> it also doesn't seem to be a caching issue as I thought it might be, since it doesn't matter how far apart in time the first few attempts are
<sphalerite_> although maybe I should try catting the executable and the libc to /dev/null before running it to rule it out properly
timon37 has joined #nixos
<mfiano> Interesting. I have the option to enable ssh-agent, and it is indeed running, but it's not remembering keys
<clever> mfiano: yeah, thats anoying, and why i switched to gpg-agent
<mfiano> Oh I never used that for ssh keys
<clever> mfiano: but the nixos option to enable gpg is dumb, and screws up horibly if you ssh into that system
<mfiano> Is it straightforward to figure out?
<sphalerite_> mfiano: set the AddKeysToAgent option in your ssh config
asuryawanshi has joined #nixos
<mfiano> sphalerite_: I do :)
<sphalerite_> huh
<clever> mfiano: with this, gpg will run as an ssh agent
<sphalerite_> and does running ssh-add manually work?
<clever> mfiano: any time you do `ssh-add`, gpg will ask you for a passphrase to encrypt the ssh key with
<clever> mfiano: and then after a reboot, gpg will ask for that passphrase to decrypt it, and you never have to ssh-add again
<hyper_ch> clever: did you say you want to go to bed?
<clever> hyper_ch: yes, lol
<sphalerite_> clever's not very good at going to bed :D
<mfiano> In the past I relied on a very hacky bit of shell scripting that breaks if the machine isn't restarted cleanly and requires the socket to be cleaned up, etc: https://gist.github.com/mfiano/4085dfa1a4b51f086f3f15fac79f1e9d
<hyper_ch> sphalerite_: it's not easy "to go to bed"
<mfiano> and that actually works with the nixos running ssh-agent
<mfiano> but not without that, and i was hoping to get rid of it :)
<sphalerite_> mfiano: it would work just fine without cleanup if you used /run/user/$(id -u) instead of ~/.ssh in it :)
<mfiano> True, when I wrote that it was on a different platform though, and I was hoping to get rid of that hack.
<sphalerite_> iirc I did it without sourcing its output, and just set SSH_AUTH_SOCK then passed it to ssh-agent via -a
<sphalerite_> then I switched to gpg-agent because I couldn't use my yubikey with ssh-agent
asuryawanshi has quit [Ping timeout: 256 seconds]
<mfiano> hmm
<mfiano> everyone is mentioning gpg-agent being better
<sphalerite_> I don't think it's better
<sphalerite_> it just has one feature that I need
<sphalerite_> I'd still be using ssh-agent if it didn't
<mfiano> How are you configuring ssh-agent exactly?
<mfiano> Because it's not remembering anything for me without my hack
<mfiano> I have AddKeysToAgent for each host in my config
<sphalerite_> I think I had something like export SSH_AUTH_SOCK=${XDG_RUNTIME_DIR:-/run/user/$(id -u)}/ssh ; ssh-add -l &>/dev/null ; [[ "$?" = 2 ]] && ssh-agent -a "$SSH_AUTH_SOCK"
<mfiano> Well, better than my hack for sure, assuming that works
<sphalerite_> just putting `Host *\n\tAddKeysToAgent yes` at the end of your .ssh/config should do it I think?
asuryawanshi has joined #nixos
<larsvm> has someone had any luck on installing nixos on raspberry pi?
<mfiano> I actually have that
<larsvm> i'm trying to install it on rasp 3
<larsvm> sphalerite_: i've followed that guide but to no avail
<larsvm> hangs on "Starting kernel..."
<larsvm> and the advice regarding that does not seem to be right
<mfiano> sphalerite_: heh that errors in nix config anyway
<larsvm> since the guide advices to change extlinux.conf so that it's got console=ttyS0 but it already has
<larsvm> and it has console=ttyAMA0, too
<sphalerite_> mfiano: put '' before the ${
<mfiano> It's actually contained in that
<sphalerite_> mfiano: it's because of nix's antiquotation syntax coinciding with bash's extended parameter expansion
asuryawanshi has quit [Ping timeout: 245 seconds]
<sphalerite_> yes, put another '' before the ${ to escape it within the '' quoted string. It's rather confusing, but that's how it works
<sphalerite_> larsvm: sorry, I don't actually know any more than the existence of that page :(
asuryawanshi has joined #nixos
<mfiano> sphalerite_: It works great, thanks
<mfiano> Oh actually
<mfiano> I get an error when i login
<mfiano> If I su -, I get:
<mfiano> bind: No such file or directory
<mfiano> unix_listener: cannot bind to path: /run/user/0/ssh
<jluttine> Updated nixos-unstable nixpkgs yesterday. Now sddm doesn't start..
<jluttine> sddm-helper exited with 11
<sphalerite_> ah right because it's in the shell init for all users but you're not starting up a full session for root
<mfiano> What's a fix?
<sphalerite_> maybe guard the whole thing with if [[ -d ${XDG_RUNTIME_DIR:-/run/user/$(id -u)} ]]
Guest_ has joined #nixos
<larsvm> do you know who would know?
<larsvm> meta knowledge
<sphalerite_> larsvm: maybe Dezgeg
Guest_ has quit [Client Quit]
asuryawanshi has quit [Ping timeout: 252 seconds]
<larsvm> thanks
<mfiano> sphalerite_: Thanks!
<sphalerite_> mfiano: there might be some cases where that doesn't behave the way you want it to though
<mfiano> Oh?
<mfiano> hmm
<sphalerite_> in particular, your agent socket will probably get removed when you log out
<sphalerite_> which may or may not be what you want
<mfiano> Define log out
<sphalerite_> close all sessions (graphical, console and SSH)
<sphalerite_> you can do loginctl enable-linger to make sure that your runtime dir continues to exist even if you don't have any active sessions
<mfiano> Only time that ever happens is when I reboot anyhow. This is a single-user system.
asuryawanshi has joined #nixos
<sphalerite_> I had to do this to make my tmux not break on a remote server since I was putting its socket in /run/user/1000 as well
<mfiano> and I don't use any display-manager even
<sphalerite_> right so whenever you close all your console sessions it will delete /run/user/$UID unless you've enabled lingering
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] velovix opened pull request #35531: lxterminal: switch to using GTK3 (master...lxterminal-to-gtk3) https://git.io/vAw1T
NixOS_GitHub has left #nixos [#nixos]
<mfiano> sphalerite_: I always have X running as my user, which implies always being logged in, but you got me thinking about my remote server with tmux that will eventually be switched over to nix
<sphalerite_> you can either run tmux with its socket in a different path (which is the default), or enable lingering
<sphalerite_> it only goes to /run/user/$UID if you set it to using a wrapper or something. Although I think programs.tmux.enable does it too
<sphalerite_> (programs.tmux.enable should be removed IMHO since it does nothing that needs to be systemwide)
<mfiano> Ok
<mfiano> anyone else running on a hidpi display?
<mfiano> For some reason my mouse cursor is absolutely tiny. Everything else is the right size thanks to Xft.dpi being set, but I can't make out where my cursor is most of the time being this small
asuryawanshi has quit [Ping timeout: 256 seconds]
<sphalerite_> me!
<mfiano> Am I missing something? :)
MP2E has joined #nixos
<sphalerite_> Xresources config for XCursor. Hang on
<sphalerite_> (this is impure and not really great, there might be a proper nixos option for it by now)
<sphalerite_> Xcursor.theme: Breeze_Snow\nXcursor.size: 48
<sphalerite_> in my .Xresources
<sphalerite_> but that's not all…
hotfuzz has joined #nixos
<genesis> we could reach 7 hundred open PR soon :D
<sphalerite_> export XCURSOR_PATH=/run/current-system/sw/share/icons in my .xsessionrc, and some breeze package containing the cursor images in my systemPackages
<mfiano> umm wow
<mfiano> Why did I never have to do this on Arch? :)
hotfuzz_ has quit [Ping timeout: 240 seconds]
<mfiano> Xcursor.theme: Vanilla-DMZ\nXcursor.size: 64 doesn't have any effect at all
<sphalerite_> you also need the XCURSOR_PATH env var set
asuryawanshi has joined #nixos
<sphalerite_> it doesn't need to be set for everything though, you can test it on just one application
<sphalerite_> (provided that application supports XCursor)
<mfiano> yeah i do
<mfiano> it has no effect :)
<sphalerite_> did you xrdb -merge <~/.Xresources before starting it?
<mfiano> yes
<sphalerite_> and /run/current-system/sw/share/icons/Vanilla-DMZ exists?
<mfiano> I have that done automatically in services.xserver.displayManager.sessionCommands
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti pushed 7 new commits to master: https://git.io/vAw1F
<NixOS_GitHub> nixpkgs/master 2201ba1 Kosyrev Serge: ghc841 | tls: SMP fix unmerged
<NixOS_GitHub> nixpkgs/master 746b36c Kosyrev Serge: ghc841 | http-api-data: SMP fix not on hackage yet
<NixOS_GitHub> nixpkgs/master 65169aa Kosyrev Serge: ghc841 | uri-bytestring: TH boundaries fix author made no PR yet
NixOS_GitHub has left #nixos [#nixos]
<mfiano> NoHmm nope
<mfiano> So what icon is it using then...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti pushed 2 new commits to master: https://git.io/vAw1N
<NixOS_GitHub> nixpkgs/master 624366d Kosyrev Serge: ghc841: bump to 20180224
<NixOS_GitHub> nixpkgs/master d1a7cb8 Peter Simons: Merge pull request #35521 from deepfire/ghc84-20180224...
NixOS_GitHub has left #nixos [#nixos]
<sphalerite_> probably X's builtin ones
<sphalerite_> if you add vanilla-dmz to systemPackages it should work
asuryawanshi has quit [Ping timeout: 252 seconds]
<sphalerite_> oh and you did replace the \n with a newline right?
<mfiano> sphalerite_: yes and no
vidbina has joined #nixos
<mfiano> the pointer cursor is large now, but the text selection cursor is still very tiny
<mfiano> Also in chromium, the pointer is small still
viric has quit [Ping timeout: 256 seconds]
<mfiano> in regular xorg, only the arrow icon has changed
<sphalerite_> hm
<sphalerite_> I don't know everything about how XCursor works and docs have been hard to find :/ so I'm not sure I can help you any further. I would like to see it fixed too though
<sphalerite_> and especially have it configured declaratively, there's so much stateful crud in this setup
<mfiano> Yeah this is strange.
Guanin has quit [Read error: Connection reset by peer]
Guanin_ has joined #nixos
asuryawanshi has joined #nixos
<mfiano> Something is completely messed up anyway
<mfiano> I can't run X apps anymore
<mfiano> Invalid MIT-MAGIC-COOKIE-1 keyCan't open display :0.0
<mfiano> such as xrandr
rgc has joined #nixos
<sphalerite_> I think that's an Xauthority issue
asuryawanshi has quit [Ping timeout: 240 seconds]
<mfiano> Yeah I do too, but I deleted .Xauthority and rebooted
<sphalerite_> actually the manual XCURSOR_PATH setting shouldn't be necessary since f80eeb5d854cc5b0ae6f66616c1f29aabf0e0279
<mfiano> Right now I'm more worried about not being able to execute apps
<sphalerite_> how are you running X?
<mfiano> The same as I was when it was working. I have the "auto" display-manager set to run "i3" as "mfiano"
<sphalerite_> oh, did your xsessionrc exist before adding XCURSOR_PATH to it?
<sphalerite_> If not, remove it
<mfiano> Yes it did
<sphalerite_> oh :/
asuryawanshi has joined #nixos
leotaku has joined #nixos
<Guanin_> can someone explain to me how I can add modules to nginx? I found this line https://github.com/NixOS/nixpkgs/blob/8bce347f02f6bd606ec1822f0ba9b94d7f139071/pkgs/servers/http/nginx/generic.nix#L59
asuryawanshi has quit [Ping timeout: 252 seconds]
<Guanin_> so i guess I can do something like services.nginx.package = pkgs.nginxMainline.override { modules = [ foo ] };
<Guanin_> but a) Are there already some modules available, b) What format do they need to have?
<Guanin_> oh, seems like there are e.g. pkgs.nginxModules.dav, but why didn't I find them with nix-env -qa?
cmacrae has joined #nixos
<Guanin_> okay, found it in the github, so question a and b are clear now :)
p_l has quit [Ping timeout: 276 seconds]
asuryawanshi has joined #nixos
angerman has quit [Ping timeout: 276 seconds]
rauno has quit [Remote host closed the connection]
p_l has joined #nixos
angerman has joined #nixos
<mfiano> Yeah, I can't figure out why I can't run any apps
shlevy_ has joined #nixos
asuryawanshi has quit [Ping timeout: 240 seconds]
asuryawanshi has joined #nixos
rodarmor has quit [Ping timeout: 276 seconds]
asuryawanshi has quit [Ping timeout: 245 seconds]
hamishmack has quit [Quit: hamishmack]
rodarmor has joined #nixos
octe has joined #nixos
ChongLi has quit [Ping timeout: 256 seconds]
ChongLi has joined #nixos
<mfiano> Is there an option to add a given user to a group?
<sphalerite_> mfiano: users.users.<name>.extraGroups
simpson has quit [*.net *.split]
shabius has quit [*.net *.split]
pikajude has quit [*.net *.split]
redfish65 has quit [*.net *.split]
ghuntley has quit [*.net *.split]
the_real_plumps has quit [*.net *.split]
roconnor has quit [*.net *.split]
shoogz has quit [*.net *.split]
gridaphobe[m] has quit [*.net *.split]
rardiol[m] has quit [*.net *.split]
PlasmaStrike[m] has quit [*.net *.split]
Mic92 has quit [*.net *.split]
TheAppleMan has quit [*.net *.split]
indika has quit [*.net *.split]
sjanssen has quit [*.net *.split]
SOO7 has quit [*.net *.split]
dejanr has quit [*.net *.split]
Reventlov has quit [*.net *.split]
elvishjerricco has quit [*.net *.split]
mjvoge02 has quit [*.net *.split]
cbarrett has quit [*.net *.split]
carter has quit [*.net *.split]
rgrinberg has quit [*.net *.split]
fingerzam has quit [*.net *.split]
maingo has quit [*.net *.split]
srid has quit [*.net *.split]
monad_cat has quit [*.net *.split]
harms has quit [*.net *.split]
marek has quit [*.net *.split]
cocreature has quit [*.net *.split]
madknight has quit [*.net *.split]
bara has quit [*.net *.split]
aminb has quit [*.net *.split]
mog has quit [*.net *.split]
shlevy has quit [*.net *.split]
PyroLagus has quit [*.net *.split]
nckx has quit [*.net *.split]
CcxWrk has quit [*.net *.split]
simpson has joined #nixos
shabius has joined #nixos
redfish65 has joined #nixos
the_real_plumps has joined #nixos
gridaphobe[m] has joined #nixos
cocreature has joined #nixos
rgrinberg has joined #nixos
cbarrett has joined #nixos
nckx has joined #nixos
madknight has joined #nixos
harms has joined #nixos
PlasmaStrike[m] has joined #nixos
ghuntley has joined #nixos
marek has joined #nixos
maingo has joined #nixos
aminb has joined #nixos
SOO7 has joined #nixos
shoogz has joined #nixos
carter has joined #nixos
CcxWrk has joined #nixos
indika has joined #nixos
mjvoge02 has joined #nixos
monad_cat has joined #nixos
pikajude has joined #nixos
sjanssen has joined #nixos
TheAppleMan has joined #nixos
dejanr has joined #nixos
fingerzam has joined #nixos
mog has joined #nixos
srid has joined #nixos
rardiol[m] has joined #nixos
bara has joined #nixos
elvishjerricco has joined #nixos
PyroLagus has joined #nixos
Mic92 has joined #nixos
roconnor has joined #nixos
Reventlov has joined #nixos
aminb has quit [Ping timeout: 256 seconds]
musicmatze_ has quit [Ping timeout: 240 seconds]
aminb has joined #nixos
kgz has quit [Ping timeout: 252 seconds]
musicmatze has joined #nixos
aminb is now known as Guest1991
viric has joined #nixos
JosW has joined #nixos
roconnor has quit [Ping timeout: 256 seconds]
roconnor_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] brandondyck opened pull request #35532: idrisPackages.specdris: 2017-11-11 -> 0.3.0 (master...specdris) https://git.io/vAwyc
NixOS_GitHub has left #nixos [#nixos]
knupfer has quit [Ping timeout: 240 seconds]
kgz has joined #nixos
shoogz has quit [Max SendQ exceeded]
shoogz has joined #nixos
rotaerk has quit [Ping timeout: 276 seconds]
rotaerk has joined #nixos
hamishmack has joined #nixos
hamishmack has quit [Remote host closed the connection]
<Guanin_> what is the cleanest way to modify existing packages system wide?
hamishmack has joined #nixos
asuryawanshi has joined #nixos
<Guanin_> is it nixpkgs.config.packageOverrides?
<hyper_ch> make an overlay probably
<sphalerite_> yeah, overlays are the best way. They serve the same purpose as packageOVerrides but are composable and stuff
<Guanin_> even when globally changing e.g. PAM?
<sphalerite_> that's exactly the kind of thing they're for
<sphalerite_> note that you'll have a lot of rebuilds to do though probably if you're changing a library like pam
asuryawanshi has quit [Ping timeout: 248 seconds]
knupfer has joined #nixos
<Guanin_> Well, I don't really mind recompiling, it is just a private server. But I guess patching PAM to suit my needs is the easiest way to go
<mfiano> sphalerite_: where is a good place to put enable-linger?
<sphalerite_> mfiano: there's no nixos option for it :( it's a stateful setting
<sphalerite_> mfiano: since it's idempotent you could make a oneshot systemd unit for it though
asuryawanshi has joined #nixos
<mfiano> I mean, does it make sense in one of the options for shell init?
<sphalerite_> no
<sphalerite_> you only need to set it once
<mfiano> I don't want to set it every boot though
<sphalerite_> yeah it persists across boots
<mfiano> Where is the state stored then?
<sphalerite_> so you only need to set it literally once
<sphalerite_> somewhere in /var/lib/, can't remember exactly where
<mfiano> interesting
<sphalerite_> /var/lib/systemd/linger/
<sphalerite_> and it's just an empty file with the same name as your user
<sphalerite_> so you could also use touch to set it :p
<mfiano> cool
<mfiano> btw, is there a reason all the dm's take over 10 seconds after you login for you to see something?
<mfiano> completely idle processor
asuryawanshi has quit [Ping timeout: 245 seconds]
<mfiano> even the auto, that just starts a wm on boot takes forever
leotaku has quit [Ping timeout: 252 seconds]
magnetophon has joined #nixos
asuryawanshi has joined #nixos
leotaku has joined #nixos
chisui has joined #nixos
<Guanin_> wow, modifying pam caused gstreamer to be rebuilt, too - that was unexpected
<chisui> Can I force a package to rebuild with some optional dependencies?
asuryawanshi has quit [Ping timeout: 245 seconds]
<chisui> in particlar I want wine to compile with mpg123
<Guanin_> you can set mpg123Support to true for the package
oahong has quit [Remote host closed the connection]
<Guanin_> so maybe this might work? nixpkgs.config.wine.mpg123Support = true;
asuryawanshi has joined #nixos
ambro718 has joined #nixos
oahong has joined #nixos
<chisui> Guanin_: after setting mpg123support in the configuration.nix, switching and reinstalling wine, nothing changed
<chisui> Guess I have to create a custom package
asuryawanshi has quit [Ping timeout: 256 seconds]
magnetophon has quit [Remote host closed the connection]
<LnL> chisui: nixpkgs.overlays = [(self: super: wine = super.wine.override { mpg123Support = true; }; )]
<LnL> without the syntax error :p
<avn> btw, mp3 decoder was broken in gstreamer as well, when I checked last time
<symphorien> chisui: or you can use this as an example https://nixos.wiki/wiki/Wine
asuryawanshi has joined #nixos
magnetophon has joined #nixos
<mfiano> Anyone know the correct option to set $PS1 in? It's always using the default prompt after I tried a few options
<sudoreboot[m]> I need some help with a nix derivation for a Haskell library. Here's the default.nix: http://lpaste.net/362886
<sudoreboot[m]> What I want to do is to make it use gcc7 rather than the default gcc. How would I go about doing that?
<symphorien> sudoreboot[m]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix#L596 << use (overrideCC stdenv gcc7)/mkDerivation
asuryawanshi has quit [Ping timeout: 245 seconds]
jmeredith has quit [Quit: Connection closed for inactivity]
tertle||eltret has quit [Quit: Connection closed for inactivity]
<sudoreboot[m]> symphorien: Thank you, I'll try that
<symphorien> replace / by . ; typo
asuryawanshi has joined #nixos
<sphalerite_> mfiano: I haven't seen that behaviour, my login is quick
<sphalerite_> mfiano: options.{ba,z,fi}sh.promptInit
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gnidorah opened pull request #35533: ndppd module: init (master...ndppd) https://git.io/vAwHz
NixOS_GitHub has left #nixos [#nixos]
asuryawanshi has quit [Ping timeout: 245 seconds]
<Guanin_> why am I building mesa, when I do not use anything X related?
<Guanin_> (still only patched PAM)
thc202 has joined #nixos
KABA has joined #nixos
<symphorien> for example if you don't set this option to false, ssh is built with X support
<sphalerite_> Guanin_: nix-store -q --graph $(nix-instantiate '<nixpkgs/nixos>' -A config.system.build.toplevel) may enlighten you
<Guanin_> symphorien, but the default value is false, so I guessed that it is not needed?
<symphorien> sorry to true
<symphorien> noXlibs = false === with Xlibs
<Guanin_> oh, I also made a mistake when thinking about it :)
<symphorien> :)
<sphalerite_> this is why negative option names are terrible…
<Guanin_> thanks :)
Ivanych has joined #nixos
<Guanin_> let the compiling commence (again..) :D
<symphorien> you can use nixos-rebuild dry-build and inspect the set of derivations to be rebuilt
<symphorien> to see if it contains unreasonnable thinks
<symphorien> *things
<Guanin_> I don't really understand why gtk+ is in there, but it's fine now, I guess :)
magnetophon has quit [Remote host closed the connection]
<sphalerite_> Guanin_: the --graph thing I gave you should help you find out
<Guanin_> totally missed that one, sorry
<sphalerite_> I have gtk and qt and all their X baggage on my server because murmur uses qt
<Guanin_> oh, that already explains it
<sphalerite_> :D
<Guanin_> I guess I should take a different approach to fix my PAM desires :D
<Guanin_> But I need to leave soon, so not now :)
<Guanin_> thanks for the help so far :)
<sphalerite_> np
<sphalerite_> hm, I don't think this should be an issue with qt5 since it's split up into lots of pieces
<sphalerite_> whereas qt4 is one big package. As far as I can tell.
leotaku has quit [Ping timeout: 252 seconds]
magnetophon has joined #nixos
JosW has quit [Quit: Konversation terminated!]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mimadrid opened pull request #35534: zotero: 5.0.25 -> 5.0.35.1 (master...update/zotero-5.0.35.1) https://git.io/vAwQq
NixOS_GitHub has left #nixos [#nixos]
<KABA> What's up with hydra.nixos.org?
magnetophon has quit [Remote host closed the connection]
<KABA> Or at least does anyone know what's the current trunk?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mimadrid opened pull request #35535: tig: 2.3.2 -> 2.3.3 (master...update/tig-2.3.3) https://git.io/vAwQu
NixOS_GitHub has left #nixos [#nixos]
asuryawanshi has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] griff opened pull request #35536: nixos/dovecot: More sieve options and precompiling of scripts (master...dovecot-precompile) https://git.io/vAwQw
NixOS_GitHub has left #nixos [#nixos]
lord| has quit [Ping timeout: 240 seconds]
tertle||eltret has joined #nixos
chisui has quit [Ping timeout: 260 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #35523: audacity: 2.2.1 -> 2.2.2 (master...auto-update/audacity-2.2.1-to-2.2.2) https://git.io/vAwVQ
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #35525: autorevision: 1.20 -> 1.21 (master...auto-update/autorevision-1.20-to-1.21) https://git.io/vAwwS
NixOS_GitHub has left #nixos [#nixos]
netixx has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 1f6a0c7 Ryan Mulligan: autojump: 22.5.0 -> 22.5.1...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vAwQb
<NixOS_GitHub> nixpkgs/master 3147a25 adisbladis: Merge pull request #35524 from ryantm/auto-update/autojump-22.5.0-to-22.5.1...
asuryawanshi has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 92f5b39 adisbladis: Merge pull request #35535 from mimadrid/update/tig-2.3.3...
<NixOS_GitHub> [nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vAwQh
<NixOS_GitHub> nixpkgs/master e18b252 Miguel Madrid Mencía: tig: 2.3.2 -> 2.3.3
coot has quit [Ping timeout: 240 seconds]
<sphalerite_> kaba: what do you mean by trunk? master?
<sphalerite_> Or nix{pkgs,os}-unstable? Or nix{pkgs,os}-unstable-small?
Arcaelyx_ has joined #nixos
<sphalerite_> in any case, git can tell you all those things
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 2cc5ac2 Johannes Frankenau: udisks2: add gobjectIntrospection to nativeBuildInputs
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] jtojnar pushed 1 new commit to master: https://git.io/vAw7q
asuryawanshi has joined #nixos
periklis has joined #nixos
<srhb> Any Go people around? I'm wondering what the Discard is doing in build-support/docker/tarsum.go
Arcaelyx has quit [Ping timeout: 252 seconds]
lord| has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar closed pull request #35476: udisks2: add gobjectIntrospection to nativeBuildInputs (master...udisks2-gobjectIntrospection) https://git.io/vAwvz
NixOS_GitHub has left #nixos [#nixos]
<KABA> sphalerite_: The latest hydra build
<KABA> Usually here, but there seems to be an error with the build server?
asuryawanshi has quit [Ping timeout: 245 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 4b9b82c Tyler Compton: lxterminal: switch to using GTK3...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] jtojnar pushed 1 new commit to master: https://git.io/vAw7E
<srhb> kaba: The database has been AWOL since yesterday I believe.
netixx has quit [Remote host closed the connection]
<KABA> srhb: Thanks :(
KABA has quit [Quit: Page closed]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar closed pull request #35531: lxterminal: switch to using GTK3 (master...lxterminal-to-gtk3) https://git.io/vAw1T
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] zimbatm pushed 1 new commit to master: https://git.io/vAw7M
<NixOS_GitHub> nixpkgs/master c5d257d zimbatm: direnv: 2.15.0 -> 2.15.1
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar pushed 1 new commit to master: https://git.io/vAw7S
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 7e6921b Jan Tojnar: phpPackages.php-cs-fixer: 2.10.2 → 2.10.3
asuryawanshi has joined #nixos
jtojnar has left #nixos ["Good Bye"]
asuryawanshi has quit [Ping timeout: 268 seconds]
leat has quit [Ping timeout: 248 seconds]
pkill9 has joined #nixos
cfricke has joined #nixos
asuryawanshi has joined #nixos
yann-kaelig has joined #nixos
<hyper_ch> what database?
periklis has quit [Ping timeout: 240 seconds]
asuryawanshi has quit [Ping timeout: 240 seconds]
<srhb> hyper_ch: Hydra's postgres.
<hyper_ch> (this wouldn't have happened with MariaDB....)
<hyper_ch> :)
netixx has joined #nixos
<srhb> Haw haw.
Dr8128 has joined #nixos
asuryawanshi has joined #nixos
Dr8128 has quit [Client Quit]
<hyper_ch> I just can't get postgres to like
<manveru> srhb: yo
<srhb> manveru: Hello.
Arcaelyx_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<manveru> Discard is simply like /dev/null
asuryawanshi has quit [Ping timeout: 252 seconds]
<srhb> So I figured, but I don't understand what its purpose is in this context.
<srhb> I think it's messing up the "how much did we write" logic in archive/tar
<manveru> well, it copies all the input from stdin to /dev/null and calculates the tar sum for it on the fly
<manveru> i wonder how docker does it...
<manveru> lemme check
<Olgierd> hi, I am going to make my first PR to nixpkgs. am I supposed to add myself to lib/maintainers.nix?
orivej has joined #nixos
<sphalerite_> yep
<sphalerite_> if you want to add yourself as a maintainer that is
<sphalerite_> (which would be good!)
asuryawanshi has joined #nixos
<manveru> srhb: i doubt it's cause any issue... docker uses the same approach
ambro718 has quit [Ping timeout: 256 seconds]
aarvar has quit [Quit: Leaving.]
<srhb> manveru: Okay. :) I guess I could try creating a file writer instead ot check.
<srhb> But you're probably right, I'm just baffled by the error.
<manveru> what's the error?
<srhb> manveru: archive/tar: missed writing 2379 bytes
<srhb> manveru: Only happens with go 1.10 though.
<manveru> interesting...
<Olgierd> idk, my understanding of nix* is still very fuzzy and I consider contributing as a means of learning
<srhb> Olgierd: If you're adding a new package that has no maintainers, it's definitely preferable if you add yourself to maintainers so you can get poked if it fails or people need help with it :)
<MichaelRaskin> Well, if you understand the package itself that you add… Like, what is called «works properly»
<srhb> manveru: None of them seem to be breaking though. Hmm.
asuryawanshi has quit [Ping timeout: 240 seconds]
<manveru> where do you have that archive/tar code?
<srhb> manveru: That's from docker.
<srhb> manveru: In pkgs/build-support/docker/default.nix: ln -sT ${docker.src}/components/engine/pkg/tarsum src/tarsum
asuryawanshi has joined #nixos
abrar has quit [Quit: WeeChat 2.0]
abrar has joined #nixos
<srhb> manveru: The solution for now might just be to pin go to 1_9. I was just curious :)
<manveru> they're using 1.9.4
<manveru> so might need a while, better to pin
<srhb> Indeed. I'll do that.
asuryawanshi has quit [Ping timeout: 256 seconds]
<srhb> s
<srhb> Woops
asuryawanshi has joined #nixos
sigmundv has joined #nixos
abrar has quit [Quit: WeeChat 2.0]
asuryawanshi has quit [Ping timeout: 248 seconds]
abrar has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] logarytm opened pull request #35538: texpretty: init at 0.02 (master...texpretty) https://git.io/vAwFG
NixOS_GitHub has left #nixos [#nixos]
leat has joined #nixos
asuryawanshi has joined #nixos
raynold has quit [Quit: Connection closed for inactivity]
asuryawanshi has quit [Ping timeout: 252 seconds]
asuryawanshi has joined #nixos
shlevy_ is now known as shlevy
asuryawanshi has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] srhb opened pull request #35539: dockerTools: Pin go to 1.9 (master...35505) https://git.io/vAwFy
NixOS_GitHub has left #nixos [#nixos]
<srhb> manveru: Thanks for the help. :)
ambro718 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gnidorah opened pull request #35540: prosody module: add dataDir option (master...prosody) https://git.io/vAwbR
NixOS_GitHub has left #nixos [#nixos]
jensens has joined #nixos
b has quit [Ping timeout: 260 seconds]
jedai has joined #nixos
simukis has quit [Quit: simukis]
commander has joined #nixos
simukis has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 2 new commits to master: https://git.io/vAwNI
<NixOS_GitHub> nixpkgs/master 538913c Shea Levy: Merge branch 'perl-gcc6-cross'
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 168b131 Shea Levy: perl: Work around cross-compilation issue with gcc 7
asuryawanshi has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy closed pull request #35529: perl: Work around cross-compilation issue with gcc 7 (master...perl-gcc6-cross) https://git.io/vAwod
NixOS_GitHub has left #nixos [#nixos]
knupfer has quit [Remote host closed the connection]
asuryawanshi has quit [Ping timeout: 252 seconds]
iyzsong has quit [Quit: ZNC 1.6.5 - http://znc.in]
iyzsong has joined #nixos
rgc has left #nixos [#nixos]
vcunat has joined #nixos
<shlevy> vcunat: Should PRs that change systemd go into staging?
<vcunat> Yes, most likely that will be thousands of rebuilds.
<shlevy> OK
<shlevy> Hydra still down :'(
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] xeji opened pull request #35541: nixos/containers: add extraFlags option (master...containers-extraflags) https://git.io/vAwNz
NixOS_GitHub has left #nixos [#nixos]
<vcunat> Yes, unfortunately, since Friday IIRC.
<vcunat> At least the UI. I don't know it it still builds.
dan_b has joined #nixos
<MichaelRaskin> vcunat: if it still builds, we could try checking some fresh path in the cache?
<vcunat> niksnut: ^^ Hydra is down... in the unlikely case you'd overlook that when you have time.
<gchristensen> Let's find out... :)
<vcunat> MichaelRaskin: I thought of that, but it wouldn't be enough information for me anyway.
<MichaelRaskin> But there seems to be a PostgreSQL error — I think that should fail the evaluation before actually starting the builds
<vcunat> Evaluation failure on master?
katona has joined #nixos
<MichaelRaskin> Evaluation failure caused by impossibility to actually record the result
kgz has quit [Quit: WeeChat 1.9.1]
<vcunat> I can't see an evaluation error on current master.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] volth opened pull request #35542: cfr: 0_101 -> 0_125 (master...patch-108) https://git.io/vAwNH
NixOS_GitHub has left #nixos [#nixos]
<MichaelRaskin> It is not a failure of evaluating _master_, it should be a failure of evaluating anything on _Hydra_ with the DB down
<vcunat> Ah, I see now what you meant.
dan_b has quit [Ping timeout: 240 seconds]
coot has joined #nixos
srk has quit [Ping timeout: 276 seconds]
jensens has quit [Ping timeout: 240 seconds]
m3lst4d has joined #nixos
srk has joined #nixos
srk has quit [Changing host]
srk has joined #nixos
tertle||eltret has quit [Quit: Connection closed for inactivity]
yegortim1 has quit [Remote host closed the connection]
yegortim1 has joined #nixos
magnetophon has joined #nixos
rardiol1 has joined #nixos
<gchristensen> the packet-t2-4 isn't building anything, confirming that
m3lst4d has quit [Remote host closed the connection]
m3lst4d has joined #nixos
nh2 has joined #nixos
MP2E has quit [Remote host closed the connection]
yegortim1 has quit [Remote host closed the connection]
yegortim1 has joined #nixos
acarrico has joined #nixos
asuryawanshi has joined #nixos
yann-kaelig has quit []
netixx has quit []
<shlevy> Would love people who have insight into cross-compilation to look at https://github.com/NixOS/nixpkgs/issues/35543
kragniz has joined #nixos
asuryawanshi has quit [Ping timeout: 245 seconds]
yann-kaelig has joined #nixos
<srhb> Out of curiosity, is there any kind of automation that I can employ to prevent a commit from reaching stable, without necessarily reverting it in master?
<MichaelRaskin> You mean, ever reaching stable 18.03?
<srhb> No, I meant backport :0
<srhb> I'm guessing no since that's a by-hand process anyway.
<MichaelRaskin> Put a «Do not backport because X» into the commit message
<MichaelRaskin> Most things do not ever get backported anyway.
<srhb> Hmm, I guess I can comment on the commit...
<srhb> Right.
asuryawanshi has joined #nixos
robstr has joined #nixos
<magnetophon> Maybe a stupid question, but what is the point of stable, if stuf doesn't get backported?
<srhb> Security releases are focused mainly on stable. And a lot of things *do* get backported.
<MichaelRaskin> Major bugfixes get backported.
asuryawanshi has quit [Ping timeout: 252 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] MtP76 opened pull request #35545: Adding photoflow (master...photoflow) https://git.io/vAwxs
NixOS_GitHub has left #nixos [#nixos]
mrkgnao has quit [Ping timeout: 240 seconds]
<gchristensen> magnetophon: turning the question over, what is the point of stable if everything is backported?
<magnetophon> gchristensen: checkmate! :D
kragniz is now known as kgz
<magnetophon> good point
<gchristensen> wow! I should play chess, that was easier than I expected
<magnetophon> srhb, MichaelRaskin: thanks
dan_b has joined #nixos
__monty__ has joined #nixos
<__monty__> I just ran nix-env -u --leq and it seems like my firefox has been downgraded? I was on 58 installed by nix but now the about menu says it's firefox nightly 57.
<srhb> Why --leq?
dan_b has quit [Ping timeout: 252 seconds]
<vcunat> -u by itself won't "update" a package if its version hasn't changed
<vcunat> Still, dependencies might have been updated, etc.
<srhb> I see.
<sphalerite_> nix-env -u sucks anyway :p
<vcunat> I typically use `--always -uA` with an attrset I defined, but there are many ways.
ryanartecona has joined #nixos
asuryawanshi has joined #nixos
Tobba_ has quit [Read error: Connection reset by peer]
lorne has joined #nixos
<__monty__> srhb: I have some buildEnv's and they won't update without it.
asuryawanshi has quit [Ping timeout: 245 seconds]
<__monty__> I don't understand how I could've gotten nightly 57 though, that's not even in nixpkgs.
<srhb> Then I guess it must have been there before you did anything.
<srhb> Assuming the nonexistence of magic. :-)
asuryawanshi has joined #nixos
<__monty__> No, I think it's because it got all the packages from my nixos channel instead of nixpkgs. I changed NIX_PATH to just .nix-defexpr/channels.
<__monty__> Damn, have to do an entire rebuild : (
<__monty__> Is there a way to keep my NIX_PATH definition but still specify the order of the channels?
asuryawanshi has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] frlan opened pull request #35547: Geany: 1.32 -> 1.33 (master...Update/Geany/1.33) https://git.io/vAwp5
NixOS_GitHub has left #nixos [#nixos]
<gchristensen> "Full charge in 6,680 hourss"
<hyper_ch> someone has a very large battery
Rusty1_ has joined #nixos
<vcunat> or charges it _very_ slowly
<hyper_ch> btw, when I use nixos-rebuild swith -I nixpkgs=/path/to/local/repo then I won't need an --upgrade option as it will take that repo and it's checkout?
<srhb> I don't have that problem. My battery charge lasts for approximately two seconds...
<srhb> hyper_ch: It will never git pull or anything for you, no.
<srhb> hyper_ch: I think it might stupidly call nix-channel --update anyway though.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl opened pull request #35548: ocamlPackages.camlp5: 7.03 -> 7.05 (master...camlp5-7.05) https://git.io/vAwhI
NixOS_GitHub has left #nixos [#nixos]
<gchristensen> your batteries don't usually take 9 months to charge?
<hyper_ch> vcunat: btw, is there a 10gbps TO planned? The vikings in Sweden get affordable 10gpbs home internet now
<gchristensen> I guess we don't all live in the matrix yet
<srhb> Well, in truth I'm unsure how to confirm they're *charged*
<srhb> Perhaps they just take much longer than that.
<vcunat> hyper_ch: TO can do 10 reportedly, I think. With some SPF adapters.
<srhb> If I had to strap human bodies to a charger in order for it to work, this might explain things.
<hyper_ch> vcunat: but the lan ports are only 1gbps IIRC
<hyper_ch> and wireless is even much below that
spear2 has quit [Remote host closed the connection]
<vcunat> Yes, no plans to upgrade those so far.
asuryawanshi has joined #nixos
<vcunat> 1gbps is way too much for wi-fi :-)
<hyper_ch> but it feels wrong if wireless is like 30x slower than internet
<hyper_ch> srhb: human centipede?
<gchristensen> Matrix
<vcunat> it feels wrong that in a block of flats everyone has at least one wireless AP
<vcunat> It wasn't designed to be used this way.
ryantm has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm closed pull request #35498: anki: 2.0.47 -> 2.0.48 (master...auto-update/anki-2.0.47-to-2.0.48) https://git.io/vAwlx
NixOS_GitHub has left #nixos [#nixos]
<vcunat> In Matrix the didn't even need any charging.
Itkovian has joined #nixos
<hyper_ch> https://www.bahnhof.se/villafiber/ /me is so jealous
robstr has quit [Remote host closed the connection]
<hyper_ch> (and I did get used to gigabit way too easily)
robstr has joined #nixos
Itkovian has quit [Client Quit]
<gchristensen> I was making the connection that 6,680hrs is roughly how long it takes to birth a child
asuryawanshi has quit [Ping timeout: 240 seconds]
<hyper_ch> vcunat: btw, is there a way to actaully use TO as a full dns server that will request from root dns servers directly and not from ISPs or Google ones?
<vcunat> hyper_ch: yes, click a checkbox in the Foris UI
<vcunat> (DNS / disable forwarding)
<hyper_ch> I see
<hyper_ch> well, 8.8.8.8 is google tracking you and quad9 is also operated by the London City Police and others.....
<vcunat> I still consider it a bad decision that it wasn't the default on Omnia.
<hyper_ch> so I've been pondering to setup my own trusted DNS resolver
<hyper_ch> but that will only finally work when dns resolving uses tls as well as ISPs can still interfere easily right now
<vcunat> Well, privacy against ISP is a hard thing.
<vcunat> Tunnel to a trusted provider is probably the only way.
<hyper_ch> that's why: running your own dns resolver that uses dns over tls for upsream
<hyper_ch> there's rfc7858 though
<vcunat> These don't run on _authoritative_ servers.
robstr has quit [Ping timeout: 252 seconds]
<vcunat> (aren't standardized for them)
iyzsong-x has joined #nixos
<vcunat> You may forward over TLS to 9.9.9.9 for example.
mkoenig has joined #nixos
<vcunat> And BTW, in https handshake, the hostname is in clear text ;-)
<hyper_ch> who runs 9999?
<hyper_ch> city police london
mkoenig_ has quit [Ping timeout: 240 seconds]
asuryawanshi has joined #nixos
<hyper_ch> "The Alliance (GCA) was co-founded by the City of London Police, the District Attorney of New York County...."
iyzsong has quit [Ping timeout: 245 seconds]
<hyper_ch> so don't really wanna use them
<vcunat> I prefer to go without forwarding anyway.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl closed pull request #35547: Geany: 1.32 -> 1.33 (master...Update/Geany/1.33) https://git.io/vAwp5
NixOS_GitHub has left #nixos [#nixos]
asuryawanshi has quit [Ping timeout: 245 seconds]
asuryawanshi has joined #nixos
iyzsong-x has quit [Ping timeout: 256 seconds]
m3lst4d has quit [Ping timeout: 252 seconds]
m3lst4d has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35549: babl: 0.1.42 -> 0.1.44 (master...auto-update/babl-0.1.42-to-0.1.44) https://git.io/vAwjY
NixOS_GitHub has left #nixos [#nixos]
<hyper_ch> vcunat: what's the benefit without forwarding?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm reopened pull request #35498: anki: 2.0.47 -> 2.0.48 (master...auto-update/anki-2.0.47-to-2.0.48) https://git.io/vAwlx
NixOS_GitHub has left #nixos [#nixos]
<vcunat> It works better.
<hyper_ch> ok
<vcunat> The DNS protocol wasn't designed with forwarding in mind.
<vcunat> It still doesn't define how it should work AFAIK.
<hyper_ch> time to update dns protocol ;)
<vcunat> And you can't really deploy a new incompatible DNS.
asuryawanshi has quit [Ping timeout: 256 seconds]
<hyper_ch> sure you can... it has worked perfectly with ipv6 as well *ggg*
<vcunat> It's like most people don't care about IPv6.
thefloweringash[ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vAwjB
<NixOS_GitHub> nixpkgs/master 81f04d6 Ryan Mulligan: acl2: 7.4 -> 8.0...
NixOS_GitHub has left #nixos [#nixos]
robstr has joined #nixos
mekeor has joined #nixos
asuryawanshi has joined #nixos
joko has quit [Quit: leaving]
Itkovian has joined #nixos
lorne has quit [Quit: Page closed]
Izorkin_ has joined #nixos
Izorkin has quit [Read error: Connection reset by peer]
asuryawanshi has quit [Ping timeout: 256 seconds]
rihards has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35550: bandwidth: 1.4.2 -> 1.5.1 (master...auto-update/bandwidth-1.4.2-to-1.5.1) https://git.io/vAwjA
NixOS_GitHub has left #nixos [#nixos]
Izorkin_ has quit [Read error: Connection reset by peer]
Izorkin has joined #nixos
asuryawanshi has joined #nixos
asuryawanshi has quit [Ping timeout: 260 seconds]
timon37 has quit [Remote host closed the connection]
magnetophon has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
hask_bee_3 has joined #nixos
chreekat has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar opened pull request #35551: udisks2: 2.1.6 → 2.7.6 (master...udisks2-2.7.6) https://git.io/vAreH
NixOS_GitHub has left #nixos [#nixos]
asuryawanshi has quit [Ping timeout: 252 seconds]
hask_bee_3 has quit [Client Quit]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl closed pull request #35526: sit: 0.1.2 -> 0.1.3 (master...sit-0.1.3) https://git.io/vAwo8
NixOS_GitHub has left #nixos [#nixos]
<yorick> can I do overrideDerviation old: {/*fixes*/; meta.broken = false;}?
asuryawanshi has joined #nixos
michas_ has joined #nixos
asuryawanshi has quit [Ping timeout: 245 seconds]
<michas_> Hi, I just installed nixos and installed the way-cooler and sway package. Both install fine, but both are not able to start, because they cannot find `swrast_dri.so` - shouldn't nix install all dependencies and therefore avoid that kind of error?
<srhb> yorick: For that you probably want overrideAttrs (old: { ...; meta.broken = false; })
<yorick> srhb: yeah, found it
<srhb> :)
asuryawanshi has joined #nixos
ambro718 has quit [Quit: Konversation terminated!]
<michas_> Does my description make sense? Is anyone able to reproduce that behavior?
<symphorien> michas_: I have heard that opengl is still impure on NixOS, for technical reasons
katona has quit [Quit: Connection closed for inactivity]
<symphorien> so you should skim in https://nixos.org/nixos/options.html#opengl and try things
asuryawanshi has quit [Ping timeout: 252 seconds]
freeman42x]NixOS has joined #nixos
smichel17 has joined #nixos
__monty__ has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 5 new commits to master: https://git.io/vArfL
<NixOS_GitHub> nixpkgs/master bee495e Tim Steinbach: linux: 4.14.21 -> 4.14.22
<NixOS_GitHub> nixpkgs/master f22a5f3 Tim Steinbach: linux: 4.4.117 -> 4.4.118
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 8d30984 Tim Steinbach: linux: 4.9.83 -> 4.9.84
rauno has joined #nixos
<sphalerite_> symphorien: hardware.opengl.enable = true;
<sphalerite_> err michas_ ^
<sphalerite_> it's a hidden option iirc because nixos still assumes that you don't want opengl without X >.>
asuryawanshi has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/release-17.09 cc2970b Tim Steinbach: linux: 4.4.117 -> 4.4.118...
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 5 new commits to release-17.09: https://git.io/vArfm
<NixOS_GitHub> nixpkgs/release-17.09 8eb8404 Tim Steinbach: linux: 4.14.21 -> 4.14.22...
<NixOS_GitHub> nixpkgs/release-17.09 b01bb71 Tim Steinbach: linux: 4.9.83 -> 4.9.84...
NixOS_GitHub has left #nixos [#nixos]
<simpson> Nix generates systems which are easier to add stuff to than to remove stuff from. It follows that most stuff would default to disabled.
<vcunat> ah :-)
NixOS_GitHub has joined #nixos
<elvishjerricco> bgamari-: Ping
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #35550: bandwidth: 1.4.2 -> 1.5.1 (master...auto-update/bandwidth-1.4.2-to-1.5.1) https://git.io/vAwjA
NixOS_GitHub has left #nixos [#nixos]
strobelight has joined #nixos
rauno has quit [Ping timeout: 240 seconds]
<michas_> sphalerite_: Thanks at lot. Indeed that fixed it. :)
<sphalerite_> simpson: that's not the problem, it's just that the option is hidden and as such not in the manual or the options search
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] yegortimoshenko opened pull request #35552: imgpatchtools: init at 0.3 (master...20180225.155732/imgpatchtools) https://git.io/vArfB
NixOS_GitHub has left #nixos [#nixos]
asuryawanshi has quit [Ping timeout: 252 seconds]
<symphorien> michas_: then you might want to create a page on the wiki about sway or way-cooler: https://nixos.wiki
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar pushed 1 new commit to master: https://git.io/vArfE
<NixOS_GitHub> nixpkgs/master 20c5476 Ryan Mulligan: babl: 0.1.42 -> 0.1.44...
NixOS_GitHub has left #nixos [#nixos]
<simpson> sphalerite_: Good point. IIRC configuration.nix used to be auto-populated with commented-out helpers and useful tips which covered this stuff, but maybe that's no longer the case.
<bgamari-> elvishjerricco, pong
<elvishjerricco> bgamari-: Can we get your input on this PR? https://github.com/NixOS/nixpkgs/pull/35321
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 opened pull request #35553: vim-nix: 2017-04-30 -> 2018-02-25 (master...vim-nix) https://git.io/vArf6
NixOS_GitHub has left #nixos [#nixos]
vcunat has quit [Quit: Leaving.]
<bgamari-> elvishjerricco, to be honest I'm not entirely sure of the semantics of --compiler
<sphalerite_> simpson: you mean the one generated by nixos-generate-config? It still includes a basic set of examples of what you might want, but those are all non-hidden options as well
asuryawanshi has joined #nixos
<bgamari-> what you have done there looks plausible
<bgamari-> so if it works then LGTM
<elvishjerricco> bgamari-: Yea it fixes cabal file conditions on GHC version, so cabal2nix seems to support this correctly.
strobelight has quit [Quit: gtg]
<simpson> sphalerite_: Sure.
vcunat has joined #nixos
<sphalerite_> oh, the term is actually "internal" as opposed to "hidden". But the effect is the same — it doesn't end up in the manual or the options search. An issue which I will remedy right away :D
jtojnar has joined #nixos
<gchristensen> anyone know why this causes infinite recursion? https://gist.github.com/grahamc/c3d35084fd58b4077b7338f1cb615b6c
<gchristensen> or: anyone know of a way to do this without the infinite recursion :)
periklis has joined #nixos
<simpson> Yikes.
jensens has joined #nixos
<elvishjerricco> gchristensen: The module system is probably strict in `config`, since it differentiates between modules that do `{ foo = bar; }` and `{ config = { foo = bar; }; }`
<elvishjerricco> Which would mean that it's strict in `cfg.class` in this case, which recurs on being strict on `config`
<gchristensen> ahh
<gchristensen> this is why mkIf exists
<LnL> gchristensen: you can't use config directly
<LnL> gchristensen: plans."${cfg.class}" could override packet.class but it needs it to evaluate
rauno has joined #nixos
<gchristensen> ack!
vidbina_ has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
<gchristensen> thanks elvishjerricco, LnL!
vidbina has quit [Ping timeout: 252 seconds]
<sphalerite_> michas_: there seem to be modules dedicated to both of the compositors you mentioned though, so you shouldn't need to set hardware.opengl.enable = true; yourself, instead set programs.{sway,way-cooler}.enable = true;
KABA has joined #nixos
<michas_> sphalerite_: What exactly does it mean to "enable" a program? What is the right kind of documentation for that?
<sphalerite_> michas_: `man configuration.nix` or the options search at https://nixos.org/nixos/options.html (they contain the same information, although the manpage will contain newly introduced options and stuff while options.html is always for the current stable nixos channel)
<sphalerite_> michas_: for the most part you'll just want to enable stuff by putting it in systemPackages but some stuff just has extra systemwide dependencies (like the OpenGL setup for wayland compositors) which can't be represented in the package and as such has its own configuration module
<sphalerite_> same goes for anything that needs setuid, setcap, or systemd services
<symphorien> michas_: on NixOS installing a program will only make the executables availables in the PATH. it will never have side effects like enabling a systemd service, install logrotate rules and so on. A NixOS option and module is needed for that. So for a window manager, web server etc. installing the program is not enough, you need to swich on nom NixOS option which is usually called "something.programname.enable =
<symphorien> true"
ryanartecona has quit [Quit: ryanartecona]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar pushed 1 new commit to master: https://git.io/vArUL
<NixOS_GitHub> nixpkgs/master a31d98f Jan Tojnar: tree-wide: autorename gnome packages to use dashes
NixOS_GitHub has left #nixos [#nixos]
verrchu has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lheckemann opened pull request #35554: nixos/opengl: unhide and document enable option (master...opengl-unhide) https://git.io/vArUG
NixOS_GitHub has left #nixos [#nixos]
<verrchu> Hi guys i guess i am kinda stuck with the installation
<KABA> Any info on the hydra server? When will it be back up?
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master b5c200b volth: jdk: use oraclejdk on aarch64
<NixOS_GitHub> nixpkgs/master 0fadb81 Jörg Thalheim: Merge pull request #35510 from volth/jdk-on-aarch64...
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vArUc
<verrchu> can anybody help?
<KABA> verrchu: Where did you stuck?
<jtojnar> yegortim1: have you seen the new meson rpath fix?
<bgamari-> hmm, I guess nixos has no support for setting up binfmt-misc?
<symphorien> verrchu: just ask
<vcunat> My tip is that Hydra will get fixed tomorrow.
<verrchu> so i made a bootable usb drive
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar closed pull request #35519: tree-wide: autorename gnome packages to use dashes (master...gnome-normalisation) https://git.io/vAw2R
NixOS_GitHub has left #nixos [#nixos]
<verrchu> i was prompted a greeting menu where i chose Nix OS XXX.XX Installer
<bgamari-> wow
<bgamari-> how timely
<verrchu> and now i am in the system i suppose. But it doesn't look like i installed it. Because if i unplug the usb and reboot my computer it is waiting for a bootable device
<sphalerite_> verrchu: did you follow the installation instructions in the manual?
<symphorien> you are in the installer, not in your installed system
oahong has quit [Ping timeout: 245 seconds]
coot has quit [Quit: coot]
<LnL> jtojnar: should I look at that meson stuff for darwin or do the changes not apply there?
jensens has quit [Remote host closed the connection]
<hyper_ch> btw, the current hydra hiccups - what are the consequences? Just no prebuilt stuff?
<jtojnar> LnL: the patch only concerns itself with rpath
<hyper_ch> hi LnL
jensens has joined #nixos
<LnL> hi
<jtojnar> LnL: not even sure what adds the libraries to rpath on Linux, no idea how it works on Darwin
<hyper_ch> LnL: for my tmux problem you did a git bisect - what did you actually do there?
oahong has joined #nixos
<sphalerite_> hyper_ch: no channel updates
<hyper_ch> sphalerite_: hmmmm, it just keeps compiling everything for me now :(
<hyper_ch> well, on old commits.. it's been compiling stuff for the last 10h or so
<sphalerite_> hyper_ch: if you're on a channel you should still be getting binaries
<sphalerite_> oh, then you're probably on a revision that was never the state of a channel
ryanartecona has joined #nixos
<hyper_ch> sphalerite_: ah ok
<LnL> jtojnar: the stdenv/cc-wrappers add that, on darwin ld uses the install_name of libraries instead and links against that and we use absolute paths for that instead of @rpath
Tobba has joined #nixos
<michas_> sphalerite_: Ah, thanks makes sense. However I cannot find programms.sway.enabled in the man page and on options html. - Should they really list all options for all packages? (Or are those also hidden options?)
<LnL> hyper_ch: sphalerite_: yes, no caches implies that
<sphalerite_> michas_: are you on nixos-17.09 or nixos-unstable?
raynold has joined #nixos
<KABA> What determines what nix-env -iA something will use as nixpkgs source? I changed in my configuration.nix the nixpath variable so nixos-rebuild uses that, but nix-env still want to use some channel and I would like to not use -f '<nixpkgs>' all the time
<LnL> luckily the ofborg infrastructure is separate and now verifies a lot more then before
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sphalerite_> michas_: the sway module isn't in 17.09, only in unstable and it will be in 18.03
amf has joined #nixos
<michas_> sphalerite_: good question. :) whatever came with the installer. According to the file name it should be 17.09.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/vArTV
<NixOS_GitHub> nixpkgs/master a035714 Michael Raskin: lispPackages: remove trailing colon from {NIX_LISP_,}LD_LIBRARY_PATH
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 140b163 Michael Raskin: lispPackages: add a few more, escape +
<michas_> and the web page also refers to 17.09, right?
<sphalerite_> michas_: yeah you might want to switch to unstable if you want to use wayland stuff, a lot of improvements have been made since 17.09 by the looks of it
<sphalerite_> yes
<michas_> can you give me a hint how to switch to unstable? it's the channel thing, right?
<hyper_ch> michas_: nix-channel --add https://nixos.org/channels/nixos-unstable nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35555: bcftools: 1.6 -> 1.7 (master...auto-update/bcftools-1.6-to-1.7) https://git.io/vArTS
NixOS_GitHub has left #nixos [#nixos]
<hyper_ch> (followed by nixos-rebuild switch --upgrade or boot instead of switch)
Itkovian has joined #nixos
periklis has quit [Ping timeout: 252 seconds]
<LnL> hyper_ch: I posted what I did on the issue, ssh to the vm, start tmux and detatch
<hyper_ch> LnL: but how were you finding the commit so quickly?
<michas_> Thanks guys. You are really helpful. Learned a lot. :)
<LnL> git bisect, logarithmic search :)
rogue_koder has joined #nixos
<hyper_ch> LnL: the issues seems to be user related... if I start tmux as root and close the konsole tab and reconnect by ssh, the session still runs
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35556: biboumi: 6.1 -> 7.2 (master...auto-update/biboumi-6.1-to-7.2) https://git.io/vArkg
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #35552: imgpatchtools: init at 0.3 (master...20180225.155732/imgpatchtools) https://git.io/vArfB
NixOS_GitHub has left #nixos [#nixos]
<LnL> well yes, I'm pretty sure it's very similar to the nix-build issue
<LnL> but it's a regression IMHO
<hyper_ch> not sure what issue that is
<sphalerite_> hyper_ch: what is your issue?
<hyper_ch> sphalerite_: just click the youtube link https://github.com/NixOS/nixpkgs/issues/35415
<LnL> ie. tmux dies if it's the only login session for that user
<hyper_ch> (couldn't figure out how to avoid those "clippings" to the desktop with simplescreenrecorder
<sphalerite_> oh ok so Mic92 already mentioned the lingering thing
<MichaelRaskin> systemd strikes again?
<symphorien> isn't it the loginctl enable-linger thing ?
<LnL> I expected git-bisect to end up in the systemd update
<sphalerite_> yeah
<duncan^> does it depend on libpurple
<sphalerite_> hyper_ch: does it still occur after running loginctl enable-linger <username> ?
<duncan^> or poppler
vcunat has quit [Quit: Leaving.]
<Mic92> LnL: but do you have enabled linger for your user?
<hyper_ch> what's linger?
<sphalerite_> LnL: and are you sure it dies as opposed to just becoming unreachable?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rnhmjoj opened pull request #35557: flexget: 2.10.82 -> 2.12.8 (master...flexget) https://git.io/vArIv
NixOS_GitHub has left #nixos [#nixos]
<sphalerite_> Because I found it would become unreachable but was still running
<LnL> I posed the vm config, no if it's not the default for a isNormalUser
<sphalerite_> because the /run/user/$UID tmpfs would get unmounted and lost, destroying the socket
<LnL> the process and it's children disappear
<LnL> no the socket is in /tmp
<sphalerite_> but access could be restored by sending USR1 to the tmux daemon
<Mic92> LnL: you need to enable this manually
<sphalerite_> huh
<Mic92> this does not work by default
<sphalerite_> yeah it still sounds like lingering would fix it. We really need declarative lingering config
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rauno has quit [Ping timeout: 245 seconds]
<hyper_ch> Mic92: but on every other system I've used I didn't have to do anything
<hyper_ch> tmux just keeps running
<LnL> Mic92: nope still dies
i-am-the-slime has joined #nixos
<i-am-the-slime> Hello. I would like to use fontforge but with a GUI.
<MichaelRaskin> I think the same problem that systemd broke the very idea of screen/tmux/nohup has already appeared in the past, and some setting has been set…
<i-am-the-slime> this is the package
<i-am-the-slime> and it has this line:
<MichaelRaskin> fontforge-gtk exists
<amf> does nixops work on non-nixos machines? if not officially supported, is there any project which tries?
<i-am-the-slime> , withGTK ? false, gtk2
<i-am-the-slime> Ah okay
<i-am-the-slime> But in general, how would I "set" such a variable?
alexteves_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Profpatsch opened pull request #35558: dhall: passthru dhall prelude (master...dhall-passthru-prelude) https://git.io/vArIR
NixOS_GitHub has left #nixos [#nixos]
<MichaelRaskin> fontforge.override { withGTK = true; }
<i-am-the-slime> perfect!
<MichaelRaskin> Which can be seen in all-packages.nix in the repository
<i-am-the-slime> but fontforge-gtk did the trick, thank you so much
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35559: binaryen: 42 -> 44 (master...auto-update/binaryen-42-to-44) https://git.io/vArI2
NixOS_GitHub has left #nixos [#nixos]
<MichaelRaskin> Basically, in any case search through the pkgs/toplevel directory is a good idea
<i-am-the-slime> I wonder if I'm doing something wrong in general. I always search for the packages, then manually look at the options on github and then go into configuration.nix add the name there and do sudo nixos-rebuild switch
<MichaelRaskin> Sounds like a valid approach.
rihards has quit [Quit: rihards]
<i-am-the-slime> Okay. It just feels like I'm doing the computer's work sometimes :D
<i-am-the-slime> I would like to use this thing: https://github.com/Antergos/web-greeter
<MichaelRaskin> I mean, in general at some point you remember enough out of the Nix and Nixpkgs manuals to use buildEnv and separate expressions for separate activities or something
<MichaelRaskin> Well, you could try installing nix-index to search for packages.
<i-am-the-slime> I have nox, and I can search with that. But that doesn't really show me the options.
<i-am-the-slime> But I'm also fine with this approach right now.
<MichaelRaskin> In the new and shiny Nix 2.0 (released, not yet in channels) there is nix edit
Arcaelyx has joined #nixos
<MichaelRaskin> So you can search for attribute name, then open the source.
<MichaelRaskin> But I think in most cases there is no expectation that you will change the options.
Itkovian has joined #nixos
<MichaelRaskin> More like pick among fontforge and fontforge-gtk
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35560: blas: 3.7.1 -> 3.8.0 (master...auto-update/blas-3.7.1-to-3.8.0) https://git.io/vArIp
NixOS_GitHub has left #nixos [#nixos]
rauno has joined #nixos
<samueldr> i-am-the-slime: during 17.03 I tried to package web-greeter (then lightdm-webkit), but was faced with a bug
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35561: blktrace: 1.1.0 -> 1.2.0 (master...auto-update/blktrace-1.1.0-to-1.2.0) https://git.io/vArLv
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar opened pull request #35562: zeitgeist: 1.0 → 1.0.1 (master...zeitgeist-1.0.1) https://git.io/vArLT
NixOS_GitHub has left #nixos [#nixos]
<samueldr> (and then lost interest)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35563: bindfs: 1.12.6 -> 1.13.9 (master...auto-update/bindfs-1.12.6-to-1.13.9) https://git.io/vArLI
NixOS_GitHub has left #nixos [#nixos]
<samueldr> it seems that the webkit build for that GTK webkit doesn't load stuff from the nix store as "proper" html documents
<samueldr> (probably) the same issue can be observed by opening the inspector in midori
asuryawanshi has joined #nixos
* samueldr verifies if he still has the lightdm-webkit branch around somewhere
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<samueldr> ah, it was called lightdm-web-greeter at that time
jensens has quit [Ping timeout: 252 seconds]
<hyper_ch> this looks quite interesting https://fosdem.org/2018/schedule/event/cockpit/
asuryawanshi has quit [Ping timeout: 245 seconds]
<LnL> I couldn't go this year :/
<hyper_ch> LnL: I haven't been at any fosdem
<samueldr> i-am-the-slime: it's probably quite dirty, this was done while I was learning about nixpkgs, but it booted up to having a black on black bugged webkit at the time https://github.com/samueldr/nixpkgs/commit/797707a1a7bd81f1499339a856bcfb80fac849c3
<samueldr> so it *technically worked*, only that the webkit-gtk didn't load the files properly
i-am-the-slime has quit [Remote host closed the connection]
ChongLi has quit [Ping timeout: 245 seconds]
<gchristensen> I wish nixops had a somewhat nicer way to specify where to find nixpkgs
<srhb> gchristensen: I've been playing around with that. I recently got bitten by restricted mode because I'd been fetching them in my deployments... Still searching for a better model.
<gchristensen> aye
kitemikaze has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] xeji opened pull request #35564: qemu: add optional virglrenderer and opengl support (master...qemu-virgl) https://git.io/vArLQ
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35565: boolstuff: 0.1.15 -> 0.1.16 (master...auto-update/boolstuff-0.1.15-to-0.1.16) https://git.io/vArL5
NixOS_GitHub has left #nixos [#nixos]
ixxie has joined #nixos
<srhb> gchristensen: (Essentially I had a networks.nixpkgs attribute that I'd use from eval-machines)
<gchristensen> nice!
Izorkin_ has joined #nixos
Izorkin has quit [Read error: Connection reset by peer]
ChongLi has joined #nixos
roberth has quit [Ping timeout: 248 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #35530: babeltrace: 1.5.3 -> 1.5.4 (master...auto-update/babeltrace-1.5.3-to-1.5.4) https://git.io/vAwoN
NixOS_GitHub has left #nixos [#nixos]
nuncanada has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35566: bowtie2: 2.3.4 -> 2.3.4.1 (master...auto-update/bowtie2-2.3.4-to-2.3.4.1) https://git.io/vArt3
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/vArtn
<NixOS_GitHub> nixpkgs/master 8c45d41 Tim Steinbach: jenkins: 2.89.3 -> 2.89.4
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 0652ed1 Tim Steinbach: sbt: 1.1.0 -> 1.1.1
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vArtW
<NixOS_GitHub> nixpkgs/master 494d94a Tim Steinbach: jdbc: 5.1.39 -> 5.1.45
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/vArtl
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 088f8b8 Tim Steinbach: syslog-ng-incubator: 0.6.0 -> 0.6.2
<NixOS_GitHub> nixpkgs/master acbb71c Tim Steinbach: syslog-ng: 3.11.1 -> 3.13.2
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vArtB
<NixOS_GitHub> nixpkgs/master 87658f3 Tim Steinbach: pulseaudio: 11.0 -> 11.1
NixOS_GitHub has left #nixos [#nixos]
chessai has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vArt2
<NixOS_GitHub> nixpkgs/master 7b2cff9 Tim Steinbach: font-awesome: Add 5.0.6...
NixOS_GitHub has left #nixos [#nixos]
Izorkin_ has quit [Read error: Connection reset by peer]
Izorkin has joined #nixos
michas_ has quit [Quit: Page closed]
Mateon1 has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vArt1
<NixOS_GitHub> nixpkgs/master fdadd97 Tim Steinbach: keybase: 1.0.40 -> 1.0.42
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vArt9
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 45fcaa6 Tim Steinbach: hicolor-icon-theme: 0.15 -> 0.17
gorre has joined #nixos
joko has joined #nixos
<hyper_ch> someone's busy
kitemikaze has quit [Remote host closed the connection]
kitemikaze has joined #nixos
<gchristensen> ... lol now _I'm_ getting error: attribute ‘nixosVersion’ missing in nixops, and can't sort it out
<MichaelRaskin> There is a PR in NixOps
<gchristensen> oh?
<MichaelRaskin> Well, there was a cleanup of tagging of NixOS versions in GRUB menu
<MichaelRaskin> It also renamed the options
<gchristensen> guh
<MichaelRaskin> Well, the new putting nixos* into nixos.* makes sense
<MichaelRaskin> There is a PR in NixOps that updates the interface to NixOS to support both ways
<gchristensen> great!
<gchristensen> thank you MichaelRaskin
<MichaelRaskin> It is stalled, like everything in a Nix* project without twenty committers or so
<MichaelRaskin> Eelco says that maybe the options should be renamed back or something instead of merging dtz's PR into NixOps…
<gchristensen> :|
rauno has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 1 new commit to master: https://git.io/vArqi
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master de149ba Michael Raskin: ripmime: switch of -Werror
knupfer has joined #nixos
cfricke has quit [Quit: WeeChat 2.0]
<MichaelRaskin> Obviously, he doesn't reject the PR while saying that the rename should be reverted.
ixxie has quit [Quit: Lost terminal]
tmaekawa has joined #nixos
Izorkin_ has joined #nixos
cmacrae has quit [Ping timeout: 268 seconds]
alexteves has joined #nixos
Izorkin has quit [Ping timeout: 245 seconds]
Izorkin_ has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 5441518 Tim Steinbach: bind: 9.11.2 -> 9.12.0
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vArmW
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] zimbatm opened pull request #35568: nodejs: ship with development headers (master...nodejs-headers) https://git.io/vArmg
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] asymmetric opened pull request #35569: diceware: init at 0.9.3 (master...asymmetric/diceware) https://git.io/vArmo
NixOS_GitHub has left #nixos [#nixos]
<alexteves> I'm getting a weird error from runghc in a nix-shell under os x (it works in nixos).
<alexteves> $ runghc Main.hs
<alexteves> runghc: ramework-path/nix/store/ws9cfrjf7nry1hy1p7612qvdqi87qjwb-apple-framework-PCSC/Library/Frameworks: executeFile: does not exist (No such file or directory)
<alexteves> "runghc —help" works as expected
<alexteves> I’m guessing the -framework-path option somewhere is being processed wrong (maybe it’s parsed as -f ramework-path). Any ideas?
chreekat has quit [Ping timeout: 245 seconds]
asuryawanshi has joined #nixos
<LnL> is this on darwin?
<LnL> ah, ok
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vArm5
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 3187f3f Tim Steinbach: containerd: 1.0.1 -> 1.0.2
<LnL> is runghc a wrapper?
verrchu has quit [Ping timeout: 245 seconds]
asuryawanshi has quit [Ping timeout: 256 seconds]
ryanartecona has quit [Quit: ryanartecona]
KABA has quit [Quit: Page closed]
cmacrae has joined #nixos
<alexteves> hmm I don't understand the question
<alexteves> $ which runghc
<alexteves> /nix/store/3r9r8ss43c5ni3l9c0ijg75lvr50igrm-ghc-8.0.2-with-packages/bin/runghc
<alexteves> that help?
chreekat has joined #nixos
Rusty1_ has quit [Quit: Konversation terminated!]
MichaelRaskin has quit [Ping timeout: 260 seconds]
<hyper_ch> LnL: had a look at that fosdem presentation?
cmacrae has quit [Ping timeout: 248 seconds]
humanoyd has joined #nixos
<sphalerite_> hyper_ch: I skimmed over it. It seems mostly inferior to nixos :p
betaboon has joined #nixos
robstr has quit [Remote host closed the connection]
<hyper_ch> sphalerite_: nah, you just need to write according nixos module for it ;)
<betaboon> hello #nixos, I'm just trying to build a pythonPackage which contains entry_points but the resulting package in nix-store does not contain any py-files. what am i doing wrong ?
<LnL> kind of skipped it once they started to show a gui
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35570: brltty: 5.5 -> 5.6 (master...auto-update/brltty-5.5-to-5.6) https://git.io/vArYQ
NixOS_GitHub has left #nixos [#nixos]
tmaekawa has quit [Quit: tmaekawa]
<sphalerite_> betaboon: that's very hard to divine without any clues as to what your expression looks like :)
chocopuff298 has joined #nixos
<betaboon> hyper_ch: thanks for the link. i just figure it out. I'm just completly stupid and forgot the __init__.py ...
<hyper_ch> sphalerite_: you still can't mind-read over the internet?
<sphalerite_> hyper_ch: after all this time trying, I still can't
<sphalerite_> they say practice makes perfect though, so I'll keep at it
<hyper_ch> you can do it. We believe in you!
<betaboon> sphalerite_: yeah sorry xD turn's out my expressions is perfectly fine and i just forgot the __init__.py in the python package ... should have taken a break at some point Xd
<hyper_ch> no idea what an __init__.py file is
<LnL> alexteves: it looks normal at first glance, does it have any special dependencies?
<sphalerite_> it's a magical file you put into a directory to turn it into a python package
chocopuff has quit [Ping timeout: 256 seconds]
<hyper_ch> everything uses magic nowadays
<LnL> python is weird
reinzelmann has joined #nixos
hask_bee_3 has joined #nixos
<hask_bee_3> Does the binary cache store old binaries too?
<sphalerite_> yes
<hask_bee_3> They aren't eventually deleted? (To save storage costs)
<sphalerite_> not yet, no
<hask_bee_3> good to hear
<alexteves> LnL: maybe? it's pointing to a nixpkgs fork, lemme try with the nixos one
<sphalerite_> I seem to recall hearing that most of the costs are traffic, not storage
<hask_bee_3> makes sense
<LnL> alexteves: I mean the Main.hs, a simple hello world worked fine for me
<alexteves> oh it doesn't even get to read the file, I can literally pass a rubbish name and get the same error
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master ab7a07f Peter Simons: Merge pull request #35321 from ElvishJerricco/fix-haskell-compiler-name-version...
<NixOS_GitHub> nixpkgs/master a9646b3 Will Fancher: Fix haskellCompilerName version....
<NixOS_GitHub> [nixpkgs] peti pushed 2 new commits to master: https://git.io/vArOY
<alexteves> are you on darwin?
<LnL> what I'm wondering is if that runghc comes from pkgs.ghc or a ghcWithPackages
<LnL> yep
<hask_bee_3> Since upgrading to Nix 2, I'm getting this Nix-related error (when doing "stack build" on my Haskell project): dyld: Library not loaded: /nix/store/6a9fr14xc9yr4xwlkyaf4zzqmbh3xngy-gmp-6.1.2/lib/libgmp.10.dylib Referenced from: /Users/haskbee3/.stack/setup-exe-cache/x86_64-osx-nix/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2 Reason: image not found
<hask_bee_3> Is there any way to grab that particular libgmp manually? Seems like Stack didn't do it for some reason even if it needs it.
<sphalerite_> based on its store path I'm guessing ghcWithPackages
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jokogr opened pull request #35571: skrooge: 2.10.5 -> 2.11.0 and some changes (master...u/skrooge-2.11.0) https://git.io/vArOG
NixOS_GitHub has left #nixos [#nixos]
humanoyd has quit [Quit: WeeChat 2.0.1]
<LnL> oh, missed that :)
<clever> hask_bee_3: that happens when you garbage collect while using stack the "wrong way"
<alexteves> yeah, it's a ghcWithPackages
<clever> hask_bee_3: nix has no way to track that those files are in use, and deletes them, so you have to wipe your ~/.stack/setup-exec-cache/
<clever> hask_bee_3: if things are instead built using nix (stack2nix is an option), then nix knows when things are in use, and wont break it
<hask_bee_3> clever deleting that dir worked.
<hask_bee_3> are you saying this is a bug in Stack?
<clever> hask_bee_3: more that binaries built that way when using nix arent meant to last
<LnL> alexteves: can you gist the expression, pretty sure it's one of the dependencies that's causing an incorrect flag to be added
null_ has joined #nixos
<null_> has anyone here installed steam? It needs the 32-bit ligbl for me?
<null_> Can I manually add the dependency for it?
<clever> null_: one min
<null_> Thanks
<clever> null_: hardware.opengl.driSupport32Bit = true;
<alexteves> LnL: better not, this is kind of proprietary, but thanks for pointing me in the right direction
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35573: bro: 2.5.2 -> 2.5.3 (master...auto-update/bro-2.5.2-to-2.5.3) https://git.io/vArOa
NixOS_GitHub has left #nixos [#nixos]
<hask_bee_3> clever "while using stack the "wrong way"". who's using it wrong? how to use it right?
<hask_bee_3> it's just an "enabled: true" in the stack.yaml
<hask_bee_3> (under nix:)
<clever> hask_bee_3: all that does is run the builds under nix-shell, but the binaries nix-shell produces arent meant to survive a garbage collection
<null_> also, is configuration.nix backed up in any way between version changes? Should I just use source control?
<clever> hask_bee_3: if you want the cache to last long-term, you must use nix-build, and probably stack2nix
<clever> null_: by default, no
<hyper_ch> null_: I use git
<LnL> alexteves: oh, well can't really help any further without the list of dependencies
<clever> null_: i use git and this trick: system.extraSystemBuilderCmds = "ln -sv ${./.} $out/nixcfg";
<null_> hyper_ch: that's what I've seen and what I think I'm going to do, do you try to keep the repository in /etc/nixos or copy it over
yann-kaelig has quit []
<clever> null_: that saves a snapshot of whatever directory its file is within, to the nixos build
<null_> oh, that's clever
<hyper_ch> null_: just be careful about secret data in it if you use a pubic git repo
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35574: browserpass: 2.0.10 -> 2.0.11 (master...auto-update/browserpass-2.0.10-to-2.0.11) https://git.io/vArOF
NixOS_GitHub has left #nixos [#nixos]
<clever> git for long-term saving and sync'ing to other computers
<alexteves> I'll dig a bit more into the nixpkgs thing, will se how it goes
<null_> yeah if I do that I'll just put them in imports
<clever> and the above symlink for short-term changes where i dont want to make a commit for every single edit i do
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35575: btrfs-progs: 4.14.1 -> 4.15.1 (master...auto-update/btrfs-progs-4.14.1-to-4.15.1) https://git.io/vArOA
NixOS_GitHub has left #nixos [#nixos]
<LnL> alexteves: if you can't figure out where it's coming from, bisecting the dependencies might help (remove half and see if it works)
betaboon has quit [Quit: WeeChat 1.9.1]
<hask_bee_3> clever Interesting. Isn't this a bug in Stack then? They're assuming that the packages are gonna stay there. I presume this is a known issue that's on the radar to be fixed?
hiroshi- has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35576: buildah: 0.11 -> 0.12 (master...auto-update/buildah-0.11-to-0.12) https://git.io/vAr3L
NixOS_GitHub has left #nixos [#nixos]
<clever> hask_bee_3: it cant really be fixed, its just a side-effect of how nix and nix-shell work
Mateon1 has joined #nixos
hiroshi has quit [Ping timeout: 240 seconds]
hiroshi- is now known as hiroshi
<clever> hask_bee_3: if you switch over to nix-build, then the problem wont happen
<hask_bee_3> clever are you proposing I cut Stack out? (I've been thinking about it. It's just that Stack makes it so simple ;) )
<clever> hask_bee_3: stack2nix lets you use a stack.yaml file with nix
<hask_bee_3> Interesting. Ok, I'm going to look into this! Thanks.
<hyper_ch> hi clever, how was the bed?
<clever> hask_bee_3: good
<clever> hyper_ch: good, lol
<hask_bee_3> lol
<elvishjerricco> clever: hask_bee_3: Stack and Nix have important differences. Mainly, Nix doesn't give you any kind of incremental building, so `stack2nix` is going to require you to recompile the entire project from scratch on any change. Stack's `--nix` should put the proper GC roots in `.stack-work`, so `nix-collect-garbage` won't mess with it. But Stack is really screwy with it's caching under `--nix`, causing it to
<elvishjerricco> remember old GHC store paths sometimes.
<hask_bee_3> elvishjerricco i hope this will only be an issue upon major nix upgrades. it happened with me when upgrading to nix 2
<disasm> well that's interesting... when did chromium start carrying it's own list of trusted certs instead of using the system ca-bundle? Must have been fairly recently.
<elvishjerricco> hask_bee_3: It shouldn't be Nix updates that cause these problems. It's nixpkgs that would do it
<hyper_ch> is symantec out of chromium as well?
<null_> Do I need anything besides the extra kernel modules nvidia_x11 to run bumblebee, I have it enabled and I get [ERROR]Cannot access secondary GPU, secondary X is not active.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 08f8ad2 Nikolay Amiantov: treewide: unquote homepage in my packages...
<NixOS_GitHub> [nixpkgs] abbradar pushed 57 new commits to master: https://git.io/vAr3i
<NixOS_GitHub> nixpkgs/master 9813473 Nikolay Amiantov: curaengine: 3.0.3 -> 3.2.1
<NixOS_GitHub> nixpkgs/master 0a02b55 Nikolay Amiantov: libarcus: 3.0.3 -> 3.2.1
NixOS_GitHub has left #nixos [#nixos]
<null_> uh maybe i do nvm for a minute I'm bad at searching things
<disasm> hyper_ch: I see class 1 and 2 G4/G6 authorities under Symantec
<hyper_ch> hmmm
<hyper_ch> wasn't all removed?
<hask_bee_3> elvishjerricco ok. for now, my rule of thumb is: if it fails again (which hopefully will be rare), just delete the ~/.stack/setup-exe-cache dir and try again.
<hask_bee_3> although i do wonder whether, for very large projects, the garbage collector could kick in consistently and the build always fail
gorre has quit [Quit: Leaving]
<clever> hask_bee_3: nix will check for files actually in use (in env vars, running, open files)
<hask_bee_3> good to hear
sigmundv has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lopsided98 closed pull request #35517: python: pytest-mock: fix Python 3 compatibility (master...pytest-mock-python-3) https://git.io/vAwgT
NixOS_GitHub has left #nixos [#nixos]
rardiol1 has quit [Remote host closed the connection]
ryantm has quit [Quit: Lost terminal]
<phry> heyho,
<phry> I've got some weird behaviour when adding my own derivation to firefox's "extraNativeMessagingHosts" argument - is someone here right now who could help me? :)
<mfiano> How can NixOS be MIT?
<phry> (somehow from that point on, firefox seems to add gcc-wrapper to the build output, but only if I'm using node modules from nixpkgs, but not from the nixos-channel o_O)
cmacrae has joined #nixos
rogue_koder has quit [Quit: Konversation terminated!]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #34993: qt5: 5.10.0 -> 5.10.1 (master...qt_5_10_1) https://git.io/vAZKc
NixOS_GitHub has left #nixos [#nixos]
<lejonet> Mic92: The test case you wanted me to write for the ceph service module, should it just setup the cluster and ensure everything goes nice with that or do you want me to add some cluster interaction in it too? My guess is that no cluster interaction is required as that isn't testing the service module persay, but ceph
null_ has quit [Ping timeout: 260 seconds]
null_ has joined #nixos
<null_> so yeah, has anyone here set up bumblebee with nvidia successfully?
cmacrae has quit [Ping timeout: 245 seconds]
<null_> or set up bumblebee for that matter?
<Mic92> lejonet: It could add a file for example. That way we could ensure, it is not just running but in a failed state.
<null_> fuck maybe it's working now
<lejonet> Mic92: whatcha mean "add a file"?
<lejonet> as in add a file to the cluster?
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
<null_> yeah I think it's working with services.xserver.videoDrivers = [ "intel" ]; and hardware.bumblebee.connectDisplay = true; my x-server wasn't correctly restarted while testing
<Mic92> lejonet: I have never deployed a ceph cluster, but should it not be possible to do something like ceph-post-file and see if it works? http://docs.ceph.com/docs/kraken/man/8/ceph-post-file/
Arcaelyx_ has joined #nixos
Acou_Bass has joined #nixos
<Mic92> lejonet: or do you need multiple instances to build a cluster?
<lejonet> Mic92: well, I'm continously checking that the cluster has come up and such thorough the test, ceph-post-file doesn't really give you anything for automated testing atleast
hask_bee_3 has quit [Quit: Textual IRC Client: www.textualapp.com]
<Mic92> lejonet: is it already in the pull request?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35577: cachefilesd: 0.10.9 -> 0.10.10 (master...auto-update/cachefilesd-0.10.9-to-0.10.10) https://git.io/vArGI
NixOS_GitHub has left #nixos [#nixos]
<lejonet> Mic92: nah, you can do it all on one node, but you don't have to, each daemontype could be on a physically separated machines except ceph-mon and ceph-mgr, you must have a ceph-mgr on each node that has 1 or more ceph-mon
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35578: caddy: 0.10.10 -> 0.10.11 (master...auto-update/caddy-0.10.10-to-0.10.11) https://git.io/vArGt
NixOS_GitHub has left #nixos [#nixos]
<lejonet> Mic92: not yet, want to try executing it once before :P
Arcaelyx has quit [Ping timeout: 245 seconds]
ottidmes has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35579: Auto update/cairo 1.14.10 to 1.14.12 (staging...auto-update/cairo-1.14.10-to-1.14.12) https://git.io/vArGY
NixOS_GitHub has left #nixos [#nixos]
<lejonet> Mic92: but if we want to, I could write a test with a client, that creates a block device and everything
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm closed pull request #35579: Auto update/cairo 1.14.10 to 1.14.12 (staging...auto-update/cairo-1.14.10-to-1.14.12) https://git.io/vArGY
NixOS_GitHub has left #nixos [#nixos]
<mfiano> I don't even see a license file on github, but Wikipedia says MIT. What exactly is it?
<sphalerite_> mfiano: the expressions defining how the software is built are MIT-licenced
<mfiano> Where is that mentioned please?
null_ has quit [Ping timeout: 260 seconds]
<sphalerite_> mfiano: COPYING, in the root of nixpkgs
<Mic92> lejonet: something that goes a little bit above the services is not just crashing. Something like that here: https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/tomcat.nix#L28
<Mic92> *are not
<lejonet> Mic92: fair enough, I'll go all the way and create a pool and such then :)
<lejonet> might need to go all the way and create a client that creates a block device and such
<lejonet> might not need*
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vArGE
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 7f1b8d7 Nikolay Amiantov: cntk: fix build without CUDA
<mfiano> Thanks
chisui has joined #nixos
<ghostyy> where do i go to report outdated packages with security problems?
<gchristensen> you can ping people in #nixos-security or open an issue
<gchristensen> or anyone / everyone on that list^
<ghostyy> i see, thank you!
<gchristensen> no, thank you!
<gchristensen> another option, of course, is to open a PR fixing it :)
<phry> okay, as soon as I post my question here I solve it myself.. :) I'll never add $PATH to PATH when creating a script in postInstall again...
<infinisil> phry: what was the problem?
<disasm> It seems like something is killing my tmux sessions on my desktop if it's at a login screen. Remote sessions don't die at all if I'm logged in on the desktop.
<LnL> there's an issue for that
<Mic92> disasm: there is an open issue for that
leothrix has quit [Quit: ZNC 1.6.5 - http://znc.in]
<disasm> haha, so it's not just me :)
<Mic92> LnL: disasm are you both using kde?
<phry> infinisil: I got a lot messages that my output should not rely on gcc-wrapper and stuff - but only on new nixpkgs, which sent me to look at completely unrelated places
FRidh2 has joined #nixos
<phry> infinisil: in the end, it was just leaking the build-time PATH to an output file -.-
<infinisil> Ah I see
<amf> my / device has limited space, and i can't use a symlink for /nix, what are my options?
<disasm> Mic92: i3
<phry> amf what about a mount point for nix?
<disasm> Mic92: this issue I'm guessing? https://github.com/NixOS/nixpkgs/issues/35415
<sphalerite_> amf: bind mount
<Mic92> disasm: yes
Izorkin has joined #nixos
leothrix has joined #nixos
alexteves_ has quit [Ping timeout: 245 seconds]
<sphalerite_> amf: so mkdir -p /nix /somewhere/you/have/space/nix ; mount --bind /somewhere/you/have/space/nix /nix
<sphalerite_> amf: and create an appropriate fstab entry
<aristid> ooh i think i got hit by https://github.com/NixOS/nixpkgs/issues/30940
<aristid> the fix doesn't apply to my setup because i override cryptoModules
<amf> sphalerite_: i think that was it! very cool!! thanks!!
plakband has joined #nixos
vaninwagen has joined #nixos
<aristid> how do i check in nix if a list contains a certain string?
vaninwagen has quit [Client Quit]
vaninwagen has joined #nixos
<sphalerite_> aristid: elem
vaninwagen has quit [Client Quit]
<sphalerite_> builtins.elem that is
<aristid> sphalerite_: thx!
<aristid> let me try that
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vArZd
<NixOS_GitHub> nixpkgs/master 5344a36 Frederik Rietdijk: pinentry: fix hash of patch
NixOS_GitHub has left #nixos [#nixos]
vidbina_ has quit [Ping timeout: 252 seconds]
<LnL> Mic92: no i3, but I'm also not on unstable just reproduced the problem
<disasm> Mic92: yeah, I'm on 17.09 as well here. I can test with unstable if needed.
<hyper_ch> Mic92: I use kde
mkoenig has quit [Remote host closed the connection]
reinzelmann has quit [Quit: Leaving]
<aristid> so when will nix 2.0 become the default? :)
alexteves_ has joined #nixos
<hyper_ch> disasm: welcome to my bug report :)
jensens has joined #nixos
<aristid> hyper_ch: hyper hyper! (sorry couldn't resist)
asuryawanshi has joined #nixos
<hyper_ch> sure you could have
<LnL> aristid: it's planned for 18.03 so in a month :D
aborsu has joined #nixos
<mfiano> Does anyone else experience the issue with chromium that it is NEVER the default browser, and pops open the annoying question every time you start it? I can't figure out how to remove it.
<aristid> hyper_ch: i am weak
<joepie91> mfiano: yeah, defaults seem basically broken
<hyper_ch> mfiano: make it default browser
<clever> mfiano: thats a bug due to how chrome is wrapped with a bash script
<joepie91> not just for chromium
Rusty1_ has joined #nixos
<mfiano> It happened on other OS's too
<mfiano> Is there a workaround?
<clever> mfiano: the bash script is set as the wrapper, but chromium checks for its own binary i think
<clever> mfiano: set it as default, then just tell it to stop checking
<aristid> LnL: i think it is tradition that nixos releases are a bit delayed :)
<mfiano> clever: I do the first part. How do you do the second part?
<LnL> hey!
<LnL> :p
<hyper_ch> aristid: don't underestimate your resolve
<clever> mfiano: when it asks on startup, there is an option to stop checking
<mfiano> clever: No there isn't
<aristid> LnL: but i use master, and normally stuff lands in there _before_ the stable release is cut \o/
<clever> mfiano: its probably in the options then
<aristid> it also means i can test bugs first
<mfiano> Nowhere
<mfiano> There is no option for it. It used to be that you edit JSON in a profile file, but that is no longer the case
alunduil has quit [Remote host closed the connection]
jensens has quit [Ping timeout: 245 seconds]
<aristid> anybody want to quickly review this patch before i push it? https://github.com/aristidb/nixpkgs/commit/74f01e363109f611b5e29db14d66257d1a056dd4
asuryawanshi has quit [Ping timeout: 252 seconds]
smichel17 has quit [Quit: smichel17]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #35553: vim-nix: 2017-04-30 -> 2018-02-25 (master...vim-nix) https://git.io/vArf6
NixOS_GitHub has left #nixos [#nixos]
macslayer has joined #nixos
<macslayer> Good afternoon, everyone!
knupfer has quit [Remote host closed the connection]
<dtz> 'afternoon! :)
<sphalerite_> evening
<hyper_ch> someone isn't using timeservers
katona has joined #nixos
<LnL> :)
<joepie91> just had a bizarre GPU error problem with firefox-bin, switching to firefox somehow fixed it o_O
macslayer has quit [Quit: WeeChat 1.9.1]
macslayer has joined #nixos
sondr3 has joined #nixos
roconnor_ has quit [Ping timeout: 260 seconds]
<mfiano> What would be a good solution to have my vim configuration be available with both `vim` and `sudo vim` and being able to keep the two in sync in my dotfiles repo?
aardito has joined #nixos
<clever> mfiano: nixos lets you do that by just not using ~/.vimrc
macslayer has quit [Ping timeout: 245 seconds]
<clever> mfiano: this embeds the vim config into the vim binary
Itkovian has joined #nixos
<mfiano> clever: To be specific nvim
<clever> mfiano: you can just drop that file into /etc/nixos/ and then add ./vim.nix to the imports list
<mfiano> and I want to be able to track it in my existing vim dotfiles repository
<clever> mfiano: oh, and there is also sudoedit
<aardito> emacs setup question - I'm using exwm with extraPackages and I need to set a variable before some packages are loaded
fragamus has joined #nixos
<aardito> where can I do that? even at the top of ~/.emacs the packages have already been loaded
<clever> mfiano: you could also symlink the /root/.vimrc to the other one
<mfiano> Hmm
noam has joined #nixos
<mfiano> The problem is I have a several thousand line neovim configuration spanning multiple files, and I want it to be owned by my user in its home directory to be staged in my git dotfiles
<clever> mfiano: are they mostly in a single directory?
<mfiano> No
<clever> mfiano: maybe just make a simple .virmc that does #include /home/clever/.vimrc, and configure that 2nd one to be relative to itself, to find its neighbors?
b has joined #nixos
<mfiano> neovim convention is to use XDG_DATA_HOME for plugin configuration, scripts, and such, and XDG_CONFIG_HOME for the config file.
<mfiano> so ~/.config/nvim and ~/.data/nvim on my box
<clever> mfiano: ah, you could just symlink those 2 nvim directories then, simple
<timokau> mfiano: If possible you should really use sudoedit instead though
<mfiano> I never heard of it
<mfiano> I will look into it to see if it solves my problem
<clever> mfiano: when you run "sudoedit /root/foo", sudo will copy the file to /tmp, then run $EDITOR without root
<timokau> mfiano: It basically just copies the file to /tmp and chowns it to your user, then opens an editor with user permissions and finally copies the result back after editing
<clever> mfiano: and when the editor QUITS, sudo will copy the file back
<clever> the quit requirement is a bit anoying, but the editor runs as the correct user
<mfiano> That would break a lot of my nvim functionality I think. I have keybindings to jump to specific files/list specific directories
<timokau> mfiano: The PWD is preserved if that helps. But yes, it can be inconvenient
<clever> mfiano: ive heard that emacs also has special plugins, where it will internally call sudo on its own, to gain write access to things, maybe vim has such things?
<timokau> But otherwise a bug in nvim, any of its plubins or a malicious plugin is a root exploit
<timokau> There's a hack that writes with sudo
<disasm> how have I not known about sudoedit? :)
M1k3y has joined #nixos
<mfiano> You would use an ex-command to call an arbitrary vim command with sudo
abert has joined #nixos
<disasm> clever: that is genius :) never doing sudo nvim again, lol -- do you alias it to something shorter?
<clever> disasm: i use the vim.nix i linked above, so vim just always has the right config
<clever> disasm: so i just sudo -i and run vim directly as root
<clever> ~/.vimrc just doesnt exist
<catern> aardito: recent emacs actually has a separate init file that is run before packages are loaded
<alexteves> LnL: turns out runghc doesn't know the -framework-path flag, so it was interpreting it as -f <path/to/ghc>
chreekat has quit [Quit: quitting]
<catern> aardito: so if you compile that recent Emacs, you can use that. I think that's probably the best way?
<clever> alexteves: what is the difference between ghc and runghc?
<M1k3y> Hello together, I need some help (new to nix development). I successfully build a package for the prometheus grok exporter. But it requires some data from a git submodule at runtime. How can I provide such dependencies at runtime?
abert has quit [Client Quit]
<disasm> clever: yeah, same here :) but I like the concept of `sudoedit` better from a security standpoint. I need to research it more, but it seems like that would be a good way to give sudo privs to a user that needs to edit files and not allow them to get a shell or edit a different file than the one they requested as a param to sudoedit to enforce proper logging of root actions!
<clever> M1k3y: set fetchSubmodules=true; inside the fetchFromGitHub
<catern> aardito: look for early-init-file
<clever> disasm: yeah, that can be fun
<alexteves> I don't know specifics but it supposedly runs a .hs file directly, instead of compiling
<mfiano> sudoedit is pretty nice though. I'm probably going to have to alias that though :)
<clever> disasm: and in terms of vim plugins gaining root, root controls them fully, via vim.nix
<mfiano> I like short commands like `vim`, which is an alias for `nvim` :)
<clever> mfiano: i aliased vi to vim, even shorter!
<disasm> I'm of the school of thought of sudo -i is only permissible for changes that could potentially render a system seriously broken and only as a backup option to revert said change.
<mfiano> ha yeah
coot has joined #nixos
<mfiano> clever: I just don't like calling vim, vi, especially when nocompat is set :P
<clever> mfiano: i never bothered learning the difference :P
<clever> mfiano: i just started with vi over a decade ago, and now its just hard-wired into my brain
<mfiano> hehe, I'm only ahead by a decade.
<M1k3y> clever: The submodules are getting fetched at build time, no problem there. But I need all the files from this submodule at runtime since they contain matching patterns for log file analysis.
<disasm> clever: question for ya... I alias nvim -> vi in my zsh config, but then if I sudo vi I don't have it in root config (because I leave root with bash shell). Is there a good way in nixos to specify a global alias across all shell types for some commands that you could set the alias for vi? Otherwise I get vi: command not found if I run `sudo vi` (but sudoedit solves this as well)
FRidh2 has quit [Quit: Konversation terminated!]
<clever> M1k3y: ah, then the installPhase has to copy those files somewhere under $out, and it has to be patched to know where to look
<clever> disasm: aliases are handled by bash, and `sudo vi` doesnt check aliases
<clever> disasm: so you will want to do something like installing writeScriptBin "vi" ''
<clever> #!/bin/sh
<clever> exec vim "$@"
<clever> ''
<lejonet> Mic92: Hmm, is there some way to ensure that the test VM has a certain size on its disk?
<clever> that generates a vi script that will land in $PATH, so sudo can find it
<M1k3y> clever: patching won't be a problem since the path is part of the configuration. Any tips where to look for details about the install phase?
<clever> M1k3y: id add postInstall = ''
<clever> ls -ltrh
<clever> '';
coot has quit [Ping timeout: 245 seconds]
<clever> as a start
<clever> M1k3y: then use that to find the paths you want, and add a cp command to put them somewhere under $out
<disasm> oh, yeah, creating a script that calls nvim, that works :)
<mfiano> I would recommend against #!/bin/sh and using `nix-shell -i` if it's using non-POSIX bash stuff
<aristid> i think 18.03 will be the most exciting release in some time
<aristid> mostly because of nix 2.0
<pie__> is this what specifies the actual idris version to get? https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix#L6263
<aristid> but also... gcc 7, finally a kernel >4.9, probably more stuff!
<M1k3y> clever LnL: thank you guys. I guess I'll make it from here on. This community is just awesome.
<pie__> whats the easiest way to swap out a haskellpackage for a git repo?
jmeredith has joined #nixos
<clever> pie__: that was generated via https://github.com/NixOS/cabal2nix/tree/master/hackage2nix
<clever> pie__: but stack2nix can generate similar things with a stack.yaml file
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master a4e388c Sander van der Burg: dysnomia: 0.7.1 -> 0.8
<NixOS_GitHub> [nixpkgs] svanderburg pushed 1 new commit to master: https://git.io/vArCj
NixOS_GitHub has left #nixos [#nixos]
<pie__> clever, "all i want to do" is for it to use a git instead of hackage for the source
<mfiano> I need help debugging a nix-shell script I wrote that works fine from a bash prompt, but not when called with a keybind in my window manager
<mfiano> Not sure how to go about debugging that further
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] svanderburg pushed 1 new commit to master: https://git.io/vArWI
<NixOS_GitHub> nixpkgs/master db5c7f3 Sander van der Burg: disnix: 0.7.2 -> 0.8
<pie__> clever, hm...im guessing i need to find the source of that mkderivation and see how it sets src?
<mfiano> I get the rofi dmenu opening, but making a selection does not copy text to the clipboard unless called from bash directly
<mfiano> works fine in another distro without nix-shell though
<Mic92> lejonet: tests/docker-tools.nix
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] svanderburg pushed 1 new commit to master: https://git.io/vArWL
<NixOS_GitHub> nixpkgs/master ceeed46 Sander van der Burg: DisnixWebService: 0.7 -> 0.8
NixOS_GitHub has left #nixos [#nixos]
<Mic92> virtualisation.diskSize
<clever> pie__: yeah
<pie__> christ xD
<pie__> this seems a bit unnecessarily hard
<clever> mfiano: bash sources an interactive init file when opening shells, but if you run things directly from the WM, that doesnt get sourced
<sondr3> hello, I'm running NixOS on my MBP and it's working really well. I have a Nvidia card but I want set some settings in the generated xorg.conf file for it, is there a way to do it in configuration.nix or should I create a separate conf-file for it?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] svanderburg pushed 1 new commit to master: https://git.io/vArWO
<NixOS_GitHub> nixpkgs/master 7817d87 Sander van der Burg: disnixos: 0.6.1 -> 0.7
NixOS_GitHub has left #nixos [#nixos]
<mfiano> clever: How does it work outside of nix-shell then?
<clever> mfiano: when you open a terminal, the shell reads the interactive init stuff, and then the right env vars are setup
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lblasc opened pull request #35580: buildLuaPackage: propagate modules paths with a setupHook (master...lua-export-path) https://git.io/vArWn
NixOS_GitHub has left #nixos [#nixos]
<lejonet> Mic92: sweet, thanks
<mfiano> clever: I understand, but even after a reboot the window manager binding doesn't run the last line correctly
<mfiano> It's running everything up to that fine anyway
<clever> mfiano: if you run strings /proc/PID/environ you can peek at the env vars of any process
<clever> mfiano: check what the demnu process has for an env, its probably missing something key
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] svanderburg pushed 4 new commits to release-17.09: https://git.io/vArWR
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/release-17.09 430e9a6 Sander van der Burg: disnix: 0.7.2 -> 0.8...
<NixOS_GitHub> nixpkgs/release-17.09 0827a46 Sander van der Burg: dysnomia: 0.7.1 -> 0.8...
<NixOS_GitHub> nixpkgs/release-17.09 45ea062 Sander van der Burg: DisnixWebService: 0.7 -> 0.8...
<clever> mfiano: and compare it to what `env` says in a shell
<mfiano> I can't really get the pid
<clever> mfiano: you can also query the parent that was launching dmenu
<clever> mfiano: since dmenu inherits the parent env
<mfiano> it's not dmenu
<mfiano> it's rofi running with the -dmenu flag
<clever> mfiano: you could also try running `env > /tmp/rofi` via rofi, and then `env > /tmp/bash` from a normal shell, then diff the 2 files
<mfiano> and that indeed works
<mfiano> the problem is the invocation of the pass command which attempts to store text using xclip
<phry> mfiano: have you tried adding --pure and then running it from the shell? maybe you are missing a dependency?
<mfiano> it's not storing the text
<mfiano> phry: it works from the shell
14WAABGE8 has joined #nixos
<14WAABGE8> [nixpkgs] Mic92 closed pull request #35580: buildLuaPackage: propagate modules paths with a setupHook (master...lua-export-path) https://git.io/vArWn
14WAABGE8 has left #nixos [#nixos]
94KAAA39D has joined #nixos
<94KAAA39D> nixpkgs/master 7b76073 Luka Blaskovic: lua packages: propagate libs with a setupHook...
<94KAAA39D> nixpkgs/master 03aaa5a Jörg Thalheim: Merge pull request #35580 from tvbeat/lua-export-path...
<94KAAA39D> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vArWz
94KAAA39D has left #nixos [#nixos]
<phry> yes, because then it inherits the whole environment
<phry> if you add --pure it won't and you will see errors if you missed something
<pie__> clever, well i couldnt really find it but maybe this means i can just override src? https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-modules/generic-builder.nix#L17
<clever> pie__: oh wait, do you want to replace all of haskellPackages, or just one package?
<mfiano> I see. --pure helped get me further
ryanartecona has joined #nixos
<mfiano> Error: <my selection> is not in the password store.
<mfiano> Hmm
<phry> do a "nix-shell --pure -p rofi pass xclip"
<phry> and in that shell run `env`
<phry> I guess your PASSWORD_STORE_DIR is not what you expect it to be
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vArWX
<NixOS_GitHub> nixpkgs/master 20171a7 Jörg Thalheim: Merge pull request #35578 from ryantm/auto-update/caddy-0.10.10-to-0.10.11...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 7dcd9f1 Ryan Mulligan: caddy: 0.10.10 -> 0.10.11...
<mfiano> Ah yeah, it's missing the XDG vars
<pie__> clever, just one package
sondr3 has quit [Ping timeout: 260 seconds]
<clever> pie__: ah, thats much simpler
<pie__> clever, i dont want to replace the package either, just the source code repo location
<pie__> so that i can try some patches
<pie__> *so that I can write some patches
<clever> pie__: nix-build -E 'with <nixpkgs> {}; haskell.lib.overrideCabal haskellPackages.shake (drv: { src = ./.; })'
<mfiano> phry: So I need to move my XDG vars from shellInit to interactiveShellInit I think
<mfiano> environment.shellInit rather
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 93268fc Ryan Mulligan: bindfs: 1.12.6 -> 1.13.9...
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vArW9
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 7949bc7 Jörg Thalheim: Merge pull request #35563 from ryantm/auto-update/bindfs-1.12.6-to-1.13.9...
<phry> give it a try - I'd just hardcode them ^^
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lblasc opened pull request #35581: luaposix: 33.4.0 -> 34.0.4, add dependencies (master...luaposix) https://git.io/vArWb
NixOS_GitHub has left #nixos [#nixos]
<phry> btw.: I just finished writing an overlay to use the passb firefox addon in nix - if anyone is interested in something like that. it's my first attempt at writing a derivation, so I'd be happy about feedback as well.
Guanin_ is now known as Guanin
<sphalerite_> phry: you mention nix-env -i firefox there
<sphalerite_> !-A
<{^_^}> You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ/nix-env_-iA for details.
<phry> good point. actually, I always use that. no idea why i missed it in the docs xD
<mfiano> clever: Hmm, I can't figure out your env var gist
<mfiano> I set some in environment.shellInit but I want to make them available inside nix-shell
cmacrae has joined #nixos
<clever> mfiano: nix-shell --pure disables all of those things
<mfiano> I'm not using --pure in my script though
<pie__> clever, this also seems to work: nix-shell-unstable -v -p 'let y = import <unstable> {}; in y.haskellPackages.idris.overrideAttrs (as: {src = y.fetchgit {url="https://github.com/idris-lang/Idris-dev.git";rev="cc7ef9adaf3e7b8dcec420e368b48a120fe07434";sha256="07nzkpr89apz517w9m1fcmp0azbbjhlv9nmjx9w33ly57mi93zfa";};})'
<pie__> clever, of course im going to put that in a file lol :P
<sphalerite_> phry: you don't need to unindent the <<EOF bit all the way, nix strips indentation from '' strings
<clever> pie__: yep, but now you cant modify the src as easily
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rycee pushed 1 new commit to master: https://git.io/vArlT
<NixOS_GitHub> nixpkgs/master 48479b6 Robert Helgesson: josm: 13265 -> 13367
NixOS_GitHub has left #nixos [#nixos]
<sphalerite_> phry: but only the same amount from each line
<pie__> clever, i cant?
<phry> sphalerite_: cool, thx :)
<pie__> oh i see you did set it to the local dir
<clever> pie__: you would have to edit the rev and hash after every edit
<Guanin> clever, we talked this morning about PAM, correct?
<clever> Guanin: yeah
<clever> pie__: but if you just unpack it locally, you can use src = ./.; and then freely edit anything
<pie__> right but is that due to the way i did the override or just because i chose fetchgit?
<mfiano> actually the env vars are getting set in nix-shell, so I'm not sure how to get this crucial script to work :(
<clever> pie__: the fetchgit
<sphalerite_> looks good though :)
<pie__> i mean how does this compare to overridecabal
<pie__> oh ok re: fetchgit
<clever> pie__: ah, overrideAttrs vs overrideCabal, i think the difference is which level it overrides at
<sphalerite_> phry: also great github profile picture
<clever> pie__: overrideCabal changes the params passed to generic-builder.nix, so it can change haskell level things
<phry> sphalerite_: ^^ until someday someone sues me for it ;)
* pie__ scratches head
<pie__> well ok
<clever> pie__: generic-builder.nix then calls stdenv.mkDerivation, where overrideAttrs can inject its own changes
<clever> src is just passed down, so it works on either
<pie__> aha..
<Guanin> I got it working with patching PAM, but I'm not really happy with recompiling "everything" right now (oh, and sorry for assuming your time zone). As my Patch only affects one helper binary, is there a different way to make this modification? My patch is this: https://clbin.com/7FFOy
<pie__> ok i roughly get it i thik
<lejonet> Mic92: I presume that the tests create a nixos-container, is there anyway to afterwards go into it and poke around?
<pie__> clever, thanks
<clever> Guanin: its nearly 6pm, and i have slept since we last spoke
<mfiano> nix-shell is strange... bash: shopt: hostcomplete: invalid shell option name
<lejonet> Mic92: so that I can troubleshoot why something doesn't work?
<clever> mfiano: nix-shell uses a more light-weight build of bash that lacks a lot of options
cmacrae has quit [Ping timeout: 240 seconds]
hiratara has quit [Ping timeout: 245 seconds]
<pie__> clever, your command throws this: error: attempt to call something which is not a function but a path, at (string):1:99
<mfiano> clever: maybe that's the issue. even if i do -p bash
<Mic92> lejonet: it creates a VM. You can create your own without a test like that: https://github.com/Mic92/dotfiles/blob/master/nixos/test-vm.nix
<clever> mfiano: 'bash' is that simpler bash
<Mic92> lejonet: there was also a way to get into test, but I forgot how. lassulus knows
<clever> mfiano: you want bashInteractive
<clever> pie__: oops, i missed an import before <nixpkgs>
<pie__> oh oops xD
<mfiano> well that error is gone, but still saying the password i choose is not in the password store. and the env var for the password store is /home/mfiano/.data/pass which is correct
<lejonet> Mic92: so I could take the node definition I have in the test and run nixos-rebuild -I nixos-config=./testvm.nix build-vm and get an identically specced VM?
<clever> Mic92: i think the vm leaves a special script in its build dir, and if you -K the build, you can nix-shell into it or something, and re-launch the vm
<clever> Mic92: and it detects such re-launching, and drops into a shell, rather then trying to re-test itself
hiratara has joined #nixos
<Mic92> lejonet: reasonable identical I would say
<clever> lejonet: mostly, nixos adds a root shell on a special serial port, to backdoor the vm
<phry> mfiano: just to be sure: add the PASSWORD_STORE_DIR variable to your script
<phry> I mean, really hardcoded
<lejonet> clever: how would I access that one?
<clever> lejonet: the build-vm variant lacks that backdoor
aristid has quit [Ping timeout: 256 seconds]
<mfiano> phry: that works huh
<mfiano> so it's not reading the env var that `env` shows is there in nix-shell
<pie__> clever, using overrideCabal resulted in a dependdenvy error at build time...overrideAttrs seems to work
macslayer has joined #nixos
<clever> pie__: there is also the <nixpkgs> vs <unstable> difference
<pie__> clever, ...oops. i feel so clumsy
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35582: btrfs-progs: 4.14.1 -> 4.15.1 (staging...auto-update/staging/auto-update/btrfs-progs-4.14.1-to-4.15.1) https://git.io/vArlM
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm closed pull request #35575: btrfs-progs: 4.14.1 -> 4.15.1 (master...auto-update/btrfs-progs-4.14.1-to-4.15.1) https://git.io/vArOA
NixOS_GitHub has left #nixos [#nixos]
<ottidmes> When are paths copied to the nix store? I just ran into a bug in my config because I references to my overlays by path instead of by string, causing nix-env to error on '/nix/store/<overlayed_package>': No such file or directory.
<pie__> clever, youre rightbecause they just switched the parser and that was the dep issue
<clever> ottidmes: if you "/quote/a/path" it wont be copied, its just a string that gets passed to the program
<phry> mfiano: you could try setting your PASSWORD_STORE_DIR in environment.variables
<clever> ottidmes: but if you /dont/quote/it at the nix level, it gets copied into the store, and replaced with a storepath
alex`` has quit [Ping timeout: 240 seconds]
<clever> ottidmes: and inside a string, you need to "do ${./this}" to make it at the nix level
<phry> mfiano: but you might need to log out of your desktop manager session for that to work
aborsu has quit [Quit: aborsu]
<ottidmes> clever: But how about imports, those paths are not copied to the store, even though they are not quoted to strings
<macslayer> Hmmm, this is an odd issue. I'm on 17.09 NixOS, and for some reason, `cargo` and `rustup` aren't working. I try to do something simple like `cargo --version`, and it says "error: no default toolchain configured." If I try to do something like `rustup default stable`, it says "error: missing key: 'url'"
<clever> ottidmes: some nix functions like import can just read it without copying it into the store
<clever> ottidmes: and next time you eval, it will read it again
<ottidmes> clever: So I by default I should assume all my paths are copied over to the nix store, the only exceptions being special builtins like imports
<clever> ottidmes: yeah
<clever> ottidmes: the only special things i can think of right now are toString, import, and readFile
<lejonet> clever, Mic92: How would I add 2 disks to it? it doesn't accept the emptyDiskImages that it accepted for the makeTest one
hamishmack has quit [Quit: hamishmack]
hask_bee_3 has joined #nixos
<clever> lejonet: it runs a map function over everything you give in the emptyDiskImages option
<clever> lejonet: and on line 101, it passes all params to that script, directly to qemu
<lejonet> clever: "error: The option `virtualisation.emptyDiskImages' defined in `/home/nixops/ceph-vm.nix' does not exist."
<lejonet> ah, extraDisks
<clever> lejonet: extraDisks is a bash variable, not a nix one
jb55 has joined #nixos
<ottidmes> clever: Thanks for clearing that up for me! BTW the reason why my private keys in initrd config was no longer working was because I switched to grub, which does not support boot.initrd.secrets, while systemd-boot did, which I used when testing that particular config at the time.
<clever> lejonet: also, try using --fast, its likely a small bug that is misleading you
<clever> ottidmes: ah, that sounds like something that should be fixed, grub is far better then systemd-boot
<hask_bee_3> Is it possible in Nix to run an instance of postgresql (pointing at a specific data dir) in the background? My goal is to run postgresql like that through nix -- and the command specified in a systemd file (for reboot on crash or system start).
<hask_bee_3> Is Nix meant for this particular use case?
<hask_bee_3> If this is possible, this would be highly useful for maintaining a bunch of postgresql instances on a single Linux machine.
<lejonet> clever: would seem so, it made everything like it should
<clever> hask_bee_3: gchristensen actually did something just like that about 3 days ago
<lejonet> now to get it to use curses interface instead of SDL
<clever> gchristensen: do you still have that gist link handy?
<gchristensen> you bet!
ryanartecona has quit [Quit: ryanartecona]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35583: cbc: 2.9.5 -> 2.9.9 (master...auto-update/cbc-2.9.5-to-2.9.9) https://git.io/vAr8l
NixOS_GitHub has left #nixos [#nixos]
<ottidmes> clever: grub already supports it with its extraInitrd option, so if it supports even another extra initrd, that same trick could probably be applied to allow it to have secrets as well, as was mentioned I believe on a issue about it
<clever> lejonet: pass -curses to the bash script nix generated, or set virtualisation.graphics = false;
<clever> ottidmes: nice
<ottidmes> clever: Why is grub objectively better than systemd-boot?
aristid has joined #nixos
Drakonis has joined #nixos
<clever> ottidmes: systemd-boot dosnt seem to have very many options, and ive always been anti-systemd :P
<clever> ottidmes: and i know grub inside and out
<hask_bee_3> hmm, that is for NixOS. I was talking about just running postgresql through Nix, on any Linux distro.
<gchristensen> hask_bee_3: it isn't for nixos
<clever> hask_bee_3: it reuses the nixos startup scripts, in a portable way, so it works on any os
<gchristensen> hask_bee_3: it uses NixOS's tooling to make the database runner
<gchristensen> what clever said :)
<lejonet> clever: thanks :) going to do more tomorrow, atleast I've got a semi-functional testcase :P
<mfiano> phry: The problem is not that variable, but XDG_DATA_HOME. It works if i hard-code the full path in the script, but not if I use that variable in the script, despite seeing XDG_DATA_HOME in `env` inside nix-shell
<mfiano> phry: ideas?
M1k3y has quit [Quit: Page closed]
<hask_bee_3> gchristensen i do not understand how this works. Will I need to read both Nix and NixOS manuals to get this?
<clever> hask_bee_3: the .runner script isnt documented in any of the manuals
<gchristensen> hask_bee_3: it is sort of expert-level stuff... it took creativity and ingenuitiy to make it work. maybe a reason to not use it :P
<ottidmes> clever: lol, well, you could say that systemd-boot does one thing and does it well, but I will try and not start yet another discussion about systemd. I personally also prefer grub, also for me the one I have the most experience with
<hask_bee_3> gchristensen is it possible to run postgres in a more "standard" way? i was thinking something like nix-shell --run or something
<hask_bee_3> something basic
<gchristensen> I don't know how to use postgresql, so I really can't say
<clever> ottidmes: also, in nixos, there is an option to configure how many generations go into the grub config, so your /boot doesnt get bloated
<clever> ottidmes: systemd-boot just lacks that option
<ottidmes> clever: But that is not inherent to either, you could easily implement that for systemd-boot as well, right?
<clever> ottidmes: yeah, but there are other things its also missing
<clever> ottidmes: and it would just be less work to fix 1 thing in grub, then 5 things in systemd-boot
<LnL> hask_bee_3: you can use nix-shell -p postgresql --run 'postgres -D /tmp/foo' to run it in the foreground
<mfiano> Yeah, `echo $XDG_DATA_HOME` in a nix-shell interpreted script emits nothing at all. but `env` inside nix-shell shows it set. Anyone know what nix-shell is doing?
<clever> mfiano: what about running env in that same script that did the echo?
<hask_bee_3> LnL: I guess that would do the trick. And putting that into systemd would automagically turn it into a background task
<mfiano> clever: Odd, XDG is not set there, only when directly called from the nix-shell prompt
<ottidmes> clever: Agreed, this is one of those places that competition is mostly just fragmention of effort
<clever> mfiano: so its getting set at a later point, probably when the shell goes interactive and chooses to source more config files
<clever> ottidmes: also, grub works with both legacy and efi, while systemd-boot is efi only
<mfiano> clever: I have XDG vars set in environment.shellInit. also tried environment.interactiveShellInit. Any other places I should try?
<clever> mfiano: try without --pure?
<mfiano> That IS without pure
<clever> mfiano: what is launching nix-shell?
<ottidmes> mfiano: I have them at extraInit
<mfiano> clever: me typing nix-shell in bash after completely logging out
<LnL> hask_bee_3: in that case you'd probably want to generate the unit file to avoid going through nix-shell every time
<clever> mfiano: and if you run env from the same place?
<mfiano> I see the vars set
<clever> mfiano: weird
<mfiano> The XDG vars are set in bash, in nix-shell invoked from bash, but not in a script that calls env
alexteves has quit [Quit: Textual IRC Client: www.textualapp.com]
<hask_bee_3> LnL why avoid it?
<clever> hask_bee_3: the version of postgress may change without warning, and its just slower
<clever> hask_bee_3: if you generate a .service file with nix, then the version will be locked in until you re-generate it, and the files will remain cached
<disasm> pre-nixos I really liked gummiboot (now systemd-boot) because it took all the hassle out of grub, but nixos takes the hassle out of grub already, so I'm indifferent now. I have half my systems running systemd-boot and others running grub2.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] aij opened pull request #35584: opensm: init at 3.3.20 (master...opensm) https://git.io/vAr4n
NixOS_GitHub has left #nixos [#nixos]
ryanartecona has joined #nixos
hask_bee_3 has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35585: cfdg: 3.0.2 -> 3.0.9 (master...auto-update/cfdg-3.0.2-to-3.0.9) https://git.io/vAr4V
NixOS_GitHub has left #nixos [#nixos]
ryanartecona has quit [Client Quit]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #35586: certstrap: 1.0.1 -> 1.1.1 (master...auto-update/certstrap-1.0.1-to-1.1.1) https://git.io/vAr4r
NixOS_GitHub has left #nixos [#nixos]
tertle||eltret has joined #nixos
hamishmack has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vitiral opened pull request #35587: add common gcc rust dependencies (master...rust-depends) https://git.io/vAr4M
NixOS_GitHub has left #nixos [#nixos]
<disasm> gchristensen: ok, that postgresql systemd hack is pretty genius... If I was going to be working at my current place more than 3 days, I'd consider rewriting my nix puppet module to do that instead of hardcode hash/version in hiera for services I want to run!
<gchristensen> :D
<aristid> disasm: 3 days sounds like a pretty short tenure
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] xeji opened pull request #35588: cacert: add output "unbundled" for individual certificates (master...cacert-unbundled) https://git.io/vAr45
NixOS_GitHub has left #nixos [#nixos]
<disasm> aristid: yeah, lets just say I'm excited to play with nix full time :) And haskell is pretty fun too!
<aristid> disasm: \o/
asuryawanshi has joined #nixos
<Acou_Bass> eyy folks, im getting a weird error if i run nix-env -u - says error: cannot auto-call a function that has an argument without a default value (‘config’)
<Acou_Bass> i dont *think* ive changed anything since that error started appearing
simukis has quit [Ping timeout: 252 seconds]
<disasm> Acou_Bass: did you install anything from a custom nix file using nix-env at any time?
<Acou_Bass> not recently (though i do have a couple of things installed as such theyve been there a while)
<Acou_Bass> i also have the nixpkgs-mozilla firefox overlay... could that be doing it?:P
asuryawanshi has quit [Ping timeout: 252 seconds]
alexteves has joined #nixos
alexteves_ has quit [Ping timeout: 245 seconds]
m3lst4d has quit [Quit: Leaving]
chocopuff298 has quit [Quit: WeeChat 2.0.1]
<clever> Acou_Bass: what is in your config.nix?
m3lst4d has joined #nixos
m3lst4d_ has joined #nixos
m3lst4d_ has quit [Client Quit]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] dtzWill opened pull request #1906: nix search: tests and fix #1893 and part of #1892 (master...fix/nix-search) https://git.io/vArBZ
NixOS_GitHub has left #nixos [#nixos]
<Acou_Bass> my user one? as in ~/.config/nixpkgs/config.nix?
alexteves has quit [Ping timeout: 248 seconds]
<disasm> Acou_Bass: yeah
macslayer has quit [Ping timeout: 245 seconds]
<Acou_Bass> just allowUnfree = true; and a packageOverrides for mumble that gives it pulse, JACK and speex support
<Acou_Bass> i tried commenting the whole file out and that didnt seem to sort it either
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vArBu
<NixOS_GitHub> nixpkgs/master 1865ce4 Vasyl Solovei: tdesktop: add native notifications support...
NixOS_GitHub has left #nixos [#nixos]
<mfiano> clever: I tried setting XDG to a bunch of options under environment.* at the same time, rebuilt, rebooted, and then wrote the results of `env` called from inside the script to separate files when called from bash (vars-bash), and my window manager (vars-wm). The result of vars-wm is missing needed things like XDG. https://gist.github.com/anonymous/73a30c540a7190e429731249af0f4900
<clever> mfiano: then the window manager isnt obeying any of those env settings, you may want https://nixos.org/nixos/options.html#xserver.displaymanager.sessionc
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MP2E has joined #nixos
<mfiano> Ah, hmm. This is i3, which seems to be what you were using too according to your gist :)
<disasm> Acou_Bass: does `nix-env -q` work?
m3lst4d has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] teh opened pull request #35589: Pyarrow (master...pyarrow) https://git.io/vArBM
NixOS_GitHub has left #nixos [#nixos]
markus1199 has quit [Ping timeout: 260 seconds]
duckwho1 has joined #nixos
<Acou_Bass> disasm: yeah spits out a package list as expected
<hyper_ch> LnL: you're using the wrong commit regarding the tmux issue
<hyper_ch> it's already not working anymore in df5b0ce589f
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 3bae302 Herwig Hochleitner: chromium: 64.0.3282.167 -> 64.0.3282.186
<NixOS_GitHub> nixpkgs/master e3cb6e7 Herwig Hochleitner: chromium: build mojo_platform_bindings before chrome...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] bendlas pushed 2 new commits to master: https://git.io/vArRf
<disasm> Acou_Bass: only thing I can think of to track it down would be remove 1 at a time, run `nix-env -u` until you get down to the one having issues, then add back everything else and make sure it's isolated to that one, then look at the code for that package. One of the reasons I don't use `nix-env` for package management :)
<Acou_Bass> xD fair enough I'll have a go
<LnL> hyper_ch: oh, maybe I mistyped a git bisect bad
<LnL> thought I did test the surrounding commits tho
<Acou_Bass> i have a couple of self written ones that i haven't upstreamed to nixpkgs, mostly because they're poorly written and would require work i can't be bothered doing to get them up to scratch so it's probably one of those
<hyper_ch> that's at least 300 commits earlier
<LnL> it's a merge so that's possible
smichel17 has joined #nixos
duckwho1 has quit [Quit: WeeChat 2.0.1]
<hyper_ch> LnL: I'm trying to narrow it all down
<hyper_ch> too like 14 to compile this one df5b0ce589f
<LnL> cool, post what you find on the issue
<hyper_ch> at least now it's quick
<LnL> me messing up somewhere in the bisect would be a pretty good explanation for the seemingly unrelated diff
duckwho has joined #nixos
mkoenig has joined #nixos
<bhipple[m]> Anyone know roughly how much performance overhead there is when running a single-use /nix/store in proot?
<bhipple[m]> For execution of the binaries in the store, that is
elninja44 has joined #nixos
jb55 has quit [Ping timeout: 252 seconds]
duckwho has quit [Client Quit]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] TomSmeets opened pull request #35590: android-studio: Depend on ncurses5 (master...android-studio-ndk-fix) https://git.io/vArRu
NixOS_GitHub has left #nixos [#nixos]
<clever> bhipple[m]: i think proot has more overhead then nix-user-chroot
<hyper_ch> LnL: I found the offending commit
<hyper_ch> sorry, maybe not
<mfiano> clever: You were right. nvidia driver IS working with EFI. Yay!
<LnL> don't really see how that could cause problems, except that it's a stdenv rebuild
electrocat has joined #nixos
<hyper_ch> LnL: it was still a small skip... there's another 2 commits in between that I need to test
<hyper_ch> LnL: no, it's that commit
kitemikaze has quit [Ping timeout: 245 seconds]
nh2 has quit [Ping timeout: 245 seconds]
<clever> mfiano: i think the vesa driver is trying to use legacy bios API's to change the resolution, and its using dos-era tech to do it all, lol
<clever> mfiano: but the nvidia driver knows how to actually control the card, and do things right
<mfiano> I'm happy now. Nix is the first distro that was able to get grub and gpu to play nice with my crappy mobo
<mfiano> Now if only I could figure out this damn env var issue with my WM that is wasting all day
lambdamu has joined #nixos
lambdamu has quit [Remote host closed the connection]
<clever> mfiano: https://nixos.org/nixos/options.html#xserver.displaymanager.sessionc
<clever> mfiano: with this, you can set env vars before the WM runs
<clever> mfiano: those should fix it
lambdamu has joined #nixos
<mfiano> Alright, though I don't like duplicating shell config in different places :/
<mfiano> Because a lot of missing env vars are missing in the WM exec'd stuff
<mfiano> It's not just 1 or 2 :(
<clever> mfiano: that will also persist to any shell the WM launches, so you likely wont need the other config
<mfiano> and what about in a console or over ssh?
<clever> mfiano: yeah, those would still need their, oh, hmmm
<clever> . /nix/store/x13swbpz573bgk0b5lfiddhk3w6ipns7-set-environment
<clever> mfiano: several of them land in this file
<clever> mfiano: methods a and c from my original gist
<clever> mfiano: so if we just source that inside the display manager one
<mfiano> can you link your gist again?
<mfiano> So you're saying to source that in services.xserver.displayManager.sessionCommands ?
<clever> services.xserver.displayManager.sessionCommands = "source ${config.system.build.setEnvironment}";
<clever> yeah, like this
<clever> then everything done with methods A and C will be included
<mfiano> I'll try
a_f_k_ has joined #nixos
jackdk has joined #nixos
<hyper_ch> LnL: I found the culprit
<mfiano> clever: didn't help
<a_f_k_> hi, is the nixpkgs installer broken on macos? seems like it does not create ~/.nix-profile and a number of required directories
<clever> mfiano: even after restarting display-mamager?
<mfiano> clever: right
<clever> mfiano: one sec
<clever> mfiano: nix-store -qR /run/current-system | grep xession
<mfiano> clever: no results
<clever> mfiano: oops, didnt spell xsession correctly
<mfiano> clever: let's start over. I'm dumb and forgot to issue nixos-rebuild. I did that just now, restarted the dm, and it's even worse now.
<mfiano> It seems my PATH is not being set inside the WM now, because the script won't execute AT ALL
<clever> id just duplicate them then
<mfiano> but yeah i see the bash script it generated after fixing that typo
<clever> mfiano: and you can read it to confirm what went into it
a_f_k_ has quit [Quit: Lost terminal]
<mfiano> I don't see anything that I added
<dtz> is there a way to have the nixpkgs manual built as part of your current system configuration? like, a configuration.nix setting? Might be a bit noisy but would be nice to have it around JIC :)
<dtz> (or the NixOS manual, for that matter)
<clever> mfiano: can you gist the file?
<clever> dtz: `man configuration.nix` is already available by default, thats a large chunk of it
<dtz> hmm, it is re:nixOS manual you're right
<dtz> shrug just wondering, NBD to manually do so when needed :)
<hyper_ch> LnL: no idea why that commit causes it, but I'm off to bed now
<LnL> yeah, same
<dtz> neat
<clever> mfiano: hmmm, line 35 sources /etc/profile, so options D, B, and E should already work
<hyper_ch> LnL: you're also testing now that commit and the one before?
<clever> mfiano: aha, and /etc/profile already sources the file i said to add, so A&C should also work
<LnL> I will tomorrow
<mfiano> clever: well with those changes I no longer have my PATH set correctly
<clever> mfiano: but the changes i said to apply are abnormally missing
<clever> mfiano: something fishy is going on
<hyper_ch> (I did generate a list of commits between one commit that still works -> post #3 and one that didn't work -> post #2 and just kept halfing the numbers and testing
<clever> source /nix/store/1ximi7apy1wdc4hgywldyr5sln39r5hk-set-environment
<clever> nvm, there it is
<mfiano> Yeah also I am missing my PATH=~/.bin:$PATH env var
<mfiano> so the script my env var attempts to find is not in $PATH
<mfiano> err my wm
<clever> mfiano: can you just put the entire configuration.nix into a github repo?
<hyper_ch> at first I tested only as root user and then I noticed it only happens as non-root
<mfiano> clever: a repo, or a gist? it's only 1 file minus hardware config
deba5e12 has joined #nixos
<clever> mfiano: ehh, gist then
<clever> [clever@amd-nixos:~/mfiano/a97e94b42f59aea37cef5ca615d7a5ef]$ nixos-rebuild -I nixos-config=./configuration.nix build-vm -Q
<clever> mfiano: ive cloned the gist, and removed the hardware-configuration.nix line, it is now processing...
<mfiano> Ok
<clever> the nix eval passes, these paths will be fetched (183.18 MiB download, 863.57 MiB unpacked):
<clever> mfiano: when done, i'll have a qemu based VM that contains a complete copy of your machine, minus your $HOME files
<deba5e12> hey, i've been having some trouble getting suspend to work properly on my thinkpad p51
cmacrae has joined #nixos
<deba5e12> when i close the lid, *sometimes* suspend will work as expected, but probably 10% of the time or less
<mfiano> clever: Nice, thanks. I can provide any of those files too if needed
<clever> mfiano: thats why i prefer doing everything with nixos, then they are just included automatically
<deba5e12> most of the time, the green power LED starts blinking rapidly and the machine becomes unresponsive, and unable to wake up
<clever> and you never have to think about them on future installs
<mfiano> clever: That's what I want to do eventually. I'm sick of managing separate branches for all my machines' dotfiles where they differ
<deba5e12> has anyone run into this sort of issue? i had void linux installed on this box before this, and had no issues with suspend with that setup, so maybe it's a systemd issue?
<clever> ln: failed to create symbolic link '/nix/store/hnr5cvavqcd12iiclcpqy2vvwz2pry7d-neovim-ruby-env/bin/bundle': File exists
<clever> mfiano: minor bug in the neovim build, but i doubt vim is involved, so i can just delete it
<mfiano> I don't get that
<mfiano> yeah
<clever> i'm on a different version of nixpkgs
<samueldr> clever: that error has been reported a couple times here in the last two days
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar opened pull request #35592: spidermonkey_52: 52.2.1gnome1 → 52.6.0 (master...spidermonkey) https://git.io/vArEL
NixOS_GitHub has left #nixos [#nixos]
Myrl-saki has quit [Ping timeout: 245 seconds]
cmacrae has quit [Ping timeout: 248 seconds]
<clever> mfiano: it be booting!
<mfiano> clever: I made sure to include vesa in the driver list so it should work
<clever> mfiano: build-vm forces the driver to something
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mfiano> ah
<clever> I3 is giving me a tutorial, heh
<mfiano> Yeah just hit esc
<clever> then the whole gui crashed
<mfiano> o.O
lambdamu has quit [Ping timeout: 240 seconds]
<clever> mfiano: so which variable is (not) set in what situation?
<mfiano> Let me open my gist...
<mfiano> when i add line 143 of my gist and restart display-manager, line 14 (and probably others) are not in effect
<tertle||eltret> how muc differencedo you think a freesync monitor would make?
<mfiano> I would guess all of 10-33
<clever> mfiano: i added `export FINDME=yes` to that block, and it persists to the xterm that opened
<mfiano> to which block?
<clever> environment.shellInit
<deba5e12> (and the same issue happens if I echo "mem" > /sys/power/state. neither enabling nor disabling powerManagment in configuration.nix has any effect.)
<mfiano> Then something strange specific to PATH
<samueldr> clever: isn't it only for shells? so xterm has them, but e.g. rofi or i3 wouldn't
<mfiano> clever: sec...
<clever> mfiano: cargo and .bin are in $PATH
<mfiano> clever: here is my path WITHOUT line 143: /home/mfiano/.cargo/bin:/home/mfiano/.bin:/home/mfiano/bin:/run/wrappers/bin:/etc/per-user-pkgs/mfiano/bin:/home/mfiano/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin
<clever> mfiano: that is the path i get in this VM, in xterm
<mfiano> clever: here is my $PATH WITH line 143: /home/mfiano/bin:/run/wrappers/bin:/etc/per-user-pkgs/mfiano/bin:/home/mfiano/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin