more snapshot configs

This commit is contained in:
2025-10-17 13:20:46 -05:00
parent a2929f7dfa
commit 13d3554003
3 changed files with 25 additions and 17 deletions

View File

@@ -3,10 +3,12 @@
imports = imports =
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
./snapshot.nix
../../modules/nixos/localization.nix ../../modules/nixos/localization.nix
../../modules/nixos/ai/default.nix ../../modules/nixos/ai/default.nix
../../modules/nixos/desktops/gnome.nix ../../modules/nixos/desktops/gnome.nix
../../modules/nixos/desktops/hyprland.nix ../../modules/nixos/desktops/hyprland.nix
../../modules/nixos/desktops/river.nix
]; ];
# Bootloader. # Bootloader.

View File

@@ -14,5 +14,18 @@
}; };
}; };
}; };
instances."duplicate_to_second_drive" = {
onCalendar = "daily";
settings = {
snapshot_preserve = "14d 8w 120m";
snapshot_preserve_min = "7d";
volume = {
"/media/2tb" = {
target = "/media/12tb/@snapshots";
subvolume = "@home";
};
};
};
};
}; };
} }

View File

@@ -4,6 +4,7 @@
imports = [ imports = [
../../modules/home/vim.nix ../../modules/home/vim.nix
../../modules/home/hyprland.nix ../../modules/home/hyprland.nix
../../modules/home/river.nix
]; ];
# Home Manager needs a bit of information about you and the paths it should # Home Manager needs a bit of information about you and the paths it should
@@ -56,26 +57,18 @@
# ''; # '';
}; };
# Home Manager can also manage your environment variables through
# 'home.sessionVariables'. These will be explicitly sourced when using a
# shell provided by Home Manager. If you don't want to manage your shell
# through Home Manager then you have to manually source 'hm-session-vars.sh'
# located at either
#
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
#
# or
#
# ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh
#
# or
#
# /etc/profiles/per-user/lily/etc/profile.d/hm-session-vars.sh
#
home.sessionVariables = { home.sessionVariables = {
# EDITOR = "emacs"; # EDITOR = "emacs";
}; };
programs = {
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
programs.home-manager.enable = true; home-manager.enable = true;
bash.enable = true;
git = {
enable = true;
userName = "Lily Anderson";
userEmail = "lilylanderson@zoho.com";
};
};
} }