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)]
<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…
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?
<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?
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?
<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)]
<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>
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>
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
<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...
<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.
<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 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
<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
<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)
<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.
<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.
<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>
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
<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
<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 ;)
<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>
(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?
<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
<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
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
<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
<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)]
<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
<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
<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: 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?
<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)]
<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)]
<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
<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?
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>
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
<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>
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
<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 ...
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
<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]>
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
<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))]