<irctc719>
Hey all... I'm a relative n00b with nixos... Is this the best place to ask random questions, or is there some other community forum?
Itkovian has quit [(Quit: Textual IRC Client signing off)]
Itkovian has joined #nixos
<makefu>
irctc719: pretty sure this will be the best place. just keep in mind IRC help is always *best effort* and not a commercial helpdesk ;)
takle has quit [(Remote host closed the connection)]
<irctc719>
makefu: thanks... I'm just trying to orient myself. I used Gentoo for over a decade (even contributing), but haven't touched it in about 4 years (splitting between managed ubuntu and macos)
<irctc719>
and now I'm bootstrapping on an entirely new way to run my system
<makefu>
irctc719: well this is not too bad of a starting point :)
markus1199 has joined #nixos
<irctc719>
On macOS I was using boxen to manage certain parts of my user directory and I intend to port my config over to nixOS. If I've understood correctly, the only way to do so declaratively would be to store my user config as part of the system environment (either directly in configuration.nix or in an included file)
<irctc719>
is that right?
<Sonarpulse>
user directory management isn't really a thing at the moment
<Sonarpulse>
if you want to use nixos to do it
<Sonarpulse>
can probably hack something
<Sonarpulse>
but keep in mind this is system-wide management of user dirs, which seems...wrong
markus1189 has quit [(Ping timeout: 265 seconds)]
eacameron has joined #nixos
<irctc719>
Sonarpulse: I agree... for now I want to gt something working... and improve it over time. On the mailing list (I'm reading through nix-dev archives) I see an overlay proposal which looks like it would have the flexibility for what I want, so maybe sometime in the future
<Sonarpulse>
the overlay PR?
<Sonarpulse>
that is for extending nixpkgs itself
<Sonarpulse>
not .dotfiles and other things
<Sonarpulse>
unless this is an older thing
MarkusBarthlen has quit [(Read error: Connection reset by peer)]
<Sonarpulse>
irctc719: if this "boxen" works on linux too, I'd keep on using that for the time being
eacameron has quit [(Ping timeout: 248 seconds)]
<irctc719>
Sonarpulse: boxen is a macOS-specific package repository for puppet; I could probably install pupet, but that feels like overkill. As to the overlay, I was imagining creating my own expressions for dotfiles and allowing per-user expressions
<irctc719>
but I mean more than just dotfiles. I want to specify the creation of development environments that I'll be using with nix-shell
<mguentner>
irctc719: well, that you can do using ~/.nixpkgs/config.nix
<irctc719>
mguentner: ooh... that sounds promising
<Sonarpulse>
~/.nixpkgs/config.nix
<Sonarpulse>
yeah for per-user nix expressions
<Sonarpulse>
but need to manually run nix to build those expressions
<Sonarpulse>
than do something else impure to copy dotfiles into place etc.
ryanartecona has joined #nixos
<MichaelRaskin>
Claas: looks like it may be necessary to make sure X.org configuration uses «wacom» driver
<Sonarpulse>
irctc719: indeed yeah that would be great for dev environments for nix shell, unless those are stored with the project itself
<irctc719>
Sonarpulse: I actually don't want to copy dotfiles into place. I'd rather maintain symlinks into my permanent config
ryanartecona has quit [(Ping timeout: 258 seconds)]
astsmtl has quit [(Ping timeout: 260 seconds)]
<Sonarpulse>
irctc719: oh ok!
<Sonarpulse>
then yeah ~/.nixpkgs/config.nix is exactly what you want
pie__ has quit [(Ping timeout: 252 seconds)]
<irctc719>
Sonarpulse: ok... starting there I'm reading the nixpkgs manual
takle has joined #nixos
<irctc719>
along the lines of overlays... I'm currently subscribed to nixos-16.09... When I was using gentoo, there was something somewhat similar (with stable and unstable channels), but you could follow stable and choose to add one-off overrides to (for example) pull Meld out of unstable... Is there anything similar with nixos channels?
<MichaelRaskin>
You can build, install and even include in the systemPackages derivations evaluated from a checkoout regardless of the channels you use
astsmtl has joined #nixos
astsmtl has quit [(Changing host)]
astsmtl has joined #nixos
<irctc719>
MichaelRaskin: but wouldn't that mean continually tracking stable and manually merging fixes?
<MichaelRaskin>
No, but it could easily mean having two different versions of glibc installed
<MichaelRaskin>
Which is not a problem, anyway
<MichaelRaskin>
The packages from a checkout would be built independently of whatever you track for the most of the system
ryanartecona has joined #nixos
<irctc719>
MichaelRaskin: that makes sense from not polluting the system, but not from the point of view of managing the selection of packages. If I check out current unstable, and build the latest version of rxvt, for example, (since it contains a fix for foo), then the moment I need a fix for xterm, I have to update to the version of the repository which has that fix. Suddenly, my rxvt is no longer pegged to that version, but potentially br
<irctc719>
I could evaluate at that point whether to return rxvt to stable, but as the number of packages I depend on updates for drifts from stable, my management could become very difficult
<MichaelRaskin>
IRC cuts off at 255 bytes
<systemfault>
I thought it was 512... with the \r\n :(
<irctc719>
MichaelRaskin: oops... to make it short, I check out unstable and install rxvt, then 2 weeks later I need the latest xterm
Judson1 has quit [(Ping timeout: 268 seconds)]
<irctc719>
I will now either need to accept any further unstable changes to rxvt, or default back to stable
<MichaelRaskin>
Technically, you could build stuff from various checkouts
<irctc719>
or maybe even fork and merge specific changes to nixpkgs
<MichaelRaskin>
What was the latest upstream regression in urxvt, though…
<irctc719>
MichaelRaskin: oh... that's intersting... I could mirror one git repository over multiple checkout directories then
marusich has joined #nixos
<MichaelRaskin>
You could, although I would consider precisely that to be a management nightmare
<irctc719>
MichaelRaskin: sorry, just a random example, no actual problem. In my case, I wanted to install xpra, but there have been a number of bug fixes in unstable
<MichaelRaskin>
Also note that if you want a security fix for a dependency, you may be forced to update anyway
<irctc719>
I was also hoping to play with Wayland, which I understand is difficult even in unstable
<manveru>
heh, finally got a ruby derivation without rdoc at 19MB instead of 85 :)
<manveru>
plus made a new patchset for 2.4.0
<NixOS_GitHub>
[nixpkgs] mguentner opened pull request #21418: hydra: remove any patches from aws-sdk-cpp (master...hydra_aws_patch_fix) https://git.io/vMfyE
<simpson>
Finally got my Prometheus patches heading upstream. Yay?
cheshircat has joined #nixos
edvorg has joined #nixos
danielrf2 has joined #nixos
eacameron has joined #nixos
brodul has quit [(Ping timeout: 245 seconds)]
tg` has joined #nixos
edvorg has quit [(Ping timeout: 260 seconds)]
aj__ has joined #nixos
oleks_ has joined #nixos
fkz_ has joined #nixos
Khetzal_ has joined #nixos
Piece_Maker has joined #nixos
chris|- has joined #nixos
MinceR_ has joined #nixos
modulist1c has joined #nixos
AtnNn_ has joined #nixos
avalan has joined #nixos
ben_____ has joined #nixos
Chuck_Tetakel has joined #nixos
luigy_ has joined #nixos
brodul has joined #nixos
ncl28_ has joined #nixos
dtzWill_ has joined #nixos
raydeo has quit [(Ping timeout: 252 seconds)]
thomassgn has quit [(Ping timeout: 252 seconds)]
chris| has quit [(Ping timeout: 252 seconds)]
luigy has quit [(Ping timeout: 252 seconds)]
AtnNn has quit [(Ping timeout: 252 seconds)]
Acou_Bass has quit [(Ping timeout: 252 seconds)]
ben has quit [(Ping timeout: 252 seconds)]
dweller has quit [(Ping timeout: 252 seconds)]
realfake has quit [(Ping timeout: 252 seconds)]
tg has quit [(Ping timeout: 252 seconds)]
UgJkA has quit [(Ping timeout: 252 seconds)]
fractal has quit [(Ping timeout: 252 seconds)]
lpsmith has quit [(Ping timeout: 252 seconds)]
comex has quit [(Ping timeout: 252 seconds)]
TheAppleMan has quit [(Read error: Connection reset by peer)]
kier has quit [(Ping timeout: 252 seconds)]
grill_ has quit [(Ping timeout: 252 seconds)]
tg` is now known as tg
chris|- is now known as chris|
leothrix has quit [(Ping timeout: 250 seconds)]
[0x4A6F] has quit [(Ping timeout: 250 seconds)]
Happy_Ente has quit [(Ping timeout: 250 seconds)]
modulistic has quit [(Ping timeout: 250 seconds)]
dredozubov has quit [(Ping timeout: 250 seconds)]
MinceR has quit [(Ping timeout: 250 seconds)]
s1lvester has quit [(Ping timeout: 250 seconds)]
dju has quit [(Ping timeout: 250 seconds)]
krgn has quit [(Ping timeout: 250 seconds)]
itscaleb has quit [(Ping timeout: 250 seconds)]
danielrf1 has quit [(Ping timeout: 250 seconds)]
domenkozar has quit [(Ping timeout: 250 seconds)]
Ivanych has quit [(Ping timeout: 250 seconds)]
DerGuteMoritz has quit [(Ping timeout: 250 seconds)]
vifon has quit [(Ping timeout: 250 seconds)]
so has quit [(Ping timeout: 250 seconds)]
derjohn_mobi has quit [(Ping timeout: 250 seconds)]
sitedyno has quit [(Ping timeout: 250 seconds)]
ejr has quit [(Ping timeout: 250 seconds)]
noexcept1 has quit [(Ping timeout: 250 seconds)]
oleks has quit [(Ping timeout: 250 seconds)]
ncl28 has quit [(Ping timeout: 250 seconds)]
sternenseemann has quit [(Ping timeout: 250 seconds)]
page has quit [(Ping timeout: 250 seconds)]
kini has quit [(Ping timeout: 250 seconds)]
rawtaz has quit [(Ping timeout: 250 seconds)]
Guest82130 has quit [(Ping timeout: 250 seconds)]
sphalerite has quit [(Ping timeout: 250 seconds)]
dtzWill has quit [(Ping timeout: 250 seconds)]
Khetzal has quit [(Ping timeout: 250 seconds)]
Bane^ has quit [(Ping timeout: 250 seconds)]
rawtaz_ has joined #nixos
page_ has joined #nixos
raydeo has joined #nixos
Piece_Maker is now known as Acou_Bass
ejr_ has joined #nixos
sphaleri1e has joined #nixos
vifon1 has joined #nixos
domenkozar has joined #nixos
grill_ has joined #nixos
sternenseemann has joined #nixos
DerGuteMoritz has joined #nixos
thomassgn has joined #nixos
Ivanych has joined #nixos
dredozubov has joined #nixos
Bane^ has joined #nixos
eacameron has quit [(Ping timeout: 258 seconds)]
lpsmith has joined #nixos
dju has joined #nixos
dju has quit [(Changing host)]
dju has joined #nixos
comex has joined #nixos
leothrix has joined #nixos
so has joined #nixos
sitedyno has joined #nixos
itscaleb has joined #nixos
[0x4A6F] has joined #nixos
realfake has joined #nixos
uu has quit [(Ping timeout: 250 seconds)]
krgn has joined #nixos
s1lvester has joined #nixos
katyucha has joined #nixos
kier has joined #nixos
<katyucha>
matinales !
<katyucha>
Au secours !!!! On nous a volé pinpin !!
<katyucha>
Faut buter le père noel, je suis sur qu'il est reparti avec
ugjka has joined #nixos
<katyucha>
oups :)
<katyucha>
wrong channel :)
noexcept_ has joined #nixos
Sonarpulse has joined #nixos
cheshircat has quit [(Ping timeout: 245 seconds)]
fractal has joined #nixos
marusich has quit [(Ping timeout: 245 seconds)]
uu has joined #nixos
rawtaz_ has quit [(Ping timeout: 252 seconds)]
rawtaz has joined #nixos
ebzzry has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vMfNd
<NixOS_GitHub>
nixpkgs/staging 3829d1c Vladimír Čunát: Merge branch 'master' into staging...
proteusguy has quit [(Ping timeout: 258 seconds)]
Sonarpulse has quit [(Ping timeout: 246 seconds)]
sheenobu has quit [(Changing host)]
sheenobu has joined #nixos
nil has quit [(Ping timeout: 265 seconds)]
nil has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 4 new commits to master: https://git.io/vMfxK
<NixOS_GitHub>
nixpkgs/master 2da75ad Frederik Rietdijk: pythonPackages.pygame-git: broken
<NixOS_GitHub>
nixpkgs/master b95b631 Frederik Rietdijk: pythonPackages.memory_profiler: 0.39 -> 0.41
<NixOS_GitHub>
nixpkgs/master 762d847 Frederik Rietdijk: pythonPackages.Wand: 0.3.5 -> 0.4.4
nil has quit [(Ping timeout: 258 seconds)]
nil has joined #nixos
ben_____ is now known as ben
isHavvy has joined #nixos
katyucha has quit [(Ping timeout: 250 seconds)]
so has quit [(Ping timeout: 252 seconds)]
sternenseemann has quit [(Ping timeout: 250 seconds)]
sternenseemann has joined #nixos
brodul has quit [(Ping timeout: 268 seconds)]
Havvy has quit [(Ping timeout: 268 seconds)]
katyucha has joined #nixos
so has joined #nixos
brodul has joined #nixos
angerman has joined #nixos
ebzzry has quit [(Ping timeout: 256 seconds)]
arianvp2 has joined #nixos
<arianvp2>
gchristensen: is hydra fixed already?
<arianvp2>
aka can I remove my patch from my nixos config?
mudri has joined #nixos
ebzzry has joined #nixos
thc202 has joined #nixos
[0x4A6F]1 has joined #nixos
<LnL>
arianvp2: yes, if you're referring to the user namespace stuff
<NixOS_GitHub>
[nixpkgs] gnidorah opened pull request #21423: cpu-freq: Try powersave if ondemand is not available (master...cpufreq-sandybridge) https://git.io/vMJvV
[0x4A6F]1 has quit [(Ping timeout: 258 seconds)]
ebzzry has quit [(Ping timeout: 256 seconds)]
brodul has quit [(Ping timeout: 258 seconds)]
brodul has joined #nixos
ambro718 has joined #nixos
brodul has quit [(Ping timeout: 246 seconds)]
brodul has joined #nixos
systemfault has quit [(Quit: Bye!)]
pi3r has joined #nixos
so has quit [(Ping timeout: 250 seconds)]
so_ has joined #nixos
so_ has quit [(Ping timeout: 252 seconds)]
<manveru>
looks like buildFHSUserEnv fails with the ruby 2.4 changes
<manveru>
wonder why it even uses ruby...
Myrl-saki has quit [(Ping timeout: 252 seconds)]
<manveru>
ah, for FFI
Myrl-saki has joined #nixos
so has joined #nixos
rrnewton has joined #nixos
<manveru>
is this also related to the user namespace changes?
rrnewton has quit [(Client Quit)]
<manveru>
not sure how this could've ever been working without root...
<manveru>
it tries to mount /sys into its build directory
mudri has quit [(Ping timeout: 248 seconds)]
deepfire has joined #nixos
pi3r has quit [(Ping timeout: 252 seconds)]
pi3r has joined #nixos
filterfish has quit [(Remote host closed the connection)]
<stkj>
hello. I can not set native notifications in the telegram desktop application. Is this intentional?
vifon1 is now known as vifon
samvher has joined #nixos
samvher has quit [(Remote host closed the connection)]
samvher has joined #nixos
samvher has quit [(Quit: Lost terminal)]
samvher has joined #nixos
TheAppleMan has joined #nixos
[0x4A6F] has quit [(Ping timeout: 245 seconds)]
[0x4A6F] has joined #nixos
Fare has joined #nixos
uralbash has quit [(Quit: Leaving.)]
Itkovian has joined #nixos
dreamer has joined #nixos
dreamer has left #nixos []
filterfish has quit [(Ping timeout: 258 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Itkovian has joined #nixos
Itkovian has quit [(Client Quit)]
deepfire has quit [(Ping timeout: 256 seconds)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
<ambro718>
Why does sandboxing need root access? Are there not things that can be done without root access?
<ambro718>
I've seen many times builds fail when people use Nix in single-user install, just because a sandbox is not used. And telling people how to setup multi-user mode and sandboxing is not easy.
pi3r has quit [(Ping timeout: 265 seconds)]
stkj has quit [(Ping timeout: 245 seconds)]
ugjka is now known as UgJkA
<viric>
ambro718: I think it was linux 3.8 that introduced user name spaces. After one year, lxc did not implement the userland for that. Maybe nowadays there can be sandboxing without root.
<ambro718>
viric: I think the steam integration for nixos does some filesystem namespaces without needing root
<MichaelRaskin>
The problem is that most benefits of namespacing require user namespacing and being userid 0 inside the namespace, but there are _still_ vulnerabilities allowing to elevate ns-uid-0 to global-uid-0
<viric>
:)
<ambro718>
for nix builds it would be a great benefit just to have a filesystem namespace so things don't pick up anything accidentally
<viric>
perfect
<viric>
But user name spaces allowed for a lot, isn't it?
<ambro718>
irrespective if whether it improves security
<viric>
as for sandboxing
<MichaelRaskin>
The escapes mean that no-privilege user-namespacing is not always safe
<viric>
well, it won't be safe against a uid=0 process
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
<viric>
But a better-than-nothing should be enough a good reason
nixy has quit [(Quit: Outtie)]
joepie91___ has quit [(Ping timeout: 245 seconds)]
mkoenig has joined #nixos
<MichaelRaskin>
My disappointment is that you cannot just enable users to use the better-than-nothing namespacing everywhere
<manveru>
well, the issue i found is that buildFHSUserEnv tries to mount /sys and a couple other devices, which only root can do apparently
<manveru>
so running nox-review fails as normal user
samvher has quit [(Remote host closed the connection)]
samvher has joined #nixos
samvher has quit [(Client Quit)]
<viric>
git-annex is damn slow.
samvher has joined #nixos
samvher_ has joined #nixos
<viric>
over xfs.
samvher_ has quit [(Client Quit)]
<MichaelRaskin>
Hm, so you want to say that to understand what is the ideal VCS I dream about I should also look at git-annex?
<viric>
I don't know
<viric>
but without git-annex, I wouldn't be able to manage 5 external storage hds + my local disks
<viric>
I don't like it, but I don't know what else I could use
<MichaelRaskin>
Ah, OK, maybe the other preexisting requirements mostly cover that
<viric>
what requirements?
<viric>
xfs is so slow at handling symlinks... damn it
<viric>
Why do I have xfs. gr
<MichaelRaskin>
Well, there are many and I should write the down at some point
<MichaelRaskin>
You have XFS because you need dynamic increases in inode counts?
filterfish has joined #nixos
<viric>
MichaelRaskin: nah, it has inode limit
filterfish has quit [(Remote host closed the connection)]
<viric>
I have lost data with ext4 too often, and I have a preference for all-but-ext4
<MichaelRaskin>
You have missed out on all the BtrFS fun
<viric>
I have been without btrfs this last year. If xfs is slow with metadata, btrfs is überslow
<MichaelRaskin>
I think at some point I had XFS on tmp be even slower than BtrFS for builds
<viric>
another good reason for btrfs was that I could not record video with my computer, because of sudden locks that resulted in buffer overrun
<viric>
(the 30s lock)
<viric>
- reason to drop btrfs, I mean
<ToxicFrog>
High five, btrfs 30 second lock buddy :(
* ToxicFrog
is ZFS everywhere these days and much happier
<MichaelRaskin>
Somehow, I got a lot of fun with BtrFS, but not 30s locks
<ToxicFrog>
In other weirdness, I just tried to nix-env -i with the SD card mounted and it did this:
<ToxicFrog>
error: while setting up the build environment: unable to make filesystem ‘/run/media/ben/openSUSE
<ToxicFrog>
.3 Live’ private: No such file or directory
<viric>
MichaelRaskin: btrfs could not handle multiple loads... One task starved, the other worked slow
<ToxicFrog>
Yes, with the newline and everything.
<viric>
MichaelRaskin: and every 30s there is that flush thing that can stop any i/o operation for seconds
<MichaelRaskin>
I think it worked for me with multiple builds
<MichaelRaskin>
Hm
<viric>
Some people had reports of one simple 'ls' taking hours because there was another task using the fs
<MichaelRaskin>
Maybe I had enough RAM cache space
<ToxicFrog>
(the actual name of the mountpoint is "/run/media/ben/openSUSE 13.3 Live/")
<viric>
MichaelRaskin: you had non-constant fs workloads
<MichaelRaskin>
The only load I could starve on BtrFS was journalctl
phreedom_ has quit [(Ping timeout: 246 seconds)]
<MichaelRaskin>
But journalctl is simply bad
<MichaelRaskin>
Maybe…
<viric>
Btrfs people recognized that it does not handle well multiple workloads. It's meant for one-task.
samvher has quit [(Remote host closed the connection)]
<viric>
You can run "find /" and that can stop a "ls ~" until find finishes.
samvher has joined #nixos
<viric>
I would unpack a linux kernel for a build and that would stop a firefox sqlite operation until the untar finishes
* kmicu
runs ‘find /’ and ‘ls ~’ multiple times. No issues.
<viric>
kmicu: that may be the cache
<viric>
:)
<MichaelRaskin>
~Can't reproduce now
<ToxicFrog>
I never had data loss but I had the crippling performance issues viric describes as well as ENOSPC with the filesystem ostensibly less than half full
<MichaelRaskin>
I mean, for a lot of time BtrFS was simply easy to corrupt
<viric>
I didn't have btrfs corruption issues. ENOSPC issues only several years ago
<kmicu>
It’s always like that. :) ‘I have a non–reproducible bad user experience with technology x therefore technology x bad.’
samvher has quit [(Remote host closed the connection)]
<MichaelRaskin>
ToxicFrog: on ext4 it is running out of inodes, on BtrFS it is about bad balance
<ToxicFrog>
MichaelRaskin: yeah, I've read the wiki entry on it
<viric>
kmicu: I was talking with #btrfs, they recognized the problem. They could reproduce it, and were perfectly aware. There was not a plan to fix that
<ToxicFrog>
And it's risible that a "production ready" filesystem requires frequent manual rebalancing to remain functional
oida has joined #nixos
<ToxicFrog>
Using commands that offer ~no feedback and don't always work
<MichaelRaskin>
ENOSPC issues are actually easy to fix than ext4 no-inodes-for-you
<MichaelRaskin>
(in my specific setup)
<kmicu>
Nix also has a recognized problem. That not makes Nix bad.
<viric>
MichaelRaskin: when I create an ext4 or xfs, I take the inodes it suggests, and multiply it by 10 manually on a new mkfs
<MichaelRaskin>
Well, with /nix/store I could credibly run out even with that
<viric>
kmicu: I could not record video (buffer overrun), and all fs workloads were serialized. That gave me enough reasons to drop it :)
<viric>
kmicu: I used it for years... I really had hope in it, but once I was told that the relevant issues I had were 1) known since long and 2) not meant to be fixed anytime soon, made me drop.
samvher has joined #nixos
<viric>
I still don't know about zfs... I should put it on test more seriously.
<kmicu>
So it’s not for you and your specific use case. Nothing more.
<viric>
But it handles symlinks and metadata operations soooo fast, that sounds convincing
<viric>
kmicu: exactly.
<kmicu>
At the same time is perfectly good for many Nix users.
<viric>
kmicu: so is ext4
<viric>
and I don't like it :)
<kmicu>
But I’m not here saying that ext4 sucks.
<viric>
I am
<viric>
and I have troubles with xfs. So time comes to learn zfs well.
MinceR_ is now known as MinceR
<kmicu>
ZFS which has multiple problems reported on Nixpkgs repo, b/c it also gives bad experiences in some specific use–cases.
<viric>
I'm just worried whether it will have bad performance because of COW
<viric>
in sqlite things or so
<viric>
kmicu: ah, I'd like to know about those
filterfish has joined #nixos
latk has joined #nixos
filterfish has quit [(Remote host closed the connection)]
Fare has quit [(Ping timeout: 264 seconds)]
<viric>
I have put zfs in an old notebook... It's damn slow for steady MB/s (the processor lacks fast crc operations I guess), but all metadata operations were great
<viric>
I've heard it scales bad in terms of ram usage, but I wonder if that's only for the dedup
MoreTea has joined #nixos
<viric>
I have to test git-annex on zfs
<viric>
maybe it runs fast there
nil has quit [(Ping timeout: 250 seconds)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<MichaelRaskin>
No, there are also problems that it has its own cache with imperfect integration
nil has joined #nixos
katyucha has quit [(Quit: Lost terminal)]
<viric>
I haven't seen a trouble with that yet
<viric>
are things getting double-cached, then?
<viric>
in pagecache + zfs arc?
<MichaelRaskin>
It just reduces efficiency of RAM usage
<MichaelRaskin>
I am not sure if it manages to avoid double caching, but I think it has problems with adapting to changing memory pressure
<viric>
pagecache isn't the best thing either
mizu_no_oto has joined #nixos
eacameron has joined #nixos
mudri has joined #nixos
<viric>
I should test my workload on zfs and see.
pi3r has joined #nixos
mizu_no_oto has quit [(Ping timeout: 265 seconds)]
sdothum has joined #nixos
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
eacameron has quit [(Remote host closed the connection)]
mizu_no_oto has joined #nixos
oida has quit [(Ping timeout: 246 seconds)]
<mpickering>
Has anyone worked on a static type system for the expression language?
<mpickering>
It seems a shame that it is dynamically typed
<srhb>
mpickering: There was an attempt to make an Idris DSL for it.. Let me find the person involved again.
<srhb>
mpickering: Hngh, I can't find it right now, but I'm pretty sure it was Susan Potter who was working on it. Perhaps your google fu is better than mine. :)
simendsjo has joined #nixos
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
<martijn923>
Hi there. Let me try again. Why is there no pkgs.nix.overrideDerivation ?
<MichaelRaskin>
because overrideDerivation is lib.overrideDerivation
<martijn923>
I would like to apply a small patch to nix-build, but I can't find a way to do that
<martijn923>
Ah, so `lib.overrideDerivation pkgs.nix` should work. (it seems to work)
<martijn923>
MichaelRaskin: so why do many other packages have overrideDerivation as an attribute?
<MichaelRaskin>
Yes
<MichaelRaskin>
They have .override, not .overrideDerivation
<MichaelRaskin>
This helps if you only want to change package parameters
<MichaelRaskin>
Not override inner stuff like patches
<eacameron>
Is it just me...or does the live CD iso not actually fit on a CD?
<hodapp>
it looked like it was too big when I downloaded it
<MichaelRaskin>
Well, less than 10^9 bytes
<MichaelRaskin>
There may be some non-DVD-capable optical disk device that can handle such a volume
acertain has quit [(Read error: Connection reset by peer)]
<martijn923>
MichaelRaskin: Yes I understand the difference between override and overrideDerivation
<hodapp>
non-DVD doesn't really make it a CD though
<martijn923>
MichaelRaskin: But as far as I can see all other packages also have overrideDerivation as an attribute
<martijn923>
MichaelRaskin: Here I just picked a random example (bind): http://sprunge.us/VMVK
<martijn923>
lib.overrideDerivation probably solves my prolem, so thanks, I'm just try to understand :)
filterfish has joined #nixos
<MichaelRaskin>
Oh, overrideDerivation got added to callPackage result by default?
<MichaelRaskin>
That's new
filterfish has quit [(Remote host closed the connection)]
<MichaelRaskin>
Nix package is defined in a complicated special-case expression that tries to have maximum amount of common code between stable and unstable versions of nix
<martijn923>
So the difference is that pkgs.nix doesn't use callPackage?
<MichaelRaskin>
Yes
<martijn923>
Yes, I see the `common` construct in its default.nix
<martijn923>
Ok thanks :)
ixxie has joined #nixos
<ixxie>
Merry Nixmas!
asymmetric has joined #nixos
<mpickering>
Phlogistique srhb, ah right so that looks like a backend for idris
<mpickering>
thanks for digging it out for me
filterfish has joined #nixos
filterfish has quit [(Read error: Connection reset by peer)]
oida has quit [(Read error: Connection reset by peer)]
stepcut has joined #nixos
oida has joined #nixos
nil has quit [(Ping timeout: 245 seconds)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
jgertm_ has joined #nixos
stepcut has quit [(Ping timeout: 245 seconds)]
nil has joined #nixos
Sonarpulse has joined #nixos
pi3r has quit [(Ping timeout: 246 seconds)]
<gchristensen>
arianvp2: yep!
MoreTea has quit [(Ping timeout: 252 seconds)]
jgertm_ has quit [(Ping timeout: 258 seconds)]
HappyEnte_test has joined #nixos
alx741 has joined #nixos
pi3r has joined #nixos
filterfish has joined #nixos
filterfish has quit [(Read error: Connection reset by peer)]
HappyEnte_test has quit [(Client Quit)]
HappyEnte_test has joined #nixos
pi3r has quit [(Ping timeout: 265 seconds)]
<ryantrinkle>
it looks like, on mac, webkitgtk214x needs to get -lintl in the link phase, but i'm not sure how to make that happen
<ryantrinkle>
i've added gettext (which includes libintl.dylib) to the buildInputs
HappyEnte_test has quit [(Client Quit)]
latk has quit [(Remote host closed the connection)]
<ryantrinkle>
anyone know how i can get the -lintl flag in there?
HappyEnte_test has joined #nixos
<ambro718>
How to install some cursor themes for Xfce?
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
stepcut has joined #nixos
ambro718 has quit [(Quit: Konversation terminated!)]
irctc719 has quit [(Ping timeout: 260 seconds)]
pi3r has joined #nixos
<ixxie>
how can I set an environment variable in a nixos module?
ambro718 has joined #nixos
<ambro718>
How do I install some cursor theme for Xfce? I added pkgs.vanilla-dmz into systemPackages, but it does not appear in the Xfce Mouse&Touchpad settings in the themes tab, even after reboot.
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
AndroUser has joined #nixos
filterfish has joined #nixos
<Sonarpulse>
is there any lib function
<Sonarpulse>
to diff to values?
filterfish has quit [(Remote host closed the connection)]
<Sonarpulse>
show different bools, strings, derivation of a value?
page_ is now known as page
xwvvvvwx has joined #nixos
amarsman_ has joined #nixos
JagaJaga has joined #nixos
amarsman has quit [(Ping timeout: 245 seconds)]
amarsman_ is now known as amarsman
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
rardiol has joined #nixos
mkoenig has quit [(Read error: Connection reset by peer)]
<NixOS_GitHub>
nixpkgs/master e60bb86 Tuomas Tynkkynen: kexectools: 2.0.13 -> 2.0.14...
mkoenig has joined #nixos
thalll has joined #nixos
zarel has joined #nixos
danharaj has joined #nixos
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
acertain has joined #nixos
bzf[m] has joined #nixos
m0rphism has joined #nixos
mkoenig has quit [(Read error: Connection reset by peer)]
filterfish has joined #nixos
mkoenig has joined #nixos
filterfish has quit [(Read error: Connection reset by peer)]
contrapumpkin has joined #nixos
nil has quit [(Ping timeout: 258 seconds)]
nil has joined #nixos
Wizek_ has quit [(Read error: Connection reset by peer)]
propumpkin has joined #nixos
copumpkin has quit [(Ping timeout: 258 seconds)]
k2s has joined #nixos
contrapumpkin has quit [(Ping timeout: 248 seconds)]
k2s has quit [(Client Quit)]
<NixOS_GitHub>
[nixpkgs] sifmelcara opened pull request #21428: crystal: fix build in chroot environment (master...fix/crystal-lang) https://github.com/NixOS/nixpkgs/pull/21428
sdothum has quit [(Quit: ZNC - 1.6.0 - http://znc.in)]
alx741_ has joined #nixos
alx741 has quit [(Ping timeout: 260 seconds)]
Wizek has joined #nixos
Fare has joined #nixos
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
<ixxie>
when using environment.variables = { MYPATH = "/foo/bar"; }; in a nixos module doesn't seem to set an environment variable accesible from my interactive shell; what am I doing wrong?
<hodapp>
hrmph. pdflatex complaining because it can't find repstopdf, though epstopdf is installed
phreedom has joined #nixos
<Intensity>
Hi. I'm wondering if on NixOS for macOS/darwin, I can opt to use the 16.09-small channel. Is a stable binary package set only available for Linux? Or OS X too? I see https://nixos.org/channels/ shows nixpkgs-unstable but no apparent branched nixpkgs.
<hodapp>
I am not sure what the deal is here, and if I'm missing something or I should just symlink epstopdf to repstopdf and ignore it
cheshircat has joined #nixos
<gchristensen>
Intensity: nixpkgs-unstable is based on master
<srhb>
ixxie: Did you log in again?
<ixxie>
hmmm ill give it a shot srhb
ixxie has quit [(Quit: Lost terminal)]
<Intensity>
gchristensen: Ok - it appears that pre-built binaries are made available from master, then. Do you know if a similar set is available based off of 16.09?
ixxie has joined #nixos
<srhb>
ixxie: sudo -s; login should also do the trick.
<hodapp>
it sounds like repstopdf just symlinks to epstopdf in various distro packages anyhow... hmmm
<gchristensen>
Intensity: no, I think all users of nix without nixos use nixpkgs-unstable
Unode_ has joined #nixos
<Unode_>
hi everyone
<ixxie>
srnb, that did the trick :) kinda wondering why nixos-rebuilt switch isn't doing that already
<Unode_>
On nix I notice that fonts are slightly blurrier than on my other machine with exact same definitions. I'm pretty sure this has something to do with font but don't remember the exact option that can be used to set this (hinting?).
k2s has joined #nixos
<Unode_>
Does anyone know what I'm talking about and has any snippet that changes it?
<MichaelRaskin>
Ohoho
xwvvvvwx has quit [(Ping timeout: 258 seconds)]
<MichaelRaskin>
(I have tried to understand fontconfig in the recent version, and I have ended up just nuking 95% of the config to get what I want)
filterfish has joined #nixos
<hodapp>
okay, having looked at pkgs/tools/typesetting/tex/texlive/ to try to figure out how to add a symlink from repstopdf to epstopdf, I have no idea what I'm doing
<MichaelRaskin>
runCommand is a function taking package name, extra derivation attributes (intended for changing build environment variables) and code to run
<hodapp>
MichaelRaskin: I'm still trying to figure out what myTexLive is and how to get it in there
<MichaelRaskin>
myTexLive is _above_ the anchor
<MichaelRaskin>
you don't need it
<hodapp>
it's also on line 103
<MichaelRaskin>
you only need the runCommand part inside ()
<MichaelRaskin>
Ouch
mudri has quit [(Ping timeout: 252 seconds)]
<MichaelRaskin>
Ah, OK, you can put the package providing epstopdf there
<hodapp>
I don't actually know which package that is
<MichaelRaskin>
Or your texlive scheme-basic expression
<MichaelRaskin>
Doesn't really matter
<hodapp>
I know nothing of a texlive scheme-basic expression; all I've really done is install texlive-combined-full
<MichaelRaskin>
That would also do
<hodapp>
for... what? A literal replacement of myTexLive?
<MichaelRaskin>
Yes
<hodapp>
it's just finding texlive-combined-full as an undefined variable if I do that
<MichaelRaskin>
I guess it is texlive.combined.scheme-full
<hodapp>
I've had to use that name rather than some other hyphenated name in places and I still don't get why
<MichaelRaskin>
This is the Nix language expression evaluating to the needed derivation
<hodapp>
sure, but why is it needed?
<MichaelRaskin>
the hyphenated version is the derivation inner name used to build the basename of the output store path
<MichaelRaskin>
Because it is normal for a programming language to refer to variables by variable name and not by the search inside the current stored value?
thalll has quit [(Ping timeout: 268 seconds)]
<hodapp>
I don't know what "search inside the current stored value" means. I'm just trying to reconcile the discrepancy in how I refer to things in nix-env, and how nix-env presents them to me - and in how they're used in configuration.nix, and how with most packages no discrepancy seems to exist
<MichaelRaskin>
use -iA instead of -i and nix-env will also use correct expression references
<MichaelRaskin>
if the package is just an isolated piece, there is a good chance that it lives on the top level and its attribute name in the expression is the same as the derivation inner name
<NixOS_GitHub>
nixpkgs/master 34cc46b Vincent Demeester: docker-compose: 1.8.0 -> 1.9.0...
<hodapp>
"/nix/var/nix/profiles/default/bin/darktable: error while loading shared libraries: libdarktable.so: cannot open shared object file: No such file or directory" hrmph, I don't understand
<hodapp>
it seems to have properly built the libraries and put them in /nix/store/zckw9w10d8arzzm723hhkwy6gjwjpjr1-darktable-2.2.0/lib/darktable/...
<LnL>
what's the output of ldd $(which darktable)
<hodapp>
"not a dynamic executable"
<LnL>
huh
<hodapp>
gonna see if it's that way on older executables too...
<hodapp>
yeah, it is on 2.0.5
asymmetric has quit [(Quit: WeeChat 1.6)]
<LnL>
maybe it's a wrapper script
<hodapp>
ahh, looks like it is
<hodapp>
ldd on that yields: libdarktable.so => not found
<hodapp>
but this looks like a bog-standard build so I'm at a loss for what could have changed...
<hodapp>
are there any guides on how I might use nix-shell to walk through an existing build? I am vaguely aware that things like 'configurePhase' are available at the shell but I know little else
<LnL>
you can use genericBuild to do everything at once
<LnL>
I
<LnL>
I'm not sure if we have a real guide for the steps
<hodapp>
but how do I then get at particular parts of that?
Judson has joined #nixos
<LnL>
unpackPhase; cd $sourceRoot; patchPhase; configurePhase; buildPhase; installPhase
<LnL>
^ that's the basic stuff, but you might have to use eval "$configurePhase" for some derivations
<hodapp>
this is a pretty standard CMake build luckily
<simpson>
Is it possible to build Hydra without aws-sdk-cpp? I can't build Hydra from master right now because it's broken.
<LnL>
yeah I saw, but I have no idea
<simpson>
I like how the Hydra expression has a custom aws-sdk-cpp that pulls from a custom repository and has custom flags, *but* it's not possible to build a non-AWS Hydra.
<LnL>
but if the derivation sets the attributes you have to eval the env variables instead
<hodapp>
hrmph, darktable's build is just producing a binary that can't seem to find libdarktable.so
<LnL>
yeah that's what it looks like
<hodapp>
this seems to be before any of the stuff stdenv might do to rejigger the library paths
slack1256 has joined #nixos
<slack1256>
Can I run gui apps on nixos-containers?
pi3r has joined #nixos
<mitchty>
quick question, i found that 7 packages build fine on darwin by just modifying the platforms used, should I submit a different pull reqquest for each package or can I do one omnibus update?
<LnL>
nah, just group them
pi3r has quit [(Ping timeout: 260 seconds)]
<hodapp>
gaaaack. I wonder if it's even worth my time to grok this CMake monstrosity, or if I should just figure out how to patch the executable to point to the right library
<LnL>
don't look at me, I've tried to remove curl as a dependency of cmake a few weeks ago and I'm still confused :)
<hodapp>
:P
<mitchty>
just to make sure i format the commit message right, can't find anything quick on the wiki on it should the commit be something like multiple: Allow on non linux platforms
<codygman>
I have a Haskell package I'm trying to use but when I invoke 'nix-shell --pure' I get the error "error: attribute ‘ghc802’ missing, at /home/cody/sources/inline-java/shell.nix:15:9". I'm guessing the attribute ghc802 is either an alias the creator of that package has in their nixconfig or ghc802 is a now deprecated path? I'm using nixos 16.09.1368.435b5f8.
<kmicu>
(withXwidgets should set everything for the user.)
<m3tti>
kmicu: yes. but how could i fix that right now :-D
<LnL>
codygman: are you using a channel?
<kmicu>
codygman: there is no 802 in your Nixpkgs revision ‘nix-env -f "<nixpkgs>" -qaP -A haskell.compiler -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/435b5f8.tar.gz’
<NixOS_GitHub>
nixpkgs/master 1942520 Mitch Tishmack: cscope: refactor allow builds on non linux
<NixOS_GitHub>
nixpkgs/master 124f817 Mitch Tishmack: duplicity: refactor allow builds on non linux
<NixOS_GitHub>
nixpkgs/master e898a50 Mitch Tishmack: duply: refactor allow builds on non linux
<mitchty>
danke LnL
<hodapp>
hrm, why do I keep getting things like "mkdir: cannot create directory ‘/nix/store/z7xdrr27mmg1qi9czqf7g8ya1n6vp5nh-darktable-2.2.0’: Read-only file system" when running genericBuild in nix-shell?
<LnL>
mitchty: :D
<LnL>
I wish we could fix more packages like that
<mitchty>
indeed
<mitchty>
i just turned off my ignore stuff to see what was linux only that i've been using for ages
wangoe has quit [(Ping timeout: 258 seconds)]
avalan is now known as dweller
<LnL>
hodapp: you can't write to the nix store in a shell
m3tti has quit [(Remote host closed the connection)]
<LnL>
hodapp: export out=$PWD/tmp
<hodapp>
ahh okay
nil has quit [(Ping timeout: 264 seconds)]
nil has joined #nixos
Seichi has joined #nixos
amarsman has quit [(Ping timeout: 252 seconds)]
amarsman_ has joined #nixos
systemfault has joined #nixos
<hodapp>
now the wrapped binary isn't dynamic either, and 'darktable' just segfaults at startup. WHO FUX0RED THIS BUILD AND WHY >:O
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
JagaJaga has quit [(Ping timeout: 260 seconds)]
rardiol has joined #nixos
bitchecker has quit [(Ping timeout: 245 seconds)]
pi3r has joined #nixos
<LnL>
does the output of ldd look correct?
bitchecker has joined #nixos
<hodapp>
after "export out=$PWD/tmp" genericBuild still isn't working in the shell; something failed at "-- Installing: /nix/store/z7xdrr27mmg1qi9czqf7g8ya1n6vp5nh-darktable-2.2.0/share/locale/ca/LC_MESSAGES/darktable.mo"
<hodapp>
does some other variable need to be set?
hiratara has quit [(Ping timeout: 245 seconds)]
<hodapp>
hm, I see prefix=/nix/store/z7xdrr27mmg1qi9czqf7g8ya1n6vp5nh-darktable-2.2.0
<hodapp>
ugh, something is wrong when I build this way. It doesn't even make the wrappers, and in $out/bin it just has a single file (named *) which is the wrapper script
mkoenig has quit [(Read error: Connection reset by peer)]
<hodapp>
likewise libexec
mkoenig has joined #nixos
aj__ has quit [(Ping timeout: 250 seconds)]
<hodapp>
and I see "Wrapping app /home/hodapp/nixpkgs/darktable-tmp/out_tmp/bin/*", "mv: cannot stat '/home/hodapp/nixpkgs/darktable-tmp/out_tmp/bin/*': No such file or directory"... but I don't get why
<hodapp>
"stat: No such file or directory" is above that just after post-installation fixup
rardiol has quit [(Ping timeout: 252 seconds)]
eacameron has quit [(Remote host closed the connection)]
rardiol has joined #nixos
<LnL>
hodapp: you should probably switch to nix-build at this point
eacameron has joined #nixos
<hodapp>
how will that help?
<hodapp>
hmm, I am wondering if my current issue is because I set preFixup when I needed to append something to it
eacameron has quit [(Ping timeout: 245 seconds)]
ixxie has quit [(Remote host closed the connection)]
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 250 seconds)]
eacameron has joined #nixos
hiratara has quit [(Remote host closed the connection)]
jgertm_ has joined #nixos
hiratara has joined #nixos
eacameron has quit [(Ping timeout: 246 seconds)]
blahdodo has quit [(Ping timeout: 246 seconds)]
blahdodo has joined #nixos
<hodapp>
ugh, this is making no sense. preFixup runs "patchelf --replace-needed libdarktable.so /nix/store/m8cffzsq6knp020zlbxxicyaljrwsdpy-darktable-2.2.0/lib/libdarktable.so /nix/store/m8cffzsq6knp020zlbxxicya
<hodapp>
after which I see "wrapping app /nix/store/m8cffzsq6knp020zlbxxicyaljrwsdpy-darktable-2.2.0/bin/darktable" and so on
nixos has joined #nixos
<nixos>
euhm
nixos is now known as arianvp2
<arianvp2>
How do I find doucmentation or source code of functions like
<arianvp2>
mkOption, optionalAttrs
<arianvp2>
etc?
<hodapp>
running 'ldd' on the .darktable-wrapped says it's not a dynamic executable, but every other .darktable-*-wrapped binary (there are several) is dynamic
<arianvp2>
What is the difference between
<arianvp2>
require =
<arianvp2>
and import =
<arianvp2>
in configuration.nix?
jgertm_ has quit [(Ping timeout: 245 seconds)]
<LnL>
hodapp: it's wrapped more then once?
aj__ has joined #nixos
<hodapp>
LnL: there are several binaries that are being wrapped
<LnL>
oh, perhaps one of the other ones might be causing the issues then
ebzzry has joined #nixos
<schoppenhauer>
hi. I want to install clang and gcc side by side, and I get the error message that I have to set a priority. I tried nix-env --set-flag priority 100 nixos.llvmPackages.clang-unwrapped, nix-env --set-flag priority 100 llvmPackages.clang-unwrapped, nix-env --set-flag priority 100 clang-unwrapped, but I always get the error message "error: selector ‘clang-unwrapped’ matches no derivations" or similar.
<schoppenhauer>
what does --set-flag want?
Wizek__ has quit [(Ping timeout: 268 seconds)]
Sonarpulse has joined #nixos
Wizek has quit [(Ping timeout: 264 seconds)]
<schoppenhauer>
also clang-3.7.1 or just clang does not work
Seichi has quit [(Quit: Konversation terminated!)]
<schoppenhauer>
gah
<schoppenhauer>
nix-env --set-flag only works for installed packages, wtf?
<hodapp>
LnL: all the binaries seem to have the issue of not being able to find libdarktable.so, but I'm only trying to correct it (so far) on one
eacameron has joined #nixos
<hodapp>
but it is only on darktable/.darktable-wrapped that ldd shows the binary as not even being dynamic
<hodapp>
I also run 'ldd' immediately after patchelf in preFixup to see, and it looks correct there
<hodapp>
so I'm very confused
<hodapp>
I don't know *what* it is if not dynamic, and that it segfaults when I try to run it
Fare has joined #nixos
eacameron has quit [(Remote host closed the connection)]
ryanartecona has quit [(Quit: ryanartecona)]
<hodapp>
so, everything seems fine, then wrapGAppsHook runs and everything is fucked up
<hodapp>
from what I understand
<hodapp>
but I can't really see anything about what wrapGAppsHook does or why, so I'm still quite a bit lost, because it looks to me like this *should* be a simple thing to fix with 'patchelf'
aj__ has quit [(Ping timeout: 265 seconds)]
<hodapp>
'file' thinks .darktable-wrapped is dynamically linked. 'ldd' doesn't.
eacameron has quit [(Remote host closed the connection)]
aj__ has joined #nixos
mkoenig has quit [(Read error: Connection reset by peer)]
<slack1256>
If I don't want to install gnome, how can I provide (locally) GSettings schemas for my own code?
arianvp2 has quit [(Quit: WeeChat 1.5)]
<hodapp>
yeah, as far as I can tell, wrapGAppsHook is just corrupting the binary in some incomprehensible way, *if* I use patchelf on it during 'preFixup'. If I instead use patchelf on the wrapped binaries in postFixup, it seems to work.