!oNSIfazDqEcwhcOjSL:matrix.org

disko

355 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko90 Servers

Load older messages


SenderMessageTime
19 May 2024
@matthewcroughan:defenestrate.itmatthewcroughanJust testing it out now 12:12:33
@matthewcroughan:defenestrate.itmatthewcroughanpasses all the existing tests12:12:43
@matthewcroughan:defenestrate.itmatthewcroughan
corpo-disko-images> + mount /dev/disk/by-partlabel/disk-disk1-firmware /mnt/firmware -t vfat -o defaults -o X-mount.mkdir
corpo-disko-images> + /nix/store/gc39rhvazg28s7y80c4c0a24x3hsv92p-postMountHook.sh
corpo-disko-images> + rm -rf /tmp/tmp.5zqSsB08B1
corpo-disko-images> warning: the group 'nixbld' specified in 'build-users-group' does not exist
corpo-disko-images> cp: cannot access '/nix/store/1xx8c0x5lwrdz83xlc2b7ii3vgc290g3-gtk4-4.14.3/share/gtk-4.0/valgrind': Cannot allocate memory
corpo-disko-images> cp: cannot access '/nix/store/1xx8c0x5lwrdz83xlc2b7ii3vgc290g3-gtk4-4.14.3/share/icons': Cannot allocate memory
corpo-disko-images> cp: cannot access '/nix/store/1xx8c0x5lwrdz83xlc2b7ii3vgc290g3-gtk4-4.14.3/share/locale': Cannot allocate memory
corpo-disko-images> cp: cannot access '/nix/store/1xx8c0x5lwrdz83xlc2b7ii3vgc290g3-gtk4-4.14.3/share/metainfo': Cannot allocate memory
corpo-disko-images> [  134.223748] reboot: Power down
error: builder for '/nix/store/pl396syvybgp4rdg22q0cw6ynb2jsk1c-corpo-disko-images.drv' failed with exit code 123;
       last 10 log lines:
       > + findmnt /dev/disk/by-partlabel/disk-disk1-firmware /mnt/firmware
       > + mount /dev/disk/by-partlabel/disk-disk1-firmware /mnt/firmware -t vfat -o defaults -o X-mount.mkdir
       > + /nix/store/gc39rhvazg28s7y80c4c0a24x3hsv92p-postMountHook.sh
       > + rm -rf /tmp/tmp.5zqSsB08B1
       > warning: the group 'nixbld' specified in 'build-users-group' does not exist
       > cp: cannot access '/nix/store/1xx8c0x5lwrdz83xlc2b7ii3vgc290g3-gtk4-4.14.3/share/gtk-4.0/valgrind': Cannot allocate memory
       > cp: cannot access '/nix/store/1xx8c0x5lwrdz83xlc2b7ii3vgc290g3-gtk4-4.14.3/share/icons': Cannot allocate memory
       > cp: cannot access '/nix/store/1xx8c0x5lwrdz83xlc2b7ii3vgc290g3-gtk4-4.14.3/share/locale': Cannot allocate memory
       > cp: cannot access '/nix/store/1xx8c0x5lwrdz83xlc2b7ii3vgc290g3-gtk4-4.14.3/share/metainfo': Cannot allocate memory
       > [  134.223748] reboot: Power down
       For full logs, run 'nix log /nix/store/pl396syvybgp4rdg22q0cw6ynb2jsk1c-corpo-disko-images.drv'.
