nix: restructure flake and add devshell

This commit is contained in:
Rouven Seifert 2024-03-02 18:50:08 +01:00
parent 0cf95c4c34
commit 02e661890a
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09

View file

@ -32,12 +32,31 @@
, print-interface , print-interface
, ... , ...
}@inputs: }@inputs:
let
supportedSystems = [ "x86_64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
pkgs = forAllSystems (system: nixpkgs.legacyPackages.${system});
in
{ {
packages."x86_64-linux".quitte = self.nixosConfigurations.quitte.config.system.build.toplevel; packages = forAllSystems (system: rec {
packages."x86_64-linux".default = self.packages."x86_64-linux".quitte; default = quitte;
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt; quitte = self.nixosConfigurations.quitte.config.system.build.toplevel;
hydraJobs."x86-64-linux".quitte = self.packages."x86_64-linux".quitte; tomate = self.nixosConfigurations.tomate.config.system.build.toplevel;
});
formatters = forAllSystems (system: rec {
default = pkgs.${system}.nixpkgs-fmt;
});
hydraJobs = forAllSystems (system: {
quitte = self.packages.${system}.quitte;
});
devShells = forAllSystems (system: {
default = pkgs.${system}.mkShell {
packages = with pkgs.${system}; [
sops
];
};
});
overlays.default = import ./overlays; overlays.default = import ./overlays;
nixosConfigurations = { nixosConfigurations = {
quitte = nixpkgs.lib.nixosSystem { quitte = nixpkgs.lib.nixosSystem {