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

38 lines
1,002 B
Nix
Raw Normal View History

2024-07-06 22:38:39 -05:00
{
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 = {
2024-07-07 02:50:07 -05:00
"mini-x86-grub" = nixpkgs.lib.nixosSystem {
2024-07-06 22:38:39 -05:00
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
2024-07-07 02:50:07 -05:00
./configuration-grub.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
2024-07-06 22:38:39 -05:00
disko.nixosModules.disko
(import ./disko-nixos.nix { disks = [ "/dev/nvme0n1" ]; })
];
};
};
};
}