12:28:52
@matthewcroughan:defenestrate.itmatthewcroughanmore memory errors!12:28:54
@matthewcroughan:defenestrate.itmatthewcroughanit is just so spurious12:29:04
@matthewcroughan:defenestrate.itmatthewcroughanYep, simply running the build a second time, it doesn't run out of memoryl.12:33:21
@matthewcroughan:defenestrate.itmatthewcroughan * Yep, simply running the build a second time, it doesn't run out of memory.12:33:22
@matthewcroughan:defenestrate.itmatthewcroughanOh.. how do you control the partition ordering?13:07:48
@lassulus:lassul.uslassuluspriority13:13:56
@lassulus:lassul.uslassuluslower is earlier13:14:02
@lassulus:lassul.uslassulusotherwise it's alphabetical13:14:05
@matthewcroughan:defenestrate.itmatthewcroughan lassulus: what's the best way to to the string placeholder in the example? 13:28:17
@matthewcroughan:defenestrate.itmatthewcroughan
      example = ''
        ${pkgs.zstd}/bin/zstd --compress $out/*raw
        rm $out/*raw
      '';

13:28:29
@matthewcroughan:defenestrate.itmatthewcroughan ''${pkgs.zstd} 13:28:42
@matthewcroughan:defenestrate.itmatthewcroughan * ''${pkgs.zstd} ? 13:28:43
@matthewcroughan:defenestrate.itmatthewcroughan or will those ''s show up in the user facing doc? 13:29:30
@lassulus:lassul.uslassulusliteralExample13:29:33
@matthewcroughan:defenestrate.itmatthewcroughan
❯ rg literalExample
lib/default.nix
146:      scrubOptionValue literalExpression literalExample

lib/options.nix
400:  literalExample = lib.warn "lib.literalExample is deprecated, use lib.literalExpression instead, or use lib.literalMD for a non-Nix description." literalExpression;

13:29:57
@matthewcroughan:defenestrate.itmatthewcroughandeprecated?13:29:59
@matthewcroughan:defenestrate.itmatthewcroughan literalExpression would still string interpolate if I put a ${pkgs.zstd} though right? 13:30:51
@matthewcroughan:defenestrate.itmatthewcroughanIt'll still take the string context from it?13:30:59
@matthewcroughan:defenestrate.itmatthewcroughan * It'll still take the string context from it and substitute a nix store path?13:31:05
@lassulus:lassul.uslassuluswell I'm old I can't keep up with all the deprecations :D13:31:31
@matthewcroughan:defenestrate.itmatthewcroughanI'm young and neither can I13:31:41
@matthewcroughan:defenestrate.itmatthewcroughan But yes, I don't know how to provide an example that escapes the ${}, literalExpression still won't do that 13:32:25
@matthewcroughan:defenestrate.itmatthewcroughan I'm unsure if the '' ends up getting rendered 13:32:50
@matthewcroughan:defenestrate.itmatthewcroughan
nixos/modules/services/networking/jibri/default.nix:      example = literalExpression ''
nixos/modules/services/networking/jibri/default.nix-        "jitsi-meet" = {
nixos/modules/services/networking/jibri/default.nix-          xmppServerHosts = [ "localhost" ];
nixos/modules/services/networking/jibri/default.nix-          xmppDomain = config.services.jitsi-meet.hostName;
nixos/modules/services/networking/jibri/default.nix-
nixos/modules/services/networking/jibri/default.nix-          control.muc = {
nixos/modules/services/networking/jibri/default.nix-            domain = "internal.''${config.services.jitsi-meet.hostName}";
nixos/modules/services/networking/jibri/default.nix-            roomName = "JibriBrewery";
nixos/modules/services/networking/jibri/default.nix-            nickname = "jibri";
``
13:37:39
@matthewcroughan:defenestrate.itmatthewcroughan *
nixos/modules/services/networking/jibri/default.nix:      example = literalExpression ''
nixos/modules/services/networking/jibri/default.nix-        "jitsi-meet" = {
nixos/modules/services/networking/jibri/default.nix-          xmppServerHosts = [ "localhost" ];
nixos/modules/services/networking/jibri/default.nix-          xmppDomain = config.services.jitsi-meet.hostName;
nixos/modules/services/networking/jibri/default.nix-
nixos/modules/services/networking/jibri/default.nix-          control.muc = {
nixos/modules/services/networking/jibri/default.nix-            domain = "internal.''${config.services.jitsi-meet.hostName}";
nixos/modules/services/networking/jibri/default.nix-            roomName = "JibriBrewery";
nixos/modules/services/networking/jibri/default.nix-            nickname = "jibri";
13:37:42
@matthewcroughan:defenestrate.itmatthewcroughanyeah that looks to be the way13:37:47
@lassulus:lassul.uslassulusmaybe just escape the ${ then?13:38:10

Show newer messages


Back to Room ListRoom Version: 10