1
- # Erase your darlings, but without filesystems tricks
1
+ # Erase your darlings[ ^ 1 ] , but without filesystems tricks
2
2
3
3
## WARNING
4
4
5
- I'm not responsible for any data loss, use at your own risk.
5
+ I am not responsible for any data loss. Use at your own risk.
6
6
7
7
## Features
8
8
9
- - Easy to set up, just enable it and set paths to keep
10
- - No snapshots, tmpfs as root or bind mounts are required, works with any filesystem
11
- - Moves everything from root filesystem not in ` boot.initrd.eyd.keep ` to the ` /oldroot ` directory
12
- - Retains data from previous boots (5 by default), so you have a chance to recover your data
9
+ - Easy to set up: just enable it and specify the paths to keep
10
+ - No snapshots, tmpfs as root, or bind mounts are required - works with any filesystem
11
+ - Moves everything from the root filesystem not listed in ` boot.initrd.eyd.keep ` to the ` /oldroot ` directory
12
+ - Retains data from previous boots (5 by default), giving you a chance to recover your data
13
13
14
14
## Drawbacks
15
15
16
- - Doesn't touch anything besides the root filesystem
17
- - A ~ 700KB binary in initrd
18
- - Only systemd initrd is supported
16
+ - Only affects the root filesystem
17
+ - Adds a ~ 600 KB binary to the initrd
18
+ - Supports only systemd initrd
19
19
20
- ## Set it up
20
+ ## Setup
21
21
22
22
``` nix
23
23
# in your flake
24
- inputs.eyd.url = "github:misuzu/eyd/v0.2.1 ";
24
+ inputs.eyd.url = "github:misuzu/eyd/v0.3.0 ";
25
25
26
26
# import the eyd module
27
27
imports = [ inputs.eyd.nixosModules.default ];
@@ -36,22 +36,16 @@ boot.initrd.eyd.keep = [
36
36
"/etc/ssh/ssh_host_rsa_key"
37
37
"/etc/ssh/ssh_host_rsa_key.pub"
38
38
"/home"
39
- "/media"
40
- "/mnt"
41
39
"/root"
42
- "/var/cache/fwupd"
43
40
"/var/db/dhcpcd"
44
41
"/var/lib/alsa"
45
42
"/var/lib/bluetooth"
46
43
"/var/lib/docker"
47
- "/var/lib/fwupd"
48
- "/var/lib/iwd"
49
44
"/var/lib/logrotate.status"
50
45
"/var/lib/NetworkManager"
51
46
"/var/lib/private/yggdrasil"
52
47
"/var/lib/systemd"
53
48
"/var/lib/tailscale"
54
- "/var/lib/zerotier-one"
55
49
"/var/log/btmp"
56
50
"/var/log/journal"
57
51
"/var/log/lastlog"
@@ -62,10 +56,16 @@ boot.initrd.eyd.retain = 3;
62
56
63
57
## Debugging
64
58
65
- Run ` journalctl -b 0 -u eyd ` to see the logs
59
+ Run ` journalctl -b 0 -u eyd ` to view logs
66
60
67
61
68
62
## Related projects
69
63
70
64
- [ ` impermanence ` ] ( https://github.com/nix-community/impermanence )
71
65
- [ ` preservation ` ] ( https://github.com/nix-community/preservation )
66
+
67
+ ## License
68
+
69
+ This project is released under the MIT License. See [ LICENSE] ( ./LICENSE ) .
70
+
71
+ [ ^ 1 ] : https://grahamc.com/blog/erase-your-darlings/
0 commit comments