Commit Graph
20 Commits
Author SHA1 Message Date
DavHauandlassulus ff2d853a84 treewide: format all files 2025-02-15 10:08:56 +00:00
Felix Uhl 67a130b984 tree-wide: Remove all uses of lib.mdDoc
This was deprecated in 24.05 already, and removed in 24.11.
2024-12-02 20:28:17 +01:00
Jörg Thalheim aa006252c8 add unmount feature 2024-11-29 14:44:15 +01:00
Jörg ThalheimandMichael Hoang fd3e326e9a disable swap in disko-install
Update disko-install

Co-authored-by: Michael Hoang <Enzime@users.noreply.github.com>
2024-11-22 12:45:57 +01:00
Felix Uhlandmergify[bot] ca47da60e5 disko: fix improper handling of whitespace
Fixes #130

This should fix pretty much all cases where spaces or other special
characters would break disko due to improper quoting. I searched for all
instances of '.label', '.device' and '.name', so I believe I caught
whatever I could.

In some cases I changed single quotes to double quotes for consistency.

I know we don't usually fix bugs in the legacy table type, but it was so
easy I couldn't resist.
2024-10-22 09:10:08 +00:00
Sergey Kazenyukandmergify[bot] 39b4091769 swap: add mountOptions 2024-09-03 14:06:14 +00:00
Felix Uhlandmergify[bot] 435737144b swap: don't create filesystem if randomEncryption is enabled
This is not an issue when initially creating the partition because
device mapper will just map on top of the filesystem, but it breaks
incremental updates because the check for `TYPE=` will fail, and the
subsequent attempt to run `mkswap` also fails:

mkswap: cannot open /dev/disk/by-partlabel/disk-nix-store-swap: Device or resource busy

Instead, just don't do anything, NixOS will take care of it.
2024-08-22 17:59:43 +00:00
Giel van Schijndelandmergify[bot] f236f6df36 swap: forward discardPolicy option to randomEncryption.allowDiscards
I.e. instead of effectively ignoring `discardPolicy` when combined with
`randomEncryption`, or adding a second option requiring the user to
repeat themselves (DRY violation), just enable both when requested via
`discardPolicy`.

Without this `discardPolicy` is a NOP when `randomEncryption` is
enabled.
2024-05-14 21:30:40 +00:00
Giel van Schijndel c5a25d5ced swap: support swapDevices.*.priority option
This just forwards to the underlying NixOS option and expands the mount
script to exhibit the same behavior.
2024-05-06 12:11:58 +02:00
Giel van Schijndel 8a02c0507c swap: support swapDevices.*.discardPolicy option 2024-05-06 12:11:58 +02:00
lassulus f6b72bfed7 types *: make create idempotent 2024-03-13 09:58:33 +01:00
Jörg Thalheimandmergify[bot] 3cb78c93e6 swap: don't activate random encrypted swap files
This requires more code and is not implemented just now.
2023-11-25 15:47:29 +00:00
Rudolf Veselyandmergify[bot] 91af5b4a53 Add extra args into swap. 2023-09-14 17:02:49 +00:00
lassulusandmergify[bot] c77e66cea1 types swap: check real path of the device before mount 2023-07-19 19:07:40 +00:00
3200614b9f fix(swap): rename dev to config.device
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2023-07-04 21:35:38 +00:00
Technofabandmergify[bot] 57622c4a68 feat(swap): add resumeDevice option which sets boot.resumeDevice 2023-07-04 21:35:38 +00:00
lassulusandmergify[bot] ab9b880db2 lib.types: turn _create, _mount and _config into values 2023-07-04 16:02:25 +00:00
lassulus 62f939e213 types: pass parent node to all subTypes 2023-06-16 21:11:44 +02:00
Jörg Thalheim a8d85d9f89 apply deadnix 2023-06-06 13:32:47 +02:00
lassulus 1c31612335 lib: read types from subdir 2023-05-20 13:56:42 +02:00