tried to turn on impermanence on mac

This commit is contained in:
Aleksandr Lebedev 2024-12-18 18:11:50 +01:00
parent b82c4b477d
commit df9ef966a2
2 changed files with 16 additions and 3 deletions

View file

@ -97,7 +97,7 @@
hostname = "${username}-mac"; hostname = "${username}-mac";
isLaptop = true; isLaptop = true;
system = arm; system = arm;
useImpermanence = false; useImpermanence = true;
}; };
inherit username; inherit username;
inherit first-nixos-install; inherit first-nixos-install;
@ -117,6 +117,7 @@
modules = [ modules = [
./nixos/configuration.nix ./nixos/configuration.nix
inputs.apple-silicon-support.nixosModules.default inputs.apple-silicon-support.nixosModules.default
inputs.impermanence.nixosModules.impermanence
./nixos/mac-hardware-conf.nix ./nixos/mac-hardware-conf.nix
./nixos/macos/configuration.nix ./nixos/macos/configuration.nix
] ++ general-modules; ] ++ general-modules;

View file

@ -13,15 +13,27 @@
boot.kernelModules = [ ]; boot.kernelModules = [ ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" = {
device = "none";
fsType = "tmpfs";
options = [ "size = 3G" "mode = 755" ];
};
fileSystems."/persist" =
{ device = "/dev/disk/by-label/nixos"; { device = "/dev/disk/by-label/nixos";
fsType = "ext4"; fsType = "ext4";
neededForBoot = true;
}; };
fileSystems."/nix" = {
device = "/persist/nix";
options = [ "bind" ];
depends = [ "/persist" ]
neededForBoot = true;
};
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" ];
neededForBoot = true;
}; };
swapDevices = [ ]; swapDevices = [ ];