diff options
author | stuebinm | 2024-05-06 02:30:40 +0200 |
---|---|---|
committer | stuebinm | 2024-05-06 02:30:40 +0200 |
commit | 6636421fb72c1f23f641fc694eb37ac5a05dd120 (patch) | |
tree | 23c0f7393a0d23176f0aec51f0693303298deec4 /pkgs/apply-config/default.nix | |
parent | 9e7a775e2578e126dddb1c6f7514874265e3d08e (diff) |
custom apply config script
since nixos-rebuild does not support applying a built config (i.e. one
on which eval-config has already been called) without flakes.
I might or might not extend this into a more proper reimplementation of
nixos-rebuild.
Diffstat (limited to '')
-rw-r--r-- | pkgs/apply-config/default.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/apply-config/default.nix b/pkgs/apply-config/default.nix new file mode 100644 index 0000000..03ba1f9 --- /dev/null +++ b/pkgs/apply-config/default.nix @@ -0,0 +1,14 @@ +{ stdenvNoCC, gauche }: + +stdenvNoCC.mkDerivation { + name = "apply-config"; + + src = ./.; + + buildInputs = [ gauche ]; + + installPhase = '' + mkdir -p $out/bin + cp apply-config $out/bin + ''; +} |