mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
impermanence test
This commit is contained in:
parent
a3e8fba7c0
commit
6e5876f2ff
6 changed files with 43 additions and 12 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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" =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue