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
|
|
|
};
|
|
|
|
|
2024-07-11 18:38:07 +02:00
|
|
|
outputs =
|
|
|
|
inputs@{ self, nixpkgs, ... }:
|
|
|
|
{
|
|
|
|
# System
|
|
|
|
nixosConfigurations = {
|
|
|
|
alisa = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "aarch64-linux";
|
|
|
|
specialArgs = inputs;
|
|
|
|
modules = [ ./nix/infra ];
|
|
|
|
};
|
2024-07-09 10:43:13 +02:00
|
|
|
};
|
2024-07-10 16:03:10 +02:00
|
|
|
|
2024-07-11 18:38:07 +02:00
|
|
|
# Formatter
|
|
|
|
formatter = nixpkgs.lib.attrsets.genAttrs nixpkgs.lib.systems.flakeExposed (
|
|
|
|
system: nixpkgs.legacyPackages.${system}.nixfmt-rfc-style
|
|
|
|
);
|
2024-07-10 16:03:10 +02:00
|
|
|
|
2024-07-11 18:38:07 +02:00
|
|
|
# Packages
|
|
|
|
legacyPackages = nixpkgs.lib.attrsets.genAttrs nixpkgs.lib.systems.flakeExposed (
|
|
|
|
system:
|
|
|
|
import ./nix {
|
|
|
|
inherit system inputs;
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
}
|
|
|
|
);
|
2024-07-10 16:03:10 +02:00
|
|
|
|
2024-07-11 18:38:07 +02:00
|
|
|
# Shell
|
|
|
|
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
|
|
|
}
|