tried to turn on impermanence on mac
This commit is contained in:
parent
b82c4b477d
commit
df9ef966a2
2 changed files with 16 additions and 3 deletions
|
|
@ -97,7 +97,7 @@
|
|||
hostname = "${username}-mac";
|
||||
isLaptop = true;
|
||||
system = arm;
|
||||
useImpermanence = false;
|
||||
useImpermanence = true;
|
||||
};
|
||||
inherit username;
|
||||
inherit first-nixos-install;
|
||||
|
|
@ -117,6 +117,7 @@
|
|||
modules = [
|
||||
./nixos/configuration.nix
|
||||
inputs.apple-silicon-support.nixosModules.default
|
||||
inputs.impermanence.nixosModules.impermanence
|
||||
./nixos/mac-hardware-conf.nix
|
||||
./nixos/macos/configuration.nix
|
||||
] ++ general-modules;
|
||||
|
|
|
|||
|
|
@ -13,15 +13,27 @@
|
|||
boot.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
fileSystems."/" = {
|
||||
device = "none";
|
||||
fsType = "tmpfs";
|
||||
options = [ "size = 3G" "mode = 755" ];
|
||||
};
|
||||
fileSystems."/persist" =
|
||||
{ device = "/dev/disk/by-label/nixos";
|
||||
fsType = "ext4";
|
||||
neededForBoot = true;
|
||||
};
|
||||
|
||||
fileSystems."/nix" = {
|
||||
device = "/persist/nix";
|
||||
options = [ "bind" ];
|
||||
depends = [ "/persist" ]
|
||||
neededForBoot = true;
|
||||
};
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-label/EFI\\x20-\\x20NIXOS";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0022" "dmask=0022" ];
|
||||
neededForBoot = true;
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue