gchristensen changed the topic of #nixos to: NixOS 18.03 and Nix 2.0 are released! || 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://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
<tenten8401> I think I'll give myself 14 days to undo anything I might've screwed up
<clever> i have seen somebody before put some network stuff into an activation script
<clever> and it worked fine during nixos-rebuild
<gchristensen> uhoh
<clever> and then he went 2 months without rebooting
<tenten8401> oof
<clever> after a power outage, it no longer booted, because the network isnt up yet when the activation scripts run
<clever> and if you garbage collect the wrong generation, or dont know how far back to check...
<tenten8401> Is there a way to have it delete the last X generations?
<tenten8401> instead of by time
<clever> [root@amd-nixos:~]# nix-env -p /nix/var/nix/profiles/system --delete-generations 404
<clever> removing generation 404
<clever> if you know the numbers, you can delete them like this
<tenten8401> sorry, should've meant everything but say the last 5 generations
<clever> dont think it has an option for that
<tenten8401> alright, I'll probably leave it for 30 days then
<infinisil> There's a PR to add that iirc
schjetne has joined #nixos
<infinisil> Wow, it got merged 2 days ago! nix#767
<{^_^}> https://github.com/NixOS/nix/pull/767 (by mogorman, closed): Implement --delete-generations + flag for keeping last N number of gens
<tenten8401> ooh fun
goibhniu has quit [Ping timeout: 240 seconds]
<tenten8401> Any advice y'all might give on this set of configs? https://github.com/tenten8401/NixOSConfigs
<tenten8401> Just thought I'd ask since there could be a better way of doing what I'm doing and I wouldn't know it
leotaku1 has joined #nixos
leotaku1 has quit [Read error: Connection reset by peer]
steell has quit [Ping timeout: 260 seconds]
<tenten8401> I know the random Latte Dock layout file needs something done with it
<tenten8401> going to be working on making a build file that can possibly configure latte dock
schjetne has quit [Ping timeout: 240 seconds]
leotaku1 has joined #nixos
leotaku1 has quit [Remote host closed the connection]
leotaku1 has joined #nixos
leotaku1 has quit [Remote host closed the connection]
<tenten8401> poor leotaku1
goibhniu has joined #nixos
steell has joined #nixos
Rusty1_ has joined #nixos
slack1256 has quit [Read error: Connection reset by peer]
bennofs has quit [Quit: WeeChat 2.1]
jperras has joined #nixos
steell has quit [Ping timeout: 256 seconds]
jperras has quit [Ping timeout: 265 seconds]
sanscoeur has joined #nixos
ikitat has joined #nixos
YaZko has joined #nixos
<infinisil> tenten8401: virtualisation.virtualbox.host.enable does that for you (and a bunch more): https://github.com/tenten8401/NixOSConfigs/blob/master/software.nix#L14
semilattice has joined #nixos
<tenten8401> infinisil: Do I need to keep virtualbox in my environment.systemPackages if I do that then?
<infinisil> tenten8401: You can use `src = lib.cleanSource ./.;` instead of `src = ./.;` to prevent having to rebuild it every time: https://github.com/tenten8401/NixOSConfigs/blob/master/packages/HostLoaderApp/default.nix#L13
<infinisil> tenten8401: Nope, it does that for you
<tenten8401> oh sweet
<tenten8401> I'll fix it now, thanks
<infinisil> Looking good though :)
<tenten8401> still kind've new to NixOS, first installed it around 2-3 weeks ago I think
<tenten8401> really liking it so far, everything seems really thought out in advance
<tenten8401> and it's much easier to customize your system from scratch compared to something like Arch
sanscoeur has quit [Remote host closed the connection]
sbdchd has joined #nixos
steell has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vhWtY
<{^_^}> [nixpkgs] @matthewbauer merged pull request #41287 → barrier: init at 2.1.1 → https://git.io/vhG9r
codygman_ has joined #nixos
<codygman_> I have a display-manager loop happening on my laptop (guessing because of graphics drivers missing), I'm guessing there's no way to get to a console because the display-manager restart keeps stealing focus? Here's a video of what's happening: https://youtu.be/CZsdksPh3pw
<{^_^}> [nixpkgs] @matthewbauer merged pull request #41119 → errbot: 5.1.3 -> 5.2.0 → https://git.io/vhqSY
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vhWtW
<infinisil> codygman_: Ctrl-Alt-F1
<codygman_> infinisil: I tried that as suggested earlier and it did not do anything
<codygman_> to clarify, I never get past the console and it just "blinks" as seen in the video linked
<clever> codygman_: its constantly switching between the console and gfx modes
<clever> and it will probably switch again immediately after you ctrl+alt+f1
<clever> codygman_: try changing the init= to init=/bin/sh in the grub menu
iqubic` has joined #nixos
<infinisil> Oh right.. when the display-manager starts it gets the focus..
<{^_^}> [nixpkgs] @schlarpc opened pull request #41379 → cacert: fix certdata2pem url → https://git.io/vhWt0
<codygman_> clever: I'll try that and brb
<clever> codygman_: ssh also works if enabled
<{^_^}> [nixpkgs] @matthewbauer merged pull request #41379 → cacert: fix certdata2pem url → https://git.io/vhWt0
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vhWtE
iqubic has quit [Ping timeout: 240 seconds]
silver has quit [Read error: Connection reset by peer]
semilattice has quit [Ping timeout: 265 seconds]
smc9115 has joined #nixos
codygman_ has quit [Ping timeout: 260 seconds]
thc202 has quit [Ping timeout: 244 seconds]
iqubic` is now known as iqubic
c74d has left #nixos [#nixos]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
bbarker has quit [Quit: Connection closed for inactivity]
schjetne has joined #nixos
mahalel_ has joined #nixos
mahalel_ has left #nixos [#nixos]
iqubic has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #41148 → Mint-lang: Init at 2018.05.27 → https://git.io/vhmcT
<{^_^}> [nixpkgs] @matthewbauer pushed 4 commits to master: https://git.io/vhWqv
<{^_^}> [nixpkgs] @matthewbauer merged pull request #41020 → androidndk: Fixes missing libraries for prebuilt clang → https://git.io/vhkxP
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vhWqf
steell has quit [Ping timeout: 260 seconds]
semilattice has joined #nixos
Ariakenom has quit [Quit: Leaving]
smc9115 has quit [Quit: Mutter: www.mutterirc.com]
asuryawanshi has joined #nixos
schjetne has quit [Ping timeout: 265 seconds]
seafood has joined #nixos
hellrazo1 has joined #nixos
markus1189 has joined #nixos
hellrazor has quit [Ping timeout: 240 seconds]
markus1199 has quit [Ping timeout: 240 seconds]
<Lears> I have a shell script running a nix-env operation conditionally upon the user profile not being rolled back. Currently I'm doing `if [ -n "$(nix-env --list-generations | tail -n 1 | grep current)" ]; then nix-env ...` for that check. Is there a better way?
<gchristensen> what is your end goal?
tertle||eltret has quit [Quit: Connection closed for inactivity]
<Lears> Integrating xmonad and nix in such a way that recompiling it bumps up the user profile and rolling back will correctly use an old configuration.
<Lears> Which turns out to be surprisingly easy.
pcarrier has joined #nixos
<gchristensen> nice
<gchristensen> I don't know a better way
<{^_^}> [nixpkgs] @patternspandemic opened pull request #41380 → ponyc: 0.22.2 -> 0.22.3 → https://git.io/vhWqz
symphorien has quit [Quit: mouahahaha]
<colemickens> gchristensen: with your kubernetes adventures, are you using NixOS? And what about NixOps?
<colemickens> I stumbled across some IRC chatter about NixOps and "scaling groups" in various cloud providers. I'm trying to figure out what push/pull/else model I want to use.
<colemickens> On the one hand, I think I can imagine how to make NixOps works with scaling groups and expand a refernece into multiple Machines that NixOps could intuit about. But it doesn't really address an "auto-scaling" scenario where the user scales the group through the cloud platform.
<colemickens> So then I thought about either "Gold" images, or at least Bronze images that know how to consume a configuration.nix on boot and apply it.
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
<colemickens> Anyway, curious if you have thoughts in this area and/or if you want to chat about it. And/or if you know other folks that might be interested..
Supersonic112 is now known as Supersonic
<clever> colemickens: my general idea, is to create an AMI image of your machine using just plain nix, then upload it and configure aws to auto-scale the AMI
<clever> colemickens: and to configure that AMI at build time to just work from the first boot
JasonGrossman has quit [Ping timeout: 240 seconds]
<colemickens> Makes it harder for me to tweak an attr and then blast it out and make it live in a matter of seconds. Which might just be a cool demo and not actually important or practical.
<colemickens> Plus Nix is honestly a nicer way to describe the other Infra I'll need compared to CloudFormation or ARM or even Terraform HCL
<colemickens> But I keep coming to a similar conclusion as you.
<colemickens> I could always build a way for VMs to inspect metadata or something and activate a new config if I don't want to always burn new images...
buhman has joined #nixos
oltoAltn has joined #nixos
<buhman> wow, I think it's super cool that nix-generate-config figures out how to deal with luks just by it existing
tertle||eltret has joined #nixos
olto has quit [Ping timeout: 260 seconds]
steell has joined #nixos
schjetne has joined #nixos
AGTT2 has joined #nixos
<{^_^}> [nixpkgs] @aespinosa opened pull request #41381 → nixos/hadoop: add hadoop module (hdfs, yarn) → https://git.io/vhWmY
AGTT2 has quit [Client Quit]
lassulus_ has joined #nixos
AGTT2 has joined #nixos
lassulus has quit [Ping timeout: 240 seconds]
lassulus_ is now known as lassulus
AGTT2 has quit [Client Quit]
AGTT2 has joined #nixos
AGTT2 has quit [Client Quit]
<colemickens> (also, some of the NixOps code seemed a bit hairy)
AGTT2 has joined #nixos
schjetne has quit [Ping timeout: 265 seconds]
AGTT2 has quit [Client Quit]
AGTT2 has joined #nixos
AGTT2 has quit [Client Quit]
<{^_^}> [nixpkgs] @bhipple opened pull request #41382 → ctags: fix source url → https://git.io/vhWm8
jperras has joined #nixos
<gchristensen> colemickens: yeah the aws amis already load nix from userdata :)
<gchristensen> colemickens: probably nicest to have the AMIs mostly ready with your stuff, and apply "last mile" changes via user data, instead of full reconfiguration
* colemickens nods
iyzsong has joined #nixos
<colemickens> :) I'm not targetting AWS, but I am basically redo-ing things based on the AWS images :)
<gchristensen> cool, what is your target?
<colemickens> Azure
<gchristensen> aaah of coursse
<colemickens> I'm a bit of a glutton for punishment.
mizu_no_oto has joined #nixos
<gchristensen> I'm a massively big fan of making nixos images for semi-hostile environments :)
<colemickens> Yeah, the other bringups for Azure tend to do lots of on-first-boot configuration that is reliant on the network, apt servers, gpp keyservers, and it slows it down. Yeah. I'm feeling this path.
<colemickens> Also, I could probably get away without standing up a binary cache infra.
<colemickens> (I need to find the s3 store backend and see how hard it would be to add Azure blob storage as a backend)
<colemickens> (I guess if nothing else, I could run Minio, point Nix at it and tell it its S3... :P)
<gchristensen> :)
<gchristensen> have you seen cachix?
<colemickens> :) yes indeed I did.
<{^_^}> [nixpkgs] @orivej opened pull request #41383 → subversion_1_10: init at 1.10.0 → https://git.io/vhWYJ
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nixos
seafood has quit [Quit: seafood]
<buhman> has anyone bothered to write a manual page for how to make nvidia optimus work?
<buhman> most of the google-indexed things are either questions or incomplete answers
<samueldr> there was this recent write-up https://nixos.wiki/wiki/Nvidia
mizu_no_oto has joined #nixos
schjetne has joined #nixos
ixxie has quit [Quit: Lost terminal]
rauno has quit [Ping timeout: 265 seconds]
mizu_no_oto has quit [Client Quit]
schjetne has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @orivej merged pull request #41383 → subversion_1_10: init at 1.10.0 → https://git.io/vhWYJ
<{^_^}> [nixpkgs] @orivej pushed to master « subversion_1_10: init at 1.10.0 (#41383) »: https://git.io/vhWYK
<{^_^}> [nixpkgs] @matthewbauer merged pull request #41204 → Wine updates → https://git.io/vhODI
<{^_^}> [nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/vhWY6
sary has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #41023 → lua packages: add init.lua to modules search path → https://git.io/vhIT1
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vhWYN
<buhman> samueldr: I'm not sure why, but odd things happen when I both load the nvidia module and have the card powered on in bbswitch
<samueldr> I have never used hybrid hardware like that, sorry I can't say more :/
schjetne has joined #nixos
<buhman> if I just have the module loaded it is fine, but if I turn the card on, it hangs
mizu_no_oto has joined #nixos
<buhman> is it possible to run a kernel 4.17-rc2? some similar hardware owners are saying there's some relevant ACPI bug fixed after that
<{^_^}> [nixpkgs] @matthewbauer merged pull request #40692 → sshd: add custom options → https://git.io/vpAJn
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vhWYj
<buhman> I do like how every time I request a broken config, I can just reboot and go back one generation
<samueldr> I don't know the optimal way, but there's hope, using a different kernel, even one out of the nixpkgs tree, is possible and safe enough
<{^_^}> [nixpkgs] @matthewbauer merged pull request #40712 → hadoop: 2.2.0 -> 2.7.6, 2.8.6, 2.9.1, 3.0.2, 3.1.0 → https://git.io/vpA5J
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vhWOv
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vhWOU
<{^_^}> [nixpkgs] @matthewbauer merged pull request #40611 → urn: init at 0.7.1 → https://git.io/vpFxJ
<{^_^}> [nixpkgs] @matthewbauer merged pull request #40544 → cura: fix invisible sidebar and install missing materials → https://git.io/vp7CC
<{^_^}> [nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/vhWOk
leat has quit [Ping timeout: 248 seconds]
<nh2[m]> NET::ERR_CERT_SYMANTEC_LEGACY
<samueldr> :)
<samueldr> the relevant authorities were notified earlier today :)
schjetne has quit [Ping timeout: 256 seconds]
<nh2[m]> good
<samueldr> at least it doesn't affect nix
<{^_^}> [nixpkgs] @matthewbauer merged pull request #40242 → linux: enable support for iGVT-g VGPU → https://git.io/vpXng
<{^_^}> [nixpkgs] @matthewbauer pushed 6 commits to staging: https://git.io/vhWOt
<{^_^}> [nixpkgs] @matthewbauer merged pull request #40171 → [RDY] openntpd: make -s flag work → https://git.io/vp6GD
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vhWO3
<{^_^}> [nixpkgs] @matthewbauer merged pull request #40037 → nixos/modules/services/scheduling/fcron: add setuid to fcrontab → https://git.io/vpr62
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vhWOC
<{^_^}> [nixpkgs] @matthewbauer merged pull request #40028 → prometheus-dnsmasq-exporter: init at 2018-05-05, add module → https://git.io/vpr4a
<{^_^}> [nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/vhWOl
asuryawanshi has quit [Remote host closed the connection]
rauno has joined #nixos
roconnor has joined #nixos
<buhman> why doesn't nixos appear to modeset on boot?
steell has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @orivej pushed to staging « p11-kit: 0.23.11 -> 0.23.12 »: https://git.io/vhWOH
leat has joined #nixos
YaZko has quit [Quit: YaZko]
YaZko has joined #nixos
matthewbauer has quit [Ping timeout: 265 seconds]
asuryawanshi has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<buhman> samueldr: though I couldn't make nvidia prime work, I got bumblebeed + optirun working on archlinux ; I wonder if the hanging that happened on nixos is just an old version issue
<buhman> it's a little hard to troubleshoot this hardware issue and learn nixos at the same time :)
leat has quit [Ping timeout: 256 seconds]
Have-Quick has quit [Quit: Have-Quick]
schoppenhauer has quit [Ping timeout: 268 seconds]
Have-Quick has joined #nixos
<{^_^}> [nixpkgs] @aij opened pull request #41384 → altcoins.aeon: 0.9.14.0 -> 0.12.0.0 → https://git.io/vhW3W
Ross has quit [Ping timeout: 268 seconds]
schoppenhauer has joined #nixos
Ross has joined #nixos
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
steell has joined #nixos
oltoAltn has quit [Read error: Connection reset by peer]
olto has joined #nixos
schjetne has joined #nixos
rauno has quit [Ping timeout: 265 seconds]
jperras has quit [Quit: WeeChat 2.1]
freeman42x]NixOS has quit [Ping timeout: 265 seconds]
gonz_ has quit [Ping timeout: 245 seconds]
asuryawanshi has quit [Ping timeout: 268 seconds]
leat has joined #nixos
blankhart has quit [Quit: WeeChat 1.9.1]
mizu_no_oto has joined #nixos
leat has quit [Ping timeout: 248 seconds]
YaZko has quit [Quit: YaZko]
<colemickens> buhman: the beauty is, you only have to troubleshoot hte hw with nixos once!
iyzsong has quit [Ping timeout: 260 seconds]
iyzsong has joined #nixos
<jophish> hi gchristensen, I've opened a PR for aarch64-build-box
<buhman> colemickens: how do you mean?
schjetne has quit [Ping timeout: 265 seconds]
sanscoeur has joined #nixos
<colemickens> buhman: once you write the nix expression, you won't have to repeat this if you ever rebuild the machine
<colemickens> also, if you're messing with nvidia and changing drivers, I'd recommend you power off as much as possible between reboots.
<colemickens> I've had issues where nvidia and nouvea (sp?) were behaving differently if the hw had already been initialized and it dind't power off
iqubic has joined #nixos
Rusty1_ has quit [Quit: Konversation terminated!]
rauno has joined #nixos
sbdchd has quit [Remote host closed the connection]
schjetne has joined #nixos
<buhman> colemickens: do you use optirun/primusrun?
<buhman> I've been using setprovideroutputsource, but my new GPU doesn't list that capability, strangely
pcarrier has quit [Quit: Connection closed for inactivity]
schjetne has quit [Ping timeout: 260 seconds]
<colemickens> buhman: I didn't actually do the nvidia fun on my NixOS machine with an nvidia card (yet?)
<colemickens> Just needed to bootstrap some images for Azure. All my other NixOS boxes are headless or Intel graphics.
<buhman> so, if I know low-level what I want to do, how do I translate things like "xrandr --setprovideroutputsource" and a custom xorg.conf.d to configuration.nix ?
jtojnar has quit [Read error: Connection reset by peer]
<colemickens> The first seems like a command you would run at runtime anyway?
<colemickens> And the other depends on what's in xorg.conf.d.
<buhman> well, I'd add a file there
<colemickens> Last time I setup nvidia with either optimus or bumblebee on a laptop, it wasn't nixos, but I didn't have to write any xorg conf.
<buhman> (the xorg.conf is required for not-bumblebee)
<colemickens> what's it for?
<colemickens> right, X doesn't care about xorg.conf anymore, so you might be able to just throw it in xorg.conf
jtojnar has joined #nixos
<buhman> it's supposedly marginally faster, and I like not needing to pepper primusruns all over the place
<colemickens> in which case... "services.xserver.config" is your friend. (https://nixos.org/nixos/options.html#xorg)
<buhman> the other thing that bothered me was I expect the linux console to modeset on boot
<buhman> is that not a thing that happens in nixos?
leat has joined #nixos
<colemickens> weird, interesting, I'd not heard of that before. It makes it seem necessary for the dual-gpu config to work, but I had never done it before. I don't really understand any of it beyond "make it work" level.
<colemickens> And as for modesetting, I am out of my depth officially. I don't know, sorry.
<buhman> yeah that offload thing is explicitly a xrandr 1.4 feature, which is not the same mechanism that bumblebee uses
jtojnar has quit [Read error: Connection reset by peer]
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
jtojnar has joined #nixos
s33se has joined #nixos
endformationage has quit [Quit: WeeChat 1.9.1]
schjetne has joined #nixos
srl295 has quit [Quit: Connection closed for inactivity]
gonz_ has joined #nixos
gonz_ has quit [Client Quit]
schjetne has quit [Ping timeout: 240 seconds]
gonz_ has joined #nixos
steell has quit [Ping timeout: 256 seconds]
asuryawanshi has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<{^_^}> [nixpkgs] @adisbladis merged pull request #41384 → altcoins.aeon: 0.9.14.0 -> 0.12.0.0 → https://git.io/vhW3W
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/vhWGy
jtojnar has quit [Remote host closed the connection]
seanparsons has quit [Read error: Connection reset by peer]
schjetne has joined #nixos
seanparsons has joined #nixos
schjetne has quit [Ping timeout: 256 seconds]
owickstrom has quit [Quit: Leaving]
newhoggy has joined #nixos
Tehnix has quit [Read error: Connection reset by peer]
Tehnix1 has joined #nixos
Jackneilll has joined #nixos
newhoggy has quit [Remote host closed the connection]
asuryawanshi has quit [Ping timeout: 240 seconds]
Jackneillll has quit [Ping timeout: 245 seconds]
ikitat has quit [Ping timeout: 256 seconds]
hellrazo1 has quit [Ping timeout: 265 seconds]
hellrazo1 has joined #nixos
FRidh has joined #nixos
schjetne has joined #nixos
s33se has quit [Quit: s33se]
schjetne has quit [Ping timeout: 260 seconds]
tenten8401 has quit [Ping timeout: 260 seconds]
newhoggy has joined #nixos
cloud-maingo has joined #nixos
<ldlework> if I have nix-channel --add https://nixos.org/channels/nixos-unstable nixos-unstable
<ldlework> then why can't I do import <nixos-unstable> { }; ?
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<ldlework> I have to modify NIX_PATH?
<ldlework> i can't do this purely from configuration.nix and having the right channel setup?
Moofasa has joined #nixos
Moofasa has left #nixos [#nixos]
rsa has quit [Read error: Connection reset by peer]
rsa has joined #nixos
<{^_^}> [nixpkgs] @qolii opened pull request #41386 → Pull in libevent patches to support LibreSSL 2.7. → https://git.io/vhWnD
simukis has joined #nixos
semilattice has quit [Ping timeout: 276 seconds]
magnetophon has quit [Ping timeout: 265 seconds]
<Lears> Try updating the channel, ldlework. Just adding it doesn't suffice.
ikitat has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #41380 → ponyc: 0.22.2 -> 0.22.3 → https://git.io/vhWqz
<{^_^}> [nixpkgs] @xeji pushed commit from @patternspandemic to master « ponyc: 0.22.2 -> 0.22.3 (#41380) »: https://git.io/vhWcC
ikitat has quit [Ping timeout: 265 seconds]
periklis` has joined #nixos
Have-Quick has quit [Ping timeout: 256 seconds]
schjetne has joined #nixos
tertle||eltret has quit [Quit: Connection closed for inactivity]
Have-Quick has joined #nixos
tzemanovic has quit [Remote host closed the connection]
schjetne has quit [Ping timeout: 256 seconds]
<ldlework> Lears: cheers
Have-Quick has quit [Read error: No route to host]
thblt has joined #nixos
wangoe has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 248 seconds]
<ldlework> Lears: do you know if it is possible to add a channel of a random nixpkgs fork?
<ldlework> Like, can I add infinisil's better-znc-module branch as a channel?
<ldlework> oh it just worked
<{^_^}> [nixpkgs] @xeji merged pull request #41228 → mapmap: init at 0.6.1 → https://git.io/vh3FI
<{^_^}> [nixpkgs] @xeji pushed commit from @erictapen to master « mapmap: init at 0.6.1 (#41228) »: https://git.io/vhWcd
<{^_^}> [nixpkgs] @fgaz opened pull request #41387 → bulletml: fix build failure due to -Wformat-security → https://git.io/vhWcb
<ldlework> Oh no it didn't
<ldlework> it expects to be able to be able to download a nixexprs.tar.bz2
<{^_^}> [nixpkgs] @xeji merged pull request #40694 → aws-sdk-cpp: 1.4.40 -> 1.4.50 → https://git.io/vpAm9
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « aws-sdk-cpp: 1.4.40 -> 1.4.50 (#40694) »: https://git.io/vhWcx
schjetne has joined #nixos
michas_ has joined #nixos
xeji has joined #nixos
<ldlework> Hmm, packageOverrides is different than the modules like the one that provides the znc systemd service
michas_ has quit [Client Quit]
<ldlework> If there is a fork of nixpkgs that contains a modified module, like the znc one, then how do you integrate that fork such that you want it's znc /module/ to override the options and handling than what's provided by stable?
<ldlework> Like I think I understand how to fetchTarball the git fork, and use the znc /package/ from the nixpkgs fork
<ldlework> but no idea how to utilize the enhanced systemd service unit from that fork
schjetne has quit [Ping timeout: 276 seconds]
<ldlework> I suppose I should try to be productive more early in the day while the channel is active heh
wangoe has joined #nixos
<ldlework> let special_fork = import (fetchTarball ...) {};
<ldlework> then what?
tzemanovic has joined #nixos
<Lears> I've not done this before so I don't really know, but this wiki page might helpful: https://nixos.wiki/wiki/Nixpkgs/Create_and_debug_packages
<Lears> It appears to have an example of updating the system using a local clone.
sanscoeur has quit [Remote host closed the connection]
tzemanovic has quit [Ping timeout: 260 seconds]
brondif has joined #nixos
<MichaelRaskin> buhman: I think provider offload is working fine in Nouveau but not always with nvidia drivers
<ldlework> Lears, but I only want one module from the fork
robstr has joined #nixos
ikitat has joined #nixos
jtojnar has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #41257 → adobe_flex_sdk: 4.0.0.14159 -> apache-flex-sdk: 4.16.1 → https://git.io/vhspR
<{^_^}> [nixpkgs] @xeji pushed commit from @dywedir to master « adobe_flex_sdk: 4.0.0.14159 -> apache-flex-sdk: 4.16.1 (#41257) »: https://git.io/vhWC5
<{^_^}> [nixpkgs] @xeji merged pull request #41387 → bulletml: fix build failure due to -Wformat-security → https://git.io/vhWcb
<{^_^}> [nixpkgs] @xeji pushed commit from @fgaz to master « bulletml: fix build failure due to -Wformat-security (#41387) »: https://git.io/vhWCb
brondif has left #nixos [#nixos]
ikitat has quit [Ping timeout: 240 seconds]
throwboy has joined #nixos
asuryawanshi has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
magnetophon has joined #nixos
vcunat has joined #nixos
tzemanovic has joined #nixos
palo_ is now known as palo
newhoggy has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @xeji merged pull request #40883 → zeronet: init at 0.6.2 → https://git.io/vheLg
<{^_^}> [nixpkgs] @xeji pushed commit from @fgaz to master « zeronet: init at 0.6.2 (#40883) »: https://git.io/vhWWs
xy2_ has joined #nixos
<{^_^}> [nixpkgs] @xeji closed pull request #31910 → zeronet: init at 0.6.0 → https://git.io/vFF0n
NightTrain has quit [Quit: Lost terminal]
asuryawanshi has quit [Ping timeout: 260 seconds]
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
logzet has joined #nixos
symphorien has joined #nixos
FRidh has quit [Quit: Konversation terminated!]
Synthetica has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #41376 → ipfs: 0.4.14 -> 0.4.15 → https://git.io/vhWJ6
<{^_^}> [nixpkgs] @xeji pushed commit from @elitak to master « ipfs: 0.4.14 -> 0.4.15 (#41376) »: https://git.io/vhWWQ
Ariakenom has joined #nixos
schjetne has joined #nixos
periklis` has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @vcunat pushed to staging « bison: drop non-applying patch on Darwin »: https://git.io/vhWl3
philippD has joined #nixos
<xeji> vcunat: can you please restart the ~200 aborted hydra jobs for release-18.03? channel is stuck.
<vcunat> right
<vcunat> In the last weeks I commonly see that packet-t2-4 reports
<vcunat> > Aborted: unable to start build process
<{^_^}> <LAMBDA>
<vcunat> gchristensen: ^^ in case you have an idea what it's about
<xeji> vcunat: the logs frequently show > error: cloning builder process: Cannot allocate memory
ikitat has joined #nixos
<vcunat> On packet-t2-4 or in general?
<xeji> i've seen it on packet-t2-4 only
periklis` has joined #nixos
ikitat has quit [Ping timeout: 256 seconds]
amir has quit [Ping timeout: 265 seconds]
schjetne has quit [Ping timeout: 265 seconds]
<vcunat> Maybe we should try tweaking some parallelism settings on that machine.
<vcunat> Some derivations sadly ignore the regulation by load, so machines with larger --jobs can explode.
<vcunat> But maybe the cause is somewhere else.
<xeji> we just need laaaaaarger boxes :)
amir has joined #nixos
<vcunat> That actually makes things harder to control.
<vcunat> (than with more smaller boxes)
amir has quit [Ping timeout: 265 seconds]
amir has joined #nixos
<robstr> Hey, I want to add a new python dependency, I created this https://gist.github.com/rsoeldner/81d7cf69801c2e8ec2df6b09c69ab297 but `buildPythonPackage` is not in scope, it is defined here https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/python-packages.nix#L74 - Can someone help out ? :)
dbe has joined #nixos
schjetne has joined #nixos
xeji has quit [Quit: WeeChat 2.0]
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
periklis` has quit [Remote host closed the connection]
schjetne has quit [Ping timeout: 265 seconds]
cloud-maingo has quit [Quit: Connection closed for inactivity]
dbe has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @joachifm merged pull request #34886 → morty: init -> 0.2.0 → https://git.io/vAqj5
<{^_^}> [nixpkgs] @joachifm pushed 4 commits to master: https://git.io/vhW8C
<robstr> got it :+1
thc202 has joined #nixos
deepfire` has joined #nixos
<{^_^}> [nixpkgs] @megheaiulian opened pull request #41390 → gitkraken: 3.6.1 -> 3.6.3 → https://git.io/vhW8r
nuncanada has joined #nixos
xy2_ has quit [Ping timeout: 265 seconds]
jD91mZM2 has joined #nixos
FRidh has joined #nixos
tusj has joined #nixos
ikitat has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed 66 commits to staging: https://git.io/vhW8b
ikitat has quit [Ping timeout: 268 seconds]
thblt has quit [Quit: ERC (IRC client for Emacs 26.1)]
<infinisil> ldlework: Am awake now :)
shabius has joined #nixos
newhoggy has joined #nixos
<infinisil> ldlework: Either you can just git checkout my repository and the specific branch, and then build a vm with this to test it, which I'd recommend
<FRidh> robstr: use pkgs.python36Packages.callPackage
<robstr> FRidh: yea ty, already got it :)
<infinisil> ldlework: Or if you really wanna use it with your current nixos system, you could also make a git checkout of the branch you're currently using, then apply my commits on top of that
__monty__ has joined #nixos
newhoggy has quit [Ping timeout: 240 seconds]
<__monty__> Trying to install vimNox on darwin, any workarounds? http://ix.io/1c6d
saeedgnu has joined #nixos
<__monty__> Another question. I used to use this script, https://github.com/elaforge/fast-tags/blob/master/init-tags, with vim. But since moving fast-tags into a myEnvFun, vim complains about not finding fast-tags when running that script. This vim is started after a load-env so I don't understand why fast-tags wouldn't be on the path for the script?
<saeedgnu> i installed virtaulbox with nix, and it runs, but the vm does not, it gives this error: The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing '/sbin/vboxconfig' as root.
<saeedgnu> i can't find vboxconfig in my nix-profile/bin
<saeedgnu> (and no spin)
<saeedgnu> *sbin
schjetne has joined #nixos
<symphorien> On nixos or plain nix ?
<saeedgnu> no, nix on opensuse
hellrazo1 has quit [Ping timeout: 248 seconds]
<symphorien> the problem is that virtualbox needs a kernel module to be loaded to work
<symphorien> so just installing it with nix (which means, putting virtualbox on the PATH) is not enough
hellrazo1 has joined #nixos
<symphorien> if your kernel has one of the versions in nixpkgs, you can try to load the module manually
<{^_^}> [nixpkgs] @FRidh pushed 44 commits to python-unstable: https://git.io/vhW4i
<saeedgnu> my kernel is 4.4.114
<saeedgnu> let me see if i can update my kernel to 4.14.42
<symphorien> 4.4 is in nixpkgs
<symphorien> so: run nix-build "<nixpkgs>" -A linuxPackages_4_4.virtualbox and then try to insmod the modules in the result symlink
schjetne has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @volth closed pull request #32893 → hadoop: 2.2.0 -> 2.7.5, 2.8.3, 2.9.0, 3.0.0 → https://git.io/vbMSh
<saeedgnu> oh, ok tnx
b has joined #nixos
<saeedgnu> vboxdrv$ pwd
<saeedgnu> /nix/store/bpm7rzppf5vdm0khd031d08c9pfwq3kh-virtualbox-modules-5.2.12-4.4.132/lib/modules/4.4.132/extra/vboxdrv
<saeedgnu> vboxdrv$ sudo insmod vboxdrv.ko.xz
<saeedgnu> insmod: ERROR: could not insert module vboxdrv.ko.xz: Invalid module format
azazel has quit [Ping timeout: 256 seconds]
azazel has joined #nixos
<symphorien> try to unxz the module ?
<symphorien> maybe your kernel does not support such compression
<saeedgnu> sudo insmod vboxdrv.ko
<saeedgnu> insmod: ERROR: could not insert module vboxdrv.ko: Invalid module format
<symphorien> hum
<symphorien> no idea sorry
<saeedgnu> can i copy the link to host libs?
<symphorien> what do you mean ?
<saeedgnu> copy the module dir to host so that it boot with the modukes
<symphorien> I'd copy the files and not the symlink
<symphorien> because nix-collect-garbage could remove the files in the store
<saeedgnu> oops it's 4.4.132, my kernel is 4.4.114
<symphorien> do you think point releases matter ?
<saeedgnu> i don't know
vcunat has quit [Read error: Connection reset by peer]
vcunat has joined #nixos
sauyon has joined #nixos
alex`` has quit [Ping timeout: 276 seconds]
vcunat has quit [Read error: Connection reset by peer]
<saeedgnu> symphorien: thanks, i'm gonna reboot and come back
saeedgnu has left #nixos [#nixos]
vcunat has joined #nixos
alex`` has joined #nixos
saeedgnu has joined #nixos
<saeedgnu> i updated my kernel to 4.4.132 to match the nix modules, still get the same "Invalid module format" error :(
<{^_^}> [nixpkgs] @FRidh pushed 40 commits to staging: https://git.io/vhWBO
ikitat has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed 0 commits to python-unstable: https://git.io/vhWBG
<{^_^}> [nixpkgs] @FRidh closed pull request #41177 → Python: interpreter changes and package updates → https://git.io/vhYOX
<gchristensen> vcunat: hrm
ikitat has quit [Ping timeout: 260 seconds]
saeedgnu has quit [Quit: Leaving.]
<vcunat> gchristensen: In the last weeks I commonly see that packet-t2-4 reports
<vcunat> Aborted: unable to start build process
<vcunat> (and aborts the job)
<vcunat> xeji often sees another problem there
<vcunat> error: cloning builder process: Cannot allocate memory
<gchristensen> ok
<vcunat> I wonder if we could tweak it somehow.
knupfer has joined #nixos
aarvar has quit [Ping timeout: 265 seconds]
<vcunat> The first leads to "aborted" status for the jobs, so that's easy to recognize and restart separately.
<gchristensen> I need to do some maintenance on those machines anyway, I'll take a look
<vcunat> I don't know about the second.
tenten8401 has joined #nixos
<vcunat> Just in case, does someone know how to best debug DHCPv6? In particular I'd like to see if it's ISP's problem or my router's :-)
<gchristensen> load average: 98.24, 187.43, 161.78
saeedgnu has joined #nixos
<gchristensen> disasm helped me a lot with dhcpv6
<vcunat> This one doesn't have a hundred cores, right?
<gchristensen> it does not :)
<tenten8401> Anyone here know if there's a decent way that I could configure KWin for new users declaratively?
<gchristensen> oh oops I was on the 2a
<tenten8401> I'm wanting to reduce the window border size and create my own customized KDE setup for the entire machine for all new users
<saeedgnu> i copied /lib/modules/4.4.132/extra/ from my nix to host (/lib/modules/4.4.132-53-default/), but modprobe still doesn't find the module, is there anything else i should do?
<tenten8401> I was looking around /etc but couldn't seem to find a global "kwinrc" to write to, and I'd prefer not to execute a script for every single user
<vcunat> tenten8401: these files are one some XDG paths?
<gchristensen> load average: 50.53, 49.23, 44.11 for 48 cores
<vcunat> If they are searched in standard ways and not just in ~/... that might be doable.
<vcunat> gchristensen: that seems OK
<vcunat> And I expect there's plenty of free memory, etc.
<vcunat> Maybe it's just some particular derivation misbehaving (not respecting the -l for make).
<gchristensen> 57G free RAM
<{^_^}> [nixpkgs] @jtojnar merged pull request #30037 → poppler: add nss to allow for building pdfsig → https://git.io/vdCCn
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/vhWBD
<vcunat> If many of such derivations happen to get to a single machine at once, I expect it may explode.
seafood has joined #nixos
<symphorien> I think buildRustPackage does not respect -l
<tenten8401> vcunat: The file I'm wanting to configure is ~/.config/kwinrc
<gchristensen> oohh
<tenten8401> I can't seem to find a global "template" of this file that I can modify
<tenten8401> is there a way to declaratively manage files that get created when a user is created?
<symphorien> tenten8401: if it is a fixed file, /etc/skel is the way to go I think
<vcunat> tenten8401: you probably want to put it into one of $XDG_CONFIG_DIRS. See https://specifications.freedesktop.org/basedir-spec/latest/ar01s03.html
<vcunat> well, after you obtain such a file, e.g. set up for your user and copy it out
<tenten8401> etc/skel doesn't exist, would I have to create the files I want in there for users manually?
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos
<vcunat> you can "create" /etc via configuration.nix options
<vcunat> e.g. environment.etc."ati".source = "${ati_x11}/etc/ati";
lordfluffywobble has joined #nixos
schjetne has joined #nixos
<tenten8401> I think I'd have to setup /etc/default/useradd to have a SKEL=/etc/skel option
<tenten8401> then I'd configure all my stuff there, correct?
Ariakenom has quit [Quit: Leaving]
<tenten8401> or do you think it'd be better to use security.pam.makeHomeDir.skelDirectory?
schjetne has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @joachifm merged pull request #41377 → nixos/slurm: Improve slurm configuration options and features. → https://git.io/vhWJQ
<{^_^}> [nixpkgs] @joachifm pushed 7 commits to master: https://git.io/vhWRt
norfumpit has joined #nixos
<vcunat> I'd personally try to avoid messing with people's homedirs
leat has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
<vcunat> (as modern apps with XDG should allow to avoid that)
JasonGrossman has joined #nixos
<tenten8401> vcunat: I'm basically wanting to define a base KDE layout and settings that are created when a new user is added
<tenten8401> that way if I were to reinstall my system, everything would be how I set it up before, and I'd have a repeatable KDE setup
<vcunat> yes, that's doable without homedirs
<vcunat> it's what distributions use to differ from each other in default setups, I expect
<tenten8401> I'm basically just trying to setup /etc/skel the "proper way", if there is one
<tenten8401> so I can add a default setup
<tenten8401> but useradd by default isn't told to use /etc/skel
<tenten8401> I'm not wanting to touch individual home directories
<norfumpit> can somebody help me with this? result of nixops deploy to another nix machine. remote expression is trivial-nixos.nix from the manual - https://pastebin.com/raw/FBprHm4w
<norfumpit> not sure what im doing wrong
saeedgnu has left #nixos [#nixos]
steell has joined #nixos
rauno has quit [Ping timeout: 268 seconds]
<tenten8401> Looks like there might be an open issue report for my problem: https://github.com/NixOS/nixpkgs/issues/33586
<tenten8401> yeah, I'm not exactly sure anymore how I'd go about setting up /etc/skel
<tenten8401> is it named differently by default or something?
leat has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
silver has joined #nixos
<tenten8401> Would something like this be the proper way to setup a skeleton? https://github.com/bennofs/etc-nixos/blob/master/conf/desktop.nix#L113
ikitat has joined #nixos
<tenten8401> actually, looks like they might be using an environment variable as a workaround for that
<tenten8401> Not sure I like the way they're doing it but it looks like I may not have much of a choice
JasonGrossman has quit [Read error: Connection reset by peer]
ikitat has quit [Ping timeout: 268 seconds]
schjetne has joined #nixos
<tenten8401> Maybe I could have a package that "installs" by overwriting home directory configs and making it a user-exclusive package for ever user I want to have the configs?
<tenten8401> hmm.
schjetne has quit [Ping timeout: 256 seconds]
rauno has joined #nixos
rihards has joined #nixos
<tenten8401> I am not convinced there's actually a way to configure /etc/skel so far
<tenten8401> Nothing I do seems to want to work at all
civodul has joined #nixos
<norfumpit> my god why is my nixos upgrade refetching everything? im seeing it download from the cache all kinds of packages same version as currently installed
Jackneilll has quit [Read error: Connection reset by peer]
Jackneilll has joined #nixos
<LnL> that happens when one of the core libraries like glibc was updated
<symphorien> if the glibc has been modified, then everything has to be redownloaded for example
<norfumpit> did that happen recently?
Thra11 has joined #nixos
<gchristensen> it happens every couple weeks or so
<norfumpit> thats not so fun
<gchristensen> nor is rpm hell
<MichaelRaskin> Nix allows huge risky upgrades to run in background, and be easy to roll back, or be applied partially
<MichaelRaskin> But you are paying for flexibility with storage space in Nix, all the time
schjetne has joined #nixos
<norfumpit> so its safe to interrupt this? its now rebuilding a huge amount of native extensions for various python libs and whatnot
<MichaelRaskin> Yes
<symphorien> is there a way to nix-build --check a fixed output derivation ?
<symphorien> it does not seem to check anything
<FRidh> check the source
<FRidh> nix-build -A attr.src --check
<FRidh> as far as I know that works
<norfumpit> anyone here now who can help me with nixops?
thblt has joined #nixos
<symphorien> FRidh: it builds the derivation the first time, and then never rebuilds it
<gchristensen> norfumpit: better to just ask
<symphorien> the goal is to check that the hash is correct
schjetne has quit [Ping timeout: 248 seconds]
<norfumpit> gchristensen: trying to deploy trivial-nixos.nix from manual. getting this https://pastebin.com/raw/FBprHm4w
<FRidh> symphorien: do you mean that with --check it never redownloads the source?
<symphorien> yes
<symphorien> or rerun whatever builds the output
Neo-- has joined #nixos
<FRidh> just now when I tried, it downloaded the source after it downloaded a bunch of other things, including mirror-list
<symphorien> hum
<symphorien> I wrote a fixed output drv which just touches $out
<symphorien> then modified it to echo 3 > $out
<symphorien> I never got nix to see the hash had become wrond
<symphorien> *wrong
<FRidh> so, you have a derivation that contains 3 in $out, and you have assigned it a hash, making it a fixed-output derivation. What is there to check in this case?
<sphalerite> symphorien: you need to change the hash, otherwise it will find that it already has something wit hthat hash in the store and not build it.
<symphorien> FRidh: the hash corresponds to an empty $out
<FRidh> ah right
<phry> norfumpit: this should not occur when you deploy against VMware or libvirt, but deploying against a physical machine requires additional configuration
<sphalerite> symphorien: building with --check should trigger it though I think
<symphorien> it does not seem so
<gchristensen> I think changing the name will cause it to rebuild (?)
steell has quit [Ping timeout: 240 seconds]
<symphorien> yes, but then I have to rebuild everything which depends on it
<gchristensen> I get that this is desirable, but why do you want to do this?
<gchristensen> do you think the hash is wrong?
<symphorien> for example I would prevent me from submitting wrong hash for fetchurl in my PRs
<symphorien> because I changed the url but not the hash, which is in my store
YaZko has joined #nixos
<sphalerite> yeah but it won't build for them.
<sphalerite> where "them" = anyone else that's testing it including ofborg
<symphorien> true
<symphorien> what if I want to check that all fetchurls in nixpkgs still exist ?
<sphalerite> I think infinisil did a script for that a while back
<symphorien> I wonder how it works
<infinisil> Ah yeah but I never finished it because it doesn't always work
<infinisil> It worked by parsing all nix files, then grepping for strings that look like urls in the result
<infinisil> Then check each url for redirect, https version, etc.
<symphorien> if nix-build --check worked it would be easy: nix-instantiate release.nix, iterate on all fixed-output derivaiton and nix-build --check them
<infinisil> But then I need to build everything..
<symphorien> no you still get all non fixed output things from the cache
<symphorien> and for fixed-output things, it is usually "download it"
<infinisil> but then it wouldn't check the urls
<symphorien> why ?
<symphorien> it would retry to download and then check the hash
<infinisil> Ah yeah
rauno has quit [Ping timeout: 240 seconds]
<infinisil> What my script does is just try the urls, not actually download it, so the hashes can't get adjusted
<symphorien> ah I see
<infinisil> But the advantage is that it runs decently fast and doesn't require terabytes of downloading..
<symphorien> true
<symphorien> my main worry is about hashes
<infinisil> Here's my half-assed script if you're interested: https://github.com/Infinisil/nixpkgs/tree/verify-urls/maintainers/scripts/verifyUrls
<infinisil> Oh and apparently I committed the result file too at some point
<infinisil> The -1 mean that this url doesn't exist anymore (404 i think)
MinceR has quit [Ping timeout: 245 seconds]
<infinisil> a number above n means that the url got redirected to a new location, the lower the number, the fewer differences from the old url
<infinisil> a number above 0*
MinceR has joined #nixos
<infinisil> However the -1 ones can't really be used, because stuff like `https://example.com/${version}.tar.gz` would only get extracted as `https://example.com/`, which might still give a 404 even though the full one with version works
<infinisil> Then there's also the problem: How to actually replace the urls in nixpkgs with the changed versions?
<infinisil> sed might work, or it might have lots of problems
<symphorien> I had not thought of this problem
rihards has quit [Quit: rihards]
Synthetica has quit [Quit: Connection closed for inactivity]
acarrico has quit [Ping timeout: 260 seconds]
schjetne has joined #nixos
Guest7306 has joined #nixos
alex_giusi_tiri2 has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « sbt: 1.1.4 -> 1.1.6 »: https://git.io/vhWuW
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « sbt: 1.1.4 -> 1.1.6 »: https://git.io/vhWu8
seafood has quit [Quit: seafood]
asuryawanshi has joined #nixos
<Guest7306> Hi guys, still fairly new to NixOS. Someone here provided a temporary workaround for using teamspeak, but I have to rerun/install it every session.
<Guest7306> How can I make it more permanent using nix?
<tilpner> What was the workaround?
schjetne has quit [Ping timeout: 256 seconds]
<Guest7306> It uses NIX_PATH=... followed by nix-shell -p teamspeak_client --run ts3client
<Guest7306> from a non-official nixpkgs git repo
<{^_^}> [nixpkgs] @7c6f434c pushed to master « libbsd-freedesktop: re-init at 0.9.1, use for samba »: https://git.io/vhWui
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<tilpner> It's not pretty, but self-contained: users.users.guest7307.packages = [ (import (fetchFromGitHub { ... }) {}).teamspeak_client) ];
<Guest7306> honestly that's fine for a workaround until the official package gets released
<Guest7306> is fetchFromGithub the actual function?
<tilpner> No, fetchFromGitHub is the actual function (capitalisation)
<tilpner> But that assumes that the "non-official nixpkgs git repo" is on GitHub
<Guest7306> ah missed that, and yeah it is
<Guest7306> for the record the current one-liner to make it work is:
<Guest7306> NIX_PATH=nixpkgs=https://github.com/symphorien/nixpkgs/archive/7ed15eed532a7d9cf267882d5f935f1b34a04622.tar.gz nix-shell -p teamspeak_client --run ts3client &
LnL has quit [Ping timeout: 240 seconds]
<Guest7306> does that look like it'd adapt to your nix expression?
klntsky has quit [Remote host closed the connection]
<tilpner> It would, but let's use nixos-unstable-small. It contains the fix too
<Guest7306> oh really? I had no idea
<Guest7306> alright I'll read some more docs and try and figure it out
<Guest7306> as far I'm aware I just have to add the channel to be able to use the package, right?
<tilpner> Yes
<tilpner> users.users.guest7307.packages = [ (import <nixos-unstable-small> {}).teamspeak_client) ];
<tilpner> ,unstable
<Guest7306> thanks guys, really appreciate it. I'll test it now
jD91mZM2 has quit [Ping timeout: 265 seconds]
newhoggy has joined #nixos
klntsky has joined #nixos
rauno has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<Guest7306> I added and updated the new nixos-unstable-small channel but couldn't seem to find any teamspeak packages with nix-env -qa
<Guest7306> Is there a better way to search for packages? The website only has packages from the main channel I believe
newhoggy has quit [Remote host closed the connection]
newhoggy has joined #nixos
<tilpner> ,unfree
<{^_^}> You cannot install your unfree software? See https://nixos.wiki/wiki/FAQ/unfree
<tilpner> (Though I wonder how it worked before, if this is the issue)
sbdchd has joined #nixos
Ariakenom has joined #nixos
<Guest7306> In my configuration.nix I've allowed unfree but I had forgotten to do so for nix-env
<Guest7306> previously I was using export NIXPKGS_ALLOW_UNFREE=1
newhoggy has quit [Remote host closed the connection]
<Guest7306> but even after exporting it again it still can't find any teamspeak packages
<ben> $ nix eval 'nixpkgs.netcat.name'
<ben> "libressl-2.7.3"
<ben> what happened here??
<infinisil> > pkgs.netcat.name
<{^_^}> "libressl-2.7.3"
<infinisil> Odd
<ben> > pkgs.netcat-gnu.name
<{^_^}> "netcat-gnu-0.7.1"
<ben> $ readlink $(which nc)
<ben> /nix/store/px377rdqk1yqp44zsspcjynkqbvp5ldm-libressl-2.7.3-nc/bin/nc
<gchristensen> netcat-openbsd = libressl.nc; # added 2018-04-25
<ben> that seems unfortunate
<tilpner> Guest7306 - Try it from your configuration.nix (that's better than nix-env anyway)
<infinisil> I personally can and cannot recommend ncat, it has a bunch of nice features more than netcat, but also I think I found a super weird bug with it
<Guest7306> tilpner: I was only using nix-env as it was intended to be a temporary work-around but I'll try it configuration.nix
<Guest7306> I need to import the nixos-unstable-small channel in there as well right?
<tilpner> infinisil - socat is neat too
<Ariakenom> Does nixos run on RPi?
<ben> I only tried to use nix to find the source for netcat so I could figure out if it can set TCP_NODELAY or something
<ben> but I guess if there's so many netcats floating around that's not gonna work
<tilpner> Guest7306 - Yes, as I said above (though you may need to add config.allowUnfree = true;
<ben> I'm trying to do the equivalent of socat - tcp:blah:blah,nodelay on someone else's system that doesn't have socat on it :/
<Guest7306> tilpner: I've already allowed unfree in my nix. There's only one thing I'm unsure about - how can I know the exact name of the teamspeak package if I can't find it in any queries?
<tilpner> Why would the name have changed?
<Guest7306> well in the past couple days I've seen it being referenced as teamspeak, teamspeak3, ts3client, and teamspeak_client
<tilpner> Just use the name you used in the workaround
<tilpner> (the manual one)
<Guest7306> it's just odd that I couldn't find it it in any queries despite having added nixos-unstable-small to my channels
<tilpner> I'd be guessing as well, I don't use nix-env at all
<tilpner> You may have done it wrong, nix-env isn't the most intuitive tool
<Ariakenom> tilpner: Thanks. Does anyone know how the versions match up against rpi zero w?
<Guest7306> I've followed the advice as in https://nixos.wiki/wiki/FAQ#How_can_I_install_a_package_from_unstable_while_remaining_on_the_stable_channel.3F yet nixos-unstable-small was still not found on the search path
<gchristensen> vcunat: I think t2 is fixed now?
<tilpner> Guest7306 - What's your NIX_PATH, and what's the content of /root/.nix-channels?
<Guest7306> /root/.nix-channels has:
<Guest7306> https://nixos.org/channels/nixos-unstable-small nixos-unstable-small
<Guest7306> and echo $NIX_PATH gives:
<Guest7306> nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
<Guest7306> (sorry for flooding chat)
GiGa has joined #nixos
<tilpner> If you just want the quick workaround to be a little more permanent:
<tilpner> NIXPKGS_ALLOW_UNFREE=1 nix-env -f channel:nixos-unstable-small -iA teamspeak_client
camsbury_ has quit [Ping timeout: 256 seconds]
<tilpner> You might be running into a Nix2 bug here
YaZko has quit [Quit: YaZko]
<GiGa> Anyone else have an issue with Gnome 3 and an (older) Nvidia card in that pressing meta will sometimes crash Gnome Shell. When it does it for a second time you're demped back to the login screen
<GiGa> ?
<Guest7306> tilpner: Oh wow that worked perfectly, thanks a ton!
YaZko has joined #nixos
<Guest7306> I'm a little mystified and disappointed as to why the configuration.nix didn't work but oh well
endformationage has joined #nixos
hph^ has joined #nixos
<tilpner> It would have worked just fine with fetchFromGitHub
<Ariakenom> I've done no nix before. Is making an SD image with SSH login on a RPi0w reasonable?
<Guest7306> I was trying the let unstable = import <nixos-unstable-small> ... method but with no luck
<tilpner> Yes, that's a known bug
<tilpner> Which... should probably be linked in that wiki entry
<Guest7306> Ah ok, no problem then
<Guest7306> yeah would help a little bit
<Guest7306> How would I be able to tell when the fix is made on the main channel?
<tilpner> If there was a main channel, it would be master
<tilpner> If you're asking about 18.03, that... won't happen unless someone backports it
<tilpner> And it should soon get to nixos-unstable
<Guest7306> I was under the impression that someone here was working on a fix
Neo-- has quit [Ping timeout: 245 seconds]
<Guest7306> sorry I should have been more clear, I meant what method should I be using to check whether the 18.03 package is patched (in the future)
freeman42x]NixOS has joined #nixos
<vcunat> gchristensen: great if it is :-) (I can't really tell; it was a long-term problem.)
<vcunat> We'll see in time if the errors stop appearing.
<tilpner> Guest7306 - There's a chance other channel names appear next to nixos-unstable-small, but it's not a guaranteed way
<tilpner> Guest7306 - And what you're seeing there, *is* the fix. The problem is fixed, but that fix might never reach 18.03
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/696c6bed4e8 (from 9 days ago, history: https://channels.nix.gsc.io/nixos-unstable)
xeji has joined #nixos
<Guest7306> tilpner: not quite sure I'm understanding - what's stopping it from reaching 18.03?
<tilpner> I'm not familiar with the exact backporting policy. Someone has to backport this fix, it will never automatically reach 18.03 (this is intended, and a feature)
knupfer has quit [Ping timeout: 265 seconds]
<samueldr> Ariakenom: there's a bit of a chicken and egg issue if you want to rebuild the image for raspberry pi, you will need an ARM platform equivalent to the one you wan to build for, so ARMv6 for raspberry pi 1 and 0
<Ariakenom> samueldr: Oh. No cross building? :(
<samueldr> I may be wront, but last time I looked it looked like cross couldn't be used to build the whole systems
<samueldr> wong*
<samueldr> wrong*
<samueldr> there are tricks, e.g. you could use qemu-system or qemu-user to do so, the first would be awfully slow, the latter would be more manageable as it shouldn't really need to build stuff
rain1 has joined #nixos
<Ariakenom> well darn
<Ariakenom> samueldr: thanks a lot. probably saved me hours
<samueldr> though, you coule easily do it in-situ
<samueldr> burn the image to an sd card, use either serial or hdmi+kb and change configuration.nix there
goibhniu has quit [Remote host closed the connection]
cloud-maingo has joined #nixos
blankhart has joined #nixos
schjetne has joined #nixos
newhoggy has joined #nixos
<Ariakenom> Yes. "The base images are configured to boot up with a serial TTY" is nice. But unfortunately don't think I can connect
<gchristensen> it would be really cool if I could add kernel modules without recompiling the entire kernel
<samueldr> Ariakenom: why are you thinking so?
<samueldr> if you have the hardware, it would be a bug if it's not possible to connect, and would need to be fixed :/
<Ariakenom> just don't have any hardware
<samueldr> ah, I would highly recommend getting the serial hardware, it's not only useful for raspberry pis, could be used for other fun projects later :)
<gchristensen> yeah generally super important
newhoggy has quit [Ping timeout: 265 seconds]
<jophish> Thanks gchristensen!
schjetne has quit [Ping timeout: 245 seconds]
<gchristensen> jophish: =)
<MichaelRaskin> gchristensen: well, out-of-tree builds of modules work in general, maybe they could be forced for some of the in-kernel modules too
<gchristensen> MichaelRaskin: sure seems like we should be able to have the technology :)
<gchristensen> the cool thing about mellanox nics is they're really great and nice and fast. the not cool thing is enabling them in the nixpkgs kernel config means a recompile.
<MichaelRaskin> Maybe a trivial break-out attempt could work…
<samueldr> solution: apply silly patches to your kernel, then you always need to rebuild anyway :)
<samueldr> (though yeah, it would still be useful in my situation where there would be only a partial build)
iyzsong has quit [Ping timeout: 256 seconds]
hph^ has quit [Ping timeout: 240 seconds]
sauyon has quit [Ping timeout: 260 seconds]
<Plato[m]> I have lots of directories called "/tmp/nix-shell-*". Are those for open shells, or is this some sort of leak?
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
orivej has joined #nixos
GiGa has quit [Quit: Leaving]
<rotaerk> hmm nix-build always builds my haskell project, even if I didn't change anything; how could I determine why?
<{^_^}> [nixpkgs] @xeji merged pull request #41356 → spotify: 1.0.79.223.g92622cc2-21 -> 1.0.80.480.g51b03ac3-13 → https://git.io/vhCto
<{^_^}> [nixpkgs] @xeji pushed commit from @aprokurov to master « spotify: 1.0.79.223.g92622cc2-21 -> 1.0.80.480.g51b03ac3-13 (#41356) »: https://git.io/vhWaP
periklis has joined #nixos
<{^_^}> [nixpkgs] @xeji pushed commit from @aprokurov to release-18.03 « spotify: 1.0.79.223.g92622cc2-21 -> 1.0.80.480.g51b03ac3-13 (#41356) »: https://git.io/vhWa7
playX has joined #nixos
<playX> How i can change default shell for user via configuration.nix?
<jophish> rotaerk: it must think that the source has changed
<jophish> you can try the nix-diff tool to see how
asuryawanshi has quit [Remote host closed the connection]
<rotaerk> hmm thanks
<jophish> (but I'll hazard a guess that you're running nix-build in the source directory, and that the 'result' symlink is changing)
<jophish> try building with --no-out-link
<jophish> the nix-diff tool is very handy anyway!
asuryawanshi has joined #nixos
<jophish> for a quick look with no extra tools necessary, you could run nix-hash in the source directory
<playX> gchristensen: thanks!
Mateon1 has quit [Ping timeout: 240 seconds]
Mateon3 has joined #nixos
Mateon3 is now known as Mateon1
<pemeunier> Hi! My nixpkgs.config.allowUnfree doesn't seem to do anything anymore. Did something change in the latest nix or nixpkgs?
<rotaerk> hrm, when I do: nix-env iA nixos.nix-diff, it can't find it
<rotaerk> I just did a nix-channel --update nixos and a nixos-rebuild switch
<{^_^}> [nixpkgs] @mbode closed pull request #39014 → adr-tools: init at 2.1.0 → https://git.io/vpJvg
<rotaerk> but it shows up here: https://nixos.org/nixos/packages.html#nix-diff
<rotaerk> suppose I'm a bit behind on channels... 17.03
playX has quit [Ping timeout: 260 seconds]
<azazel> hi guys, anyone knows why defining boot.loader.grub.extraPerEntryConfig doesn't work with efi boot?
majo_ has joined #nixos
<azazel> how can i make it work?
rauno has quit [Ping timeout: 260 seconds]
<samueldr> looking at the implementation, it seems it should work
<samueldr> (though, as the name says, it only works if grub is used)
<azazel> yes, I've the entry for systemd-boot enabled
schjetne has joined #nixos
<azazel> I think that it may be the reason
<samueldr> most probable
<azazel> In fact, It seems to be a systemd-boot config file... I should give some money to the archlinux guys... their wiki is always the right place for an answer
camsbury has joined #nixos
<azazel> but systemd-boot has very few config entries, and none really useful
<rotaerk> yeah, upgrading to the latest channel made nix-diff available for me...
<{^_^}> [nixpkgs] @xeji pushed to release-18.03 « nixos/release-combined: remove keymap tests from tested job »: https://git.io/vhWwZ
logzet has quit [Ping timeout: 265 seconds]
logzet_ has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
alex`` has quit [Ping timeout: 260 seconds]
alex`` has joined #nixos
<infinisil> rotaerk: You probably just used `src = ./.` in your derivation, but you want `src = lib.cleanSource ./.` instead
playX has joined #nixos
<playX> How i can install gnome builder? I can't find package
<rotaerk> infinisil, thanks; I'll check that out. I did use src = ./src, but I overrode it with: src = builtins.filterSource (path: type: baseNameOf path != ".git") drv.src;
<andi-> playX: well there isnt one (yet)
<infinisil> rotaerk: Ah yeah, the thing that causes it is the result symlink as previously mentioned, so you want to exclude that one too
<playX> andi-: that's sad :( My favourite IDE for C++ and Rust
<andi-> playX: there is PR which I started in January. Due to shifts in priorities and frustration about how many dependencies it has I stoped working on it
<rotaerk> well, I'm not sure about that; the source is in a subfolder; the result doesn't go in there
<rotaerk> I'll try it out though
<andi-> i think there might not be a lot more to do. It did already startup but there were issues with the project templtes
periklis has quit [Ping timeout: 276 seconds]
<rotaerk> hmm nix-diff didn't find any differences. I ran nix-instantiate on my default.nix twice, and the resulting derivation was the same for both
<infinisil> rotaerk: Well nix-instantiate doesn't produce a result symlink so that makes sense
<infinisil> (If that were the problem)
playX has quit [Ping timeout: 260 seconds]
<rotaerk> oh, I guess src *is* ./., not ./src
<rotaerk> wonder why
<rotaerk> oh right, because the cabal file says they're in ./src, so it has to run in .
Ariakenom has quit [Read error: Connection reset by peer]
<rotaerk> \o/ cleanSource did it
<rotaerk> thanks again
schjetne has quit [Ping timeout: 245 seconds]
semilattice has joined #nixos
playX has joined #nixos
<playX> Why thats hapenning? I get that when try to use gcc: https://pastebin.com/bXBVRQjz
<rotaerk> what are you running, and in what context, to produce that error
<playX> Just my meson.build file: https://pastebin.com/5GFz2EJC it cant find gcc-ar command
<playX> and 'ar' command
rauno has joined #nixos
bennofs has joined #nixos
<{^_^}> [nixpkgs] @pSub pushed to master « calibre: 2.24.1 -> 2.25.0 »: https://git.io/vhWrF
nixos-noob has joined #nixos
<{^_^}> [nixpkgs] @teto opened pull request #41393 → [wip] linux: translate config to structured config → https://git.io/vhWov
Thra11 has quit [Quit: IRC for Sailfish 0.9]
bennofs has quit [Client Quit]
bennofs has joined #nixos
Guest7306 has quit [Quit: Lost terminal]
nixos-noob has quit [Ping timeout: 260 seconds]
<rotaerk> I'm not familiar with that kind of build file, sorry
<rotaerk> doesn't look like nix
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/7743e5b6c79 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
bennofs has quit [Quit: WeeChat 2.0]
roconnor_ has joined #nixos
roconnor has quit [Ping timeout: 248 seconds]
roconnor_ has quit [Client Quit]
tzemanovic has quit [Remote host closed the connection]
thblt has quit [Quit: ERC (IRC client for Emacs 26.1)]
orivej has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/35a284ad4aa (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<rotaerk> clever, is there anything like buildEnv that actually COPIES all the component build outputs into the combined build output
<rotaerk> rather than relying on symlinks
<rotaerk> I mean, that doesn't seem particularly convenient for distribution of the build
<{^_^}> [nixpkgs] @xeji merged pull request #41371 → pass-import: fix environment bugs → https://git.io/vhCPA
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vhWKY
<playX> What package i need to install for `ar` and `gcc-ar` command?
<rotaerk> from the commandline I just tried running gcc-ar, and it told me: The program ‘gcc-ar’ is currently not installed. You can install it by typing: nix-env -iA nixos.gcc-unwrapped
<{^_^}> [nixpkgs] @Mic92 merged pull request #41390 → gitkraken: 3.6.1 -> 3.6.3 → https://git.io/vhW8r
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vhWK4
<playX> rotaerk: thansk!
<playX> rotaerk: whats about 'ar' command? I get gcc-ar command work,but not an 'ar'
<rotaerk> have you tried just calling it from the commandline to see if you get the same response?
<rotaerk> where nixos suggests a package
semilattice_ has joined #nixos
semilattice has quit [Ping timeout: 276 seconds]
<playX> I don't get same respone, i'm using zsh
<domenkozar> nh2[m]: will fix :)
<rotaerk> there's some command you can run to find what packages contain a given file name, I think
<rotaerk> trying to find it
<{^_^}> [nixpkgs] @matthewbauer pushed to master « qt: fixup from c4cac55d6979ccdbc48cf0daf26e44c79cf5d0f9 »: https://git.io/vhWKH
nuncanada2 has joined #nixos
matthewbauer has joined #nixos
<rotaerk> playX, nix-env -iA nixos.nix-index
<{^_^}> [nixpkgs] @xeji merged pull request #41370 → pass-audit: init at 0.1 → https://git.io/vhCPX
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vhWKF
<playX> Thanks! Now i trying to make work MonoDevelop, it says: "Could not connect to debugger"
asuryawanshi has quit [Ping timeout: 260 seconds]
<rotaerk> hmm nix-index takes a while to build the index
<infinisil> rotaerk: Totally worth it though
<infinisil> nix-index has been really useful to me
goibhniu has joined #nixos
<rotaerk> ar looks like a pain to find; lots of those
<rotaerk> even if I do: nix-locate -w \/ar
nuncanada has quit [Ping timeout: 265 seconds]
petar_ is now known as petar
petar has quit [Quit: Reconnecting]
petar has joined #nixos
<rotaerk> now I'm curious how the commandline suggestions telling me what to install work, if I didn't have nix-index yet
<matthewbauer> isn't nix-index broken currently? https://travis-ci.org/matthewbauer/nix-index-travis/jobs/386838492
<rotaerk> well according to matthewbauer it apparently is
<infinisil> rotaerk: nix-locate /bin/ar
schjetne has joined #nixos
<rotaerk> ah, yeah
<rotaerk> playX, once you get the index built, run: nix-locate -w /bin/ar
playX has quit [Quit: Page closed]
<rotaerk> or that
<infinisil> Oh I didn't know about -w, nice
LnL has joined #nixos
<rotaerk> so uh, either 1) is there something like buildEnv that actually puts files, rather than links, or 2) if I did use buildEnv, what would be the appropriate way to prepare it for distribution?
<infinisil> rotaerk: Why do you want it to copy it?
<rotaerk> I have a haskell project derivation and a shader file derivation (it reads all the GLSL shader files and compiles them to SPIR-V)
<infinisil> Nix builds are meant to be distributed as a set of store paths, not just one store path
<rotaerk> I mean distribution to someone who doesn't use nix
<rotaerk> for actual execution, I need them to be together in the same place, because the executable will be looking for the SPIR-V files in a ./shaders subfolder
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/03ba84eb565 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<rotaerk> and if I combine them with buildEnv, it might be executable by me in my comfy nix environment, but...
<infinisil> rotaerk: Check out also matthewbauer's https://github.com/matthewbauer/nix-bundle :)
<{^_^}> [nixpkgs] @orivej closed pull request #41369 → make-wrapper.sh: Add --export flag → https://git.io/vhCPl
pauricthelodger[ has joined #nixos
<rotaerk> hmm that's cool
<infinisil> But normally the user needs nix to be able to run nix stuff
<rotaerk> I was thinking of nix as just a build tool, where the final derivation output is something I could just zip up and send to someone
<rotaerk> though, I guess they'd be responsible for resolving dependencies manually
<rotaerk> which would suck
<rotaerk> runtime dependencies *
<infinisil> Nah that's not possible
<infinisil> Nix has every dependency as a direct path to /nix/store/<hash>-<name>/...
<infinisil> You can't change that without rebuilding
<infinisil> generally
<joepie91> infinisil: possibly with a chroot-esque wrapper?
logzet_ is now known as logzet
<rotaerk> you mean when an executable needs to dynamically load a shared object, it will look specifically at that path in the store?
<joepie91> yeah
<rotaerk> I see
<infinisil> joepie91: Hmm yeah, I think that's essentially what nix-bundle does
<infinisil> But nix stuff is really meant to be run with a nix store, it all plays very nicely together with the dependencies
<infinisil> and it's super easy to distribute stuff when you do it like this
<rotaerk> well, I'm imagining a situation (probably not for my project, but a more sophisticated one) where the shaders would be replaceable by modders
<rotaerk> I guess in this scenario, the modders would need to familiarize themselves with nix
<infinisil> Nix would work really well for that, get everyone to use nix and it will be easy
<rotaerk> lol
<infinisil> Well not the getting everyone to work with nix part, but the one that follows :)
<rotaerk> :P
<rotaerk> meh, game developers define the tools the modders use; if I made a moddable game and declared they must use nix, they'll have to respect my authoritah
<rotaerk> (or find a hack, at their own risk)
<infinisil> It's really a joy
<infinisil> No more "you need to install foo, bar, qux, and hope that your distro has those and the versions are correct to build this project"
<infinisil> Just `nix-build` and it will work
<rotaerk> thing is modders don't usually build from source
<rotaerk> they just drop in some data files and shit
<infinisil> You can make and serve a cache to not have everybody need to do a source build
<infinisil> rotaerk: By e.g. using domenkozar's new Cachix: https://cachix.org/
<infinisil> :D
<rotaerk> k
<joepie91> rotaerk: also, mind that 'build from source' is a transparent thing in Nix
<joepie91> it's just what Nix does if there are no binary builds available, automatically, and with equivalent results
<joepie91> so familiarity with build tools and such isn't needed
<rotaerk> k
<rotaerk> makes sense
<rotaerk> while you can avoid building from source, with caches, is it possible to use nix for closed-source projects? (just curious; I think if I made a game, I'd actually make it open sores)
<rotaerk> so that they can ONLY get it from the cache, or something
<MichaelRaskin> rotaerk: you can write a Nix package that fetches binaries and installs them
<rotaerk> k
magnetophon has quit [Read error: Connection reset by peer]
<MichaelRaskin> Maybe also patchelf it, so that you can let the same download work on Ubuntu and on Nix, but Nix package would auto-patch the path to libraries
<joepie91> rotaerk: 'source build' in Nix just means 'uses some sort of source data that it turns into a Nix package'; that source data does not necessarily need to actually be source *code*, it can also be a binary, or an archive with binaries and metadata, or whatever else your custom 'build' process does
<joepie91> rotaerk: I have a few packages that use GOG installers as their 'source', for example; it extracts them and then copies over binaries and metadata to the right places, and patchelf's the game binaries to make them work under NixOS
<MichaelRaskin> We have packages for Google Chrome, not only Chromium, after all
YaZko has quit [Quit: YaZko]
<ldlework> infinisil: hey you aruond?
<infinisil> Indeed
<infinisil> I made some more changes, so it might even be testable now :P
<ldlework> infinisil: if I wanted to add your nixpkgs fork, the branch with the znc module, to my channels, how do I do that? How do I then, inside my nixos configuration, utilize the systemd unit module that you have adjusted from your custom channel?
schjetne has quit [Ping timeout: 260 seconds]
<ldlework> Basically, how do I test your thing, without manually cloning it?
<infinisil> Hmm.. Do you really want to use it on your system?
<ldlework> I understand how to get packages from your fork, using import (fetchTarball ...) {};
<ldlework> infinisil: I mean, the same goes for nixops
<infinisil> The chances of it not working are high
<ldlework> but I don't know how to use /modules/ from your fork
<infinisil> Don't think you can do that tbh
<ldlework> infinisil: yeah I'll spin up a nixops
<ldlework> I see.
<ldlework> That's a shame.
<ldlework> We have the ability to pick and choose packages from arbitrary sources, but not modules.
<infinisil> Indeed
<infinisil> Yet at least
<infinisil> My vision is that eventually all package-related modules are provided by the packages themselves. Then you can mix and match modules from whatever source you need
<ldlework> So lets say, sure, I wanted to run my whole system on your fork, just to try out the znc module, how do I do that? Or if I'm going to spin up a new nixops machine, how do I get it to use your fork?
<ldlework> Basically, how do I test your modules at all?
<infinisil> If you wanna use nixops for it:
<infinisil> git clone my nixpkgs, checkout the correct branch
<{^_^}> [nixpkgs] @orivej pushed to master « pandas: fix check with the current pytest »: https://git.io/vhWiB
<infinisil> Create a new deployment (I think this way you can use a separate nixpkgs for your machines and the testing)
<mog> is there something going on with unstable? i did a nixos-rebuild switch --upgrade but the newer kernel is still not showing up when i did a search for it is still showing the older version as well
<infinisil> ldlework: Use -I nixpkgs=/path/to/my/checkout to make it use that nixpkgs instead
<infinisil> Other than that everything should be the same
camsbury has quit [Quit: WeeChat 2.0]
<tenten8401> Figured I'd ask again just to see if anyone had a solution, Is there a way to define a "skeleton" for home folders in NixOS?
<tenten8401> Sort've like how other distros have /etc/skel
<MichaelRaskin> Can /etc/skel be a symlink? Because you can definitely just add a symlink to the /etc entries
<infinisil> tenten8401: What does /etc/skel do exactly?
<tenten8401> infinisil: When a new user is created, the contents of /etc/skel are copied to that user's home directory
<tenten8401> It allows for a certain setup for your NixOS desktop to be defined while installing instead of doing it manually
<infinisil> And what MichaelRaskin suggested doesn't work?
dbmikus has joined #nixos
<infinisil> > option "security.pam.makeHomeDir.skelDirectory"
<{^_^}> "Path to skeleton directory whose contents are copied to home\ndirectories newly created by <literal>pam_mkhomedir</literal>.\n"
<infinisil> Default is /var/empty, you can set it to /etc/skel and use the environment.etc option to populate it
<infinisil> tenten8401: ^
<infinisil> Or you can set it to /path/to/my/skel and use any stateful skeleton
<tenten8401> Ahh, am I going to have to use environment.etc to populate it? Could that be why it wasn't getting copied earlier?
steell has joined #nixos
<tenten8401> I tried that option and nothing seemed to work
<tenten8401> but I manually created my file
<infinisil> Oh and it seems you need
<infinisil> > option "security.pam.services.<name?>.makeHomeDir"
<{^_^}> "Whether to try to create home directories for users\nwith <literal>$HOME</literal>s pointing to nonexistent\nlocations on session login.\n"
<infinisil> But not sure what <name?> uses that
matthewbauer has quit [Ping timeout: 240 seconds]
foldingcookie has joined #nixos
<foldingcookie> how can I get "nix show-derivation" to show me the derivation of mesa 18.03 that's currently in nixpkgs?
<foldingcookie> 18.0.3*
matthewbauer has joined #nixos
<infinisil> (Testing if this works: nixpkgs/.version )
<tenten8401> infinisil: I take it I should probably disable createHome under my user?
<infinisil> Oh, hmm.. Maybe nixos overrides it with the createHome, right.
<infinisil> I'm not sure though, just a bunch of clues
<FRidh> foldingcookie: $ nix show-derivation -f channel:nixos-18.03 mesa
<FRidh> pick whatever channel you want
<infinisil> tenten8401: Nixos is a bit weird because it uses a custom script to manage users, and here is the part of it that handles createHome: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/config/update-users-groups.pl#L214-L218
chessai has joined #nixos
<foldingcookie> what determines the system nix channel?
<foldingcookie> (for nixos)
shlevy has quit [Ping timeout: 256 seconds]
<FRidh> The channel root has configured, or, when configured, `system.autoUpgrade.channel = https://nixos.org/channels/nixos-17.03;`
camsbury has joined #nixos
shlevy has joined #nixos
<foldingcookie> FRidh: how do those two interact?
<tenten8401> infinisil: so enabling createHome should just use PAM anyways to create it?
<FRidh> foldingcookie: what do you mean? If you do not turn on autoUpgrade, it will default to the channel root has.
<foldingcookie> and if you do, does it care about root's channels at all?
<infinisil> tenten8401: It seems like it, but no idea which pam service actually creates the homes
<FRidh> no
<foldingcookie> thanks
<infinisil> useradd?
<FRidh> Wait, no, I would imagine it would still use root's channel in case root does an opration directly.
<infinisil> tenten8401: If it's useradd, it might work by setting `security.pam.services.useradd.makeHomeDir = true` in your configuration.nix
<foldingcookie> what does "does an opration directly" mean? does root not have a private nix environment like other users?
<tenten8401> I'll mess with it for a bit
<tenten8401> and get back to y'all
schjetne has joined #nixos
Ariakenom has joined #nixos
YaZko has joined #nixos
papika has joined #nixos
Neo-- has joined #nixos
dvim has quit [Quit: WeeChat 2.1]
majo_ has quit [Ping timeout: 256 seconds]
LnL has quit [Ping timeout: 248 seconds]
pie__ has joined #nixos
freeman42x[nix] has joined #nixos
pie_ has quit [Ping timeout: 240 seconds]
sw4n has quit [Quit: Quit]
himmAllRight has joined #nixos
FRidh has quit [Quit: Konversation terminated!]
schjetne has quit [Ping timeout: 260 seconds]
aarvar has joined #nixos
logzet has quit [Remote host closed the connection]
<{^_^}> [nix] @volth opened pull request #2205 → straightforward implementation of 'nix copy' → https://git.io/vhW1q
knupfer has joined #nixos
logzet has joined #nixos
andymandias has quit [Ping timeout: 265 seconds]
robstr has quit [Quit: WeeChat 1.9.1]
knupfer has quit [Ping timeout: 265 seconds]
andymandias has joined #nixos
steell has quit [Ping timeout: 256 seconds]
vcunat has quit [Quit: Leaving.]
<phry> Just a question on nixpkgs: Is there another way than adding a package to all-packages to have it be built by hyrda? I have a module that requires a package with an override, and only specifying that in the module file means that every user has to build it, or am I wrong?
<matthewbauer> phry: that's basically how it works right now
<{^_^}> [nixops] @srghma opened pull request #965 → Feat: aws nvme support (WIP) → https://git.io/vhW1j
<phry> matthewbauer: okay, I guess I'll have to accept that then
SagnikS has joined #nixos
<SagnikS> Hey!
<SagnikS> I wanted to install Nix on a RAID setup.
spear3 has joined #nixos
<SagnikS> In arch we added the arrays through mdadm and export the config to mdadm.conf and mdadm_udev was added to the mkinitcpio
jules has joined #nixos
jules is now known as Guest73519
<phry> SagnikS: usually I'd say just mount everything correctly before calling `nixos-generate-config`. Your hardware-configuration should reflect everything you need
<phry> SagnikS: https://nixos.wiki/wiki/NixOS_on_ZFS also as a setup that contains a RAIDed non-zfs partition. You might want to look at that (or use zfs zraids instead of mdadm raid, zfs is great ;) )
<infinisil> zfs ftw \o/
<SagnikS> I was always getting an error of /boot can't be probed or smth like that. Not sure. Will give a try to ZFS now.
<SagnikS> Funny how I use ZFS in a production server bcz it came bundled with Proxmox
<SagnikS> :P
<phry> SagnikS: but when using zfs: read about zfs. For one, it is definitely different from classical filesystems, and you'll miss out on a great number of features if you "just use" it
<SagnikS> Yep, correct. That happened to me when I was using btrfs :P
<phry> ^^
<Guest73519> hi, i upgraded from 17.03 to 18.03 but packages like firefox, docker are not upgraded. Is there something else to do?
<symphorien> how did you upgrade ?
<SagnikS> IDK how I never came to know about NixOS before
<SagnikS> Probably the most different OS I've ever tried
<phry> SagnikS: I'll just name a few things you should know about: zraid, deduplication, compression, native encryption, snapshots, zpools, arc
<SagnikS> The problems Nix tries to mitigate are some really irritating issues tbh.
<SagnikS> Thanks ;)
<symphorien> Guest73519: did you do all the nix-channel mitigation as root ?
<symphorien> s/mitigation/manipulation/
<phry> SagnikS: you'll get used to it. Most things can be done in a way that feels very simple once you get to know Nix. Sometimes, you'll have to pull off weird shit though ;)
<Guest73519> symphorien: yes
<symphorien> can you paste the output of sudo nix-channel --list ?
<SagnikS> Would be fun ;)
<Guest73519> # nix-channel --list nixos https://nixos.org/channels/nixos-18.03
<symphorien> you did nixos-rebuild switch after that ?
<phry> Guest73519: I'll have a go at it: did you install firefox, docker etc. using "nix-env -i"? In that case, they won't update with a nixos-rebuild switch.
<symphorien> ah right
<Guest73519> docker is in the configuration.nix
<Guest73519> and firefox also
<symphorien> but are they also in nix-env -q ?
<Guest73519> yes
<symphorien> then remove them
<symphorien> you don't need them in both places
<Guest73519> so all i need is to remove them, then specify it in configuration.nix and run the command nixos-rebuild switch?
<symphorien> yes
schjetne has joined #nixos
<Guest73519> ok i'm going to do that
<Guest73519> thanks
<symphorien> to update things in nix-env , use nix-env -u --leq
<symphorien> but (imo) I'd favor configuration.nix over nix-env
<papika> symphorien: speaking of, how would II take changes I've made using nix-env and "save" them to configuration.nix?
<infinisil> papika: Can't do
<{^_^}> [nixpkgs] @volth opened pull request #41394 → [staging] cpan2nix: update perl packages → https://git.io/vhWMb
<symphorien> nix-env -q is the "best" way
<papika> like installing a package imperatively and now wanting it declaratively. do I just need to remember and write down everything I do and then redo it all?
<papika> infinisil: hmm ok
<infinisil> papika: Yeah what symphorien said, you can list them like that, then you could put all of those into your configuration.nix manually
<infinisil> ,nix-env-r
<{^_^}> A simple way to install all your packages declaratively is to use `nix-env -ir default.nix` with the file of the form `with import <nixpkgs> {}; { inherit hello; }` to install hello. Note that with the -r switch this removes all your previously installed packages
<infinisil> However there's this ^^
<{^_^}> [nixpkgs] @qolii opened pull request #41395 → libarchive: pull in patch to support LibresSSL-2.7. → https://git.io/vhWDv
<papika> I see
<papika> {^_^}: infinisil: ok thanks guys :)
winem_ has joined #nixos
Guest73519 has quit [Quit: Page closed]
LnL has joined #nixos
matthewbauer has quit [Ping timeout: 265 seconds]
<justanotheruser> what are the typical ways of speedin gup a build?
tertle||eltret has joined #nixos
SagnikS has quit [Quit: Page closed]
thblt has joined #nixos
schjetne has quit [Ping timeout: 265 seconds]
tenten8401 has quit [Quit: Page closed]
<norfumpit> phry: do i basically need to pull the configuration.nix file from the remote machine? hardware-configuration included?
norfumpit has quit [Quit: norfumpit]
norfumpit has joined #nixos
xeji has quit [Quit: WeeChat 2.0]
thblt has quit [Remote host closed the connection]
<phry> norfumpit: yes, if deploying against a physical machine you will need the partition stuff from hardware-configuration and the bootloader config. most likely a few other things, too
<papika> is anyone able to lead me in the right direction for writing code inside of a configuration.nix? a config value expects a filename, but the file doesn't exist/is changing. I'd like to have the evaluator stop, create the file with some content from another file, and return the path to the newly created file... is that possible?
dbmikus has quit [Ping timeout: 265 seconds]
<infinisil> papika: What are you trying to do? This heavily smells like an XY problem
<papika> kinda like `touch newfile; cat something >> newfile; cat otherfile>> newfile; return filename `
<papika> oh haha good point
spear3 has quit [Remote host closed the connection]
<papika> so I have my initrd set to start an ssh server on boot that I can connect to and decrypt the hard drive so the system can continue booting. this was actually really simple to step /but/ it uses dropbear by default. and the actual fully booted server uses openssh
<papika> the host keys are not compatible. so I get "WARNING POTENTIAL MAN IN THE MIDDLE ATTACK" every time I reboot
<infinisil> You maybe just want to have `the.option = ./otherfile` which reads ./otherfile at evaluation time, copies it into the /nix/store, and returns the path to it. (Well that only happens when the value uses it like "${./otherfile}", but that's pretty much always the case)
xy2_ has joined #nixos
hiratara has quit [Ping timeout: 276 seconds]
<infinisil> Hmm..
<clever> generate a new hostkey that works in both?
<papika> yeah, so I can use dropbearconvert`
<papika> yeah, so I can use `dropbearconvert`
<papika> unfortunately I dont' think I can use one for both. they need to be converted. and it looks lke the dropbear one keeps getting deleted?
hiratara has joined #nixos
<clever> papika: what file appears to be getting deleted?
<papika> if I let it create one in /run/keys or copy and convert my openssh into /run/keys it always gets removed
<papika> the dropbear host key
<clever> ramfs on /run/keys type ramfs (rw,nosuid,nodev,relatime,mode=750)
<papika> ah
<clever> papika: thats a tempfs, its lost on reboot
<papika> yes maybe I can store the two keys somewhere like `~/.keys/` where it won't get deleted
username has joined #nixos
<clever> papika: or under /etc/nixos/
username is now known as Guest51395
<papika> clever: good call
sfultong has joined #nixos
<papika> I got all of that from this nix page btw: https://nixos.wiki/wiki/NixOS_on_ZFS ctrl-f "ssh"
<Guest51395> Hi! How can I install a new package in nixos that has recently appeared on github? I'm using an unstable channel.
<papika> and that's where they said you need to use different ports (!) unfortunately not an option due to network restrictions at my uni
<papika> Guest51395: recently appeared in nixpkgs on github?
<Guest51395> yep
<sfultong> in /nix/var/nix/profiles/per-user/root/channels/ I should see all the channels associated with root, right?
<clever> sfultong: yeah
<sfultong> clevel: hmm, because I'm not :-/
<clever> sfultong: you can also find them in /root/.nix-channels and `nix-channel --list` when ran as root
<clever> sfultong: what are you expecting to file, and what does the other 2 things i mentioned contain?
<sfultong> sudo nix-channel --list reports two channels
<clever> sfultong: its possible that you need to run `nix-channel --update` as root
<sfultong> clever: thanks, I'll try thta
<sfultong> clever: excellent, that was it, thanks!
<Guest51395> Can someone answer me, please?
<sfultong> I thought I would have tried that, but I guess not
<clever> Guest51395: you need to first wait until the unstable channel has updated
<sfultong> this is actually exactly what I was just doing
<clever> Guest51395: http://howoldis.herokuapp.com/
<Guest51395> Oh, thanks! I thought the unstable channel is formed directly from nixpkgs on github.
<clever> Guest51395: unstable only updates when the testing passes
<Guest51395> And if I want nethack with X11 interface. Should I create a new package, or add functionality to an existing one? Now only tty interface is available.
<Guest51395> ?
olto has quit [Quit: ZNC - https://znc.in]
<Guest51395> I think it would be more convenient to create a new package, but I don't know if it would be right.
olto has joined #nixos
__monty__ has quit [Quit: leaving]
logzet_ has joined #nixos
logzet has quit [Ping timeout: 265 seconds]
<rotaerk> interesting
<rotaerk> I ran a nixos update today, from channel 17.03 to 18.03
<rotaerk> with 18.03, my vulkan test program fails when calling vkGetPhysicalDeviceSurfaceFormatsKHR
<rotaerk> but if I boot back into 17.03, it succeeds
<rotaerk> wonder if a driver bug was introduced or something
palo has quit [Ping timeout: 268 seconds]
codygman has quit [Ping timeout: 260 seconds]
contrapumpkin has quit [Remote host closed the connection]
hiratara has quit [Quit: ZNC - http://znc.in]
schjetne has joined #nixos
hiratara has joined #nixos
newhoggy has joined #nixos
<pie__> how can i do modifications like here to my keyboard layout?: https://wiki.archlinux.org/index.php/X_KeyBoard_extension
<symphorien> rotaerk: it is possible that your kernel version changed. Maybe try qn older one
<pie__> the article says add stuff to /etc/X11/xorg.conf.d/ but im guessing thats not how it works on nixos
<pie__> and it doesnt look like theres any way to add something in my home directory
<samueldr> I think I may have a build that is hanging, what's the best way to debug?
<samueldr> using pstree, and re-starting the build, it looks like it would be per-DBD-pg, for munin, which somehow started postgresql and...
<samueldr> I don't know if it's doing anything else
<samueldr> perl-DBD-pg*
nuncanada2 has quit [Ping timeout: 256 seconds]
<clever> samueldr: is the nix sandbox enabled?
<samueldr> always ;)
<rotaerk> how do I see whether nvidia or vesa is being used
<samueldr> if it changes anything, the build was started using nixos-rebuild --build-host ANOTHER.HOST
newhoggy has quit [Ping timeout: 260 seconds]
<rotaerk> nm
<rotaerk> lshw worked
chessai has quit [Remote host closed the connection]
<rotaerk> looks like the kernel upgraded from 4.9.46 to 4.14.46
xy2_ has quit [Ping timeout: 240 seconds]
<rotaerk> I just forced the kernel to 4.9, but its revision is different ... 4.9.104
<rotaerk> and it didn't fix the issue
<samueldr> clever: any tricks? that's what the htop output looks like https://gist.github.com/samueldr/d76ffa4421111706d2fa2331ba409b3e
<clever> samueldr: id say youll need to inspect the script to see what its doing, and then analyze the logs to see why its not doing that
<samueldr> when you say the logs, nix builder logs?
<clever> the output it made while building, and any log files it generated in its /tmp/nix-build dir
Guest51395 has quit [Quit: Page closed]
<samueldr> great thanks, this already helps; I now know where to look
<alexteves> I have a derivation that's failing in _configure_. Is there a simple way to get at the config.log? I assume it's erased along with the tmp dir used for the build so I'd need to change the derivation to output it
schjetne has quit [Ping timeout: 240 seconds]
<colemickens> Any idea if these instructions will work if I have NetworkManager activated? https://nixos.wiki/wiki/Wireguard
knupfer has joined #nixos
contrapumpkin has joined #nixos
<samueldr> ah https://github.com/NixOS/nixpkgs/issues/41199 and that's the issue
knupfer has quit [Remote host closed the connection]
<samueldr> and then, since I now have to kill the build, what's the more proper way to do so?
<samueldr> (luckily enough, I haven't hit a problem like this yet!)
<gchristensen> pkill -u nixbuildN
<samueldr> neat, wasn't sure if there was something else that was needed
<pie__> clever, ugh, any idea where one can find the names for ?keycodes? like RALT, LALT etc?
<clever> pie__: check xev
<pie__> yeah but that gives me stuff like
<pie__> keycode 54 (keysym 0x63, c)
<pie__> whereas id prefer a symbolic keycode name
<pie__> it doesnt name RALT : , keycode 108 (keysym 0xfe03, ISO_Level3_Shift)
<pie__> just says keycode 108
<infinisil> pie__: Ah I know, hold on
<pie__> been googling for like 10 minutes, thanks
<infinisil> pie__: vim $(nix-build --no-out-link '<nixpkgs>' -A xlibs.xproto)/include/X11/keysymdef.h
<pie__> oh...figures
<infinisil> It is rather hidden
<pie__> (seriously they dont have a tool that dumps this, wtf?
<infinisil> And XF86keysym.h for the XF86 media keys and stuff
<infinisil> pie__: 'they'?
<{^_^}> [nixpkgs] @Ma27 opened pull request #41397 → nixos/autosuggestions: add module → https://git.io/vhWHT
<pie__> the xkb tools
<{^_^}> [nixpkgs] @pasqui23 opened pull request #41398 → Webcamoid:init at 8.1.0 → https://git.io/vhWHk
<pie__> anyway im just trying to add some diacritic-ed letters to my english keyboard so here goes nothing. thanks again
<infinisil> Np :)
<{^_^}> [nixpkgs] @pasqui23 opened pull request #41399 → Bash-language-server:init at 1.3.1 → https://git.io/vhWHL
<pie__> infinisil, actually this seems like the wrong thing
<infinisil> Oh rly?
<pie__> this has the stuff like " ISO_Level3_Shift"
shabius has quit [Quit: Leaving]
<infinisil> Oh hmm
<infinisil> You want RALT
dbmikus has joined #nixos
<pie__> yeah (well because presumably the others would be in the same file)
<samueldr> hmmm, I wonder if I should be concerned, I killed the build and... the nixos-rebuild completed
seafood has joined #nixos
shabius has joined #nixos
<infinisil> pie__: Ah hold on, I might got that too
<samueldr> it was inside the check phase, killed the builder script with the default signal `kill` sends
<rotaerk> hmm is there some way to roll my graphics driver back a bit without changing the kernel version
<infinisil> pie__: Here we go: vim $(nix-build --no-out-link '<nixpkgs>' -A xlibs.xkeyboardconfig)/share/X11/xkb/keycodes/evdev
<pie__> ugh thanks
<pie__> how the heck did you find that
<infinisil> These depend on your keyboard layout though
<pie__> yeah seems so. makes sense actually i guess
<pie__> would be cool if there was a notion of the physical keymap before the software keymap and i could just symbolically remap stuff
<infinisil> There is
<pie__> so yeah i guess its probably better to jst use raw scancodes for the letters i need
blahdodo has quit [Ping timeout: 256 seconds]
winem_ has quit [Ping timeout: 255 seconds]
<infinisil> look into the /xkb/geometry/pc
<pie__> huh?
<infinisil> in the same package
<pie__> hm thanks. man this stuff is complicated. guess ill just stick with the integer keycodes for now and look into this more later
<infinisil> These sections fully describe what the keyboard looks like, you can even render them with postscript
blahdodo has joined #nixos
<pie__> i meant more like physical "a" -> some other letter
<infinisil> I spent hours digging into xkb, it really is complicated..
<pie__> like, it has an "a" label on it on my physical keyboard
<infinisil> Ah, hmm
<pie__> well actually i suppose this could be handled on software level, though that might get complicated implementation-wise
<pie__> if you could do some sort of replacement rules
<pie__> (inb4 make xkb turing complete)
freeman42x[nix] has quit [Ping timeout: 276 seconds]
<infinisil> xkb is software?
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/49dc36c9a85 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<infinisil> pie__: You could of course define your own key aliases (I think that's what those <XXXX> things are called)
sfultong has quit [Quit: leaving]
<pie__> bleh, i meant software level as in afterthe mapping of physical keys to some layout is done, and then you apply some replacement rules
<infinisil> xkb can do that too actually
palo has joined #nixos
palo has quit [Changing host]
palo has joined #nixos
<infinisil> Hold on I got an example somewhere
<infinisil> The Redirect's allow you to change the symbol to another keys
<pie__> hm ok, but that looks like its on a lower level i want ideally to do something like "a" -> "b"
<pie__> or rather, keyof("a") -> key_with_4_levels [a, A, á, Á]
<infinisil> Well xkb can't reasonably provide a mapping from keycodes to letters that are on them for every keyboard out there
<infinisil> So you'll have to either use the keycode or make this mapping yourself
<pie__> sure but this should work if you already have a given layout for it though
<pie__> i mean should be theoretically possible
<pie__> meanwhile i typed the stuff into the config i cobbled together https://bpaste.net/show/fe4603d8bfa4
<infinisil> How would you have such a given layout already though?
<pie__> im modifying the standard qwerty layout
<pie__> not sure about the syntax if its key <number> or key number
<pie__> right now xkbcomp complains about the following: "syntax error: line 7 of .xkb/pls \n last scanned symbol is: A
<pie__> "
<infinisil> What you could do is add key code definitions that map e.g. `<AAAA>` to `<AD11>`
<infinisil> Then you can define symbols with <AAAA>
<pie__> well anyway its not a big deal for now if i can just get this to work
<infinisil> pie__: what's the file now?
<infinisil> Well <38> isn't valid
<pie__> do i NEED to use the symbolic names for numeric keycodes? >_>
<pie__> for this "key" syntax
<infinisil> Hmm, it might work if you define <1> to be key code 1
<infinisil> Oh hold on I found something
<infinisil> Check out keycodes/aliases
<ldlework> Is there anyway to set channels during a nixos-install?
<pie__> oh w00t that looks good
<ldlework> Like if your configuration.nix is already setup to utilize a non-standard channel
<infinisil> These's definitions for the key codes in there for certain qwerty
<ldlework> I'm not sure how you'd bootstrap a system
<infinisil> layouts like qwerty*
<pie__> im guessing this is the classic "latin codepage"
<pie__> but i mean i cant do somethng like key 123 {...}
<pie__> geez xkb, you dont let me go high, level, you dont let me go low level, stuck in the middle with you :pp
<pie__> infinisil, ok i fixed those but its still failing to compile with the same error. maybe it doesnt like that i put unicode characters in the config?
<infinisil> pie__: Ah yeah you need to include them
<infinisil> `include "aliases(qwerty)"` in the xkb_keycodes section
<pie__> if i wanted to waste half my life shaving this yak i would rewrite xkb
<infinisil> Don't do it
<infinisil> I bet it was painful to write in the first place
<infinisil> It has so so many things
<infinisil> pie__: Maybe just use a simple nix file that generates the xkb file?
<pie__> i added xkb_keycodes { include "aliases(xkb)" }; but it still chokes on the same thing
<pie__> bleh
* pie__ thinks one thing and writes another
<infinisil> aliases(xkb) doesn't exist, you need aliases(qwerty)
<pie__> yes i fixed that now but still the same issue
<infinisil> The error is that LatA etc. doesn't exist?
<pie__> syntax error: line 8 of pls
<pie__> last scanned symbol is: A
<infinisil> the current file?
<infinisil> Ah, those symbols might not work just like that
<infinisil> pie__: you need to use the keysymdefs for that
<infinisil> You can also use raw unicode ones with 0xffffffff
<infinisil> Joy!
<pie__> am i going to manually have to add raw unicode stuff with Uxxxx
<pie__> oh ok wonderful
dbmikus has quit [Ping timeout: 265 seconds]
<infinisil> I'm pretty sure those files aren't meant to be written by hand if avoidable
<pie__> well i havent seen an tools
<infinisil> Yeah me neither..
<pie__> open source is generallz strong on tooling *rolls eyes*
<pie__> xev gives such: state 0x0, keycode 35 (keysym 0xfa, uacute), same_screen YES,
<pie__> XLookupString gives 2 bytes: (c3 ba) "ú"
<pie__> XmbLookupString gives 2 bytes: (c3 ba) "ú"
<pie__> cant i just reverse-map uacute somehow?
<infinisil> Well most users are content with setxkbmap
<pie__> found this by accident https://www.drupal.hu/files/xkb-hu.txt
<infinisil> pie__: It's not even reverse mapping, it's just converting that character to a 0xffffffff representation
<pie__> looks like its by someone that has a clue what theyre doing