tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
minor refactoring
Matthias Berndt
2 years ago
765349d3
cb410a8c
+1
-2
1 changed file
expand all
collapse all
unified
split
nixos
modules
system
boot
stratisroot.nix
+1
-2
nixos/modules/system/boot/stratisroot.nix
···
1
1
{ config, lib, pkgs, utils, ... }:
2
2
let
3
3
-
types = lib.types;
4
3
requiredStratisFilesystems = lib.attrsets.filterAttrs (_: x: utils.fsNeededForBoot x && x.stratis.poolUuid != null) config.fileSystems;
5
4
in
6
5
{
7
6
options = {};
8
8
-
config = lib.mkIf (builtins.length (lib.attrsets.attrValues requiredStratisFilesystems) != 0) {
7
7
+
config = lib.mkIf (requiredStratisFilesystems != {}) {
9
8
assertions = [
10
9
{
11
10
assertion = config.boot.initrd.systemd.enable;