summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-10-27 14:30:53 -0400
committerseth <[email protected]>2024-10-27 14:30:53 -0400
commit5a7d96506375dde7b6715763ff90cd00fe3795ff (patch)
tree31ae462ab07310cd1b8d13ac8997b097483aea6b /flake.nix
parent43d230e33bb2a5b046cf71b47bff0b47e908c807 (diff)
tree-wide: lix -> nix
Apparently newer Nix versions are pretty fast. Lets find out
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix18
1 files changed, 10 insertions, 8 deletions
diff --git a/flake.nix b/flake.nix
index 4c81a45..6f3506a 100644
--- a/flake.nix
+++ b/flake.nix
@@ -123,13 +123,15 @@
system:
let
pkgs = nixpkgsFor.${system};
- nixos-rebuild = pkgs.nixos-rebuild.override { nix = pkgs.lix; };
- inherit (inputs.nix-darwin.packages.${system}) darwin-rebuild;
in
{
default = pkgs.mkShellNoCC {
packages =
[
+ # We want to make sure we have the same
+ # Nix behavior across machines
+ pkgs.nix
+
# For CI
pkgs.actionlint
@@ -140,14 +142,14 @@
pkgs.just
]
- ++ lib.optional pkgs.stdenv.isDarwin darwin-rebuild # See next comment
- ++ lib.optionals pkgs.stdenv.isLinux [
- # We want to make sure we have the same
- # Nix behavior across machines
- pkgs.lix
+ ++ lib.optionals pkgs.stdenv.hostPlatform.isDarwin [
+ # See above comment about Nix
+ inputs.nix-darwin.packages.${system}.darwin-rebuild
+ ]
+ ++ lib.optionals pkgs.stdenv.hostPlatform.isLinux [
# Ditto
- nixos-rebuild
+ pkgs.nixos-rebuild
inputs.agenix.packages.${system}.agenix
];