Add devShells for both x86_64-linux and aarch64-linux

This commit is contained in:
2026-04-07 06:32:01 +02:00
parent 64ec15a04e
commit f9a97d20bd

View File

@@ -94,6 +94,27 @@
defaultSystem = "x86_64-linux";
pkgs = mkPkgs defaultSystem;
mkDevShell = pkgs: pkgs.mkShell {
buildInputs = with pkgs; [
nix
nixpkgs-fmt
sops
age
disko
git
];
shellHook = ''
echo "NixOS Configuration Development Shell"
echo "Available commands:"
echo " - nix flake check # Check flake validity"
echo " - nix flake show # Show all outputs"
echo " - sudo nixos-rebuild switch --flake .#hostname"
echo " - home-manager switch --flake .#youruser@linux"
echo " - sops secrets/secrets.yaml # Edit encrypted secrets"
'';
};
in {
# ============================================
@@ -135,25 +156,9 @@
# Development Shell
# ============================================
devShells.${defaultSystem}.default = pkgs.mkShell {
buildInputs = with pkgs; [
nix
nixpkgs-fmt
sops
age
disko
git
];
shellHook = ''
echo "NixOS Configuration Development Shell"
echo "Available commands:"
echo " - nix flake check # Check flake validity"
echo " - nix flake show # Show all outputs"
echo " - sudo nixos-rebuild switch --flake .#hostname"
echo " - home-manager switch --flake .#youruser@linux"
echo " - sops secrets/secrets.yaml # Edit encrypted secrets"
'';
devShells = {
x86_64-linux.default = mkDevShell (mkPkgs "x86_64-linux");
aarch64-linux.default = mkDevShell (mkPkgs "aarch64-linux");
};
# ============================================