This commit is contained in:
parent
664b84fad9
commit
a64a8d0e6b
5 changed files with 22 additions and 40 deletions
|
@ -9,7 +9,7 @@
|
|||
root = {
|
||||
TIMELINE_CREATE = true;
|
||||
TIMELINE_CLEANUP = true;
|
||||
SUBVOLUME = "/";
|
||||
SUBVOLUME = "/root";
|
||||
};
|
||||
home = {
|
||||
TIMELINE_CREATE = true;
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
{
|
||||
imports = [ ../../common/services/snapper.nix ];
|
||||
# You need to make the snapshot directories manually:
|
||||
# sudo btrfs subvolume create /.snapshots
|
||||
# sudo btrfs subvolume create /nix/.snapshots
|
||||
# sudo btrfs subvolume create /home/.snapshots
|
||||
|
||||
services.btrfs.autoScrub.enable = true;
|
||||
services.btrfs.autoScrub.interval = "weekly";
|
||||
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
{
|
||||
imports = [ ../../common/services/snapper.nix ];
|
||||
# You need to make the snapshot directories manually:
|
||||
# sudo btrfs subvolume create /.snapshots
|
||||
# sudo btrfs subvolume create /nix/.snapshots
|
||||
# sudo btrfs subvolume create /home/.snapshots
|
||||
|
||||
services.btrfs.autoScrub.enable = true;
|
||||
services.btrfs.autoScrub.interval = "weekly";
|
||||
|
@ -47,18 +51,6 @@
|
|||
mountpoint = "/nix";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
}; # nix
|
||||
"/.snapshots" = {
|
||||
mountpoint = "/.snapshots";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
}; # root snapshots
|
||||
"/home/.snapshots" = {
|
||||
mountpoint = "/home/.snapshots";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
}; # home snapshots
|
||||
"/nix/.snapshots" = {
|
||||
mountpoint = "/nix/.snapshots";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
}; # nix snapshots
|
||||
}; # subvolumes
|
||||
}; # content.content
|
||||
}; # content
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
{
|
||||
imports = [ ../../common/services/snapper.nix ];
|
||||
# You need to make the snapshot directories manually:
|
||||
# sudo btrfs subvolume create /.snapshots
|
||||
# sudo btrfs subvolume create /nix/.snapshots
|
||||
# sudo btrfs subvolume create /home/.snapshots
|
||||
|
||||
services.btrfs.autoScrub.enable = true;
|
||||
services.btrfs.autoScrub.interval = "weekly";
|
||||
|
@ -35,7 +39,7 @@
|
|||
type = "btrfs";
|
||||
extraArgs = [ "-f" ];
|
||||
subvolumes = {
|
||||
"/" = {
|
||||
"/root" = {
|
||||
mountpoint = "/";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
}; # root
|
||||
|
@ -47,18 +51,6 @@
|
|||
mountpoint = "/nix";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
}; # nix
|
||||
"/.snapshots" = {
|
||||
mountpoint = "/.snapshots";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
}; # root snapshots
|
||||
"/home/.snapshots" = {
|
||||
mountpoint = "/home/.snapshots";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
}; # home snapshots
|
||||
"/nix/.snapshots" = {
|
||||
mountpoint = "/nix/.snapshots";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
}; # nix snapshots
|
||||
}; # subvolumes
|
||||
}; # content.content
|
||||
}; # content
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
{
|
||||
imports = [ ../../common/services/snapper.nix ];
|
||||
# You need to make the snapshot directories manually:
|
||||
# sudo btrfs subvolume create /.snapshots
|
||||
# sudo btrfs subvolume create /nix/.snapshots
|
||||
# sudo btrfs subvolume create /home/.snapshots
|
||||
|
||||
services.btrfs.autoScrub.enable = true;
|
||||
services.btrfs.autoScrub.interval = "weekly";
|
||||
|
@ -35,7 +39,7 @@
|
|||
type = "btrfs";
|
||||
extraArgs = [ "-f" ];
|
||||
subvolumes = {
|
||||
"/" = {
|
||||
"/root" = {
|
||||
mountpoint = "/";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
}; # root
|
||||
|
@ -47,18 +51,6 @@
|
|||
mountpoint = "/nix";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
}; # nix
|
||||
"/.snapshots" = {
|
||||
mountpoint = "/.snapshots";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
}; # root snapshots
|
||||
"/home/.snapshots" = {
|
||||
mountpoint = "/home/.snapshots";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
}; # home snapshots
|
||||
"/nix/.snapshots" = {
|
||||
mountpoint = "/nix/.snapshots";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
}; # nix snapshots
|
||||
}; # subvolumes
|
||||
}; # content.content
|
||||
}; # content
|
||||
|
|
Loading…
Reference in a new issue