fixed not working impermanence on mac

This commit is contained in:
Aleksandr Lebedev 2024-12-18 19:56:27 +01:00
parent 4f05240382
commit 940ec2f0ec
2 changed files with 8 additions and 5 deletions

View file

@ -115,9 +115,10 @@
# };
# };
modules = [
./nixos/configuration.nix
inputs.apple-silicon-support.nixosModules.default
inputs.impermanence.nixosModules.impermanence
./nixos/configuration.nix
./nixos/modules/impermanence
inputs.apple-silicon-support.nixosModules.default
./nixos/mac-hardware-conf.nix
./nixos/macos/configuration.nix
] ++ general-modules;

View file

@ -14,13 +14,15 @@
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "none";
device = "tmpfs";
fsType = "tmpfs";
options = [ "defaults" "size = 3G" "mode = 755" ];
options = [ "defaults" "size=3G" "mode=755" ];
};
fileSystems."/persist" =
{ device = "/dev/disk/by-label/nixos";
fsType = "ext4";
depends = [ "/" ];
neededForBoot = true;
};
fileSystems."/nix" = {
device = "/persist/nix";
@ -30,7 +32,7 @@
fileSystems."/boot" =
{ device = "/dev/disk/by-label/EFI\\x20-\\x20NIXOS";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
#options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices = [ ];