<samueldr>
annoyingly, can't figure out how to force a timeout with hydra :/
<samueldr>
(with a way-too-barebones project)
<ottidmes>
gchristensen: I am in a similar situation, but with a computer from 2009, although the PSU did die on me recently (became unstable), after overclocking and cheap second-hand RAM, I have no reason to buy a new one
<samueldr>
took 20s, all timeouts are 10s (those hardcoded, and meta), and database shows timeout: 10 for the build, and the build took 20s :/
<gchristensen>
you could "fix" the db to make it time out?
<samueldr>
I can modify the status, but I would have liked to see it fail :/
<gchristensen>
put an infinity sleep in there?
<samueldr>
the default timeout is 10h!
<gchristensen>
make it not 10h? :)
<samueldr>
I did, 10s!
<gchristensen>
ottidmes: nice... though a bit annoying since I am envious of these high cpu counts.
<samueldr>
I can't find anywhere where timeout is set, and the db does say the build's timeout should be 10s :/
<samueldr>
anywhere else where timeout is set*
<gchristensen>
is it nix's timeout?
<samueldr>
I'm not sure which one causes "Timed out" (status 7) in hydra
<infinisil>
ldlework: Feel free to look at the nix files ^^
<infinisil>
I'm using such a setup with all my Haskell projects
metastance has joined #nixos-chat
endformationage has quit [Quit: WeeChat 2.3]
<ldlework>
infinisil: how did you generate such a project in the first place
<ldlework>
given that it isn't just one file
<infinisil>
ldlework: Well originally with cabal init, but I removed everything I didn't want from that and added what I needed
<ldlework>
infinisil: ok
<ldlework>
how to build?
<infinisil>
ldlework: How to build what?
<ldlework>
a given day
<ldlework>
and run it
<infinisil>
Ah, cd into it and nix-build or nix-shell --run "cabal build"
<infinisil>
Hmm wait, cabal isnt' there :/
<infinisil>
Ah no it works
<elvishjerricco>
How do you all share your nixops state files with team members? Do you just keep them on bastion servers or something?
<ldlework>
i wish i had a job where that was a concern :)
<ldlework>
infinisil:
<ldlework>
./aoc1
<ldlework>
aoc1: /home/ldlework/.cabal/share/x86_64-linux-ghc-8.4.4/aoc1-0.1.0.0/input: openFile: does not exist (No such file or directory)
<ldlework>
why is it looking there?
<ldlework>
well cabal run works
* ldlework
shrugs
<infinisil>
ldlework: Ah yeah
<infinisil>
It needs a `cabal configure --datadir . --datasubdir .`
<infinisil>
Not sure if there's a better way (other than cabal new-build, which just works)
<infinisil>
ldlework: So `nix-shell --run "cabal new-run"` should just work
<ldlework>
it does
<ldlework>
I hear Haskell From First Principles is good yes?
<infinisil>
No idea
<elvishjerricco>
ldlework: Haskell From First Principles is *fine*. It's too long winded, but it does explain things well
<ldlework>
what's better
<elvishjerricco>
I've heard the wiki book is surprisingly useful. And I've heard excellent things about Graham Hutton's Programming in Haskell
metastance has quit [Quit: WeeChat 1.4]
ottidmes has joined #nixos-chat
jasongrossman has joined #nixos-chat
metastance has joined #nixos-chat
pie___ has joined #nixos-chat
pie__ has quit [Ping timeout: 268 seconds]
metastance has quit [Quit: WeeChat 2.3]
__monty__ has joined #nixos-chat
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
jasongrossman has joined #nixos-chat
pie__ has joined #nixos-chat
pie___ has quit [Ping timeout: 268 seconds]
endformationage has joined #nixos-chat
<samueldr>
anyone has experience into somehow making block devices (e.g. /dev/sd*) use "predictable" names, like the network devices; or in another way, maybe list known devices (those internals) using other names so any additional devices (e.g. usb) always starts at /dev/sda?
<samueldr>
I kinda hate how I always need to double and triple check I'm not `dd`ing to an internal drive
<samueldr>
(the goal is to get rid of /dev/sdX for internal drives, mainly)
<__monty__>
samueldr: Afaik UUIDs are predictable.
<samueldr>
yeah, predictable isn't the right term here
<samueldr>
I was making a comparison to the network interface names
<__monty__>
/dev/target/by-UUID/ for example.
<samueldr>
but what I really want is my static devices NOT to be /dev/sdX
<sphalerite>
samueldr: get an nvme device ;P
<samueldr>
I'm already using /dev/disks/by-whatever
<samueldr>
sphalerite: >:(
<samueldr>
won't help with the disks array I have :)
<samueldr>
I'm thinking some udev magic should work there
<samueldr>
the goal is to make any "/dev/sd*" a foreign disk
<samueldr>
(and yes I'm fine with manually listing the devices to be blacklisted from being /dev/sd*)
<infinisil>
I've done the first 2 days already, but now I want to make my solution so fast that it can find the solution for a 1'000'000 line input fast
<infinisil>
in reasonable time*
<infinisil>
It's not looking good as of yet, been running for 8 minutes now..
<ottidmes>
infinisil: yeah, the website itself defaults to that, was just funny to me that those were the results, you would expect the term 2018 to be the most popular term after advent of code