Skip to content

Commit

Permalink
revert cdb9572
Browse files Browse the repository at this point in the history
Heh, the original code was actually right...

The old system is the current system, which /run/booted-system
is actually pointing to. And, the newest system is the one that
/nix/var/nix/profiles/system is a symlink of.
  • Loading branch information
thefossguy committed Apr 13, 2024
1 parent e446b8d commit 04e41ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ use std::path::Path;

mod compare_nixos_modules;

pub static NEW_SYSTEM_PATH: &str = "/run/booted-system";
pub static OLD_SYSTEM_PATH: &str = "/nix/var/nix/profiles/system";
pub static OLD_SYSTEM_PATH: &str = "/run/booted-system";
pub static NEW_SYSTEM_PATH: &str = "/nix/var/nix/profiles/system";
pub static NIXOS_NEEDS_REBOOT: &str = "/var/run/reboot-required";

fn main() -> Result<(), Box<dyn Error>> {
Expand Down

0 comments on commit 04e41ae

Please sign in to comment.