NixOSConfig/flake.nix

44 lines
1 KiB
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";
2024-05-01 16:14:25 +00:00
flake-utils.url = "github:numtide/flake-utils?ref=b1d9ab70662946ef0850d488da1c9019f3a9752a";
2024-05-01 12:00:39 +00:00
};
2023-12-01 11:29:39 +00:00
2024-05-01 16:14:25 +00:00
outputs = { self, nixpkgs, flake-utils }:
2024-05-01 12:00:39 +00:00
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);
2024-05-01 16:14:25 +00:00
} //
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in {
devShells.default = pkgs.mkShellNoCC (
with pkgs;
{
packages = [
nixos-rebuild
];
});
});
2023-12-01 11:29:39 +00:00
}