!coeAONBrWyDJnYMbMi:nixos.org

NixOS System Operations

85 Members
About system administration for running NixOS systems in production. Declaratively manage your operations. | Room recommendations: #networking:nixos.org28 Servers

Load older messages


SenderMessageTime
6 Apr 2024
@k900:0upti.meK900 ⚡️The more correct way to do it would be through a bootloader script, yes09:48:43
@k900:0upti.meK900 ⚡️But the important thing here is that you can't just symlink NixOS init to the right place and expect it to work09:49:01
@k900:0upti.meK900 ⚡️Because normally activation happens before that09:49:06
@k900:0upti.meK900 ⚡️So you have to have your own thing that will run the activation script and then run the stage2 init09:49:24
@steveej0:matrix.orgsteveej

FWIW, this works imperatively on the system:

set -xeEu -o pipefail

result="$(nix build --refresh --tarball-ttl 0 github:holochain/holochain-infra/workorch-zos#nixosConfigurations.tfgrid-devnet-vm0.config.system.build.toplevel --print-out-paths --no-link)"

ln -sf "${result}"/init /init
09:49:30
@steveej0:matrix.orgsteveeji'd be ok putting this anywhere appropriate. but i want to prevent running it anywhere else other than on the actual target system, for probably obvious reasons 😆09:50:47
@steveej0:matrix.orgsteveejthis is just the update use-case. i've already got something for the initial system assembly09:51:07
@steveej0:matrix.orgsteveej i'm looking through the shim code you've sent me and am intimidated by wrangling with /dev entries :-) is this used as a PID1 shim? 09:53:34
@steveej0:matrix.orgsteveejeither i'm oversimplifying or my use-case is actually simpler than in WSL09:54:17
@k900:0upti.meK900 ⚡️The /dev stuff can be ignored09:55:47
@k900:0upti.meK900 ⚡️It's a workaround for a stupid WSL bug09:55:50
@tumble1999:matrix.org@tumble1999:matrix.org joined the room.10:11:52
@steveej0:matrix.orgsteveej

this works (obviously it's not a noop anymore)

      boot.loader.external.installHook = pkgs.writeShellScript "noop" ''
        ${pkgs.coreutils}/bin/ln -sf "$1"/init /init
      '';
10:37:57
@adam:robins.wtfadamcstephens 🐝 The lxc container does something similar 11:29:02
@sammy:cherrykitten.devSammy (It/Its) joined the room.13:05:26
@raitobezarius:matrix.orgraitobezariusMy googlefu is failing me but is anyone aware of some studies on NVMe/SATA SSD being shared between N VMs and expressing their inner performance characteristics like speed and IOPS off the original device?18:22:07
@raitobezarius:matrix.orgraitobezariusWith some synthetic workloads or something18:22:16
@raitobezarius:matrix.orgraitobezariusI am also curious if it talks about virtio single SCSI driver and takes into account IO threads, etc.18:22:59
7 Apr 2024
@dragoshr:matrix.orgDragos-Andrei Rotaru (dragosh_developer) joined the room.11:49:47
8 Apr 2024
@levigross:matrix.orgLevi joined the room.03:20:38
@levigross:matrix.orgLevi changed their display name from levigross to Levi.03:38:38
@galaxyyy:matrix.orgSaturn joined the room.06:01:33
@k900:0upti.meK900 ⚡️https://lore.kernel.org/all/ZhBRSM2j0v7cOLn%2F@oracle.com/T/#u11:21:55
@k900:0upti.meK900 ⚡️Woo new dtrace11:21:57
@raitobezarius:matrix.orgraitobezariuswooooooow11:22:42
@raitobezarius:matrix.orgraitobezariusnixpkgs when11:22:55
@raitobezarius:matrix.orgraitobezariusi so want dtrace11:23:25
@k900:0upti.meK900 ⚡️I love how their main branch is dev11:25:15
@k900:0upti.meK900 ⚡️And the 2.0 branch is devel11:25:19
@k900:0upti.meK900 ⚡️Just in case you get confused11:25:22

Show newer messages


Back to Room ListRoom Version: 10