39 lines
1 KiB
Nix
39 lines
1 KiB
Nix
{
|
|
description = "MiniNix";
|
|
|
|
inputs = {
|
|
# Nixpkgs
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
|
|
|
# disko - Declarative disk partitioning and formatting using nix
|
|
disko = {
|
|
url = "github:nix-community/disko";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, disko, ... }@inputs: {
|
|
nixosConfigurations = {
|
|
"mini-x86-grub" = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
./configuration-grub.nix
|
|
./common.nix
|
|
disko.nixosModules.disko
|
|
(import ./disko-nixos.nix { disks = [ "/dev/nvme0n1" ]; })
|
|
];
|
|
};
|
|
"mini-x86-systemd" = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
./configuration-systemd.nix
|
|
./common.nix
|
|
disko.nixosModules.disko
|
|
(import ./disko-nixos.nix { disks = [ "/dev/nvme0n1" ]; })
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|