gchristensen changed the topic of #nixos to: NixOS stable: 18.09, beta: 19.03 https://discourse.nixos.org/t/nixos-19-03-feature-freeze/1950 || 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, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018
<laalf> Nope, doesnt work
goibhniu has quit [Ping timeout: 245 seconds]
<ottidmes> no errors?
<ottidmes> could it be a bug in your sxhkd config file?
<laalf> i sent the link ealier
<laalf> the config looks good
growpotkin has joined #nixos
<growpotkin> is anybody else able to install the UHC compiler?
<growpotkin> It seems like it is a dependency for itself when I try to install it lol
<growpotkin> `nix-shell -p haskellPackages.uhc-light` ==> ...building... "cannot build UHC; No uhc found"
<ottidmes> laalf: looks good is not what we are after, if you start it manually does it run with that config? is it the same config on your other distros?
adamantium has joined #nixos
<laalf> ottidmes:same config on other distros, doesnt run on nixos
jluttine has quit [Ping timeout: 246 seconds]
<adamantium> Yo o/ I have a probbbbblem with my nixos install. help ;-) output of nixos-rebuild switch https://gist.github.com/092ab51036be9f2b4ce0a2ac84d82e97
<adamantium> I didn't think it was possible to break nixos :(
<growpotkin> lol
<growpotkin> adamantium: happens all the time m8
<adamantium> WAT
<growpotkin> adamantium: so it looks like a python package is failing to build for you. Does that sound about right?
<adamantium> NO CLUE man
<adamantium> i only explicitly ask for one python package in my configuration.
<adamantium> i could comment it
<growpotkin> adamantium: "azure-mgmt-compute"
<growpotkin> is the failing python pack
<adamantium> i dont know what would even want that.
<adamantium> I only use certifi really
<pbb> Hi, since I reinstalled my laptop, my trackpoint and my physical buttons are not working anymore. The mouse pad works, but sometimes it responds very badly, as if there was no graphics acceleration (but there is, that's not the problem).
<growpotkin> it looks like it is associated with a Virtual Machine software
<ottidmes> laalf: I can't help you more, it should just be matter of standard debug steps. Like does is it only sxkhd that does not run but bspwm does, what do the logs say, what if you run it your self explicitly, what if you check the contents of the session commands file and try to run the command that they run yourself manually as root, etc.
<growpotkin> adamantium: are you trying to install any kind of VM or remote desktop stuff?
<pbb> I'm using the same configuration as before, so did a recent update in unstable break some input devices for someone else?
<adamantium> growpotkin: literally makes zero sense. something is bad. this system doesn't use any virtualbox or libvirt. nothing
<adamantium> gnome3 maybe does it pull in gnome boxes or something?
linarcx has joined #nixos
<laalf> ottidmes: sxhkd says nothing.
<linarcx> Hi guys. Why prezto does not exists in 18.09 channel?
<ottidmes> linarcx: it just keeps running, no exit code?
<growpotkin> adamantium: I couldn't tell you, I don't remember the exact command; but there is a nix-env command that lets you see dependencies. You can ask it what in your config depends on "azure-mgmt-compute" to help narrow down the culprit
<laalf> ottidmes:yep.
<ottidmes> linarcx: is that a zsh thing? if so, its under zsh-prezto
<linarcx> No, it cannot find it.
<adamantium> growpotkin: so this is the price i pay for using unstable channel
<adamantium> growpotkin: hmm, not certifi gdm or gnome, i commented all related configurations and it still errs
Ariakenom has quit [Quit: Leaving]
<growpotkin> adamantium: try `nix-store --query --references $(nix-instantiate '<nixpkgs>' -A pythonPackages.azure-mgmt-compute)`
<linarcx> ottidmes: And it automatically find `. zpreztorc`? No need for extra configuration?
<ottidmes> linarcx: no clue, never used it myself
<{^_^}> [nixpkgs] @Infinisil merged pull request #56556 → toybox: install all binary links in one directory → https://git.io/fhAtN
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fhxmN
<growpotkin> yeah identical to mine
drakonis has quit [Quit: WeeChat 2.2]
sondr3 has quit [Quit: WeeChat 2.4]
linarcx has quit [Remote host closed the connection]
<growpotkin> the unfortunate thing here, is that it is a "setuptools" dependency, which is in almost every single python package
<growpotkin> the good news is, it is specific to python2.7
<adamantium> is unstable broken for everyone?
justanotheruser has quit [Quit: WeeChat 2.2]
<growpotkin> yeah I mean unstable has packages that are "unstable"
justanotheruser has joined #nixos
<adamantium> if it is, i dont mind waiting it out
<growpotkin> but things only break if you try and install something that is messed up at that time
<adamantium> but i wonder if *I* broke something that needs manually fixed
<growpotkin> your issue is going to come down to one specific package that you are trying to isntall
<growpotkin> install*
<growpotkin> did you recently install something new?
<adamantium> hard to say
<growpotkin> or is this a result of moving your whole config over to unstable?
<adamantium> i had auto upgrade enabled
<growpotkin> but have you been on unstable for a while now?
<ottidmes> laalf: if it runs, without an error, seems to imply that its not a matter of it not starting when starting the session, rather that it somehow does not load the config or some such, so if I were you, I would experiment with a simple config that just opens a terminal or whatever and supply that directly with sxhkd -c simple-config
<adamantium> and maybe i ran a nixos-switch rebuild simultaneously during an auto ugprade, that is what I think happened
<{^_^}> [nixpkgs] @Infinisil merged pull request #53463 → nixos/duplicity: init → https://git.io/fh3dI
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fhxmp
<adamantium> i've been on unstable a 4-5 days upgrading daily
<growpotkin> rebuilding and upgrading shouldn't be an issue, the store lock keeps it from conflicting with each other
<adamantium> k
<growpotkin> I would try updating your channels now, collecting garbage, and then trying a rebuild
<growpotkin> just to get things "fresh"
drakonis has joined #nixos
<growpotkin> and then I would start using "--show-trace" when you build to find the specific package's dependency chain that leads you to the crash.
<growpotkin> when you find the culprit you can tell your config to install that package from the "stable" channel rather than unstable; while building everything else on unstable
<adamantium> doing it now
<adamantium> maybe i should try LUSTRATE ? i think it was called
<yl[m]> Mic92: I've updated #56500 to address your comments. I have a question though: how does nox figure out which packages need to be rebuilt?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/56500 (by kalbasit, 3 days ago, open): go_1_12: init at go 1.12
mbrgm_ has joined #nixos
mbrgm has quit [Ping timeout: 250 seconds]
mbrgm_ is now known as mbrgm
<justanotheruser> I'm trying to add a cron job, what am I doing wrong? https://paste.debian.net/plain/1071335
<justanotheruser> (I fixed rootw, now it says root)
phreedom_ has quit [Remote host closed the connection]
phreedom has joined #nixos
<{^_^}> [nixpkgs] @amazari opened pull request #56794 → chromium: Add optional vaapi hw video decoding support → https://git.io/fhxY8
silver has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @matthewbauer pushed to matthewbauer-patch-1 « ghc863: dont add extra libs »: https://git.io/fhxY2
<{^_^}> [nixpkgs] @matthewbauer opened pull request #56795 → ghc863: dont add extra libs → https://git.io/fhxYa
ng0 has quit [Quit: Alexa, when is the end of world?]
dansho has quit [Ping timeout: 245 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
black-brick has joined #nixos
ddellacosta has quit [Ping timeout: 245 seconds]
ddellacosta has joined #nixos
<black-brick> anyone of you is using vscode? I'm trying to edit but I need to have sudo rights so it pops a button saying "retry as sudo..." and when i click on it, it just reappears since it didnt work. My user has sudo rights
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhxYP
<Myrl-saki> losetup -P is broken.
lsyoyom has quit [Ping timeout: 255 seconds]
<Myrl-saki> [myrl@myrl-lappy:/etc/nixos/nixpkgs]$ git status
<Myrl-saki> HEAD detached at 07e2b59812d
qyliss^work has quit [Quit: bye]
qyliss has quit [Quit: bye]
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rusty1 has joined #nixos
<Myrl-saki> Okay, maybe my desktop is broken. Wtf.
<Myrl-saki> losetup works okay on my laptop.
<Myrl-saki> Maybe it's the kernel version.
jluttine has joined #nixos
jluttine has quit [Ping timeout: 245 seconds]
<ottidmes> black-brick: vscode user here, why would you need sudo rights, normal usage should not require that
<black-brick> ottidmes: yes i know that! im starting vscode as my user but i want to edit a file and i need to be root to edit that file so when i try to save, it says "Failed to save : Insufficient permissions. Select 'Retry as Sudo' to retry as superuser."
<black-brick> ottidmes: so i click on the retry as sudo button but it doesnt work
<ottidmes> black-brick: ah, like so, let me try, I tend to just use nano for those files
<black-brick> ottidmes: ohhh ok!
nikivi has quit [Quit: ZNC is awesome]
jluttine has joined #nixos
nikivi has joined #nixos
mbrgm_ has joined #nixos
<ottidmes> black-brick: same issue for me, I had not even considered using vscode to edit files owned by root, most of the time its just small changes so so far, sudo nano has worked for me
lsyoyom has joined #nixos
qyliss has joined #nixos
<black-brick> ottidmes: oh ok kinda glad it's not just me but i think it's annoying since it should work :(
qyliss^work has joined #nixos
mbrgm has quit [Ping timeout: 264 seconds]
mbrgm_ is now known as mbrgm
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f43a553e1f7 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
simukis has quit [Quit: simukis]
<ottidmes> black-brick: this is the only solution I have seen: https://askubuntu.com/questions/803343/how-to-run-visual-studio-code-as-root/820205#820205 but I think running it as root is too dangerous myself
<black-brick> ottidmes: yea saw that too but im pretty sure it's supposed to work with clicking the retry as sudo button
adamantium has quit [Ping timeout: 250 seconds]
ddellacosta has quit [Ping timeout: 268 seconds]
<ottidmes> I dont even get that button
ddellacosta has joined #nixos
<black-brick> ottidmes: oh well haha
<{^_^}> [nixpkgs] @matthewbauer merged pull request #56645 → llvm8: init → https://git.io/fhAoC
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fhxOf
kp__ has quit [Quit: WeeChat 2.4]
endformationage has joined #nixos
alex`` has quit [Ping timeout: 255 seconds]
sigmundv has quit [Ping timeout: 250 seconds]
devalot has quit [Remote host closed the connection]
vk3wtf has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
black-brick has quit [Quit: Page closed]
stepcut has joined #nixos
Supersonic has quit [Ping timeout: 264 seconds]
jb55 has joined #nixos
Supersonic has joined #nixos
slack1256 has joined #nixos
<{^_^}> [nixpkgs] @veprbl opened pull request #56797 → texlive: 2018 -> 2018-final → https://git.io/fhxO4
kvda has joined #nixos
Rusty1 has quit [Ping timeout: 245 seconds]
vk3wtf has quit [Ping timeout: 258 seconds]
stepcut has quit [Remote host closed the connection]
ErAsMuS has quit [Quit: END-AUMF]
stepcut has joined #nixos
iqubic has joined #nixos
stepcut has quit [Ping timeout: 255 seconds]
<iqubic> Can I install AppImage files on NixOS?
<slack1256> is that the common installation format pushed ubuntu?
<iqubic> yeah, I think so.
counting1 has joined #nixos
countingsort has quit [Ping timeout: 255 seconds]
slack1256 has quit [Ping timeout: 245 seconds]
infinee has joined #nixos
<hyper_ch> isn't ubuntu pushing "snap" or "snappy" or something?
slack1256 has joined #nixos
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
<iqubic> It's snap.
stepcut has quit [Ping timeout: 245 seconds]
wedens has joined #nixos
<iqubic> But I have an AppImage thing that I want to install right now.
<{^_^}> [nixpkgs] @dtzWill opened pull request #56798 → llvmPackages_8: rc2 -> rc3 → https://git.io/fhxOH
noonien has quit [Quit: Connection closed for inactivity]
phreedom has quit [Remote host closed the connection]
<CMCDragonkai> During a nix-build, is there some way to acquire the current Git commit ID that the build is occuring from? Something like `builtins.readFile` but instead calls `git rev-parse HEAD`?
phreedom has joined #nixos
<CMCDragonkai> I suppose I could read `.git/refs/heads/master` using `readFile`.
<slack1256> CMCDragonkai: you mean the commitID of the nixpkgs you're bulding on top? or the commitId of the revision gotten from fetchFromGithub?
<CMCDragonkai> No from my repo
<CMCDragonkai> Like I have a project, inside it has `default.nix` and `release.nix`.
<CMCDragonkai> I like to build it, and create something (and embed within itself the commit id of the checked out branch)
<{^_^}> [nixpkgs] @dtzWill opened pull request #56799 → electron{,_3}: updates (fixes, security?) → https://git.io/fhxOF
<slack1256> I don't know if nix-build can do that, but you can pass the current revision as an argument to nix-build and use that.
<CMCDragonkai> slack1256: It can certainly read `.git/refs/heads/master`.
<CMCDragonkai> But this doesn't resolve the issue when the Git repo is unclean. Necessitating the calling of some shell function to check if the repo is unclean or not.
<{^_^}> [nixpkgs] @dtzWill opened pull request #56800 → xinit: 1.4.0 -> 1.4.1 → https://git.io/fhxOA
<CMCDragonkai> slack1256: Also see: https://github.com/NixOS/nix/pull/1854
<{^_^}> nix#1854 (by shlevy, 1 year ago, merged): Add plugins support
<CMCDragonkai> Too bad it's too complicated to just know whether the repo is clean or not
<slack1256> What about using lib.fetchgit ?
<slack1256> It seems you can pass the revision and will do a checkout for that rev on the build directory.
<slack1256> Check nixpkgs/pkgs/build-support/fetchgit/default.nix
<Ashy> is anyone here using gnome on wayland on nixos?
<Ashy> on plasma on wayland for that matter?
<{^_^}> [nixpkgs] @dtzWill opened pull request #56801 → spectral: 2018-09-24 -> 2019-03-03 → https://git.io/fhx3e
<{^_^}> [nixpkgs] @dtzWill opened pull request #56802 → w3m: 0.5.3+git20180125 -> 0.5.3+git20190105 → https://git.io/fhx3v
<{^_^}> [nixpkgs] @peterhoeg merged pull request #56572 → mosquitto: 1.5.4 -> 1.5.8 → https://git.io/fhAZR
<{^_^}> [nixpkgs] @peterhoeg pushed 3 commits to release-18.09: https://git.io/fhx3U
<{^_^}> [nixpkgs] @dtzWill opened pull request #56803 → shapelib: 1.4.1 -> 1.5.0 → https://git.io/fhx3T
<{^_^}> [nixpkgs] @peterhoeg merged pull request #56571 → mosquitto: 1.5.5 -> 1.5.8 → https://git.io/fhAZ3
<{^_^}> [nixpkgs] @peterhoeg pushed 3 commits to master: https://git.io/fhx3k
<{^_^}> [nixpkgs] @dtzWill opened pull request #56804 → libqb,corosync: update; kronosnet: init at 1.7 → https://git.io/fhx3I
jasongrossman has joined #nixos
_rvl has joined #nixos
fusion809 has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #56637 → geoclue2: 2.5.1 -> 2.5.2 → https://git.io/fhArz
<{^_^}> [nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fhx3Y
jasongrossman has quit [Read error: Connection reset by peer]
xkapastel has joined #nixos
<infinee> CMCDragonkai: yes you can do it with fetchGit
<CMCDragonkai> infinee: my src points to the local directory atm
<CMCDragonkai> infinee: are you suggesting to use fetchGit on a local directory?
<infinee> look at that example
<CMCDragonkai> why would i use that to get the commit id of the git repository?
<CMCDragonkai> that already has the commit id
<infinee> if you want to use local repo, I suppose you can change url
<infinee> sorry maybe I misunderstood you. I thought u wanted to 'get' a particular revision
noogie has quit [Ping timeout: 255 seconds]
noogie has joined #nixos
vk3wtf has joined #nixos
<worldofpeace> Ashy: GNOME and wayland should work in unstable. Plasma and wayland is still a WIP, might see it soon though.
vk3wtf has quit [Ping timeout: 264 seconds]
MichaelRaskin has quit [Quit: MichaelRaskin]
orivej has quit [Ping timeout: 245 seconds]
endformationage has quit [Quit: WeeChat 2.3]
hyperfekt has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #56805 → cracklist: 2.9.6 -> 2.9.7, generate dictionary from wordlists → https://git.io/fhx30
infinee has quit [Ping timeout: 245 seconds]
infinee has joined #nixos
<{^_^}> [nixpkgs] @dtzWill closed pull request #56763 → gnutar: 1.31 -> 1.32 → https://git.io/fhANe
gerschtli has quit [Quit: WeeChat 2.2]
gerschtli has joined #nixos
<{^_^}> [nixpkgs] @dtzWill merged pull request #56670 → ponyc: 0.26.0 -> 0.27.0, cleanup, use recent LLVM → https://git.io/fhA68
<{^_^}> [nixpkgs] @dtzWill pushed 5 commits to master: https://git.io/fhx3i
<{^_^}> [nixpkgs] @dtzWill merged pull request #56663 → libpqxx: 6.3.1 -> 6.3.3 → https://git.io/fhAKi
<{^_^}> [nixpkgs] @dtzWill pushed 3 commits to master: https://git.io/fhx3P
<{^_^}> [nixpkgs] @dtzWill merged pull request #56559 → wireless-tools: 30.pre2 -> 30.pre9 → https://git.io/fhAqh
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fhx31
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/7874ca5b610 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<tdeo> is there a way to override a package under a group like xorg.xf86inputlibinput in an overlay?
<tdeo> seems to override the whole group
vk3wtf has joined #nixos
<{^_^}> [nixpkgs] @dtzWill merged pull request #56526 → pantheon.elementary-gtk-theme: 5.2.1 -> 5.2.2 → https://git.io/fhNh9
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fhx3M
ottidmes has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @dtzWill merged pull request #56474 → buildah: 1.4 -> 1.7.1 → https://git.io/fhNPk
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fhx3D
fusion809 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @dtzWill merged pull request #56471 → scfbuild: bump to latest git (Jun 2017) → https://git.io/fhNPv
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fhx3y
<{^_^}> [nixpkgs] @dtzWill merged pull request #56476 → emojione: 1.3 -> 1.4 → https://git.io/fhNPt
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fhx3S
gagbo has quit [Quit: I'm out !]
fusion809 has joined #nixos
<tdeo> https://hahay.es/vzhBF.png this worked
iqubic has quit [Ping timeout: 264 seconds]
danielrf has quit [Ping timeout: 259 seconds]
vmandela has joined #nixos
orivej has joined #nixos
palo1 has joined #nixos
vk3wtf has quit [Ping timeout: 258 seconds]
slack1256 has quit [Remote host closed the connection]
palo has quit [Ping timeout: 250 seconds]
palo1 is now known as palo
Yaniel has quit [Ping timeout: 240 seconds]
disasm_ has joined #nixos
hyper_ch2 has joined #nixos
jasongrossman has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #56530 → libusbmuxd: 2018-07-23 -> 2019-01-18 → https://git.io/fhNjE
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhxsc
vk3wtf has joined #nixos
disasm_ has quit [Ping timeout: 245 seconds]
disasm_ has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
reinhardt has joined #nixos
ddellacosta has quit [Ping timeout: 246 seconds]
jackdk has quit [Ping timeout: 250 seconds]
drakonis has quit [Quit: WeeChat 2.3]
disasm_ is now known as disasm
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/e542fc2c94d (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
rembo10_ has quit [Quit: ZNC 1.7.1 - https://znc.in]
sepi` has quit [Ping timeout: 240 seconds]
[Leary] has joined #nixos
Lears has quit [Ping timeout: 255 seconds]
NightTrain has quit [Quit: Lost terminal]
rembo10 has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
growpotkin has quit [Quit: WeeChat 2.4]
<{^_^}> [nixpkgs] @FRidh opened pull request #56807 → python: 2.7.15 -> 2.7.16 → https://git.io/fhxGt
<Izorkin> FRidh[m]: how to need to fix build datadog-agent?
phreedom has quit [Ping timeout: 256 seconds]
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/770d3ca4910 (from 16 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
<{^_^}> [nixpkgs] @7c6f434c merged pull request #56580 → forkstat, smemstat, stress-ng: bump various cking utils → https://git.io/fhAWD
<{^_^}> [nixpkgs] @7c6f434c pushed 4 commits to master: https://git.io/fhxGZ
Makaveli7 has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #nixos
alex`` has joined #nixos
johanot has joined #nixos
johanot has quit [Ping timeout: 246 seconds]
zupo has joined #nixos
vk3wtf has quit [Ping timeout: 252 seconds]
johanot has joined #nixos
<{^_^}> [nixpkgs] @kimat closed pull request #49927 → openconnect-globalprotect: init at 7.08 → https://git.io/fpkYS
__monty__ has joined #nixos
fusion809 has quit [Remote host closed the connection]
<manveru> FRidh[m]: what's the error?
fusion809 has joined #nixos
linarcx has joined #nixos
<linarcx> Hi. how to list all installed packages?
periklis has joined #nixos
goibhniu has joined #nixos
<__monty__> linarcx: nix-env -q
<linarcx> and how to list and delete configurations?
<__monty__> Do you mean generations?
<__monty__> I don't think there's a way to list configurations.
<linarcx> yes.
johanot has quit [Ping timeout: 245 seconds]
<linarcx> And anyway to delete old ones?
<__monty__> nix-env --list-generations/--delete-generations
<__monty__> And to actually remove the data on disk you need to run nix-collect-garbage afterwards.
<linarcx> Oh. cool. last night i used `nix-collect-garbage`, but still i can see list of all generations in grub menu. why? i want to delete old ones and keep only last 3 generations.
<__monty__> Did you --delete-generations before nix-collect-garbage?
<linarcx> no
johanot has joined #nixos
<__monty__> Then they can't be garbage collected yet, cause you're basically stating you don't want them to.
<infinee> tells you exactly how to delete generations
fusion809 has quit [Remote host closed the connection]
<__monty__> What I miss is a way to --delete-generations --keep 3 or something.
<__monty__> Guess it wouldn't be that hard to script though.
thc202 has joined #nixos
<immae> there is one
<immae> __monty__: look at the nix-env manual in the generations section, there are examples :p
linarcx has quit [Ping timeout: 245 seconds]
<immae> (last n days, last n generations, ...)
<immae> sorry, I jumped too quick in the conversation, the message was for linarcx
<__monty__> immae: Can't find those examples anywhere. It's either listing them manually, older than x days or "old" which is everything but current.
<immae> I have an example with `nix-env --delete-generations +5` for everything but the last 5
linarcx has joined #nixos
<immae> I don’t know how recent the "feature" is though
<__monty__> Ah, yep. That's in the manual. Couldn't find it by "last n days"
<immae> ok :)
<__monty__> It's not explained very well though. "or a value such as. +5 to only keep the specified items older than the current generation."
<__monty__> Sounds like it only deletes generations you specify with + *if* they're older than the current generation.
<immae> Well, to me it looks clear, but since I was looking specifically for that I’m a bit biased :)
<__monty__> No, the reverse. It only *keeps* them if they're older. Which is a pretty weird feature admittedly but it doesn't sound like "keep the last 5 gens."
<immae> no no I use it very often and it does it right :)
<immae> If anything, only the formulation is misleading :)
Ariakenom has joined #nixos
<linarcx> infinee: thank you so much.
<linarcx> __monty__: thank you too.
civodul has joined #nixos
arjen-jonathan has joined #nixos
jomik has joined #nixos
__Sander__ has joined #nixos
phreaky has joined #nixos
<linarcx> I want to use i3nagbar. but it seems that there isn't exists in channels.
<phreaky> Hey guys , how does one check all of the supported versions of a given package ( if I want to get other versions if possible )
gilligan_ has joined #nixos
<__monty__> linarcx: Then you'll have to package it yourself.
<linarcx> __monty__: Any tutorial to start?
<__monty__> phreaky: Afaik one channel only has a single version of any package. Sometimes there's package_x_y_z with a different version because some packages depend on a specific older version. But there's not really a good way to list those, except for grepping the name.
_kwstas has joined #nixos
<__monty__> linarcx: The nix and nixpkgs manuals.
_kwstas has quit [Remote host closed the connection]
jomik has quit [Quit: WeeChat 2.4]
johanot has quit [Ping timeout: 245 seconds]
<phreaky> __monty__, thanks a lot
johanot has joined #nixos
justanotheruser has quit [Ping timeout: 240 seconds]
<__monty__> np
vk3wtf has joined #nixos
Yaniel has joined #nixos
linarcx has quit [Remote host closed the connection]
mariel__ has joined #nixos
<{^_^}> [nixpkgs] @jpathy opened pull request #56809 → Zotero: Fix to use patchelf instead of FHS Env. → https://git.io/fhxZN
simukis has joined #nixos
<{^_^}> [nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/fhxZx
phreaky has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @peti merged pull request #56795 → ghc863: dont add extra libs → https://git.io/fhxYa
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fhxZp
<{^_^}> [nixpkgs] @peti pushed 0 commits to matthewbauer-patch-1: https://git.io/fhxZh
<{^_^}> [nixpkgs] @peti pushed 18 commits to openssl-1.1: https://git.io/fhxnI
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/def5aeb17fa (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
gagbo has joined #nixos
LysergicDreams has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @fuwa0529 opened pull request #56810 → altcoins.wownero: -> → https://git.io/fhxns
LysergicDreams has joined #nixos
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/e542fc2c94d (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
wolfmantjg1234[m has quit [*.net *.split]
xenofungus[m] has quit [*.net *.split]
jpo-joyent has quit [*.net *.split]
NickHu has quit [*.net *.split]
petar has quit [*.net *.split]
petar has joined #nixos
jpo-joyent has joined #nixos
work_ has quit [Quit: Connection closed for inactivity]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reinhardt has quit [Ping timeout: 250 seconds]
Sylnai has joined #nixos
<azazel> hi guys
reinhardt has joined #nixos
<azazel> the NixOps "libvirtd" backend is local only, or am I getting something wrong?
<azazel> What's the way to let it perform its operations on a remote NixOS host?
<{^_^}> [nix] @edolstra pushed to master « Restore --init calls in tests »: https://git.io/fhxn1
aszlig has quit [Quit: Kerneling down for reboot NOW.]
PragCypher has joined #nixos
nschoe has joined #nixos
zupo has joined #nixos
aszlig has joined #nixos
gagbo has quit [Ping timeout: 268 seconds]
gagbo has joined #nixos
cyris212 has joined #nixos
pie_ is now known as pie_work
sigmundv has joined #nixos
reinhardt has quit [Ping timeout: 264 seconds]
juliendehos has joined #nixos
<{^_^}> [nixpkgs] @andir pushed 14 commits to openssl-1.1: https://git.io/fhxcE
<{^_^}> [nixpkgs] @lheckemann pushed commit from @jtojnar to release-19.03 « nixos/nginx: Enable TLS 1.3 support »: https://git.io/fhxcz
ramses_ has joined #nixos
<ramses_> Hey guys, if I have two attrSets { a = [ 1 ]; } and { a = [ 2 ]; }, is there a function to combine them recursively into { a = [ 1 2 ]; } ?
<{^_^}> [nixpkgs] @lsix opened pull request #56811 → pythonPackages.qscintilla: fix build → https://git.io/fhxca
<sphalerite> ramses_: Modules are what do this for nixos
<sphalerite> ramses_: it's a bit of a complicated quesiton because you have to define how to merge stuff
<sphalerite> modules are the heavy-weight and versatile solution, where you define types and stuff
<sphalerite> there isn't really a simple way AFIAK
<sphalerite> AFAIK
<tilpner> Could try zipAttrsWith
<ramses_> sphalerite: well, I have a module actually (https://github.com/MSF-OCB/NixOS/blob/master/users.nix) now I wanted to be able to merge two users and have their extraGroups combined. But right now the rhs takes precedence
LysergicDreams has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ng0 has joined #nixos
Makaveli7 has quit [Ping timeout: 255 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #56783 → udiskie: fix build → https://git.io/fhxea
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/fhxCv
Sylnai has left #nixos [#nixos]
orivej has joined #nixos
<{^_^}> [nixpkgs] @dotlambda pushed to staging-19.03 « udiskie: fix build »: https://git.io/fhxCO
orivej has quit [Ping timeout: 250 seconds]
Makaveli7 has joined #nixos
vmandela has quit [Quit: Leaving]
phreedom has joined #nixos
Zer000 has quit [Quit: Leaving]
fendor_ has joined #nixos
adamt has joined #nixos
reinhardt has joined #nixos
<tilpner> Hey thoughtpolice, what are you using firecracker for, and did you try building it from source (and if so, what was the issue that caused you to stop)?
lopsided98 has quit [Quit: No Ping reply in 180 seconds.]
<tilpner> Ahh, the earliest commit message answers it
silver has joined #nixos
lopsided98 has joined #nixos
<{^_^}> [nixpkgs] @danbst merged pull request #56811 → pythonPackages.qscintilla: fix build → https://git.io/fhxca
<{^_^}> [nixpkgs] @danbst pushed 2 commits to master: https://git.io/fhxCK
<tilpner> Well, this is terrible. I see why you decided to use the binaries
<siraben> I attempted to run "sudo nixos-rebuild switch --upgrade" but got https://paste.debian.net/1071377/
<siraben> Not sure why it's failing.
infinee_ has joined #nixos
<tilpner> It can't find the future dependency
<siraben> Which package is causing this?
<tilpner> python3Packages.pykeepass
<tilpner> Which seems to be pulled in by qutebrowser?
fusion809 has joined #nixos
<{^_^}> [nixpkgs] @zimbatm merged pull request #56461 → ruby_2_6: add missing rvm patchset → https://git.io/fhNgc
<{^_^}> [nixpkgs] @zimbatm pushed commit from @marsam to master « ruby_2_6: add missing rvm patchset (#56461) »: https://git.io/fhxCx
<rkav> anyone else having trouble with emacs nix-mode and indentation?
<jasongrossman> tilpner: Yes.
<jasongrossman> rkav: Yes. I believe it's a known problem.
<tilpner> jasongrossman: What are you replying to?
<jasongrossman> tilpner: "Which seems to be pulled in by qutebrowser?"
orivej has joined #nixos
jtojnar has joined #nixos
<rkav> jasongrossman: it's suuper annoying, is it hard to solve? considering spending time trying to figure emacs out
<{^_^}> [nixpkgs] @zimbatm merged pull request #56767 → terraform_0_12: 0.12.0-alpha4 -> 0.12.0-beta1 → https://git.io/fhANF
<{^_^}> [nixpkgs] @zimbatm pushed commit from @kalbasit to master « terraform_0_12: 0.12.0-alpha4 -> 0.12.0-beta1 (#56767) »: https://git.io/fhxWv
<pie_work> does github give an easy way to show all issues im subscribed to???
<pie_work> ive found things for everything except "i just want to see all my issues"
<pie_work> (not necessarily issues i created)
erictapen has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #56755 → xdm: 1.1.11 -> 1.1.12 → https://git.io/fhAbE
<{^_^}> [nixpkgs] @xeji pushed commit from @dtzWill to master « xdm: 1.1.11 -> 1.1.12 (#56755) »: https://git.io/fhxWk
<jasongrossman> rkav: I don't know, but you should be able to find something about it in the Nix bug tracker on github.
mariel__ has quit [Quit: Leaving]
<__monty__> pie_work: github.com/issues isn't that?
<__monty__> Maybe you can formulate a query in that search field.
<azazel> rkav: I have this in my .emacs.el: (setq nix-indent-function `nix-indent-line) it fixes some of the indentation deficencies
<Taneb> pie_work: involves:<username>
<Taneb> ?
<pie_work> Taneb, hm thanks, didnt know about that but that might be what i want
<pie_work> i mean theres a subscribe button on issues, i would like whatever query gives me the issues that have that set
<pie_work> hm, actually, not sure involves is what im looking for
<rkav> azazel: ah, thanks! that fixed the most immediately annoying issue
<Taneb> :
<Taneb> :(
<{^_^}> [nixpkgs] @xeji pushed commit from @dtzWill to release-19.03 « xdm: 1.1.11 -> 1.1.12 (#56755) »: https://git.io/fhxWq
<{^_^}> [nixpkgs] @xeji merged pull request #56760 → sysvinit: 2.93 -> 2.94 → https://git.io/fhAbQ
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « sysvinit: 2.93 -> 2.94 (#56760) »: https://git.io/fhxWY
<{^_^}> [nixpkgs] @etu opened pull request #56816 → transifex-client: Fix build after updated dependencies → https://git.io/fhxW3
<jasongrossman> azazel++
<{^_^}> azazel's karma got increased to 1
<{^_^}> [nixpkgs] @xeji merged pull request #56677 → git-secrets: 1.2.1 -> 1.3.0 → https://git.io/fhAi3
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « git-secrets: 1.2.1 -> 1.3.0 (#56677) »: https://git.io/fhxWn
<tilpner> There's no musl rustc in nixpkgs, right?
<tilpner> (Or... musl std, I guess)
<{^_^}> [nixpkgs] @xeji merged pull request #56657 → unrar: 5.5.8 -> 5.7.3 → https://git.io/fhAK8
noogie has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @xeji pushed commit from @dtzWill to master « unrar: 5.5.8 -> 5.7.3 (#56657) »: https://git.io/fhxWC
noogie has joined #nixos
johanot has quit [Quit: WeeChat 2.2]
<{^_^}> [nixpkgs] @xeji merged pull request #56788 → clightning: 0.6.3 -> 0.7.0 → https://git.io/fhxkM
<{^_^}> [nixpkgs] @xeji pushed commit from @jb55 to master « clightning: 0.6.3 -> 0.7.0 (#56788) »: https://git.io/fhxWW
<therealwaphire[m> guys how do you deal with programs that are expecting traditional FHS?
<tilpner> steam-run and friends
<therealwaphire[m> for eaxmple, running taffybar outputs 3 of "Directory does not exists:" warnings
<tilpner> Oh, not for those
<therealwaphire[m> yeah
<tilpner> Which directories?
<etu> azazel, rkav: I did some work on the nix-mode for emacs during January this year. We improved it quite a bit but there's still work to do with corner cases etc.
<therealwaphire[m> `/usr/share`, `/usr/loca/share` and `/etc/profiles/per-user/user/share`
<simpson> therealwaphire[m: If it's not unfree, patch it until it stops misbehaving. FHS user environments are a last resort.
<tilpner> And what does it look for in there?
<etu> azazel, rkav: But I've introduced regression testing for indentation so we have test cases for it. So if you feel up to it. Write a testcase and a fix and I'll look into it :-)
<therealwaphire[m> <freenode_til "And what does it look for in the"> doesn't say anything in particular
<etu> azazel, rkav: Also, bug reports are very welcome as well. But no promises that it will be fixed very fast.
<therealwaphire[m> just `Directory does not exist: `
<tilpner> You can probably find out with strace
<tilpner> But yeah, patch it or ignore it, if it doesn't obviously break anything :/
<therealwaphire[m> yeah i guess
<therealwaphire[m> has anyone managed to run `throttled` btw?
<therealwaphire[m> for undervolting on the lenovo x1c6?
<azazel> etu: yes, I saw your work. great job! Certainly I will report bugs, fixes... we will see :-P
<azazel> therealwaphire[m: `throttled`?
<tilpner> thoughtpolice: So... I got it to build from source. But it aborts with "invalid system call"
<azazel> therealwaphire[m: there's a specific module for x1 gen 6 in nixos-hardware
<{^_^}> [nixpkgs] @andir pushed 14 commits to openssl-1.1: https://git.io/fhxWu
fendor_ is now known as fendor
<etu> azazel: regression tests makes it a bit less scary to change things :-)
<joko> therealwaphire[m: I did
<etu> azazel: And if things break, then it's a missing test and a fix for that case :p
<joko> but not for undervolting
<therealwaphire[m> how?
<{^_^}> [nixpkgs] @xeji merged pull request #56650 → fio: 3.12 -> 3.13 → https://git.io/fhAo7
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « fio: 3.12 -> 3.13 (#56650) »: https://git.io/fhxWw
<azazel> therealwaphire[m: the nixos-hardware module runs a much simpler, and maybe less efficient, short-term fix taken from the specific page on archlinux wiki
<rkav> etu: Awesome! I see now that nix-indent-line is marked as buggy, but it's certainly seems better than ident-relative. I'll use it for a bit and keep my out for flaws
<joko> therealwaphire[m: but it's WIP, it still needs you to add /etc/lenovo_fix.conf
<azazel> etu: keep up the good work!
<therealwaphire[m> oh thanks, man :)
<joko> If you don't want to undervolt, then what azazel proposed is better, I guess
<joko> I just forgot to test undervolting :D
<{^_^}> [nixpkgs] @xeji merged pull request #56800 → xinit: 1.4.0 -> 1.4.1 → https://git.io/fhxOA
<{^_^}> [nixpkgs] @xeji pushed commit from @dtzWill to master « xinit: 1.4.0 -> 1.4.1 (#56800) »: https://git.io/fhxWM
<{^_^}> [nixpkgs] @xeji merged pull request #56570 → x11docker: v5.4.1 -> v5.4.4 → https://git.io/fhAG7
<{^_^}> [nixpkgs] @xeji pushed commit from @jD91mZM2 to master « x11docker: v5.4.1 -> v5.4.4 (#56570) »: https://git.io/fhxWH
iyzsong has joined #nixos
<siraben> tilpner: ah I'll remove qutebrowser then, thought the problem was with keepass!
<siraben> What a misleading error mesdage, hm. Seems to work now.
fusion809 has quit [Remote host closed the connection]
fusion809 has joined #nixos
periklis has quit [Ping timeout: 255 seconds]
<{^_^}> [nixpkgs] @MostAwesomeDude opened pull request #56817 → PyPy: 7.0.0 → https://git.io/fhxlq
<simpson> gchristensen++ ofborg works on draft PRs.
<{^_^}> gchristensen's karma got increased to 77
<gchristensen> :) it should probably not ping people (todo) but yeah
Neo-- has joined #nixos
fusion809 has quit [Remote host closed the connection]
fusion809 has joined #nixos
<pie_work> my speakers arent working with my dock, works fine if i unplug it, any ideas? :/
<pie_work> it worked earlier but i cant reboot because im in the middle of something
<{^_^}> [nixpkgs] @timokau opened pull request #56818 → trash-cli: fix build → https://git.io/fhxl0
das_j has quit [Remote host closed the connection]
<pie_work> of course i just had to ask, looking at settings in pavucontrol showed that it was switched to some dock audio output, this wasnt synced properly with whatever plasma was showing me
<pie_work> so now i fixed it...
das_j has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « pandoc: update overrides for the new version »: https://git.io/fhxla
<{^_^}> [nixpkgs] @herrwiese opened pull request #56819 → gogs: 0.11.66 -> 0.11.86 → https://git.io/fhxlV
<{^_^}> [nixpkgs] @timokau opened pull request #56820 → Tensorflow py2 fixes → https://git.io/fhxlr
linarcx has joined #nixos
<linarcx> Hi. i want to install nerdfonts. but after a while it raise an error: curl: (33) HTTP server doesn't seem to support byte ranges.
phreaky has joined #nixos
<phreaky> Hey again guys... I'm quite new and I have some harsh time.. I'm have `nixos-18.09` and `nixos-unstable` channels
<phreaky> there is this package https://nixos.org/nixos/packages.html#solc
<phreaky> but when I try to install it .. `nix-env -iA nixos.solc it doesn't get install..
<phreaky> ok .. it's `nix-env -i <package>`
<etu> ,-iA
<etu> ,iA
<etu> I thought {^_^} would say something smart about that now.
<gchristensen> ,-A
<{^_^}> You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ/nix-env_-iA for details.
<phreaky> thanks
bbarker has quit [Quit: Leaving]
<phreaky> there is one more thing
hexa- has quit [Quit: WeeChat 2.4]
<phreaky> the output of `nix-env -qa | grep solc` gives me only 0.5.3 version which I think was in the unstable channel when I need 0.4.24 which is supposed to be in the stable one
<phreaky> $ nix-channel --list // nixos-18.09 http://nixos.org/channels/nixos-18.09 //nixpkgs https://nixos.org/channels/nixpkgs-unstable
nschoe has quit [Quit: Program. Terminated.]
immae has quit [Quit: WeeChat 2.3]
immae has joined #nixos
linarcx has quit [Ping timeout: 250 seconds]
<{^_^}> [cabal2nix] @peti pushed to master « update-stackage: make sure the Stackage package list is sorted alphabetically »: https://git.io/fhx8U
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fhx8T
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « LTS Haskell 13.10 »: https://git.io/fhx8I
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhx8L
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « linux: Add 5.0 »: https://git.io/fhx8q
kreisys has joined #nixos
waleee has joined #nixos
<{^_^}> [nixpkgs] @peti pushed 4 commits to haskell-updates: https://git.io/fhx8O
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhx83
<{^_^}> [nixpkgs] @Gerschtli opened pull request #56821 → teamspeak_server: 3.5.1 -> 3.6.1 → https://git.io/fhx8G
Ariakenom has quit [Ping timeout: 245 seconds]
phreaky has quit [Quit: Leaving]
hexa- has joined #nixos
stepcut has joined #nixos
asymmetric has joined #nixos
<asymmetric> does anyone have time to look at https://github.com/NixOS/nixpkgs/pull/56365 ?
<{^_^}> #56365 (by asymmetric, 6 days ago, open): solc: 0.5.3 -> 0.5.4
Mateon1 has quit [Ping timeout: 255 seconds]
Mateon1 has joined #nixos
Ariakenom has joined #nixos
<{^_^}> [nixpkgs] @grahamc merged pull request #56365 → solc: 0.5.3 -> 0.5.4 → https://git.io/fhbSp
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to master: https://git.io/fhx8i
<disasm> lol, beat me to it gchristensen :)
<gchristensen> :)
noonien has joined #nixos
<{^_^}> [nixpkgs] @timokau merged pull request #56818 → trash-cli: fix build → https://git.io/fhxl0
<{^_^}> [nixpkgs] @timokau pushed to master « trash-cli: fix build (#56818) »: https://git.io/fhx8D
Makaveli7 has quit [Quit: Leaving]
justanotheruser has joined #nixos
<noonien> hello folks!
<asymmetric> thanks a lot gchristensen!
<noonien> does anyone else have problems when ssh-ing into a nixos machine?
<noonien> ssh can't seem to create a terminal
linarcx has joined #nixos
<linarcx> Hi. i installed mpv and used vaapi for decoding. but it give me an error:[vaapi] Failed to initialize VAAPI: unknown libva error
<linarcx> Error opening/initializing the selected video_out (--vo) device.
<linarcx> also i installed libva package.
<linarcx> what should i do?
<waleee> noonien: have you changed the default configuration.nix? Per default nixos doesn't have any ports open from the outside, so ssh will be blocked if not enabled explictly
<{^_^}> [nixpkgs] @timokau merged pull request #56820 → Tensorflow py2 fixes → https://git.io/fhxlr
<{^_^}> [nixpkgs] @timokau pushed 3 commits to master: https://git.io/fhx8b
<callahad> linarcx: Perhaps this issue? https://github.com/NixOS/nixpkgs/pull/55976
<{^_^}> #55976 (by colemickens, 2 weeks ago, open): vaapi-intel: v2.3.0 -> v20190211
<das_j> Is there a utility function to merge all attrsets in a list?
<{^_^}> [nixpkgs] @andir pushed to openssl-1.1 « Revert "serf: build with openssl-1.0.2 again" »: https://git.io/fhx4e
<waleee> noonien: ie. checkout the various services.openssh-attributes
<noonien> waleee: yes, `ssh <host> zsh` works (but i don't get a terminal, so `less` doesn't work for example), `ssh <host> -t zsh` just hangs
<linarcx> callahad: Yes, when it fixes?
<noonien> apart from enabling openssh and disabling the firewall, i've not changed anything relevant
<callahad> linarcx: I dropped this into my configuration.nix and it fixes it locally for me: https://gist.github.com/callahad/9dbad0eabc06784b32dd26fe0be8cf2d
iyzsong has quit [Ping timeout: 258 seconds]
ThatDocsLady has joined #nixos
<ramses_> sphalerite: well, I have a module actually (https://github.com/MSF-OCB/NixOS/blob/master/users.nix) now I wanted to be able to merge two users and have their extraGroups combined. But right now the rhs takes precedence. Do I understand correctly that I should implement a proper merge strategy for the loaOf option?
<waleee> noonien: and you're a 100% sure zsh is enabled?
<noonien> yes, i use it as my default shell
<ramses_> das_j: lib.foldAttrs ?
<noonien> this is the output of ssh <host> -vvvvv -t zsh: http://paste.net/fadmV
<das_j> ramses_: Yes, I use that now but I thought there may also be a util function
<noonien> oops, http://vpaste.net/fadmV
<linarcx> callahad: Rebuild the configuration. But nothing changed. Reboot the system?
<noonien> waleee: executing zsh without a terminal works, zsh gets executed, but not in a terminal, more like a pipe
<aswanson> good morning folks, I have a weird thing bugging me right now. In my configuration.nix I'm fetching a tarball from gitlab with `builtins.fetchTarball`. This works fine with `nixos-rebuild` but the nixos upgrade service is choking on it. I can see a line in the journal saying that lbzip2 is not available to tar when the service tries to upgrade, but I don't understand why nixos-rebuild works fine.
<callahad> linarcx: Hm. I know very little about this (other than mpv w/ vaapi is working for me locally).
<callahad> linarcx: I also have this in my configuration.nix: hardware.opengl.extraPackages = with pkgs; [ vaapiIntel vaapiVdpau libvdpau-va-gl ];
<callahad> maybe you need that?
<{^_^}> [nixpkgs] @xeji merged pull request #56810 → altcoins.wownero: -> → https://git.io/fhxns
<{^_^}> [nixpkgs] @xeji pushed commit from @fuwa0529 to master « altcoins.wownero: -> (#56810) »: https://git.io/fhx4Y
<linarcx> callahad: Let me try it:)
erictapen has quit [Ping timeout: 255 seconds]
drakonis_ has quit [Ping timeout: 245 seconds]
ottidmes has joined #nixos
<{^_^}> [nixpkgs] @callahad opened pull request #56823 → SDL2_image: support WebP images → https://git.io/fhx4B
erictapen has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #56819 → gogs: 0.11.66 -> 0.11.86 → https://git.io/fhxlV
<{^_^}> [nixpkgs] @xeji pushed commit from @herrwiese to master « gogs: 0.11.66 -> 0.11.86 (#56819) »: https://git.io/fhx4u
<andi-> aswanson: I could be wrong but builtins.fetchTarball could also impurely use the current runtime environment much like `builtins.fetchGit` fails when git is not "installed"/available in the current environment.
<{^_^}> [nixpkgs] @xeji pushed commit from @herrwiese to release-19.03 « gogs: 0.11.66 -> 0.11.86 (#56819) »: https://git.io/fhx4a
jomik has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #56500 → go_1_12: init at go 1.12 → https://git.io/fhNyn
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fhx4r
<aswanson> andi-: that tracks with the behavior I'm seeing but that raises the question of how to get lbzip2 into the environment that the upgrade service is using
<jomik> Hey guys - is there a nice/simple way to check if there is an update available for my nix channels?
<infinee_> I'm trying to patch my st (installed with nix). I came across this https://www.reddit.com/r/NixOS/comments/9a5omb/how_does_nixos_handle_programs_like_dwm_and_st/e54mp05 Am I supposed to refer to that default.nix file somehow in my /etc/nixos/configuration.nix?
<linarcx> callahad: Oh, new error arised: [vaapi] libva: /run/opengl-driver/lib/dri/i965_drv_video.so has no function __vaDriverInit_1_0
jabranham has joined #nixos
<tilpner> noonien: Did you do programs.zsh.enable on the host?
<andi-> aswanson: systemd.services.nixos.upgrade.path = [ pkgs.… ]; should do the trick
<andi-> but e.g. gnutar is already in there.. so you might want to play with that
<aswanson> andi-: thanks for the pointer, I'll give it a shot!
kasimon has joined #nixos
<noonien> tilpner: i've only got `shell = pkgs.zsh;` in my users config
<tilpner> noonien: Well, then try what I suggested
<noonien> i don't see how that makes a difference, since ssh seems at fault here
<noonien> i get the same behavior with bash as well
<noonien> and `less`, and `cat`
<gchristensen> noonien: you might need to do shell = "${pkgs.zsh}/bin/zsh"
drakonis_ has joined #nixos
<tilpner> No, they're equivalent
<gchristensen> "Don’t forget to enable your shell in programs if necessary, like programs.zsh.enable = true;. "
<tilpner> Which they don't want to try
<tilpner> For... reasons
<kasimon> Hi, does anyone know how big the current stable binary cache is? If I would want to mirror one for internal use, how much space would I need?
<gchristensen> kasimon: I have this vague idea that it is roughly 80gb but that is probably wildly out of date
linarcx has quit [Ping timeout: 240 seconds]
<tilpner> kasimon: It depends on if you also want to mirror all the history, or just one evaluation
<kasimon> tilpner: just one evaulation
<noonien> gchristensen: i will try, but, `ssh <host> -t cat x` yields the same result
zupo has joined #nixos
<noonien> this should not launch a shell
<kasimon> gchristensen: I would have expected *way* more.
<noonien> on really rare cases, `ssh host` works just fine
<tilpner> Reachable from https://nixos.org/channels/
<noonien> (and i'm given a terminal)
<gchristensen> noonien: did you do programs.zsh.enable = true?
<adamt> kasimon: We've been caching everything we've used for about a year, with updates from stable every two weeks, and it takes up like 300GB disk space
<sphalerite> ramses_: whoops sorry, missed it earlier. I think what you probably want is to just use multiple modules to define your users, then they'll get merged appropriately by the module system without any further code on your part
waleee has quit [Quit: WeeChat 2.4]
<tilpner> kasimon: Note that adamt might be using only small parts of the evaluation
<noonien> gchristensen: i just did, same outcome, `ssh host -t cat x` hangs
<kasimon> adamt: Thanks, that gives me an idea how much to expect.
<noonien> `ssh host cat x` works just fine
<adamt> Yeah I know it didn't really answer the specific question, but I have this feeling that kasimon doesn't really need to store all binaries for one eval either. :-)
<noonien> and so does `ssh host zsh -i`
<noonien> (i don't get a terminal in either cases)
<tilpner> Can you get logs from the host?
<noonien> hmm, didn't think of that, just a sec
<kasimon> tilpner: Is there a way to request the size of a path without downloading it?
<tilpner> kasimon: Yes, you can query the .narinfos of each from Hydra
<tilpner> (From cache, no hydra needed)
<kasimon> great, thanks.
<gchristensen> hmm ssh without `-t` to spawn an interactive shell will get you a weird terminal
<noonien> tilpner: yes, everything seems to look just fine: http://vpaste.net/SUwvC
linarcx has joined #nixos
<tilpner> kasimon: So curl https://cache.nixos.org/v0501khs3qmi8zm8qshpi4vpsxfwskkm.narinfo and then use FileSize or NarSize
<noonien> gchristensen: yeah, more akin of just a two-way pipe, not a terminal really
<ptotter[m]> systemd.services.*.serviceConfig.ExecStart can contain variable interpolation ${...}, but can it do more? how much templating can be done? loops? conditionals?
<gchristensen> ptotter[m]: you can do anything you want as long as Nix evaluates it to a string
<gchristensen> ${...} is done by Nix
<tilpner> ptotter[m]: Anything Nix can evaluate, including conditionals and I guess "loops" too
<noonien> gchristensen: do you get the same behavior? or is it just my machine?
<callahad> linarcx: Any luck?
<tilpner> noonien: Does it also happen when you remove the shell = pkgs.zsh?
<ptotter[m]> is something like ${if foo} blah ${else} blop ${end} possible?
<tilpner> noonien: I have ssh and zsh working on all my machines and servers
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adamt> ptotter[m]: if-statements are expressions, so yes, they can end up in your ExecStart
<tilpner> ptotter[m]: It would be ${if foo then "blah" else "blop"}
<Taneb> ptotter[m]: I think that's a syntax error but you can do what tilpner just suggested
<noonien> tilpner: yes, i get the same behavior. odd that it works for you, latest 18.09?
<ptotter[m]> thank you
<tilpner> ptotter[m]: Note that "blah" and "blop" can also be ''strings like this'', which can again have ${} interpolation
<tilpner> noonien: No, this is on unstable
<tilpner> 2a81eceeba6d9b0499c0a9dc569921765321cdd0
<noonien> the ssh client is running on a raspberry pi zero w, with a dated 19.04 sd image, this MIGHT be the issue, i don't have another machine to ssh from, i'll try from my phone
<tilpner> ... dated 19.04? That must be a typo
<noonien> 19.03, sorry
<ramses_> sphalerite: you mean to create a module per user?
linarcx has quit [Ping timeout: 268 seconds]
<tilpner> Still, 19.03 isn't even released yet, so hardly dated :)
<ramses_> That seems a bit heavy syntax-wise though..
<sphalerite> ramses_: yeah. It's quite simple, if you want it in one file you can do { imports = [{module1} {module2}] }
<ptotter[m]> tilpner: excellent, better than bash `` substitution (and more like $())
<sphalerite> ramses_: without declaring any options in the modules of course, just the values for them
<noonien> i'm talking about dezgeg's sdimage, which is from 2018-09-13 05:14
<{^_^}> [nixpkgs] @dtzWill opened pull request #56824 → skawarePackages: skalibs and updates all around → https://git.io/fhx4x
<noonien> yeah, i think it might be the nixos machine that i'm using as a ssh client, sshing from my phone works just fine
<{^_^}> [nixpkgs] @dotlambda pushed 2 commits to master: https://git.io/fhx4j
<{^_^}> [nixpkgs] @dtzWill merged pull request #56801 → spectral: 2018-09-24 -> 2019-03-03 → https://git.io/fhx3e
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fhxBf
<{^_^}> [nixpkgs] @dtzWill merged pull request #56756 → boehmgc: 8.0.2 -> 8.0.4 → https://git.io/fhAbz
endformationage has joined #nixos
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to staging: https://git.io/fhxBJ
<{^_^}> [nixpkgs] @dtzWill merged pull request #56727 → unifont_upper: 10.0.06 -> 11.0.03 → https://git.io/fhAQG
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fhxBk
<{^_^}> [nixpkgs] @dotlambda pushed to staging-19.03 « python.pkgs.pymediainfo: fix build »: https://git.io/fhxBL
<{^_^}> [nixpkgs] @dotlambda pushed to release-19.03 « python.pkgs.rawkit: add patch for python37 compatibility »: https://git.io/fhxBq
<noonien> hmm, `programs.zsh.enable = true;` seems to set $RPROMPT to `pwd` for some reason
<gchristensen> that sounds like some default zsh theme
zupo has joined #nixos
<{^_^}> [nixpkgs] @dtzWill merged pull request #55614 → kdeFrameworks: 5.54.0 -> 5.55.0 → https://git.io/fhQuN
<{^_^}> [nixpkgs] @dtzWill pushed 3 commits to staging: https://git.io/fhxB3
<noonien> not setting that, and having zsh as a shell doesn't do that
<tilpner> It does a lot more than enable a theme (which you can easily override)
<tilpner> I've had problems deploying to a server without this option on, but that's your choice
hyper_ch2 has quit [Quit: Page closed]
<noonien> yeah, it does some really helpful things, such as load /etc/profile, or something similar, which sets the correct PATH
<gchristensen> https://github.com/grahamc/nixos-config/blob/master/devices/morbo/main-configuration.nix#L250 I ended up ditching some parts of that (?) to make the prompt look like nixos's default
yl has quit [Ping timeout: 264 seconds]
<noonien> however, it also seems to make some choices for the user by default, like the history size, and, apparently, the kind of prompt
<noonien> i'm unsure what the walters prompt is, is that just a theme?
<gchristensen> something that ships with zsh apparently
<kasimon> tilpner: That's what I'm doing currently: cat store-paths | cut -d/ -f4 | cut -d- -f1 | parallel -j 20 'curl -s http://cache.nixos.org/{}.narinfo | grep ^FileSize | cut -d" " -f2' | tee sizes
<kasimon> Thanks a lot, guys.
<{^_^}> [nixpkgs] @callahad opened pull request #56825 → renpy: 7.1.3 -> 7.2.0 → https://git.io/fhxBC
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<noonien> hmm, i wonder, do you guys do most of your user config from configure.nix, and try to have a clean $HOME, do most of your user config in $HOME, or a balance of both?
kasimon has quit [Ping timeout: 256 seconds]
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ramses_> sphalerite: I worked towards this very concise config which is easy for less skilled people to manage: https://github.com/MSF-OCB/NixOS/blob/master/ocb_users.nix
reinhardt has quit [Quit: Leaving]
<ramses_> But I was trying now to be able to build up users using // but so this does not work for groups since the lists are not being concatenated
<gchristensen> noonien: I keep as much of it out of $HOME as I can reasonably do
<jomik> Is there a way to check if my nix-channels need an update? I'd like to toss an indicator on my status bar :P
<laalf> ,escape "
<{^_^}> laalf: Did you mean escape"?
<{^_^}> ": " double quote: \" backslash: \\ bash curly bois: \${} newline: \n tab: \t "
devalot has joined #nixos
<tilpner> ramses_: Did you try recursiveUpdate
<tilpner> nix-repl> :p lib.recursiveUpdate { foo = [ 1 2 ]; } { foo = [ 2 3 ]; }
<ramses_> tilpner: I did, but that seems to work only for attrsets and does not influence the merging of lists
<tilpner> { foo = [ 2 3 ]; }
<tilpner> Oh, right, no 1
kreisys has joined #nixos
asymmetric has quit [Remote host closed the connection]
asymmetric has joined #nixos
<tilpner> ramses_: You could express these roles as functions, and then fold over them to get your final config
<{^_^}> [nixpkgs] @peti merged pull request #56600 → bind: 9.12.3-P1 -> 9.12.3-P4 → https://git.io/fhAgf
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/fhxBo
* tilpner isn't really convinced of that solution
owickstrom has joined #nixos
<ramses_> tilpner: well... The idea was kind of to keep it simple :p But I might have a look at it
<jomik> wedens: Can I get the time of my current channel then? :o
asymmetric has quit [Client Quit]
<jomik> or commit, I guess
fendor has quit [Ping timeout: 268 seconds]
<jomik> I guess I need a `my nix channel commit sha != howoldis...commit sha` to check
<wedens> jomik: parse revision from `nixos-version --revision` or `nix-instantiate --eval -E 'with import <nixpkgs> {}; lib.version'`
<sphalerit> jomik: gchristensen collects and publishes date information on channel advancements at https://channels.nix.gsc.io/
<wedens> jomik: actually you can replace the later with `nix-instantiate --eval '<nixpkgs/lib>' -A version` or nixos instead of nixpkgs for nixos
crmlt has joined #nixos
<clever> tilpner: https://github.com/cleverca22/nix-tests/tree/master/module-example this is how i solved the issue of `lib.recursiveUpdate { foo = [ 1 2 ]; } { foo = [ 2 3 ]; }` not doing what you want
<tilpner> clever: I know you can use the module system for that, but ramses_ seems to want to avoid complexity (and particularly modules)
<wedens> jomik: let me know how it goes. I've wanted to implement such "widget" myself, but I'm too lazy :D
<tilpner> And even then, having to declare each option... sure, it's much more flexible, but a lot more work
<jomik> Thanks! I'll get to it - I am using polybar now :P
<tilpner> ramses_: What about username = mkMerge [ role1 role2 ];?
<tilpner> That should be good enough
<clever> > lib.mkMerge [ [1] [2] ]
<{^_^}> { _type = "merge"; contents = <CODE>; }
<clever> tilpner: mkMerge only works after it goes thru the module framework
<tilpner> I know, and that's fine
<wedens> > lib.trivial.revisionWithDefault null
<{^_^}> "1d628e4588a22653cafec1b052132cae99bf4904"
<wedens> jomik: ^
<tilpner> ramses_ is using it inside a module
<ottidmes> tilpner: then you should not have said "but ramses_ seems to want to avoid complexity (and particularly modules)"
<wedens> jomik: I'm not sure when it'll return `null` though :)
<tilpner> ottidmes: I wasn't here either for the original problem description, I just saw sphalerite suggesting modules
<tilpner> ottidmes: And sphalerite suggested multiple modules, which would be too much for ramses_. You're correct that it wasn't very clear, I don't know ramses_ exact restrictions
<ottidmes> tilpner: I just tuned in and saw this contradictionary conversation, "it should not use modules", "let's use modules, it's fine", but I agree, if modules are allowed, mkMerge is probably what you want, otherwise you would just have to copy over the implementation of recursiveUpdate and tweak it to behave the way you'd want
<therealwaphire[m> anybody using filebot on NixOS?
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « ghc: Drop outdated compiler versions 8.6.1 and 8.6.2. We have 8.6.3. »: https://git.io/fhxBN
<tilpner> ottidmes: There are three different levels of "using modules" in this conversation, and we haven't detailled which we mean. ramses_ is using one module in their configuration, sphalerite suggested writing multiple modules AFAICT, and clever suggested using the modules system with lib.evalModules
<tilpner> These are obviously very different options when compared by complexity
<sphalerit> what I meant was to use one module to implement the options and multiple modules to set them
<tilpner> And what I suggested doesn't even work...
<sphalerite> ramses_: what about a function like makeUser, which takes a list of roles or something, like yusuph = mkUser { roles = ["admin"]; extraGroups = ["docker"]; }
<sphalerite> ramses_: which then adds the manually specified groups to the role groups
<{^_^}> [nixpkgs] @seqizz opened pull request #56828 → gitAndTools.gita: 0.7.2 -> 0.8.2 → https://git.io/fhxRv
crmlt has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @lheckemann pushed commit from @jtojnar to release-19.03 « nginx: build with openssl 1.1 »: https://git.io/fhxRE
crmlt has joined #nixos
<jomik> weden, sphalerite: So I can get the revision with nixos-version - but, I'd probably rather that I was able to specify the channel to get the revision from. I guess I could just take the prefix of the `.version` attribute on lib. But is there a nice way to just get the whole revision?
<sphalerite> jomik: I don't think I understand what you want
<jomik> I want the commit sha of my current <nixpkgs>
<jomik> or my <unstable>
<jomik> the revision.
<sphalerite> jomik: does `cut -d . -f 3 <$(nix-instantiate --find-file unstable)/svn-revision` do what you want?
<jomik> Hmm, that just returns a path sphalerite ?
<sphalerite> jomik: did you run the entire command between the `s?
<jomik> Ah, adapted it wrongly - I am using fish :P Well, it sort of does.
<jomik> It's the same as `nix-instantiate --eval '<unstable/lib>' -A version | cut -d . -f 3`, I guess?
<jomik> Only gives me a prefix of the hash though, I'd prefer the whole thing.
ThatDocsLady has quit [Ping timeout: 258 seconds]
<wedens> jomik: I've sent `lib.trivial.revisionWithDefault null` earlier
<ramses_> sphalerite: that might be a rather simple suggestion, I'll give that a go and see how I like the resulting code
<ramses_> tilpner: will mkMerge merge the lists within an attrset? Is there any documentation about this function?
<sphalerite> jomik: ah, try .git-revision in the dir then :)
<sphalerite> (found using grep :p )
<ottidmes> jomik: why not: git -C $(nix-instantiate --find-file nixpkgs) rev-parse HEAD
<{^_^}> [nixpkgs] @vbgl opened pull request #56829 → obelisk: 0.3.0 -> 0.4.0 → https://git.io/fhxRh
<ottidmes> but wedens solution, does what either sphalerite or me suggested: https://github.com/NixOS/nixpkgs/blob/1d628e4588a22653cafec1b052132cae99bf4904/lib/trivial.nix#L146-L160
<sphalerite> ottidmes: only works if you're not using nix-channel but a git repository directly
<sphalerite> but yeah that last one looks best
crmlt has quit [Quit: Lost terminal]
softinio has joined #nixos
<softinio> upgrading my nix packages on macos I get: https://via.softinio.com/Screen-Shot-2019-03-04-08-08-12.png any ideas? New to nix so sorry if silly question
<{^_^}> [nixpkgs] @dtzWill opened pull request #56830 → netcdf,hdf{4,5}: updates → https://git.io/fhx0U
<jomik> So that would be `nix-instantiate --eval -E 'with import <unstable> {}; lib.trivial.revisionWithDefault null'` as the winner?
<jomik> Though, version seems to always be present right? And that last part seems to be a prefix of the revision
<ottidmes> jomik: I just checked with: nix eval --raw '(with import <nixpkgs>; lib.trivial.revisionWithDefault null)' it works, but it fails for my unstable checkout, since its an added git worktree
<jomik> I.e. "19.09pre171582.26d8a8c0eb2" is what version always looks like?
<jomik> ottidmes: Oooh.
<jomik> So what is your `lib.version`?
<tilpner> ramses_: No, I was wrong
<jomik> WELL, to be honest. I guess I just need to make it work for my setup! Lol
<ottidmes> jomik: "19.03pre-git"
juliendehos has quit [Quit: Leaving]
nschoe has joined #nixos
<jomik> ottidmes:Thanks :)
<ottidmes> jomik: yep, so whatever works for you, works :P for me I would have to use what I suggested, but thats because I use git worktrees for my channels
<jomik> ottidmes: git -C ... does not seem to work for me.
<jomik> doing `bash -c 'git -C $(nix-instantiate --find-file nixpkgs) rev-parse HEAD'`
<ottidmes> jomik: but you are using nix-channel, right? then it won't work
drakonis has joined #nixos
<jomik> Ah, yeah. That makes sense. Lol.. :D
<ottidmes> jomik: so for your use case, what sphalerite suggested is the most direct, the other solution within lib.trivial.revisionWithDefault depends on .git as well, which AFAIK is not present with nix-channel
gagbo has quit [Ping timeout: 255 seconds]
<jomik> the revisionWithDefault works for me and gives the correct rev
infinee_ has quit [Quit: leaving]
drakonis_ has quit [Ping timeout: 250 seconds]
<wedens> ottidmes: `revisionWithDefault` works with channels
gagbo has joined #nixos
<ottidmes> wedens: never said otherwise, I only said it does not work for git worktrees. I meant to say with my last setence that you could just as well include .git-revision directly since the other check done in revisionWithDefault is for .git, which is not present in nix-channel directories AFAIK
<wedens> I'd rather avoid using `.git-revision` directly, as I consider it "implementation detail". just my personal preference ;)
<yl[m]> domenkozar: does this work with cachix: `nix-instantiate default.nix | cachix push yl` ?
<ottidmes> wedens: well, since it fails for me, its already a bad abstraction, but I get your point
<yl[m]> `nix-build` timesout for me on CircleCI, but nix-instantiate still builds some stuff that I'd like to push
<wedens> ottidmes: what's the output of `nixos-version --revision` with your setup?
<ottidmes> wedens: that wont give you any interesting results, its my unstable channel git worktree that gives no useful revision info
Taneb has quit [Quit: I seem to have stopped.]
<ottidmes> which is just an extra channel, not my main channel, in my setup
<wedens> ahh, ok
atriq has joined #nixos
<jomik> is there a font with a NixOS symbol glyph ? :D
atriq is now known as Taneb
<wedens> yes
drakonis_ has joined #nixos
orivej has quit [Ping timeout: 250 seconds]
<jomik> ,locate xfd
<jomik> wedens: Which? :O
<therealwaphire[m> is anybody using filebot on NixOS?
<{^_^}> Found in packages: texinfo, texinfo5, wallabag, zafiro-icons, xfce.xfdesktop, xlibs.xbitmaps, iconpack-obsidian, papirus-icon-theme, texinfoInteractive, xfce4-13.xfdesktop, numix-icon-theme-circle, numix-icon-theme-square, elementary-xfce-icon-theme, perl526Packages.TextUnidecode, perl528Packages.TextUnidecode, perldevelPackages.TextUnidecode
<wedens> jomik: nerdfonts patch
drakonis1 has joined #nixos
<jomik> wedens: Nice, thanks
<wedens> jomik: https://nerdfonts.com/#cheat-sheet search "nix"
adamt has quit [Ping timeout: 240 seconds]
johanot has joined #nixos
<jomik> Thanks
drakonis has quit [Ping timeout: 255 seconds]
JonReed has joined #nixos
drakonis_ has quit [Ping timeout: 258 seconds]
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
Guest68667 has joined #nixos
infinee_ has joined #nixos
<jomik> Umm, did I just install all nerdfonts by just installing `nixpkgs.nerdfonts`? :O
<srhb> jomik: Yes.
<srhb> jomik: And the github release tarball hosting is.. Sloow :)
<jomik> LOL
<jomik> YES
fendor has joined #nixos
<jomik> I was like, this is taking a long time.
<jomik> Then I checked fc-list... XD
<srhb> Yeah, expect 20 minutes or so.
<pie_work> Big Fonts
<infinee_> I just added an overlay file for a previously installed `environment.systemPackage`. nixos-rebuild switch didn't seem to recompile that pkg from what I can tell. Is there a way to forcefully rebuild that package?
<srhb> infinee_: If it didn't rebuild, either your change does not cause the change you expect, or your overlay is not picked up.
<jomik> How do you use `withFont` in the nerdfonts package? Do I provide a font name, or what? :O
<wedens> jomik: which font do you use?
<srhb> jomik: Looks like it just passes that string to ./install.sh -- so whatever that takes.
<jomik> Iosevka in this case. so I can do `nerdfonts.override { withFont = "Iosevka"; }` ?
Thra11 has joined #nixos
<wedens> jomik: https://paste.ee/p/TAcLY I just do this...
<srhb> jomik: Looks likely
<jomik> Ah, you just fetch the prebuilt file wedens ? Clever I guess :P
<srhb> jomik: If you want just that one, prefer pkgs.iosevka
fendor_ has joined #nixos
<srhb> (probably...)
<wedens> srhb: it doesn't have nerdfonts glyphs ;)
<srhb> Right, okay. :)
<srhb> I wish they had a proper mirror for it >_>
<jomik> srhb: What do you mean? Isn't that the same as `nerdfonts.override { withFont = "Iosevka"; }`? Just with nerdfonts glyphs?
fendor_ has quit [Client Quit]
<srhb> jomik: Apparently not, wedens has the right of it :)
<tokudan[m]> how can I get "nix build -f . filezilla" to show me the full build output?
<jomik> Oh, sorry. I meant that my override should essentially be the same as wedens' fetch?
<wedens> in the end, probably yes
<wedens> but you'll have to wait forever
drakonis has joined #nixos
<slabity> tokudan: I believe '--verbose=5' will print out everything
<srhb> tokudan[m]: You sort of cannot: https://github.com/NixOS/nix/issues/1930
<{^_^}> nix#1930 (by ElvishJerricco, 1 year ago, open): Nix 2.0: Print out path to stdout with nix build
<tokudan[m]> srhb: ah well, going back to nix-build then...
<tokudan[m]> slabity: unrecognised flag '--verbose=5'
<tokudan[m]> slabity: i'll just use nix-build
<tokudan[m]> thanks!
<srhb> tokudan[m]: Note that there's some sensibility to this: Without keeping a link around, the path might simply disappear whenever (on a system where gc can happen)
<jomik> wedens: ah, yeah, cuz I have to fetch it all :P
<slabity> tokudan: Sorry, that option is for nix-build
<srhb> tokudan[m]: So the logic is something like: Do the build, keep the link around, manipulate the path however you need, then remove the root.
<tokudan[m]> srhb: i don't care about any link, i want to build output while it's compiling and not just thge last 10 lines. not a path.
johanot has quit [Quit: WeeChat 2.2]
<srhb> Not understood, but as long as you've got a working solution I guess :)
<tokudan[m]> srhb: nix build only shows me the last 10 lines of the output on a failed build. that is not enough to identify the real problem
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<tokudan[m]> srhb: nix-build gives me the full output during the build process, which allows me to figure out what's going wrong
__Sander__ has quit [Quit: Konversation terminated!]
<srhb> tokudan[m]: nix log works for the first case though
<srhb> Oh, no it doesn't.
<srhb> Nevermind :)
<tokudan[m]> srhb: got it covered with nix-build, so I'm fine :)
<srhb> Great :)
orivej has joined #nixos
Neo-- has quit [Ping timeout: 264 seconds]
Thra11 has quit [Ping timeout: 255 seconds]
rpg has joined #nixos
rpg has quit [Client Quit]
rpg has joined #nixos
erasmas has joined #nixos
pie_work has quit [Ping timeout: 255 seconds]
arjen-jonathan has quit [Ping timeout: 255 seconds]
ddellacosta has joined #nixos
Thra11 has joined #nixos
<ldlework> Anyone got some sweet dropbox nix expressions maybe including mounting some authenticated folder or something?
<srhb> lejonet: I took a stab at trying to nixify the node+angular build of the mgr frontend. It's... Not fun. Might just be because I don't know the ecosystem, but I think we need to start thinking about alternatives. :P
<lejonet> srhb: its node+angular? Count me out... xD
<srhb> lejonet: Indeed...
owickstrom has quit [Quit: Connection closed for inactivity]
<lejonet> I didn't spend the past 4 years maintaining a node+angular project and finally managed to drop it last month to take up another one... xD
<srhb> Uh, but then you clearly know how to do it ;-)
<Izorkin> yl[m]: checked PR datadog?
<lejonet> Nope, I still don't know how to maintain it beyond "Don't Touch It!"
<lejonet> xD
<srhb> Ah, okay :P
<lejonet> There really aren't any good ways to maintain them, unless you're actively coding on them
<lejonet> Because the npm ecosystem is a... crapfest
Guest68667 has quit [Quit: Guest68667]
<lejonet> and wtf redhat, why the hell does virt-manager now depend on dconf to save configured connections?
<srhb> lejonet: It's a bit frustrating. I feel like I have all the deps specified and such, and yet I have no idea when the errors will stop coming. And of course, the dev cycle is.. Long.
<lejonet> what happened to plain old files...
<lejonet> srhb: yeah, compiling ceph isn't short :/
endformationage has quit [Ping timeout: 240 seconds]
<srhb> Well I'm not there yet. I've stripped out the frontend build for sanity
<srhb> But yeah, what do we do? Check if someone else built it for us so we can just shim it in? Write a release note that we've dropped support for it?
<ldlework> The dropbox stuff on the wiki doesn't seem to wokr
<lejonet> Well, in another, but related, note, I've deployed 13.2.4 to 3 different libvirtd servers, and had it running on one of them for at least a week or so, with no issues whatsoever
<srhb> lejonet: Nice. Yeah, I feel this is probably the only outstanding issue.
<lejonet> srhb: atm I'm mainly leaning towards the latter, while we search for the former
<lejonet> but if its a node+angular story, it might be impossible :/
<lejonet> node really wasn't designed to be packaged :(
<lejonet> Because honestly, unless there is some node/npm version of elixirs distillery/exrm, I doubt there is a way to package it as a package
shabius has quit [Quit: Leaving]
<srhb> lejonet: What's that?
<srhb> Also I don't believe it's impossible, I'm just finding it hard to imagine a solution where the next (even minor) bump won't be a pain in the ass...
<lejonet> distillery/exrm is just a packaging tools that takes a elixir project (erlang wrapper language more or less) and makes a release tarball
<srhb> I see.
<lejonet> s/ a /
<lejonet> /
<lejonet> screw my fingers today...
<srhb> I wonder if we can just dissect a deb or something
infinee_ has quit [Quit: leaving]
<lejonet> no need to dissect a deb, just look at https://github.com/ceph/ceph/blob/master/debian ^^
<drakonis> a deb file is fairly simple
<drakonis> its probably better if you just dissect how debian produces its packages
<lejonet> drakonis: yeah, which is what I linked too
<srhb> No, I literally mean getting the final, built product out of a deb.
<drakonis> that's not as elaborate as libreoffice :V
<srhb> Oh god, what does that do? :P
<lejonet> srhb: hmm, that is an interesting idea
<lejonet> srhb: hmm, it would seem like debian packages the plugins as separate packages
<lejonet> so maybe just grabbing that package might work without too much headache
<srhb> Indeed. I'm assuming the frontend is fairly relocatable
<srhb> Though honestly I'm not sure whether the backend is working yet.
<srhb> Did you have luck with py3?
<lejonet> I haven't looked more at it after it refused to locate the six module
<srhb> Gotcha.
<lejonet> Been busy nixosifying my infra :D all my machines that are supposed to be converted to nixos have been converted :D
nschoe has quit [Quit: Program. Terminated.]
<srhb> Good job!
<drakonis> conversely, check out fedora's ceph rpm spec
<lejonet> so it seems like debian uses py3 for its ceph package, and explicitly turns off the dashboard frontend when building ceph, so its definitively a thing to look closer at
<drakonis> the longest thing there is the changelog
<srhb> drakonis: Looks like they also disable the frontend
dweller has quit [Ping timeout: 246 seconds]
<srhb> Maybe it'll turn out the thing just isn't buildable
<srhb> Gentoo also turned it off recently.
<srhb> :-)
<lejonet> Well, the dashboard is definitively not sandbox buildable as-is :P
dweller has joined #nixos
orivej has quit [Ping timeout: 250 seconds]
<drakonis> yes.
<drakonis> debian's way to do packages is baffling tho
<lejonet> I know too little of both rpm and deb build processes, so I can't deduce how they actually manage to create the ceph-mgr-dashboard rpm/debs, but both specs clearly have it as separate packages
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ariakenom has quit [Quit: Leaving]
jomik has quit [Ping timeout: 245 seconds]
<lejonet> But it does indeed seem like none of em actually build the frontend, just the backend
<lejonet> Because I see no nodejs deps in the ceph-mgr-dashboard package of either debian or rpm
Ariakenom has joined #nixos
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<thoughtpolice> tilpner: Mmmm, do you have your changes anywhere I could test them? I have used firecracker myself but only minimally...
benhoman_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<ldlework> no one using dropbox on nixos?
<drakonis> building it is just a step away though
<drakonis> ldlework: rclone is best
<srhb> lejonet: I... Think I might have just figuted it out, and I'm not happy.
<ldlework> I have to use dropbox
<lejonet> srhb: haha, oh boy... :P how?
<srhb> lejonet: The release tarball contains a ../dist that's not in the tree
fendor_ has joined #nixos
<srhb> lejonet: I think they built it for us.
<srhb> Q_Q
<lejonet> srhb: ....
<srhb> lejonet: Yeeah...
<srhb> It has an index.html and everything.
<srhb> blerghhh :P
<drakonis> i need some real quick advice on how to write a nix for starters talk
<tilpner> thoughtpolice: You're not going to like it. I patched out musl from .cargo/config, and then it started failing on some KVM specific syscall
<drakonis> references would help
<lejonet> srhb: where'd you find that?
<tilpner> thoughtpolice: So then I tried to build it with musl, but then it gets linker errors for __snprintf_chk
<srhb> lejonet: src/pybind/mgr/dashboard/frontend/dist
<{^_^}> [nixpkgs] @nathantalewis closed pull request #55010 → spideroak: 7.1.0 -> 7.3.0 → https://git.io/fhyzt
<tilpner> thoughtpolice: Note that is actually not 0.15, but a more recent master, because they forgot to update their Cargo.lock
<{^_^}> [nixpkgs] @tokudan opened pull request #56832 → [WIP] pugixml: Fix pkg-config file installation and use fetchFromGitHub → https://git.io/fhxub
<lejonet> srhb: I can't find that one in their git repo O.o
<srhb> lejonet: Exactly
<srhb> lejonet: They build it for us and ship it in the release tarball
<srhb> The same reason I utterly missed it.
<lejonet> srhb: oh c'mon... :P
<srhb> I mean, I'm thankful
<srhb> But I would have been more thankful a week ago :-)
<ottidmes> drakonis: https://www.google.com/search?q=introduction+to+nix+package+manager gives me quite lot of useful links that you could base a talk on
<lejonet> haha yeah, brb while I go and punch my punchingbag... xD
<srhb> lejonet: OK, so now it's "just" a question of how to graft it in.
<srhb> Actually that may already have happened too...
<srhb> Hm, nope. Oh well, close
<lejonet> srhb: so just grabbing the release tarball instead of git then?
<srhb> lejonet: We already are doing that :)
<srhb> So it's there, we just need to point the backend at it somehow.
<JonReed> What does `${PATH:+':'}` in bash does? The `wrapProgram` script uses it inside like `export PATH=$PATH${PATH:+':'}<suffix>`, why not `export PATH="$PATH:<suffix>"`?
<symphorien> It does not add any colon if PATH is initially empty
<JonReed> symphorien: Ahh, ok, thanks.
<lejonet> srhb: which probably "just" means finding what directory it expects to find those files
<srhb> lejonet: Yep, looks like we need to pull out the prebuilt stuff (trivial path drv) and point module.py at it somehow
<srhb> lejonet: return os.path.join(current_dir, 'frontend/dist') -- shoot me now
<srhb> Ah well, trivial to fix.
<tilpner> thoughtpolice: I attached a strace, but the exact KVM-related syscall before SIGSYS changes, so it might not actualy be KVM-specific
dweller has quit [Read error: Connection timed out]
<ldlework> wow great, dropbox doesn't support xfs
dweller has joined #nixos
<srhb> ldlework: They explicitly disabled everything but ext4 recently, iirc
yl has joined #nixos
<lejonet> srhb: oh c'mon, can they stop doing lovecraftianesque stuff?!
<judson_> Is 19.03 frozen? It would be stellar to get https://github.com/NixOS/nixpkgs/pull/53525 in.
<{^_^}> #53525 (by nyarly, 8 weeks ago, open): (ruby-modules/gem): (refactor)
<lejonet> srhb: and I think I found why ceph-mgr craps out with py3 too, there is apparently ANOTHER cmake var you need to set for ceph-mgr to realize that we're using py3 besides WITH_PYTHON3
<ldlework> maybe some smart nix whiz can integrate https://github.com/dark/dropbox-filesystem-fix into the nix package
<lejonet> MGR_PYTHON_VERSION=3 is also needed -.-
<srhb> Oh?
infinee_ has joined #nixos
<lejonet> I'm gonna add that and see if the testcase goes through, and then punch something if it does...
<{^_^}> [nixpkgs] @dtzWill opened pull request #56833 → linuxPackages.bcc: fix build → https://git.io/fhxzv
<{^_^}> [nixpkgs] @matthewbauer opened pull request #56834 → v8: 5.4.232 -> 7.4.255 → https://git.io/fhxzf
iclanzan has joined #nixos
<srhb> lejonet: Remind me, how do I check the DWITH default values?
<lejonet> srhb: you dig through the CMakeFiles.txt xD (I know there is a cmake command to do it, but my cmake is really, really rusty)
<srhb> Right, same here. Digging into the files it is :-P
<lejonet> "Cowabunga it is" ;)
<srhb> Accurate.
infinee_ has quit [Client Quit]
shabius has joined #nixos
<srhb> lejonet: Did you try just enabling the dashboard on your..um, test cluster? :-)
gagbo has quit [Ping timeout: 240 seconds]
infinee_ has joined #nixos
<lejonet> srhb: no xD let me try it :P
ramses_ has quit [Ping timeout: 256 seconds]
<lejonet> This is a bad idea, lets do it!
edouard has joined #nixos
<lejonet> well, enabling it went just fine, lets access it and watch the fireworks
<srhb> lejonet: Because this path is present and correct for me: /nix/store/kj6p315vpblxyca0a8213qflqm14fppc-ceph-13.2.4-lib/lib/ceph/mgr/dashboard/frontend/dist
<lejonet> srhb: well, enabling it didn't explode anything, and doing a curl localhost:7000 actually returned what looks like the site :O
<srhb> lejonet: sigh. :)
<lejonet> have we been digging unecessarily? xD
<srhb> I believe so.
<{^_^}> [nixpkgs] @dasJ opened pull request #56835 → nixos/nginx: Support additional listen parameters → https://git.io/fhxzL
<srhb> I still want to know what that random python error is about, but..
erictapen has quit [Quit: Lost terminal]
<iclanzan> Does anyone know how to install a package from a remote tarball using nix-shell? Doing `nix-shell https://url-to-tarball` installs the dependencies of that package not the pacage itself. I guess I need something like the -p flag but that works with remote tarballs.
<lejonet> srhb: its cherrypy whining that its version is unknown, for some unknown reason... I dug a tiny bit in it, but I couldn't find how cherrypy.__version__ isn't a correct version
<srhb> lejonet: Oh yeah, I remember now. That was just a search and replace, I think..
<ldlework> arghhhh
<lejonet> srhb: dashboard works just fine :)
<ldlework> I'm just going to use a USB key I guess
<srhb> lejonet: Well, ok.. Figure out the error message, check if we have changes that aren't documented in release notes, then good to mrge.. :-P
<srhb> I've lost track of the changes..
sigmundv has quit [Ping timeout: 250 seconds]
<Izorkin> aanderse: update nginx. Checked in virtualpc - normal running
<lejonet> srhb: which changes do you mean we should look for?
<srhb> lejonet: Any that require NixOS users to change config
<lejonet> srhb: for the cluster you mean?
<srhb> lejonet: Yep. I think there's nothing, really.
<srhb> But I'm not totally sure.
<lejonet> There shouldn't be any changes in conf, there would actually be relaxations in the conf because the requirement of a mgr is gone
<srhb> lejonet: What, didn't they just make it mandatory? :P
<srhb> In 12 I mean.
<lejonet> srhb: Yes, they made it mandatory for there to be a mgr SOMEWHERE, the module I made made it mandatory everywhere there is a ceph daemon enabled xD
rpg has joined #nixos
<srhb> Ah, right.
<lejonet> Because I only tested it on a all-in-one cluster :P
<srhb> lejonet: Something is still fishy in the test: mgr[py] Module not found: 'dashboard'
<srhb> lejonet: Did you change something else?
<lejonet> Not for dashboard
johanot has joined #nixos
<lejonet> I'm getting gcc segfaults when compiling, so I'm gonna set my RAM down to 2800 again, brb
<srhb> Ouch :P
<lejonet> Eh, known hardware fault with first gen ryzens and it hasn't hit me until now (I recently got a bios version on my mobo that makes it not crash with the memory set to 2933 so :P )
<lejonet> I haven't really been bothered by it, so I never sent in my CPU to get it replaced
erictapen has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/1d628e4588a (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @matthewbauer pushed to staging-19.03 « ghc863: dont add extra libs »: https://git.io/fhxzR
<lejonet> There we go, now it shouldn't segfault :)
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to staging-18.09: https://git.io/fhxza
<infinee_> well that wasn't a very productive evening. Instead of coding, I spent it switching to urxvt and then customizing it.
<{^_^}> [nixpkgs] @worldofpeace pushed to master « pantheon.elementary-calendar: 4.2.3 -> 5.0 »: https://git.io/fhxzw
<srhb> lejonet: Inspecting further, enabling the dashboard forcibly does cause a HEALTH_WARN due to that version error. I'll look at fixing it now.
<srhb> lejonet: But I'm thinking it's trivial
<lejonet> srhb: not in my 12.2.0 cluster, its happy as a snail
ErAsMuS has joined #nixos
<srhb> lejonet: and ceph mgr module ls lists the dashboard?
<srhb> As enabled, I mean.
<lejonet> But yeah, we should fix that issue regardless
<srhb> lejonet: wait, 12.2? That's no surprise then. It'll be a different path entirely.
<lejonet> Yep
<lejonet> ^^
<lejonet> and before you kill me for that, I'm gonna take a shower, can't go and get killed not properly groomed you know
<srhb> lejonet: :-P Enjoy.
Denommus has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace pushed 4 commits to release-19.03: https://git.io/fhxzi
<Denommus> is there a way to remove azure as a dependency from my nixops installation?
infinee_ has quit [Quit: leaving]
kreisys has joined #nixos
arjen-jonathan has joined #nixos
<ldlework> Oh this is no good. Since I updated to more recent unstable, http://logos.ldlework.com/caps/2019-03-04-18-41-34.png
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<lejonet> srhb: I think the solution to the cherrypy problem, in its most trivial form is: Find the version that was pulled into the python env (should be fairly easy I think) and then do a search/replace in the __init__.py file of cherrypy so that the fallback gets the right version too
_kwstas has joined #nixos
linarcx has joined #nixos
<tilpner> ldlework: Did you reboot?
<linarcx> Hi. when i want to list all generations it actully return 5 entries(40, 39, 38, 37, 36). but after i restart the system in grub menu i see 2 entry(27, 28). why?
arjen-jonathan has quit [Ping timeout: 240 seconds]
<lejonet> linarcx: seems like your /boot wasn't mounted when building the past 12 generations
<linarcx> lejonet: why? i have only one partition. /boot and install nixos on it.
<linarcx> how it can be possible?
<lejonet> That is weird indeed
<linarcx> bug report it?
<lejonet> What bootloader you use?
<linarcx> grub
<linarcx> and arch and windows installed on same hard disk
<Denommus> I tried to change the pythonPath in my config.nix, but somehow it's still trying to build azure-related packages
<Denommus> what am I missing?
<lejonet> But you said you only had 1 partition? You mean only one partition for nixos?
<linarcx> yes /dev/sda11 is for nixos(46G)
<lejonet> linarcx: you have uefi or bios?
<linarcx> bios
<lejonet> but as you have 2 other OSes on the same harddisk, there must be a /boot partition outside of that nixos partition, which is what actually gets run
<linarcx> yes indeed.
<Denommus> oh, found it
<ldlework> tilpner:that was it!
<lejonet> linarcx: that partition needs to be mounted somewhere for nixos-rebuild to be able to update the generations
<linarcx> lejonet: How can i do that?
<lejonet> linarcx: how does your hardware-configuration.nix look?
<linarcx> wait a second..
<srhb> lejonet: It's a bit more complicated than that. Under normal circumstances, cherrypy reports the version correctly, so _something_ about the import/whatnot in mgr causes setuptools to barf out.
<lejonet> linarcx: basically you want to add an entry for /boot in hardware-configuration.nix that mounts that partition to /boot
<{^_^}> [nixpkgs] @markus1189 opened pull request #56837 → helm: 2.11.0 -> 2.13.0 → https://git.io/fhxgL
<linarcx> lejonet: it's part of it: ` fileSystems."/" = { device = "/dev/disk/by-uuid/a43e3ab2-1915-4e8a-b83b-d3f9d6874478"; fsType = "ext4"; };`
<lejonet> srhb: yeah, hence the most trivial way to solve it is to search/replace it, not saying that is the best way, because it might break other things, but it will remove the error :P
<srhb> lejonet: Ah, sure, yes.
<lejonet> linarcx: which will put all the generations in /boot on /dev/sda11, but that is not the device, seemingly, that the grub that is run references for nixos
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lejonet> srhb: I didn't look at the code long enough, to actually figure out what the code that tries to fetch the version actually tries to do
<lejonet> srhb: but its almost like it tries to access the version like a class method or similar
<srhb> lejonet: There's a lot of try: except: that makes it a bit harder.
<srhb> It might even be a barfed import somewhere..
<lejonet> srhb: indeed, and I spent maybe 5 mins looking at it
<{^_^}> [nixpkgs] @andir pushed to openssl-1.1 « openvswitch: use openssl 1.0.2 for the time being »: https://git.io/fhxg0
maximiliantagher has joined #nixos
<linarcx> lejonet: What should i do? change that device uuid?
<DigitalKiwi> what does this mean "/etc/kbd directory contains user files. Symlinking may fail. at /nix/store/###-setup-etc.pl line 114." repeated for other than kbd too
<thoughtpolice> tilpner: Are you sure this is KVM related and not seccomp related? SIGSYS is also what is sent by the firecracker seccomp tooling to the process
<thoughtpolice> If you built it with glibc, while they use musl, a seccomp-related failure would not be surprising (they may use different calls internally over time to implement some API... it's one of the nastiest issues with seccomp in general)
nckx has quit [Quit: Updating my GNU Guix server — https://guix.info]
<lejonet> linarcx: I haven't dual-booted nixos, so I dunno exactly how to solve it. What partition does Arch linux use for /boot?
<linarcx> lejonet: /dev/sda8
_kwstas has quit [Read error: Connection reset by peer]
<lejonet> linarcx: when you boot, do you get the option of either booting arch or booting nixos?
_kwstas has joined #nixos
<linarcx> lejonet: Yes. i have a list of options: `1. nixos-defalult 2.nixos-configurations-list 3.arch-linux 4.windows`
<linarcx> another wired behaviour is that last time i boot into nixos and wana to list generations, it return nothing :|
<linarcx> but now it return 5 last generations properly.
<tilpner> thoughtpolice: No, I'm not sure at all
<lejonet> linarcx: I dunno how you've got your grub setup to point to all of those at the same time, was too long since I fiddled with grub, but you need to somehow manage nixos-rebuild to be able to write to the location which hosts your grub configuration
jtojnar has quit [Read error: Connection reset by peer]
<lejonet> Its sadly outside of my knowledge atm :(
jtojnar has joined #nixos
<linarcx> lejonet: No problem. thank you so much for your help. :)
<tilpner> thoughtpolice: Here's the musl version, if you want to give it a build: https://gist.github.com/9ccc98695428e96db3bd064c1fadbb04
<lejonet> srhb: I think what we should look at to debug the real problem is lib/ceph/mgr/mgr_module.py, when I switched to py3, even if I include six in the python env, that one can't import it
<lejonet> linarcx: good luck :)
linarcx has quit [Remote host closed the connection]
<srhb> lejonet: Huh, why do you suspect that?
<srhb> I mean, why would it affect cherrypy.__version__
<lejonet> srhb: because I think its mgr_module.py which actually loads all the modules, kind of how gentoo does with python-exec
<srhb> Hum. Okay.
jomik has joined #nixos
<lejonet> so mgr_module.py is the weird "API" that the modules can use to get cluster state and such
nckx has joined #nixos
<lejonet> There is at least inheritance from that one: https://github.com/ceph/ceph/blob/master/src/pybind/mgr/dashboard/module.py#L235
<{^_^}> [nixpkgs] @worldofpeace closed pull request #53206 → python37Packages.pex: 1.5.3 -> 1.6.0 → https://git.io/fhq6L
<{^_^}> [nixpkgs] @worldofpeace pushed to master « pythonPackages.pex: mark as broken »: https://git.io/fhxgi
<{^_^}> [nixpkgs] @worldofpeace pushed to release-19.03 « pythonPackages.pex: mark as broken »: https://git.io/fhxgM
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/fhxgD
<{^_^}> [nixpkgs] @7c6f434c merged pull request #56825 → renpy: 7.1.3 -> 7.2.0 → https://git.io/fhxBC
<Denommus> why isn't this working? https://ptpb.pw/AdaK/nix
<Denommus> the original preConfigure of both packages is still trying to run
the-kenny has quit [Quit: WeeChat 2.3]
<lejonet> srhb: so my guess is that the whole switcheroo around screws up pythonpath or something
<srhb> lejonet: The weird thing is that I'd expect cherrypy to fail to import then. Which isn't happening.
<srhb> Denommus: overridePythonAttrs probably?
<lejonet> srhb: oh, now I see why it needs the cherrypy version, oh god, nuke it from orbit
* lejonet dies
<srhb> Denommus: But I think you're nuking more than you want to in that approach? I think there's python override examples in the nixpkgs manual that you can refer to
<srhb> lejonet: yeah, it's great :P
<Denommus> srhb: preConfigure only runs a sed script that's currently broken because the file no longer exists
<{^_^}> [nixpkgs] @primeos pushed to master « sway-beta: 1.0-rc4 -> 1.0-rc5 »: https://git.io/fhxgF
<srhb> lejonet: On the plus side it means we could just patch out the entire check
<lejonet> srhb: yeah, and set the dependencies to never ever be able to pull in those versions of cherrypy
<srhb> lejonet: I don't think we need to fear that :-P
<ivan> does anyone here build static binaries with cargo on NixOS and how do you get static OpenSSL working?
<lejonet> srhb: me neither, but if there is one thing I've learned is to never assume someone won't fudge about :P
<srhb> lejonet: If they get _that_ old a cherrypy, I think the warranty is already voided :P
<lejonet> srhb: by putting the dep req, you document why tho, so they look at the right place :P
<srhb> lejonet: You're ruining my jerry-rig moment.
<lejonet> srhb: honestly, them just CONSIDERING using such a old cherrypy voids any warranties they have, even on their fridge :P
<lejonet> srhb: sorry for being a partypooper xD
<suzu> anyone used stack2nix before?
<suzu> im trying to override the derivation it makes
<suzu> clean the up the `src` filepath with gitignores applied
<suzu> i can't figure out how to override the derivation
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @vcunat pushed to master « Revert "luaPackages.cqueues: move to generated" »: https://git.io/fhxgh
<lejonet> srhb: I'm gonna be quiet and not ruin your moment, by going and eating dinner :P
<{^_^}> [nixpkgs] @herrwiese opened pull request #56838 → gogs: 0.11.53 -> 0.11.86 → https://git.io/fhx2v
<srhb> lejonet: Enjoy, I'll probably be off after. Almost there :)
laas has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @FRidh to release-19.03 « pants: mark as broken »: https://git.io/fhx2T
<{^_^}> [nixpkgs] @betaboon closed pull request #28850 → duplicityBackup module: init at v1.3.0 → https://git.io/v5B0e
rpg has joined #nixos
Lears has joined #nixos
<suzu> oh a derivation is just a set of special things in it
<suzu> so i can just merge on it
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to release-19.03: https://git.io/fhx2t
<Denommus> srhb: you helped! Although I didn't fully solve the problem, but it's now a different error
<Denommus> I wish I could just remove azure from nixops
<srhb> Denommus: Hooray, I helped. :)
<suzu> hmm that iddn't wsork
<suzu> i'm still getting warning: dumping very large path (> 256 MiB); this may run out of memory
<srhb> suzu: You're probably importing a large source tree into the store
<suzu> i think i am and im trying to prune it
<suzu> with nix-gitignore
<srhb> suzu: Check out the various filter functions
<srhb> Ah
<srhb> OK, you're already on it :)
<suzu> but that isn't working
[Leary] has quit [Ping timeout: 268 seconds]
<suzu> even if i rewrite src to be /dev/null im getting that error
<suzu> or /tmp
_kwstas has quit [Quit: _kwstas]
<{^_^}> [nixpkgs] @primeos pushed to master « android-studio: -> »: https://git.io/fhx2m
<suzu> how do i see why this is happening?
<srhb> suzu: Maybe you're referring to the large path in some other way than through src
<srhb> suzu: The easiest way is probably to let the import go through and then inspect the store path to see what was actually pulled in
<suzu> hmm
<suzu> ok
<suzu> ill try that
<suzu> lets hope it doesnt kill my machine
<suzu> it may be one of the dependencies?
endformationage has joined #nixos
<suzu> doing a nix-build instead has the same problem
<jomik> wedens: The widget for outdated channel - did you want a taffybar one? Or just a shell script that can be given to a bar? :P
<ddellacosta> it seems like there's a tremendous amount of useful documentation buried in the nixpkgs source. Is there any mechanism in nix to extract the comments into usable docs? It seems like the documentation in the manual is different from the comments, e.g. https://nixos.org/nixpkgs/manual/#sec-pkg-overrideDerivation vs. bhttps://github.com/NixOS/nixpkgs/blob/master/lib/customisation.nix#L6, but is the former somehow
<ddellacosta> derived from the latter in a mechanical way in any sense (and maybe the docs just have an old version)?
xkapastel has joined #nixos
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @primeos pushed 2 commits to master: https://git.io/fhx2n
ATuin has joined #nixos
<{^_^}> [nixpkgs] @avnik opened pull request #56839 → Fix cairocffi build → https://git.io/fhx2C
ng0 has quit [Remote host closed the connection]
spacefrogg has quit [Remote host closed the connection]
aw has quit [Remote host closed the connection]
<catern> > adding license file "LICENSE" (matched pattern "LICEN[CS]E*")
<{^_^}> undefined variable 'adding' at (string):220:1
aw has joined #nixos
<Denommus> isn't it great when whenever you reach a milestone in a nix overlay you get another error right after that?
<catern> why would someone have multiple Es at the end of LICEN[CS]E?
<ddellacosta> (addendum: there isn't actually any documentation at the link in the README, as far as I can tell: https://github.com/NixOS/nixpkgs)
spacefrogg has joined #nixos
<srhb> catern: Or none!
<catern> true, true
jomik has quit [Quit: WeeChat 2.4]
<catern> LICENS
<catern> lol
<srhb> Arguably that's a more fair situation.
<samueldr> catern: LICENSE.rtf maybe?
<catern> licenz
<srhb> Oh, it's a glob :P
<catern> wait, [CS] is valid in globs?
<samueldr> probably not, probably a glob-like syntax
<srhb> catern: yes.
<srhb> Well, it is in my shell at least..
<samueldr> not in mine :)
<catern> huh, yeah, it's valid in bash
<catern> wow, I didn't know that
<srhb> zsh too.
<samueldr> oh, I was had by nullglob
<catern> I usually would do {C,S} instead
<srhb> Ditto.
<catern> (which I think is equivalent? although interestingly the output filenames are listed in a different order with each technique...)
<catern> (aha, I think it's because [CS] works by matching, while {C,S} generates two separate globs - it's not actual part of the glob syntax)
jomik has joined #nixos
<srhb> Oh yeah, you're right.
<srhb> Time to relearn I guess >_>
jomik has quit [Client Quit]
[Leary] has joined #nixos
mmlb has joined #nixos
jomik has joined #nixos
jonafato has quit [Ping timeout: 246 seconds]
<jomik> Anyone here using polybar? I am having an issue where the polybar started by systemd service does not show all my modules, but when I start it by executing the script that ExecStart points at, it works... Any idea why?
jonafato has joined #nixos
Lears has quit [Ping timeout: 246 seconds]
<jomik> No errors in journalctl from what I see..
gagbo has joined #nixos
jomik has quit [Client Quit]
orivej has joined #nixos
jomik has joined #nixos
<jomik> Oh, there is a polybar IRC :P
<srhb> jomik: Is it possible that it's an impurity in your environment?
<tilpner> jomik: I eventually gave up and set ExecStartPre = sleep 1
<tilpner> :(
oldandwise has joined #nixos
<oldandwise> i need a nix expression to compile a C++ program that uses pthread
<catern> oldandwise: does this C++ program already use some build system?
<srhb> lejonet: Gutting out that check does indeed work. Bedtime.
<gchristensen> srhb: sleep well!
<oldandwise> yes,.. i just want to setup the sorrounding environment giving it cmake, c++ and python etc...
<oldandwise> and its looking for missing pthread
<lejonet> srhb: yay! Good night!
<{^_^}> [nixpkgs] @lsix opened pull request #56842 → octave: 4.4.1 -> 5.1.0 → https://git.io/fhx2y
fendor_ has quit [Quit: Leaving]
<catern> oldandwise: pthread should already be present with stdenv.buildDerivation, try running a simple compile using pthread inside "nix-shell" and see if that works
<oldandwise> i,m using, stdenvNoCC
<oldandwise> to control c++ version
civodul has joined #nixos
gagbo has quit [Ping timeout: 244 seconds]
<jomik> srhb: The script looks like this : https://git.io/fhx2H My ExecStart points to that, which causes missing modules, but it works if I execute the script directly in my shell. So maybe.
<catern> okay, not sure if that one will have pthread, but it might, so still try nix-shell and a test compile
<jomik> tilpner: That sounds so bad! :D
iclanzan has quit [Quit: leaving]
<{^_^}> [nixpkgs] @knedlsepp opened pull request #56843 → Fix smbnetfs → https://git.io/fhx25
<tilpner> jomik: It only hurts your pride. I tried dozens of combinations of requires/after/partOf/wants/wantedBy, but none worked reliably
<jomik> The home-manager service does have a Environment set, which I do not. https://github.com/rycee/home-manager/blob/master/modules/services/polybar.nix#L132
<tilpner> But if you do find a proper solution, please tell me?
<jomik> tilpner: Are you using your own service or the one from home-manager?
<tilpner> My own
<tilpner> (I don't use home-manager)
<jomik> Ah.
<jomik> Rebooting to see if adding `/run/wrappers/bin` to the environment helped...
jomik has quit [Quit: WeeChat 2.4]
jb55 has quit [Quit: WeeChat 2.4]
jomik has joined #nixos
<jomik> That didn't work, nor did adding `sleep 1`
<tilpner> You... didn't need to reboot
<jomik> `ExecStartPre = "${pkgs.coreutils}/bin/sleep 1";`
<tilpner> Rebuilding and logging out should work just as well
<jomik> Oh, true. Rebooting is about as fast though :P
<tilpner> Is your machine particularly slow? HDD maybe, or a lot of other services starting at once?
<jomik> SSD, and shouldn't be slow really, it's a rather new laptop still.
<tilpner> (PM)
edouard has quit [Remote host closed the connection]
fusion809 has quit [Remote host closed the connection]
fusion809 has joined #nixos
<{^_^}> [nixpkgs] @knedlsepp opened pull request #56844 → pythonPackages.resampy: Fix build → https://git.io/fhxam
<{^_^}> [nixpkgs] @knedlsepp opened pull request #56845 → mapnik: Fix build → https://git.io/fhxa8
jomik has quit [Quit: WeeChat 2.4]
nschoe has joined #nixos
jomik has joined #nixos
arjen-jonathan has joined #nixos
oldandwise has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @vbgl opened pull request #56846 → compcert: 3.4 -> 3.5 → https://git.io/fhxai
maximiliantagher has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @knedlsepp opened pull request #56847 → pythonPackages.pyopencl: Fix build → https://git.io/fhxaD
maximiliantagher has joined #nixos
jomik has quit [Quit: WeeChat 2.4]
jb55 has joined #nixos
shabius has quit [Quit: Leaving]
alex`` has quit [Read error: Connection reset by peer]
_kwstas has joined #nixos
jomik has joined #nixos
maximiliantagher has quit [Ping timeout: 240 seconds]
alex`` has joined #nixos
<suzu> hmm
<suzu> dependencies built from a stack2nix project seem to not be cached in any way
<suzu> nix is literally building everything
<suzu> and so it is taking forever
fusion809 has quit [Remote host closed the connection]
<suzu> am i doing something wrong or is that just how it is?
<{^_^}> [nixpkgs] @Infinisil merged pull request #56243 → nixos/redmine: fix permissions & cleanup → https://git.io/fhxaA
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fhxax
alex``` has joined #nixos
zupo has joined #nixos
alex`` has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @Infinisil merged pull request #56096 → murmur_git: Fix → https://git.io/fhdjM
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fhxVe
<{^_^}> [nixpkgs] @Infinisil merged pull request #56550 → nixos/xserver: Point to man page for options available in monitorConfig → https://git.io/fhAL5
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fhxVv
nDuff has joined #nixos
hamishmack has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer merged pull request #55081 → Link subdirs.el into emacs-packages-deps site-lisp → https://git.io/fhSsf
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fhxVk
<{^_^}> [nixpkgs] @7c6f434c merged pull request #56843 → Fix smbnetfs → https://git.io/fhx25
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/fhxVI
<{^_^}> [nixpkgs] @7c6f434c pushed to release-19.03 « Merge pull request #56843 from knedlsepp/fix-smbnetfs »: https://git.io/fhxVq
ddellacosta has quit [Quit: WeeChat 2.2]
vk3wtf has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @knedlsepp opened pull request #56848 → pythonPackages.mxnet: Fix build → https://git.io/fhxVZ
maximiliantagher has joined #nixos
_kwstas has quit [Quit: _kwstas]
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
jomik has quit [Quit: WeeChat 2.4]
barryfm has joined #nixos
jomik has joined #nixos
<{^_^}> [nixpkgs] @mquinson opened pull request #56849 → Fix the upstream project URL → https://git.io/fhxVz
alex``` has quit [Read error: Connection reset by peer]
<jomik> So I am unable to see output from my user systemd services with `journalctl --user --unit` but I can find it with `sudo journalctl _SYSTEMD_USER_UNIT=chatty.service`? Why?
<jomik> disregard that, what the sudo one shows me is old I thing :D
<jomik> s/thing/think
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
alex`` has joined #nixos
alex`` has quit [Read error: Connection reset by peer]
ATuin has quit [Ping timeout: 255 seconds]
shabius has joined #nixos
<barryfm> Is the 19.03 channel active? Its not being updated by the 19.03pre tested updates
<ottidmes> barryfm: the 19.03 already exists, but its still in beta, not yet the official new stable
jomik has quit [Quit: WeeChat 2.4]
<barryfm> The successfull updates for 19.03 hasn't been made active
alex`` has joined #nixos
ddellacosta has joined #nixos
jomik has joined #nixos
<{^_^}> [nixpkgs] @veprbl pushed to master « simgrid: Fix the upstream project URL »: https://git.io/fhxVP
rpg has quit [Ping timeout: 240 seconds]
<suzu> hmm
<suzu> maybe that's why my haskell packages are not coming from nixos cache..
<suzu> i upgraded to 19.03
<{^_^}> [nixpkgs] @knedlsepp opened pull request #56851 → pythonPackages.gcovr: Fix build → https://git.io/fhxVy
<disasm> I'm not sure if it would be considered an upgrade or downgrade if I went to 19.03. I'm on unstable but last updated a couple weeks ago I think.
<jomik> 19.03 is not released yet, it's in pre-release :P
<{^_^}> [nixpkgs] @veprbl closed pull request #56849 → Fix the upstream project URL → https://git.io/fhxVz
<jomik> tilpner: Lol, I seem to have deduced that my issue arises when the service is forking... So I could just generate a service per bar that is simple instead ....
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Moredread[m]> Is there a way to check if a file somewhere on the fs exists in a nix derivation? I want to set releasePath for renoise, which requires downloading it manually and setting the path to the downloaded file.
<suzu> you mean you want to search the nix store for a file?
<Moredread[m]> But I share the config on multiple PCs and haven't the file always uptodate on all.
gagbo has joined #nixos
maximiliantagher has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @kalbasit pushed to nixpkgs_fix-go-meta-branch « go_1_12: set meta.branch to 1.12 »: https://git.io/fhxVQ
<Moredread[m]> suzu: No, the file is outside of the store.
maximiliantagher has joined #nixos
<Moredread[m]> I currently have an overlay with "renoise = pkgs.renoise.override { releasePath = ~/Downloads/rns_3_1_1_linux_x86_64.tar.gz; };", but I want to only do the override if the file actually exists.
jomik has quit [Quit: WeeChat 2.4]
<Moredread[m]> Renoise is a particular case because the file is different for each user, so there is no canonical sha hash for that file.
Denommus has quit [Remote host closed the connection]
<suzu> what in the fuck why is nix building haskell packages manuallyu
<Moredread[m]> That is why the releasePath is somewhere outside of the store.
jomik has joined #nixos
bvdw8 has joined #nixos
maximiliantagher has quit [Ping timeout: 246 seconds]
eyJhb has quit [Quit: Bye]
Aleksejs has quit [Ping timeout: 272 seconds]
<simpson> suzu: That's the default mode of operation for Nix; the binary cache is a lucky optimization, not a guarantee.
phire has quit [Read error: Connection reset by peer]
rev_strangehope has quit [Ping timeout: 272 seconds]
bvdw has quit [Ping timeout: 272 seconds]
Thra11 has quit [Ping timeout: 268 seconds]
johanot has quit [Quit: WeeChat 2.2]
rev_strangehope has joined #nixos
Aleksejs has joined #nixos
maximiliantagher has joined #nixos
<{^_^}> [nixpkgs] @kalbasit pushed 0 commits to nixpkgs_fix-go-meta-branch: https://git.io/fhxVh
<{^_^}> [nixpkgs] @kalbasit opened pull request #56852 → go_1_12: set meta.branch to 1.12 → https://git.io/fhxwv
ErAsMuS has quit [Quit: END-AUMF]
ErAsMuS has joined #nixos
barryfm has left #nixos ["Leaving"]
jomik has quit [Quit: WeeChat 2.4]
<{^_^}> [nixpkgs] @knedlsepp opened pull request #56853 → pythonPackages.rabbitpy: Fix build → https://git.io/fhxwm
jomik has joined #nixos
<suzu> aw :(
<{^_^}> [nixpkgs] @cpages merged pull request #56823 → SDL2_image: support WebP images → https://git.io/fhx4B
<suzu> there some way i can work to be less lucky simpson ?
<{^_^}> [nixpkgs] @cpages pushed 2 commits to master: https://git.io/fhxwO
<suzu> err more lucky *
arjen-jonathan has quit [Quit: WeeChat 2.3]
<suzu> i need to move my /nix/store someplace offshore as it's getting awfully large
<simpson> suzu: https://nixos.org/nix/manual/#sec-garbage-collection discusses management of the Nix store, including how to free up space without breaking any profiles.
<suzu> or make my own nix cache or something
fenedor has joined #nixos
<suzu> im using nix on this machine and not nixos
<suzu> so do generations still make nay sense?
gagbo has quit [Ping timeout: 246 seconds]
jomik has quit [Client Quit]
zupo has joined #nixos
jackdk has joined #nixos
vk3wtf has joined #nixos
<simpson> Yeah, that manual should still be relevant even on non-NixOS.
fendor has quit [Ping timeout: 250 seconds]
<Moredread[m]> suzu: have you looked into cachix if you are interested in sharing the build results on multiple machines?
<simpson> You basically *are* making your own cache when you compile. If you're compiling a lot of stuff, then it likely means that whatever you're building isn't something that's built by nixpkgs Hydra.
<Moredread[m]> https://cachix.org/
ddellacosta has quit [Quit: WeeChat 2.2]
<suzu> oh this is nice
<suzu> are there any cachix caches that contain haskell packages that i can subscribe to?
<yl> suzu: you can simply create your own and push to it
ddellacosta has joined #nixos
<suzu> i suppose. ok
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
slack1256 has joined #nixos
<rnhmjoj> do you know of any changes related to openGL recently? i have a package that stopped building due to undefined references to openGL functions like glTexEnvi and glClearDepth. i can't pinpoint the commit because it also broke due to an unrelated bug in SDL
<rnhmjoj> (now fixed)
<{^_^}> [nixpkgs] @Profpatsch merged pull request #56824 → skawarePackages: skalibs and updates all around → https://git.io/fhx4x
<{^_^}> [nixpkgs] @Profpatsch pushed 10 commits to master: https://git.io/fhxwK
Ariakenom has quit [Quit: Leaving]
orivej has quit [Ping timeout: 245 seconds]
orivej has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<yl> WilliamHamilton[: you should override the patches as well
<pie__> question: i think i saw something at some point where you could have a template file and substitute named things in it with nix somehow, do i remember wrong, or what was it?
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f274fc86562 (from 82 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<yl> WilliamHamilton[: also use super.fetchFromGitHub instead of self.fetchFromGitHub
vk3wtf has quit [Ping timeout: 258 seconds]
<WilliamHamilton[> yl: so I have to figure first how that patch has to be modified, right?
<pie__> symphorien, doh, i did not think this is osmething the basic substitute thing does
kvda has joined #nixos
<pie__> ugh this feels kind of ugly for some reason though
<pie__> like, the semantics of env vars and stuff gets all mixed up in there
nschoe has quit [Ping timeout: 245 seconds]
<pie__> theres no nix level substitute?
<pie__> use case: I want to generate a configuration file from a template
<pie__> well...i guess if nix has basic string substitution it cant be that hard to implement
<pie__> replaceStrings it is
<clever> pie__: would be easyer to do it at the bash level, with sed for example
<pie__> but then id have to like...generate sed
<pie__> (which may not be all that difficult in this case but also feels ugly)
orivej has quit [Ping timeout: 245 seconds]
<WilliamHamilton[> yl: eventually I reviewed that patch and since I'm not interested in python bindings, I just set `patches = [];`. But I'm still curious on how one would update that patch if he was interested in it
slack1256 has quit [Ping timeout: 255 seconds]
<{^_^}> [nixpkgs] @danbst opened pull request #56854 → consul: 1.4.1 -> 1.4.2 → https://git.io/fhxrJ
<WilliamHamilton[> also pinging srhb with the same question ^
vk3wtf has joined #nixos
<pie__> clever, I cant actually find where substitute itself is defined :/
<clever> pie__: the substitute function?
<pie__> yeah
<pie__> i mean, thats some bash stuff right
<clever> pie__: first run the `type` command on it, what does it show?
<pie__> clever, oh hm its a function, and type gives me its source, so i can grep for that!
<clever> nix-shell -p --run "type substitute"
<clever> substitute is a function
<clever> pie__: exactly
<clever> pie__: my gut says its in setup.sh
<pie__> which would be entirely unsurprising :'(
<pie__> clever, i bet you cant guess if your gut feeling was correct
<pie__> also, on a more pragmatic level: oh wait, i shouldnt even care, because its source was what i wanted to see in the first place
<clever> oh, heh
<pie__> clever, also yeha guess what you were correct
<pie__> thanks again!
<pie__> substitute calls out to substituteStream which....seems to do it with raw bash? o_o huh.
<pie__> eval "$var"'=${'"$var"'//"$pattern"/"$replacement"}';
<clever> yeah, its insane
alex``` has joined #nixos
<pie__> clever, i mean on one hand, thats kind of cool, on the other hand, ehhh
<pie__> nixpkgs is pretty amazing
<pie__> clever, also im increasingly feeling like most of nix is built on the same few files
<pie__> 10% of the code builds 90% of the pckages? :P (those numbers probably arent extreme enough)
alex`` has quit [Ping timeout: 240 seconds]
<JonReed> Do urxvt plugin packages like `urxvt_font_size` have any outside of `rxvt-unicode-with-plugins`? That it can they be used by themselves or they will ultimately be always only used by `rxvt_unicode-with-plugins`?
<JonReed> s/have any/have any use
thc202 has quit [Ping timeout: 246 seconds]
<JonReed> (I'm trying to add a new urxvt plugin and I want to patch it inside the `wrapper.nix` of `rxvt_unicode-with-plugins`, which make the plugin itself useless if it's used by anything but this wrapper. But all urxvt plugins are still available in `all-packages` individually, so I wonder whether they are somehow used outside that wrapper
<suzu> this has been building for hours wtf!
<suzu> theres gotta be a bin cache of haskell pkgs someplace
<simpson> suzu: What are you building?
<suzu> a haskell pakcage that im working on
<suzu> and it is still building every fucking dep ever
<suzu> manually
<pie__> are you building with a custom GHC or something for some reason
<suzu> no
<suzu> i use stack for the project
<Moredread[m]> are you on the stable channel?
<suzu> so it's all packages from the lts
<suzu> no. im on the unstable channel
<pie__> theres a binary cache but it sounds like you somehow ended up building the world.
<pie__> if the unstable had an update recently or something to haskell stuff then the binary packages might not have caught up
<suzu> how can i switch to the stable and try?
<pie__> i dont have any snippets on hand (maybe someone else can help with that) but you probably want to look into pinning
<pie__> which is to say pinning your build to a specific nixpkgs version
<pie__> (this is good to do anyway IMO)
<Moredread[m]> suzu: you can try it with the -I flag for example, e.g. "nix-build -I nixpkgs=channel:nixos-18.09"
<pie__> doh, thats simpler ^
<suzu> also to be precise: it's a project that i made with stack using a stack lts. no fancy stuff here, i have a few deps that are cloned github repos, a few from hackage, and then 999 from stackage
<pie__> (pinning isnt that hard either)
<suzu> oh yay it just died becuase i ran out of diskspace
<suzu> sigh
<suzu> ok i will try that build flag and see if something different happens
<suzu> oh yes and i also made my .nix by running stack2nix
<{^_^}> [nixpkgs] @andir opened pull request #56855 → ipget: 0.2.5 -> 0.3.2 → https://git.io/fhxr8
<suzu> and i'm just building a (callPackage ./stack2nixout.nix).mypkg
<Moredread[m]> suzu: did you use dependencies from nixpkgs? I'm not familiar with the haskell workflow, but it might be that your build tool pulls the deps instead. Can you post your derivation e.g. on https://gist.github.com/?
gagbo has joined #nixos
<jabranham> I need a browser with flash. Anyone know what still has flash these days?
<suzu> sure, one sec while i paste
<pie__> oh you said youre using stack
<pie__> what jabranham also sounds possible
<pie__> i cant remember if stack has nix integration enabled by default but tbh i dont even know what it does
<{^_^}> [nixpkgs] @cpages pushed 2 commits to master: https://git.io/fhxrz
<suzu> stack does have nix integration
fenedor has quit [Read error: Connection reset by peer]
<suzu> it is not enabled by default
<suzu> that isn't what i'm doing
<suzu> i wish to build it as part of a nixops deployment
<pie__> i used cabal2nix once and that worked pretty good
<suzu> as i want to ship the project to a server
<suzu> and run it there
<suzu> i ordinarily use stack just normally but if it's going to make 10gigs of shit on my system then i might as well use the stack nix builds
<suzu> k nope
<suzu> i tried -I nixpkgs=channel:nixos-18.09
<suzu> and it's rebuilding things
<suzu> i will paste my file in a sec
<{^_^}> [nixpkgs] @cpages pushed to release-19.03 « trigger-rally: 0.6.5 -> 0.6.6 »: https://git.io/fhxra
<suzu> caution: it's real large
vk3wtf has quit [Ping timeout: 240 seconds]
<suzu> i'm building it with a derivation like {pkgs ? import <nixpkgs> {}} : (pkgs.callPackage ./stack2nixout.nix).mypkg
<Moredread[m]> yeah, that looks like it defines and pins (almost) every dependency, and doesn't reuse the ones in nixpkgs
<Moredread[m]> Either they aren't in nix, or stack2nix pins the dependencies by default
<suzu> how can you tell?
<clever> Moredread[m]: stack2nix pins every single haskell dependency, so none will come from nixpkgs
<suzu> oh no oh fuck
<suzu> what should i do lol
<Moredread[m]> If it would use nix packages, there wouldn't be that many buildPackages
<suzu> i ain't got time for 600 builds :(
<Moredread[m]> invocations.
<clever> suzu: the versions come either from the stack resolver in stack.yaml, or stack.yaml itself
<clever> suzu: i usually start with hand-written nix, just callCabal2nix a few times, and ignore the versions stack wants
<{^_^}> [nixpkgs] @Fuuzetsu merged pull request #56648 → ffms: 2.22 -> 2.23 → https://git.io/fhAou
<{^_^}> [nixpkgs] @Fuuzetsu pushed 2 commits to master: https://git.io/fhxrQ
<suzu> ignore the versions stack wants?
<Moredread[m]> clever: good to know
sigmundv has joined #nixos
alex``` has quit [Ping timeout: 255 seconds]
<clever> suzu: if you manually use callCabal2nix on just one or 2 things, you wont have to rebuild the world, but you will also not be using the same versions stack.yaml defined
<suzu> hmm
<suzu> but the point of stack is to pin the versions of dependencies that all build together
<suzu> if i just build everything with the latest avail vers of all the deps from nixpkgs, i will likely break all my shit
alex``` has joined #nixos
<clever> suzu: so you have the choice between:
<clever> a: build a few things, but risk breaking it
<clever> b: build all the things (with nix)
<clever> c: build all the things (but with stack)
<clever> i generally just ignore option c
<suzu> hmm alright
<suzu> how do i go full-on nix with option b?
<suzu> does that play nicely for local development?
<clever> thats what stack2nix does
<suzu> but stack2nix builds /everything/ from scratch
<suzu> :(
<clever> what is an example of something its building?
<suzu> aeson, sha
<suzu> containers
<suzu> basically everything in that file i pasted i suppose
<suzu> gets built
<clever> stack would have built those from source anyways, so its not really any worse
<suzu> and with no help from binary caches
<clever> the simplest thing you can do is to setup a hydra box, to pre-build things, and cache them for many users
<suzu> would it have? it seems like this nix build has been actually chugging all day
<clever> cachix lets you skip having to run your own machine for that
<WilliamHamilton[> question, I reach a `error: infinite recursion encountered, at undefined position` given two overlays I wrote: https://gist.github.com/1662c43f0dfb33ca385b3b942e4a7a28 and https://gist.github.com/meditans/2bd2906b0403d8a142f47c906db887fa . The content of the default nix for the haskell package is https://gist.github.com/eb8693b21c753c9d605857b5e0256181
<WilliamHamilton[> I suspect that the problem is that the packages share the same name (z3)
<clever> WilliamHamilton[: line 3 of the first overlay, you want selfHS.callPackage
<suzu> clever: what if i just tossed stack out completely and went full-on nix?
<WilliamHamilton[> but one should be in haskellPackages and the other at the top level, no?
<suzu> so no stack2nix because there isn't even a stack.yaml
<suzu> and i just use.. cab..al..?
<clever> suzu: for both options a&b, you can pin the version of nixpkgs, then it wont change the versions of things without warning
<suzu> right. but also i need to not use stack2nix because it gets no help from the bincache
<clever> suzu: behind the scenes, nix always uses cabal, and stack2nix just translates the stack to nix, and then lets cabal to the actual building
<suzu> yeah but cabal is working too hard in this case
ym555 has joined #nixos
<suzu> because it wants versions of packages that may or may not be in the bincache
<suzu> so it just builds them all manually anyway
vk3wtf has joined #nixos
<clever> suzu: let me grab an example of a
<clever> suzu: not a, but this is a stupid-simple (not even cabal) package: https://github.com/cleverca22/cachecache/blob/master/default.nix
<clever> suzu: line 4 is a list of haskell deps, line 16 builds it, done
erasmas has quit [Quit: leaving]
<clever> all inputs come from the cache (if hydra is still building ghc 8.4.4)
<suzu> now this is very nice and clean
<suzu> what versions of these deps do you get?
<suzu> whatever is in the nixpkgs of the time?
<clever> suzu: whatever is in nixpkgs
<clever> suzu: this is a slightly more complex example, i modify the datadog package to ignore version constraints, then i load "extra-statsd.cabal" and build it, https://github.com/cleverca22/extra-statsd/blob/master/default.nix#L3-L7
<WilliamHamilton[> clever: thanks, but even with that I get the infinite recursion; I'm issuing "nix-shell" "-p" "with import <nixpkgs> {}; pkgs.haskellPackages.ghcWithPackages (p: [(pkgs.haskell.lib.dontCheck (pkgs.haskell.lib.dontHaddock p.pretty-show)) (pkgs.haskell.lib.dontCheck (pkgs.haskell.lib.dontHaddock p.z3))])" "--run" "ghci"
<clever> the cabal file defines what the deps are, but versions are still based on nixpkgs
<clever> WilliamHamilton[: i suspect you may also have super and self backwards in one or more files, try swapping them around
<suzu> so if i upgrade nixpkgs i may need to upgrade my project to accomodate the new vers of the deps
<clever> WilliamHamilton[: i can never remember which way around it goes
<clever> suzu: i try to also pin nixpkgs, so when i update my channel, the project doesnt update
<suzu> ok. and how do you do local development?
<clever> nix-shell and nix-build
<clever> for haskell packages, you need to use the .env attribute to get a usable shell
<WilliamHamilton[> is the use of "z3" in the first 3 lines of https://gist.github.com/meditans/eb8693b21c753c9d605857b5e0256181 correct?
slack1256 has joined #nixos
<WilliamHamilton[> I mean z3 the solver there, but it's in the same "scope" of libraries like transformers
<{^_^}> [nixpkgs] @danbst opened pull request #56856 → zram: revert "change default algorithm to zstd" (19.03) → https://git.io/fhxof
<clever> WilliamHamilton[: when you callPackage z3, you need to force the z3 input, to be the system package, not the haskell package
<clever> WilliamHamilton[: z3 = selfHS.callPackage ./something.nix { z3 = pkgs.z3; };
slack1256 has quit [Remote host closed the connection]
<suzu> what about things like ide integration?
<clever> suzu: i just use plain vim, and a ghcid running in nix-shell
slack1256 has joined #nixos
<clever> ghcid -c "runhaskell Setup.hs repl"
<clever> suzu: this tells ghcid to run "cabal repl" to get a ghci
<suzu> hmm. i use spacemacs with intero
<clever> and then cabal deals with all the special args ghci needs to start
<WilliamHamilton[> clever: that was it, thanks!
<suzu> hmm
<suzu> okay
<suzu> i think i should just ditch stack then
<suzu> and nix all the things up
<suzu> and then i can profit from the cache
<WilliamHamilton[> clever: btw, I have a lot of problem because cabal generates `.ghc.environment.x86_64-linux-8.6.3` files, and I do not always remember to clear them. is there a way to disable them?
<clever> WilliamHamilton[: none that i know of
<WilliamHamilton[> clever: got it, thanks!
<suzu> does cabal new-build use the nix cache?
<clever> suzu: i dont think it does
<suzu> okay
<suzu> yolo
<clever> suzu: and if there is even a slight mismatch between what nix-shell provides, and what cabal wants, cabal will just build its own copy
<suzu> how can i get started nixing up my project?
<clever> suzu: start with a nix file similar to the extra-statsd one
vk3wtf has quit [Ping timeout: 240 seconds]
<noonien> what package provides `dig`?
<noonien> command-not-found suggests `bind`, however nix-shell -p bind doesn't provide dig
<suzu> and get my deps in and try to build it?
<clever> suzu: callCabal2nix will get the deps the cabal file lists
alex``` has quit [Ping timeout: 244 seconds]
<clever> suzu: so you can just use that, and then run nix-build
<suzu> ok, ill try that
vk3wtf has joined #nixos
<clever> noonien: i think its now in bind.dnsutils
<noonien> clever: is there a reason why command-not-found only suggest `bind`?
<noonien> `dnsutils` does provide it, thanks!
<suzu> clever you are a such a lewgend how do you know all this shit
<suzu> i cant find any good docs on these things for my life
<clever> noonien: i would say that its a bug in command-not-found
<clever> suzu: i memorized the source code for linux, nix, nixpkgs, nixos, nixops, android, ghc, the list goes on .....
<suzu> 'memorized' or are you just familiar from reading it
<noonien> hehe, he's probably just joking
<suzu> lol
<noonien> or, is he?
<suzu> i dont think he is
<clever> suzu: i have identifed linux kernel source, just from a random screenshot in a tv show, that used it to represent "hacking"
<suzu> i recall he said that he's read almost everything in nixpkgs
<clever> and i can tell you what file to find common functions in, for most of those projects
<noonien> clever: that's not too hard though
<suzu> memorized huh
<noonien> kernel code is pretty unique
<suzu> really memorized
<suzu> wow thats a lot of work
<clever> i think part of it is just freakishly good memory
<suzu> nix is dling a bunch of shit and not compiling wooooo
<noonien> linux mainline has over 60k files
<noonien> however, the code style is pretty recognizable
jabranham has quit [Remote host closed the connection]
<suzu> ok so most of this built
<suzu> i got to some deps that it then fetched from hackage and not nixpkgs
<suzu> and then those died without much of a useful error
<clever> suzu: re-run nix-build with -j1
<suzu> when building with stack i fetched those deps and pinned them against a github commit
<suzu> okay
<{^_^}> [nixpkgs] @fpletz pushed to master « minetest: git-5.0.0-dev-2019-01-08 -> 5.0.0 »: https://git.io/fhxoC
<suzu> same thing
<suzu> it says it wrote out some rejects to a file
<suzu> when trying to apply some patches
<suzu> i dont understand where these patches came from and why they failed