Skip to content

Commit

Permalink
matebook: Revert using back to btrfs from tmpfs
Browse files Browse the repository at this point in the history
This partially reverts commit ca97a0a.
  • Loading branch information
MattSturgeon committed Jul 4, 2024
1 parent fb15eed commit f846924
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions hosts/matebook/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
boot.splash = true;
desktop.gnome = true;
impermanence.enable = true;
impermanence.wipeOnBoot = true;
battery.optimise = true;
};

Expand Down
9 changes: 4 additions & 5 deletions hosts/matebook/disks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
type = "btrfs";
extraArgs = [ "-f" ];
subvolumes = {
"/root" = {
mountpoint = "/";
mountOptions = [ "compress=zstd" "noatime" ];
};
"/home" = {
mountpoint = "/home";
mountOptions = [ "compress=zstd" "noatime" ];
Expand Down Expand Up @@ -56,10 +60,5 @@
};
fileSystems = {
"/persist".neededForBoot = true;
"/" = {
device = "none";
fsType = "tmpfs";
options = [ "defaults" "size=4G" "mode=755" ];
};
};
}
1 change: 0 additions & 1 deletion modules/nixos/impermenance.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ in
];
};

# TODO offer btrfs/zfs & init script with/without systemd
boot.initrd.systemd = mkIf cfg.wipeOnBoot {
enable = true;
services.reset-root = {
Expand Down

0 comments on commit f846924

Please sign in to comment.