Skip to content

Commit

Permalink
fix: nixpkgs definition
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelcoeffic committed Nov 13, 2024
1 parent 9dfaa64 commit e5c83e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/image_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ use crate::shell::*;
const NIX_VERSION: &str = "2.24.9";

const NIX_CONF: &str = "experimental-features = nix-command flakes
sandbox = false
extra-nix-path = nixpkgs=flake:nixpkgs
build-users-group =
sandbox = false
";

static FLAKE_DIR: Dir<'_> = include_dir!("$CARGO_MANIFEST_DIR/src/debug-shell");
Expand Down Expand Up @@ -114,9 +115,10 @@ impl BaseImageBuilder {
}
let base_path = build_status.unwrap();

// copy static files (zshrc, etc)
// hash & copy static files (zshrc, etc)
let mut hasher = Sha256::new();
hasher.update(base_path.as_os_str().as_encoded_bytes());
hasher.update(NIX_CONF);

if let Err(err) = STATIC_FILES.iter().try_for_each(|(dest, content)| {
hasher.update(content);
Expand Down

0 comments on commit e5c83e9

Please sign in to comment.