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 = [ modules = [
./nixos/configuration.nix
inputs.apple-silicon-support.nixosModules.default
inputs.impermanence.nixosModules.impermanence inputs.impermanence.nixosModules.impermanence
./nixos/configuration.nix
./nixos/modules/impermanence
inputs.apple-silicon-support.nixosModules.default
./nixos/mac-hardware-conf.nix ./nixos/mac-hardware-conf.nix
./nixos/macos/configuration.nix ./nixos/macos/configuration.nix
] ++ general-modules; ] ++ general-modules;

View file

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