Skip to content

Commit

Permalink
add a nix-flake command
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Jul 8, 2021
1 parent 96f4f94 commit 274eb9d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion darwin/default.nix
Expand Up @@ -5,7 +5,12 @@

# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = [ ];
environment.systemPackages = [
# https://nixos.wiki/wiki/Flakes#Installation_as_an_extra_command
(pkgs.writeShellScriptBin "nix-flake" ''
exec ${pkgs.nixUnstable}/bin/nix --experimental-features "nix-command flakes" flake "$@"
'')
];

# Use a custom configuration.nix location.
# $ darwin-rebuild switch -I darwin-config=$HOME/.dotfiles/darwin/default.nix
Expand Down

0 comments on commit 274eb9d

Please sign in to comment.