Move experimental-features to nix.conf

This commit is contained in:
2025-08-18 17:44:24 +00:00
parent 252b3b26ef
commit 11dc66df8a
2 changed files with 2 additions and 2 deletions

1
.config/nix/nix.conf Normal file
View File

@@ -0,0 +1 @@
experimental-features = nix-command flakes

3
.zshrc
View File

@@ -83,8 +83,7 @@ size: %{size_download}\n"'
nix-deploy() {
TARGET=$1
shift
nix run --extra-experimental-features 'nix-command flakes' \
nixpkgs#nixos-rebuild -- switch \
nix run nixpkgs#nixos-rebuild -- switch \
--flake ".#${TARGET?}" \
--target-host "${TARGET?}" \
--build-host "${TARGET?}" \