impermanence test

This commit is contained in:
Rouven Seifert 2023-05-20 13:20:05 +02:00
parent a3e8fba7c0
commit 6e5876f2ff
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
6 changed files with 43 additions and 12 deletions

View file

@ -23,6 +23,16 @@
auto-optimise-store = true;
};
environment.persistence."/nix/persist/system" = {
directories = [
"/etc/nixos" # bind mounted from /nix/persist/system/etc/nixos to /etc/nixos
"/etc/ssh"
];
files = [
"/etc/machine-id"
];
};
time.timeZone = "Europe/Berlin";
i18n.defaultLocale = "en_US.UTF-8";
console = {

View file

@ -24,9 +24,9 @@
fileSystems."/" =
{
device = "/dev/disk/by-uuid/3d44cde5-17a2-4023-b9ae-3a02ae68aa81";
fsType = "btrfs";
options = [ "subvol=root" "compress=zstd" "discard=async" "noatime" ];
device = "tmpfs";
fsType = "tmpfs";
options = [ "size=3G" "mode=755" ];
};
@ -51,11 +51,11 @@
options = [ "subvol=log" "compress=zstd" "discard=async" "noatime" ];
};
fileSystems."/nix/store" =
fileSystems."/nix" =
{
device = "/dev/disk/by-uuid/3d44cde5-17a2-4023-b9ae-3a02ae68aa81";
fsType = "btrfs";
options = [ "subvol=store" "compress=zstd" "discard=async" "noatime" ];
options = [ "subvol=nix" "compress=zstd" "discard=async" "noatime" ];
};
fileSystems."/boot" =