24 lines
692 B
Nix
24 lines
692 B
Nix
{
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
inputs.disko.url = "github:nix-community/disko";
|
|
inputs.disko.inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.nixos-facter-modules.url = "github:numtide/nixos-facter-modules";
|
|
|
|
outputs = {
|
|
nixpkgs,
|
|
disko,
|
|
...
|
|
}: {
|
|
# Use this for all other targets
|
|
# nixos-anywhere --flake .#generic --generate-hardware-config nixos-generate-config ./hardware-configuration.nix <hostname>
|
|
nixosConfigurations.generic = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
disko.nixosModules.disko
|
|
./configuration.nix
|
|
./hardware-configuration.nix
|
|
];
|
|
};
|
|
};
|
|
}
|