diff --git a/hosts/desktop/configuration.nix b/hosts/desktop/configuration.nix index dd21300..bc43a1f 100644 --- a/hosts/desktop/configuration.nix +++ b/hosts/desktop/configuration.nix @@ -3,10 +3,12 @@ imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix + ./snapshot.nix ../../modules/nixos/localization.nix ../../modules/nixos/ai/default.nix ../../modules/nixos/desktops/gnome.nix ../../modules/nixos/desktops/hyprland.nix + ../../modules/nixos/desktops/river.nix ]; # Bootloader. diff --git a/hosts/desktop/snapshot.nix b/hosts/desktop/snapshot.nix index e83a0a0..d506cc2 100644 --- a/hosts/desktop/snapshot.nix +++ b/hosts/desktop/snapshot.nix @@ -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"; + }; + }; + }; + }; }; } diff --git a/users/lily/home.nix b/users/lily/home.nix index a62e711..02c6b35 100644 --- a/users/lily/home.nix +++ b/users/lily/home.nix @@ -4,6 +4,7 @@ imports = [ ../../modules/home/vim.nix ../../modules/home/hyprland.nix + ../../modules/home/river.nix ]; # 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 = { # EDITOR = "emacs"; }; + programs = { # 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"; + }; + }; }