Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
matrss committed Apr 6, 2024
1 parent 2571737 commit 78d3168
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,20 @@
cd ${./.}
${pkgs.opentofu}/bin/tofu fmt -check -recursive -diff && touch $out
'';

"impure-test" = pkgs.stdenv.mkDerivation {
name = "impure-test";
__noChroot = true;
nativeBuildInputs = [ pkgs.cacert pkgs.git pkgs.nix ];
buildCommand = ''
export HOME=$(mktemp -d)
git clone https://github.com/matrss/nixfiles latest
git clone https://github.com/matrss/nixfiles older
git -C older switch --detach HEAD~5
nix --extra-experimental-features "nix-command flakes" --accept-flake-config store diff-closures --derivation ./older#nixosConfigurations.hazuno_m_0px_xyz.config.system.build.toplevel ./latest#nixosConfigurations.hazuno_m_0px_xyz.config.system.build.toplevel
touch $out
'';
};
});
};
}
2 changes: 1 addition & 1 deletion profiles/core.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
};
in
''
experimental-features = nix-command flakes
experimental-features = nix-command flakes impure-derivations ca-derivations
flake-registry = ${pkgs.writeText "flake-registry.json" flake-registry}
'';
gc.automatic = true;
Expand Down

0 comments on commit 78d3168

Please sign in to comment.