nix flake: add devShell

This commit is contained in:
Asmir A 2023-07-03 23:10:39 +02:00
parent e24157a614
commit f0d881de5d

View File

@ -14,7 +14,6 @@
}; };
outputs = inputs @ { outputs = inputs @ {
self,
nixpkgs, nixpkgs,
caps2esc, caps2esc,
home-manager, home-manager,
@ -22,7 +21,9 @@
peerix, peerix,
sops-nix, sops-nix,
... ...
}: { }: let
pkgs = nixpkgs.legacyPackages.x86_64-linux.pkgs;
in {
nixosConfigurations = rec { nixosConfigurations = rec {
nixy = nixpkgs.lib.nixosSystem { nixy = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
@ -53,5 +54,13 @@
]; ];
}; };
}; };
devShell.x86_64-linux = pkgs.mkShell {
buildInputs = with pkgs; [sops];
shellHook = ''
echo "Configuring NixOS!"
'';
};
}; };
} }