gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
drakonis has joined #nixos-chat
drakonis1 has quit [Ping timeout: 252 seconds]
lejonet has quit [Ping timeout: 246 seconds]
<infinisil> Aw man, I just thought about some Haskell problem for a couple hours, how I could abstract it in the most general and nicest way
<infinisil> And now I just checked github and am seeing all this patchwork necessary for nixpkgs to work
<infinisil> Big difference to Haskell
<infinisil> While thinking about some stuff, I found this really awesome Haskell library for graphs as algebras, here's the authors introductory blog post: https://blogs.ncl.ac.uk/andreymokhov/an-algebra-of-graphs/
lejonet has joined #nixos-chat
<aleph-> infinisil: I'm going to have to translate this to rust, you bastard :P
lejonet has quit [Client Quit]
<infinisil> aleph-: Should be doable, I think :D
lejonet has joined #nixos-chat
drakonis_ has joined #nixos-chat
drakonis_ has quit [Read error: Connection reset by peer]
drakonis1 has joined #nixos-chat
drakonis has quit [Ping timeout: 272 seconds]
drakonis has joined #nixos-chat
drakonis1 has quit [Ping timeout: 258 seconds]
drakonis1 has joined #nixos-chat
endformationage has quit [Quit: WeeChat 2.4]
drakonis_ has joined #nixos-chat
drakonis has quit [Ping timeout: 252 seconds]
drakonis has joined #nixos-chat
drakonis2 has joined #nixos-chat
drakonis_ has quit [Ping timeout: 258 seconds]
drakonis has quit [Ping timeout: 258 seconds]
drakonis1 has quit [Quit: WeeChat 2.4]
drakonis has joined #nixos-chat
drakonis2 has quit [Ping timeout: 258 seconds]
Myhlamaeus has quit [Ping timeout: 258 seconds]
lejonet has quit [Quit: WeeChat 1.9.1]
lejonet has joined #nixos-chat
__monty__ has joined #nixos-chat
<pie_> you know what would be cool
<pie_> if one day nixos makes it *easier* for new people to learn things
<pie_> well ok depending on what youre doing it already does
<pie_> you just have to learn nix first
obadz has quit [Ping timeout: 246 seconds]
<jD91mZM2_> Lmao so I'm migrating /nix to a separate, non-snapshotted, ZFS dataset. I used rsync so I could get some progress, but forgot the flag that preserves hard links. As it ate my space I realized my mistake and fixed it, and now ZFS is giving me free space
<jD91mZM2_> Sorry, ZFS is not the thing that is giving me space, I mean rsync copying
jD91mZM2_ is now known as jD91mZM2
obadz has joined #nixos-chat
<jD91mZM2> I apparently forgot how to english overnight. What I'm trying to say is between two `zfs list` invocations, I'm getting more space left (20G free to 34G free!) by copying things with rsync. Probably because rsync is replacing the duplicates with hard links
<pie_> shouldnt zfs deduplicate by default though? :thinking: maybe you have to scrub or something
<jD91mZM2> pie_: Hmm maybe! I haven't turned it on myself so I don't know. Or maybe there's something strange going on here, it's been copying for so long I almost wonder if it's stuck in some symbo- Oh it's done never mind
<tilpner> No, zfs dedup is not on by default
<tilpner> (And shouldn't be, with the current implementation)
<pie_> tilpner, that would have been my next guess
<pie_> why not?
<tilpner> It's very expensive, and ordinary datasets barely benefit from it
<pie_> ah
<jD91mZM2> Oh shit, I failed to copy over the nix store! I entered a root shell, copied out "mv", moved the original nix store to /nix3. But now I'm trying to move the copy, /nix2, to /nix. But `mv` says no such file or directory... I forgot linux interpreter. Guess it's time to enter a live disk even though I tried hard to not have to do that :P
<__monty__> Can't you just call /nix3/something...something/mv?
thefloweringash has joined #nixos-chat
<infinisil> __monty__: That binary will have /nix/store/... as its interpreter too, so I don't think that would work
<MichaelRaskin> You can call interpreter by full path
<MichaelRaskin> And with some LD_LIBRARY_PATH, I guess
<pie_> jD91mZM2, dumb idea, can you just symlink in the store?
<Ralith> of course first you have to find it
<MichaelRaskin> Tab completion
<Ralith> great for those times you've memorized the hash :p
<MichaelRaskin> Or when shell can expand wildcard on Tab
<joepie91[m]> aminechikhaoui: it probably just cross-references the system's installed package set against repology and a CVE database
<joepie91[m]> (and/or other known-vuln DBs)
<pie_> infinisil, man zpool for the "multihost" parameter kind of might explain why nix wants a host id for zfs, but it seems to default to off?
<infinisil> Ahh yeah good find
<infinisil> NixOS can't know whether it's on or off though, so defaulting to the safer choice seems like a good idea
<pie_> ive been vaguely pondering if nix was more machine friendly (?) i wonder if we could do like...constraint solving and stuff
<infinisil> Huh what, why would you want to do that with nix
<pie_> not *with* nix but *for* nix
<infinisil> The only thing I can imagine is for solving version constraints, which could be neat in nixpkgs
<pie_> not that that clarifies much
<pie_> or..actually maybe youre right
<pie_> idk
* pie_ 's brain just went "A is cool. B is also cool. Can we do A+B"
<jD91mZM2> pie_: `ln` is also an external command. I'm back after messing around in the live disk and shit is working :)
<pie_> ok if youre able to use a live disk unlike me that sounds good XD
<pie_> i mean im just generally clumsz
<pie_> s
<pie_> * clumsy
aszlig has quit [Quit: Kerneling down for reboot NOW.]
aszlig has joined #nixos-chat
Myhlamaeus has joined #nixos-chat
Myhlamaeus has quit [Ping timeout: 258 seconds]
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos-chat
drakonis1 has joined #nixos-chat
endformationage has joined #nixos-chat
Myhlamaeus has joined #nixos-chat
<MichaelRaskin> Would there be any interest in debugging-oriented isolation wrappers?
<MichaelRaskin> Like running something with its own DBus so that you can see if it is about your local something
<MichaelRaskin> And with its own XDG_DATA_DIR (with necessary stuff provided)
<MichaelRaskin> And maybe even in its own Xpra with forwarding just the window (think Firefox trying to control existing instance)
<infinisil> That would be neat
<infinisil> Maybe nixos containers could be used?
<MichaelRaskin> As is, that's a no
<MichaelRaskin> Boundary condition: usable as-is with zero setuid helpers on a non-NixOS system with Nixpkgs kernel
<infinisil> (relevant: #60289)
<{^_^}> https://github.com/NixOS/nixpkgs/pull/60289 (by Infinisil, 4 weeks ago, closed): [Experiment] Separate security wrappers from NixOS
<MichaelRaskin> And preferably usable as-is on Debian stable (with correctly working Nix and checked out Nixpkgs and unlimited space) as much as practical
<MichaelRaskin> I have exactly 4 setuid wrappers on my system, and I wonder if I can give up one of them in practice
<MichaelRaskin> (and I build the wrapper by grapping source from NixOS tree)
<infinisil> Ah you even commented on that PR
<MichaelRaskin> It would be cool to separate NixOS option database from implementation details that should be just packages with parameters, but setuid wrappers are probably not the highest-value part of it
<MichaelRaskin> I wonder if user-mode-linux is easy to build/use
<pie_> MichaelRaskin, i think it sounds great
<MichaelRaskin> The real goal is of course to gather code that is defined to be unable to depend on full NixOS so that then using it for tests one can debug without waiting for full-boot each time would not be _just_ code duplication w.r.t. NixOS tests
lejonet has quit [Remote host closed the connection]
lejonet has joined #nixos-chat
<drakonis1> so, 5 hours and 19 minutes until amd's big show at computex
<drakonis1> this might be good.
<infinisil> I'm seeing a lot more non-member reviewers recently, and this may or may not be because of #58098 :D
<{^_^}> https://github.com/NixOS/nixpkgs/pull/58098 (by Infinisil, 9 weeks ago, merged): PULL_REQUEST_TEMPLATE: Add encouragement to review PRs
<etu> infinisil: Logical conclusion I'd say :)
Myhlamaeus has quit [Ping timeout: 250 seconds]
{^_^} has quit [Ping timeout: 252 seconds]
__monty__ has quit [Quit: leaving]
{^_^} has joined #nixos-chat
<gchristensen> this morning I made the colorful lamp on the piano sync with the piano based on pitch and volume via hue, was fun (though a bit slow)
<aleph-> gchristensen: Neat
<aleph-> I continu ever onwards to a panopticon society
* aleph- is writing several data analysis daemons
* aleph- just needs a good way to scrape FB/twitter reliably...
<gchristensen> are we not already living in a digital panopticon
<aleph-> gchristensen: I mean basically
<aleph-> I meant a personal panopticon