Alisa/flake.nix

44 lines
1.2 KiB
Nix
Raw Normal View History

2024-07-05 12:33:15 +02:00
{
description = "License Managment tool";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2024-07-09 10:43:13 +02:00
nixos-generators = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs";
};
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
srvos = {
url = "github:nix-community/srvos";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-07-05 12:33:15 +02:00
};
outputs = inputs@{ self, nixpkgs, ... }: {
2024-07-09 10:43:13 +02:00
nixosConfigurations = {
main = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
specialArgs = inputs;
modules = [
./nix/infra.nix
#inputs.srvos.nixosModules.server
inputs.nixos-generators.nixosModules.all-formats
];
};
};
2024-07-05 13:31:02 +02:00
legacyPackages = nixpkgs.lib.attrsets.genAttrs nixpkgs.lib.systems.flakeExposed (system: import ./nix {
2024-07-05 12:33:15 +02:00
inherit system inputs;
pkgs = nixpkgs.legacyPackages.${system};
});
2024-07-06 09:42:54 +02:00
devShells = nixpkgs.lib.attrsets.genAttrs nixpkgs.lib.systems.flakeExposed (system: {
default = import ./shell.nix {
inherit system inputs;
pkgs = nixpkgs.legacyPackages.${system};
};
});
2024-07-05 12:33:15 +02:00
};
}