update flake.lock; refactor impermanence; other minor fixes
This commit is contained in:
@@ -31,13 +31,12 @@ in
|
||||
services.btrfs.autoScrub.enable = true;
|
||||
networking.hostId = "10ca95b4";
|
||||
|
||||
fileSystems."/" = {
|
||||
my.persist.btrfs = {
|
||||
device = btrfs;
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"compress=zstd"
|
||||
"subvol=root"
|
||||
];
|
||||
mountPoint = "/nix/persist";
|
||||
persistSubvol = "persist";
|
||||
rootSubvol = "root";
|
||||
zstdCompress = true;
|
||||
};
|
||||
|
||||
fileSystems."/nix" = {
|
||||
@@ -49,17 +48,6 @@ in
|
||||
];
|
||||
};
|
||||
|
||||
my.persist.location = "/nix/persist";
|
||||
fileSystems."/nix/persist" = {
|
||||
device = btrfs;
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"compress=zstd"
|
||||
"subvol=persist"
|
||||
];
|
||||
neededForBoot = true;
|
||||
};
|
||||
|
||||
boot.initrd.postDeviceCommands = lib.mkAfter ''
|
||||
mkdir /btrfs_tmp
|
||||
mount ${btrfs} /btrfs_tmp
|
||||
|
||||
Reference in New Issue
Block a user