<Dandellion[m]>
tobiasBora: if the pi is only going to that you can just add a fetchurl and overlay your package defintion in your configuration.nix, `services.httpd.documentRoot = "${yourpackage}/":`, and `system.autoUpgrade.enable = true`
Shouou has quit [Quit: Leaving]
<tobiasBora>
Dandellion[m]: I'm not sure to understand. Morph is basically used to send a full configuration right?
<Dandellion[m]>
tobiasBora: then that will just check once a day to rebuild your website from the package definiton automatically
<tobiasBora>
so you mean I should include my website directly in my rasp configuration?
<tobiasBora>
and the fetchurl does not need a sha?
boxscape has quit [Remote host closed the connection]
<Guanin>
Hi, does anyone have a (noob friendly) default.nix for a yesod project? I kind of struggle with getting it work with nix-build/nix-shell (basically because the yesodweb/sqlite scaffold is a stack template and I do not really know how to write a derivation for a stack project). I got it working (besides some error from haddock) for the cabal file, but as far as I understand it the cabal file will be generated
<Guanin>
by stack (and having to rerun cabal2nix every time that cabalfile changes seems kind of annoying)
<pistache>
I don't think installing from scratch would help, but be sure to have a look at your hardware-configuration.nix, maybe some device was included by nixos-generate-config but is no more available now
<pistache>
ornxka: can you show the package definition ?
Ralith_ has quit [Ping timeout: 276 seconds]
<pistache>
dansho: if the service is not marked as failed in systemd (it should, if it timed out), you can still find with "journalctl -b" (logs since the boot)
<dansho>
ok i found out you can put allowBroken in the generated shell.nix, but now i need to disable tests for vinyl because it fails to find hspec https://hastebin.com/lapoxijayu
<atlas_>
I'm getting ssh: connect to host <server IPv6 addr> port 22: No route to host on my new VPS from Vultr running NixOS 18.09. Is this a NixOS issue or is the problem on Vultr's end?
<gyroninja>
tilpner: How are you supposed to use weechat-matrix? I am trying to migrate my usage of my own packaging of it to the upstream version. I swapped the symlinks in my .weechat/python for matrix and matrix.py to the new version. When I start weechat matrix.py errors with `ModuleNotFoundError: No module named 'logbook'`. Wee-slack on the other hand creates it's own environment containing all the
<gyroninja>
dependencies it needs. When I packaged weechat-matrix I did something similar, but the upstream version does not seem to do this. Is there a proper way to setup weechat that does not run into this issue? Thanks for the help.
judson_ has joined #nixos
_deepfire has quit [Ping timeout: 240 seconds]
<gyroninja>
weechat-matrix is the only weechat script that is packaged without the libpath patch (other than autosort which is not using dependencies other than python's standard library and weechat)
horner has joined #nixos
horner has quit [Client Quit]
aveltras has quit [Quit: Connection closed for inactivity]
judson has quit [Ping timeout: 250 seconds]
_deepfire has joined #nixos
boolman has quit [Ping timeout: 250 seconds]
noudle has joined #nixos
mexisme has quit [Ping timeout: 246 seconds]
joshuagl has joined #nixos
johill has joined #nixos
civodul has joined #nixos
iqubic has quit [Remote host closed the connection]
<gyroninja>
Do you know how that works? Does it add another path to look for plugins?
<johill>
if 'nix-collect-garbage' prints e.g. "deleting '/nix/store/nk6b2ckznjic5wj8ddw0wgdrn4mbz3lg-patch-registry-deps'", what could be the reason for it not actually being gone?
<tilpner>
gyroninja: This propagates the dependencies of weechat-matrix via python.withPackages
<tilpner>
gyroninja: I haven't heard of the libpath patch, and am interesting in if it could improve on this
<gyroninja>
I reccomend at another one of the scripts
<gyroninja>
*looking at
<gyroninja>
It pretty much involves using buildEnv with a list of dependencies and then writing a patch that calls sys.path.append with that environment you set up
<johill>
ok, I found it, something's odd with my mounts and when it tries to move it from /nix/store to /nix/store/trash, it gets -EXDEV
<gyroninja>
It shifts the responsibility managing where dependencies are to the "compiled" version of the scripts rather than weechat itself
<jgt>
I'm trying to deploy NixOS on a Hetzner machine with NixOps, but it's failing at the partition step. Is there something I can do to make Kickstart's output more verbose?
FRidh has quit [Remote host closed the connection]
iqubic has quit [Ping timeout: 246 seconds]
FRidh has joined #nixos
tmaekawa has joined #nixos
is_null has quit [Ping timeout: 268 seconds]
justanotheruser has joined #nixos
iqubic` has quit [Remote host closed the connection]
iqubic` has joined #nixos
is_null has joined #nixos
iqubic` has quit [Client Quit]
<{^_^}>
[nixpkgs] @lovesegfault opened pull request #74612 → Vim plugins bump → https://git.io/Je1G3
iqubic has joined #nixos
silver has joined #nixos
is_null has quit [Remote host closed the connection]
tmaekawa has quit [Quit: tmaekawa]
is_null has joined #nixos
gagbo has joined #nixos
adamantium has left #nixos ["ERC (IRC client for Emacs 26.3)"]
<deni>
niso: I have a few machines I installed nixos on. I disallow root to ssh into the machine. I imagined I could use nixops to manage each machines configuration.nix instead of manually having to do so.
<deni>
Mic92: ah I see.... so my only option is to use root right now? Is there work being done to allow sudo?
<makefu>
clever: just wanted to say thanks for your "justdoit" module and the kexec stuff! one small thing, for uefi, the bootPartion type must be set to vfat, otherwise grub will not be installed at the end.
<Miyu-saki>
I get that `nixops destroy -d foo --all ` destroys all your delpoyments.
ng0 has joined #nixos
<clever>
makefu: ah, yeah, i still need to fix that typo
fendor has joined #nixos
<jgt>
while trying to deploy NixOS to Hetzner, I get this problem. It seems strange, because I don't see the syntax error.
<jgt>
agent> /usr/bin/nixos-generate-config: line 11: syntax error near unexpected token `0022'
<jgt>
agent> /usr/bin/nixos-generate-config: line 11: `umask(0022);'Y
<jgt>
I've never written any Perl, but is it meant to be `umask 0022` instead of `umask(0022)`?
<jgt>
or could it be that umask is missing from the system?
<tilpner>
Then make some. Realistically, I don't expect your SSD to eat your data, but I do expect your SSD to die of old age eventually if you keep using it
<tilpner>
That's a much more important thing to do, compared to worrying about SSD performance
<tilpner>
(And by "make some", I mean "set up automatic backups")
<fendor>
hehe, yeah, will do!
levdub has joined #nixos
<fendor>
not nixos specific, but when I do `journalctl -p 3 -xb` I get a lot of kernel errors: https://hastebin.com/jeludopeho.sql might that be a hint that my ssd is dying or do I just need to update the firmware?
<jgt>
clever: I know it's a mess, and I just copied that magic shebang from Stack Overflow, but how should I be a good citizen here? Should I open a nixpkgs PR with this? Or should I just keep it for now for my own use?
<fendor>
tilpner, yeah that is fine, I learning a lot anyways
<fendor>
*I am
<clever>
jgt: you need to figure out how nixops is copying that file to /usr/bin/nixos-generate-config, and make sure nixops patches in a #!/usr/bin/perl automatically
<jgt>
it solved _my_ problem, but I don't want this to end up in nixpkgs if it's just bad or if it causes problems for other people
<clever>
jgt: or switch nixops over to kexec!
<Miyu-saki>
Okay. Finally found out the problem.
<jgt>
clever: if that's all obviated by your kexec stuff, then it's probably best we just wait for that, I guess?
<clever>
jgt: yeah
Chiliparrot has joined #nixos
<jgt>
clever: (also, please don't read any sarcasm or passive-aggressiveness into my words, I'm just trying to help but not sure of the best way how) :)
<Miyu-saki>
webapi...> stopping the following units: dbus.service, dbus.socket, nscd.service
<Miyu-saki>
webapi...> reloading the following units: dbus.service, firewall.service
<Miyu-saki>
That's between
levdub has joined #nixos
<Miyu-saki>
58fb23f72ad..8bb98968edf
levdub4 has quit [Ping timeout: 268 seconds]
<jgt>
clever: looks like my Hetzner machine is correctly built now. Thank you again!
fendor has quit [Ping timeout: 240 seconds]
<Miyu-saki>
Can you use a specific commit in a nix channel?
iqubic` has quit [Remote host closed the connection]
<Ariakenom>
how should I set up monitors on nixos? I'm not getting services.xserver.xrandrHeads to work but xrandr calls works.
<Ariakenom>
Well I manage to set the order using the option but setting primary monitor or resolution doesn't work.
<craige>
That really depends on your desktop environmet, Ariakenom. I use xmonad and just xrandr on both login and via keyboard shortcuts to do what I need.
<tilpner>
Ariakenom: I've heard people use arandr and save the graphically configured setup as a shell script
<Ariakenom>
craige: yeah I currently use xrandr on i3 startup
<Ariakenom>
but that way 2/3 screens are black for a few seconds on startup. I'd like a better solution
daGrevis has joined #nixos
<Ariakenom>
so you dont use xrandrHeads? Is it broken?
<inf>
Good morning. I wanted to test a little patch in one of kernel modules - is there a way of adding an entry to boot.kernelPatches that wouldn't rebuild the whole kernel?
<inf>
the command ends in *ctl. that makes it 00's.
<inf>
*config are 90's.
<raboof>
:P
<clever>
then you have some packages, like tgtd
<clever>
it has both tgtadm and tgt-admin!
<inf>
raboof: also >If your desktop environment does not provide such a GUI, you can additionally enable the blueman service, which provides blueman-applet and blueman-manager with the snippet below.
<clever>
tgtadm is a ELF binary
<inf>
I use blueman-applet. It... kinda works.
<clever>
tgt-admin is a perl script
<clever>
the ELF binary, doesnt even support the tgtd config file, and has no way to persist state
<clever>
tgt-admin (a perl script) will read the config file, and then use tgtadm (an ELF binary) to remotely modify tgtd (the ELF daemon), and make the state match the config
<clever>
inf: which era does that fit into? lol
<inf>
clever: he mentioned bluetoothctl was 90's way of bluetooth pairing.
<inf>
they*
gagbo has quit [Quit: I'm out !]
<inf>
nevermind.
<inf>
I need to have some rest, can't even read.
daGrevis has quit [Quit: daGrevis]
smatting has quit [Quit: WeeChat 2.4]
smatting has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
levdub has joined #nixos
<deni>
I'm not sure if I'm thinking about NixOps in the right way. I understand I can use it provosion VMs and what not on popular platforms but since I'm using bare metal machines the way I'm using it is by installing NixOS "manually" on the machines. Then I copy the configuration.nix and hardware-configuration.nix files from those machines and apply new changes via nixops. Is this the correct way of
<deni>
thinking about it? The idea was to avoid having to manage syncing configuration.nix on the machines and the git repo that hosts them.
<deni>
hmm that's interesting ....the deploy ran and did a bunch of things. I was surprised because it shouldn't have done anything since I just copied the configuration.nix file from the host that already had all of it applied to it
<deni>
perhaps it's to do with different nixpkgs
<clever>
deni: definitely
<deni>
I should pin those for sure
<deni>
I already have everything prepared for it but missed it somehow
<clever>
deni: that line will bake a `-I foo=bar` into the sqlite state, and then `nixops deploy` will always obey that `-I foo=bar` automatically
chloekek has joined #nixos
levdub has quit [Ping timeout: 276 seconds]
levdub has joined #nixos
<deni>
clever: I was thinking of using nix.... and then `import nix/sources.nix` or something along those lines
NoctisLa1 has joined #nixos
dansho has quit [Quit: Leaving]
o1lo01ol1o has joined #nixos
<clever>
deni: i dont think its possible to properly tell nixops to obey niv right now, you would need a shell script that pulls the path out of niv, and does `nixops modify`
<clever>
deni: there is a thing using scopedImport to mutate <nixpkgs> after its too late to change, but it harms performance
<deni>
clever: ah I see
<deni>
do I have to call modify each time I change the deployment nix file? or is just calling deploy enough?
NoctisLabs has quit [Ping timeout: 250 seconds]
<clever>
only when you want to change which deployment files you use, or the -I nixpkgs=
<clever>
every call to `nixops deploy` and `nixops info` will re-read the nix files
lvmbdv has left #nixos ["bruh"]
philr has quit [Ping timeout: 252 seconds]
<clever>
modify just changes which nix files it reads
<musicmatze>
Does someone in here use KDE on Wayland on nixos? If yes, please talk to Mr.
<musicmatze>
Me*
<deni>
clever: awesome...thanks for clearing that up
<{^_^}>
[nixpkgs] @domenkozar pushed commit from @jbgi to release-19.09 « haskellPackages: unbreak amazonka (and other packages that use it) »: https://git.io/Je1Wg
o1lo01ol1o has quit [Ping timeout: 276 seconds]
iqubic`` has quit [Remote host closed the connection]
<deni>
tilpner: clever that makes sense... I've used niv this way for local haskell development and in that case it *did* work because I made pkgs point to the import and then used the bounded pkgs var to call pkgs.haskellPackages and so on. But here that's not the case
noudle has quit []
<ottidmes>
I am thinking about buying a new graphics card, thinking about either Radeon RX 5700 XT or GeForce RTX 2700, but I have had terrible luck with regards to GPUs on NixOS in the past, so I was wondering in anybody owns these under Linux or know whether they will be well supported
<deni>
clever: you mentioned that it is possible to use niv with scopedImport but that it's a performance hit? That said, will it be possible to use niv in the future?
<tilpner>
deni: Ideally, niv becomes redudant when flakes land
<tilpner>
*redundant
fendor has joined #nixos
<myme>
I'd like to try to create a derivation which fetches some sources over ssh/scp/rsync - anybody have any experience with something like a hypothetical fetchSSH or similar?
Rusty1 has joined #nixos
Rusty1 has quit [Remote host closed the connection]
<tilpner>
deni: You can still do that when they're actually usable on stable Nix
zupo has joined #nixos
<myme>
ottidmes: Thank you. That looks like a good starting point (I'm not able to use git though). I'll dig into it.
orivej has quit [Ping timeout: 240 seconds]
<deni>
tilpner: I'm going to do what clever proposed above with nixops modify .... -I nixpkgs=.... for now... but I'll follow this RFC and switch when it lands
<clever>
deni: oh, one other option, just change $NIX_PATH before you run any nixops commands!
<clever>
deni: if your using direnv, thats likely the simplest
<gchristensen>
I use a nix-shell to get me nixops and set the NIX_PATH
<deni>
tilpner: thanks for the link...I'll read up on that today.
<clever>
for my personal stuff, ive mostly just been installing nixops system wide, using modify -I, and running it from any dir
<deni>
clever: I'm not sure I understand the first option above.... that is, I don't understand how that works. I thought nixops kept state (including the channel used) in ~/.nixops?
<clever>
deni: it just bakes the `-I nixpkgs=foo` into the sqlite file
<deni>
clever: I don't use direnv. I prefer to explicitly "activate" and "deactivate" envs like that. So I've written my own tool for that. I've written about it but that's a long story. I think I'd be happiest if I could have this defined in my deployment.nix file somehow. That way when i sits in front of me there's no way I can "forget" to use it
<clever>
deni: and every time you try to deploy, it will `nix-build -I nixpkgs=foo <something>`
<clever>
deni: nix-build itself, will then read whatever foo is, which could be a symlink on your machine
<deni>
one thing that's not quite clear....does nixops build stuff locally and then copy or does the build happen on the remote machine? I'd say it happens on the remote machine (for the most part) but wanted to check just in case
xelxebar has joined #nixos
<andi->
deni: it happens locally and is then pushed to (potentially many) remote machines
<andi->
not sure if you could define a build host on the command line
<clever>
deni: if you have /etc/nix/machines setup, it can also take advantage of those, as it builds the local copy
<clever>
deni: there is a haskell util that will build `fetch-nixpkgs.nix`, and then run `nixops modify` on that path
<clever>
(import ./nix/sources.nix).nixpkgs
<clever>
and thats the contents
<clever>
it used to be more complex, pre-niv, since it had to deal with the json files and fetchTarball
<clever>
that complexity has just been moved into nix/sources.nix, and is now managed by niv
fendor has quit [Ping timeout: 245 seconds]
<deni>
so in essence that repo just automated `nixops modify -I ...` right? is the utillity you're talking about open source as well?
lucasvo has quit [Ping timeout: 250 seconds]
zupo has joined #nixos
<clever>
deni: yep, and its in that same repo
levdub has quit [Ping timeout: 250 seconds]
<deni>
I see...it's a big repo so I missed it
<clever>
iohk/common/NixOps.hs: nixops o c "modify" $ Arg <$> cFiles
<deni>
clever: so I assume the idea is to not call nixops directly but rather through that util that act's as a wrapper which then makes sure to always check if the nixpkgs version is correct and if not runs modify?
<deni>
or something along those lines?
<clever>
deni: yeah, you use `io deploy` and `io modify` instead
<clever>
sadly, `io deploy -o foo` maps to `nixops deploy --include foo`, but lacks support for multiple hosts
<clever>
so we often have to `io modify` to re-sync the state, then use bare `nixops deploy`
<clever>
that whole system is being redone now
<deni>
clever: I assume it's tied up with iohk stuff in that repo as well... otherwhise it would be a separate tool in a separate repo?
ng0_ is now known as ng0
<clever>
deni: yeah, it assumes you have a config.yaml file, that describes which cardano nodes to deploy, and how they are inter-connected
<rasmusm>
hey do anybody know what happend to the avr-gcc pkgs? i can find it in 18.9 but not in 19.9 (but i am new nixos user so i may have overlooked something)
<clever>
rasmusm: they can also be accessed under pkgsCross
<clever>
rasmusm: you can use `nix-build --arg nixpkgs '<nixpkgs>'` to bypass the pin on line 1 for testing, and if that rev works, grab the rev from `nix eval nixpkgs.lib.version` and update the pin
<rasmusm>
what do you meen by drop it in to my project? do i not need to install it to use avr-gcc from make?
<clever>
,libraries rasmusm
<{^_^}>
rasmusm: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<clever>
rasmusm: compilers and libraries should never be installed when using nix
<clever>
rasmusm: in this case, just copy my default.nix to your project, run nix-build, and see what happens
<hyperfekt>
There was a tool to help in developing default.nix expressions so that they could easily alternate between using the working directory and fetching the source. Anyone remember its name?
o1lo01ol1o has joined #nixos
rasmusm has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Je147
Chiliparrot has joined #nixos
drewr has quit [Ping timeout: 245 seconds]
o1lo01ol1o has joined #nixos
endformationage has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
boogiewoogie has joined #nixos
drakonis has joined #nixos
<boogiewoogie>
hey, I'm trying to exclude a specific older generation from being GC'd with `-d`. is there a way to do that? alternatively, is there a way to remove specific gcroots? (in my case, every older generation except for one)
Ariakenom has quit [Read error: Connection reset by peer]
<clever>
boogiewoogie: there is also `nix-collect-garbage --max-freed 10g` to limit how much it deletes, but that only applies after the roots are somehow cleaned up
slack1256 has joined #nixos
<boogiewoogie>
clever: thanks, also good to know! since you suggested a way to remove gcroots from the pool, I take it there's not yet a canonical way to precisely preserve older gens through `-d`?
wildtrees has joined #nixos
<clever>
boogiewoogie: correct, -d just nukes all, and --older-than nukes all older than x, then collects garbage
<immae>
boogiewoogie: the question was already asked before, I think the only way to preserve a generation from getting deleted is to have a distinct profile which points to the same derivation
<boogiewoogie>
clever: alright
lucasvo has quit [Quit: leaving]
<immae>
(nix-store --add-root may be a way too)
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Je1B4
<clever>
immae: yeah, that can add an extra root, but nixos wont include it as an option in grub
<boogiewoogie>
immae: I've been asking it before, too -- last week :) my problem with that solution is that the generation won't be listed on boot anymore, so I can't boot into it. I not only need the derivations in there but the whole system state
<boogiewoogie>
yeah, what clever said :)
<immae>
ah, I didn’t get that requirement
<boogiewoogie>
I missed that, sorry
<immae>
yes, this won’t help for that indeed :)
argent0 has quit [Ping timeout: 240 seconds]
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<andi->
slack1256: that doesn't really enforce it as I want... e.g. I can still allocate 10GB even with -p MaxMemory=1G
<slack1256>
andi-: systemd-run is ill configured on nixos so it doesn't enforce all the limits you want, you need to set up the kernel so it can do it's magic.
<slack1256>
Nixos ships with cgroups v1 activated, first you need to boot up with cgroup v1 deactivated and only allow the unified hierarchy of cgroup v2.
<slack1256>
Putting boot.kernelParams = ["cgroup_no_v1=all", "systemd.unified_cgroup_hierarchy=yes" ]; on configuration.nix is a start.
ddellacosta has quit [Read error: Connection reset by peer]
drakonis has quit [Quit: WeeChat 2.6]
glittershark has joined #nixos
drakonis has joined #nixos
<slack1256>
Next you have to know how cgroups v2 works. All the process are at the top level or in the leafs. To activate a controller you have to recursively activate it on the tree until reaching the leafs, so you have to write "echo "+memory +io +cpu" >>cgroup.subtree_control" on each level as root.
<slack1256>
Then and only then when you use `systemd-run --user -p MemoryHigh=1000M -p MemoryMax=1000M -p MemorySwapMax=2M --scope zsh` it will be restricted.
<{^_^}>
[nixpkgs] @7c6f434c pushed to master « matrix-recorder: init at 0.0.6 »: https://git.io/Je10C
<{^_^}>
[nixpkgs] @c0bw3b merged pull request #70281 → rssguard: Add wrapQtAppsHook to run app in all environments. → https://git.io/Jecmp
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @pstn to master « rssguard: add wrapQtAppsHook to run app in all environments (#70281) »: https://git.io/Je10W
<{^_^}>
[nixpkgs] @itsapinhulk opened pull request #74661 → boost : extra arguments to b2 → https://git.io/Je100
<evanjs>
clever: not sure if it was the sane thing to do, but that "waiting for lock" thing happened again and it turned out to be a nixos tarball this time
<evanjs>
just removed the lock and it seemed to fix it ... :P
<clever>
evanjs: there might have been another process downloading the same tarball
<evanjs>
clever: right, that's what I was wondering. Didn't seem too dangerous to remove a lock if it was only in /root/cache/nix/tarballs. I typically expect NixOS to not let me screw things up too easily, anyway :P
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
slack1256 has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @c0bw3b pushed 3 commits to release-19.09: https://git.io/Je10x
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Je10j
iqubic` has quit [Remote host closed the connection]
iqubic` has joined #nixos
<Stuck_>
Hi, I've installed graphviz, and when I run vimdot it gives `/run/current-system/sw/bin/vimdot: EDITOR not found or not executable`, even though I have $EDITOR as vim
<clever>
Stuck_: is /run/current-system/sw/bin/vimdot a shell script?
<Stuck_>
hoo, yes it is
<clever>
what does it check for when giving an error?
<abathur>
anyone successfully using apache 2.4+ with php7+ module? trying to set it up on macos but there's no ${pkgs.php}/modules directory; not quite sure if it's a general break, darwin specific, or if I'm just doing something wrong
<Stuck_>
`[ -x "$editor" ]`
<clever>
Stuck_: why is it lowercase? is there other lowercase editor's present?
<Stuck_>
`editor="$EDITOR"`
<clever>
Stuck_: if you `touch vim ; chmod +x vim` does it then work?
<Stuck_>
yes, it works
<Stuck_>
it executes that vim (nothing)
<clever>
Stuck_: the script wrongly assumes that $EDITOR is an absolute path
<Stuck_>
hooo
<clever>
so you need EDITOR=/run/current-system/sw/bin/vim
<clever>
it should be -z, not -x
<Stuck_>
ok, lets try it
iqubic` has quit [Remote host closed the connection]
<clever>
-x tests if the file is executable, and its just "vim" so it looks in the current dir
<clever>
but i would instead have used -z, which tests that it has been set to anything
<Stuck_>
yeah, thats definitely better, but it works now, thank you very much ^^
<{^_^}>
[nixpkgs] @peti pushed 4 commits to haskell-updates: https://git.io/Je1uV
zupo has joined #nixos
<nixy37>
enteee: I'm not sure I entirely understand but I think it has something to do with your derivation missing a name? From your branch I couldn't list all packages using `nix-env -f . -qa`. Once I replaced `drv.name` in your default.nix it would at least list out packages
<clever>
evanjs: i also think the buildEnv there is pointless
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python38Packages.inotify-simple: 1.1.8 -> 1.2.1 »: https://git.io/Je1gU
levdub has joined #nixos
<o1lo01ol1o>
I'm tryign to debug an xcodebuild command but I keep getting persmissions errors:cp: cannot create regular file '/nix/store/34idgln402k53shkk9i68ysh5j62ii2i-MoltenVk-70749b0618695128abb886b4c6808bc9124786c0/build/build/Build/Products/Release-iphoneos/framework/MoltenVKSPIRVToMSLConverter.framework/MoltenVKSPIRVToMSLConverter': Permission denied
<o1lo01ol1o>
Can anyone suggest what might be going on there?
<o1lo01ol1o>
The buildCommand just copies $src to $out and then runs xcodebuild -quiet -project MoltenVKPackaging.xcodeproj -scheme "MoltenVK Package" -derivedDataPath "$out/build/build" build there
<o1lo01ol1o>
clever: `cp --no-preserve=mode -r $src/. $out` <- wouldn't this override the permissions?
tomberek has joined #nixos
<tobiasBora>
Dandellion[m]: ok thanks. I'll use normal rev + hash trick at the beginning, and finally move to these tricks
xkapastel has quit [Quit: Connection closed for inactivity]
zupo has quit [Ping timeout: 246 seconds]
civodul has joined #nixos
<tomberek>
howdy, I've been using the dockerTools.buildImage and buildLayeredImage. Is there a way to hint the buildLayered image to place a particular dependency earlier in the layering? (it's not an issue when using locally, but pushing to registries is slowed down with a multi GB data layer that rarely changes)
<tobiasBora>
But for now I'm having issues with building my website with hugo + nix. I tried that file, and I got that error (both in same paste): http://paste.debian.net/1118571
<tobiasBora>
I don't know if it matters but I'm running debian
zupo has joined #nixos
<tobiasBora>
the first strange error is /nix/store/whpnlfj79vd8p175rp1bwg0x7wz5lmj1-stdenv-linux/setup: line 795: /build/env-vars: No such file or directory
<tobiasBora>
and then the strange things goes even stranger find: '/build/..': No such file or directory
<tobiasBora>
and after few lines it panic: panic: mkdir /build: permission denied
<Dandellion[m]>
>`panic: mkdir /build: permission denied` is probably the worst of those errors
<tobiasBora>
(the panic seems to be given by hugo)
<tobiasBora>
did I miss something?
<clever>
o1lo01ol1o: that will also undo +x, potentially breaking scripts
<clever>
o1lo01ol1o: the unpackPhase function already handles everything for you, and deals with $src being a tar or zip
<tobiasBora>
could it be related with a bug with debian that do not have sandbox?
<clever>
o1lo01ol1o: and it strips the hash off of store paths
<o1lo01ol1o>
clever: ah, ok, that explains the breakage on the *.sh files. Great, thanks!
<{^_^}>
nix#3142 (by cleverca22, 6 weeks ago, open): NIX_BUILD_TOP not set correctly outside of nixos
<tobiasBora>
I'll try to reinstall a fresh nix. Btw, if I want to get the fix, should I just rm -rf /nix and reinstall? Or can I directly update nix and "it works(tm)"?
<jluttine>
is it possible to run tests in package derivation so that some network stuff is used? i'm fixing derivation of pythonPackages.pg8000 and i guess its tests somehow set up some local database that is accessed.. trying to figure out in more detail..
magneticduck has quit [Remote host closed the connection]
alexherbo2 has quit [Ping timeout: 265 seconds]
bvdw has quit [Read error: Connection reset by peer]
wildtrees has joined #nixos
<otwieracz>
Is there any automated way of creating python packages from pip?
bvdw has joined #nixos
gxt has quit [Quit: WeeChat 2.6]
<otwieracz>
I am trying to create derivation for burp-ui, but there are some dependencies missing, also list of dependencies is getting painfully long:
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @bhipple to master « libcerf: 1.5 -> 1.13 (#69218) »: https://git.io/Je12w
<otwieracz>
OK, thanks
gxt has joined #nixos
<adisbladis>
otwieracz: There's pypi2nix, pip2nix and poetry2nix though.
<tomberek>
i've found it relatively easy to just build a new derivation using buildPythonPackage
<typetetris>
Has anyone got an radeon rx 5700 xt working on nixos 19.09 and verified, he is running amdgpu and not vesa driver?
<adisbladis>
typetetris: I'm running one on unstable.
<adisbladis>
It's not gonna work on 19.09.
<typetetris>
adisbladis: You need to tweak something or does unstable work out of the box? (I upgraded xserver amdgpu driver, kernel to 5.4.1 and my 19.09-Branch, but that didn't help either).
jco has quit [Quit: WeeChat 2.6]
<adisbladis>
typetetris: Mesa version
<typetetris>
default from 19.09 is 19.1.5
<adisbladis>
typetetris: Yeah on unstable it's 19.2.4 with 19.2.6 coming soon
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python38Packages.boltons: 19.1.0 -> 19.3.0 »: https://git.io/Je12i
<adisbladis>
typetetris: I had to bump mesa to get it working, it was a huge ordeal
<typetetris>
The error I get in `X.0.log` is `AMDGPU(0): [KMS] drm report modesetting isn't supported.` I don't understand how that relates to mesa, but I will certainly try unstable .
<typetetris>
adisbladis: So I have to wait for 19.2.6 to land on unstable or does it already work?
oscarvarto has joined #nixos
<otwieracz>
It's always like that, you want to change one little thing and you end up upgrading half of tree..
<adisbladis>
typetetris: It works already.
<oscarvarto>
Hi! I need some help to install virtual box guest additions in an Ubuntu guest. Where is it mounted?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
halfbit has quit [Ping timeout: 250 seconds]
<oscarvarto>
I basically want it to be able to us full screen
dbmikus_ has joined #nixos
<adisbladis>
oscarvarto: You likely want to install the ubuntu packages for guest additions
<oscarvarto>
How could I do that?
<oscarvarto>
I have seen that stuff is installed automatically