sphalerite changed the topic of #nixos to: NixOS stable: 19.03 \o/ https://discourse.nixos.org/t/nixos-19-03-release/2652 || 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
mbrgm_ has joined #nixos
mbrgm has quit [Ping timeout: 252 seconds]
mbrgm_ is now known as mbrgm
selfsymmetric-mu has quit [Remote host closed the connection]
Rusty1 has joined #nixos
qqii has quit [Ping timeout: 260 seconds]
ris has quit [Ping timeout: 276 seconds]
averell has joined #nixos
jackdk has joined #nixos
zacts has joined #nixos
noudle has quit []
domogled has quit [Remote host closed the connection]
<zacts> is btrfs stable enough on nixos to use as a laptop fileystem?
<zacts> I'm kind of out-of-the loop when it comes to linux filesystems
<zacts> would ZFS be more well supported on nixos, or should I try Btrfs?
* exarkun also curious
<clever> zacts: i use zfs on all of my nixos machines
<zacts> cool ok
<avn> zacts: zfs works pretty well
<zacts> nice, I'll try it out
<zacts> I'm somewhat familiar with ZFS from FreeBSD, but it's been years
<ToxicFrog> ZFS is well supported on Nix. brtfs is also well supported but, tragically, doesn't actually work very well
<ToxicFrog> In general, I mean, not specifically on Nix
<zacts> good to know :-)
<avn> zacts: if you want boot from zfs, you need enable "copy kernel" or disable hardlinking store, grub unable to read kernels straight from /nix/store
<ToxicFrog> So I would recommend zfs, or failing that, ext4 or xfs or the like.
<zacts> so must I build my own ZFS kernel modules or can binaries be provided?
<ToxicFrog> zacts: if you enable ZFS nix will automatically put the necessary support into the kernel/initrd (not sure which)
<clever> zacts: just boot.supportedFilesystems = [ "zfs"]; and nixos will build the kernel drivers for you
<zacts> ok cool
<ashkitten> so what's keeping btrfs from being a useful filesystem?
kvda has joined #nixos
<exarkun> ashkitten: btrfs developers just seem to not be winning
<exarkun> how do I recover from this state? https://gist.github.com/exarkun/87e2e88b2dc48dc486ae01e0cd044a47
<ashkitten> do they not have enough developers or what
<ToxicFrog> ashkitten: awful performance characteristics, weird infelicities like the FS running out of space despite only being half full and only sometimes being fixable when it gets into that state, bad UX
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fji80
<ashkitten> weird
<exarkun> ashkitten: software development is hard? most software projects fail? I don't have more insight than that.
<ashkitten> i mean fair enough
cyphase has quit [Ping timeout: 245 seconds]
thc202 has quit [Ping timeout: 250 seconds]
kvda has quit [Client Quit]
<ashkitten> it looked interesting as an alternative to zfs, but with all the tales of data loss under btrfs i dont really trust it enough to try out
<Ralith> bcachefs is the new hotness
<exarkun> I hear pretty good things about xfs
b has quit [Ping timeout: 248 seconds]
<zacts> what is bcachefs?
<ToxicFrog> Yeah, it would be really nice if there were a viable in-tree alternative to ZFS, but as it is btrfs isn't even a viable alternative to ext4
<exarkun> actually I re-installed my laptop w/ xfs on / and completely forgot about that.
<zacts> looks interesting
kvda has joined #nixos
<ashkitten> i'm not looking for an alternative to zfs, per se. i'm happy with zfs, i just think it'd be nice to have other projects that can experiment with new ideas
<samueldr> exarkun: go through 18.03 once first
<exarkun> samueldr: I get a similar syntax error on 18.03
<samueldr> hmm
<zacts> is bcachefs in the mainline kernel yet?
<samueldr> exarkun: For users of NixOS 17.09, you will first need to upgrade Nix by setting nix.package = pkgs.nixStable2; and run nixos-rebuild switch as the root user.
<exarkun> samueldr: What if I didn't do that first
<samueldr> then nix cannot parse the new syntax I think
<ashkitten> is there anything significant about bcachefs vs zfs?
<exarkun> samueldr: right, but does that mean I totally destroyed my nixos system or is there some way to recover from this
<samueldr> ah no, nothing should be "destroyed"
kvda has quit [Read error: Connection reset by peer]
<samueldr> first, you were on 17.09, right?
<samueldr> as in, the running system was 17.09?
<exarkun> samueldr: I was first on 16.09 actually :/
<samueldr> ah!
<samueldr> and you built --uprade 17.09
<exarkun> I tried going straight to 19.03 without reading the release notes, and then someone suggested going to 17,09 first, so I tried going to that, and then I tried going to 18.03
<samueldr> switch the channel back to 17.09, build boot to 17.09, then reboot; then it should be possible to do the next step
<samueldr> did you reboot to 17.09? (or switch to it?)
<exarkun> I haven't switched to anything, only `nixos-rebuild test --upgrade`. I did reboot once somewhere in this process, trying to get back to a clean, working 16.09 but I saw some evidence that that's not what I got.
<exarkun> there was a store schema upgrade at some point in here I guess?
<exarkun> if I try to go to 17.09 now I get: error: cannot start daemon worker: current Nix store schema is version 10, but I only support 7
mexisme has quit [Ping timeout: 268 seconds]
<samueldr> hmmm, I don't know :/
<samueldr> maybe first figuring out where you are, what your system is running
<samueldr> nixos-version should output the information
<exarkun> it says 16.09.680.4e14fd5 (Flounder)
<samueldr> right, so the current active system is a 16.09
<samueldr> >> [I] only `nixos-rebuild test --upgrade` <- do you know which version it was?
<exarkun> which nixos channel was active when the command was run, do you mean?
<samueldr> it looks like your store was upgraded to 2.0
<samueldr> yes
<exarkun> I ran it a lot of times with ... probably all of the channels :/
<samueldr> so it looks almost like you switched to 18.03
<samueldr> well, tested into 18.03
<exarkun> the command seemed to fail every time though
<samueldr> (test is like switch, except it doesn't write to the bootloader)
* exarkun nods
<exarkun> I thought it would be safe to "test" the changes because I could always reboot back to the old system
<exarkun> but I didn't think about nix store schema upgrades
<samueldr> I think the generally agreed best practice when switching channel is to nixos-rebuild boot since sometimes software doesn't act just right when switching
<samueldr> yeah
hio has quit [Quit: Connection closed for inactivity]
<samueldr> allegedly, from the issue you linked, in the future it shouldn't be an issue
<samueldr> so, I see two directions (1) 17.09 and setting nix to nix 2 in configuration.nix (2) trying again 18.03
<exarkun> I guess I'll try those dump/restore instructions and see if I can get back to a store readable to 16.09 and then I'll re-try the nixos-rebuild, going first from 16.09 to 17.09 and then from 17.09 to ...?
<exarkun> okay I can try that
<clever> exarkun: i would just upgrade further
<samueldr> though I would try through 18.03 first
<clever> exarkun: you can force nixos-rebuild to use a newer nix, so it can read the store
<exarkun> So `nix-channel --add https://nixos.org/channels/nixos-18.03 nixos` and then `nixos-rebuild boot --upgrade` and then reboot?
<exarkun> but first put `nix.package = pkgs.nixStable2;` into configuration.nix?
<exarkun> is it worth rebooting before doing any of that, since I've been screwing around with channels and `nixos-rebuild test` a bunch?
<clever> nix.package may not work, since it needs the new nix to read the config and get the new new
<exarkun> ah. some other way to make nixos-rebuild use a newer nix, then?
<clever> yeah, one sec
<clever> `_NIXOS_REBUILD_REEXEC=1 nixos-rebuild`
<clever> that tells nixos-rebuild to not add its own idea of nix to PATH
<clever> then you can manually find a newer nix in /nix/store/, and add it to PATH yourself
<samueldr> clever++ glad you jumped in :)
<exarkun> ooh a secret.
<{^_^}> clever's karma got increased to 146
<clever> ls -ld /nix/store/*nix-2*/
<exarkun> yea, there's some stuff, including a dir w/ a bin/nix in it
<exarkun> hm, not clearly having any effect. `nixos-rebuild test` is still complaining about schema version
<clever> exarkun: are you using `_NIXOS_REBUILD_REEXEC=1 nixos-rebuild test` ?
<exarkun> yea
<clever> exarkun: what does `echo $NIX_REMOTE` say?
<exarkun> empty
<clever> nix-store --version ?
Chiliparrot has quit [Ping timeout: 264 seconds]
<exarkun> 2.0
<clever> export NIX_REMOTE=local
<exarkun> progress
<clever> it was still trying to connect to nix-daemon
<clever> and the active nix-daemon is too old
<exarkun> makes sense
<exarkun> alright now fetching enough stuff that I'm gonna go to bed and see how it looks in the morning :)
<exarkun> thanks a lot for the help clever, samueldr
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/beff2f8d75e (from 12 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
<clever> yep
gagbo has quit [Ping timeout: 268 seconds]
mexisme has joined #nixos
<samueldr> exarkun: take time to read through release notes, all of them you're going through, sometimes there's really neat stuff hiding in them you can learn :)
<samueldr> (I know I did!)
jluttine has joined #nixos
<OmnipotentEntity> after all of this faffing about, I managed to patch the .so files, but
<OmnipotentEntity> I also learned what I did wrong originally and they don't need to be patched due to the wrapper.
stepcut has joined #nixos
<OmnipotentEntity> so... I guess I don't need to make a PR
<clever> omnipotententity: ah!
hamishmack has quit [Ping timeout: 245 seconds]
MmeQuignon has quit [Ping timeout: 245 seconds]
<OmnipotentEntity> thanks for the help though clever I appreciate it
cjpbirkbeck has joined #nixos
selfsymmetric-mu has joined #nixos
<{^_^}> [nixpkgs] @eadwu opened pull request #64429 → vscode-extensions.ms-vscode.cpptools: 0.23.1 -> 0.24.0 → https://git.io/fji8H
b has joined #nixos
zacts has quit [Quit: WeeChat 2.4]
infinee has joined #nixos
alpounet has joined #nixos
Okinan has joined #nixos
alp has quit [Ping timeout: 252 seconds]
Riley has joined #nixos
slyfox has quit [Ping timeout: 272 seconds]
zacts has joined #nixos
<Riley> If anyone else here uses home-manager as a NixOS system module, you might be able to help me out... I'm having trouble enabling the home-manager fontconfig. Setting fonts.fontconfig.enable = true says it has a conflicting definition in the home-manager source files
slyfox has joined #nixos
Miyu-chan has joined #nixos
Miyu-chan is now known as Guest7000
stepcut has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 264 seconds]
Guest7000 has joined #nixos
Guest7000 has quit [Changing host]
Guest7000 is now known as Miyu-chan
jkachmar has joined #nixos
acarrico has quit [Ping timeout: 268 seconds]
azdle has quit [Quit: The Lounge - https://thelounge.github.io]
<OmnipotentEntity> If anyone is good with python packaging. I checked the nixpkgs manual, but I was unable to find any way of restricting a package to a certain version or family of python interpreters. How do you do this?
<OmnipotentEntity> The manual calls out that the maintainer ought to ensure that the library works with all versions of the interpreter. But this just simply isn't the case for an already packaged library.
<simpson> omnipotententity: Depends on exactly which restriction you need. The most common one is `isPy3k` for Python 2 vs Python 3.
<OmnipotentEntity> simpson, I need to restrict the library to only python2.
<OmnipotentEntity> looks like the proper invokation is "disabledIf isPy3k <rest of the line>" from checking the python-packages.nix file thanks!
azdle has joined #nixos
<simpson> omnipotententity: `disabled = isPy3k;` grep the tree for more information.
kvda has joined #nixos
<switchy> hmm, pango is a split package, but I don't seem to be able to install anything to get libpango in my profile... neither installing the bare package nor its .dev split work. I can see the libpango stuff sitting in a store directory though!
alpounet has quit [Ping timeout: 252 seconds]
<Ralith> switchy: for unclear reasons, user profiles and build environments are separate schemes; you need a nix shell for the latter
rotaerk has quit [Remote host closed the connection]
<OmnipotentEntity> How does one go about testing to make sure my change is correct?
<OmnipotentEntity> nix-env doesn't seem to install python packages as they typically live in python, no? and nix-shell doesn't seem to take a path to a nixpkgs directory?
<simpson> You'd use `python.withPackages` or similar.
hmpffff_ has joined #nixos
<simpson> I normally use the REPL in order to test out fancy expressions.
<OmnipotentEntity> oh snap, I had no idea nix-env took a nix expression rather than just a package name
rotaerk has joined #nixos
<OmnipotentEntity> actually it doesn't?
hmpffff has quit [Ping timeout: 252 seconds]
day|flip has joined #nixos
<switchy> Ralith, oh, that seems odd...
<Ralith> yes, it would be nice if things were more consistent
<OmnipotentEntity> `nix-build -A python37Packages.opencv` is what I wanted
<zacts> can I nix-build a package and get a full log of my build error?
<zacts> it's not displaying the full output of the build
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zacts> I tried --verbose, but it's not making the actual build itself verbose
<zacts> --verbose seems to only show the nix side of things, and I want the full output of what went wong in my ./build.sh script within my build src/
<OmnipotentEntity> zacts, By default, output written by builders to standard output and standard error is echoed to the Nix command's standard error. This option suppresses this behaviour. Note that the builder's standard output and error are always written to a log file in <prefix>/nix/var/log/nix
Guanin has quit [Remote host closed the connection]
<OmnipotentEntity> From the man pages. Check /nix/var/log/nix
<zacts> oh
<zacts> is nix-build an alias for `nix build` or something?
<clever> zacts: nope
<clever> zacts: they both build, but the args they accept and how they output differ a lot
<zacts> so should I be using `nix build` for this use-case?
<clever> `nix build` will show the last 10 lines of the log on failure
<clever> `nix-build` will show the entire log, failure or not
<clever> i flip between the 2 based on how much output i want
<OmnipotentEntity> either way the entire build output is displayed or logged when using nix-build
<clever> in both cases, the entire output is logged when the build passes
<OmnipotentEntity> if it's not being displayed then it's not being outputted or it's being overwritten on your console by control characters perhaps (such as \r)
<clever> nix-store -l /nix/store/foo will read the logs
<zacts> ok, let me look at this
hamishmack has joined #nixos
cyphase has joined #nixos
<zacts> the above nix-store command shows the same output that I'm getting on the console
<zacts> omnipotententity: the package I'm trying to build normally displays many lines of ./configure / etc... but I'm not seeing all of that with nix-build
<zacts> the package uses its own ./build.sh versus a normal ./configure;make;make install
<zacts> so perhaps that's why
<OmnipotentEntity> zacts, which package? It might be suppressing output
<zacts> omnipotententity: I'm trying to add a package for a Ruby interpreter, rubinius
<zacts> let me link my gists
<OmnipotentEntity> what's in build.sh?
<zacts> when I build rubinius in nix-shell it all works out. nix-shell also shows the normal output of build.sh as well
<OmnipotentEntity> rake -q
<OmnipotentEntity> it should still be showing the output of configure though
<zacts> I wonder where to begin to debug this
<OmnipotentEntity> oh
<OmnipotentEntity> /nix/store/b6gp7z7brjxkvsx5k0gjzsya3wvr1b9w-stdenv-linux/setup: ./configure: /usr/bin/env: bad interpreter: No such file or directory
<zacts> yes that's the error I'm getting
<OmnipotentEntity> configure is looking in the wrong place for /usr/bin/env
<clever> patchShebangs has to be ran
<zacts> I added patchShebangs
<zacts> immediately before ./build.sh
<OmnipotentEntity> patchShebangs .
<zacts> yep
<clever> oh, i see the problem
<zacts> I have that
<clever> the configurePhase, comes before the buildPhase
<clever> during configurePhase, nix will run configure for you
<clever> so nix is running configure, before you patch things
<OmnipotentEntity> oh haha
<clever> patchPhase !!
<zacts> oh
<zacts> :-)
<zacts> let me try that
<zacts> because yes, there is a ./configure script in there, it's just not used directly
<zacts> ./configure and ./build.sh live side-by-side
<zacts> but ./build.sh is the only way to actually build this package properly
infinee has quit [Ping timeout: 248 seconds]
<OmnipotentEntity> If you need to NOT run configure, you can disable that phase I believe.
<clever> you may also want configurePhase = "echo stop that";
<{^_^}> [nixpkgs] @teto merged pull request #64411 → vimPlugins.coc-nvim: 0.0.71 -> 0.0.72 → https://git.io/fjiO7
<{^_^}> [nixpkgs] @teto pushed to master « vimPlugins.coc-nvim: 0.0.71 -> 0.0.72 »: https://git.io/fji44
<zacts> so I have moved `patchShebangs .` to patchPhase
<zacts> I have added an echo to configurePhase
<{^_^}> [nixpkgs] @OmnipotentEntity opened pull request #64430 → python37Packages.opencv: remove → https://git.io/fji4E
<zacts> ok it made it past that error, thanks. let me try for the rest of the build now
deech has quit [Ping timeout: 244 seconds]
andreas303 has quit [Ping timeout: 260 seconds]
phreedom_ has quit [Quit: No Ping reply in 180 seconds.]
phreedom has joined #nixos
infinee has joined #nixos
andreas303 has joined #nixos
polman has quit [Ping timeout: 244 seconds]
polman has joined #nixos
<{^_^}> [nixpkgs] @teto merged pull request #64417 → dunst: 1.4.0 -> 1.4.1 → https://git.io/fjiZT
<{^_^}> [nixpkgs] @teto pushed commit from @xrelkd to master « dunst: 1.4.0 -> 1.4.1 »: https://git.io/fji4o
<zacts> huh, this package installs a bunch of ruby gems
kvda has joined #nixos
zacts has quit [Ping timeout: 252 seconds]
domogled has joined #nixos
rotaerk has quit [Remote host closed the connection]
MinceR_ has joined #nixos
rotaerk has joined #nixos
MinceR has quit [Ping timeout: 248 seconds]
delan has quit [Ping timeout: 264 seconds]
delan has joined #nixos
delan has joined #nixos
delan has quit [Changing host]
samrose has quit [Remote host closed the connection]
Riley has quit [Ping timeout: 248 seconds]
samrose has joined #nixos
domogled has quit [Ping timeout: 244 seconds]
root has joined #nixos
Miyu-chan has quit [Ping timeout: 244 seconds]
root is now known as Miyu-chan
Miyu-chan has joined #nixos
Miyu-chan has quit [Changing host]
zacts has joined #nixos
hamishmack has quit [Remote host closed the connection]
sushi_ has joined #nixos
ilikeheaps has quit [Ping timeout: 264 seconds]
<{^_^}> Channel nixos-19.03 advanced to https://github.com/NixOS/nixpkgs/commit/9ec7625cee5 (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-19.03)
<{^_^}> [nixpkgs] @marsam merged pull request #64131 → python37Packages.fido2: 0.5.0 -> 0.7.0 → https://git.io/fjKiq
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/fjiBf
<zacts> https://github.com/manveru/bundix <-- looks like I might have to learn how to use this
Soo_Slow has quit [Remote host closed the connection]
Supersonic has quit [Ping timeout: 276 seconds]
domogled has joined #nixos
<{^_^}> [nixpkgs] @marsam opened pull request #64431 → pythonPackages.nvchecker: 1.4.3 -> 1.4.4 → https://git.io/fjiBk
<{^_^}> [nixpkgs] @marsam merged pull request #64227 → postgresqlPackages.plv8: 2.3.11 -> 2.3.12 → https://git.io/fjKAc
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/fjiBq
Supersonic has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mrCyborg has quit [Quit: The Lounge - https://thelounge.github.io]
<{^_^}> [nixpkgs] @marsam opened pull request #64432 → rubocop: 0.71.0 -> 0.72.0 → https://git.io/fjiB3
mrCyborg has joined #nixos
jedai has quit [Ping timeout: 272 seconds]
englishm has quit [Excess Flood]
spacekookie has quit [Quit: No Ping reply in 60 seconds.]
englishm has joined #nixos
mexisme has quit [Ping timeout: 248 seconds]
spacekookie has joined #nixos
slack1256 has joined #nixos
kvda has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zacts> ok, I'm going to put this project on hold for now until next weekend.
hamishmack has joined #nixos
<zacts> my next project for this evening is going to be how to properly install NixOS onto an encrypted ZFS root
<zacts> regardless, NixOS is quite amazing so far.
<{^_^}> [nixpkgs] @marsam opened pull request #64433 → gitAndTools.git-gone: init at 0.1.2 → https://git.io/fjiBc
zacts has quit [Quit: WeeChat 2.4]
katyucha has joined #nixos
Rusty1 has quit [Quit: Konversation terminated!]
o1lo01ol1o has joined #nixos
englishm has quit [Excess Flood]
englishm has joined #nixos
o1lo01ol1o has quit [Ping timeout: 245 seconds]
kvda has joined #nixos
kvda has quit [Client Quit]
<day|flip> I wonder if I added to much space to root now. 10GB root and 40GB /nix/store
<day|flip> i have yet to used 500MB
kvda has joined #nixos
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nixos
<clever> day|flip: i use zfs, so that both share the free space
<day|flip> don't i need to make a iso with zfs enable to used it?
<clever> day|flip: thats fairly simple
clacke_movim has left #nixos [#nixos]
clacke_movim has joined #nixos
<day|flip> i thought about trying bcachefs
b has quit [Ping timeout: 272 seconds]
<day|flip> I'm starting to wonder if that going get supported by 5.4 with all the back talk been going on
Dagger has quit [Excess Flood]
Dagger has joined #nixos
lopsided98_ has joined #nixos
lopsided98 has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @jonringer opened pull request #64434 → pythonPackages.deap: 1.2.2 -> 1.3.0 → https://git.io/fjiBu
Drakonis has quit [Quit: WeeChat 2.4]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dansho has quit [Ping timeout: 244 seconds]
xcthulhu has quit [Quit: xcthulhu]
xcthulhu has joined #nixos
xcthulhu has quit [Client Quit]
xcthulhu has joined #nixos
xcthulhu has quit [Client Quit]
xcthulhu has joined #nixos
xcthulhu has quit [Client Quit]
dansho has joined #nixos
xcthulhu has joined #nixos
xcthulhu has quit [Client Quit]
xcthulhu has joined #nixos
xcthulhu has quit [Client Quit]
kvda has joined #nixos
palo1 has joined #nixos
rauno has quit [Ping timeout: 252 seconds]
palo has quit [Ping timeout: 246 seconds]
palo1 is now known as palo
hmpffff_ has quit [Quit: nchrrrr…]
MinceR_ is now known as MinceR
melling has quit [Quit: WeeChat 2.4]
v88m has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @jonringer opened pull request #64435 → Bump flask caching → https://git.io/fjiBX
v88m has joined #nixos
pheoxy has joined #nixos
v88m has quit [Ping timeout: 248 seconds]
sushi_ has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @etu opened pull request #64436 → phpstan: 0.11.8 -> 0.11.10 → https://git.io/fjiBM
zacts has joined #nixos
orivej has joined #nixos
katyucha has quit [Ping timeout: 246 seconds]
endformationage has quit [Ping timeout: 272 seconds]
v88m has joined #nixos
<{^_^}> [nixpkgs] @etu closed pull request #64282 → phpPackages.phpstan: 0.11.8 -> 0.11.9 → https://git.io/fj6Wu
rfold has joined #nixos
<{^_^}> [nixpkgs] @matthiasbeyer closed pull request #63374 → patchwork: 3.11.4 -> 3.14.1 → https://git.io/fjaMh
zacts has quit [Ping timeout: 252 seconds]
clacke_movim has left #nixos [#nixos]
hyper_ch2 has joined #nixos
v88m has quit [Read error: Connection reset by peer]
v88m has joined #nixos
orivej has quit [Ping timeout: 248 seconds]
jkachmar has quit [Quit: Connection closed for inactivity]
o1lo01ol1o has joined #nixos
rauno has joined #nixos
johanot has joined #nixos
o1lo01ol1o has quit [Ping timeout: 244 seconds]
clacke_movim has joined #nixos
<{^_^}> [nixpkgs] @cleverca22 opened pull request #64437 → ipxe: fix build by not generating 64bit efi on 32bit systems → https://git.io/fjiRY
<Miyu-chan> Oh cool. I just figured out how to use ${FOO+}
<Miyu-chan> Or not.
wfranzini has joined #nixos
<marek> :)
rfold has quit [Ping timeout: 258 seconds]
linarcx has joined #nixos
<Miyu-chan> Hm. `set FOO` is not `FOO=`?
hyper_ch2 has quit [Remote host closed the connection]
Jackneill has joined #nixos
adamantium has joined #nixos
adamantium has joined #nixos
adamantium has quit [Changing host]
clacke_movim has left #nixos [#nixos]
<Miyu-chan> It's kinda weird that set is not the oppiset of unset.
<Miyu-chan> But here itis.
<Miyu-chan> [myrl@myrl:~/Development/NixOSEncryptedLiveCD]$ DEBUG=; echo ${DEBUG+meow}
<Miyu-chan> meow
<Miyu-chan> [myrl@myrl:~/Development/NixOSEncryptedLiveCD]$ unset DEBUG; echo ${DEBUG+meow}
<clever> `set FOO=` will set it to an empty string, while `unset FOO` will entirely unset it
<Miyu-chan> Right.
<Miyu-chan> I guess declare works too?
<clever> ive not really done much with set/declare
<Miyu-chan> Hm, declare doesn't seem to do that.
* Miyu-chan shrug
<Miyu-chan> declare DEBUG; echo ${DEBUG+meow}
<Miyu-chan> (no output)
clacke_movim has joined #nixos
tv has quit [Ping timeout: 245 seconds]
lassulus has quit [Ping timeout: 244 seconds]
linarcx has quit [Quit: WeeChat 2.4]
<etu> Miyu-chan: Sometimes running things on the same line can have unintended consequences
<etu> Miyu-chan: Because bash will expand the variable when you press enter before the declare is executed
<clever> there is also,
<clever> FOO=bar sh -c 'echo $FOO'
<clever> that will export it, for one command, but not persist it
<clever> the single quotes stop bash from expanding it, and force the sh child-proc to expand it
<etu> yep
adamantium has quit [Remote host closed the connection]
mexisme has joined #nixos
lassulus has joined #nixos
tv has joined #nixos
m0rphism has joined #nixos
day|flip has quit [Remote host closed the connection]
mexisme has quit [Ping timeout: 246 seconds]
Dagger has quit [Excess Flood]
Dagger2 has joined #nixos
Dagger2 is now known as Dagger
hyper_ch2 has joined #nixos
dftxbs3e has quit [Ping timeout: 252 seconds]
veske has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
turbo_MaCk has joined #nixos
mexisme has joined #nixos
alpounet has joined #nixos
noudle has joined #nixos
<teto> I am trying to reuse the nixos test infrastructure in nixos-shell. I am almost there. My only resulting problem is that when launching result/bin/nixos-run-vms, I type startAll, and my (only) VM display is loaded until the prompt. As soon as I get to the prompt, if I type anything, I come back to the test-driver.pl loop. Anyway I can login into that VM ?
hyper_ch2 has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
slack1256 has quit [Ping timeout: 268 seconds]
hyper_ch2 has joined #nixos
cjpbirkbeck has quit [Quit: Quitting now.]
hyper_ch2 has quit [Remote host closed the connection]
hyper_ch2 has joined #nixos
Tucky has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
hyper_ch2 has joined #nixos
johanot has quit [Ping timeout: 272 seconds]
johanot has joined #nixos
<{^_^}> [nixpkgs] @cstrahan merged pull request #64219 → ycmd: build with python3 → https://git.io/fjKN2
<{^_^}> [nixpkgs] @cstrahan pushed 3 commits to master: https://git.io/fji0Y
winem_ has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
___laika has joined #nixos
lambda-11235 has quit [Quit: Bye]
orivej has joined #nixos
civodul has joined #nixos
niten has quit [Ping timeout: 248 seconds]
fendor has joined #nixos
vmandela has joined #nixos
juliendehos has joined #nixos
mexisme has quit [Ping timeout: 252 seconds]
Shoubit has joined #nixos
orivej has quit [Ping timeout: 245 seconds]
cfricke has joined #nixos
Makaveli7 has joined #nixos
hmpffff has joined #nixos
o1lo01ol1o has joined #nixos
veske has quit [Quit: This computer has gone to sleep]
<{^_^}> [nixpkgs] @gebner merged pull request #64419 → More OctoPrint plugins → https://git.io/fjiZ9
<{^_^}> [nixpkgs] @gebner pushed 7 commits to master: https://git.io/fji06
o1lo01ol1o has quit [Ping timeout: 245 seconds]
___laika has quit [Ping timeout: 245 seconds]
<teto> seems like I was missing the joinAll. It now works \o/
Neo-- has joined #nixos
dansho has quit [Quit: Leaving]
<jonge[m]> hey there, i have problems finding more people who have private gitlab repositories and use them with nix. there seem however to be some people who use git over HTTP(S) with gitlab and authenticate successfully... does anybody here use gitlab private repos?
<dminuoso> jonge[m]: Do you have a specific problem or question?
mexisme has joined #nixos
veske has joined #nixos
<jonge[m]> dminuoso: yes. How do i let nix checkout private gitlab repositories via https? i know how to do it via ssh, but the latest hydra gitlab feature (https://github.com/NixOS/hydra/pull/649) only works with http git checkouts, so i wonder how to make my hydra and nix build users auth against that..
<{^_^}> hydra#649 (by globin, 12 weeks ago, merged): Create a gitlab status plugin
thc202 has joined #nixos
mexisme has quit [Ping timeout: 244 seconds]
veske has quit [Ping timeout: 248 seconds]
fendor has quit [Ping timeout: 258 seconds]
johanot has quit [Ping timeout: 244 seconds]
johanot has joined #nixos
fendor has joined #nixos
<{^_^}> [nixpkgs] @jonringer opened pull request #64438 → pythonPackages.msrest: 0.6.7 -> 0.6.8 → https://git.io/fjiEW
o1lo01ol1o has joined #nixos
Miyu-chan has quit [Read error: Connection reset by peer]
Miyu-chan has joined #nixos
Miyu-chan is now known as Guest51334
Guest51334 has quit [Changing host]
Miyu-chan has joined #nixos
mexisme has joined #nixos
<rauno> is there a nix builtin to generate hexadecimal string ? for example to generate networking.hostId with nixops ?
<clever> rauno: i generate it from bash, and then insert it into the generated configuration.nix, https://github.com/cleverca22/nix-tests/blob/master/kexec/justdoit.nix#L109-L122
<clever> although....
<clever> > builtins.hashString "sha256" "foobar"
<{^_^}> "c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2"
<clever> you can hash a string...
<rauno> awesome!
<clever> and then...
<Miyu-chan> So uh. I accidentally learned that there's a) a bash debugger and b) with Emacs integration.
<Miyu-chan> ...lol
<Miyu-chan> It's also in nixpkgs. bashdb.
<clever> rauno: config.deployment.uuid, config.deployment.name, and the name in { config, name, pkgs, ... }:
<clever> rauno: those 3 together, would give you a unique string for that host, in that deployment
<Miyu-chan> And luckily, that's not a nosql written in Bash.
<Taneb> Miyu-chan: that's going on my list of things to remember
<clever> > builtins.substring 1 3 "abcdef"
<{^_^}> "bcd"
<rauno> clever, even better
<clever> rauno: and then grab a partial hash, and your done
<Miyu-chan> Taneb: :D
<rauno> yeah, having that part already, needed the source :D
psyanticy has joined #nixos
<clever> rauno: i would be interested in the final solution, i have a few zfs nixops machines, and it would be nice to standardize it
<rauno> our purpose is same :)
<rauno> needing is also for zfs :D
<clever> rauno: i also have plans to make zfs better supported in zfs, from the initial deploy
<ldlework> i hope zfs is supported in zfs
<clever> nixops, lol
pheoxy has quit [Quit: Leaving]
orivej has joined #nixos
johanot has quit [Quit: WeeChat 2.4]
noudle has quit []
SOO7 has quit [Quit: Quit]
<{^_^}> [nix] @edolstra closed pull request #2978 → manual: Add missing section on tarball-ttl → https://git.io/fjKWG
<azazel> is there a way to install a webhook to get notified when nixos channels advance? Maybe using something available on github ?
<yorick> gchristensen: ^
<yorick> azazel: I actually wanted to extend https://howoldis.herokuapp.com/ with websub at some point
<clever> yorick: i know theres an http file that has the history of a given channel over time
<teto> azazel: I wrote an i3pystatus module that displays the last update for channel-unstable in i3bar
<{^_^}> [nixpkgs] @xrelkd opened pull request #64439 → opera: 60.0.3255.170 -> 62.0.3331.43 → https://git.io/fjiuT
<azazel> teto: nice, do you shared the code somewhere
sigmundv has joined #nixos
<Miyu-chan> Uh
<Miyu-chan> Anyone got tips for nixos-enter + /etc/resolv.conf?
m1sosoup has joined #nixos
<teto> azazel: it could be improved in many ways https://github.com/teto/i3pystatus/commit/0597577a21761fe5d0ce66082137c65c13354d15 (like I would like to change the color when an update is available and allow to customize the channels but heh)
<teto> then in status.py, one can add "status.register("nix-channels")"
<azazel> my goal would be to have a branch based on nixos-stable where the modules and packages for kubernetes are backported and kubernetes specific tests are run on it
<Miyu-chan> I guess I could load it with environment.etc."resolv.conf".text = "";
<Miyu-chan> Or the usual networking.nameservers
<domenkozar[m]> simpson: with impure tasks you can do naive CD
<{^_^}> [nix] @edolstra closed pull request #2692 → nix-daemon: emit a warning if untrusted user tries to set build parameters → https://git.io/fhFGf
<{^_^}> [nixpkgs] @Mic92 merged pull request #64394 → wireguard-tools: 0.0.20190601 -> 0.0.20190702 → https://git.io/fjiTb
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fjiug
<aveltras> any idea why this config would still leave a emacs desktop file (i guess) environment.systemPackages = with
<aveltras> j4-menu-desktop still find two emacs
mexisme has quit [Ping timeout: 252 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<teto> aveltras: are these valid emacs entries ? maybe there are installed by home-manager or in nix-env
<aveltras> teto: both entries work ye, do you know where nix put those desktop files ?
troydm has quit [Ping timeout: 272 seconds]
<rauno> clever, okay, currently im using zfs for libvirt so i dont need it for initial deploy ..
jedai has joined #nixos
<{^_^}> [nixops] @PsyanticY opened pull request #1177 → EC2: introduce a persistOnDestroy option for elastic Ips → https://git.io/fjiuK
<teto> aveltras: you could strace the j4-menu-desktop to see the paths it checks
dermetfan has joined #nixos
<aveltras> teto: nice, didn't know about this, there are in /run/current-system/sw/share/applications/
dermetfan has quit [Client Quit]
jackdk has quit [Quit: Connection closed for inactivity]
<teto> when launching some tests, QEMU windows open and after a little while turn to black (no login prompt, nothing, plain black). Any idea why ? nix-build ./nixos/tests/login.nix shows me a prompt a contrario
<clever> teto: sounds like dpms trying to prevent monitor burn-in
<clever> teto: this line (note the escape codes) will disable dpms
the_scourge has joined #nixos
the_scourge has quit [Client Quit]
mexisme has joined #nixos
troydm has joined #nixos
<teto> clever: nope it doesn't seem to work. This happens almost immediately (2nd screen on boot). I also see tons of errors which all seem to stem from malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "\x{0}\x{0}\x{0}\x{0}...") at /nix/store/1hkp2n6hz3ybf2rvkjkwrzgbjkrrakzl-update-users-groups.pl line 11
<teto> like the VM can't load pids and then all services fail, dbus etc
<clever> teto: that sounds like the json state file is full of nulls, from an improper shutdown
<clever> -rw-r--r-- 1 root root 972 Jul 7 14:43 /var/lib/nixos/uid-map
<clever> teto: did you clear the disk image between boots of the vm?
hio has joined #nixos
<aveltras> teto: probleme was that i didn t override "package" in services.emacs config
<teto> clever: how can I do that ? removing /tmp/vm-state-client/client.qcow2 should be the way forward I think but is there a flag to prevent this from happening (like "purer" tests)
<teto> aveltras: great you could find the rootcause !
<teto> clever: indeed that fixed it
<teto> clever++
<{^_^}> clever's karma got increased to 147
veske has joined #nixos
<clever> teto: in a pure test, you start with a blank /tmp every time, so nothing can persist
<teto> clever: could building the test with with --pure fix it ?
<clever> teto: probably not
<teto> well, until I find a better way, I will share your science on the wiki
<teto> <3 clever
<{^_^}> clever's karma got increased to 148
fendor has quit [Ping timeout: 248 seconds]
Neo-- has quit [Ping timeout: 248 seconds]
Miyu-chan has quit [Remote host closed the connection]
root has joined #nixos
root is now known as Guest13594
ericsagnes has quit [Ping timeout: 252 seconds]
v88m has quit [Ping timeout: 268 seconds]
troydm has quit [Ping timeout: 272 seconds]
troydm has joined #nixos
Guest13594 has quit [Changing host]
Miyu-chan has joined #nixos
inquisitiv3 has quit [Quit: Leaving]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/656dcc036fc (from 53 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
troydm has quit [Ping timeout: 248 seconds]
bakakuna has joined #nixos
troydm has joined #nixos
ericsagnes has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
troydm has quit [Ping timeout: 245 seconds]
<das_j> Umm, I might have a small problem
<das_j> error: executing SQLite statement 'insert or replace into Refs (referrer, reference) values (?, ?);': database disk image is malformed (in '/nix/var/nix/db/db.sqlite')
<das_j> what the
orivej has quit [Ping timeout: 272 seconds]
<niksnut> disk full?
<das_j> niksnut: No, 68%
<clever> das_j: filesystem type? improper shutdowns recently?
<das_j> clever: xfs; Nope, it was running fine just minutes ago
orivej has joined #nixos
<yorick> das_j: how big is your nix store?
<das_j> is there a command for that or do I have to use du?
<yorick> ls /nix/store | wc -l :P
<das_j> Oh I thought in bytes
<das_j> 90239
o1lo01ol1o has joined #nixos
<das_j> to quote the other admin of the server: AAAAAAAHHHHHH
<yorick> das_j: try sudo sqlite3 /nix/var/nix/db/db.sqlite ".dump" | sqlite3 "db_fixed.sqlite"
<das_j> easier said than done, I'll copy it here first
vk3wtf has quit [Quit: WeeChat 2.4]
<das_j> which might take a while with the great german internet
<das_j> ajs124: you here?
troydm has joined #nixos
vk3wtf has joined #nixos
<ajs124> ye
<das_j> yorick: That succeeded
<das_j> just stop the daemon and replace the file?
<yorick> das_j: yes
<das_j> socket activation is the best. Just stopped the daemon just to have the hydra evaluator restart it
<yorick> stop the socket :P
<ajs124> yorick, I was about to say/do that
<das_j> or the queue runner
winem_ has quit [Ping timeout: 264 seconds]
<clever> systemctl stop nix-daemon.socket
<das_j> Oof, the DB shrunk from 194M to 93M
<das_j> should I delete the big-lock?
<das_j> I'll just leave it, should't be a problem
iyzsong has joined #nixos
<das_j> problem persists
<Miyu-chan> How is _gateway resolved?
<das_j> ajs124: Just reinstall the thing?
<ajs124> how about we do that in the new case on the new drives?
<das_j> new case: yes. new drives: i'll ask for them
<das_j> but we'll swap that tomorrow
__monty__ has joined #nixos
turbo_MaCk has quit [Ping timeout: 268 seconds]
<das_j> MAYBE it wasn't a nix fault
<das_j> print_req_error: I/O error, dev sdh, sector 138592
<das_j> md/raid:mdX: Disk failure on dm-3, disabling device.
<ajs124> nah, that's been there for a while. It was one of the "new" drives.
<das_j> ajs124: This as well? md/raid:mdX: Operation continuing on 3 devices.
hyper_ch2 has quit [Remote host closed the connection]
troydm has quit [Ping timeout: 268 seconds]
<das_j> Ah, other topic. Has anyone managed to use variables in <>? Something like <nixpkgs-${version}>
___laika has joined #nixos
<clever> das_j: behind the scenes, <nixpkgs> gets translated into `__findFile __nixPath "nixpkgs"` at parse time
<das_j> oohhhh
<clever> das_j: and then at eval time, its just normal function application
<das_j> > __findFile __nixPath "nixpkgs"
<{^_^}> /var/lib/nixbot/nixpkgs/master/repo
<das_j> NICE
<das_j> clever++
<{^_^}> clever's karma got increased to 149
veske has quit [Quit: This computer has gone to sleep]
troydm has joined #nixos
veske has joined #nixos
xcthulhu has joined #nixos
___laika has quit [Ping timeout: 272 seconds]
__monty__ has quit [Quit: leaving]
lopsided98_ has quit [Quit: Disconnected]
__monty__ has joined #nixos
xcthulhu has quit [Quit: xcthulhu]
lopsided98 has joined #nixos
acarrico has joined #nixos
domogled has quit [Remote host closed the connection]
troydm has quit [Ping timeout: 258 seconds]
hmpffff has quit [Quit: nchrrrr…]
hmpffff has joined #nixos
troydm has joined #nixos
stepcut has joined #nixos
cfricke has quit [Quit: WeeChat 2.5]
<{^_^}> [nixpkgs] @teto merged pull request #63948 → Simgrid 3.22.2 to 3.23 → https://git.io/fjojn
<{^_^}> [nixpkgs] @teto pushed 2 commits to master: https://git.io/fjigV
veske has quit [Quit: This computer has gone to sleep]
<{^_^}> [nixpkgs] @teto merged pull request #64388 → squashfsTools: fix 4k-align patch regression → https://git.io/fjiUB
<{^_^}> [nixpkgs] @teto pushed commit from @charles-dyfis-net to master « squashfsTools: Fix 4k-align patch (regression in 4.4dev) »: https://git.io/fjigK
troydm has quit [Ping timeout: 245 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
troydm has joined #nixos
rfold has joined #nixos
<{^_^}> [nixpkgs] @justinwoo opened pull request #64441 → fix polybarFull → https://git.io/fjigb
hmpffff has quit [Read error: Connection reset by peer]
stepcut has quit [Ping timeout: 246 seconds]
veske has joined #nixos
fendor has joined #nixos
hyper_ch2 has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
markus1189 has quit [Ping timeout: 268 seconds]
hyper_ch2 has joined #nixos
xcthulhu has joined #nixos
Makaveli7 has quit [Quit: WeeChat 2.5]
veske has quit [Ping timeout: 258 seconds]
stepcut has joined #nixos
hmpffff has joined #nixos
hmpffff has quit [Client Quit]
o1lo01ol1o has joined #nixos
hmpffff has joined #nixos
Izorkin has quit [Ping timeout: 272 seconds]
hmpffff has quit [Client Quit]
Izorkin has joined #nixos
markus1189 has joined #nixos
ericsagnes has quit [Ping timeout: 276 seconds]
dftxbs3e has joined #nixos
o1lo01ol1o has quit [Ping timeout: 268 seconds]
xcthulhu has quit [Quit: xcthulhu]
Sir_Cheer has joined #nixos
<avn> Just curious guys, does qtbase 5.12 not builds for all, or just for me?
hmpffff has joined #nixos
hmpffff has quit [Client Quit]
fendor has quit [Ping timeout: 272 seconds]
rprije has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « linux: Add 5.2 »: https://git.io/fji2u
<yunratobe> how to get weechat developer library on nixos?
<gchristensen> azazel: yea I can send you webhooks
<gchristensen> azazel: or rabbitmq events
<alexarice[m]> avn: #63829
<{^_^}> https://github.com/NixOS/nixpkgs/issues/63829 (by tadeokondrak, 1 week ago, open): pkgsi686Linux.qt5.qtbase fails to build
ericsagnes has joined #nixos
<alexarice[m]> is there anyway to use nix to create a derivation but have it be mutable afterwards, would be nice if a WINEPREFIX could be set up using nix
<exarkun> clever, samueldr: fwiw 18.03 and then 19.03 upgrades completed without error. thanks again.
<clever> alexarice[m]: it would have to copy things to somewhere under $HOME on first run
<srhb> alexarice[m]: The usual approach is to generate a script in the derivation that copies out the things in a rw fashion.
<srhb> So, "no, but hacks!"
<clever> alexarice[m]: there have also been 3 or 4 PR's attempting to add windows software, with helpers to make wine just work on them
<alexarice[m]> srhb: thanks, I was expecting a hacky approach
<alexarice[m]> clever: do you have an example? or should it be easy to search for
<{^_^}> #7597 (by jraygauthier, 4 years ago, closed): Added YNAB paid wine package.
<alexarice[m]> clever: thanks
xkapastel has joined #nixos
<clever> alexarice[m]: and the other things i link here https://github.com/NixOS/nixpkgs/issues/10165#issuecomment-195248885
<Miyu-chan> yunratobe: `nix-shell -p weechat` is a start.
troydm has quit [Ping timeout: 258 seconds]
nomeata has joined #nixos
<abbec> hey, I am trying to install weechat with Python support unsuccessfully with this override snippet
<abbec> my-weechat = self.weechat.override { installManPages = false; configure = { availablePlugins, ... }: {
<abbec> plugins = with availablePlugins; [ python perl ];
<abbec> };};
<srhb> abbec: weechat has perl and python support enabled by default in recent nixpkgs.
<abbec> does not seem to be the case for me
<srhb> abbec: How did you come to this conclusion?
<srhb> abbec: And which version of nixpkgs are you on?
<abbec> Plugins loaded: alias, buflist, charset, exec, fifo, fset, irc, logger, relay, script, spell, trigger, xfer
<abbec> and Error: unknown command "/python" (type /help for help)
<abbec> nix-channel --list
<abbec> and I just updated
<abbec> and ran nix-env -i weechat
<srhb> abbec: Without your override, right?
<abbec> yeah
<clever> nix-env -iA nixos.my-weechat, to force it to use the override
<{^_^}> [nixpkgs] @tadeokondrak opened pull request #64442 → mpv: fix drm and vulkan support → https://git.io/fji2D
<srhb> Not sure what's up then. If you check the derivation (nix edit nixpkgs.weechat) you should see that it's all enabled by default.
Athas has quit [Quit: ZNC - http://znc.sourceforge.net]
<srhb> At a guess I'd say you're not using the nixpkgs you think you are, but probably needs more debugging :)
Athas has joined #nixos
<srhb> Or there's some config option that also needs changing in order for weechat to actually pick it up. Out of nixpkgs, that is.
<abbec> it worked when I forced it to use the override
o1lo01ol1o has joined #nixos
* srhb shrugs
<abbec> and yes, I see that it was supposed to do it by default, hence my confusion
xcthulhu has joined #nixos
Izorkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
<abbec> my override also installed something called weechat-bin-env
<abbec> not weechat
<srhb> abbec: That's the wrapper indeed.
<srhb> Which is fine.
Miyu-chan has quit [Remote host closed the connection]
ericsagnes has quit [Ping timeout: 248 seconds]
<abbec> and yes, checking nix edit nixpkgs.weechat it is enabled by default
Cale has quit [Ping timeout: 252 seconds]
<abbec> but both perl, python, ruby, lua and tcl seems to be missing when doing nix-env -i weechat
<monotux> so I wrote a python script (using two packages in nixpkgs) that I'd like to run as a service. what's the easiest way? the source code is stored locally if that matters
<monotux> technically I should run it as a timer job
<exarkun> monotux: "easiest"? eh. depends what you're familiar with, probably.
<{^_^}> [nixpkgs] @worldofpeace merged pull request #63321 → pyo3-pack: 0.5.0 -> 0.6.1 → https://git.io/fjaam
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fji2F
<exarkun> monotux: you could write a systemd unit for it
<exarkun> monotux: you could make it into a container
root has joined #nixos
root has joined #nixos
root has quit [Changing host]
root is now known as Miyu-chan
<exarkun> monotux: you could start it manually as necessary
<monotux> systemd timer is probably what I want. but how do I make sure i have the two dependencies?
<gchristensen> IRCing as root, Miyu-chan ? :)
<monotux> as in...having them in PATH in a easy way
xcthulhu has quit [Ping timeout: 268 seconds]
<clever> gchristensen: is ofborg working today?
<exarkun> monotux: have you written a derivation before?
midi[m] has joined #nixos
<gchristensen> clever: is it not? :P
<monotux> one or two for go (and I know nothing about go lol)
<gchristensen> they didn't ask for vacation
<abbec> if I do nix-env -i weechat I do not get any of the plugins, but if I do nix-env -i weechat-bin-env I get them all
<clever> gchristensen: https://github.com/NixOS/nixpkgs/pull/64437 no response
<{^_^}> #64437 (by cleverca22, 6 hours ago, open): ipxe: fix build by not generating 64bit efi on 32bit systems
<gchristensen> not nice
<gchristensen> hmm
<tdeo> anyone on darwin able to test #64442?
<exarkun> monotux: probably some combination of buildInputs, propagatedBuildInputs, or direct references to ${dependency}/bin/whatever in other parts of the expression
<{^_^}> https://github.com/NixOS/nixpkgs/pull/64442 (by tadeokondrak, 10 minutes ago, open): mpv: fix drm and vulkan support
<monotux> the reason I asked here is to get some pointer to a good place to start, either in the documentation or for an existing package :)
<etu> gchristensen: I tried to sent "username" root to an IRC-network once, think it was freenode. I got K-Lined for 20 days. :D
<srhb> abbec: Aaah, okay, I understand.
<monotux> throwing together a shell.nix was a 30 second job
<srhb> abbec: Derp. So the unfortunate behaviour arises exactly because of the name, which you surmised. This is on reason to never use -i without -A
<srhb> abbec: I completely missed that, sorry.
<srhb> abbec: Essentially, never install by name. It has, at best, really surprising effects.
<srhb> Always by attribute path :)
<clever> ,-A abbec
<{^_^}> abbec: 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.
<abbec> can you explain what happens in this case?
<exarkun> monotux: there's a bunch in the manual about how to write a derivation and there's the nix pills. I'm not sure if I can point at anything more specific than that since I can't guess in which areas you might have knowledge gaps.
<srhb> abbec: -i will look for the name in all of the packages. You're getting nixpkgs.weechat-unwrapped because that's the thing that actually has name = "weechat"
<srhb> abbec: Whereas you want nixpkgs.weechat (which actually has weechat-bin-env as its name)
<exarkun> monotux: hopefully your shell.nix is a really good start, at least
<makefu> abbec: there was a discourse post about this just a couple of days ago. https://discourse.nixos.org/t/nix-env-i-hello-vs-nix-env-f-nixpkgs-ia-hello/3283
<srhb> abbec: The wrapped version sets the relevant env vars that point to the plugins.
cfricke has joined #nixos
<abbec> and i ended up with the unwrapped version because?
<srhb> Because it's the one that has name = "weechat" and you used -i without -A
<clever> abbec: nix-env -i weechat, finds the unwrapped version, because the name matches weechat closer
<srhb> abbec: Meaning, you searched by name rather than attrpath
<abbec> aha, yeah the post explained it
<abbec> :)
<gchristensen> clever: my bandwidth is limited enough I can't fetch nix-shell deps to log in to the machines
<gchristensen> but I can issue a deploy, which might do it.
<abbec> thanks a lot!
<monotux> the shell.nis is literally "with import <nixpkgs> {}; \n (python37.withPackages (ps: with ps; [ requests feedgen ])).env" and I just want to create something that runs a python script (the script has these dependencies) every hour or so
<srhb> abbec: -i is a bit of a usability nightmare, rule of thumb is to just never use it. :)
<avn> alexarice[m]: with wineprefix is only two ways -- copy from /nix/store to mutable space, and bind mounts (I used bindfs to strip readonly, and overlayfs to layering, both are-fuse fs)
<clever> gchristensen: your grafana also showed it hasnt done an eval in over a day
<gchristensen> I see that
<gchristensen> well, no, just 15h
<monotux> and the python script is one file that can live anywhere. what I don't understand is how to move from here to where I want to be, without having to upload my script to pypi or something
<exarkun> monotux: So that gets you a python environment with everything in it that you need, I expect? now write an expression that imports that and writes a systemd unit with all of the right pieces and when you get to "run the command", you do something like "${name-you-bound-the-import-to}/bin/yourprogram ..."
<monotux> exarkun: sorry if I'm vague but it's hard to be specific when I have no idea whats missing :)
<exarkun> monotux: and you get the right path as a result and nix notices you have a dependency on ${name-you-bound-the-import-to} and does the right things to make it available
<Sir_Cheer> elbaliava ti ekam ot sgniht thgir eht seod dna {ot-tropmi-eht-dnuob-uoy-eman}$ no ycnedneped a evah uoy seciton xin dna tluser a sa htap thgir eht teg uoy dna :xutonom
<exarkun> monotux: it would probably be a good idea for you to read through the docs, I'm sure they explain better than I will
<exarkun> and in a better format than irc :)
<monotux> the docs are 50+ pages and hard to jump into if you don't really know what you are looking for, and I started reviewing them. I'll go over them again with your pointers and see what I can figure out
<monotux> thanks btw, don't mean to sound grumpy!
p_l has left #nixos [#nixos]
fusion809 has quit [Remote host closed the connection]
<exarkun> yea I know, it's nice when things are simple :)
rauno has quit [Ping timeout: 245 seconds]
<srhb> monotux: You might want to look at writePython3 eg
<srhb> monotux: Essentially it goes like.. writePython3 "myscript" { libraries = [ dep1 dep2 ]; } ''print("woot, I'm a python script")'';
<monotux> oh
xcthulhu has joined #nixos
<srhb> monotux: Then, all your systemd unit has to do is use that script as its ExecStart or whatnot
troydm has joined #nixos
<exarkun> I put "zfs" in boot.kernelModules and switched/rebooted but didn't end up with any zfs support in my kernel. At the same time I put zfs in systemPackages and I did end up with the userspace tools. What gives?
<srhb> Meaning... let myscript = writePython3 ...; in ... ExecStart = myscript; ...
<srhb> That's it!
<monotux> srhb: can I have it read my script from file instead of inline?
<clever> > builtins.readFile
<{^_^}> <PRIMOP>
<srhb> monotux: builtins.readFile
<monotux> <3
<{^_^}> [nixpkgs] @xrelkd opened pull request #64444 → eksctl: 0.1.38 -> 0.1.39 → https://git.io/fjias
Cale has joined #nixos
xcthulhu has quit [Ping timeout: 244 seconds]
rauno has joined #nixos
<exarkun> I guess I should set boot.supportedFilesystems instead (though I don't care about support for zfs in the initrd)?
<clever> exarkun: boot.initrd.supportedFilesystems is for the initrd
<clever> exarkun: boot.supportedFilesystems is just generic support, after the initrd
<clever> exarkun: it will also auto-configure itself, based on the .fsType of everything in the fileSystems attrset
<exarkun> ah! oops.
troydm has quit [Ping timeout: 245 seconds]
Guest75852 is now known as fgaz
gxt has joined #nixos
rauno has quit [Ping timeout: 248 seconds]
ericsagnes has joined #nixos
xcthulhu has joined #nixos
xcthulhu has quit [Client Quit]
ericsagnes has quit [Ping timeout: 248 seconds]
vmandela has quit [Quit: Leaving]
<gchristensen> looks like it'll be some hours before I can look at ofborg properly. sorry :(
<clever> kk
<clever> i'll likely be sleeping by then
<gchristensen> for whatever reason the deploy process is blocking during tbuild
cfricke has quit [Quit: WeeChat 2.5]
<avn> exarkun: don't forget `loader.grub.copyKernels = true` if you use store hardlinking and grub same time.
<clever> if /boot is its own filesystem, then it will always copy kernels
<avn> clever: correct. But if /boot on same filesystem (and only efi part of grub on own)
<avn> which if we can remember also not problem-free setup ;)
<clever> ive also tried /boot on /, with / on zfs, and it had weird issues
<clever> it could boot, but grub couldnt list any directory, so all debug was imposible
<kraem> i'm trying to install the go package `github.com/confluentinc/confluent-kafka-go` but i'm getting 'Package rdkafka was not found in the pkg-config search path.' while running `go get` on the package. I've tried setting the env var PKG_CONFIG_PATH to the folder containing the rdkafka.pc file but with no luck. Any pointers?
<avn> clever: yes, it why copyKernel is need. grub's zfs can't handle store full of hardlinks
ericsagnes has joined #nixos
<{^_^}> [nixpkgs] @marsam opened pull request #64445 → pythonPackages.pytest_3: fix build → https://git.io/fjiVq
<{^_^}> [nixpkgs] @marsam merged pull request #64431 → pythonPackages.nvchecker: 1.4.3 -> 1.4.4 → https://git.io/fjiBk
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/fjiVm
nomeata has quit [Quit: Client exiting]
<davidtwco> Could someone with commit on nixpkgs take a look at #64112? It's already been reviewed and approved.
<davidtwco> (apologies if this isn't the place to bump PRs, I wasn't sure where to ask)
<{^_^}> https://github.com/NixOS/nixpkgs/pull/64112 (by davidtwco, 6 days ago, open): nixos/deluge: add user/group/openFirewall opts and extraction packages to path
<kraem> (i'm asking because it seems like it has something to do with nixos not following FHS)
domogled has joined #nixos
<avn> clever: I though if adding copyKernel `default = elem "zfs" config.boot.supportedFilesystems;`
<avn> would be sane suggestion
ericsagnes has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @FRidh merged pull request #64430 → python37Packages.opencv: remove → https://git.io/fji4E
<{^_^}> [nixpkgs] @FRidh pushed commit from @OmnipotentEntity to master « python37Packages.opencv: remove »: https://git.io/fjiVc
cinimod has joined #nixos
bakakuna has quit [Ping timeout: 252 seconds]
sauyon has joined #nixos
<{^_^}> [nixpkgs] @jonasnick opened pull request #64446 → clightning: 0.7.0 -> 0.7.1 → https://git.io/fjiV0
<kraem> nvm. it had nothing to do with nixos and the FHS - solved by setting the env var to point to two folders containing two different pkg-config files.
Tucky has quit [Quit: WeeChat 2.5]
__monty__ has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @globin merged pull request #63877 → nixos/loki: add module and test → https://git.io/fjoZx
<{^_^}> [nixpkgs] @globin pushed 3 commits to master: https://git.io/fjiVg
<cinimod> Where's the best place to ask for basic help? Here or is some other forum better?
Sir_Cheer has quit []
<clever> cinimod: here
<cinimod> :thumbsup:
Izorkin has joined #nixos
<monotux> srhb, exarkun - thanks! the writePython3 was really what I needed! deploying that script took 22 lines (mostly the systemd definitions)
<sauyon> Hi, I'm trying to use nix on arch atm, and for some reason nix command are kicking me out of my user session.
<clever> sauyon: did you add yourself to the nixbld group?
<sauyon> yeah, I'm in it.
<clever> sauyon: thats why
<sauyon> ah.
<clever> sauyon: nix will pick a random user in the nixbld group, -9 every process in the user, and then start the build under thatuser
<sauyon> thanks :P
<{^_^}> [nixpkgs] @xrelkd opened pull request #64447 → rofi: 1.5.3 -> 1.5.4 → https://git.io/fjiVo
ericsagnes has joined #nixos
__monty__ has joined #nixos
ericsagnes has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @veprbl merged pull request #63812 → supercollider: 3.9.3 -> 3.10.2 → https://git.io/fjryZ
<{^_^}> [nixpkgs] @veprbl pushed 4 commits to master: https://git.io/fjiV5
<cinimod> I have a derivation which I have made part of my local nixpkgs. I want to share this with my boss. One option is to have him git clone my repo. Alternatively I could use overlays. Which is better?
<immae> cinimod: when you say "local nixpkgs", you mean that you modified the repository cloned from https://github.com/NixOS/nixpkgs/ ? If so, it’s better (shorter) to share an overlay than the whole repo :)
jkachmar has joined #nixos
<cinimod> I do mean that
<cinimod> But when I do nix-env -iA nixpkgs.mySundials I get a different build to when I do nix-env -f /Users/dom/nixpkgs -iA sundials_3_lapack where sundials_3_lapack = callPackage ../development/libraries/sundials/3.x.lapack.nix { };
<cinimod> Ah maybe I don't have different builds
<immae> cinimod: nix-env -iA nixpkgs.mySundials is equivalent to `nix-env -f ~/.nix-defexprs -iA nixpkgs.mySundials`. If you don’t have the same in ~/.nix-defexprs and in /Users/dom/nixpkgs then it’s normal that you get a different result
root3 has joined #nixos
root3 has joined #nixos
Miyu-chan has quit [Killed (hitchcock.freenode.net (Nickname regained by services))]
root3 has quit [Changing host]
root3 is now known as Miyu-chan
<Miyu-chan> So, uh.
<Miyu-chan> If I run things under nix run, weechat thinks my user is root. :/
<Miyu-chan> this only happens on my desktop and not my laptop lol
<Miyu-chan> And it even gets more confusing.
<Miyu-chan> [myrl@myrl:~]$ nix run nixpkgs.weechat -c whoami
<Miyu-chan> myrl
* Miyu-chan shrug
veske has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
<immae> Miyu-chan: is it possible that weechat uses USER environment variable, which would be unset in nix run, while whoami uses other facilities to find your user?
Izorkin_ has joined #nixos
<Yaniel> sounds familiar yes
<Miyu-chan> Hm.
<Yaniel> not that it matters once you have it set up anyway
<Miyu-chan> I doubt it, but it's worth a try.
<immae> "nix run nixpkgs.weechat -c env" could give you the answer
<Miyu-chan> I've read the WeeChat code because of this.
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
veske has quit [Client Quit]
<immae> and what does it do?
<Miyu-chan> It uses getuid and geteuid I believe.
<Miyu-chan> Actually, y'know what. Let's not do that.
<Miyu-chan> The guessing, I mean.
<Miyu-chan> `nix-build '<nixpkgs>' -A weechat.src`
zacts has joined #nixos
Izorkin has quit [Ping timeout: 272 seconds]
Izorkin_ is now known as Izorkin
<Miyu-chan> Also, weechat.src does not exist lmao. I had to nix-store -qR to find it.
endformationage has joined #nixos
<Miyu-chan> /* Get the user's name from /etc/passwd */
<Miyu-chan> if ((my_passwd = getpwuid (geteuid ())) != NULL)
<Miyu-chan> my_passwd->pw_name
<Miyu-chan> [myrl@myrl:~]$ gcc -xc <(echo 'int main() { printf("%d", geteuid()); }') 2>/dev/null; ./a.out
<Miyu-chan> 1000
<Miyu-chan> [myrl@myrl:~]$ nix run nixpkgs.weechat -c ./a.out
<Miyu-chan> 1000
<Miyu-chan> uhhh
<Miyu-chan> okay theeen
Netsu has quit [Remote host closed the connection]
<cinimod> immae: thanks
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
<Miyu-chan> I wonder if this is actually not a nix run mistake lmao
<Miyu-chan> /home/myrl/.weechat/irc.conf
<Miyu-chan> 152:username = "root"
<Miyu-chan> I... I have no idea where that came from.
knupfer has quit [Client Quit]
knupfer has joined #nixos
<Miyu-chan> Maybe I did this as a joke 2 years ago.
<Miyu-chan> lmao
<{^_^}> [nixpkgs] @pasqui23 opened pull request #64448 → [WIP]nixos/firejail:added program.firejail.firecfg option → https://git.io/fjiwK
<Miyu-chan> Either way, that's one life mystery solved.
andreas303 has quit [Remote host closed the connection]
andreas303 has joined #nixos
___laika has joined #nixos
___laika has quit [Ping timeout: 245 seconds]
ericsagnes has joined #nixos
MmeQuignon has joined #nixos
hmpffff has joined #nixos
wildtrees has joined #nixos
m1sosoup has quit [Quit: Leaving]
wildtrees has quit [Remote host closed the connection]
wildtrees has joined #nixos
Netsu has joined #nixos
wfranzini1 has joined #nixos
wfranzini has quit [Ping timeout: 272 seconds]
wfranzini1 is now known as wfranzini
<ocharles> Any idea why I'm seeing `-j4` in a Haskell build, while `nix-shell -p coreutils --run 'echo $NIX_BUILD_CORES'` returns 6?
<ocharles> In a Hydra Haskell build*
Xal has quit [Ping timeout: 245 seconds]
sushi_ has joined #nixos
<yorick> ocharles: because it's min(4, $NIX_BUILD_CORES) now
<{^_^}> [nixops] @PsyanticY opened pull request #1178 → Import functionalities → https://git.io/fjirL
Xal has joined #nixos
<yorick> ocharles: because -j5 is slower than -j4 :) https://gitlab.haskell.org/ghc/ghc/issues/9221
<ocharles> That's not true, because before it was doing -j1
<ocharles> Do you mean max(4, ..)?
<ocharles> wait
deech has joined #nixos
<ocharles> I see what you mean
<ocharles> Damn min/max!
<ocharles> Thanks :)
xkapastel has quit [Quit: Connection closed for inactivity]
hlolli has joined #nixos
wfranzini has quit [Remote host closed the connection]
wildtrees has quit [Remote host closed the connection]
wildtrees has joined #nixos
Ariakenom has joined #nixos
waleee-cl has joined #nixos
andreas303 has quit [Remote host closed the connection]
zacts has quit [Quit: WeeChat 2.4]
katyucha has joined #nixos
andreas303 has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer merged pull request #64415 → emacs: Silence compiler warnings in site-start.el → https://git.io/fjiGJ
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjirE
matt` has joined #nixos
fendor has joined #nixos
<matt`> hello all! i'm struggling to get my xserver to work. i'm trying to run it via startx but whenever I type `$ startx', my console completely freezes and i have to cold boot. The .xorg.log files give the error: "xf86OpenSerial: Cannot open device /dev/input/mouse0 Permission denied.". I have xserver.libinput.enable = true in my config. also, i'm using primerun.sh to for nvidia graphics which works fine. it's just when trying to use the
<matt`> builtin intel graphics that i'm experiencing this error. has anyone experienced this?
<clever> matt`: nixos isnt configured to support startx, it must be launched by systemd, via display-manager.service
<matt`> clever: ah ok i'll try that. thanks
matt` has quit [Remote host closed the connection]
matt` has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f5665832ecc (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<matt`> clever: systemd is telling me display-manager.service is masked. additionally, doesn't the services.xserver.displayManager.startx.enable option mean I can use that command directly?
<nahamu> is there a way to use copy-closure with the environment created with nix-shell?
zacts has joined #nixos
<sauyon> can I run a command to get configuration values?
<nahamu> I have a shell.nix that doesn't actually correspond to building a package, and I'd like to distribute it to a few other people
<nahamu> I think I mean export/import rather than copy-closure.
<{^_^}> [nixpkgs] @matthewbauer opened pull request #64450 → systems/doubles.nix: add Apple doubles → https://git.io/fjiro
<srhb> nahamu: Hmm, not quite sure. It sounds like you do mean copy-closure, if by that you mean distribute the binary artifact and build env etc. rather than the expression itself?
<srhb> nahamu: Though I would caution that it's usually far more practical to distribute the expression.
<srhb> (And one of the killer use cases of shell.nix)
<nahamu> people have access to the expression, it just downloads lots of stuff over the internet.
<srhb> Ah, okay, copy-closure indeed then.
<nahamu> is there a way to use copy-closure with a shellnix?
v88m has joined #nixos
erasmas has joined #nixos
<srhb> nahamu: I think what you want is what is referred to as a "cache deployment" in the nix-store manual.
<srhb> nahamu: Eg. the closure obtained from the shell.nix derivation combined with --include-outputs
<srhb> If you copy that closure, you should have everything necessary for the build env.
<srhb> s/Eg./Ie./
<nahamu> I'm still not sure how to assemble to commands.
<srhb> nahamu: You can try something like.. nix-store -qR --include-outputs $(nix-instantiate shell.nix)
o1lo01ol1o has quit [Remote host closed the connection]
<srhb> Then copy those paths.
<srhb> I *think* that does what you want, but give it an experiment :)
<nahamu> I was almost there, that looks like the next step of what I was doing.
<nahamu> I'd gotten to running `nix-store -qR $buildInputs` from inside the nix-shell environment.
<srhb> I feel like that includes a bit more sources than I expected, but not quite sure..
<nahamu> it's looking promising. Thanks very much!
<srhb> Actually I'm wondering whether nix-copy-closure --include-outputs $(nix-store -q --references) is closer. I don't think you need to be explicit about the entire closure..
<sauyon> hrm, is there a nicer way to do basically runCommand then readFile?
Izorkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
<srhb> sauyon: Can you elaborate on your goal?
<sauyon> run a shell command and have its output as the value of an attribute
<srhb> sauyon: Ah, IFD. I think that's about it really.
<srhb> Short of implementing it as a nix plugin, at least.
Chiliparrot has joined #nixos
matt` has quit [Remote host closed the connection]
clacke_movim has left #nixos [#nixos]
lord| has quit [Ping timeout: 245 seconds]
clacke_movim has joined #nixos
sigmundv has quit [Ping timeout: 272 seconds]
lambda-11235 has joined #nixos
Jackneill has quit [Quit: Leaving]
dkibi has quit [Ping timeout: 246 seconds]
<sauyon> ok, thanks!
Thra11 has joined #nixos
stepcut has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 272 seconds]
vmandela has joined #nixos
<{^_^}> [nixpkgs] @jameysharp closed pull request #47453 → RFC: Use systemd-tmpfiles to manage /etc symlinks → https://git.io/fxe8O
stepcut has joined #nixos
fendor has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @pasqui23 opened pull request #64452 → nixos/run:Added boot.runOnTmpfs option → https://git.io/fjioO
MmeQuignon has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @pasqui23 closed pull request #64452 → nixos/run:Added boot.runOnTmpfs option → https://git.io/fjioO
MmeQuignon has joined #nixos
<{^_^}> [nixpkgs] @doronbehar opened pull request #64453 → cpp-utilities: init at 4.17.1 → https://git.io/fjioG
<buckley310> ar: gchristensen: It turns out root-on-encrypted-zfs works great :)
asheshambasta_m has joined #nixos
<gchristensen> great!
Shoubit has quit [Ping timeout: 258 seconds]
<lordcirth> buckley310, awesome! Anything special you had to do?
<buckley310> not really, aside from the stuff you need to do just to get regular root-on-zfs working
<buckley310> and obviously turning on encryption on the dataset
<buckley310> nixos automatically knows to prompt for password on boot it seems like
<lordcirth> cool!
gagbo has joined #nixos
<buckley310> oh and it only works on zfs 0.8+, so i built myself an unstable ISO and am using the unstable channel :\ so theres that
<buckley310> it looks like nix 19.09 will have zfs 0.8.1
<gchristensen> buckley310: if you didn't do it already, you will want these options for the zfs pool: atime=off xattr=sa acltype=posixacl
<gchristensen> s/will/will probably/
<buckley310> do you set those on the pool or in the mount options?
<gchristensen> pool level
deech has quit [Ping timeout: 248 seconds]
<buckley310> cool. i had the noatime thing set up using the standard mount options but it broke with zfs, so i commented it out and forgot about it. i might omit the ACL thing unless it turns out i need it.
<buckley310> thanks for these, these might speed up my server too :P
<gchristensen> you do need the aclytype
<gchristensen> otherwise journald is broken for user logs
lord| has joined #nixos
<buckley310> oh my
<buckley310> ok
<gchristensen> the NixOS on ZFS docs need updating :)
deech has joined #nixos
___laika has joined #nixos
lovesegfault has joined #nixos
juliendehos_ has joined #nixos
ris has joined #nixos
<vmandela> grahamc[m], Hi, I am trying to reach the grahamc on github. hope I have the right irc handle.
<gchristensen> that is me
<gchristensen> (and grahamc[m])
<{^_^}> [nixpkgs] @primeos opened pull request #64454 → [WIP] iproute: 5.1.0 -> 5.2.0 → https://git.io/fjiod
<vmandela> gchristensen, hi. I am following up on the review comments for https://github.com/NixOS/nix/pull/2946 . If you have some time, could you please take a look ? I am sorry if this is a little impatient.
<{^_^}> nix#2946 (by vmandela, 3 weeks ago, open): installer: handle network proxy in systemd multi-user install
<gchristensen> can do. I'm about to board a flight. I'll try and remember to do it when I land
<gchristensen> thank you for the ping
<vmandela> gchristensen, thank you.
cinimod has quit [Ping timeout: 272 seconds]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @Profpatsch merged pull request #63421 → conda: Add LIBARCHIVE → https://git.io/fjaFl
<{^_^}> [nixpkgs] @Profpatsch pushed to master « conda: Add LIBARCHIVE »: https://git.io/fjioh
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
MmeQuignon has quit [Quit: WeeChat 2.4]
<vmandela> samueldr, ping
o1lo01ol1o has joined #nixos
vmandela has left #nixos ["Leaving"]
<manveru> zacts: hoi
<zacts> manveru: hi
<zacts> hey are you the bundix maintainer?
<manveru> zacts: one of them :)
<manveru> just read your mail, and saw your message a while ago in this channel, just been traveling so i couldn't help much
<zacts> oh cool :-)
<manveru> anyway, i'd like to have rbx packaged as well
<manveru> looks like your approach is good already... will give it a try to see what's missing
<zacts> cool, thanks :-). I think I'll go ahead and open an issue on Rubinius github.
<qyliss> Rubinius? o_O
<qyliss> Yeah, I know what it is
<zacts> oh
<qyliss> (I'm also a Bundix maintainer)
Guest90746 has joined #nixos
<zacts> cool
<manveru> why do we need an issue on rubinius?
Guest90746 has quit [Client Quit]
root3 has joined #nixos
root3 has quit [Changing host]
Miyu-chan has quit [Killed (barjavel.freenode.net (Nickname regained by services))]
Miyu-chan has joined #nixos
<zacts> manveru: we don't have to, but I thought it could make it easier to collaborate on this.
<manveru> i'd rather have an issue in nixpkgs for it
<zacts> we can do that
<zacts> makes sense
<manveru> thanks :)
<zacts> note: this is my first contribution to Nixpkgs and I don't have a lot of GitHub experience either. :-)
<zacts> so I'm still learning how to do all of this
<manveru> no worries, we'll help as much as we can :D
<zacts> thanks
<manveru> did you fork nixpkgs and put your package in there already?
<zacts> manveru: not yet, I'll do this.
Soo_Slow has joined #nixos
<manveru> k
<zacts> unfortunately I have to get some lunch right now, but I'll be back within a couple of hours. You can email me too. (I'm working on getting a 24/7 irc client soon).
lovesegfault has quit [Ping timeout: 272 seconds]
<zacts> my client isn't 24/7 right now.
<zacts> I'll bbl
zacts has quit [Quit: WeeChat 2.4]
<manveru> try irccloud.com
lovesegfault has joined #nixos
acarrico has quit [Ping timeout: 244 seconds]
mexisme has quit [Ping timeout: 252 seconds]
asheshambasta_m has quit [Quit: Leaving.]
winem_ has joined #nixos
psyanticy has quit [Quit: Connection closed for inactivity]
matt` has joined #nixos
<matt`> hello, i'm having trouble getting startx to work. has anyone had success with this? when i run it my xorg crashes and no logs are generated
lovesegfault has quit [Ping timeout: 264 seconds]
lovesegfault has joined #nixos
Miyu-chan has quit [Read error: Connection reset by peer]
mkoenig_ has quit [Remote host closed the connection]
deech has quit [Ping timeout: 268 seconds]
<ejpcmac> Hi! ZFS question here: I’ve just had a zpool failure on a mirror (impossible to mount a filesystem due to checksum errors, and scrub unable to repair).
<ejpcmac> This happend after I had to shutdown my computer harshly, because it did not respond. This was after an hibernation to swap, then sleep to RAM. (The hibernation reboot worked, not the sleep recover)
mkoenig has joined #nixos
<ejpcmac> My RAM is ECC, so it seems unlikely an error has happened there. It it possible an error has happened in the swap, then loaded again in the RAM and creating a corruption ?
<ejpcmac> This is quite embarrassing, I would have expected ZFS to be more resilient than this. I’ve already run it on a server with a raidz2 and was able to replace a failing drive.
<gchristensen> might should try #zfsonlinux, ejpcmac
<ejpcmac> gchristensen: Indeed.
orivej has joined #nixos
<lordcirth> ejpcmac, did you set sync=disabled or something?
<gchristensen> I don't know what the status is with zfs and hibernation
mexisme has joined #nixos
<ejpcmac> lordcirth: No
furrycatherder has joined #nixos
<ejpcmac> I had to reboot harshly my computer several times before, in fact, due to ACPI issues on my new laptop (solved since changing something in the BIOS) But the pool seemed OK.
<ejpcmac> I would expect incomplete transactions not to impact existing data.
<ejpcmac> gchristensen: From what I’ve read, you cannot hibernate on a swap on ZFS. My swap is then not on ZFS (and maybe it can be corrupted).
<lordcirth> ejpcmac, but hibernating with a zpool mounted might not be safe, is the question
<gchristensen> as far as I understand it, bad data in RAM/swap is not really practically capable of destroying your zfs pool. right. the concern is more does ZFS even support hibernation at all
<ejpcmac> Yes, since the ARC is written to swap when hibernating
<ejpcmac> gchristensen: It did reboot after hibernating, restoring the state as expected
<superbaloo> you don't care much about arc, it's a read cache
<{^_^}> [nixpkgs] @joncojonathan opened pull request #64455 → jetbrains update via update.pl → https://git.io/fjiKp
<ejpcmac> Then, I tried to suspend to ram, and the reboot from the suspend did not work. But maybe it’s not related.
<gchristensen> cool, I don't know :P
<gchristensen> definitely give #zfsonlinux a try
<ejpcmac> Yep
jayschmoove has joined #nixos
<superbaloo> if you suspend to swap, then suspend to ram, unsuspend from ram, then reboot and unsuspend from swap
<superbaloo> this is most likely wrong
<superbaloo> and that can definitely corrupt your zfs
alp has joined #nixos
jayschmoove has left #nixos [#nixos]
furrycat1 has joined #nixos
alpounet has quit [Ping timeout: 252 seconds]
mexisme has quit [Ping timeout: 245 seconds]
furrycatherder has quit [Ping timeout: 246 seconds]
<gchristensen> ofborg is back up and ... well, has a bit of a backlog: https://monitoring.nix.ci/d/000000002/ofborg?orgId=1
waleee-cl has quit [Quit: Connection closed for inactivity]
Myhlamaeus1 has joined #nixos
domogled has quit [Remote host closed the connection]
stepcut_ has joined #nixos
matt`` has joined #nixos
stepcut has quit [Ping timeout: 246 seconds]
matt` has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @abbradar merged pull request #64425 → kvmgt service: use modprobe, force-load module → https://git.io/fjiCb
<{^_^}> [nixpkgs] @abbradar pushed to master « kvmgt service: use modprobe, force-load module »: https://git.io/fji6q
matt`` has quit [Remote host closed the connection]
lordcirth has quit [Remote host closed the connection]
lordcirth has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/ddc8398e7f1 (from 74 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
zacts has joined #nixos
<{^_^}> #64457 (by zacts, 56 seconds ago, open): Create a package for Rubinius.
<eraserhd> LnL: Will you make the MACOS_DEPLOYMENT_TARGET PR? Should I? To `master`?
winem_ has quit [Ping timeout: 244 seconds]
OmnipotentEntity has quit [Ping timeout: 244 seconds]
zacts is now known as zacts_pi
<ejpcmac> Does cache.nixos.org have issues? Copying paths seems to hang right now, despite me bing able to ping cache.nixos.org.
<LnL> eraserhd: yeah, just finishing something else first
zacts_pi has quit [Quit: WeeChat 2.4]
<eraserhd> LnL: Thank you!
<ejpcmac> Nevermind, it was just slow.
emilsp has quit [Ping timeout: 624 seconds]
mexisme has joined #nixos
deech has joined #nixos
<{^_^}> [nixpkgs] @LnL7 pushed to staging-next « cmake: update ApplicationServices patch »: https://git.io/fji6D
selfsymmetric-pa has joined #nixos
<{^_^}> [nixpkgs] @LnL7 opened pull request #64458 → stdenv: MACOSX_DEPLOYMENT_TARGET 10.10 -> 10.12 → https://git.io/fji6H
ddellacosta has joined #nixos
ddellacosta has quit [Client Quit]
acarrico has joined #nixos
zacts has joined #nixos
zacts is now known as zacts_pi
<{^_^}> [nixpkgs] @eraserhd closed pull request #64252 → plan9port: use C compiler from Nix → https://git.io/fj6kx
markus1189 has quit [Ping timeout: 244 seconds]
wildtrees has quit [Quit: Leaving]
markus1189 has joined #nixos
lovesegfault has quit [Quit: WeeChat 2.5]
katyucha has quit [Quit: Lost terminal]
Myhlamaeus1 has quit [Remote host closed the connection]
juliendehos_ has quit [Quit: Leaving]
dsx has quit [Quit: dsx]
dkibi has joined #nixos
dsx has joined #nixos
bakakuna has joined #nixos
rfold has quit [Ping timeout: 244 seconds]
rauno has joined #nixos
deech has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @Amar1729 opened pull request #64460 → cdrtools: fix for darwin → https://git.io/fjiig
Jackneill has joined #nixos
romildo has joined #nixos
gratto has joined #nixos
selfsymmetric-pa has quit [Remote host closed the connection]
MmeQuignon has joined #nixos
bakakuna has quit [Ping timeout: 245 seconds]
selfsymmetric-pa has joined #nixos
wfranzini has joined #nixos
furrycat1 has quit [Ping timeout: 268 seconds]
furrycat1 has joined #nixos
furrycat1 has quit [Client Quit]
wildtrees has joined #nixos
rprije has joined #nixos
ym555 has joined #nixos
MmeQuignon has quit [Ping timeout: 248 seconds]
Izorkin has joined #nixos
ericsagnes has quit [Ping timeout: 245 seconds]
fendor has joined #nixos
dansho has joined #nixos
Izorkin has quit [Client Quit]
zacts_pi has quit [Quit: WeeChat 2.4]
Izorkin has joined #nixos
romanofski has quit [Ping timeout: 245 seconds]
Soo_Slow has quit [Ping timeout: 245 seconds]
deech has joined #nixos
Arahael has quit [Ping timeout: 245 seconds]
Jonathan35 has joined #nixos
Jackneill has quit [Remote host closed the connection]
Drakonis has joined #nixos
wfranzini has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @cdyson37 opened pull request #64462 → pydot_ng: fix graphviz path and tests (fixes #64461) → https://git.io/fjiPR
___laika has quit [Quit: WeeChat 2.4]
___laika has joined #nixos
inquisitiv3 has joined #nixos
<inquisitiv3> Do any of you have problems with Latte dock?
zacts has joined #nixos
day|flip has joined #nixos
tmaekawa has joined #nixos
fusion809 has joined #nixos
MmeQuignon has joined #nixos
orivej has quit [Ping timeout: 245 seconds]
tmaekawa has quit [Quit: tmaekawa]
deech has quit [Ping timeout: 272 seconds]
ericsagnes has joined #nixos
MmeQuignon has quit [Ping timeout: 248 seconds]
m0rphism has quit [Ping timeout: 248 seconds]
MmeQuignon has joined #nixos
Ariakenom has quit [Quit: Leaving]
zacts is now known as zacts_pi
jackdk has joined #nixos
fendor has quit [Read error: Connection reset by peer]
knupfer has quit [Ping timeout: 252 seconds]
day|flip has quit [Remote host closed the connection]
inquisitiv3 has quit [Ping timeout: 245 seconds]
ym555 has quit [Ping timeout: 245 seconds]
Thra11 has quit [Ping timeout: 246 seconds]
ym555 has joined #nixos
jcrd has joined #nixos
<jcrd> i'm using nixos 19.03, and when i try `systemctl suspend-then-hibernate` it reports "Unit suspend-then-hibernate.target not found"
<jcrd> but i'm able to use `systemctl suspend` and `systemctl hibernate` without issue
xcthulhu has joined #nixos
day|flip has joined #nixos
phreedom has quit [Ping timeout: 260 seconds]
xcthulhu has quit [Ping timeout: 272 seconds]
xcthulhu has joined #nixos
Netsu has quit [Ping timeout: 260 seconds]
Jonathan35 has quit [Remote host closed the connection]
erasmas has quit [Ping timeout: 272 seconds]
xcthulhu has quit [Quit: xcthulhu]
Netsu has joined #nixos
<{^_^}> [nixpkgs] @rycee pushed to master « firefox: allow overriding config of wrapped package »: https://git.io/fjiXm
<{^_^}> [nixpkgs] @rycee closed pull request #63783 → firefox: allow overriding config of wrapped package → https://git.io/fjr2d
xcthulhu has joined #nixos
mexisme has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @kalbasit merged pull request #64444 → eksctl: 0.1.38 -> 0.1.39 → https://git.io/fjias
<{^_^}> [nixpkgs] @kalbasit pushed commit from @xrelkd to master « eksctl: 0.1.38 -> 0.1.39 (#64444) »: https://git.io/fjiXc
wildtrees has quit [Quit: Leaving]
zacts_pi has quit [Quit: WeeChat 2.4]
ris has quit [Ping timeout: 272 seconds]
<worldofpeace> 18.09 is EOL right?
<gchristensen> yeah
<Netsu> is it possible to add argument to derivation during overriding?
demize has quit [Quit: Do Androids Dream of Electric Sheep?]
__monty__ has quit [Quit: leaving]
<{^_^}> [nixpkgs] @worldofpeace closed pull request #64428 → [r18.09] graphicsmagick: 1.3.31 -> 1.3.32 (security release) → https://git.io/fjilA
<worldofpeace> thanks gchristensen
<gchristensen> yep!
demize has joined #nixos
qz has quit [Ping timeout: 245 seconds]
xcthulhu has quit [Read error: Connection reset by peer]
statusfailed has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #64283 → adapta-backgrounds: 0.5.2.3 -> 0.5.3.1 → https://git.io/fj6Wr
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjiXE
sigmundv has joined #nixos
statusfailed has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
stepcut_ has quit [Remote host closed the connection]
<Netsu> e.g. if I have derivation { a, b }: ..., how can I create derivation {a, b, c}: ...?
<{^_^}> [nixpkgs] @worldofpeace merged pull request #64447 → rofi: 1.5.3 -> 1.5.4 → https://git.io/fjiVo
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjiXX
lanelet has joined #nixos
<Netsu> should I use builtins.intersectAttrs?
<Netsu> is there something like builtins.functionArgs but for derivation?
stepcut has joined #nixos
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
jluttine has quit [Ping timeout: 248 seconds]
qz has joined #nixos
zacts_pi has joined #nixos
Acou_Bass has joined #nixos
phreedom has joined #nixos
<infinisil> Netsu: derivations aren't functions, so that doesn't make any sense
<infinisil> Netsu: And the { a, b }: ... thing isn't a derivation, that's a function
<infinisil> ,callPackage
<{^_^}> If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<Netsu> infinisil: but I have access to derivation's arguments during the `.override`. Is it possible to put some extra there?
<infinisil> Netsu: You can create a new function with the args you need, the call it with callPackage to get a derivation yeah
<infinisil> Would help if you'd be a bit more concrete though :)
<Netsu> infinisil: can I inherit arguments (with optional default values) from original derivation than in some way?
<infinisil> Unfortunately there's not really a nice way to inherit function argument defaults
gagbo has quit [Ping timeout: 258 seconds]
<infinisil> Although
<Netsu> `pkg = (super.pkg.override { oldFlag = false; newFlag = true }).overrideAttrs (drv: { configureFlags = drv.configureFlags ++ option newFlag "--new-flag"; });`
<Netsu> something like that
<Netsu> currently it complains about the unknowen `newFlag`
<infinisil> Huh, why not just use `optional true "--new-flag"?
<infinisil> Can you be like super concrete? What's the real problem you're trying to solve? What are you doing?
romildo has quit [Quit: Leaving]
<Netsu> because I create overlay with package that have more options. And later depend on environment variable it should enable or disable some of them to build different version of package
<Netsu> so I looking for a way to add for package have exstra parameters to override.
<infinisil> Where is the overlay defined?
<infinisil> How is the environment variable specified?
<infinisil> Because if you have this in a NixOS module, you can just refer to config.variables.FOOBAR directly, and use that in the overlay defined in the nixpkgs.overlay option
<Netsu> defined locally, `(self: super: with self; { ...`
<Netsu> depend on env var would put necessary `--argstr` to nix-build
<Netsu> It's nixpkgs build environment, not NixOS