!oNSIfazDqEcwhcOjSL:matrix.org

disko

368 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko95 Servers

Load older messages


SenderMessageTime
27 Dec 2025
@pinpox:matrix.orgpinpox changed their display name from pinpox to pinpox [DECT: 7479].12:01:35
@jappie:jappie.devjasper changed their display name from jappie @ 39c3 to jasper @ 39c3 ☎️ 62749.13:30:50
@matthewcroughan:defenestrate.itmatthewcroughan changed their display name from matthewcroughan to matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192).14:35:24
@nagasaki:matrix.pyxiss.deNagasaki

Hello, I don't really get why my config is not working and I don't understand why the errors appears. I used to make my VMs with NixOS 24.05 (apparently old) and wanted to update to 25.11.
I get this error:

Cannot build '/nix/store/61hn1fcn4y43gsgvikkfg2ycqx7mk0l2-kernel-modules-shrunk.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/rfy659qwndivmbfnz9xqidjglj5xkq3a-kernel-modules-shrunk
       Last 2 log lines:
       > Required modules: 9p 9pnet_virtio virtiofs virtio_pci virtio_blk virtio_balloon virtio_rng
       > Can not derive a closure of kernel modules because no modules were provided.
       For full logs, run:
         nix log /nix/store/61hn1fcn4y43gsgvikkfg2ycqx7mk0l2-kernel-modules-shrunk.drv```
But my hardware-configuration.nix does provide some the modules. And even if I insert the named one, it does not change 🤔
```nix

{ config, lib, pkgs, modulesPath, ... }:

{
  imports =
    [ (modulesPath + "/profiles/qemu-guest.nix")
    ./disk.nix
    ];
  boot = {
    initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sr_mod" "sd_mod"];
    initrd.kernelModules = [ ];
    kernelModules = [ "kvm-intel" ];
    kernelPackages = pkgs.linuxKernel.packages.linux_6_12;
    extraModulePackages = [ ];    
    
    loader.grub.efiSupport = lib.mkDefault true;
    loader.grub.efiInstallAsRemovable = lib.mkDefault true;    
    
  };
  swapDevices = [ ];
  networking.useDHCP = lib.mkDefault true;

  nix.settings.trusted-users = [ "admin"];
  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}

14:54:53
@nagasaki:matrix.pyxiss.deNagasaki *

Hello, I don't really get why my config is not working and I don't understand why the errors appears. I used to make my VMs with NixOS 24.05 (apparently old) and wanted to update to 25.11.
I get this error:

Cannot build '/nix/store/61hn1fcn4y43gsgvikkfg2ycqx7mk0l2-kernel-modules-shrunk.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/rfy659qwndivmbfnz9xqidjglj5xkq3a-kernel-modules-shrunk
       Last 2 log lines:
       > Required modules: 9p 9pnet_virtio virtiofs virtio_pci virtio_blk virtio_balloon virtio_rng
       > Can not derive a closure of kernel modules because no modules were provided.
       For full logs, run:
         nix log /nix/store/61hn1fcn4y43gsgvikkfg2ycqx7mk0l2-kernel-modules-shrunk.drv
```
But my hardware-configuration.nix does provide some the modules. And even if I insert the named one, it does not change 🤔
```nix

{ config, lib, pkgs, modulesPath, ... }:

{
  imports =
    [ (modulesPath + "/profiles/qemu-guest.nix")
    ./disk.nix
    ];
  boot = {
    initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sr_mod" "sd_mod"];
    initrd.kernelModules = [ ];
    kernelModules = [ "kvm-intel" ];
    kernelPackages = pkgs.linuxKernel.packages.linux_6_12;
    extraModulePackages = [ ];    
    
    loader.grub.efiSupport = lib.mkDefault true;
    loader.grub.efiInstallAsRemovable = lib.mkDefault true;    
    
  };
  swapDevices = [ ];
  networking.useDHCP = lib.mkDefault true;

  nix.settings.trusted-users = [ "admin"];
  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}

14:55:08
@nagasaki:matrix.pyxiss.deNagasaki *

