!oNSIfazDqEcwhcOjSL:matrix.org

disko

365 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko93 Servers

Load older messages


SenderMessageTime
9 Jan 2025
@intergalactic-turtle-fucker:arcticfoxes.net@intergalactic-turtle-fucker:arcticfoxes.net changed their profile picture.03:00:33
@lgcl:lgcl.delgcl (she/they) joined the room.13:24:48
10 Jan 2025
@laurynasp:matrix.orglaurynasp joined the room.19:50:23
@sigmasquadron:matrix.orgSigmaSquadron changed their display name from SigmaSquadron (Away until 2024-01-12) to SigmaSquadron (Away until 2024-01-11).22:15:58
@sigmasquadron:matrix.orgSigmaSquadron changed their display name from SigmaSquadron (Away until 2024-01-11) to SigmaSquadron (Away until 2025-01-11).22:43:36
@zvzg:matrix.orgSáviohttps://github.com/nix-community/disko/pull/936 minor fix23:32:18
@zvzg:matrix.orgSáviohttps://github.com/nix-community/disko/pull/923/files I noticed this one. It's a significant typo, since it breaks the PostVM hook from working23:33:13
11 Jan 2025
@orzklv:matrix.org@orzklv:matrix.org left the room.04:07:41
@nam3l33ss:matrix.org·☽•Nameless☆•777 · ± changed their profile picture.04:42:58
@intergalactic-turtle-fucker:arcticfoxes.net@intergalactic-turtle-fucker:arcticfoxes.net removed their profile picture.10:09:00
@intergalactic-turtle-fucker:arcticfoxes.net@intergalactic-turtle-fucker:arcticfoxes.net removed their display name ColdSideOfYourPillow.10:09:07
@intergalactic-turtle-fucker:arcticfoxes.net@intergalactic-turtle-fucker:arcticfoxes.net left the room.10:09:38
@sigmasquadron:matrix.orgSigmaSquadron changed their display name from SigmaSquadron (Away until 2025-01-11) to SigmaSquadron.15:06:55
@10leej:matrix.org@10leej:matrix.org left the room.18:45:25
@pandapip1:matrix.orgpandapip1 joined the room.21:23:12
12 Jan 2025
@nakibrayane:matrix.orgRayane Nakib (ريّان نقيب) joined the room.12:38:51
@rts-kaede:thewired.chかえでちゃんDo disko supports getting the system RAM size and using that as the size of the swap partition?13:30:14
@lassulus:lassul.uslassulusMaybe with nixos-facter13:47:38
@rts-kaede:thewired.chかえでちゃん

Thank you for answering. Guess I am not messing with that then, more complex than I thought it would be.
Btw, just watched your talk on YouTube (NixCon2023)

  • How is the state for checking for partition alignment automatically? For example does it warn me when partition is not aligned?
  • I heard it is possible to use YubiKey with luks2 in disko, is there any documentation example for that?
14:18:47
13 Jan 2025
@rts-kaede:thewired.chかえでちゃん

Also, I have:

nixosConfigurations = {
      book-of-the-azure-sky = lib.nixosSystem {
        system = "x86_64-linux";
        specialArgs.inputs = inputs;
        modules = [
          disko.nixosModules.disko
          <...disko-config.nix here...>
        ];

and disko-config.nix:

{
  device ? throw "Set this to your disk device, e.g. /dev/sda",
  ...
}: {
  disko.devices = {
    disk.main = {
      inherit device;
      type = "disk";
<...>

How to use disko-config.nix in modules and set the device in disko-config.nix to /dev/sdb?

22:23:20
14 Jan 2025
@zvzg:matrix.orgSávioIt seems diskoImagesScript is broken on nixpkgs master, as reported on https://github.com/nix-community/disko/issues/900#issuecomment-2556781723 I have run into the same issue, and I tried to fix it. Ever since vmRunCommand started depending on the Nix build environment and the switch from 9p to virtiofs, it has become awkward to make it work. The generated script doesn't run in the Nix build environment, so the only way I found to do it was saving the environment at build time and loading it in the script. It works, but it's a hack. Then I found out virtiofsd must be run as root or as fake root in a user namespace, which requires some code changes. diskoImages still works fine though. Is diskoImagesScript still supported?04:25:20
@zvzg:matrix.orgSávio* It seems diskoImagesScript is broken on nixpkgs master, as reported at https://github.com/nix-community/disko/issues/900#issuecomment-2556781723 I have run into the same issue, and I tried to fix it. Ever since vmRunCommand started depending on the Nix build environment and the switch from 9p to virtiofs, it has become awkward to make it work. The generated script doesn't run in the Nix build environment, so the only way I found to do it was saving the environment at build time and loading it in the script. It works, but it's a hack. Then I found out virtiofsd must be run as root or as fake root in a user namespace, which requires some code changes. diskoImages still works fine though. Is diskoImagesScript still supported?04:26:13
@dustee:matrix.orgdusteeRedacted or Malformed Event16:39:50
@dustee:matrix.orgdustee * when i connect to sshfs with nix filesystems.<>.fsType = "sshfs" the mountpoint freezes and doesnt work properly but doing it with a manual command with the same options works as expected. anyone experiencing anything similar? 16:40:00
15 Jan 2025
@usernamedelta89:matrix.orgusernamedelta89 joined the room.00:34:32
@py6m0e7i:matrix.orgpy6m0e7i joined the room.10:01:37
16 Jan 2025
@nxtk:matrix.orgnxtk joined the room.18:15:00
@nxtk:matrix.orgnxtk Hi, to encrypt drives during nixos-anywhere deployment, one must provide a temporary passphrase key file and add it in disko to the LUKS partition as well.
However, setting key file under boot.initrd.luks.devices."device".keyFile leads to incorrect initrd-crypttab entry, which prevents automatic TPM unlock down the line since key file isn't available anymore after installation, thus it seems like I need to remove key file entries after disko ran and partitions were mounted, but before the installation starts, do you have any ideas how to deal with that situation?
18:16:25
@lassulus:lassul.uslassulusthere is passwordFIle18:40:33
@nxtk:matrix.orgnxtkepic, missed that18:44:53

Show newer messages


Back to Room ListRoom Version: 10