aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nixos/modules/turris-defaults.nix4
-rw-r--r--nixos/modules/turris-tarball.nix2
2 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/turris-defaults.nix b/nixos/modules/turris-defaults.nix
index ff2e141..9d7a19c 100644
--- a/nixos/modules/turris-defaults.nix
+++ b/nixos/modules/turris-defaults.nix
@@ -48,12 +48,12 @@ in {
boot.initrd.supportedFilesystems = [ "btrfs" ];
# Cover nix memory consumption peaks by compressing the RAM
- zramSwap = {
+ zramSwap = mkDefault {
enable = true;
memoryPercent = 80;
};
- fileSystems = {
+ fileSystems = mkDefault {
"/" = {
device = "/dev/disk/by-partlabel/" + cnf.rootLabel;
fsType = "btrfs";
diff --git a/nixos/modules/turris-tarball.nix b/nixos/modules/turris-tarball.nix
index 87c4fb9..55187e4 100644
--- a/nixos/modules/turris-tarball.nix
+++ b/nixos/modules/turris-tarball.nix
@@ -63,7 +63,7 @@ in {
LINUX /run/current-system/kernel
FDTDIR /run/current-system/dtbs
INITRD /run/current-system/initrd
- APPEND init=${config.system.build.toplevel}/init ${builtins.toString config.boot.kernelParams}
+ APPEND init=${tarballVariant.config.system.build.toplevel}/init ${builtins.toString tarballVariant.config.boot.kernelParams}
'';
target = "./boot/extlinux/extlinux.conf";
}