This repository has been archived on 2024-11-08. You can view files and clone it, but cannot push or open issues or pull requests.
MiniNix/flake.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" ]; })
];
};
};
};
}