Alisa/flake.nix

56 lines
1.4 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-10 16:03:10 +02:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-07-05 12:33:15 +02:00
};
outputs = inputs@{ self, nixpkgs, ... }: {
2024-07-10 16:03:10 +02:00
# System
2024-07-09 10:43:13 +02:00
nixosConfigurations = {
2024-07-10 16:03:10 +02:00
alisa = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
2024-07-09 10:43:13 +02:00
specialArgs = inputs;
modules = [
2024-07-10 16:03:10 +02:00
./nix/infra
2024-07-09 10:43:13 +02:00
];
};
};
2024-07-10 16:03:10 +02:00
# Formatter
formatter = nixpkgs.lib.attrsets.genAttrs nixpkgs.lib.systems.flakeExposed (system:
nixpkgs.legacyPackages.${system}.nixfmt-rfc-style
);
# Packages
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-10 16:03:10 +02:00
# Shell
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
};
}