!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

76 Members
systemd in NixOs's stage 1, replacing the current bash tooling https://github.com/NixOS/nixpkgs/projects/5124 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
15 Jun 2023
@uep:matrix.org@uep:matrix.orgseems like there's room for an assertion that the pool name isn't blank16:13:28
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgOh that's... interesting16:13:34
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgYea for sure16:13:37
@uep:matrix.org@uep:matrix.org

somewhere in here:


  datasetToPool = x: elemAt (splitString "/" x) 0;

  fsToPool = fs: datasetToPool fs.device;

  zfsFilesystems = filter (x: x.fsType == "zfs") config.system.build.fileSystems;

  allPools = unique ((map fsToPool zfsFilesystems) ++ cfgZfs.extraPools);

  rootPools = unique (map fsToPool (filter fsNeededForBoot zfsFilesystems));

16:22:40
@uep:matrix.org@uep:matrix.orgor, misplaced in the thing that creates the import service, I guess16:23:00
@uep:matrix.org@uep:matrix.org * or, misplaced in the thing that creates the import service, just below, I guess16:23:08
@elvishjerricco:matrix.org@elvishjerricco:matrix.org I'd just add a NixOS style assertion like assertions = [{ assertion = !(elem "" allPools); message = "pls no"; }] 16:24:53
@uep:matrix.org@uep:matrix.orgwell, that will fail but not helpfully?16:26:15

Show newer messages


Back to Room ListRoom Version: 6