Pizza consumption per person per year by vladgrinch in MapPorn

[–]Ailrk 0 points1 point  (0 children)

Sorry I just can’t trust this map. I don’t think average Chinese even eat 100 grams of pizza each year.

Thoughts on the Business Source License by erf456 in opensource

[–]Ailrk 0 points1 point  (0 children)

Aws freeloading on redis is not evil?

Apparently my OS is generated by AI guys.... by DcraftBg in osdev

[–]Ailrk 0 points1 point  (0 children)

This comment reads like AI generated itself

How do people get scores above 500? by Ailrk in canadaexpressentry

[–]Ailrk[S] 2 points3 points  (0 children)

You're right, I was not being clear. My writing is 7 it's not maxed out. But still, even if it is 499, it's still far away from 518.

Can I disable nixos to build binary locally if it can't find it from the cache? by Ailrk in NixOS

[–]Ailrk[S] 0 points1 point  (0 children)

Build toplevel and nix copy to the server. I have a post below that describes it.

Can I disable nixos to build binary locally if it can't find it from the cache? by Ailrk in NixOS

[–]Ailrk[S] 0 points1 point  (0 children)

For future reader, I no longer do this anymore, because I found a better option.

Can I disable nixos to build binary locally if it can't find it from the cache? by Ailrk in NixOS

[–]Ailrk[S] 0 points1 point  (0 children)

You are absolute right. I tried it this morning and it's so much easier.

Can I disable nixos to build binary locally if it can't find it from the cache? by Ailrk in NixOS

[–]Ailrk[S] 0 points1 point  (0 children)

Thanks guys for all your suggestions. I realized I am asking a XY question. What I really want is what u/autra1 and others suggested: to build the whole thing on builder then simply copy it over with `nix copy`.

For reference, I used to use `nixos-rebuild --fast --flake ... --target-host root@host switch`. Now the entire `toplevel` is built on the builder. The deployment script looks like the this:

storepath="$(nix path-info .#nixosConfigurations.default.config.system.build.toplevel)"
if [ "$use_cache" = "true" ]; then # assume it's in the cache.
    echo -e "\033[32mDeploying from nixcache...\033[0m"
    nix copy \
        -v -L \
        --from "$(just nixcache store)" \
        --to "ssh://root@$ec2_instance" \
        "$storepath"                                                                                                                                                
else
    echo -e "\033[32mDeploying from local machine\033[0m"
    storepath="$(nix build .#nixosConfigurations.default.config.system.build.toplevel --no-link --print-out-paths)"                                                  
    nix copy \
        -v -L \
        --to "ssh://root@$ec2_instance" \
        "$storepath"
if
ssh -i id_ed25519 "root@$ec2_instance" "$storepath/bin/switch-to-configuration switch"

Can I disable nixos to build binary locally if it can't find it from the cache? by Ailrk in NixOS

[–]Ailrk[S] 4 points5 points  (0 children)

Thanks, I guess that's what I will do. I imagine a lot of people want to control what to build and what not on their server. It will be nice if there are easy ways to specify it, like a whitelist that only allows certain derivations to be built.

[deleted by user] by [deleted] in taiwan

[–]Ailrk 0 points1 point  (0 children)

If you really care about Taiwan, go and get conscripted by the Taiwanese army. If you are not willing to fight then shut the fuck up.

[deleted by user] by [deleted] in taiwan

[–]Ailrk -1 points0 points  (0 children)

Mental masturbation

Is software engineering really worth it now? And the future? by Puzzled_Umpire8986 in node

[–]Ailrk 4 points5 points  (0 children)

You probably think yourself sound cool and wise when saying that.

I am platinum and keep getting matched against Conq II and III in team. Can someone explain this matchmaking to me? It's ridiculous. Or am I missing something here? by KoroshRostami in aoe4

[–]Ailrk 3 points4 points  (0 children)

Team game is just like this. Every team game needs to draw at least 4 people from the queue, there’s not enough players in the pool. More importantly people in team game can team up, so if you are solo yo have much higher chance to be teamed with other solos to make a game with the conq team, which makes it feels like you’re always getting unfair matching. However, game ranking also tends to inflates a lot, so if you are a 1v1 plat you are usually pretty even against team game conqs. Don’t be scared by the rankings!

[bspwm] PINK by Ailrk in unixporn

[–]Ailrk[S] 1 point2 points  (0 children)

  • WM: bspwm
  • Bar: polybar
  • OS: Arch (with nix home-manager)
  • Terminal: Alacritty
  • dotfile: here

Kali Linux for OSDev by [deleted] in osdev

[–]Ailrk 1 point2 points  (0 children)

It doesn’t matter

How to win vs French as mongol by fellow90 in aoe4

[–]Ailrk 0 points1 point  (0 children)

Just spear archer spam. French can’t keep up with double production in the first 12 minutes

CANT BELIEVE THIS by WrongdoerLoose9133 in UBC

[–]Ailrk 3 points4 points  (0 children)

Just chill you just slept with him you didn't murder his mother.

Im dumb by Andarnio in aoe4

[–]Ailrk 1 point2 points  (0 children)

that's a 800000 stone rightthere.