My personal nix config files. Feel free to import flake.

change timestamps

+2 -2
+1 -1
modules/nixos/impermanence.nix
··· 84 84 mkdir -p {/mnt,/mnt/nixos,$root_dir} 85 85 mount -t btrfs -L nixos $root_dir 86 86 if [[ -e $root_dir/@snapshots ]]; then 87 - timestamp=$(date "+%Y-%m-%-d_%H:%M:%S") 87 + timestamp=$(date "+%Y-%m-%d--%H-%M-%S") 88 88 mkdir -p $snapshot_dir 89 89 mount -t btrfs -o noatime,compress-force=zstd:1,subvol=@snapshots -L nixos $snapshot_dir; 90 90 if [[ -e $root_dir/@home ]]; then
+1 -1
pkgs/scripts/src/impermanence_rollback.sh
··· 4 4 mkdir -p {/mnt,/mnt/nixos,$root_dir} 5 5 mount -t btrfs -L nixos $root_dir 6 6 if [[ -e $root_dir/@snapshots ]]; then 7 - timestamp=$(date "+%Y-%m-%-d_%H:%M:%S") 7 + timestamp=$(date "+%Y-%m-%d--%H-%M-%S") 8 8 mkdir -p $snapshot_dir 9 9 mount -t btrfs -o noatime,compress-force=zstd:1,subvol=@snapshots -L nixos $snapshot_dir; 10 10 if [[ -e $root_dir/@home ]]; then