dan_b_ has quit [(Read error: Connection reset by peer)]
digitalmentat has joined #nixos
jsgrant has joined #nixos
<digitalmentat> hmm, so it looks like cryptsetup luksResume is hanging on this function call within one of its functions: socket(AF_ALG, SOCK_SEQPACKET, 0)
<digitalmentat> I've bind mounted /proc /sys /dev and /run into the ramdisk
dan_b_ has joined #nixos
dan_b has quit [(Ping timeout: 240 seconds)]
hamishmack has quit [(Quit: hamishmack)]
dan_b has joined #nixos
digitalmentat_ has joined #nixos
ixmatus has joined #nixos
digitalmentat has quit [(Ping timeout: 240 seconds)]
<joepie91> it boggles the mind why WINE needs so much time to compilke
<joepie91> compile*
digitalmentat_ has quit [(Ping timeout: 248 seconds)]
markus1189 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] aszlig opened pull request #1699: build-remote: Fix missing log output (master...fix-remote-build-log) https://git.io/vFh4f
NixOS_GitHub has left #nixos []
markus1199 has quit [(Ping timeout: 240 seconds)]
hamishmack has joined #nixos
ixmatus has quit [(Ping timeout: 248 seconds)]
NightTrain has joined #nixos
Neo-- has quit [(Ping timeout: 250 seconds)]
Lisanna has joined #nixos
<Lisanna> Is there a way to install the gnome3 mime types without having gnome3 be my desktopmanager?
<Lisanna> I just want to run some gnome3 programs like nautilus and some image viewers/editors occasionally in my regular window manager, and not have it see every file as a text file
babyflakes has joined #nixos
<joepie91> my WINE build is /still/ running
<joepie91> did I accidentally compile every version in existence or something :|
MP2E has joined #nixos
derchris has quit [(Read error: Connection reset by peer)]
thc202 has quit [(Ping timeout: 268 seconds)]
derchris has joined #nixos
kuchi has quit [(Ping timeout: 250 seconds)]
schoppenhauer has quit [(Ping timeout: 260 seconds)]
kuchi has joined #nixos
<ToxicFrog> You are compiling a userspace implementation of large chunks of windows
<ToxicFrog> But multiple hours does seem excessive
Oida has quit [(Ping timeout: 248 seconds)]
oida has joined #nixos
schoppenhauer has joined #nixos
sigmundv__ has quit [(Ping timeout: 240 seconds)]
sigmundv_ has quit [(Ping timeout: 240 seconds)]
<Ralith> bear in mind that nix uses a single make job by default
sigmundv_ has joined #nixos
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
sigmundv_ has quit [(Read error: Connection reset by peer)]
sigmundv_ has joined #nixos
<Lisanna> Found the solution! I installed shared_mime_info and now my gnome3 programs are recognizing file types ^^
<gchristensen> Lisanna: yay!
ris has quit [(Ping timeout: 248 seconds)]
metaphysician has quit [(Quit: Bye.)]
dieggsy has joined #nixos
lambdamu has joined #nixos
iyzsong has joined #nixos
lambdamu_ has quit [(Ping timeout: 268 seconds)]
<ekleog> makefu: so, I got an answer from google, and my mail was stuck inside the moderation queue, most likely for being categorized as likely spam (and I'd have to figure out who are the moderators of the google group in order to know the reason of moderation for sure). So, at least in my case, my mail reaches the group once the moderators click the “accept” button… hopefully google will soon understand that
<ekleog> my mail server is actually legitimate, but…
fragamus has joined #nixos
Wizek_ has quit [(Ping timeout: 268 seconds)]
orivej has quit [(Ping timeout: 260 seconds)]
ixmatus has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar opened pull request #32016: syncthing-gtk: 0.9.2.3 → 0.9.2.7 (master...syncthing-gtk) https://git.io/vFh0r
NixOS_GitHub has left #nixos []
sigmundv has quit [(Ping timeout: 240 seconds)]
orivej has joined #nixos
deepfire has quit [(Ping timeout: 248 seconds)]
Cheng has joined #nixos
tanonym has quit [(Ping timeout: 248 seconds)]
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
ixmatus has quit [(Ping timeout: 248 seconds)]
mbrgm has quit [(Ping timeout: 248 seconds)]
mbrgm has joined #nixos
<Lisanna> gchristensen: I realized recently that it's good to ask question in IRC even if it's not likely that anyone else would know, because if you figure out the solution you can write it in the IRC and then that becomes web searchable ^^
<grahamc> Yes!
Cheng has quit [(Quit: Leaving)]
nuncanada has quit [(Remote host closed the connection)]
nuncanada has joined #nixos
danimal has joined #nixos
nuncanada has quit [(Ping timeout: 248 seconds)]
<danimal> Hello, my fellow Nixians. It looks like declarative user package management is up to the user to implement, because there are so many ways that it could be done. Does anyone know of a good overview of common patterns or methods for this? Does the community have "one best way" atm?
<vaibhavsagar> danimal: I hear people like https://github.com/rycee/home-manager
<vaibhavsagar> I think the eventual solution is https://github.com/NixOS/nixpkgs/pull/9250
<dhess`> this comes up a lot lately
grenade has quit [(Ping timeout: 250 seconds)]
<samueldr> re-posting this from yesterday, dunno if grahamc saw → https://stuff.samueldr.com/screenshots/2017/11/20171123231828.png
<samueldr> plotted PRs being opened, closed, and the backlog
<samueldr> puts things in perspective
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/9c048f4fb6 (from 30 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
grenade has joined #nixos
<danimal> Thanks, all. Would be great if NixUP or something like it becomes official.
<danimal> I actually think would be really cool if the standard Nixos tools could operate in a "user-mode" when run non-root user, using a ~/etc/nixosconfiguration.nix, for maximum orthogonality in the documentation. Has that possibility been given serious consideration? I'm wondering if nix-env was just a higher priority interface, or if this idea of running user-Nix with the exact same interface as system-Nix was already evaluated and rejecte
ertes is now known as supercynic
davidak has joined #nixos
proteusguy has quit [(Ping timeout: 260 seconds)]
asuryawanshi has joined #nixos
<Drako365_> I've honestlythought te same thing myself
<Drako365_> i
asuryawanshi has quit [(Ping timeout: 268 seconds)]
<danimal> On the other hand, one could argue that it is a mistake to even have a concept of a "user" on a single-user laptop, and that I should just chown /etc/nixos/configuration.nix. Put all user config in there, don't even try to group stuff like wifi and X11 config separately from stuff like Vim and Git config. Rebuild the nixos-* tools without any checks for isRoot. Fork the Linux kernel and eliminate the concept ownership (kidding).
<grahamc> WOW, samueldr! Can you ping me about that again in ~10–12 hrs?
<samueldr> can you ping me in ~10-12 hrs?
<samueldr> :)
<samueldr> I have the gnumeric too
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/9ce33dd8fb (from 7 days ago, history: https://channels.nix.gsc.io/nixos-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
<grahamc> Sure
iyzsong has quit [(Ping timeout: 268 seconds)]
<vaibhavsagar> I'm trying to copy my '.git' directory somewhere as part of the postPatch phase but nix-build is complaining with 'illegal name: .git'
<vaibhavsagar> can I work around this?
<samueldr> I'm curious too, but it's not ".git" being illegal, but starting with a dot
<jeaye> https://github.com/NixOS/nix/issues/912 for the relevant issue
<vaibhavsagar> hmm, this seems like a big deal
<jeaye> samueldr: A key on that plot would be superb.
<samueldr> couldn't find how to label the areas/lines with gnumeric
<samueldr> that was a quick hack, but if stats like those are wanted, I'm like halfway there with a manageable script
<samueldr> (right now it's still a hack)
<samueldr> futhermore, I'm not a data nerd or anything cool like that, there's probably a better way to represent that data visually
<jeaye> Yeah, I only hack things up with gnuplot; I know what you mean. Seems like this would be a sweet script to have around the community though.
<samueldr> if you have any pointers with gnuplot, any idea how to represent the data, it'd be better than manually faffing around in gnumeric
Cheng has joined #nixos
<Cheng> Do I have a way to get GL/gl.h get symlinked somewhere?
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/7f6f0c49f0 (from 14 hours ago, history: https://channels.nix.gsc.io/nixos-17.09)
nix-gsc-io`bot has quit [(Client Quit)]
<Cheng> Or do I have a way to get "include header files" for any general package symlinked outside of /nix/store?
stefanc_diff has quit [(Ping timeout: 240 seconds)]
iyzsong has joined #nixos
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
stefanc_diff has joined #nixos
babyflakes has quit [(Quit: Connection closed for inactivity)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f62c87b45f (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
Acou_Bass has quit [(Quit: byeeeeeeeeeeeeeee)]
Acou_Bass has joined #nixos
vcunat has joined #nixos
dieggsy has quit [(Remote host closed the connection)]
mizu_no_oto has joined #nixos
pie_ has quit [(Ping timeout: 240 seconds)]
schoppenhauer has quit [(Ping timeout: 248 seconds)]
schoppenhauer has joined #nixos
<Acou_Bass> eey folks, im havnig trouble accessing an NFS share - my server is arch, client is nixos, and its saying permission denied when I try to cd into it, on my server its configured to allow this machine's IP onto the share, and for some reason the permissions on the (client-side) files are all wonky
<Acou_Bass> one of them is apparently owned by UUID 125, and the other 1001 (group 'users' for this one)
<Cheng> Acou_Bass: Can you access it by root?
<Acou_Bass> it seems i can manually chmod it to 755 and then access it
<Acou_Bass> but surely nix shouldve done that when i did rebuild switch?
<Acou_Bass> and im worried that when i next do a rebuild switch itll just overwrite that anyway :p
<Cheng> No, as I understand it, the file permissions are consistent with those on the NFS server
<Acou_Bass> oh? hmm, that might explain a lot
fragamus has joined #nixos
babyflakes has joined #nixos
supercynic is now known as ertes
<Acou_Bass> ahh well, thanks :D ill assume its sorted for now hehe
taktoa has joined #nixos
<Cheng> File owner and group owner are also stored on the NFS server. You might have uid or gid mismatch
<Acou_Bass> yeah sounds like it =\
jsgrant_ has joined #nixos
<Acou_Bass> ill have a closer look tomorrow
jsgrant has quit [(Ping timeout: 248 seconds)]
kwork has quit [(Ping timeout: 240 seconds)]
NightTrain has quit [(Quit: Lost terminal)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
davidak has quit [(Quit: Leaving.)]
asuryawanshi has joined #nixos
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
asuryawanshi has quit [(Ping timeout: 240 seconds)]
fragamus has joined #nixos
nixos1022 has joined #nixos
jsgrant_ has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vFhaT
<NixOS_GitHub> nixpkgs/master 88ccc38 Vladimír Čunát: nixpkgs.metrics: --show-trace into the log...
NixOS_GitHub has left #nixos []
jmc_fr has joined #nixos
<pmeunier> Hi! I'd like to use VirtualBox's extension pack, anyone got it to work?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis opened pull request #32018: traefik: 1.3.8 -> 1.4.4 (master...traefik-1_4_4) https://git.io/vFha8
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 3 new commits to master: https://git.io/vFhaV
<NixOS_GitHub> nixpkgs/master ab6046e taku0: thunderbird-bin: 52.4.0 -> 52.5.0
<NixOS_GitHub> nixpkgs/master bb853bd taku0: thunderbird: 52.4.0 -> 52.5.0
<NixOS_GitHub> nixpkgs/master 3bc7d00 Vladimír Čunát: Merge #32017: thunderbird*: security 52.4.0 -> 52.5.0
NixOS_GitHub has left #nixos []
danimal has quit [(Quit: Page closed)]
mrkgnao has joined #nixos
jmc_fr has quit [(Ping timeout: 240 seconds)]
Cheng has quit [(Quit: Leaving)]
ssmike has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 1 new commit to master: https://git.io/vFhVZ
<NixOS_GitHub> nixpkgs/master 2f1a818 Orivej Desh: nixos/fwupd: disable by default...
NixOS_GitHub has left #nixos []
endformationage has quit [(Quit: WeeChat 1.9.1)]
ericsagnes has quit [(Ping timeout: 246 seconds)]
petsa has joined #nixos
justan0theruser has quit [(Ping timeout: 258 seconds)]
proteusguy has joined #nixos
ericsagnes has joined #nixos
jsgrant_ has joined #nixos
petsa has quit [(Ping timeout: 255 seconds)]
leat has quit [(Ping timeout: 240 seconds)]
<pcarrier> running on nixos 17.09 I seem to have a problem with bundlerEnv
<pcarrier> the problem: 1632380 lrwxrwxrwx 1 root root 65 Dec 31 1969 /home/.nix-profile/bin/bundle -> /nix/store/sg4wlqycpfzgg4lbw3y8vpcim2g21l08-baze-0.1.1/bin/bundle*
<pcarrier> (I don't particularly want to use bundler in the first place)
justan0theruser has joined #nixos
pxc has joined #nixos
<pcarrier> oh wow that problem seems to affect ruby packages in 17.09?
<pcarrier> ```
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 1 new commit to master: https://git.io/vFhwt
<NixOS_GitHub> nixpkgs/master 03209fc Orivej Desh: coyim: disable on Darwin...
NixOS_GitHub has left #nixos []
<hyper_ch> pmeunier: just enable it in the configuration.nix
<hyper_ch> pcarrier: :(
<pcarrier> @hyper_ch does nobody nix-env -iA more than 2 ruby packages? o_O
<hyper_ch> I don't ruby and I do put everything into the configuration.nix
<pcarrier> right. should be the same thing with nixos-wise installs
<pcarrier> they're all providing /bin/bundler and /bin/bundle
<hyper_ch> pcarrier: depends.... it's all up to you... put it into configuration.nix = available for all users
<hyper_ch> do it via nix-env -iA, only available for you... since I'm only user, I put it in configuration.nix so when I resetup, I just restore the configuration.nix
<pcarrier> yeah I understand the distinction
<pcarrier> I'm just describing a general problem with those derivations
<pcarrier> how they're used doesn't really change the fact that they all collide on those 2 paths
<hyper_ch> I don't use ruby :)
<pcarrier> I don't either. well I wrote the gem I'm trying to package here, but that's only because I'm really really used to having those utilities available in my shells
<hyper_ch> I'm currently failing hard with packaging a pythong app
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 1 new commit to master: https://git.io/vFhwW
<NixOS_GitHub> nixpkgs/master 45a85ea Orivej Desh: go-sct: disable on Darwin...
NixOS_GitHub has left #nixos []
asuryawanshi has joined #nixos
iyzsong-x has joined #nixos
asuryawanshi has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to python-unstable: https://git.io/vFhw2
<NixOS_GitHub> nixpkgs/python-unstable d34aeaf Frederik Rietdijk: python.pkgs.jedi: unpin parso dependency
NixOS_GitHub has left #nixos []
iyzsong has quit [(Ping timeout: 248 seconds)]
ma27 has joined #nixos
ma27 has quit [(Client Quit)]
Capprentice has joined #nixos
Capprentice has quit [(Read error: Connection reset by peer)]
Capprentice has joined #nixos
<pcarrier> so I understand how the nix GC finds roots
<pcarrier> but I have no idea how it finds references?
leat has joined #nixos
FRidh has joined #nixos
jmc_fr has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos []
<hyper_ch> what references?
Havvy has joined #nixos
isHavvy has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to staging: https://git.io/vFhwj
<NixOS_GitHub> nixpkgs/staging d087463 Frederik Rietdijk: Merge remote-tracking branch 'upstream/master' into HEAD
NixOS_GitHub has left #nixos []
phreedom has quit [(Quit: No Ping reply in 180 seconds.)]
phreedom has joined #nixos
<pcarrier> hyper_ch: how does it keep track that a given package uses another package for example?
jmc_fr has quit [(Ping timeout: 260 seconds)]
<pcarrier> what does a derivation that produces a simple shell script that calls into a couple of its build inputs look like?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vFhrZ
<NixOS_GitHub> nixpkgs/master e234907 Frederik Rietdijk: octaveFull: always use openblasCompat on darwin...
NixOS_GitHub has left #nixos []
Taneb has left #nixos ["Leaving"]
RayNbow`TU has quit [(Ping timeout: 240 seconds)]
<hyper_ch> pcarrier: for a simple shell script you want like scriptwritebin to use
<pcarrier> google doesn't know what that is
Acou_Bass has quit [(Remote host closed the connection)]
RayNbow`TU has joined #nixos
asuryawanshi has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vFhrH
<NixOS_GitHub> nixpkgs/master cb9bf1c Kier Davis: PySolFC: init at 2.0...
NixOS_GitHub has left #nixos []
ThatDocsLady has quit [(Remote host closed the connection)]
ThatDocsLady has joined #nixos
<pcarrier> writeScriptBin thanks :)
<hyper_ch> it will push script direclty into correct PATH and make it available in /run/current-system/sw/bin/scriptName
<hyper_ch> so $var need to be escaped in the script itself by ''
<hyper_ch> actaully only vars that do use parameter expansion (in bash)
<pcarrier> how does it deal with dependencies? o_O
<hyper_ch> which dependencies?
asuryawanshi has quit [(Ping timeout: 248 seconds)]
<pcarrier> which dependencies the script has?
<pcarrier> *whichever
<hyper_ch> depends
<pcarrier> on?
<pcarrier> I want to write a derivation for a small, simple shell script that calls into a few binaries that needs to be in its path
<hyper_ch> pcarrier: you could use that https://github.com/sjau/pdfForts/blob/master/pdfForts.nix
<pcarrier> that doesn't that at all.
ThatDocsLady has quit [(Quit: Leaving)]
<hyper_ch> top, you say all the dependencies and in the script you could use something like ${unzip}/bin/unzip
<hyper_ch> for zip
<hyper_ch> or unzip
<pcarrier> top as in derivation inputs?
<pcarrier> is that how nix understands who depends on what? I thought I'd have to use buildInputs on mkDerivation?
<hyper_ch> yes, and then you could just use it as ${unzip}/bin/unzip
<pcarrier> how does it keep track of the fact that the script requires unzip?
<hyper_ch> buildInputs is when you compile stuff
<hyper_ch> you don't compile scripts usually
<pcarrier> I really don't understand how nix tracks dependencies at this point.
<hyper_ch> unzip is packaged in nix
<hyper_ch> by adding it in the top { } you tell nix that unzip is a dependency of what follows
<FRidh> pcarrier: buildInputs simply makes the paths available during build time. For run time, the paths need to be referred to in your code, in this case your script. So, if you need binaries on PATH, you either hardcode the paths to those binaries in your script, or you create a wrapper that adds the binaries to PATH
<pcarrier> is there a good doc on nix internals so I can understand how deps are tracked through the derivation process and presumably into the store?
<hyper_ch> yeah, finally 4.14 :) 4071 store paths deleted, 11974.01 MiB freed
<pcarrier> hyper_ch: kernel 4.14? in unstable?
<hyper_ch> yes and vbox with extensions works now again as well
zraexy has quit [(Ping timeout: 255 seconds)]
<hyper_ch> Linux subi 4.14.2 #1-NixOS SMP Fri Nov 24 07:37:05 UTC 2017 x86_64 GNU/Linux
<hyper_ch> using latest, not default unstable
zraexy has joined #nixos
<FRidh> pcarrier: A part of it is described in this Nix Pill: https://nixos.org/nixos/nix-pills/automatic-runtime-dependencies.html
<pcarrier> @FRidh many thanks
<pcarrier> anyway, glad to hear https://github.com/pcarrier/config/blob/master/pkgs/clipshot/default.nix is all I need :D
Arcaelyx has joined #nixos
<hyper_ch> FRidh: do you happen to be familiar with python? I'm trying to get OCRmyPDF to run, I was able to write nix expressions for the missing modules but for the actual app I get ascii/utf8 errors and no idea how to fix that
pxc has quit [(Ping timeout: 260 seconds)]
<hyper_ch> pcarrier: nixos-unstable runs pretty smoothly in general.... however with update from 4.12 or 4.13 to 4.14 a few things broke.... but since you had a working build before, it didn't really matter :)
<hyper_ch> benefits of atomic upgrades :)
<hyper_ch> 4759.37 MiB freed by hard-linking 309516 files
Ivanych has quit [(Ping timeout: 246 seconds)]
sbjorn has joined #nixos
<pcarrier> wait so nix finds runtime dependencies by matching file contents with its hashes
<pcarrier> what happens if they get compressed, eg into a JAR?
Ivanych has joined #nixos
* hyper_ch just prefers to think NixOS/nix uses some pretty advanced automagic
simukis has joined #nixos
proteusguy has quit [(Ping timeout: 250 seconds)]
ssmike has quit [(Ping timeout: 255 seconds)]
Myrl-saki has joined #nixos
<Myrl-saki> How to use xauth?
<Myrl-saki> To be more exact, I can't get synergy-client working because it cannot open the DISPLAY.
dywedir has joined #nixos
<FRidh> pcarrier: if it cant match hashes, then they won't be declared as runtime dependencies. In that case, one often explicitly records them in e.g. a text file, like propagated-native-build-inputs
<Myrl-saki> I can open it as my user but not as root.
<pcarrier> @FRidh makes sense, thanks
<pcarrier> feels dirty but hey, it works :D
<hyper_ch> pcarrier: feel like upgrading to unstable? ;)
<pcarrier> @hyper_ch not even close no
<hyper_ch> :) what could possibly go wrong....
<pcarrier> I'm building a workstation environment and really don't need the latest and greatest
<pcarrier> I'm going through a checklist then back to work
<hyper_ch> back to work? on a saturday? oO
<pcarrier> I wouldn't call myself productive this week
<pcarrier> Eg the reason I packaged minijail is so I can have a cleaner buildfhsenv so I can work on our monorepo code and not run into crazy with the vendored tooling like go and node
<hyper_ch> but isn't mono evil?
<pcarrier> Monorepo. It's a repo with a lot of internal projects
<hyper_ch> :)
<pcarrier> Like Google, Twitter, etc
<hyper_ch> one might also say, since you got minijail to work, you've done your share for this week ;)
<pcarrier> Nix is not something I actually need for work
<pcarrier> It's just what I need to stay sane
<pcarrier> My luck with computers is terrible.
kwork has joined #nixos
<pcarrier> With zfs snapshot replication to 2 remote hosts, all my system packaged neatly into nix, hopefully I won't lose productivity ever again
<hyper_ch> computers are nothing but glorified typewriters ;)
<pcarrier> I can service a typewriter, not computers
<pcarrier> Not the types of laptops I use anyway
<pcarrier> My next pet project for nix would be crosvm
<hyper_ch> no idea what that is
<pcarrier> A kvm monitor in rust which seccomp-jails its components
proteusguy has joined #nixos
<pcarrier> Think of it like a stupidly secure qemu
<hyper_ch> :)
kwork has quit [(Changing host)]
kwork has joined #nixos
<pcarrier> With the combination of xhyve, crosvm and nix, I'm hoping we could eventually get amazing dev, build and execution environments on mac and Linux workstations and in kubernetes containers
stphrolland has joined #nixos
<pcarrier> But realistically that's gonna be a really hard sale, not to mention I want to remain a "disposable" employee
<stphrolland> I'm willing to have my PATH environment adding a folder where I have some personnal scripts. I plan to do the path concatenation in enviromnent.shellInit. However I'm a bit puzzled by the description in NixOs search option. "Shell script code called during login shell initialisation. This code is asumed to be shell-independent, which means you should stick to pure sh without sh word split." I don't understand this "sh word split"
<capisce> pcarrier: "worse is better"?
<pcarrier> @capisce more like SPOF avoidance
<capisce> maybe they go together
<pcarrier> so more like "simpler is better", "popular is better"
<capisce> yes
<pcarrier> is there some cool htop patch somewhere to filter stuff like /nix/store/13siydsf7n6qhlfwfg13j6bglp2668l1-google-chrome-62.0.3202.89/share/google/chrome/chrome into eg nix:13siydsf/share/google/chrome/chrome? :D
<hyper_ch> pcarrier: there will be as soon as you publish it ;)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bachp opened pull request #32021: riot-web: 0.12.6 -> 0.13.1 (master...riot-web-0.13.1) https://git.io/vFhK5
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 3 new commits to release-17.09: https://git.io/vFhKA
<NixOS_GitHub> nixpkgs/release-17.09 e198d74 Kier Davis: pius: move source from Sourceforge to Github...
<NixOS_GitHub> nixpkgs/release-17.09 fc2b9e1 Kier Davis: pius: 2.0.11 -> 2.2.4...
<NixOS_GitHub> nixpkgs/release-17.09 bd80745 Kier Davis: pius: add myself as a maintainer...
NixOS_GitHub has left #nixos []
<Isorkin> How to configure zsh plugin - antigen - http://pastebin.ru/Y6RmN6fx - not normal work config. Error - -antigen-cache-generate:zcompile:54: can't write zwc file: /nix/store/...-antigen-2.2.1/share/antigen/antigen.zsh.zwc
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bachp opened pull request #32022: gitlab-runner: 10.1.0 -> 10.2.0 (master...gitlab-runner-10.2.0) https://git.io/vFh6I
NixOS_GitHub has left #nixos []
ssmike has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vFh6t
<NixOS_GitHub> nixpkgs/master dfa4fbb adisbladis: traefik: 1.3.8 -> 1.4.4
<NixOS_GitHub> nixpkgs/master fd10e3b Jörg Thalheim: Merge pull request #32018 from adisbladis/traefik-1_4_4...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vFh6s
<NixOS_GitHub> nixpkgs/master 8bfa14f Patrick Chilton: cnijfilter: add 4.00
<NixOS_GitHub> nixpkgs/master 75f713c Jörg Thalheim: Merge pull request #32012 from chpatrick/cnijfilter_4_00...
NixOS_GitHub has left #nixos []
taktoa has quit [(Remote host closed the connection)]
jensens has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #32021: riot-web: 0.12.6 -> 0.13.1 (master...riot-web-0.13.1) https://git.io/vFhK5
NixOS_GitHub has left #nixos []
Arcaelyx has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
thc202 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vFhik
<NixOS_GitHub> nixpkgs/master cb05c04 Pierre Carrier: minijail: init at android-8.0.0_r34
<NixOS_GitHub> nixpkgs/master b0bf60a Jörg Thalheim: Merge pull request #32010 from pcarrier/pcarrier/minijail...
NixOS_GitHub has left #nixos []
<pcarrier> yaaay
<hyper_ch> successfull upgrade to unstable? :)
<hyper_ch> ah, minijail
<pcarrier> @hyper_ch you seem to really want me on unstable.
<pcarrier> will `nix-push --dest out ~/.nix-profile /run/current-system`effectively cover everything needed to rebuild my system and user profile the way I think it does?
<hyper_ch> up to you... as said, due to atomic upgrades, if something goes wrong, it's no big deal...
<avn> what is minijail?
<pcarrier> avn: Google's sandboxing tech for Android and ChromeOS. https://youtu.be/oGmj6CUEup0
<pcarrier> and Android on ChromeOS.
<pcarrier> support most kernel namespaces, basic chrooting and bind mounts, capabilities and seccomp
babyflakes has quit [(Quit: Connection closed for inactivity)]
ottidmes has joined #nixos
<pcarrier> OK so both my 32" external display and 15.6" laptop display are 4k, and I love the screen estate but the laptop screen is unreadable
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 2 new commits to release-17.09: https://git.io/vFhPJ
<NixOS_GitHub> nixpkgs/release-17.09 7581a3f Orivej Desh: coyim: disable on Darwin...
<NixOS_GitHub> nixpkgs/release-17.09 60f8fbf Orivej Desh: go-sct: disable on Darwin...
NixOS_GitHub has left #nixos []
<pcarrier> I was thinking I should figure out DPIs, but now that I think more about it
<pcarrier> how about magnifying glasses for when I'm on my laptop? :D
<pcarrier> I cannot be the only person to ever consider it.
hotfuzz has joined #nixos
<ottidmes> I am thinking about moving from btrfs to ZFS, but as I understand it, ZFS is being developed outside the Linux kernel, meaning you need to make sure you ZFS and kernel version match. I see that Arch Linux has specific kernel packages for this, but saw no mention of this on the NixOS on ZFS page. Is this not an issue?
hotfuzz_ has quit [(Ping timeout: 250 seconds)]
babyflakes has joined #nixos
<pcarrier> @ottidmes fully supported. it's a dream.
<pcarrier> set `boot.supportedFilesystems = [ "zfs" ]` and done.
dan_b has quit [(Ping timeout: 240 seconds)]
<ottidmes> pcarrier: Right, that is the page I mentioned, but doing what is said there is enough, there does not have to be any kernel version pinning?
<pcarrier> nope
<ottidmes> pcarrier: Awesome, then I will give it a try!
<pcarrier> when nix figures out how to atomically build the next version of your system, it will use whichever kernel you tell it to use and install zfs support in its initrd
<pcarrier> if it has already built it, zero build. if it's available in a binary cache, zero build. otherwise, it'll build what needs to be built behind the scenes
<hyper_ch> why buy a 4k 15" notebook?
<pcarrier> in short all the nix goodness applied to zfs :)
<pcarrier> @hyper_ch I like pixels. I don't like broken hiDPI support. when I bought this laptop it was meant to run windows where that's fine
<hyper_ch> ottidmes: zfs works fine on nixos
<pcarrier> and if I can have magnifying glasses when using my laptop on the go, I could enjoy the screen estate :D
* hyper_ch heard when upgrading to nixos unstable, all the dpi problems for 4k screens on tiny laptops disappear :)
Myrl-saki has quit [(Read error: Connection reset by peer)]
<ottidmes> pcarrier: I was asking, because it says this on the Arch Linux wiki: "Warning: Unless you use the dkms versions of these packages, the ZFS and SPL kernel modules are tied to a specific kernel version."
<pcarrier> @ottidmes you're describing problems that are hard to solve for archlinux, but that nix was built for.
<hyper_ch> ottidmes: for a while, you couldn't upgrade to 4.14 on nixos unstable but it's fixed now
<hyper_ch> zfs works just fine
<avn> pcarrier: does it differ from nsjail/firejail?
<pcarrier> @ottidmes if you stick to the stable release of nixos (which you certainly should at least to get started IMHO), that stuff is tested
<pcarrier> and really just works.
ris has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor pushed 4 new commits to master: https://git.io/vFhPc
<NixOS_GitHub> nixpkgs/master e36962a Kjetil Orbekk: munin: 2.0.33 -> 2.0.34
<NixOS_GitHub> nixpkgs/master c164d83 Kjetil Orbekk: munin-node: add patch to preserve environment variables
<NixOS_GitHub> nixpkgs/master a2dc37c Kjetil Orbekk: munin-node: patch to configure plugin-conf.d...
NixOS_GitHub has left #nixos []
<pcarrier> @avn it's used by Google on hundreds of millions of devices
<pcarrier> @avn when I tried firejail I couldn't make it bind mount stuff outside the chroot inside the chroot for example. that stuff just works with minijail0
<pcarrier> @avn I know nothing of nsjail
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor closed pull request #31916: Munin: Fix broken plugins (master...munin) https://git.io/vFFX4
NixOS_GitHub has left #nixos []
<ottidmes> pcarrier: Great to hear! I am on stable, only using some specific unstable packages if I cannot wait for them to be released on stable and cannot be borthered to copy them over to my local checkout
<hyper_ch> ottidmes: actually, due to that atomic nature of nixos, testing out unstable is not a big thing
<pcarrier> @hyper_ch once you have a config that basically works yes you can always roll back to that
<hyper_ch> if all the updates/upgrades are successfull, it will create a new generation entry
<hyper_ch> but you can still boot into prior version if you feel like
<hyper_ch> and if you're not happy, you just switch channel again to stable, rebuild and all is well
asuryawanshi has joined #nixos
<pcarrier> @hyper_ch my point is that until you have a reasonable complete functioning setup, there are better things to do than deal with both your iterations and unstable's iterations
<hyper_ch> the only thing you really have to be careful about is that system state variable in your configuration nix
<ottidmes> But I assume if the bugs introduced by the unstable version are subtle and cause damage to your data, you cannot easily rollback from that
<hyper_ch> don't alter this until you're sure a release is good because that could lead to some alterations of databases etc. that can't be rolled back
<pcarrier> @ottidmes given zfs supports receiving and sending snapshots, you can start backing up your data remotely and those problems disappear
<pcarrier> @ottidmes see znapzend for example, already in nix
<hyper_ch> ottidmes: buggy programs that alter your data can also happen on stable
<hyper_ch> so, always have backups
<ottidmes> pcarrier: I am building myself a backup server this very moment, and that is exactly what I did, I have two of them, located in different places
<pcarrier> @ottidmes are you thinking about using nix+zfs for production systems with business critical data?
<hyper_ch> pcarrier: any reason you always use the @?
ixxie has joined #nixos
<hyper_ch> that's so 90s irc ;)
<pcarrier> @hyper_ch that's also 2010s Twitter and Slack
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #31781: Update HDF5 and add option to compile Fortran2003 interface (master...hdf5-fortran-2003) https://git.io/vF9mN
NixOS_GitHub has left #nixos []
<ottidmes> pcarrier: Yes, some of it will be business critical yes, anything to worry about?
<hyper_ch> ottidmes: always have backups
<hyper_ch> ottidmes: that's the only thing you need to worry about
<pcarrier> @ottidmes nothing I can think of. it seems to be a great system for that. you might want to look into nixops as well :)
<avn> pcarrier: irc clients react on trailing : not for leading @
<pcarrier> avn: my client reacts to both just fine FWIW
<avn> pcarrier: what client you use?
<pcarrier> avn: but if it breaks people's clients I can try to do better
<hyper_ch> ottidmes: after the breaking 3 weeks ago in our office, where all the stuff was stolen
<ottidmes> hyper_ch: Most of my disks at home are at OLD_AGE or PRE_FAILURE, including the external disks I am using for backups at the moment, hence me building these backup servers
<pcarrier> /whois pcarrier :)
<avn> correct ;)
<hyper_ch> ottidmes: I resetup the whole sever with encrypted root zfs and nixos
<hyper_ch> in 3-disk mirror mode
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #31560: tzdata: Use hard- instead of symbol-linking (master...tzdata) https://git.io/vFwFb
NixOS_GitHub has left #nixos []
<hyper_ch> before it was 3-disk raid1 with luks/dm-crypt and debian with proxmox
<hyper_ch> no I just use nixos, zfs, kvm
<avn> hyper_ch: do you use zfs encryption?
<ottidmes> hyper_ch: Yeah, I took that into account as well, I will do NixOS on ZFS on LVM on LUKS, mirrored in a different location as well
<hyper_ch> since there's a bug with encrypted raw zfs sending, I currently do full backup 4x a day
<hyper_ch> but the zfs encryption dev is working on it
<hyper_ch> so I currently backup like 800GB a day ;) (4x 200GB)
<pcarrier> @ottidmes interesting. why LVM?
<ottidmes> pcarrier: Maybe I will look into NixOps and see whether I can use it for the VMs I plan to run on the more beefy of the backup servers
<pcarrier> ottidmes: I really can't think of a reason to sandwich it between zfs and luks
<pcarrier> ottidmes: zpools can be everything LVM can do and more AFAICT
stphrolland has quit [(Quit: Page closed)]
<hyper_ch> there's just one piece missing... before we used abbyocr4linux for ORCing scanned documents in a debian vm..... can't get it to run properly on NixOS thought but the OCRmyPDF does an equal good job and trying to package it now for nixos
<ottidmes> pcarrier: Never used ZFS, will have to look more into it, but if you say there is no need, I will likely drop LVM
<hyper_ch> ZFS is great... it has integrated raid 1 (mirror), 5,6,7 (raidz-x)
<pcarrier> ottidmes: I would recommend installing nixos in a VM and playing with the zpool and zfs tooling for a while. if you have experience with LVM + btrfs you shouldn't be completely lost
<hyper_ch> (but no matter how great the system/software is, always have backups)
<pcarrier> ottidmes: very very roughly zpool manages PVs and VGs, zsh manages LVs and filesystems
<ottidmes> pcarrier: I just installed a new SSD on this desktop, which I will be using to experiment on before doing it on the actual servers
<pcarrier> ottidmes: feel free to create loop devices from files on disk to experiment. the perf will be terrible but it lets you check what happens when you take disks out, add new disks, etc.
<pcarrier> ottidmes: when disks offline or corrupt :)
<ottidmes> hyper_ch: So I should not be using encrypted raw ZFS sending right now, but just using ZFS send over SSH, should not be a problem right?
<pcarrier> ottidmes: yes zfs send over ssh works great.
Neo-- has joined #nixos
<hyper_ch> ottidmes: encrypte raw zfs sending is when you use native zfs encryption
<hyper_ch> I trigger a bug there that causes spl to panic
<ottidmes> pcarrier: And ZFS on the desktop, should be fine right, as long as I do not use dedup (I read it caused a lot of memory costs), or is ZFS on the desktop not really a thing?
<hyper_ch> and the zfs dev for encryption is working on it
<ArdaXi[m]> ZFS on the desktop is pretty popular, though you lose out on a bunch of features in most cases of course
<ixxie> Dear Nixizens, today we are having a hackathon on the NixOS community wiki; if you would like to help out, have a look at https://github.com/nixos-users/wiki/issues/12 and come join us over at #nixos-wiki
<pcarrier> ottidmes: zfs on the desktop is fine. the short of it is that there's a caching layer called ARC that doesn't integrate with the page cache in the cache of linux, so things can get cached twice
<hyper_ch> ottidmes: a good read https://www.funtoo.org/ZFS_Fun
<pcarrier> ottidmes: I'm running my laptop on ZFS. tons of chrome tabs, build daemons, a large IDE setup, docker containers, etc. but I have 32GB of RAM.
<hyper_ch> running zfs here as well, 16GB ram
<hyper_ch> and /tmp and /var/tmp are tempfs
<pcarrier> ottidmes: I would worry less about RAM than disk space. ZOL is COW and doesn't defrag. you should never run even close to out of disk space.
petsa has joined #nixos
<pcarrier> or performance will degrade semi-permanently (as in, you'll be better off wiping the zpool and restoring snapshots)
<hyper_ch> btw, that's the configuration.nix of the office server https://paste.simplylinux.ch/view/233b3d7f
<ottidmes> pcarrier: hyper_ch: Thanks for the tips! I have been running btrfs on all my NixOS machines, but now that I plan to use more of its advanced features I do not trust it enough, especially for my backup server, so ZFS it is, but I have to say I have not experienced any problems with disk space or memory with btrfs
ssmike has quit [(Ping timeout: 240 seconds)]
<pcarrier> ottidmes: zfs is to this day waaay ahead of btrfs in terms of features. you're gonna have a blast.
<ottidmes> hyper_ch: Thanks for the config, that will help
<pcarrier> ottidmes: some might call me paranoid but I would recommend not using zfsUnstable or nixos unstable because well, storage boxes.
chrisbarrett has joined #nixos
<pcarrier> ottidmes: my laptop config: https://github.com/pcarrier/config/blob/master/system.nix
<ottidmes> pcarrier: Thanks!
<hyper_ch> ottidmes: creating a snapshot in zfs goes as this: zfs snapshot pool/path/to/desired/dataset@snapshot_xxxxxxx snapshot_xxxxx can be whatever you want, preferreably some date indication ;) once you have a snapshot, you can send it... you can send it to the same pool but as a different data set, you can send it to a different pool on the same computer, you can send it to a file or you can send it over ssh to a remote machine and import
<hyper_ch> it there like
<ottidmes> pcarrier: Yeah, I will be running stable, NixOS, ZFS, and the latest LTS Linux kernel on my desktop and backup servers
<pcarrier> latest LTS isn't in stable
<pcarrier> previous-to-LTS is the default in stable.
<pcarrier> previous-to-last LTS sorry
<hyper_ch> zfs send -R pool/path/to/desired/dataset@snapshot_xxxxxxx | ssh root@remote 'zfs receive remPool/path/to/remote/dataset'
<pcarrier> so 4.9.
<ottidmes> Hmm, I was afraid of that, since I just updated and indeed am still on 4.9, but my more beefy backup server has a AMD Ryzen 7 1700, and will need at least 4.10 in order to run without errors
<pcarrier> ottidmes: lemme see if 4.14 was backported I guess
<pcarrier> ottidmes: you can at least run 4.13 in the meantime. my config does that
<pcarrier> OK so kernel 4.14 isn't in nixos 14.09.
<pcarrier> 17.09 sorry
<ottidmes> hyper_ch: Thanks for those tips, I will definitely try that out once I have it running :) I was planning to use snapshots to introduce versioning for the files on the backup server, and use zfs send to mirror everything on the remote location
<pcarrier> ottidmes: so `boot.kernelPackages = pkgs.linuxPackages_4_13` on nixos-17.09, `boot.kernelPackages = pkgs.linuxPackages_4_14` on nixos-unstable
<hyper_ch> ottidmes: well, the above command would send that snapshot and all previous ones.... -R -> recursive.... for later you'd use zfs send -i @last_snapshot tank/.../...@current_snapshot
<ottidmes> pcarrier: Yeah, so I will just be on the lookout for when 4.14 is available on 17.09 and indeed will be using 4.13 in the meantime
<hyper_ch> or better use: boot.kernelPackages = pkgs.linuxPackages_latest
<pcarrier> hyper_ch: on a storage server I'm not sure you want unplanned kernel upgrades on reboots.
<hyper_ch> or for really, really bleeding edge: boot.kernelPackages = pkgs.linuxPackages_testing
<ottidmes> pcarrier: What would you recommend, also use 4.13 on the other backup server, of use 4.9 LTS on that and only move to 4.14 LTS once it is available?
<adisbladis> pcarrier: 4.14 (probably) wont be backported
<hyper_ch> pcarrier: well, I stay on unstable until my issue with native encrypted zfs is solved ;)
<pcarrier> ottidmes: honestly that's up to you. I'd personally stick to a single kernel but that's just me.
<hyper_ch> just a warning: if you use bcache then don't use 4.14... there are some bug reports that eats your disks
<pcarrier> ottidmes: in any way, it's really easy to test and rollback, right?
<adisbladis> pcarrier: Just reboot and pick an earlier generation :)
<adisbladis> pcarrier: Beware of stateVersion though.
<pcarrier> I would go as far as saying that if you care about your data and don't have serious redundancy and correctness checks then don't use bcache.
<ottidmes> pcarrier: That is true, I also love how simple it is to create your own LiveCD with NixOS, which I will need, since it uses 4.9, which won't run properly with the Ryzen system
<pcarrier> ottidmes: yeah on my todo list I want to bake a liveCD with my password-protected SSH private key, ssh, zfs, network-manager and nothing else. so I can restore easily.
<hyper_ch> ottidmes: there's also this great nix-expression that lets you easily add custom files to your livecd as well :) so you could write your own basic installer script and add it as well
<adisbladis> ottidmes: I could boot the livecd on my ryzen system and it worked well enough to install
<pcarrier> and a baked-in ssh_config and ssh_known_hosts of course :)
<ottidmes> bcache is like using a SSD to enhance the speed of your HDD array?
<hyper_ch> yeah, bcache is to use fast write of ssds to take pressure from hdds
<adisbladis> ottidmes: Yes. You can use it like that.
<pcarrier> ottidmes: yeah it's block device caching. writeback and writethrough.
<pcarrier> ottidmes: built on devicemapper.
<hyper_ch> "Bcache is a Linux kernel block layer cache. It allows one or more fast disk drives such as flash-based solid state drives (SSDs) to act as a cache for one or more slower hard disk drives."
<hyper_ch> so with 4.14 beware of bcache-eating-your-disk bug
<ottidmes> I was thinking about using a bcache, but I will have to look how much of a difference it makes, and whether it is worth the effort, and apparently the potential risks
<adisbladis> If you use zfs I would recommend just sticking with l2arc
<adisbladis> And ZiL
<pcarrier> it didn't survive thorough testing at Twitter, but that was about 2 years ago
<ottidmes> hyper_ch: Yeah, thanks for the heads up, I will stick with 4.13 for now
<pcarrier> adisbladis++ "just use zfs"
<pcarrier> zfs already has a thoroughly tested cache; it's always used with 1 memory tier, but you can add block device tiers
<hyper_ch> and don't forget to enable zfs scrubbing :)
<ottidmes> adisbladis: I got "unexpected IRC trap at vector 07" being spammed constantly, even though it did seem to function, but I just did not dare to carry on installing
<adisbladis> ottidmes: Maybe different chipsets or something. Lots of variables at play here
jensens has quit [(Ping timeout: 264 seconds)]
<ottidmes> adisbladis: Probably, once I started Arch Linux LiveCD it gave no such errors, but it is running kernel 4.13
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #32022: gitlab-runner: 10.1.0 -> 10.2.0 (master...gitlab-runner-10.2.0) https://git.io/vFh6I
NixOS_GitHub has left #nixos []
<hyper_ch> ottidmes: well, get 4.13 kernel on your nixos, build custom iso and test it
<ottidmes> The only thing I do not like is that I cannot get to get a definite answer whether ECC is working, only some hints, that it might, but all the tools that give you a clear yes or no, give me no or unknown. Hopefully EDAC utils will work properly once started on boot (I read that is only works properly then) and try to overclock my memory and see if the errors are fixed
* hyper_ch has never used ECC
<hyper_ch> I mean ECC ram
otulp has quit [(Ping timeout: 240 seconds)]
<pcarrier> hyper_ch: well I moved to nixpkgs-unstable for my user profile at least
Neo-- has quit [(Ping timeout: 248 seconds)]
otulp has joined #nixos
chrisbarrett has quit [(Remote host closed the connection)]
sbjorn has quit [(Quit: WeeChat 1.9.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 1 new commit to master: https://git.io/vFh1Q
<NixOS_GitHub> nixpkgs/master fbbda41 Orivej Desh: Restore more accurate history of the master branch...
NixOS_GitHub has left #nixos []
dywedir has quit [(Ping timeout: 248 seconds)]
Wizek_ has joined #nixos
<hyper_ch> pcarrier: why?
Wizek_ has quit [(Ping timeout: 248 seconds)]
justan0theruser has quit [(Ping timeout: 255 seconds)]
<pcarrier> And of course I managed to blow up my boot
<pcarrier> So what's the most straightforward boot sequence? Dell uefi -> systemd-boot -> kernel?
dywedir has joined #nixos
mahalel_ has quit [(Ping timeout: 250 seconds)]
mahalel_ has joined #nixos
<ottidmes> Hmm, I thought building custom NixOS LiveCD ISO was simple from what I read, it probably still is, but I keep getting attribute isoImage in selection path 'config.system.build.isoImage' not found, even though I am doing exactly what is mentioned in the manual
<hyper_ch> ottidmes: it is simple
<hyper_ch> pastebin your nix
<ottidmes> pcarrier: I am new to UEFI, but that was indeed what was the most straight forward for me: systemd-boot
<hyper_ch> bios -> /boot partition and it just works :)
<hyper_ch> I hate all that U/EFI garbage
<pcarrier> Well right now my uefi doesn't have any entries
<adisbladis> hyper_ch: systemd-boot is pretty much as easy and requires no bios emulation
<pcarrier> So it can't boot
<ottidmes> hyper_ch: Well, I just tried to get it to work with the defaults, so I am in my nixpkgs/nixos folder, and trying to build: nix-build -A config.system.build.isoImage -I nixos-config=modules/installer/cd-dvd/installation-cd-minimal.nix
<hyper_ch> just set mainboard to legacy/csm and it works like it did 20 years ago :)
Neo-- has joined #nixos
<pcarrier> And to have it create the efi boot variable entries what do I need to mount?
<adisbladis> hyper_ch: My most recent motherboards does not not support that
<pcarrier> Sorry on my phone now cause yay
<adisbladis> pcarrier: Just create the efi boort partition per the manual, set up mounts etc
<adisbladis> No need to create anything in that file system manually
<pcarrier> adisbladis: well I cannot boot right now
<ixxie> Dear Nixizens, today we are having a hackathon on the NixOS community wiki; if you would like to help out, have a look at https://github.com/nixos-users/wiki/issues/12 and
<hyper_ch> ottidmes: put that into a .nix file and store it somewhere https://paste.simplylinux.ch/view/raw/2edcb5cd
<pcarrier> My uefi doesn't have any boot entries
nuncanada has joined #nixos
<hyper_ch> ottidmes: then run: nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=XXXXXXX.nix
<pcarrier> Oh sys firmware efi efivars I need
<hyper_ch> where you replace XXXXXXXX.nix with the name of the .nix file you created
<ixxie> we need help from people know about Hydra, Nixpkgs and NixOps in particular, some come share the knowledge; we are over at #nixos-wiki if you wanna help ^^
Wizek_ has joined #nixos
<joepie91> yeah, so, the wine package in nixpkgs is definitely broken.,..
asymmetric has joined #nixos
<hyper_ch> adisbladis: so with zfs and U/EFI, can you just dedicate a whole block device to zpool without requiring a bios_boot partition or what that one is called in U/EFI?
<ottidmes> hyper_ch: Ran nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=/wheel/proj/nixcfg2/phoenix/build/iso.nix
<ottidmes> hyper_ch: Got error: attribute ‘isoImage’ in selection path ‘config.system.build.isoImage’ not found
<hyper_ch> ottidmes: no idea what that iso.nix is
<ottidmes> hyper_ch: The file you linked to
<hyper_ch> interesting
<ottidmes> That is one way of putting it :P
<hyper_ch> you're just doing it wrong :)
justan0theruser has joined #nixos
toppler has quit [(Remote host closed the connection)]
<asymmetric> hi all, i have a problem: every time i open a new terminal, i get this warning:
<asymmetric> Warning: $PATH entry "/nix/store/zhhb02yrp03xzfrpk06ixb0gmwrjmjff-coreutils-8.25/bin/" is not valid (No such file or directory)
<ottidmes> hyper_ch: Obviously, I just hope to figure out, what I am doing wrong ;)
<hyper_ch> ottidmes: "it" ;)
<ottidmes> hyper_ch: Anything but it!
<hyper_ch> it should work
<hyper_ch> ottidmes: you do use nixos, right?
<pcarrier> alrighty, back online
<hyper_ch> it should just work
<pcarrier> well, looks like this setup can survive anything reasonably well :)
<asymmetric> how can i debug this situation?
<ottidmes> hyper_ch: Yeah, I am running NixOS, stable 17.09, updated yesterday, maybe it is my NIX_PATH intervering, will try to unset nixpkgs-config within it, see if that helps
toppler has joined #nixos
miko__ has joined #nixos
<ottidmes> hyper_ch: Found it! NIXOS_CONFIG intervers
<hyper_ch> ottidmes: :)
<joepie91> asymmetric: what does your PATH contain? (`echo $PATH`)
<hyper_ch> ottidmes: btw, do you have a need to also write custom files to the ISO?
<asymmetric> joepie91: ok, get ready ;)
<asymmetric> /home/asymmetric/.yarn/bin /home/asymmetric/.rbenv/shims /home/asymmetric/.rbenv/bin /home/asymmetric/.nix-profile/bin /home/asymmetric/.local/bin /home/asymmetric/bin /home/asymmetric/code/go/bin /home/asymmetric/.gimme/versions/go1.7.linux.amd64/bin /home/asymmetric/code/kubernetes/third_party/etcd /home/asymmetric/.cargo/bin /home/asymmetric/.fzf/bin /home/asymmetric/.yarn/bin /home/asymmetric/.rbenv/shims
<asymmetric> /home/asymmetric/.rbenv/bin /home/asymmetric/.nix-profile/bin /home/asymmetric/.local/bin /home/asymmetric/bin /home/asymmetric/code/go/bin /home/asymmetric/.gimme/versions/go1.7.linux.amd64/bin /home/asymmetric/code/kubernetes/third_party/etcd /home/asymmetric/.cargo/bin /home/asymmetric/.yarn/bin /home/asymmetric/.rbenv/bin /home/asymmetric/.nix-profile/bin /home/asymmetric/.local/bin /home/asymmetric/bin
<asymmetric> /home/asymmetric/code/go/bin /home/asymmetric/.gimme/versions/go1.7.linux.amd64/bin /home/asymmetric/code/kubernetes/third_party/etcd /home/asymmetric/.cargo/bin /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /usr/games /usr/local/games
<hyper_ch> asymmetric: use a pastebin
<asymmetric> sorry
<asymmetric> (i have a loop somewhere in my shell init code, lots of repeated paths, but that's not the problem right now)
<joepie91> asymmetric: ah, hm, this is on non-NixOS?
<ottidmes> hyper_ch: I do, I thought about just writing them using some startup scripts, since they will be just simple files, do you have a better solution?
<hyper_ch> ottidmes: yes, someone in here give me a nix expression to add files... here's the expression: https://github.com/sjau/nix-expressions/blob/master/customIsoFiles/files.nix
<hyper_ch> ottidmes: how I include it in the iso.nix https://github.com/sjau/nix-expressions/blob/master/customIso.nix#L8
jmc_fr has joined #nixos
<asymmetric> joepie91: yes, the output of `nix-shell -p nix-info --run nix-info` is:
<asymmetric> system: "x86_64-linux", multi-user?: no, version: nix-env (Nix) 1.11.15, channels(asymmetric): "nixpkgs-18.03pre121094.9c048f4fb6", nixpkgs: /home/asymmetric/.nix-defexpr/channels/nixpkgs
<joepie91> asymmetric: right, okay. can you check whether your .bashrc (or equivalent) contains hardcoded /nix/store paths?
<hyper_ch> ottidmes: here are the actual included files: https://github.com/sjau/nix-expressions/tree/master/customIsoFiles
<ottidmes> hyper_ch: Thanks a lot! That is way nicer than the solution I have been using so far :)
<hyper_ch> I didn't write that files.nix
<hyper_ch> it was ttruegel
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vFhM7
<NixOS_GitHub> nixpkgs/master 147d395 Vladimír Čunát: thunderbird: don't force-enable the sandbox...
NixOS_GitHub has left #nixos []
<hyper_ch> but some time I need to update the included files
<hyper_ch> I've become smarter about zfs and the whole setup process ;)
agjacome has joined #nixos
<ottidmes> hyper_ch: But you were the one making me aware of it, so thanks for that
<ottidmes> hyper_ch: Haha, so I should not be basing my setup on these files?
<hyper_ch> basically I aim to have a "root install" that just formats the disk, sets up zfs and installs a basic configuration to have the system up and running "installZFS" and then once it's booted, use min_conf.nix as starting point for the rest
<hyper_ch> ottidmes: those are just examples for what I've used it
<hyper_ch> also I use it to get my .tmux.conf onto the iso ;)
<hyper_ch> it's just examples how I use it... feel free to alter them or add your own files
ssmike has joined #nixos
<asymmetric> joepie91: yeah, good catch. i have a hand-written translation of nix-profile.sh for fish
<ottidmes> Thanks, I see what I can integrate in my own configs, I always love finding new useful config snippets
<hyper_ch> ottidmes: includeing that files.nix into your iso.nix just allows conveniently to add stuff
<hyper_ch> ottidmes: but the really cool people use clever's kexec anyway ;)
<asymmetric> i seem to have hardcoded a version of coreutils
<asymmetric> `set -xg PATH /nix/store/zhhb02yrp03xzfrpk06ixb0gmwrjmjff-coreutils-8.25/bin/`
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor pushed 4 new commits to release-17.09: https://git.io/vFhDU
<NixOS_GitHub> nixpkgs/release-17.09 d29f871 Kjetil Orbekk: munin: 2.0.33 -> 2.0.34...
<NixOS_GitHub> nixpkgs/release-17.09 586e2aa Kjetil Orbekk: munin-node: add patch to preserve environment variables...
<NixOS_GitHub> nixpkgs/release-17.09 feb2733 Kjetil Orbekk: munin-node: patch to configure plugin-conf.d...
NixOS_GitHub has left #nixos []
<hyper_ch> ottidmes: clever's kexec: build it on your machine and add some stuff, copy it then to a linux server, run it... it will reboot server and start nixos in ramfs which allows you then to do the actual nixos install
<asymmetric> joepie91: how is this kept up-to-date in nix? https://github.com/NixOS/nix/blob/master/scripts/nix-profile.sh.in#L3
<hyper_ch> ottidmes: and my "installZFS" is largely built on clever's justdoit.nix - https://github.com/cleverca22/nix-tests/blob/master/kexec/justdoit.nix
<asymmetric> i.e. when a new version of coreutils is present, how is the actual path updated?
<asymmetric> in the resulting nix-profile.sh
<hyper_ch> sphalerite: online?
<joepie91> asymmetric: unsure, part of a system rebuild on NixOS I suspect
jmc_fr has quit [(Ping timeout: 268 seconds)]
<avn> boo. purescript again broken in master?
tgunb has joined #nixos
<sphalerite> hyper_ch: always :p
ssmike has quit [(Ping timeout: 268 seconds)]
<hyper_ch> sphalerite: did you write the howto on clever's kexec?
<sphalerite> hyper_ch: no, which howto?
<hyper_ch> sphalerite: someone wrote a howto or rather some notes for themselves
<hyper_ch> sphalerite: I thought it was you
<sphalerite> Nope
<hyper_ch> but since you keep insisting/deyning that it wasn't you, I'm inclined to believe you
<sphalerite> Lol
<hyper_ch> sphalerite: infinisil is another likely candidate who could have done so
<hyper_ch> yep, was him
erictapen has joined #nixos
<hyper_ch> https://github.com/Infinisil/guides/blob/master/DO-ZFS-NixOS.org --> I wonder if we should copy that to the nixos wiki
<hyper_ch> s/copy/adjust and put/
MP2E has quit [(Remote host closed the connection)]
deepfire has joined #nixos
miko__ has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #31048: Fix some but not all errors in owncloud (master...fix-owncloud) https://git.io/vFYZ8
NixOS_GitHub has left #nixos []
<CrazedProgrammer> hyper_ch: that would fit right into the wiki :)
miko__ has joined #nixos
<hyper_ch> still need infinisil permission
<pmeunier> Hi! Has anyone run a GCE instance on NixOps using local disks?
<hyper_ch> CrazedProgrammer: its a nice way to get nixos deployed on a remote server
mbrgm_ has joined #nixos
Neo-- has quit [(Ping timeout: 250 seconds)]
mbrgm has quit [(Ping timeout: 248 seconds)]
mbrgm_ is now known as mbrgm
<ottidmes> adisbladis: hyper_ch: I can confirm, no more spamming of that error message due to Ryzen once I created a LiveCD with kernel 4.13
<hyper_ch> ottidmes: wohoo, so livecd works :) yey
<hyper_ch> btw, if oyu took my nix, you'll need to adjust keyboard still to your preferences if you haven't done so
mahalel_ has quit [(Ping timeout: 252 seconds)]
<asymmetric> i'm trying to resurrect https://github.com/NixOS/nix/pull/1090, could someone post the contents of their ~/.nix-profile/etc/profile.d/nix.sh ?
<hyper_ch> I don't have that file
ssmike has joined #nixos
<ottidmes> hyper_ch: I just took the minimal CD and added the latest kernel, I only wanted to test if it was the kernel and nothing else that caused my problem, I will now write my custom config for real, trying to create an as easy installation procedure that I will be using in the future for all my machines. Thanks for all the help so far!
<hyper_ch> ottidmes: good luck
asuryawanshi has quit [(Remote host closed the connection)]
<asymmetric> hyper_ch: are you sourcing any nix-specific file in your ~/.bashrc, ~/.bash_profile, ~/.profile, ~/.bash_login?
<hyper_ch> asymmetric: no
<asymmetric> ok, then i have no idea how this works :)
<hyper_ch> asymmetric: I try to put everything into my global configuration.nix file
<asymmetric> but i thought that file was created during nix install
<asymmetric> which is itself called by https://github.com/NixOS/nix/blob/master/Makefile#L2
<hyper_ch> could be that I deleted that some time
Acou_Bass has joined #nixos
ssmike has quit [(Ping timeout: 260 seconds)]
mahalel_ has joined #nixos
<avn> Silly question, how I can restict one specific user (kid) to only local login (X11)?
<Yaniel> as opposed to ssh?
<avn> yes
<avn> machine visible from outside, and I believe that kid's password will be enought weak
<Yaniel> you could disable ssh logins with password entirely
<Yaniel> and only allow key-based ssh
<avn> well, it reasonable good idea ;)
<ToxicFrog> avn: in sshd_config: DenyUsers <name>
<hyper_ch> or get kid an own computer ;)
<maurer> Your other two options off the top of my head are either changing sshd config (as ToxicFrog said) or if you want to do this more generally for more services, consider pam_listfile
<ToxicFrog> You can also use Match User in combination with PasswordAuthentication no to turn off password login but not keypair login.
<avn> hyper_ch: well, in theory is a good idea. But take bit more money to invest (need one more switch in her room, and one more machine), so now she combined with router
asuryawanshi has joined #nixos
<hyper_ch> :)
<avn> I found router-size barebone machine, with host capable wifi, 2 eth ports, and hdmi video output. I believe is a nice combination for couple years.
ssmike has joined #nixos
<avn> when she learn some more about computers, I think she will want some more personal (with some crap like windows or osx)
<hyper_ch> or customized nixos
<avn> yes, but I not hope on this too much ;)
<hyper_ch> :(
<hyper_ch> or maybe she just wants an iphone/samsung galaxy Sxx
<MichaelRaskin> Well, if you teach her to understand the logic behind what is possible to make computers do, using anything from Apple will become just painful.
<avn> yes, she wants everything and same time ;)
<hyper_ch> and don't forget the pony
<avn> we have a lot (plastic ones)
<hyper_ch> ah, you went the cheap route there ;)
<manveru> man... the nixos options type system is a little messed up :P
asuryawanshi has quit [(Remote host closed the connection)]
<avn> I am city guy, is hard to have real pony ;)
<joepie91> manveru: confirmed that a wineWow build works correctly
<joepie91> so the default is wrong somehow
<hyper_ch> avn: :)
<MichaelRaskin> Only a custom-3D-printed pony is feasible.
<manveru> joepie91: yeah... no clue why though?
<avn> joepie91: nice to know, that someone test it ;) I usually build/test 32bit only.
<joepie91> manveru: that's what I'm now working on figuring out :)
<joepie91> going to litter nixpkgs with trace calls and see what falls out
<manveru> :D
<avn> I push PR with wine .21 today later
<manveru> it's reasonably short, like 3-4 files deep
<joepie91> avn: oh no, that's going to mean a rebuild :(
<joepie91> although
<joepie91> avn: would it just be to master/unstable?
<joepie91> or also to release?
<avn> to master
<manveru> avn: i basically prevent password ssh login on all machines... did the same for my sons'
<avn> I not sure if polluting release with wine-staging update each two weeks is a good idea
<joepie91> avn: oh, you'll only be updating wine-staging?
<joepie91> not wine/wineUnstable?
<avn> joepie91: wineUnstable+staging, they should be updated at once by desing of our expression
<manveru> how about an automatically tracking wine overlay?
<joepie91> manveru: well, one of the reasons I'm trying to figure out this problem, is because I want to set up a PlayOnLinux-esque overlay
<joepie91> with historical WINE versions and all that
<joepie91> and patches, etc.
<manveru> that'd be neat
<avn> joepie91: can make sense
<joepie91> ideally also software-specific expressions
mariav has joined #nixos
<joepie91> to essentially replace playonlinux
<joepie91> (which is broken anyway in nixpkgs...)
<manveru> playonlinux never ever works for me :P
<joepie91> manveru: opengl library error dialog I'm guessing?
<manveru> more like, the wine versions it downloads aren't binary compatible
<manveru> and i'm too lazy to patchelf them
<joepie91> ah, hm. that's a bit odd
<joepie91> why would somebody package playonlinux and then not test its primary functionality...?
<mariav> Hi, I'm trying to compile some C++ code on NixOS with clang, but it doesn't find the standard headers (like <algorithm>)...
bennofs has joined #nixos
<joepie91> anyway :P
<mariav> Does anyone know where they get installed, so I can add them to my include path?
<joepie91> it should not be needed anyway with a proper WINE overlay
<manveru> exactly
<manveru> i'd be happy to contribute various game configs when you make it reasonably easy to :)
<joepie91> :)
<joepie91> manveru: I'll likely be taking a similar approach to what PlayOnLinux does, by providing library functions for common requirements/steps
<manveru> still got a couple hundred windows only games on steam/gog
<joepie91> though in Nix, not Bash
mkoenig has quit [(Remote host closed the connection)]
<joepie91> manveru: the real challenge is handling sources, to be honest
<avn> joepie91: btw would be nice, if you incorporate my little expression overriding, to build with determined version of mesa as well
<joepie91> it's a little iffy right now, because 1) nix-store *really* is not designed to handle large files, 2) you must keep a copy of the source around in the store (either that, or re-provide it on every system rebuild), which means a lot of extra disk use for large games
<joepie91> so there's a good chance that at least initially, large games will not work well
<manveru> well, you wouldn't put the game itself in the store
<manveru> just the wine runtime, right?
Acou_Bass has quit [(Remote host closed the connection)]
<manveru> i don't think immutable wine prefix works well either
<joepie91> that depends; I'd prefer packaging the game itself in the store much like native Linux software, where possible
<avn> wine runtime, and may be some support scripts/dlls, etc
<joepie91> wineprefix can't be in store, correcft
<joepie91> correct*
<joepie91> I need to look into the details of this a bit more
<avn> joepie91: can, but with a lot of dances
<joepie91> I don't really want to keep piles of software lingering around in ~/.wine-whatever, that kind of defeats the point of Nix
<joepie91> :p
<avn> I use readonly base prefix via {unionfs,bindfs}-fuse
<joepie91> but it may or may not be viable to do otherwise
<avn> but it was not for games, I implement some sort of docker-like for some win32 app
<joepie91> avn: does that work for WINE-run software generally, or just the specific software you were working with?
<avn> joepie91: it developed for 2 specific apps, but can be generalized (in theory)
<joepie91> also
<joepie91> [14:55] <avn> joepie91: btw would be nice, if you incorporate my little expression overriding, to build with determined version of mesa as well
<joepie91> what is this referring to exactly?
Maxdamantus has quit [(Ping timeout: 248 seconds)]
erictapen has quit [(Ping timeout: 240 seconds)]
Maxdamantus has joined #nixos
phreedom has quit [(Ping timeout: 248 seconds)]
ilyaigpetrov has joined #nixos
<joepie91> manveru: well, I've found the problem
<joepie91> this hard-defaults to wine32 for all WINE packages (since everything is based on base, and base is based on minimal) and totally ignores the system-dependent default in the WINE default.nix
<manveru> ouh
<joepie91> currently trying to git blame, but git does not like 20k line files :)
<joepie91> well, >20k
<manveru> so you have to change config.wine.build
<vcunat> you can blame ranges
<vcunat> -L 123,127
phreedom has joined #nixos
Acou_Bass has joined #nixos
<manveru> it's from eelco :D
<vcunat> (it's much much faster for all-packages)
<manveru> `make "nxi-env -i wine" work again`
<joepie91> manveru: well, you have to change config.wine.build to work around it, but this is just a bug
<manveru> s/nxi/nix
<manveru> yeah
<joepie91> the default in all-packages just doesn't match that in the wine expression
<joepie91> :P
<manveru> pls fix
<manveru> kthxbai :D
<joepie91> yeah, thinking about how to do that :P
<joepie91> three options:
ssmike1 has joined #nixos
<joepie91> 1) make wineBuild required in WINE expression, move system detection logic to all-packages.nix; not great, breaks any third-party code that calls the WINE package directly
<joepie91> 2) duplicate system detection logic to all-packages.nix; also not great, duplication of logic is bad for all the usual reasons
<avn> joepie91: I don't like /run/opengl-runtime link, and build my `load-env-wine-gaming` with hardcoded load paths for specific mesa build
<joepie91> 3) make all-packages.nix pass in either config.wine.build or nothing and let the expression handle the default; unsure whether this is possible
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #32024: system-config-printer: fix python path (master...unstable-fix-gnome3-printing) https://git.io/vFh19
NixOS_GitHub has left #nixos []
<joepie91> (does Nix have an explicit null/undefined-ish type?)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to release-17.09: https://git.io/vFhHW
<NixOS_GitHub> nixpkgs/release-17.09 992dee0 Joerg Thalheim: system-config-printer: fix python path...
<NixOS_GitHub> nixpkgs/release-17.09 673c305 Jörg Thalheim: Merge pull request #32023 from andir/17.09-fix-gnome3-printing...
NixOS_GitHub has left #nixos []
<gchristensen> it has null?
ssmike1 has quit [(Remote host closed the connection)]
<joepie91> gchristensen: when passed into a callPackage call, would that trigger the default in the package?
<manveru> yes
<joepie91> avn: ah right, thanks
mudri[m] has joined #nixos
<manveru> `foo ? "bar"` checks if foo is null
ssmike has quit [(Ping timeout: 264 seconds)]
ssmike has joined #nixos
<avn> joepie91: actually that was written when some game works with mesa from master, but not from released one (it was 2 years ago)
<joepie91> manveru: hmm, seems not to work?
<joepie91> error: value is null while a string was expected, at /home/sven/projects/nixpkgs/pkgs/misc/emulators/wine/default.nix:46:7
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #32027: tracefilegen: 2015-11-14 -> 2017-05-13 (master...gcc-7-tracefilegen) https://git.io/vFhyV
NixOS_GitHub has left #nixos []
<joepie91> all-packages.nix now does `wineBuild = config.wine.build or null;`
<joepie91> can't leave out the `or null` or it'll complain about config.wine not existing
<manveru> oh, for config
<manveru> wonder where that's defined
<joepie91> only other approach for this I can immediately think of, is a conditional
<joepie91> which is a little... iffy
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #32026: kompose: init at 1.5.0 (master...kompose) https://git.io/vFhMg
NixOS_GitHub has left #nixos []
<manveru> pretty strange
<joepie91> right, so the real question here is "how do I conditionally include an attribute in an attribute set, in a readable way"
<manveru> i'd rather track down where this config.wine.build is specified
<manveru> doesn't seem to show up anywhere
<joepie91> manveru: it's likely just nixpkgs config
<joepie91> same place you specify browser plugins and such
<joepie91> config.nix or whatever it's called
<manveru> so it _must_ be a string?
<manveru> i mean, we could hack and use a "" instead of null
<manveru> it's just silly
<joepie91> manveru: then the default wouldn't work, hence "conditionally include an attribute"
<manveru> something like that?
<manveru> i mean, still clucky
<manveru> *clunky
<manveru> you'd have to do it twice
<joepie91> manveru: that's what I was hoping to avoid :(
<manveru> you lose the old defaults either way
<joepie91> manveru: how do you mean?
<manveru> well, it won't behave like the old minimal package anymore, because it'll default to wineWow for most now
<manveru> i guess somewhere people with 32bit machines still exist :)
<joepie91> manveru: it will still correctly default to wine32 for people with 32bit machines
<manveru> so i think for now... the easiest would be to just copy the defaults to all-packages
<joepie91> so it does change the behaviour for 64 bits
<joepie91> but not for 32
<manveru> yes
<joepie91> (and the 64 bits change is a bugfix; what it's doing right now is wrong)
<manveru> that's what i meant, it'll change the default for the majority
<joepie91> I don't see how that makes copying the defaults a good option, thougfh
<joepie91> though*
asuryawanshi has joined #nixos
<joepie91> that's just asking for reoccurrence of this problem
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] zimbatm pushed 2 new commits to mkShell: https://git.io/vFhQn
<NixOS_GitHub> nixpkgs/mkShell 7cedc84 zimbatm: WIP: mkShell doc
<NixOS_GitHub> nixpkgs/mkShell 912d6e1 zimbatm: fixups
NixOS_GitHub has left #nixos []
<joepie91> the whole bug is caused by defaults being specified in two places in the first place :P
<manveru> other option is moving the defaults to a let block in the wine/default.nix
<manveru> then we can handle null there
<joepie91> hmm...
<joepie91> hold on, going to try something with that
chaker has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] zimbatm force-pushed mkShell from 912d6e1 to db6136f: https://git.io/vFtHA
<NixOS_GitHub> nixpkgs/mkShell db6136f zimbatm: fixups
NixOS_GitHub has left #nixos []
<manveru> i was pretty sure the null wouldn't be taken as a value in function args :|
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #31994: freesweep: init at 1.0.1 (master...freesweep) https://git.io/vFxdF
NixOS_GitHub has left #nixos []
<chaker> Hey, I'm trying to add the deoplete-jedi plugin to vim using VAM. I was able to install other plugin (like fzf, surround..) However for deoplete-jedi it's doesn't work when I try to edit a Python file and I get the following erro
<chaker> [deoplete] Error when loading source jedi: Failed to start server (python -u /nix/store/1a4549sakplk91gyashcvs84ix0vm3xz-vimplugin-deoplete-jedi-2017-07-16/share/vim-plugins/deoplete-jedi/rplugin/python3/deoplete/sources/deoplete_jedi/server.py --desc-length 0 --debug --debug-level 0): Server exited with b'ImportError: No module named site\n': error: 1. Ignoring
asuryawanshi has quit [(Ping timeout: 250 seconds)]
jb55 has joined #nixos
mizu_no_oto has joined #nixos
ottidmes has quit [(Quit: WeeChat 1.9.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir opened pull request #32028: conky: fix compilation with gcc-7 (master...gcc-7-conky) https://git.io/vFh7t
NixOS_GitHub has left #nixos []
viaken has left #nixos ["WeeChat 1.8"]
pie_ has joined #nixos
Neo-- has joined #nixos
yorick has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #32028: conky: fix compilation with gcc-7 (master...gcc-7-conky) https://git.io/vFh7t
NixOS_GitHub has left #nixos []
JosW has joined #nixos
<steveeJ> does someone use a NixOS cluster for running VMs? something similar to Proxmox VE
<steveeJ> I'm tired of using ansible for setting up debian machines
<Acou_Bass> hey folks, im having a couple issues with a nixpkg ive made - it worked a LONG time ago for older versions of he software but for some reason now when i run the binary it seems to be looking in /tmn/nix-build for certain libraries which is causing the program to crash because the tmpdir is not there
<steveeJ> Acou_Bass: sounds like either RPATH or LD_LIBRARY_PATH is set to the builddir
<joepie91> steveeJ: I don't know about VMs, but LXC containers are already supported declaratively on NixOS; https://nixos.org/nixos/manual/index.html#sec-declarative-containers
<joepie91> steveeJ: and there's NixOps as well, though I don't think that does hypervisor-y things beyond VirtualBox and third-party services: https://nixos.org/nixops/
<steveeJ> joepie91: thanks, I'm aware of that though. I need VMs in this case
<joepie91> oh, and NixOS containers apparently
<joepie91> but yeah, I don't think there's declarative QEMU or such... yet?
<pcarrier> joepie91: qemu is stateless.
<symphorien> there is a rfc for that
<Acou_Bass> steveeJ: would this be usually the case...? i cant help but feel ive never set this hehe
<joepie91> symphorien: link?
<pcarrier> doesn't libvirtd basically do declarative containers?
<pcarrier> an VMs?
<joepie91> pcarrier: for a very flexible definition of "declarative", and an equally flexible definition of "does" :)
<pcarrier> joepie91: what's not declarative about XML files?
<joepie91> (my experiences with libvirtd have been, uh, less than stellar)
<joepie91> pcarrier: they just specify the machine config
<joepie91> nothing for the system that runs *on* it
<joepie91> so when your goal is a declarative NixOS VM cluster, libvirtd alone probably won't do what you want
<pcarrier> that seems like a separate concern to me
<pcarrier> not to say you can't do integration
<joepie91> sure
<joepie91> but the way the question was phrased, I expect it to require things beyond declarative machine config :P
<joepie91> plus integration into NixOS system management in a way similar to LXC containers
<joepie91> and aside from that, I've found libvirtd to be a nightmare to debug
<joepie91> it's great when it works, but when it doesn't, you're easily down for a few days trying to track down an obscure bug or misconfiguration
<joepie91> because of the totally unhelpful error/debug messages
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vFh5a
<NixOS_GitHub> nixpkgs/master 55344df Michal Rus: users-groups module: use `buildEnv` in per-user profiles...
<NixOS_GitHub> nixpkgs/master 3ea4934 Jörg Thalheim: Merge pull request #31283 from michalrus/per-user-profiles-buildEnv...
NixOS_GitHub has left #nixos []
<steveeJ> It might work to package the Proxmox packages for NixOS, after all it's just Linux
<joepie91> I mean, you could run Proxmox on NixOS, to a degree (I think it uses a nonstandard kernel?)
<joepie91> but it wouldn't integrate with anything else
chrishill has joined #nixos
jmc_fr has joined #nixos
patrl has joined #nixos
<steveeJ> joepie91: sounds tedious :-D I wasn't hoping for a out-of-the-box solution though, the question was out of curiosity
patrl has quit [(Client Quit)]
<zimbatm> if I remember correctly, Proxmox includes a sort of webmin that makes a lot of assumptions on config file placement and want read-write access to them
patrl has joined #nixos
jmc_fr has quit [(Ping timeout: 268 seconds)]
<zimbatm> ekleog: ^^ what is the status of the declarative VMs RFC actually?
<zimbatm> there might be a working implementation already steveeJ
<joepie91> symphorien: oops, overlooked your link, thanks
<joepie91> symphorien: I've actually replied to that thread! hah
nuncanada has quit [(Remote host closed the connection)]
nuncanada has joined #nixos
jb55 has quit [(Ping timeout: 240 seconds)]
ixxie has quit [(Ping timeout: 268 seconds)]
ssmike has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] corngood closed pull request #20454: WIP: mesa bleeding edge (master...amdgpu-bleeding-edge) https://git.io/vXDPf
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vFhd9
<NixOS_GitHub> nixpkgs/master 9e7b916 AndersonTorres: openmsx: init at git-2017-11-02
<NixOS_GitHub> nixpkgs/master f2a689b Jörg Thalheim: Merge pull request #31184 from AndersonTorres/upload/openmsx...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #31219: deja-dup: remove unneeded rpath wrapping (master...deja-dup-rpath) https://git.io/vFcN8
NixOS_GitHub has left #nixos []
m` has joined #nixos
civodul has joined #nixos
jb55 has joined #nixos
<m`> hi! anyone knows how I can fix this error I get inside an idris repl when tryin to compile a program: http://lpaste.net/360249
<aminechikhaoui> Hi folks, is it possible to override the nix pkg itself in configuration.nix ?
<aminechikhaoui> something like:
<aminechikhaoui> + nixpkgs.config.packageOverrides = pkgs: {
<aminechikhaoui> + nixUnstable = pkgs.nixUnstable.override {
<aminechikhaoui> + suffix = "pre5774_549c370";
<aminechikhaoui> + src = pkgs.lib.fetchFromGitHub {
<aminechikhaoui> + owner = "NixOS";
<aminechikhaoui> + repo = "nix";
<aminechikhaoui> + rev = "549c3706a5d63e10d908b43da8479331a844018f";
<aminechikhaoui> + sha256 = "299c4c31a8b0b8d84f90bb17baec12e94f2ec4952297373697c86e3ed1fb82a
<aminechikhaoui> 2";
<aminechikhaoui> + };
<aminechikhaoui> + };
<aminechikhaoui> + };
<aminechikhaoui> this currently doesn't evaluate so not sure if the override stuff works with nix pkg like in any other package
<clever> aminechikhaoui: you want to set the nix.package option
<aminechikhaoui> yeah that's done already
<aminechikhaoui> I have nix.package = pkgs.nixUnstable;
<clever> and what error does it fail with?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vFhFY
<NixOS_GitHub> nixpkgs/master a5c6bbd Renaud: lr: 1.1 → 1.2
<NixOS_GitHub> nixpkgs/master 55d2c1d Jörg Thalheim: Merge pull request #32029 from c0bw3b/pkg/lr...
NixOS_GitHub has left #nixos []
<aminechikhaoui> clever: error: anonymous function at /home/amine/src/nixpkgs-channels/pkgs/tools/package-management/nix/default.nix:1:1 called with unexpected argument 'suffix', at /home/amine/src/nixpkgs-channels/lib/customisation.nix:129:65
<aminechikhaoui> (use '--show-trace' to show detailed location information)
<clever> oh
<clever> you want overrideAttrs
<clever> not override
<aminechikhaoui> ah lemme try that
<aminechikhaoui> error: attempt to call something which is not a function but a set, at /home/amine/src/nixpkgs-channels/pkgs/stdenv/generic/make-derivation.nix:176:56
<aminechikhaoui> (use '--show-trace' to show detailed location information)
<aminechikhaoui> clever: hm, see ^
<aminechikhaoui> ah wait reading the docs now, seems I'm writing it in a wrong way
patrl has quit [(Quit: WeeChat 1.9.1)]
pie__ has joined #nixos
pie_ has quit [(Read error: Connection reset by peer)]
bennofs has quit [(Ping timeout: 258 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ilya-kolpakov opened pull request #32030: python-i3ipc: init at 1.3.0 (master...python-i3ipc) https://git.io/vFhFP
NixOS_GitHub has left #nixos []
<m`> how can I update all the packages I have installed on nixos?
<clever> m`: depends on if it was installed with nix-env or nixos-rebuild and systemPackages
<m`> they're installed via nixos-rebuild and declared in the configuration.nix
<clever> m`: then you just "nix-channel --update" and "nixos-rebuild switch" to upgrade everything
<m`> alright!
Maxdamantus has quit [(Ping timeout: 268 seconds)]
Maxdamantus has joined #nixos
<aminechikhaoui> clever: thanks for the help, got it to work ;)
m` has quit [(Ping timeout: 264 seconds)]
<hyper_ch> clever: why not nixos-rebuild switch --upgrade ? why seperate channel update and rebuild?
<clever> hyper_ch: that has the same effect
<clever> behind the scenes, --upgrade just calls nix-channel --update
<hyper_ch> but your way, you have to run 2 commands :)
pie_ has joined #nixos
pie__ has quit [(Ping timeout: 260 seconds)]
pxc has joined #nixos
pie_ has quit [(Read error: Connection reset by peer)]
pie__ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc opened pull request #32031: WIP: assorted aarch64 patches (master...unstable-aarch64) https://git.io/vFhbK
NixOS_GitHub has left #nixos []
asuryawanshi has joined #nixos
<Acou_Bass> alrighty ive been searching for the issue im having with this nixpkg build, and they all seem to point to setting pathelf to ignore /tmp in various different hacky ways... ive tried a couple and none seem to be working - anyone have any better recommendations? XD heres my default.nix without any of these patchelf hacks: https://gist.github.com/AcouBass/f959d6551b5b23fce75d9f86a7454e2d ive tried making an
<Acou_Bass> installPhase with patchelf --set-rpath $out/lib/ (for example) and a couple of other things like running rm -r src/ in a preFixup phase
<Acou_Bass> anyone have any other ideas on how i could quit this being an issue? XD
asuryawanshi has quit [(Ping timeout: 240 seconds)]
mizu_no_oto has quit [(Quit: ["Textual IRC Client: www.textualapp.com"])]
iyzsong-x has quit [(Ping timeout: 248 seconds)]
ssmike has joined #nixos
pxc has quit [(Remote host closed the connection)]
<Acou_Bass> ahhh nevermind! doesnt need any patchelf lines at all, needs a wrapper :D
ixxie has joined #nixos
jb55 has quit [(Ping timeout: 264 seconds)]
<chaker> Hey, I'm trying to add the deoplete-jedi plugin to vim using VAM. I was able to install other plugin (like fzf, surround..) However for deoplete-jedi it's doesn't work when I try to edit a Python file and I get the following erro
<chaker> [deoplete] Error when loading source jedi: Failed to start server (python -u /nix/store/1a4549sakplk91gyashcvs84ix0vm3xz-vimplugin-deoplete-jedi-2017-07-16/share/vim-plugins/deoplete-jedi/rplugin/python3/deoplete/sources/deoplete_jedi/server.py --desc-length 0 --debug --debug-level 0): Server exited with b'ImportError: No module named site\n': error: 1. Ignoring
FRidh has quit [(Quit: Konversation terminated!)]
<aminechikhaoui> Ã/whois chaker
<aminechikhaoui> oops
<aminechikhaoui> are you my colleague ? :D
<chaker> I think so :p
<chaker> I found the solution in the history of IRC I needed to add something like this myPython = pkgs.python27Full.buildEnv.override {extraLibs = [ pks.python27Packages.jedi ];} to my configuration.nix
<chaker> And now it works
jb55 has joined #nixos
agjacome has quit [(Read error: Connection reset by peer)]
JosW has quit [(Quit: Konversation terminated!)]
agjacome has joined #nixos
jb55 has quit [(Ping timeout: 248 seconds)]
mkoenig has joined #nixos
petsa has quit [(Ping timeout: 248 seconds)]
mbrgm_ has joined #nixos
mbrgm has quit [(Ping timeout: 240 seconds)]
mbrgm_ is now known as mbrgm
Myrl-saki has joined #nixos
<Myrl-saki> How do I get the source of a package?
<Myrl-saki> Aside from checking the source code.
<Myrl-saki> Also unpack it.
<symphorien> nix-build "<nixpkgs>" -A sl.src
vcunat has quit [(Quit: Leaving.)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] domenkozar pushed 2 new commits to release-17.09: https://git.io/vFhpF
<NixOS_GitHub> nixpkgs/release-17.09 815dc9d Kosyrev Serge: buildkite-agent: secrecy improvements: non-store, non-Nix provisioning of secrets
<NixOS_GitHub> nixpkgs/release-17.09 d6069f8 Kosyrev Serge: buildkite-agent: demotivate potential secrecy regressions through documentation...
NixOS_GitHub has left #nixos []
<Myrl-saki> symphorien: I didn't know there was a src. Thanks.
<Myrl-saki> symphorien: That produces a symlink to /nix/store/foo, right?
<symphorien> If you look at the definition of the derivation you will see "src = .... " This is this src that you build
yorick_ has joined #nixos
<symphorien> yes
<symphorien> the name src is purely a convention though
<Myrl-saki> Right. Thanks!
<ixxie> if a Nix user on Linux wants a stable channel, they user nixos-17.09 for example right? Because there seems to be nothing like nixpkgs-stable
mekeor has joined #nixos
<MichaelRaskin> ixxie: your stability wishes are most likely a subset of NixOS users' stability wishes, so yes.
mariav has quit [(Quit: mariav)]
mekeor has quit [(Ping timeout: 246 seconds)]
<lejonet> okay, so I've managed to conf myself into a really odd situation, I'm using SSSD to access LDAP-only users and such, and I can login with both LDAP-only users and local users just fine, over ssh, but from tty, not even root is allowed to login, all attempts, even when I know 100% that the password is correct, is unsuccessful
<lejonet> What did I screw up? xD
tmaekawa has joined #nixos
<sphalerite> pam?
<lejonet> Well, pam, for login, has account sufficient for both pam_unix.so and pam_sss.so :/
<lejonet> and for auth too
<sphalerite> idk was just a random guess really :p
mrkgnao has quit [(Ping timeout: 268 seconds)]
<ixxie> MichaelRaskin: yeah but the integration is not necessary for non-NixOS users, so in theory Nix users could get equivalent stability and more uptodate packages
<lejonet> sphalerite: :P your guess is as good as mine at this point
<lejonet> I have no idea why it is refusing local logins
<MichaelRaskin> release branches in Git already move quite slowly.
Wizek_ has quit [(Ping timeout: 248 seconds)]
<lejonet> I'm not even sure what log to look in for hints lol
qmm has quit [(Quit: leaving)]
qmm has joined #nixos
slack1256 has joined #nixos
<lejonet> okay, so I get "FAILED LOGIN (1) on /dev/tty1 FOR 'root', Permission Denied" atleast now I've got something to google lol
Wizek_ has joined #nixos
<lejonet> Hmm, could it be because I ain't got /etc/securetty at all perhaps?
Sonarpulse has joined #nixos
<Isorkin> How to configure zsh plugin - antigen - http://pastebin.ru/Y6RmN6fx - not normal work config. Error - -antigen-cache-generate:zcompile:54: can't write zwc file: /nix/store/...-antigen-2.2.1/share/antigen/antigen.zsh.zwc
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<ixxie> [Sorry for spamming but that's how marketing works]
<ixxie> Dear Nixizens, today we are having a hackathon on the NixOS community wiki; if you would like to help out, join us over at #nixos-wiki; we need help from people know about Hydra, Nixpkgs and NixOps in particular, some come share the knowledge!
tmaekawa has quit [(Quit: tmaekawa)]
miko__ has quit [(Ping timeout: 248 seconds)]
Arcaelyx has joined #nixos
<Myrl-saki> ixxie: Errr, I think it should be nixpkgs-17.09
<Myrl-saki> Wait.
<Myrl-saki> ixxie: Apparently, I'm confused.
<samueldr> please correct me if I'm wrong, but unstable nixos vs. nixpkgs, the difference is the test suite needed for the channel to advance, right?
<domenkozar> samueldr: see text at the top of http://howoldis.herokuapp.com/
<samueldr> so, pretty much that?
asuryawanshi has joined #nixos
asuryawanshi has quit [(Ping timeout: 248 seconds)]
<sphalerite> samueldr: yes
mahalel_ has quit [(Ping timeout: 252 seconds)]
Mateon3 has joined #nixos
Mateon1 has quit [(Ping timeout: 248 seconds)]
Mateon3 is now known as Mateon1
<Myrl-saki> Ugh
<Myrl-saki> Whoops, wrong channel. Sorry.
fragamus has joined #nixos
<hyper_ch> hmmm, is it possible to do the python tests *after* installation and not before?
chaker has quit [(Quit: WeeChat 1.9.1)]
petsa has joined #nixos
devrandomguy has joined #nixos
<aristid> oh man
<aristid> deleting the 33000 notification mails i got from the nixos/nixpkgs repo takes a long time
<aristid> under no circumstances click "Watch" on that repo! :)
hariel has joined #nixos
chrishill has quit [(Quit: Leaving)]
alhariel has quit [(Ping timeout: 255 seconds)]
Harpalus has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mbode opened pull request #32036: flink: init at 1.3.2 (master...flink-1_3_2) https://git.io/vFjfJ
NixOS_GitHub has left #nixos []
<hyper_ch> Ok, I think I narrowed it down. How can I make python test use utf-8?
slack1256 has quit [(Remote host closed the connection)]
<infinisil> Does anybody know what networking.interfaces.<name>.prefixLength really is and does?
Harpalus has quit [(Ping timeout: 240 seconds)]
<Dezgeg> it sets the netmask
<infinisil> Oh I think i get it, specifying it tells the interface that every ip within that mask should use that interface, right?
<ekleog> <zimbatm> ekleog: ^^ what is the status of the declarative VMs RFC actually? <-- I've got a working implementation for most of it https://github.com/NixOS/nixpkgs/compare/master...Ekleog:vms , though iirc I still needed to implement the part about keeping the same IP/MAC when adding/removing VMs, as currently they are assigned based on their index in the vms set (also poke steveeJ, if I read the backlog
<ekleog> around this hl correctly :))
<ekleog> I'd need to re-read through the RFC and the implementation though, as I haven't touched it for quite a bit of time now!
<hl> someone talks about a case where they were highlighted, using 'hl' to mean highlighted... and in doing so, highlights someone (me)... the irony
ssmike has quit [(Ping timeout: 248 seconds)]
amfl_ has joined #nixos
<ekleog> wah, I didn't even think someone'd use “hl” for a pseudo, sorry ^^'
amfl has quit [(Ping timeout: 248 seconds)]
<hl> s'fine, I get accidentially highlighted a fair bit, comes with the nick... honestly I was surprised nobody had registered this nick when I took it in ~2012
metaphysician has joined #nixos
ottidmes has joined #nixos
<BlessJah> I wonder how many hilights 'it' and 'is' gets everyday
<hl> Honestly most of the time it's just things like https://google.com/search?hl=en&q=foo
<hl> I should probably find a way to tell weechat to ignore stuff like that.
<ottidmes> What do people using LUKS and ZFS do to encrypt their swap? I have been using LVM on LUKS and having swap be a LVM volume in the past, are there better solutions?
<ottidmes> I could probably also just encrypt it on its own and use a password file located on my encrypted ZFS file system once it unlocks
<hl> The latter sounds good to me.
devrandomguy has quit [(Ping timeout: 240 seconds)]
<ottidmes> I will try that then, seems a bit overkill to use LVM solely for that purpose
amfl_ is now known as amfl
davidak has joined #nixos
<infinisil> ottidmes: Well i heard it works for some people to use a zvol for swap, even though it supposedly causes problems
bennofs has joined #nixos
tgunb has quit [(Ping timeout: 240 seconds)]
devrandomguy has joined #nixos
ssmike has joined #nixos
Neo--- has joined #nixos
Neo-- has quit [(Ping timeout: 258 seconds)]
<clever> infinisil: i tried zvol swap 2 days ago, the machine locked up solid
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mbode opened pull request #32039: docker-machine: 0.12.2 -> 0.13.0 (master...docker-machine_0_13_0) https://git.io/vFjUR
NixOS_GitHub has left #nixos []
<ottidmes> I always prefer swap to be on its own partition, it should have the least potential for problems
<clever> same
<clever> but i made a mistake in the units when installing this laptop, 40mb swap, rather then 40gig
<ottidmes> 40G swap, why so much?
<clever> 32gig of ram, and i wanted to support hibernation
<clever> so 8gig to spare
<dhess`> 40mb :(
<clever> yeah
<dhess`> but like, I can remember when that would have been enough for RAM + 25% :D
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<ottidmes> For those amounts I always stick to the amount of memory, I never once had the situation where I would have memory + swap > max memory when I hibernate
<clever> ottidmes: i also do lvm on luks, then swap+zfs on lvm
<ottidmes> clever: Why LVM if you could also have swap on LUKS on its own, and then use an encryption key once you unlock ZFS?
<infinisil> clever: Oh damn :(
<infinisil> Well I won't even try zvol swap then
<clever> ottidmes: then you need to enter 2 passphrases at bootup, to unlock the zfs and swap
<ottidmes> clever: No, only one, I meant to say encryption file, so you unlock only your ZFS manually and use a key file located on ZFS to decrypt swap
<clever> ottidmes: hibernation probably wont like that
<clever> ottidmes: the rootfs must not be modified when resuming
<ottidmes> clever: Good point
ylwghst has joined #nixos
<clever> ive also had another idea that i havent tested yet
<ylwghst> Hi all
<clever> the laptop has an SD card reader
<clever> what if i add a secondary keyfile to the SD card, for automatic unlock when at home
<clever> so it just boots without any intervention
<clever> and i can just pop out the card when i need to lock it down more
<infinisil> oh nice
jsgrant_ has quit [(Ping timeout: 240 seconds)]
<ottidmes> clever: That is what I am doing, I have USB stick in the shape of a key that I attach to my keychain on which my key file is located
<clever> ottidmes: what i havent looked into yet, is having 2 options for unlock, and detecting it at bootup
<ottidmes> clever: I am doing that as well :P
<ottidmes> clever: If the key is present, it will use the key, if not, it will fallback on asking for a large key
<ylwghst> I need to change line 184: type = types.enum [ "glx" "xrender" ]; to type = types.enum [ "glx" "xrender" "xr_glx_hybrid" ]
<infinisil> man, now I don't know what do with my swap either. I will use encrypted ZFS in one partition, and another for swap, but I need encryption for swap too eh, and using luks additionally doesn't sound very nice
<clever> infinisil: nixos has a random luks option for swap, which just generates a random key every time you boot
<makefu> ylwghst: normally, no. but you could fork nixpkgs and use it as your own channel. another option is to copy the module description and import it in your configuration.nix
<clever> infinisil: but that cant handle hibernation
<dhess`> yeah luks for swap is really easy to configure.
<infinisil> clever: Hybernation would be nice though
<ylwghst> makefu: I will do it later I just need to make it work on my machine asap
<infinisil> I'm using luks for swap and zfs now, but having to use 2 encryption techs is what i don't like
mekeor has joined #nixos
* BlessJah wonder what's the use case for hibernation while s2ram is a thing
* infinisil checks out s2ram
<makefu> ylwghst: mhhh asap ... copy the contents of your nixpkgs channel into /root/nixpkgs
<infinisil> ah, SuspendToRAM
<infinisil> well s2ram needs power
<infinisil> hibernation doesn't
<ottidmes> dual boot mostly
<makefu> change it and run NIX_PATH=nixos-config=/etc/nixos/configuration.nix:nixpkgs=/root/nixpkgs nixos-rebuild switch
<BlessJah> ottidmes: valid point
<clever> that reminds me
<BlessJah> infinisil: are we talking about laptop or pc?
<clever> i once put a windows pc back together, after it being in pieces for 3 months
<clever> i turned it on, and discovered, it was in hibernation
<infinisil> BlessJah: laptop
<clever> it resumed anyways...
<infinisil> clever: Lol nice
<ylwghst> makefu: I see
<BlessJah> infinisil: then it has battery that can provide power during suspend
<makefu> ylwghst: (this is essentially option 1 ;)
<infinisil> BlessJah: That's the problem, the battery runs out eventually
<infinisil> And with my super shitty battery it's even more of a problem
<ottidmes> clever: Your point about the root file system not being allowed to be modified I understand, but using relatime or noatime, how is reading a file affecting the root file system? Thinking about it, it should work, I have used something of the sort in the past. Encrypt my USB stick/key and having to unlock that manually, then I check if it was unlocked, then use a partition on the USB stick that I dd as the key
<ottidmes> file for my root file system
<BlessJah> it'd take weeks unless the battery is dead anyway :>
<clever> ottidmes: you would need to ensure you do a read-only import of the pool to read the file without allowing journal recovery
<clever> ottidmes: and then switch to writable if your not resuming
<clever> and you have to read the swap to know that
<ottidmes> clever: But you could just have a third partition, with the sole purpose to act as key for the other, so you only have to unlock that partition on boot, right?
<ylwghst> makefu: good to know well i will rather stick with some shell session script for a while thank you anyway
<clever> ottidmes: yeah, i have seen one guide that had a dedicated key partition, without even a partition
<ylwghst> brb
mekeor has quit [(Ping timeout: 255 seconds)]
<clever> ottidmes: so you use the passphase to unlock a given partition, then the raw data inside that is used to decrypt 2 more
ylwghst has quit [(Quit: Lost terminal)]
<clever> ottidmes: but now you need 4 partitions, boot, key, root, swap
<gchristensen> is there a mkIf but which takes an else?
<ottidmes> clever: exactly
<infinisil> clever: That's what I'm doing currently
<makefu> ylwghst: in the mean time you could create a Pull Request for this change. at some point it will also land in your channel :)
<ottidmes> clever: How is that a problem?
<clever> ottidmes: just a bit anoying to waste an entire partition on something that simple
mbrgm has quit [(Ping timeout: 240 seconds)]
ylwghst has joined #nixos
<infinisil> clever: I mean, partitions don't cost you anything
mbrgm has joined #nixos
<ottidmes> clever: I have never tried it, so maybe it is not allowed, but can't you just keep some space at the beginning of your disk, without assigning it a partition, if you are still allowed to write to it, it is almost no different than having a file, at least in costs
<clever> ottidmes: thats what grub did with MBR drives
<clever> ottidmes: but GPT uses more space and doesnt allow that
asuryawanshi has joined #nixos
<clever> ottidmes: you could also put that key file onto /boot/
Ivanych has quit [(Ping timeout: 248 seconds)]
<infinisil> clever: But then you can't use luks for it i think, since luks encrypts/decrypts on a device level
<infinisil> or can it use files too?
<ottidmes> clever: I had not thought of that, you can just LUKS a file: https://elephly.net/posts/2013-10-01-dm-crypt.html
Ivanych has joined #nixos
asymmetric1 has joined #nixos
dan_b has joined #nixos
asuryawanshi has quit [(Ping timeout: 248 seconds)]
<ottidmes> infinisil: Apparently so, at least sort of, it will be a device file, see my link above
mekeor has joined #nixos
<clever> losetup can turn any file into a block device
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor pushed 6 new commits to release-17.09: https://git.io/vFjkq
<NixOS_GitHub> nixpkgs/release-17.09 1349aed Bjørn Forsman: Revert "system-config-printer: fix python path"...
<NixOS_GitHub> nixpkgs/release-17.09 cf9e258 James Earl Douglas: jenkins: 2.86 -> 2.87...
<NixOS_GitHub> nixpkgs/release-17.09 968bb2a James Earl Douglas: jenkins: 2.87 -> 2.88...
NixOS_GitHub has left #nixos []
asymmetric has quit [(Ping timeout: 240 seconds)]
<infinisil> ottidmes: Oh nice, so it transparently supports files and devices
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc pushed 1 new commit to unstable-aarch64: https://git.io/vFjkO
<NixOS_GitHub> nixpkgs/unstable-aarch64 0021da1 Graham Christensen: fixup kernelfile / kernelTarget
NixOS_GitHub has left #nixos []
<clever> ah yeah, looks like luks doesnt care if its a file or block
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc pushed 1 new commit to unstable-aarch64: https://git.io/vFjkn
<NixOS_GitHub> nixpkgs/unstable-aarch64 8c07b0d Graham Christensen: fixup kernelfile / kernelTarget
NixOS_GitHub has left #nixos []
<clever> ottidmes, infinisil: you will also want to use https://github.com/cleverca22/nixos-configs/blob/master/rescue_boot.nix
<clever> that lets you get a rescue env from grub at any time, so you can repair any boot problems
<clever> but it costs about 300mb on /boot
<gchristensen> clever: https://github.com/NixOS/nixpkgs/pull/32031/files#diff-49bce3273cd2f4a848ae1e585293a207R27 do I need mkIf here to prevent infinite recursion?
<infinisil> So I'm probably gonna do this partition layout: | /boot with key1 | luks swap with key1 encrypted | zfs native encrypted with key1 |
<manveru> clever: what did you do about "unspecified" type in nixos config?
<infinisil> clever: I'll just use an external USB with nixos on it if i need to rescue something
<clever> gchristensen: is it actually giving infinite recursion the way it is now?
<gchristensen> I don't know, but is it possible it would?
<clever> gchristensen: i dont think it will cause recursion in that case
<gchristensen> systemPackages shouldn't cause changes to pkgs, yeah?
<clever> gchristensen: pkgs doesnt depend on systemPackages, so it should be safe
<manveru> i just counted the number of "types" we have, and it's between 60-170, depending on how you count those `one of "a", "b", "c"` types...
<clever> gchristensen: a bigger problem is if the imports value depends on other config
<gchristensen> makes sense
<infinisil> There needs to be a tool to visualize dependency cycles in a nixos configuration
<clever> infinisil: lazy evaluation allows for some really wonky things that id never get in another language
<clever> infinisil: basically, nix will iterate over every module (reading the imports in each), and then merge the .config and .options of each, then pass that config and options as an argument to every module
<clever> so they get their own return value as an argument
<infinisil> clever: All other lazy languages? e.g. haskell
<clever> infinisil: i dont think you can give a function its own return value as an argument
<infinisil> clever: fix is essentially that
<clever> havent looked into that function yet
<infinisil> clever: And loeb/moeb is essentially the nixos module system, initially saw them presented in haskell: https://github.com/quchen/articles/blob/master/loeb-moeb.md
<clever> infinisil: i think part of what lets it work in nix, is that the module system can know the keys, without knowing the values, and that lets it route the request to the right module
<manveru> well, after spending way too much time trying to come up with a type system that can represent the nixos config in elm... but it's hard if it's more or less random :P
<manveru> i'm probably gonna have to represent most of the things as strings...
<manveru> but it's probably worth fixing at least the biggest issues :)
<infinisil> manveru: Is elm lazy and functional?
<benley> anyone know what the correct way is to get DISPLAY and XAUTHORITY and whatever other related stuff set in the environment for systemd user units?
<manveru> infinisil: yeah
<manveru> but it's type system is a weaker version of haskell
<infinisil> manveru: And what do you mean exactly by represent the module system? to have an equivalent in elm?
<clever> benley: nixos only supports one display at :0, so you can just assume its value is always :0
<manveru> infinisil: i wanna make an config editor for the nixos installer
<clever> benley: and XAUTHORITY is always in $HOME
<benley> clever: that sounds hacky but yeah it will probably work.
<infinisil> manveru: Oh.. So an AST editor?
<infinisil> manveru: Or just basic stuff
<clever> manveru: id prefer to have full AST rather then just strings, because the user may have if statements in the configuration.nix
jsgrant_ has joined #nixos
<manveru> then i'd have to make a damn parser for nix ...
mekeor has quit [(Ping timeout: 248 seconds)]
<infinisil> anything else is just not gonna work well :P
<manveru> i'm using this atm to get the options like for the docs
<benley> oh hm, maybe I just need to make sure that the units where I want DISPLAY to be set are started as part of graphical-session.target
<dan_b> is there anything in guix that would help parsing nix language? or do they only share the store and nothing else?
<benley> that seems to be how redshift does it
<benley> dan_b: they just share the store iirc
<manveru> and that's part of the json parser turning it into elm types
<manveru> atm only for default/example
katona has quit [(Quit: Connection closed for inactivity)]
<benley> what language are you working in where you need a nix parser?
MP2E has joined #nixos
<manveru> it's just that i don't want to do this for 70 "types"...
<manveru> benley: atm i'm using go and elm
<clever> manveru: also, some types support merge (lines and such), and others dont (bool, int)
<manveru> yeah
<infinisil> manveru: Would this support functions as option values?
<manveru> infinisil: no
<manveru> it's for initial config of a nixos machine, not for doing fancy nix stuff :)
<manveru> so it should be able to set things like services.xserver.enable = true, or select a list of software packages
<manveru> nothing too dynamic
<infinisil> I see
<manveru> so i think i can scrape by without a parser
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ck3d opened pull request #32041: libftdi1: 1.3 -> 1.4 (master...libftdi1-1.4) https://git.io/vFjkd
NixOS_GitHub has left #nixos []
<manveru> just need to make my json parser smarter...
jsgrant_ has quit [(Remote host closed the connection)]
<manveru> or the json output dumber
jsgrant_ has joined #nixos
ma27 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ck3d opened pull request #32042: lirc: 0.9.4 -> 0.9.4d + more driver (master...lirc-0.9.4d) https://git.io/vFjIq
NixOS_GitHub has left #nixos []
<pie__> what was the name of the nix pip tool? py2nix or something?
<ixxie> pypi2nix I think
Neo---- has joined #nixos
ixxie has quit [(Quit: Lost terminal)]
<pie__> ugh that needs me to figure out how to make a requirements.txt
<pie__> ok, x/y problem, i actually want to install thish ttps://pypi.python.org/pypi/pygraphml
Neo--- has quit [(Ping timeout: 240 seconds)]
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
wolfcub has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ck3d opened pull request #32044: system wide pulseaudio: allow non-root access (master...fix-non-root-system-wide-pulseaudio) https://git.io/vFjIo
NixOS_GitHub has left #nixos []
devrandomguy has quit [(Ping timeout: 258 seconds)]
elurin has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
hariel has quit [(Ping timeout: 248 seconds)]
<pie__> apparnetly pypi2nix has a -e flag that isnt listed in --help
<pie__> either that or im blind
wolfcub has quit [(Max SendQ exceeded)]
<snajpa> question - why doesn't virtmanager depend on gnome3.dconf? it needs it for storing configuration, otherwise it forgets everything instantly (even those check-boxes with don't ask again)
<snajpa> should I file a ticket/send a patch?
<joepie91> am I missing something, or does the Hydra manual contain outdated instructions?
<tokudan[m]> what's the best way to send a mail from a daemon on nixos? is there some mailx wrapper or anything similar?
wolfcub has joined #nixos
ottidmes has quit [(Quit: WeeChat 1.9.1)]
ylwghst has quit [(Quit: Lost terminal)]
devrandomguy has joined #nixos
zraexy has quit [(Ping timeout: 260 seconds)]
hiratara has quit [(Ping timeout: 258 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ck3d opened pull request #32047: self adding to maintainer list, for upcomming pull request (master...maintainer-ck3d) https://git.io/vFjLu
NixOS_GitHub has left #nixos []
hiratara has joined #nixos
Neo-- has joined #nixos
asuryawanshi has joined #nixos
ylwghst has joined #nixos
Neo---- has quit [(Ping timeout: 258 seconds)]
jmc_fr has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vFjL7
<NixOS_GitHub> nixpkgs/master cbe3390 Josef Kemetmüller: eccodes: 2.2.0 -> 2.5.0
<NixOS_GitHub> nixpkgs/master fc303d2 Joachim F: Merge pull request #32032 from knedlsepp/upgrade-eccodes...
NixOS_GitHub has left #nixos []
<hyper_ch> domenkozar: you work a lot with python, right?
asuryawanshi has quit [(Ping timeout: 248 seconds)]
<jmc_fr> Hi. On my 2 weeks old nixos VM, how do I get locat working ? Mu configuration.nix has `services.locate.enable = true;' but the shell comman locate does not find anything
<clever> jmc_fr: the service will run update every day at 2:15 am i believe
<clever> jmc_fr: you can also "systemctl start updatedb.service" to force it to run
babyflakes has quit [(Quit: Connection closed for inactivity)]
<jmc_fr> clever: in a shell ? $ systemctl start upsatedb.service ?
<clever> yeah
<jmc_fr> clever: I get "== AUTHENTICATION COMPLETE ===
<jmc_fr> Failed to start upsatedb.service: Unit upsatedb.service not found."
<clever> it helps if update is spelled correctly
<jmc_fr> lol
<jmc_fr> clever: well ... "Failed to start updatedb.service: Unit updatedb.service not found."
<clever> ah, its called update-locatedb.service
<hyper_ch> hmmm, does anyon have scanned PDFs in different languages that don't have OCR yet?
tanonym has joined #nixos
Wizek_ has quit [(Ping timeout: 240 seconds)]
<jmc_fr> clever: seems to have run successfully, but no effect. When I try "$ locate my-file-whixh-exists-for-sure", no result
<clever> jmc_fr: it takes time to build the db
<jmc_fr> clever: you mean it still runs silently even when the shell got back to me ?
<clever> jmc_fr: check "ps aux | grep update" and see if its still running
<jmc_fr> clever: jmc 11666 0.0 0.1 119832 2008 pts/0 Ss+ 23:11 0:00 /run/current-system/sw/bin/grep update
<clever> its also possible that permissions wont let updatedb read in /home
dywedir has quit [(Ping timeout: 248 seconds)]
<clever> so it can only find files outside of home
ixmatus has joined #nixos
<jmc_fr> clever: "locate run" does return things. Good. But how to be sure for inside /home ?
<clever> changing the permissions on $HOME with chmod so that updatedb can read it
<jmc_fr> ok, going to try this. Any equivalent for configuration.nix ?
<clever> i dont think so
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ck3d opened pull request #32048: initial vdrsymbols font for VDR (master...vdrsymbols) https://git.io/vFjt9
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ck3d opened pull request #32049: initial TBS driver (master...tbs) https://git.io/vFjtd
NixOS_GitHub has left #nixos []
hiratara has quit [(Quit: ZNC - http://znc.in)]
<hyper_ch> where would you sort a cli-based pdf ocr tool to? pkgs/applications/office?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 1 new commit to master: https://git.io/vFjq0
<NixOS_GitHub> nixpkgs/master c97ea96 Orivej Desh: python.pkgs.bokeh: add myself to maintainers
NixOS_GitHub has left #nixos []
<jmc_fr> hyper_ch: seems ok to me. Are you preparing a new package ?
<hyper_ch> jmc_fr: yes, why?
<hyper_ch> it's 1 app + 4 python modules
hiratara has joined #nixos
<jmc_fr> I could be interested in an ocr tool ...
<hyper_ch> jmc_fr: I am intersted
<hyper_ch> it's cli based
<ylwghst> Well, if I override patches = [] with overrideAttrs It will completely override patch phase with the one I specify right? So it will not use patches specified in original derivation.
<makefu> hyper_ch: gocr is sorted into applications/graphics
<hyper_ch> makefu: thx
<makefu> python libraries are generally sorted into development/python-modules
<hyper_ch> makefu: I know about the modules
<hyper_ch> ocrmypdf is also python program, cli based
<hyper_ch> where is tesseract?
<petersjt014[m]> can someone halp pls? i cant boot
<hyper_ch> makefu: tesseract is in applications/graphics
<hyper_ch> then I'll use that
<petersjt014[m]> one sec while I try and take a pic of the screen
* petersjt014[m] uploaded an image: IMG_20171125_164249.jpg (352KB) <https://matrix.org/_matrix/media/v1/download/matrix.org/tzXLloRjvcyVkyeKviFBGUnv>
Wizek_ has joined #nixos
<petersjt014[m]> Similar messages keep appearing, and switching consoles/interaction is not possible
<petersjt014[m]> The graphical installer works fine too
<hyper_ch> petersjt014[m]: what cpu?
<makefu> hyper_ch: yep just put it there. the general idea is to put stuff with executables into <applications/somewhere> and stuff which only provides libraries into development/somewhere
Neo-- has quit [(Read error: Connection reset by peer)]
Neo--- has joined #nixos
jmc_fr has quit [(Ping timeout: 248 seconds)]
<hyper_ch> but why is it always a folder and then default.nix inside?
<petersjt014[m]> What do you mean? I haven't messed with the hardware configuration of that's related
<petersjt014[m]> *if
mahalel_ has joined #nixos
<makefu> you can do 'callPackage <application/some/path>' and it will call '<application/some/path/default.nix>' as default
<makefu> sometimes you also have patch files in this folder
Neo---- has joined #nixos
<hyper_ch> makefu: so, how do I test it locally? this far, I did do callPackage or rather callPython3Package for the modules that I needed to include and weren't packaged yet... I just removed those let xxx = call.... in .... lines and should work... but not 100% sure
<hyper_ch> or I just make a PR and hope for the best ;)
<makefu> after you added the package there you can add it into 'top-level/all-packages'
<hyper_ch> makefu: I have no idea what you just said
Neo--- has quit [(Ping timeout: 248 seconds)]
<hyper_ch> oh... what's that?
<makefu> step 1: put description of ocrmypdf into pkgs/applications/graphics/ocrmypdf/default.nix
<hyper_ch> description = "Adds an OCR text layer to scanned PDF files, allowing them to be searched or copy-pasted.";
<makefu> step 2: add a 'ocrmypdf = callPackage ../applications/graphics/ocrmypdf' into pkgs/top-level/all-packages.nix
<makefu> description -> nix expression :D
<hyper_ch> makefu: do I need to make that for the python modules as well?
<petersjt014[m]> Hmm..brb gonna do a bit o googling
<makefu> hyper_ch: this is a bit tricky but yeah, at first you will need to include the library into development/python-packages/libname/default.nix
petsa has quit [(Ping timeout: 248 seconds)]
<makefu> then add this to top-level/python-packages.nix in a similar fashion
<hyper_ch> makefu: yeah, I already did copy them over
<makefu> you can build the library like this: nix-build -A pkgs.python3Packages.libraryname
<hyper_ch> does applications in that all-packages.nix file not have sub categories?
<makefu> ummm what do you mean?
<hyper_ch> science has various sub categories
<hyper_ch> applications doesn't
<makefu> ah, yes this is somewhat unstructured for some reason or another
<tanonym> Discord is complaining about a corrupt installation and one of the fixes is to delete the data forlders. I can't find them in ~ are they stored elsewhere in the nix install?
<makefu> for building python application you can check out applications/audio/greg/default.nix
<makefu> it does something similar you want to achieve
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ma27 opened pull request #32051: statsd: restore support for {influx,librato,stackdriver} backends (master...statsd/add-plugins) https://git.io/vFjmE
NixOS_GitHub has left #nixos []
<hyper_ch> makefu: and the python one isn't sorted at all?
<makefu> yes
<hyper_ch> makefu: # Python packages that do not need to be available for each interpreter version do not belong in this packages set.
<hyper_ch> this only works on p3
<hyper_ch> so still put in there?
<makefu> yes sure, you can use 'disabled = isPy27;'
<hyper_ch> they all have with python3.pkgs in their nix file
<makefu> just remove this part and use disabled instead
<makefu> it is more clean
<makefu> but
<makefu> it seems it is the matter of taste
<makefu> there is applications/audio/dr14_tmeter/default.nix
<makefu> which also pins to py3k
<hyper_ch> I have no idea where to add those in the python nix file
<hyper_ch> this file is one huge mess
<makefu> put the new files at the bottom
<makefu> everybody just gave up
ylwghst has quit [(Remote host closed the connection)]
ixmatus has quit [(Ping timeout: 240 seconds)]
<hyper_ch> ok, done
<hyper_ch> how can I use not local nixpkgs clone with my changes to test if it works?
<petersjt014[m]> Huh. Okay new funtime problem.
<petersjt014[m]> Does anybody have an example of initialHashedPassword working? Even with a fixed salt whatever I set seems to be wrong
<infinisil> hyper_ch: what do you mean?
<hyper_ch> infinisil: well, I did now add all that stuff onto a local checkout of the fork on my computers
<hyper_ch> how can I know use those nixpkgs changes to test if thigns still build and work?
bennofs has quit [(Quit: WeeChat 1.9.1)]
<infinisil> petersjt014[m]: You can just look at `sudo getent shadow` and use a hash from there, these work for sure
jsgrant_ has quit [(Ping timeout: 268 seconds)]
tgunb has joined #nixos
<infinisil> hyper_ch: nix-build?
<hyper_ch> never used
<infinisil> hyper_ch: nix-build -A yourpackage
<hyper_ch> but how will it find all the dependencies that I created as well?
<infinisil> you changed everything in your local checkout right? Then nix-build -A package in the nixpkgs directory will use all the changes
<makefu> exactly
<makefu> the power of nix
<infinisil> I feel like we're misunderstanding hyper_ch
<tanonym> Discord still works without issue so the error message is just a glitch, but doesn't seem to impact function.
bennofs has joined #nixos
<hyper_ch> nix-build -A pkgs/applications/graphics/ocrmypdf/default.nix
<hyper_ch> error: attribute ‘pkgs/applications/graphics/ocrmypdf/default’ in selection path ‘pkgs/applications/graphics/ocrmypdf/default.nix’ not found
<hyper_ch> doesn't work
<infinisil> hyper_ch: Did you add your package to all-packages.nix?
<hyper_ch> yes
<infinisil> hyper_ch: Then use the attribute there with nix-build -A
<hyper_ch> not sure what you mean
<infinisil> e.g. if you have `foo = callPackage pkgs/applications/graphics/ocrmypdf {}` then you can do `nix-build -A foo`
<hyper_ch> how would it even know where the all-packages.nix is
<infinisil> all-packages pretty much defines the top-level attributes
<hyper_ch> how does nix-build know where my all-packages.nix is
<infinisil> through default.nix in nixpkgs
<hyper_ch> how does nix-build know wher my default.nix is?
<infinisil> that's the default file it uses (therefore its name)
<hyper_ch> do I need to go to any directory
<hyper_ch> can I issue it from anywhere
<infinisil> yeah, you need to be in the nixpkgs directory
<hyper_ch> I am there, not working
<infinisil> what's the error?
<hyper_ch> nix-build -A pdfmyocr
<hyper_ch> error: attribute ‘pdfmyocr’ in selection path ‘pdfmyocr’ not found
<hyper_ch> my mistake
<hyper_ch> nix-build -A ocrmypdf
<hyper_ch> error: anonymous function at /home/hyper/Desktop/git-repos/nixpkgs/pkgs/applications/graphics/ocrmypdf/default.nix:1:1 called without required argument ‘pytest’, at /home/hyper/Desktop/git-repos/nixpkgs/lib/customisation.nix:74:12
<infinisil> hyper_ch: You probably have something like { pytest, ... } in your package file
<hyper_ch> infinisil: I have
<infinisil> you need to use { pythonPackages, ... } instead and refer to pytest via pythonPackages.pytest
<hyper_ch> why did it then work when I called that package directly from the configuration.nix?
<infinisil> hyper_ch: you probably had pythonPackages somewhere, because pytest isn't in the top-level
<hyper_ch> I have with python3.pkgs;
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar closed pull request #26015: Abiword 3.0.2 (master...abiword-3.0.2) https://git.io/vHLMY
NixOS_GitHub has left #nixos []
<hyper_ch> that's what I have on my testing maching
<infinisil> hyper_ch: pythonPackages is defined as python.pkgs :)
<hyper_ch> so now I removed the let ... in part because they should also be available in nixpkgs now
<hyper_ch> so why doesn't it work?
ylwghst has joined #nixos
<infinisil> hyper_ch: Did you add them to the argument list?
<hyper_ch> again: that pastebin is what I use on my test machine
<hyper_ch> now I forked nixpkgs
<hyper_ch> I added the stuff in the proper directories
<infinisil> hyper_ch: Can you just share the diff of your nixpkgs?
<hyper_ch> I let the .nix as they were, except I removed the let ... in part
<hyper_ch> why doesn't it work?
tanonym has quit [(Quit: Konversation terminated!)]
<hyper_ch> wrong one, one more back
<infinisil> hyper_ch: looking into it
nwspk has quit [(Ping timeout: 240 seconds)]
nwspk has joined #nixos
<hyper_ch> ok, removing it from { } helps
<hyper_ch> but next problem:
<hyper_ch> nix-build -A ocrmypdf
<hyper_ch> error: undefined variable ‘pytest-helpers-namespace’ at /home/hyper/Desktop/git-repos/nixpkgs/pkgs/applications/graphics/ocrmypdf/default.nix:33:64
<infinisil> hyper_ch: it's pytest_helpers_namespace
<hyper_ch> this pytest-helpers-namespace is a new module I also submit in this pr....
<hyper_ch> no, pytest_helpers_namespace is the filename as all the filenames are underscore in python as far as I've seen
<hyper_ch> the actual module name is pytest-helpers-namespace
jsgrant_ has joined #nixos
<infinisil> hyper_ch: but you called the attribute pytest_helpers_namespace
<hyper_ch> and what is the attriubute?
<infinisil> that's the attribute
<hyper_ch> what? where?
<infinisil> just replace pytest-helpers-namespace with pytest_helpers_namespace
<infinisil> it builds for me
<hyper_ch> where is it defined?
<infinisil> in your ocr file
<hyper_ch> pname = "pytest-helpers-namespace";
bennofs has quit [(Quit: WeeChat 1.9.1)]
<hyper_ch> where does nix get the variant with underscores from?
<hyper_ch> python-packages.nix... ok, fixed it there
<infinisil> hyper_ch: diff --git a/pkgs/applications/graphics/ocrmypdf/default.nix b/pkgs/applications/graphics/ocrmypdf/default.nixindex 3e2efe2f5ab..cf33e164b4f 100644--- a/pkgs/applications/graphics/ocrmypdf/default.nix+++ b/pkgs/applications/graphics/ocrmypdf/default.nix@@ -1,4 +1,4 @@-{ lib, fetchFromGitHub, python3, callPackage, pytest, unpaper, ghostscript, tesseract, qpdf, glibcLocales }:+{ lib, fetchFromGitHub,
<infinisil> python3, callPackage, unpaper, ghostscript, tesseract, qpdf, glibcLocales }:with python3.pkgs;@@ -30,10 +30,10 @@ buildPythonApplication rec {export LC_ALL=en_US.UTF-8'';- buildInputs = [ pytest pytest_xdist pytestcov setuptools_scm pytest-helpers-namespace pytestrunner glibcLocales ];+ buildInputs = [ pytest pytest_xdist pytestcov setuptools_scm pytest_helpers_namespace pytestrunner glibcLocales ];doCheck =
<infinisil> false;-+propagatedBuildInputs = [ruffuspillow
<infinisil> oh shit, sorry
<hyper_ch> next issue licence.... isn't it lgpl?
<hyper_ch> error: attribute ‘lgpl’ missing, at /home/hyper/Desktop/git-repos/nixpkgs/pkgs/development/python-modules/img2pdf/default.nix:23:15
<hyper_ch> (use ‘--show-trace’ to show detailed location information)
<infinisil> hyper_ch: look at nixpkgs/lib/licences.nix
<makefu> hyper_ch: you can always check lib/licenses.nix
<makefu> ah infinisil was faster :D
<hyper_ch> ok, seems to build now
<hyper_ch> with nix-build, will it also be directly be switch so that you can use it?
zraexy has joined #nixos
thc202 has quit [(Ping timeout: 248 seconds)]
<infinisil> hyper_ch: nix-build creates ./result in the current directory
<infinisil> and in ./result/bin are the binaries it built
<hyper_ch> ok, testing it on the pdf now
<infinisil> If you want to install it directly, you can do nix-env -if . -A ocrmypdf
davidak1 has joined #nixos
<hyper_ch> no necessar
<hyper_ch> y
<hyper_ch> seems to do ocr just fine at least I get feedback while it's still doing its thing
<hyper_ch> works
<davidak1> how can i open a port range in the firewall of NixOS? like ports 4000-4007
<infinisil> davidak1: networking.firewall.allowedTCPPortRanges = [ { from = 4000; to = 4007; } ];
<hyper_ch> infinisil: did you also build it?
<infinisil> networking.firewall.allowedTCPPorts = lib.range 4000 4007; would work too though
<infinisil> hyper_ch: I did not, just evaluated the nix side of it
<infinisil> hyper_ch: should i try it out?
<hyper_ch> no need, just not sure what all those pr checkboxes are
<hyper_ch> - [ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside [nixos/tests](https://github.com/NixOS/nixpkgs/blob/master/nixos/tests))
<davidak1> infinisil: it works. thank you very much!
<hyper_ch> and tested compilation of all pkgs that depend on this change....
<infinisil> hyper_ch: Yeah that doesn't really apply to packages, you can just ignore it
<infinisil> and since it's an addition this one alos does'nt apply
<hyper_ch> @sjau sjau requested a review from FRidh as a code owner just now
<infinisil> hyper_ch: that's an automated process when certain files change
<hyper_ch> that was the last missing piece on the new server at the office
<hyper_ch> and one less proprietary tool used
<infinisil> Nice :D you switched to NixOS for it?
<hyper_ch> if I had known that sooner, I'd have bugged FRidh a lot more ;)
<hyper_ch> no, server got stolen 3 weeks ago
<hyper_ch> so instead of using 3-disk mdadm raid1 -> luks/dm-crpyt -> debian + proxmox
ylwghst has quit [(Quit: Lost terminal)]
<hyper_ch> I re-setup with 3-disk native root encrypted 3-disk mirror zfs -> qemu/kvm
<hyper_ch> for OCR I used AbbyOCR4Linux before... worked great but couldn't get it to run on hte new nixos fileserver
ssmike has quit [(Ping timeout: 248 seconds)]
<hyper_ch> and then, a few days ago I discovered OCRmyPDF, setup a debian vm for testing and it worked great....
<hyper_ch> only port was missing for nixos
asuryawanshi has joined #nixos
<hyper_ch> also the dev of OCRmyPDF just told me how I can only auto-rotate pages and not do OCR :)
<hyper_ch> very nice
<infinisil> And that's how packages get added to nixpkgs :)
<hyper_ch> because there's some stuff where you don't need/want to ocr
<hyper_ch> well, still 58 tests fail on my package so I opted for doCheck = false;
<hyper_ch> but maybe the python gurus can fix that
<infinisil> that seems like a lot
<hyper_ch> there are 118 tests
ts__ has joined #nixos
<hyper_ch> well, is some weird stuff that fails
simukis has quit [(Ping timeout: 240 seconds)]