File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 100
100
boot . initrd . systemd . enable = true ;
101
101
} ] ;
102
102
} ]
103
+ # hardened profile
104
+ [ {
105
+ # no
106
+ id = null ;
107
+ } {
108
+ id = "hardened" ;
109
+ modules = [ ( { modulesPath , ... } : {
110
+ imports = [ "${ modulesPath } /profiles/hardened.nix" ] ;
111
+ } ) ] ;
112
+ } ]
103
113
] ;
104
114
105
115
allVariants =
Original file line number Diff line number Diff line change 24
24
options . microvm = with lib ; {
25
25
storeDiskType = mkOption {
26
26
type = types . enum [ "squashfs" "erofs" ] ;
27
- default = "erofs" ;
27
+ # nixos/modules/profiles/hardened.nix forbids erofs
28
+ default =
29
+ if builtins . elem "erofs" config . boot . blacklistedKernelModules
30
+ then "squashfs"
31
+ else "erofs" ;
28
32
description = ''
29
33
Boot disk file system type: squashfs is smaller, erofs is supposed to be faster.
30
34
'' ;
You can’t perform that action at this time.
0 commit comments