aboutsummaryrefslogtreecommitdiffstats
path: root/sys/disks
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/system/disks/default.nix (renamed from sys/disks/default.nix)18
-rw-r--r--modules/system/disks/fstrim.nix (renamed from sys/disks/fstrim.nix)0
-rw-r--r--modules/system/disks/hibernate.nix (renamed from sys/disks/hibernate.nix)1
3 files changed, 8 insertions, 11 deletions
diff --git a/sys/disks/default.nix b/modules/system/disks/default.nix
index 2283db96..c0e5bcfd 100644
--- a/sys/disks/default.nix
+++ b/modules/system/disks/default.nix
@@ -14,29 +14,25 @@
in {
options.soispha.disks = {
enable = lib.mkEnableOption "disk setup with disko";
+
disk = lib.mkOption {
type = lib.types.path;
example = lib.literalExpression "/dev/disk/by-uuid/0442cb6d-f13a-4635-b487-fa76189774c5";
- description = ''
- The disk used for installing the OS.
- '';
- };
- ssd = lib.mkOption {
- type = lib.types.bool;
- example = lib.literalExpression "true";
- default = false;
- description = lib.mdDoc "Enable ssd specific improvements, like trim";
+ description = "The disk used for installing the OS.";
};
+
+ ssd = lib.mkEnableOption "ssd specific improvements, like trim";
+
swap = {
uuid = lib.mkOption {
type = lib.types.str;
example = lib.literalExpression "d1d20ae7-3d8a-44da-86da-677dbbb10c89";
- description = lib.mdDoc "The uuid of the swapfile";
+ description = "The uuid of the swapfile";
};
resumeOffset = lib.mkOption {
type = lib.types.str;
example = lib.literalExpression "134324224";
- description = lib.mdDoc "The resume offset of the swapfile";
+ description = "The resume offset of the swapfile";
};
};
};
diff --git a/sys/disks/fstrim.nix b/modules/system/disks/fstrim.nix
index 6daeb65e..6daeb65e 100644
--- a/sys/disks/fstrim.nix
+++ b/modules/system/disks/fstrim.nix
diff --git a/sys/disks/hibernate.nix b/modules/system/disks/hibernate.nix
index ad7ca12c..a50e5b57 100644
--- a/sys/disks/hibernate.nix
+++ b/modules/system/disks/hibernate.nix
@@ -12,6 +12,7 @@
ExecStart = "${pkgs.bash}/bin/bash -c \"${pkgs.util-linux}/bin/swapon /swap/swapfile && ${pkgs.util-linux}/bin/swapoff /dev/zram0\"";
};
};
+
hibernate-resume = {
wantedBy = ["systemd-hibernate.service"];
unitConfig = {