Update disks
All checks were successful
deploy-rs / deploy-rs (push) Successful in 19s

This commit is contained in:
iFargle 2023-12-25 16:06:25 +09:00
parent 664b84fad9
commit a64a8d0e6b
5 changed files with 22 additions and 40 deletions

View file

@ -9,7 +9,7 @@
root = {
TIMELINE_CREATE = true;
TIMELINE_CLEANUP = true;
SUBVOLUME = "/";
SUBVOLUME = "/root";
};
home = {
TIMELINE_CREATE = true;

View file

@ -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";

View file

@ -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

View file

@ -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

View file

@ -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