aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-03-21 17:21:32 +0100
committerene <ene@sils.li>2023-03-21 17:21:32 +0100
commit05674c993e8bbf4cf6e0466e54715a7bd1f4e55a (patch)
treec9acf46961cb799af176b802c4ec01c08b197134
parentFix(flake): Fully delete steam (diff)
downloadnixos-config-05674c993e8bbf4cf6e0466e54715a7bd1f4e55a.zip
Fix(system/file_system_layout): Use str instead of int
An int can't be coerced to a string, but this is needed to use it in the config file.
-rw-r--r--hosts/lahmu/hardware/default.nix2
-rw-r--r--system/fileSystemLayouts/default.nix2
2 files changed, 2 insertions, 2 deletions
diff --git a/hosts/lahmu/hardware/default.nix b/hosts/lahmu/hardware/default.nix
index b126e673..a5958933 100644
--- a/hosts/lahmu/hardware/default.nix
+++ b/hosts/lahmu/hardware/default.nix
@@ -21,7 +21,7 @@
ssd = true;
swap = {
uuid = "TO_BE_ADDED";
- resumeOffset = 10;
+ resumeOffset = "10";
};
};
diff --git a/system/fileSystemLayouts/default.nix b/system/fileSystemLayouts/default.nix
index f6d374d7..3edf0a79 100644
--- a/system/fileSystemLayouts/default.nix
+++ b/system/fileSystemLayouts/default.nix
@@ -37,7 +37,7 @@ in {
description = lib.mdDoc "The uuid of the swapfile";
};
resumeOffset = mkOption {
- type = lib.types.int;
+ type = lib.types.str;
example = literalExpression "134324224";
description = lib.mdDoc "The resume offset of the swapfile";
};