28 lines
681 B
Nix
28 lines
681 B
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" = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
./configuration.nix
|
|
disko.nixosModules.disko
|
|
(import ./disko-nixos.nix { disks = [ "/dev/nvme0n1" ]; })
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|