<ashkitten>
i don't know how to represent arrays on a filesystem
<gchristensen>
uh oh
<ashkitten>
i forgot that yaml has arrays
<gchristensen>
I guess references are solved with symlinks
<ashkitten>
sure
<ashkitten>
i've also technically got the issue of differentiating numbers and booleans and strings
<gchristensen>
just require quotes
<ashkitten>
fair enough
<ashkitten>
arrays, tho...
<ashkitten>
dammit, i'll worry about that later
<jackdk>
foo/0, foo/1, ...?
<jackdk>
I still think this is ill-advised but I also like seeing more fun filesystems in the world, so... o7
<ashkitten>
yaml differentiates sequences from mappings, i'd have to mark it as an array somehow
<gchristensen>
require the user touch a file in `foo`, like foo/.list, and mandate that the numbers go from 0...n ?
<ashkitten>
what if the user touches the file after mappings are created
<ashkitten>
should they be destroyed?
<jackdk>
nobody else parses yaml the same way, don't feel like you need to break that trend. just do what you want 'cause a pirate is free
<gchristensen>
EPERM
<ashkitten>
so the user shouldn't be allowed to turn a sequence into a mapping or vice versa if they have contents?
<ashkitten>
sounds fine to me
* gchristensen
is obnoxiously tempted to make a custom fuse fs to play with his immutable root
<gchristensen>
racing to a computer unusable by anybody other as quickly as possible
<ashkitten>
heheh
<sphalerite>
gchristensen: the best form of security.
<sphalerite>
jasongrossman: you're in Australia, right? Someone was asking about the nix[os] community in Melbourne on twitter
<jasongrossman>
sphalerite: I am in Australia. Not in Melbourne, though, and I don't know anything about nix people in Melbourne, sadly. You've got a good memory though!
<etu>
eyJhb: How so?
lassulus has quit [Ping timeout: 268 seconds]
<ashkitten>
i've no idea what i'm doing wrong but this fuse library but it keeps complaining that the file descriptor isn't in some directory cache
<ashkitten>
or smth
<ashkitten>
might be feeding it weird info with my getattr impl
endformationage has quit [Quit: WeeChat 2.5]
<ashkitten>
or it doesn't like that exa is calling readdir without a file handle
* etu
is tempted to order the Pinebook Pro
<etu>
And run Nix on it
lassulus has joined #nixos-chat
<eyJhb>
etu: bridges and stuff :D
<etu>
eyJhb: ah, yeah, it doesn't seem cheap to get a car from .dk to .se
<etu>
That's why I don't go over denmark when I go to germany, I take the ferry from Sweden :p
<eyJhb>
That annoyws me quite some etu, that the Ferry from Frederikshavn to Goteborg costs 390,- DKK. But Øresundsbroen costs 450, with the added 300~ for getting to Fyn too (storebæltsbroen) :p
<eyJhb>
I am getting scammed!
<eyJhb>
"Danmark er med 27 pct. det land i Norden med færrest kvindelige chefer." - "Denmark with 27 percent the country in the Nordic countries with the fewest female managers.". Always annoys me, as it seems like we need to have 50/50 all places, and it always seems to be the top positions
<ashkitten>
heck
<ashkitten>
i've almost got it to list directories
<jasongrossman>
Since we're almost on the topic, could anybody please tell me the best web site for booking trains in Denmark? Or doesn't it matter which web site I use?
<eyJhb>
jasongrossman: I normally use rejseplanen.dk
<eyJhb>
But depends which rides you want, normally you can just get a Rejsekort, and then check in when you get on the train, check out when your trip is done
<eyJhb>
So really depends if it is long distance, in the city, mulitple changes, etc. and which company :p
<eyJhb>
But I would suggest just getting a rejsekort, and then you can either use rejseplanen.dk, or normal Google Maps routing, and checkin with rejsekort :)
<jasongrossman>
Thank you eyJhb
<jasongrossman>
Can I hire you full time for trip planning? Would you work for 10 Kr a day?
<eyJhb>
jasongrossman: well it is infinite more than I am currently working for, sooo :p
<jasongrossman>
Oh dear. :-(
<eyJhb>
Haha, but I have the choice of actually making money, but I just want to work on my opensource platform :D
<eyJhb>
Which is really stupid, because I NEED MONEY :(
<eyJhb>
Hoping LEGO will play nice and show some support
<jasongrossman>
I'm not sure it is stupid.
<eyJhb>
Well, when you have a car and got bills to pay, and living as a student :p
<jasongrossman>
I've had WILDLY varying salaries, including times with none at all, and it's made very little difference to my happiness. (Of course I know this attitude doesn't work for most people in the world - it depends where you live.)
<eyJhb>
Ahh but you see, I am going negative each month because I don't make enough ;)
<jasongrossman>
Yeah. Need to make some eventually.
<eyJhb>
Yeah, but as soon as we hit the semester start, I am only allowed to work X hours on my job which only just about gets me to hit 0 :p - But yeah, just want to be done and get a job that pays well. Which should be easy
<jasongrossman>
That's OK then.
<eyJhb>
Yes! - Also I am starting to get some money by attending meetings with my competetion platform
<eyJhb>
Hoping for them to join me, one of us, one of us!
<manveru>
wonder why... had trouble with it as well
<manveru>
too many comments?
<sphalerite>
yeah I think so
jasongrossman has quit [Ping timeout: 245 seconds]
psyanticy has joined #nixos-chat
noonien has joined #nixos-chat
jasongrossman has joined #nixos-chat
<joepie91>
okay, I am thoroughly confused now
<joepie91>
error: Package ‘steam’ in /nix/store/1gjw76nndafxkqqa4f6cgs023wn7zsrs-source/pkgs/games/steam/steam.nix:33 is marked as broken, refusing to evaluate.
<joepie91>
a) For `nixos-rebuild` you can set
<joepie91>
{ nixpkgs.config.allowBroken = true; }
<joepie91>
in configuration.nix to override this.
<joepie91>
b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
<joepie91>
{ allowBroken = true; }
<joepie91>
to ~/.config/nixpkgs/config.nix.
<joepie91>
(use '--show-trace' to show detailed location information)
<not-joepie91>
argh!
<not-joepie91>
why is the bridge not auto-pasting that
<joepie91>
there is no broken marker in there at all
<infinisil>
Oh lol, I didn't realize not-joepie91 was actually joepie91 for a moment
<joepie91>
that is the file it mentions
<joepie91>
and it has been giving me this error whenever I try to install steam for like a month
<joepie91>
but there are no issue tracker issues about it
<joepie91>
so... wut?
<joepie91>
why is it claiming that it's marked broken when it's clearly not, and seemingly the error doesn't happen for anybody else?
<infinisil>
Is it marked as broken in the file the error shows?
<joepie91>
infinisil: no, the gist *is* the file shown in the error
<joepie91>
hence my confusion
<infinisil>
joepie91: Got any overlays?
<joepie91>
infinisil: yes, nixpkgs-mozilla and my own, neither of which define steam - I do have a packageOverride that overrides `nativeOnly = true` for steam
<joepie91>
iirc that was to work around a game not launching
<joepie91>
infinisil: any idea what might be causing it?
avn has quit [Ping timeout: 245 seconds]
<yorick>
joepie91: what does steam.meta.broken say?
<joepie91>
yorick: how do I find the answer to that? :)
<yorick>
joepie91: nix repl '<nixpkgs>'
<joepie91>
oh right, we have a repl
<joepie91>
yorick: required a bit more work due to my config setup, but it says true
<joepie91>
in <nixpkgs> it says false
<joepie91>
so presumably something in my config changes it...
<joepie91>
so why did the steam package work previously
<joepie91>
but not now
<joepie91>
"Mark native-only Steam as broken (due to segfault inside D-Bus). Seems it was already broken for a long time. Doesn't apply to steam-run."
<joepie91>
but :|
<tilpner>
zimbatm: Hey, I just saw the new issues templates, and I feel "# a list of nixos modules affected by the problem" is slightly underspecified. Does it refer to module paths, or option attribute paths? If the reply is meant to eventually be used in ofborg, it might be good to specify the format (with example)
<joepie91>
"Even image quality via Netflix or other internet service improves drastically."
<joepie91>
lol
<andi->
I am not yet sure if it really is a switch or a glorified switch panel
<adisbladis>
andi-: money > sense
<andi->
adisbladis: yeah
<adisbladis>
It's pretty common in the audio world ;)
<andi->
I liked oe some guy at the local autdio store wanted to sell me special cabels to listen to music... like those standard cat6 cables but with gold plating and super expensive..
<andi->
"less buffering"
<gchristensen>
and you didn't buy immediately?
<adisbladis>
My speaker cables ARE cat5 cables ^_^
<andi->
No, I told him that I use wireles. That has the clearest audio quality since it has no medium inbetween sender and receiver..
<gchristensen>
hahaha
<adisbladis>
I met a fun guy in an audio shop who ONLY listened to mono vinyls
<gchristensen>
andi-: next up is make long hard tubes with a vacuum inside, and wireless tx/rx on either side.
<andi->
gchristensen: good idea... maybe next life
<gchristensen>
finally, the audio transmission quality of deep space
<adisbladis>
What encoding are you using on your wireless signal?
<gchristensen>
a low frequency transmission rate. the high frequency rates make the audio too choppy and you lose the grain of the EM spectrum
<eyJhb>
Something is very very funky... Stuff actually works. In the first try.. What is this magic!
<eyJhb>
Would not expect that after soooo many changes, at all....
<gchristensen>
$ zfs get compressratio rpool/root
<gchristensen>
NAME PROPERTY VALUE SOURCE
<gchristensen>
rpool/root compressratio 3.23x -
Drakonis has joined #nixos-chat
endformationage has joined #nixos-chat
<ashkitten>
mornin heckers
<gchristensen>
hey friend :)
<ashkitten>
wait
<ashkitten>
im the hecker
<sphalerite>
wait
<ashkitten>
and tired
<sphalerite>
im the hecker
<ashkitten>
sphalerite's the hecker now i guess
<ashkitten>
smh
<sphalerite>
(my surname is Heckemann)
<ashkitten>
sweet
<__monty__>
Oh, I thought it was a middle ground between hacker and heckler.
* adisbladis
heckles sphalerite
<ashkitten>
today i will be having more fun with fuse, i think
<gchristensen>
nice
<ashkitten>
gchristensen: did you see the gist i linked?
<gchristensen>
yup
<gchristensen>
looked cool
<samueldr>
I thought ashkitten was going to say "hecking tired" or something along the line
<ashkitten>
i'm very happy
<gchristensen>
I look forward to backing up my system with yaml
<ashkitten>
samueldr: im that too
<ashkitten>
gchristensen: lol
<gchristensen>
hook it up to a document database backend and it is ready
<eyJhb>
So it's you sphalerite !
<eyJhb>
Wondered who Linus was
<eyJhb>
Even though it is pretty obivious from your Github
<sphalerite>
lol
<ashkitten>
i still need to implement reading, writing, syncing, watching the backing yaml file, creation, deletion, and a few other things
<eyJhb>
It's not easy with all the different username :p
<ashkitten>
oh and file handles. currently don't have those
<eyJhb>
Are you building a yaml file system?
<eyJhb>
:p
<ashkitten>
yep
<eyJhb>
But whyyyy?
<gchristensen>
because, eyJhb
<samueldr>
fun and profit^W^W
<eyJhb>
Expected a "why not", but because works as well
<eyJhb>
"profit" ++
<ashkitten>
i think, deep down, we all want to build a yaml filesystem. i'm just the only one brave enough to step up
* joepie91
blink
<ashkitten>
also it's hilarious
<eyJhb>
What are you writing it in?
<eyJhb>
It is a fuse filesystem, so.. C?
<eyJhb>
Or am I mixing everything up?
<ashkitten>
i'm writing it in rust using a convenience wrapper library around a reimplementation of libfuse
<ashkitten>
because some things in fuse are annoying to implement, like inode-path conversion and reading directories
<eyJhb>
I am curious now... Waaaay too curious ...
<ashkitten>
:)
<eyJhb>
I have enough projects :( But now I kinda want to build a yaml file system... Damn you ashkitten !
<ashkitten>
damn me!
<aleph->
I should revamp my fuse fs
<aleph->
Use more websites for storing files
<Taneb>
One of my friends once made a fuse interface for X
<ashkitten>
i didn't understand what graham was talking about and then i went and did it and it's the most enjoyable and rewarding thing i've made in a long time
<eyJhb>
ashkitten: what did he say ? :p
<ashkitten>
oh just something about wanting to write a fuse filesystem for fun
<ashkitten>
honestly this wrapper i've been using, fuse_mt, has made it extremely simple to do things. i haven't had to go look up how to do anything, really
<ashkitten>
and then ofc there's serde which is just extremely pleasing
<aleph->
Doing some Rust eh?
<ashkitten>
yep
<aleph->
Nice, need to jumo back in. Haven't really written anything since partially doing a C compiler and a idealized MIPS 1 assembler
<ashkitten>
i haven't written anything in rust for a while
<aleph->
Yeah mostly just python and bash for me.
<aleph->
Did some go for a tool at work but dropped it for a while
<ashkitten>
i think the last project i did was my 256-bit dos demo
<ashkitten>
not in rust
<aleph->
Yep, I mean I'm gonna finish this lobsters service this weekend finally. So I guess nix counts?
<ashkitten>
nice
<zimbatm>
tilpner: yeah the idea was to eventually be able to map nixos modules and pkgs attribute paths to maintainers
<zimbatm>
if you have a better idea on how to present the information it would make me happy
<zimbatm>
basically the idea is that the issue submitter would enter either a single or array of attribute and nixos module paths
<zimbatm>
we can add some heuristic on top to accept pkgs.hello, nixpkgs.hello and hello
<zimbatm>
the nixos modules would be based on the modules path. Eg: services.sshd
<tilpner>
zimbatm: My issue is that "nixos module paths" is ambigous to me. Should the user enter e.g. security/hidepid.nix or security.hideProcessInformation?
<tilpner>
...oh
<tilpner>
Maybe rename to option path, or give an example in the template
<zimbatm>
do you mind submitting a PR that would clarify things for you?
<zimbatm>
it's not super important right now but it's nice if we can then have a backlog of issues to map
<__monty__>
I have one for subreddits. so "r/ programmerhumor" goes to the sub you think it does.
<gchristensen>
ekleog: do you have a second?
<infinisil>
__monty__: Neat, thanks
<__monty__>
Time to read the comments on the flakes RFC PR : )
<gchristensen>
good luck
<__monty__>
I wonder if there's a better format to read them in than "on github?"
<gchristensen>
did github stop unicorning?
<samueldr>
hmm, infinisil's issue makes me think... async interfaces is overrated... while it's true that the interface hangs otherwise, at least it's not likely to do weird thing in laggy situations, just... not respond?
<samueldr>
thinking about "old school" textual interface like that inventory system where I once worked... every action was synchronuous you could queue up key presses while it was working, without fear
<__monty__>
I agree. I often work on older machines and I love just to keep sending keystrokes and then having everything work out as expected when the lag's resolved.
<infinisil>
Yeah exactly
<infinisil>
Async stuff should be reserved for things that don't have any influence on the outcome
<__monty__>
I do get why it's the way it is though. With all the various "smart" suggestions.
<__monty__>
Too bad it's still the same thing if you turn all those off.
<samueldr>
and in a way, doing things like that async might be perverse; you end up doing more work to show that the interface is still responding, instead of working on the dang thing that makes the interface unresponsive
<samueldr>
(while partially untrue, when done properly with multiple threads and CPU... which might be hard)
<__monty__>
I wouldn't want network routed "smart" suggestions slowing down my UI tbh. I'll take jank over consistency in that case.
endformationage has quit [Ping timeout: 244 seconds]
<__monty__>
Though I'd rather not have them at all.
<manveru>
__monty__: i'm still not sure what a good setup is
<manveru>
like... how the hell do i get completion and such in spacemacs
<manveru>
i tried the hies-nix thing, but it just doesn't find my libraries (guess because i don't use stack or cabal)
<__monty__>
Don't think a good setup exists yet.
<__monty__>
I just use ghcid and a stale ghcmod generate something.
<__monty__>
Which gives me partial completions : )
<manveru>
ghcmod doesn't exist anymore though
<__monty__>
Yah, *stale*.
<__monty__>
It still exists in dante and the stack-specific one though.
<manveru>
also i still have no clue whether stack or cabal is better
<manveru>
so i just ignored it so far
<manveru>
why don't they unify on one build system?
<__monty__>
Stack isn't very popular anymore since new-build, fwiw.
<__monty__>
I switched to nix to escape from stack.
<__monty__>
On arch though, so not quite representative.
<infinisil>
Unfortunately HIE doesn't really work with new-build yet..
<__monty__>
I consider that HIE's problem : )
<__monty__>
I've heard it gets unbearably slow really quickly when scaling up?
<infinisil>
__monty__: It kinda does yeah, I think the consensus is to not have too big files
<ekleog>
gchristensen: yup, about what?
psyanticy has quit [Quit: Connection closed for inactivity]
waleee-cl has quit [Quit: Connection closed for inactivity]
<ivan>
fortunately I tested scrub before putting it to use
<andi->
I had it running for good 6 months before actually putting it into "production". BTRFS scrub didn't show any issues; neither did ZFS scrub so far but that will still day another half day
__monty__ has quit [Quit: leaving]
<ashkitten>
i have a problem
<ashkitten>
i'm trying to write in an inotify watcher to reload the filesystem if the backing yaml file changes
<ashkitten>
i could maybe do something where it drops file handles and reloads the the in-memory store...
<ashkitten>
i tried just dropping the filesystem but that's got its own issues
<ashkitten>
hmm
<ashkitten>
a good thing i made everything thread-safe to start
<ashkitten>
oh no
<ashkitten>
let mut current_data: Arc<ConfuseData> = Arc::clone(&*Arc::clone(&self.data).lock().unwrap().borrow());
<ashkitten>
suddenly the name "confuse" seems rather on the nose
<gchristensen>
eh just rub some more rust in it
<ashkitten>
lol
<ashkitten>
gchristensen: so far i have a seemingly complete readonly filesystem implementation complete with reloading from backing store
<ashkitten>
it simply drops all active file descriptors on reload, without resetting the monotonic counter
<ashkitten>
so file descriptor conflicts can't happen
<ashkitten>
all i've got left to do is implement writability, i guess?
<gchristensen>
nice!
<ashkitten>
i should also look into permissions
<ashkitten>
as in, having some
<ashkitten>
i'll probably just take them from the backing file?
<samueldr>
that's likely the reasonable action
<ashkitten>
need to figure out how to do that
<samueldr>
yaml fields don't have permissions AFAIK
<ashkitten>
you're right
<samueldr>
unless you want to make a yaml-backed FS, which in turn have files described in YAML, which I think is not what you're doing
<ashkitten>
interestingly, if i return 0 for permissions it still lets the user that mounted the filesystem read everything even though it's supposedly owned by root with permissions all 0
<andi->
well the FS is responsible for enforcing those
<andi->
(at least in the fuse case?)
<ashkitten>
hm
<ashkitten>
well it doesn't let me read the files as "nobody"
<ashkitten>
or list them
<ashkitten>
even though i don't do anything to enforce that
<ashkitten>
i can list the files in the directory above it
<ashkitten>
it's possible that the library i'm using has something to do with that
<colemickens>
I am so sick of autotools projects that don't check in generated files and also dont manage to publish tarballs when they tag new releases.
<colemickens>
Really fun to package.
<colemickens>
well, that was overly salty, I guess they've just changed the release archive formats
<andi->
I like those projects that state one should use the tarballs from the website but thatn haven't managed to put any there in the last years while doing release on github and tags etc..
jasongrossman has quit [Remote host closed the connection]