Hello, I don't really get why my config is not working and I don't understand why the errors appears. I used to make my VMs with NixOS 24.05 (apparently old) and wanted to update to 25.11.
I get this error:

Cannot build '/nix/store/61hn1fcn4y43gsgvikkfg2ycqx7mk0l2-kernel-modules-shrunk.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/rfy659qwndivmbfnz9xqidjglj5xkq3a-kernel-modules-shrunk
       Last 2 log lines:
       > Required modules: 9p 9pnet_virtio virtiofs virtio_pci virtio_blk virtio_balloon virtio_rng
       > Can not derive a closure of kernel modules because no modules were provided.
       For full logs, run:
         nix log /nix/store/61hn1fcn4y43gsgvikkfg2ycqx7mk0l2-kernel-modules-shrunk.drv
```

But my hardware-configuration.nix does provide some the modules. And even if I insert the named one, it does not change 🤔
```nix

{ config, lib, pkgs, modulesPath, ... }:

{
  imports =
    [ (modulesPath + "/profiles/qemu-guest.nix")
    ./disk.nix
    ];
  boot = {
    initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sr_mod" "sd_mod"];
    initrd.kernelModules = [ ];
    kernelModules = [ "kvm-intel" ];
    kernelPackages = pkgs.linuxKernel.packages.linux_6_12;
    extraModulePackages = [ ];    
    
    loader.grub.efiSupport = lib.mkDefault true;
    loader.grub.efiInstallAsRemovable = lib.mkDefault true;    
    
  };
  swapDevices = [ ];
  networking.useDHCP = lib.mkDefault true;

  nix.settings.trusted-users = [ "admin"];
  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}

14:55:22
@nagasaki:matrix.pyxiss.deNagasaki *

Hello, I don't really get why my config is not working and I don't understand why the errors appears. I used to make my VMs with NixOS 24.05 (apparently old) and wanted to update to 25.11.
I get this error:

Cannot build '/nix/store/61hn1fcn4y43gsgvikkfg2ycqx7mk0l2-kernel-modules-shrunk.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/rfy659qwndivmbfnz9xqidjglj5xkq3a-kernel-modules-shrunk
       Last 2 log lines:
       > Required modules: 9p 9pnet_virtio virtiofs virtio_pci virtio_blk virtio_balloon virtio_rng
       > Can not derive a closure of kernel modules because no modules were provided.
       For full logs, run:
         nix log /nix/store/61hn1fcn4y43gsgvikkfg2ycqx7mk0l2-kernel-modules-shrunk.drv

But my hardware-configuration.nix does provide some the modules. And even if I insert the named one, it does not change 🤔


{ config, lib, pkgs, modulesPath, ... }:

{
  imports =
    [ (modulesPath + "/profiles/qemu-guest.nix")
    ./disk.nix
    ];
  boot = {
    initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sr_mod" "sd_mod"];
    initrd.kernelModules = [ ];
    kernelModules = [ "kvm-intel" ];
    kernelPackages = pkgs.linuxKernel.packages.linux_6_12;
    extraModulePackages = [ ];    
    
    loader.grub.efiSupport = lib.mkDefault true;
    loader.grub.efiInstallAsRemovable = lib.mkDefault true;    
    
  };
  swapDevices = [ ];
  networking.useDHCP = lib.mkDefault true;

  nix.settings.trusted-users = [ "admin"];
  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}

14:55:32
@nagasaki:matrix.pyxiss.deNagasaki *

Hello, I don't really get why my config is not working and I don't understand why the errors appears. I used to make my VMs with NixOS 24.05 (apparently old) and wanted to update to 25.11.
I get this error:

Cannot build '/nix/store/61hn1fcn4y43gsgvikkfg2ycqx7mk0l2-kernel-modules-shrunk.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/rfy659qwndivmbfnz9xqidjglj5xkq3a-kernel-modules-shrunk
       Last 2 log lines:
       > Required modules: 9p 9pnet_virtio virtiofs virtio_pci virtio_blk virtio_balloon virtio_rng
       > Can not derive a closure of kernel modules because no modules were provided.
       For full logs, run:
         nix log /nix/store/61hn1fcn4y43gsgvikkfg2ycqx7mk0l2-kernel-modules-shrunk.drv

