NixOSConfig/flake.nix

30 lines
598 B
Nix
Raw Normal View History

2023-12-01 11:29:39 +00:00
{
2024-05-01 12:00:39 +00:00
description = "NixOS Machine Configurations by manuth";
2023-12-01 11:29:39 +00:00
2024-05-01 12:00:39 +00:00
inputs = {
nixpkgs.url = "nixpkgs/38c01297e7ec11f7b9e3f2cae7d6fcec6cc767ec";
};
2023-12-01 11:29:39 +00:00
2024-05-01 12:00:39 +00:00
outputs = { self, nixpkgs }:
let
system = import ./lib/system.nix {
inherit nixpkgs;
};
systems = [
{
name = "nixos";
}
];
in {
nixosConfigurations = builtins.listToAttrs
(
builtins.map (
2024-05-01 14:53:40 +00:00
{ name, ... }@config:
2024-05-01 12:00:39 +00:00
{
inherit name;
2024-05-01 14:53:40 +00:00
value = system config;
2024-05-01 12:00:39 +00:00
})
systems);
};
2023-12-01 11:29:39 +00:00
}