• 10 Posts
  • 298 Comments
Joined 1 year ago
cake
Cake day: September 7th, 2024

help-circle






  • NixOS has rm. But it’s not under /bin. There is no /bin in NixOS. The user’s programs are inside /run/current-system/sw/bin, and those are symlinks from files hidden in /nix/store.

    Running rm -rf / --no-preserve-root under NixOS, will not nuke the entire system, since /nix/store is mounted as read-only, and only remounted as rw when new applications are downloaded, or older unused ones are wiped.







  • It can be simplified with the use of runCommand:

    {
      boot = {
        plymouth = {
          enable = true;
          theme = "breeze";
          logo =
            with pkgs;
            let
              src = fetchurl {
                url = "https://raw.githubusercontent.com/NixOS/nixos-artwork/refs/heads/master/logo/nix-snowflake-rainbow.svg";
                sha256 = "sha256-gMeJgiSSA5hFwtW3njZQAd4OHji6kbRCJKVoN6zsRbY=";
              };
            in
            runCommand "out.png" { } "${imagemagick}/bin/magick -background none -size 200x200 ${src} $out";
        };
      };
    }
    



  • I think that you misunderstood my comment.

    The video shows how SLI makes the frame pacing more inconsistent, which is a known issue when multiple GPUs work together to solve the same problem.

    What I am talking about is more like Nvidia Optimus. This is a common technology on laptops, where the display is connected to the low power iGPU, while games can use the dedicated Nvidia chipset.

    I don’t know about potential frame pacing issues on these technologies, and it seems like it was not addressed in the video either. However, I know that newer laptops have a switching chip that connects the display to the dedicated GPU, which, I think, aims on lowering the latency.