fix
This commit is contained in:
@@ -4,11 +4,6 @@
|
||||
imports = [
|
||||
inputs.impermanence.nixosModules.impermanence
|
||||
];
|
||||
|
||||
# 系统启动时确保持久化目录存在
|
||||
system.activationScripts.persistent-dirs.text = ''
|
||||
mkdir -p /nix/persistent
|
||||
'';
|
||||
|
||||
# 启用 tmpfs 作为根文件系统
|
||||
fileSystems."/" = lib.mkForce {
|
||||
@@ -21,7 +16,7 @@
|
||||
fileSystems."/nix" = lib.mkForce {
|
||||
device = "/dev/disk/by-label/nixos"; # 需要根据实际情况修改
|
||||
fsType = "btrfs";
|
||||
options = [ "bind" ];
|
||||
options = [ "compress-force=zstd" ];
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user