But my hardware-configuration.nix does provide some the modules. And even if I insert the named one, it does not change 🤔


{ config, lib, pkgs, modulesPath, ... }:

{
  imports =
    [ (modulesPath + "/profiles/qemu-guest.nix")
    ./disk.nix
    ];
  boot = {
    initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sr_mod" "sd_mod"];
    initrd.kernelModules = [ ];
    kernelModules = [ "kvm-intel" ];
    kernelPackages = pkgs.linuxKernel.packages.linux_6_12;
    extraModulePackages = [ ];    
    
    loader.grub.efiSupport = lib.mkDefault true;
    loader.grub.efiInstallAsRemovable = lib.mkDefault true;    
    
  };
  swapDevices = [ ];
  networking.useDHCP = lib.mkDefault true;

  nix.settings.trusted-users = [ "admin"];
  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}

I can still create VMs with the exact same configuration, but only changing the nixpkgs version in system.stateVersion and in the flake input url for the packages.

14:56:44
@not-jack:matrix.orgnot-jack hello, can someone explain to me why a zfs dataset has: type = "gpt"? 16:34:13
@lassulus:lassul.uslassulusit's the partition table below the zpool16:53:41
28 Dec 2025
@ed209a:matrix.orged209 how do I specify a branch in this command? nix run 'github:nix-community/disko/latest#disko-install' -- --flake git+https://git@my.repo/nix-config#hostname 13:52:29
@ed209a:matrix.orged209I'm using a main branch and it seems to only check master13:52:40
@ed209a:matrix.orged209if it was github, I'd know how13:52:57
@ed209a:matrix.orged209lol i see the problem lol, i've got the ssh syntax but trying https13:55:35
@ed209a:matrix.orged209oof size large13:55:38
@disco_stick:matrix.orgShop Smart: Shop S-Mart changed their display name from food style edible product to Shop Smart: Shop S-Mart.17:36:12
@azahi:azahi.ccazahi left the room.23:08:03
30 Dec 2025
@vicnotor:matrix.orgvicgeentor changed their display name from vicnotor to vicgeentor.11:20:11
@padarom:matrix.orgtoph joined the room.19:21:32
@zimward:zimward.moezimward changed their display name from zimward @ 39c3 ☎️ 75947 to zimward.23:39:00
@jappie:jappie.devjasper changed their display name from jasper @ 39c3 ☎️ 62749 to jasper.23:38:40
@jappie:jappie.devjasper 23:40:10
1 Jan 2026
@pinpox:matrix.orgpinpox changed their display name from pinpox [DECT: 7479] to pinpox.00:26:44
@matthewcroughan:defenestrate.itmatthewcroughan changed their display name from matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) to matthewcroughan.19:51:41
2 Jan 2026
@belak:matrix.orgbelak joined the room.07:10:59
@belak:matrix.orgbelakDoes the name of luks partitions need to be unique?07:33:10
@belak:matrix.orgbelak

Specifically the nesting of drive -> luks/lvm_pv -> lvm_vg -> partition is pretty frustrating, and naming is really confusing so I'm having a hard time following it...

Like if I have main (drive) -> crypted (maybe crypted-main or luks-main if it needs to be unique) -> main (maybe vg-main if it needs to be unique) -> root and storage (drive) -> crypted (maybe crypted-storage or luks-storage) -> storage (or vg-storage) -> data

This works, but there's a lot of duplication and the structure is relatively unclear unless you really dig into it.
Is there a better way to do that or best practices around luks?

07:34:23
@belak:matrix.orgbelak Playing around with it and using :lf . to experiment, yes - luks names need to be unique 08:00:50
@belak:matrix.orgbelak I also prefixed my vg's with vg- because they end up as /dev/vg-main/root 08:01:37
@ed209a:matrix.orged209
In reply to @belak:matrix.org
Playing around with it and using :lf . to experiment, yes - luks names need to be unique
yeah i was gonna say the name ends up in /dev/mapper/<name>
12:47:36

Show newer messages


Back to Room ListRoom Version: 10