Skip to content

Commit

Permalink
chore(nix-enraged): clean up deps, more structured nix config
Browse files Browse the repository at this point in the history
  • Loading branch information
reo101 committed Nov 10, 2024
1 parent 93a73e8 commit 12688c5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkgs/nix-enraged/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
, lib
, runCommand
, makeWrapper
, writeShellScriptBin
, writeShellApplication

# NOTE: only works with vanilla `2.24` nix
, nix ? pkgs.nixVersions.latest
Expand All @@ -27,7 +27,7 @@
let
# Create a wrapped version of the decrypt script with all required runtime dependencies
# TODO: rewrite the script in another language
rage-decrypt-and-cache = pkgs.writeShellApplication {
rage-decrypt-and-cache = writeShellApplication {
name = "rage-decrypt-and-cache";
runtimeInputs = [ coreutils rage ];
text = builtins.readFile ./rage-import-encrypted/rage-decrypt-and-cache.sh;
Expand All @@ -47,7 +47,11 @@ let

# Default Nix configuration
defaultNixConfig = makeNixConfig {
"extra-experimental-features" = "nix-command flakes";
"extra-experimental-features" = lib.concatStringsSep " " [
"nix-command"
"flakes"
"pipe-operators"
];
"plugin-files" = "${nix-plugins}/lib/nix/plugins";
"extra-builtins-file" = "${extra-builtins}";
};
Expand Down

0 comments on commit 12688c5

Please sign in to comment.